/**
 * WLTP Data Label Styles
 * Complies with Pkw-EnVKV display requirements
 */

.dat-wltp-label {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

/* Header */


.dat-wltp-label__header h3.dat-wltp-label__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.dat-wltp-label__ref {
    color: #0066cc;
    text-decoration: none;
    font-size: 50%;
    vertical-align: super;
    margin-left: 0.25rem;
}

.dat-wltp-label__ref:hover {
    text-decoration: underline;
}

.dat-wltp-label__subtitle {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* CO2 Section - Full Width */
.dat-wltp-label__co2-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    text-align: center;
}

.dat-wltp-label__co2-section img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dat-wltp-label__co2-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.dat-wltp-label__co2-text strong {
    color: #000;
    font-weight: 600;
}

/* Sections */
.dat-wltp-label__section {
    margin-bottom: 20px;
}

.dat-wltp-label__section:last-of-type {
    margin-bottom: 0;
}

.dat-wltp-label__section .dat-wltp-label__section-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 6px;
}

/* Data Rows */
.dat-wltp-label__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.dat-wltp-label__row:last-child {
    border-bottom: none;
}

.dat-wltp-label__row--highlight {
    background-color: #f8f9fa;
    padding: 10px 12px;
    border-radius: 3px;
    border-bottom: none;
}

.dat-wltp-label__row--detail {
    font-size: 13px;
    color: #555;
    padding-left: 15px;
    padding-right: 15px
}

.dat-wltp-label__label {
    flex: 1;
    font-weight: 500;
}

.dat-wltp-label__value {
    font-weight: 600;
    color: #000;
    white-space: nowrap;
    margin-left: 15px;
}

/* Footer / Legal Notice */
.dat-wltp-label__footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e5e5e5;
}

.dat-wltp-label__notice {
    font-size: 11px;
    line-height: 1.5;
    color: #666;
    margin: 0;
    font-style: italic;
}

.dat-wltp-label__no-class {
    display: inline-block;
    padding: 5px 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 3px;
}

/* Compact Mode */
.dat-wltp-label.dat-wltp-label--compact {
    margin-top: 10px;
    padding: 0;
}

.dat-wltp-label__compact {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.dat-wltp-label__compact-data {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.dat-wltp-label__compact-row {
    font-size: 0.875rem;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0;
}

.dat-wltp-label__compact-row strong {
    color: #000;
    font-weight: 600;
}

.dat-wltp-label__compact-row .dat-wltp-label__ref {
    margin-left: 0.25rem;
}

/* Footnote */
.dat-wltp-footnote {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.dat-wltp-footnote__content {
    max-width: 1400px;
    margin: 0 auto;
}

.dat-wltp-footnote__text {
    font-size: 0.8rem;
    line-height: 1.25;
    color: #555;
    text-align: justify;
}

.dat-wltp-footnote__back-link {
    color: #0066cc;
    text-decoration: none;
}

.dat-wltp-footnote__back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .dat-wltp-label {
        padding: 15px;
    }
    
    .dat-wltp-label__co2-section img {
        max-width: 100%;
    }
    
    .dat-wltp-label__row {
        flex-direction: column;
        gap: 4px;
    }
    
    .dat-wltp-label__value {
        margin-left: 0;
    }
}

/* Print Styles */
@media print {
    .dat-wltp-label {
        border: 2px solid #000;
        page-break-inside: avoid;
    }
    
    .dat-wltp-label__notice {
        font-size: 9px;
    }
}
