/**
 * Datei: esg-frontend.css
 * VERSION: 10.9 - DSGVO CONSENT UI UPDATE
 * BESCHREIBUNG: 
 * Das globale Stylesheet für die App-Architektur des Master Factsheets.
 * HINZUGEFÜGT: Styles für den Zwei-Klick-Vimeo-Consent in der Lightbox.
 */

/* ==========================================================================
   1. HAUPT-CONTAINER
   ========================================================================== */
.esg-factsheet-master-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; 
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box !important;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.esg-factsheet-master-wrap * {
    box-sizing: border-box !important;
}

/* ==========================================================================
   2. HORIZONTALE JAHRES-TABS (SCROLLABLE PILLS)
   ========================================================================== */
.esg-tabs-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding-bottom: 15px;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    transition: mask-image 0.3s ease, -webkit-mask-image 0.3s ease;
}

.esg-tabs-container::-webkit-scrollbar {
    display: none; 
}

/* Fade-Out Effekt für die Pills */
.esg-tabs-container.has-fade {
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) calc(100% - 80px), rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) calc(100% - 80px), rgba(0,0,0,0) 100%);
}

.esg-tab-pill {
    flex: 0 0 auto;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.esg-tab-pill:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   3. SWIPER BEREICH
   ========================================================================== */
.esg-swiper-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.esg-chart-swiper {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   4. VIDEO ACTION BAR (RESPONSIV)
   ========================================================================== */
.esg-action-bar-container {
    display: none; 
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.esg-video-btn {
    width: auto;
    min-width: 250px;
    max-width: 100% !important; 
    padding: 16px 30px; 
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.esg-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
    opacity: 0.95;
}

.esg-video-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* ==========================================================================
   5. DYNAMISCHES KPI GRID
   ========================================================================== */
.esg-kpi-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 15px 30px !important;
    width: 100% !important;
}

.esg-factsheet-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding-bottom: 4px !important; 
    margin-bottom: 0 !important;
    width: 100% !important;
}

.esg-factsheet-label {
    flex: 1 !important;
    padding-right: 15px !important; 
}

.esg-factsheet-value {
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-align: right !important;
}

/* ==========================================================================
   6. DSGVO CONSENT SCREEN (LIGHTBOX)
   ========================================================================== */
.esg-consent-wrap {
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #111111;
}

.esg-consent-text {
    font-size: 15px;
    margin-bottom: 25px;
    max-width: 480px;
    line-height: 1.6;
    color: #cccccc;
    font-family: inherit;
}

.esg-consent-btn {
    background: #2271b1;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.esg-consent-btn:hover {
    background: #1c5a8e;
    transform: scale(1.02);
}

.esg-consent-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   7. RESPONSIVE ANPASSUNGEN
   ========================================================================== */
@media (max-width: 768px) {
    .esg-action-bar-container {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .esg-video-btn {
        width: 100% !important;
        min-width: 100% !important;
        padding: 15px 20px !important;
    }
    .esg-consent-wrap {
        padding: 40px 15px;
        min-height: 300px;
    }
    .esg-consent-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .esg-factsheet-master-wrap {
        padding: 10px !important; 
    }
    .esg-kpi-container {
        grid-template-columns: 1fr !important; 
        gap: 10px 0 !important; 
    }
}