/*!
 * Løftekæde V2 – WLL infobox styles
 * Author: Sascha Marc Rahn
 * Version: 2.0.6 - RETTET: 50% større vinkelbokse, ingen WLL sidebar
 */

#wll-infobox-step2, #wll-infobox-step6 { 
    margin-top: 16px; 
}

.wll-infobox .wll-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wll-card--summary {
    padding: 20px;
}

.wll-card__head {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 12px;
    margin-bottom: 12px;
}

.wll-title {
    font-weight: 700; 
    font-size: 18px; 
    line-height: 1.2;
    color: #2c3e50;
}

.wll-badges .badge {
    display: inline-block; 
    padding: 4px 8px; 
    border-radius: 999px; 
    font-size: 12px; 
    font-weight: 600;
    background: #f5f5f5; 
    color: #333; 
    border: 1px solid #e9e9e9; 
    margin-left: 6px;
}

.badge--angle { 
    background: #eef7ff; 
    border-color: #d6ecff; 
    color: #1d4ed8; 
}

.badge--part { 
    background: #f7f7f7; 
    border-color: #ececec; 
    color: #222; 
}

.badge--wll {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
}

.wll-flex { 
    display: flex; 
    gap: 18px; 
    align-items: flex-start; 
    flex-wrap: wrap; 
}

.wll-current { 
    flex: 0 0 260px; 
}

.wll-table { 
    flex: 1 1 260px; 
    overflow: auto; 
}

.wll-current__label { 
    font-weight: 700; 
    color: #111; 
    margin-bottom: 6px; 
}

.wll-current__meta { 
    font-size: 13px; 
    color: #444; 
    margin-bottom: 10px; 
}

.wll-current__meta div {
    margin-bottom: 4px;
}

.wll-current__meta strong {
    color: #2c3e50;
}

/* RETTET: INGEN stor talværdi styling - den skal ikke bruges */
.wll-current__wll .wll-number { 
    display: block; 
    font-size: 30px; 
    font-weight: 800; 
    margin: 4px 0;
    color: #3498db;
}

.wll-sub { 
    display: block; 
    font-size: 12px; 
    color: #555; 
}

.wll-note { 
    font-size: 12px; 
    color: #777; 
    margin-top: 8px; 
    text-align: center;
    font-style: italic;
}

.wll-note.small { 
    font-size: 11px; 
}

.wll-bf { 
    margin-top: 8px; 
}

.bf-chip { 
    display: inline-block; 
    background: #fff7e6; 
    color: #8a4b00; 
    border: 1px solid #ffe0a8; 
    border-radius: 6px; 
    padding: 2px 6px; 
    font-size: 12px; 
    margin-right: 6px;
    margin-bottom: 4px;
}

.wll-table table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0; 
}

.wll-table th, .wll-table td { 
    text-align: left; 
    font-size: 13px; 
    padding: 8px 10px; 
    border-bottom: 1px solid #eee; 
    white-space: nowrap; 
}

.wll-table thead th { 
    font-weight: 700; 
    color: #222; 
    background: #fafafa; 
    border-bottom: 1px solid #e9e9e9; 
}

.wll-table tbody tr.is-active td { 
    background: #f6fbff; 
    font-weight: 700;
    color: #3498db;
}

.wll-grid-2 {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
    align-items: center;
}

.wll-kv { 
    display: flex; 
    justify-content: space-between; 
    padding: 6px 0; 
    border-bottom: 1px dashed #eee; 
}

.wll-kv span { 
    color: #666; 
}

.wll-kv strong { 
    color: #111; 
}

/* RETTET: 50% større vinkelbokse - HOVEDÆNDRING */
.wll-angles-large {
    display: flex;
    gap: 22px;
    margin: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.wll-angle-item-large {
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
    padding: 18px 24px;
    border-radius: 10px;
    border: 2px solid #3498db;
    font-size: 16px;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    transition: all 0.2s ease;
}

.wll-angle-item-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.2);
}

.wll-angle-item-large .angle-label {
    color: #1d4ed8;
    font-weight: 700;
    margin-right: 8px;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.wll-angle-item-large .angle-value {
    color: #2c3e50;
    font-weight: 800;
    font-size: 20px;
    display: block;
}

/* Single angle får ekstra bredde */
.wll-single-angle {
    min-width: 220px;
}

.wll-single-angle .angle-value {
    font-size: 24px;
    color: #3498db;
}

/* Original vinkelbokse (bruges ikke i step 2 længere) */
.wll-angles {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.wll-angle-item {
    background: #f0f8ff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d6ecff;
    font-size: 13px;
}

.angle-label {
    color: #1d4ed8;
    font-weight: 600;
    margin-right: 8px;
}

.angle-value {
    color: #2c3e50;
    font-weight: 700;
}

/* Step 6 styling */
.wll-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.wll-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.spec-label {
    color: #666;
    font-size: 14px;
}

.spec-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.wll-angle-summary {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #e2e8f0;
}

.angle-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.angle-summary-item:last-child {
    margin-bottom: 0;
}

.angle-summary-item strong {
    color: #3498db;
    font-weight: 700;
}

.wll-summary-main .wll-number {
    font-size: 28px !important;
    color: #3498db !important;
    font-weight: 800 !important;
}

.wll-summary-main .wll-sub {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* RETTET: Skjul WLL sidebar helt */
.loeftek-wll-sidebar,
#wll-sidebar {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .wll-flex {
        flex-direction: column;
        gap: 16px;
    }
    
    .wll-current {
        flex: none;
        width: 100%;
    }
    
    .wll-table {
        flex: none;
        width: 100%;
    }
    
    .wll-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .wll-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .wll-angles-large {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .wll-angle-item-large {
        min-width: 200px;
    }
    
    .wll-single-angle {
        min-width: 240px;
    }
    
    .wll-card__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .wll-badges {
        align-self: flex-end;
    }
    
    .wll-current__wll .wll-number {
        font-size: 24px;
    }
    
    .wll-summary-main .wll-number {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .wll-infobox .wll-card {
        padding: 12px;
        border-radius: 8px;
    }
    
    .wll-card--summary {
        padding: 16px;
    }
    
    .wll-title {
        font-size: 16px;
    }
    
    .wll-angle-item-large {
        padding: 15px 18px;
        min-width: 170px;
    }
    
    .wll-angle-item-large .angle-value {
        font-size: 18px;
    }
    
    .wll-single-angle .angle-value {
        font-size: 20px;
    }
    
    .wll-table th, .wll-table td {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .bf-chip {
        font-size: 11px;
        padding: 1px 4px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wll-infobox .wll-card {
        border: 2px solid #333;
        box-shadow: 0 4px 14px rgba(0,0,0,.2);
    }
    
    .badge--angle {
        border-color: #1d4ed8;
        background: #fff;
        color: #1d4ed8;
    }
    
    .wll-angle-item-large {
        border-color: #333;
        background: #fff;
    }
    
    .wll-table tbody tr.is-active td {
        background: #e6f3ff;
        border: 1px solid #3498db;
    }
}

/* Print styles */
@media print {
    .wll-infobox .wll-card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .wll-current__wll .wll-number,
    .wll-summary-main .wll-number {
        color: #000 !important;
    }
    
    .wll-angle-item-large .angle-value {
        color: #000;
    }
    
    .badge--angle, .badge--part, .badge--wll {
        background: #fff;
        border: 1px solid #000;
        color: #000;
    }
}