/**
 * VORHERSAGE-SEITE CSS - Wetterstation Schladming
 * Ausgelagert aus vorhersage.php
 * Nutzt globale Variablen aus style.css
 */


.forecast-page *, .forecast-page *::before, .forecast-page *::after { box-sizing: border-box; }

.forecast-page { background: var(--bg-page); padding: 1.5rem 1.5rem 1.5rem; overflow-x: hidden; }
.forecast-page .fc-container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); overflow-x: hidden; }

.forecast-page .fc-page-header {
    text-align: center; margin-bottom: 1.5rem; padding: 1rem;
    background: linear-gradient(135deg, rgba(30,60,114,0.2), rgba(42,82,152,0.15));
    border-radius: var(--radius-lg); border: 1px solid var(--blue-a10);
    max-width: 620px; margin-left: auto; margin-right: auto;
}
.forecast-page .fc-page-header span { font-size: var(--fs-md); color: var(--db-unit); font-weight: 500; }

.forecast-page .fc-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: stretch;
}

.forecast-page .fc-card {
    background: var(--bg-card);
    border: 1px solid var(--blue-a25); border-radius: var(--radius-lg); padding: 1rem; transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.forecast-page .fc-card:hover { border-color: var(--blue-a40); box-shadow: var(--shadow-lg); }
.forecast-page .fc-card-content { display: flex; flex-direction: column; align-items: center; flex: 1; }
.forecast-page .fc-card.full-width { grid-column: 1 / -1; }

/* ============================================================================
   DESKTOP: Buttons oben als horizontale Leiste, 7-Tage volle Breite
   ============================================================================ */
@media (min-width: 769px) {
    .forecast-page .fc-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* Button-Leiste oben: 5 Kacheln nebeneinander */
    .forecast-page .fc-topbar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-sm);
        margin-bottom: 0.5rem;
    }

    /* Sidebar ausblenden */
    .forecast-page .fc-sidebar { display: none; }

    /* main-card: volle Breite */
    .forecast-page .fc-main-card { grid-column: 1 / -1; }

    /* Expandierter Bereich: volle Breite */
    .forecast-page .fc-expanded-area { grid-column: 1 / -1; min-height: 480px; }
    .forecast-page .fc-card.fc-expanded { animation: tileExpand 0.3s ease; }

    /* Topbar Mini-Kacheln */
    .forecast-page .fc-topbar .fc-mini {
        cursor: pointer; position: relative;
        height: 68px; min-height: 68px; max-height: 68px; padding: 0; overflow: hidden;
        border-left: 3px solid rgba(52,152,219,0.45);
    }
    .forecast-page .fc-topbar .fc-mini .fc-card-header,
    .forecast-page .fc-topbar .fc-mini .fc-card-content,
    .forecast-page .fc-topbar .fc-mini .fc-credit { display: none; }
    .forecast-page .fc-topbar .fc-mini-inner {
        display: flex; flex-direction: row; align-items: center;
        gap: var(--space-md); padding: 0.65rem 0.9rem; height: 100%;
    }
    .forecast-page .fc-topbar .fc-mini-icon {
        width: 22px; height: 22px; flex-shrink: 0;
        color: var(--blue-light); opacity: 1; transition: all 0.2s;
    }
    .forecast-page .fc-topbar .fc-mini:hover .fc-mini-icon { color: var(--blue-accent); opacity: 1; transform: scale(1.1); }
    .forecast-page .fc-topbar .fc-mini-text { display: flex; flex-direction: column; gap: var(--space-xs); }
    .forecast-page .fc-topbar .fc-mini-title {
        font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary);
        text-transform: uppercase; letter-spacing: 0.4px;
    }
    .forecast-page .fc-topbar .fc-mini-sub { display: none; }
    .forecast-page .fc-topbar .fc-mini:hover {
        border-color: var(--blue-a40);
        border-left-width: 3px;
        background: var(--bg-card-hover);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .forecast-page .fc-topbar .fc-mini.fc-active {
        border-color: var(--blue-a40);
        border-left-color: var(--blue);
        background: var(--bg-card);
        box-shadow: 0 0 16px var(--blue-a25);
    }
    .forecast-page .fc-topbar .fc-mini.fc-active .fc-mini-icon { color: var(--blue-light); opacity: 1; }
    .forecast-page .fc-topbar .fc-mini.fc-active .fc-mini-title { color: var(--blue-accent); }

    /* Individuelle Farben Desktop-Topbar – border-left pro Kategorie */
    /* 7-Tage – blau */
    .forecast-page .fc-topbar #btn-7tage { border-left-color: var(--blue-light); }
    .forecast-page .fc-topbar #btn-7tage .fc-mini-icon { color: var(--blue-light); }
    .forecast-page .fc-topbar #btn-7tage .fc-mini-title { color: var(--blue-light); }
    .forecast-page .fc-topbar #btn-7tage.fc-active { border-left-color: var(--blue); background: var(--blue-a10); }
    .forecast-page .fc-topbar #btn-7tage.fc-active .fc-mini-icon { color: var(--blue-accent); }
    .forecast-page .fc-topbar #btn-7tage.fc-active .fc-mini-title { color: var(--blue-accent); }

    /* 14-Tage Trend – grün */
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-trend"] { border-left-color: var(--green-muted); }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-trend"] .fc-mini-icon { color: var(--green-muted) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-trend"] .fc-mini-title { color: var(--green-muted) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-trend"].fc-active { border-left-color: var(--green); background: var(--green-a15); }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-trend"].fc-active .fc-mini-icon { color: var(--green) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-trend"].fc-active .fc-mini-title { color: var(--green) !important; }

    /* Modellvergleich – lila */
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-modellvergleich"] { border-left-color: var(--purple); }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-modellvergleich"] .fc-mini-icon { color: var(--purple) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-modellvergleich"] .fc-mini-title { color: var(--purple) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-modellvergleich"].fc-active { border-left-color: var(--purple-bright); background: var(--purple-a15); }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-modellvergleich"].fc-active .fc-mini-icon { color: var(--purple-bright) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-modellvergleich"].fc-active .fc-mini-title { color: var(--purple-bright) !important; }

    /* Multi-Modell – orange */
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-multimodell"] { border-left-color: var(--orange-light); }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-multimodell"] .fc-mini-icon { color: var(--orange-light) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-multimodell"] .fc-mini-title { color: var(--orange-light) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-multimodell"].fc-active { border-left-color: var(--orange); background: var(--orange-a15); }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-multimodell"].fc-active .fc-mini-icon { color: var(--orange) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-multimodell"].fc-active .fc-mini-title { color: var(--orange) !important; }

    /* Wetterkarte – gelb */
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-wetterkarte"] { border-left-color: var(--yellow); }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-wetterkarte"] .fc-mini-icon { color: var(--yellow) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-wetterkarte"] .fc-mini-title { color: var(--yellow) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-wetterkarte"].fc-active { border-left-color: var(--yellow-dark); background: var(--yellow-a15); }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-wetterkarte"].fc-active .fc-mini-icon { color: var(--yellow-dark) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-wetterkarte"].fc-active .fc-mini-title { color: var(--yellow-dark) !important; }

    /* Langzeit – violett */
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-langzeit"] { border-left-color: var(--indigo); }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-langzeit"] .fc-mini-icon { color: var(--indigo) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-langzeit"] .fc-mini-title { color: var(--indigo) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-langzeit"].fc-active { border-left-color: var(--indigo); background: var(--indigo-a15); }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-langzeit"].fc-active .fc-mini-icon { color: var(--indigo) !important; }
    .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-langzeit"].fc-active .fc-mini-title { color: var(--indigo) !important; }
    .forecast-page .fc-mobile-tile[data-section="langzeit"] { border-color: var(--indigo-a15); }
    .forecast-page .fc-mobile-tile[data-section="langzeit"] .fc-tile-icon,
    .forecast-page .fc-mobile-tile[data-section="langzeit"] .fc-tile-label { color: var(--indigo) !important; }
    .forecast-page .fc-mobile-tile[data-section="langzeit"].active { background: var(--indigo-a15); border-color: var(--indigo); box-shadow: 0 0 12px var(--indigo-a15); }
    .forecast-page .fc-mobile-tile[data-section="langzeit"].active .fc-tile-icon,
    .forecast-page .fc-mobile-tile[data-section="langzeit"].active .fc-tile-label { color: #a5b4fc !important; }

    /* Langzeit Chart */
    .langzeit-bar-wrap { display:block; margin-bottom:1.5rem; }
    .langzeit-bar-col { flex:0 0 120px; width:120px; }
    .langzeit-month-label { font-size: var(--fs-xs); color:var(--text-secondary); text-align:center; margin-bottom:0.3rem; }
    .langzeit-bar-outer { background:var(--glass-light); border-radius: var(--radius-sm); height:120px; position:relative; display:flex; align-items:flex-end; justify-content:center; overflow:visible; }
    .langzeit-bar-inner { border-radius:3px 3px 0 0; width:70%; min-height:2px; transition:height 0.4s; position:relative; }
    .langzeit-val { font-size: var(--fs-xs); text-align:center; margin-top:0.2rem; font-weight:600; }
    .langzeit-zero { position:absolute; left:0; right:0; height:1px; background:var(--glass-hover); }
    .langzeit-grid { display:grid; grid-template-columns:1fr 1fr; gap: 6rem; max-width: 1000px; }
    @media (max-width: 768px) { .langzeit-grid { grid-template-columns:1fr; } .langzeit-bar-wrap div[style*="height:28px"] { height: 20px !important; } }
    @media (max-width:600px) { .langzeit-bar-outer { height:80px; } .langzeit-bar-col { flex:0 0 72px; width:72px; } .langzeit-month-label { font-size: var(--fs-xs); } }

    /* fc-mini ohne fc-topbar (Compat) */
    .forecast-page .fc-mini.fc-active { border-color: var(--blue); background: var(--blue-a10); }
    .forecast-page .fc-mini.fc-active .fc-mini-title { color: var(--blue-accent); }

    /* Schließen-Button */
    .forecast-page .fc-close-btn {
        margin-left: auto; padding: 0.25rem 0.7rem;
        background: var(--red-a15); border: 1px solid var(--red-a30);
        border-radius: var(--radius-md); color: var(--red-light); font-size: var(--fs-xs);
        font-weight: 600; cursor: pointer; transition: all 0.2s;
    }
    .forecast-page .fc-close-btn:hover { background: var(--red-a30); color: var(--red-light); }

    @keyframes tileExpand {
        from { opacity: 0.7; transform: translateY(-5px); }
        to   { opacity: 1;   transform: translateY(0); }
    }
}

/* Mobile: Schließen-Button ausblenden, Sidebar-Minis verstecken, expanded-areas als volle Karten */
@media (max-width: 768px) {
    .forecast-page .fc-close-btn { display: none; }
    .forecast-page .fc-sidebar { display: none; }
    .forecast-page .fc-expanded-area { display: none; }
    .forecast-page .fc-expanded-area.fc-section-active { display: flex !important; }
    .forecast-page .fc-expanded-area .fc-close-btn { display: none; }
}

.forecast-page .fc-card-header {
    font-size: var(--fs-sm); font-weight: 600; color: var(--blue-light); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 1rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--blue-a10);
    display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap;
}
.forecast-page .fc-badge {
    font-size: var(--fs-xs); padding: 0.15rem 0.4rem; border-radius: var(--radius-sm);
    margin-left: auto; font-weight: 600; background: var(--blue-a25); color: var(--blue-light);
}
.forecast-page .fc-credit { margin-top: auto; padding-top: 0.75rem; font-size: var(--fs-sm); color: var(--text-muted); text-align: center; width: 100%; }
.forecast-page .fc-credit a { color: var(--blue-light); text-decoration: none; }

.forecast-page .fc-iframe { width: 100%; display: flex; justify-content: center; flex: 1; }
.forecast-page .fc-iframe iframe { border-radius: var(--radius-md); max-width: 100%; width: 100%; }

.forecast-page .fc-image { width: 100%; display: flex; justify-content: center; overflow: hidden; border-radius: var(--radius-md); background: none; flex: 1; min-height: 200px; }
.forecast-page .fc-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); transition: transform 0.3s ease; }
.forecast-page .fc-card.clickable { cursor: zoom-in; }
.forecast-page .fc-card.clickable:hover .fc-image img { transform: scale(1.03); }

/* ============================================================================
   MULTI-MODELL CHART
   ============================================================================ */

/* Parameter-Tabs (Temperatur / Niederschlag) */
.forecast-page .param-tabs {
    display: flex; gap: var(--space-sm); margin-bottom: 0.75rem; width: 100%;
}
.forecast-page .param-tab {
    padding: 0.5rem 1.2rem; background: var(--glass-light);
    border: 1px solid var(--border-light); border-radius: 5px;
    color: var(--text-muted); font-size: var(--fs-sm); font-weight: 700;
    cursor: pointer; transition: all 0.15s ease;
}
.forecast-page .param-tab:hover { background: var(--blue-a10); color: var(--text-primary); }
.forecast-page .param-tab.active { background: var(--blue-a25); border-color: var(--blue); color: var(--blue-accent); }

/* Gruppen-Filter */
.forecast-page .group-bar {
    display: flex; gap: var(--space-xs); margin-bottom: 0.6rem;
    overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.25rem; width: 100%;
}
.forecast-page .group-btn {
    display: flex; align-items: center; gap: var(--space-xs);
    padding: 0.3rem 0.5rem; background: var(--glass-medium);
    border: 1px solid rgba(52,152,219,0.08); border-radius: var(--radius-md);
    color: var(--text-secondary); font-size: var(--fs-xs); font-weight: 600;
    cursor: pointer; transition: all 0.15s ease; white-space: nowrap;
}
.forecast-page .group-btn .gf { display: inline-block; flex-shrink: 0; }
.forecast-page .group-btn:hover { background: var(--blue-a10); color: var(--text-secondary); }
.forecast-page .group-btn.active { background: rgba(52,152,219,0.18); border-color: var(--blue); color: var(--blue-light); }

/* Chart Container */
.forecast-page .chart-box { position: relative; width: 100%; height: 300px; }
.forecast-page .chart-status {
    color: var(--text-secondary); text-align: center; font-size: var(--fs-base);
    display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
    justify-content: center; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
}
.forecast-page .spinner {
    width: 24px; height: 24px; border: 2px solid var(--blue-a25);
    border-top-color: var(--blue); border-radius: var(--radius-full); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Legende */
.forecast-page .model-legend {
    display: flex; flex-wrap: wrap; gap: 0.3rem 0.75rem; width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid var(--blue-a10);
}
.forecast-page .legend-toggle {
    cursor: pointer; text-align: center; padding: 0.4rem;
    margin-top: 0.5rem; font-size: var(--fs-xs); color: var(--text-muted);
    transition: color 0.2s; user-select: none;
}
.forecast-page .legend-toggle:hover { color: var(--blue-accent); }
.forecast-page .legend-entry {
    display: flex; align-items: center; gap: var(--space-sm);
    font-size: var(--fs-xs); color: var(--text-secondary); cursor: pointer;
    transition: opacity 0.2s ease; padding: 0.15rem 0;
}
.forecast-page .legend-entry:hover { color: var(--text-primary); }
.forecast-page .legend-entry.hidden { opacity: 0.25; }
.forecast-page .legend-dot {
    width: 10px; height: 3px; border-radius: var(--radius-sm); flex-shrink: 0;
}
.forecast-page .legend-run {
    font-size: var(--fs-xs); color: var(--text-muted); margin-left: 0.25rem; font-weight: 400;
}
.forecast-page .snow-disclaimer {
    font-size: var(--fs-xs); color: var(--yellow-dark); text-align: center; padding: 0.4rem 0.8rem;
    margin-top: 0.3rem; opacity: 0.85; font-style: italic;
}

/* Divider */
.forecast-page .fc-divider {
    grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-md); margin: 0.25rem 0;
}
.forecast-page .fc-divider::before, .forecast-page .fc-divider::after { content: ''; flex: 1; height: 1px; background: var(--blue-a10); }
.forecast-page .fc-divider span { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* Detail-Chart Tabs */
.forecast-page .detail-group-bar {
    display: flex; gap: var(--space-xs); margin-bottom: 0.5rem; width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.25rem;
}
.forecast-page .detail-group-btn {
    display: flex; flex-direction: row; align-items: center; gap: var(--space-xs);
    padding: 0.4rem 0.7rem; background: var(--glass-medium);
    border: 1px solid rgba(52,152,219,0.08); border-radius: var(--radius-md);
    color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 700;
    cursor: pointer; transition: all 0.15s ease; white-space: nowrap;
}
.forecast-page .detail-group-btn .dgf { display: flex; align-items: center; }
.forecast-page .detail-group-btn .dgl { font-size: var(--fs-xs); color: var(--text-muted); }
.forecast-page .detail-group-btn:hover { background: var(--blue-a10); color: var(--text-secondary); }
.forecast-page .detail-group-btn.active { background: rgba(52,152,219,0.18); border-color: var(--blue); color: var(--blue-light); }

.forecast-page .detail-model-bar {
    display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: 0.6rem; width: 100%;
    padding-bottom: 0.25rem;
}
.forecast-page .detail-model-btn {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-xs);
    padding: 0.4rem 0.9rem; background: var(--glass-hover);
    border: 1px solid var(--blue-a10); border-radius: var(--radius-md);
    color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; white-space: nowrap; min-width: 3rem;
}
.forecast-page .detail-model-btn .dm-label {
    display: flex; align-items: center; gap: var(--space-xs);
}
.forecast-page .detail-model-btn .dm-days {
    font-size: var(--fs-xs); color: var(--text-muted); font-weight: 500; line-height: 1;
}
.forecast-page .detail-model-btn .dm-run {
    font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400;
}
.forecast-page .detail-model-btn:hover { background: var(--blue-a10); color: var(--text-primary); }
.forecast-page .detail-model-btn.active { background: var(--blue-a25); border-color: var(--blue); color: var(--blue-accent); }

/* Modell-Tooltip */


/* Modell-Info Button & Panel */
.forecast-page .model-info-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: var(--radius-full);
    background: var(--blue-a10); border: 1px solid var(--blue-a25);
    color: var(--text-muted); font-size: var(--fs-xs); font-weight: 700;
    cursor: pointer; transition: all 0.2s; margin-left: 0.4rem; flex-shrink: 0;
}
.forecast-page .model-info-btn:hover { background: var(--blue-a25); color: var(--blue-accent); }
.forecast-page .model-info-btn.active { background: var(--blue-a25); color: var(--blue-light); border-color: var(--blue); }
.forecast-page .model-info-panel {
    display: none; width: 100%; margin-bottom: 0.6rem;
    background: var(--bg-tooltip); border: 1.5px solid var(--glass-medium);
    border-radius: var(--radius-lg); padding: 1.4rem 1.5rem 1.25rem; font-size: var(--fs-base); color: var(--text-secondary);
    line-height: 1.6; animation: fadeIn 0.2s ease;
}
.forecast-page .model-info-panel.visible { display: block; }
.forecast-page .model-info-panel .mi-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-light);
}
.forecast-page .model-info-panel .mi-title { font-weight: 700; color: var(--text-primary); font-size: var(--fs-md); }
.forecast-page .model-info-panel .mi-close {
    cursor: pointer; color: var(--text-muted); font-size: var(--fs-xl); line-height: 1;
    padding: 0.1rem 0.3rem; border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s;
    background: none; border: none;
}
.forecast-page .model-info-panel .mi-close:hover { color: var(--text-primary); background: var(--glass-medium); }
.forecast-page .model-info-panel .mi-grid {
    display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem;
}
.forecast-page .model-info-panel .mi-label { color: var(--text-muted); font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.5px; }
.forecast-page .model-info-panel .mi-val { color: var(--text-secondary); }
.forecast-page .model-info-panel .mi-desc { margin-top: 0.5rem; color: var(--db-unit); font-size: var(--fs-xs); }
.forecast-page .model-info-panel .mi-tag {
    display: inline-block; padding: 0.1rem 0.35rem; border-radius: var(--radius-sm);
    font-size: var(--fs-xs); font-weight: 600; margin-right: 0.25rem;
}
.forecast-page .model-info-panel .mi-pro { background: rgba(34,197,94,0.15); color: var(--green); }
.forecast-page .model-info-panel .mi-con { background: var(--red-a15); color: var(--red-light); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.forecast-page .detail-chart-box { position: relative; width: 100%; height: 300px; }
.forecast-page .detail-legend {
    display: flex; gap: var(--space-lg); margin-top: 0.6rem; width: 100%; justify-content: center; flex-wrap: wrap;
}
.forecast-page .detail-legend-item {
    display: flex; align-items: center; gap: var(--space-sm); font-size: var(--fs-xs); color: var(--text-secondary);
}
.forecast-page .detail-legend-line {
    width: 18px; height: 0; border-top: 2px solid; flex-shrink: 0;
}
.forecast-page .detail-legend-bar {
    width: 10px; height: 10px; border-radius: var(--radius-sm); flex-shrink: 0; opacity: 0.7;
}
.forecast-page .detail-legend-line.dashed {
    border-top-style: dashed;
}

@media (max-width: 768px) {
    .forecast-page .detail-chart-box { height: 300px; }
    .forecast-page .detail-group-btn { padding: 0.25rem 0.4rem; font-size: var(--fs-xs); }
    .forecast-page .detail-model-btn { padding: 0.3rem 0.6rem; font-size: var(--fs-xs); }
}

/* Lightbox */
.fc-lightbox { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.95); z-index:10000; cursor:zoom-out; justify-content:center; align-items:center; padding:2rem; }
.fc-lightbox.active { display:flex; }
.fc-lightbox img { max-width:95%; max-height:95%; object-fit:contain; border-radius: var(--radius-md); }
.fc-lightbox-close { position:absolute; top:1rem; right:1.5rem; font-size: var(--fs-hero); color:#fff; cursor:pointer; z-index:10001; }
.fc-lightbox-title { position:absolute; bottom:1.5rem; left:50%; transform:translateX(-50%); color:var(--text-primary); font-size: var(--fs-md); background:var(--overlay-heavy); padding:0.5rem 1.5rem; border-radius: var(--radius-md); }

/* Responsive */

/* Mobile Navigation Tiles (Tab-Verhalten wie bei klima.php) */
.forecast-page .fc-mobile-nav {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.forecast-page .fc-mobile-tile {
    background: var(--bg-card);
    border: 1px solid var(--blue-a25);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
}
.forecast-page .fc-mobile-tile:hover, .forecast-page .fc-mobile-tile:active {
    border-color: rgba(52,152,219,0.6);
    transform: scale(0.98);
}
.forecast-page .fc-mobile-tile.active {
    border-color: var(--blue);
    background: var(--blue-a25);
    box-shadow: 0 0 12px var(--blue-a10);
}
.forecast-page .fc-tile-icon { font-size: var(--fs-xl); margin-bottom: 0.2rem; line-height: 1; display: flex; align-items: center; justify-content: center; color: var(--db-label); }
.forecast-page .fc-tile-label { font-size: var(--fs-xs); font-weight: 700; color: var(--db-label); text-transform: uppercase; letter-spacing: 0.5px; display: block; }
.forecast-page .fc-mobile-tile.active .fc-tile-label { color: var(--blue-accent); }
.forecast-page .fc-mobile-tile.active .fc-tile-icon { color: var(--blue-light); }

/* Individuelle Farben je Tab */
/* 7-Tage – blau */
.forecast-page .fc-mobile-tile[data-section="vorhersage"] { border-color: var(--blue-a40); }
.forecast-page .fc-mobile-tile[data-section="vorhersage"] .fc-tile-icon,
.forecast-page .fc-mobile-tile[data-section="vorhersage"] .fc-tile-label { color: var(--blue-light) !important; }
.forecast-page .fc-mobile-tile[data-section="vorhersage"].active { background: var(--blue-a25); border-color: var(--blue); box-shadow: 0 0 12px var(--blue-a25); }
.forecast-page .fc-mobile-tile[data-section="vorhersage"].active .fc-tile-icon,
.forecast-page .fc-mobile-tile[data-section="vorhersage"].active .fc-tile-label { color: var(--blue-accent) !important; }

/* 14-Tage Trend – grün */
.forecast-page .fc-mobile-tile[data-section="trend"] { border-color: var(--green-a35); }
.forecast-page .fc-mobile-tile[data-section="trend"] .fc-tile-icon,
.forecast-page .fc-mobile-tile[data-section="trend"] .fc-tile-label { color: var(--green-muted) !important; }
.forecast-page .fc-mobile-tile[data-section="trend"].active { background: var(--green-a15); border-color: var(--green-muted); box-shadow: 0 0 12px var(--green-a15); }
.forecast-page .fc-mobile-tile[data-section="trend"].active .fc-tile-icon,
.forecast-page .fc-mobile-tile[data-section="trend"].active .fc-tile-label { color: #6ee7b7 !important; }

/* Modellvergleich – lila (wie Desktop expand-modellvergleich) */
.forecast-page .fc-mobile-tile[data-section="modelle"] { border-color: var(--purple-a30); }
.forecast-page .fc-mobile-tile[data-section="modelle"] .fc-tile-icon,
.forecast-page .fc-mobile-tile[data-section="modelle"] .fc-tile-label { color: var(--purple) !important; }
.forecast-page .fc-mobile-tile[data-section="modelle"].active { background: var(--purple-a15); border-color: var(--purple); box-shadow: 0 0 12px rgba(167,139,250,0.2); }
.forecast-page .fc-mobile-tile[data-section="modelle"].active .fc-tile-icon,
.forecast-page .fc-mobile-tile[data-section="modelle"].active .fc-tile-label { color: #c4b5fd !important; }

/* Multi-Modell – orange (wie Desktop expand-multimodell) */
.forecast-page .fc-mobile-tile[data-section="overlay"] { border-color: var(--orange-a35); }
.forecast-page .fc-mobile-tile[data-section="overlay"] .fc-tile-icon,
.forecast-page .fc-mobile-tile[data-section="overlay"] .fc-tile-label { color: var(--orange-light) !important; }
.forecast-page .fc-mobile-tile[data-section="overlay"].active { background: var(--orange-a15); border-color: var(--orange-light); box-shadow: 0 0 12px rgba(251,146,60,0.2); }
.forecast-page .fc-mobile-tile[data-section="overlay"].active .fc-tile-icon,
.forecast-page .fc-mobile-tile[data-section="overlay"].active .fc-tile-label { color: #fdba74 !important; }

/* Wetterkarte – gelb */
.forecast-page .fc-mobile-tile[data-section="karten"] { border-color: var(--yellow-a35); }
.forecast-page .fc-mobile-tile[data-section="karten"] .fc-tile-icon,
.forecast-page .fc-mobile-tile[data-section="karten"] .fc-tile-label { color: var(--yellow) !important; }
.forecast-page .fc-mobile-tile[data-section="karten"].active { background: var(--yellow-a15); border-color: var(--yellow); box-shadow: 0 0 12px var(--yellow-a15); }
.forecast-page .fc-mobile-tile[data-section="karten"].active .fc-tile-icon,
.forecast-page .fc-mobile-tile[data-section="karten"].active .fc-tile-label { color: #fde68a !important; }

@media (max-width: 768px) {
    .forecast-page .fc-mobile-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.4rem;
        position: sticky; top: 0; z-index: 50;
        background: var(--bg-page);
        padding: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .forecast-page .fc-page-header { display: none; }
    /* Alle Sektionen auf Mobile versteckt, per JS einblenden */
    .forecast-page .fc-topbar { display: none !important; }
    .forecast-page .fc-section { display: none !important; }
    .forecast-page .fc-section.fc-section-active { display: flex !important; }
    .forecast-page .fc-divider.fc-section.fc-section-active { display: block !important; }
    .forecast-page .fc-grid { grid-template-columns: 1fr; }
    .forecast-page .fc-card.full-width { grid-column: 1; }
    /* Verhindern, dass Inhalte breiter als Screen werden */
    .forecast-page .fc-card { max-width: 100%; overflow: hidden; }
    .forecast-page .fc-card-content { max-width: 100%; overflow-x: auto; }
    .forecast-page .fc-iframe iframe { width: 100% !important; height: auto !important; min-height: 340px; }
    .forecast-page .group-btn { padding: 0.25rem 0.4rem; font-size: var(--fs-xs); }
    .forecast-page .group-btn .gf { font-size: var(--fs-xs); }
    .forecast-page .chart-box { height: 260px; }
    .forecast-page .detail-chart-box { height: 240px; }
    .forecast-page .model-legend { gap: 0.2rem 0.5rem; }
    .forecast-page .legend-entry { font-size: var(--fs-xs); }
    .forecast-page .param-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; scrollbar-width: none; }
    .forecast-page .param-tabs::-webkit-scrollbar { display: none; }
    .forecast-page .param-tab { padding: 0.4rem 0.8rem; font-size: var(--fs-xs); white-space: nowrap; flex-shrink: 0; }
    .forecast-page .detail-model-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0; }
    .forecast-page .detail-model-bar::-webkit-scrollbar { display: none; }
    .forecast-page .detail-model-btn { flex-shrink: 0; }
}
@media (max-width: 480px) {
    .forecast-page .fc-card { padding: 0.65rem; }
    .forecast-page .chart-box { height: 240px; }
    .forecast-page .detail-chart-box { height: 220px; }
}

/* Fullscreen-Landscape-Modus für Charts (Mobile drehen) */
.fc-rotate-btn {
    display: none; /* Nur mobile sichtbar */
    padding: 0.3rem 0.6rem; background: var(--blue-a10);
    border: 1px solid var(--blue-a25); border-radius: var(--radius-md);
    color: var(--blue-light); font-size: var(--fs-xs); cursor: pointer; margin-left: auto;
    transition: all 0.2s;
}
.fc-rotate-btn:hover { background: var(--blue-a25); }
@media (max-width: 768px) { .fc-rotate-btn { display: none !important; } }


.fc-card.landscape-mode {
    position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999; border-radius: 0; margin: 0; padding: 0.5rem;
    background: var(--bg-page) !important; overflow-y: auto;
}
.fc-card.landscape-mode .chart-box,
.fc-card.landscape-mode .detail-chart-box {
    height: calc(100vh - 180px) !important;
}
.fc-card.landscape-mode .fc-rotate-btn {
    position: fixed; top: 0.5rem; right: 0.5rem; z-index: 10000;
    background: var(--red-a15); border-color: var(--red-a30); color: var(--red-light);
}

/* ── 14-Tage Trend ── */
.trend-legend { display:flex; flex-wrap:wrap; gap:0.55rem 1rem; padding:0.6rem 0 0.1rem; font-size: var(--fs-xs); color:var(--text-secondary); }
.trend-leg-item { display:flex; align-items:center; gap: var(--space-sm); }
.trend-leg-bar  { width:16px; height:8px; border-radius: var(--radius-sm); flex-shrink:0; }
.ens-panel-label { font-size: var(--fs-xs); color:var(--text-secondary); font-weight:600; padding:0.4rem 0 0.15rem; letter-spacing:0.3px; text-transform:uppercase; }

/* Mobile: Trend-Sektion nur auf Mobile sichtbar */
@media (min-width: 769px) { #sec-trend-mobile { display: none !important; } #sec-langzeit-mobile { display: none !important; } }
@media (max-width: 768px) {
    #expand-trend { display: none !important; }
    #sec-trend-mobile.fc-section-active { display: flex !important; }

    /* Mobile 14-Tage: kein seitliches Padding, Chart nutzt volle Viewport-Breite */
    #sec-trend-mobile { padding: 0.5rem 0 !important; overflow-x: hidden; }
    #sec-trend-mobile .fc-card-header { padding-left: 0.5rem; padding-right: 0.5rem; }
    #sec-trend-mobile .trend-scroll-m { overflow-x: hidden !important; flex: 1; min-width: 0; }
    #sec-trend-mobile .trend-chart-box-m {
        width: 100%;
        height: 420px;
        position: relative;
    }
    #sec-trend-mobile .trend-chart-box-m canvas { width: 100% !important; height: 100% !important; }
    #sec-trend-mobile .trend-legend { padding-left: 0.5rem; padding-right: 0.5rem; justify-content: center; }
}

/* ── fc10: 7-Tage Kacheln ── */
.spinner { width:24px; height:24px; border:2px solid var(--blue-a25); border-top-color:var(--blue); border-radius: var(--radius-full); animation:spin 0.8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.fc10-card { overflow-x: hidden; overflow-y: visible; }
@media (max-width: 480px) {
    .fc10-days { gap: var(--space-sm); flex-wrap: nowrap; }
    .fc10-day { flex: 0 0 85px; min-width: 85px; padding: 0.45rem 0.15rem 0.35rem; }
    .fc10-inline-panel { min-width: 170px; max-width: 195px; }
}
.fc10-info-btn {
    width: 20px; height: 20px; border-radius: var(--radius-full); flex-shrink: 0; cursor: pointer;
    background: var(--glass-light); border: 1px solid var(--glass-hover);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--db-label); transition: all 0.2s; padding: 0; vertical-align: middle;
}
.fc10-info-btn:hover { background: rgba(125,211,252,0.15); color: var(--blue-light); border-color: rgba(125,211,252,0.3); }
.fc10-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 9000;
    background: var(--overlay-heavy); backdrop-filter: blur(3px);
    align-items: center; justify-content: center; padding: 1rem;
}
.fc10-modal-overlay.visible { display: flex; }
.fc10-modal {
    background: var(--bg-tooltip); border: 1.5px solid var(--glass-medium);
    border-radius: var(--radius-lg); padding: 1.4rem 1.5rem 1.25rem; max-width: 460px; width: 100%;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s cubic-bezier(0.22,1,0.36,1);
}
@keyframes modalIn { from { opacity:0; transform:scale(0.95) translateY(-8px); } to { opacity:1; transform:scale(1) translateY(0); } }
.fc10-modal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1rem; padding-bottom:0.75rem; border-bottom:1px solid var(--glass-light); }
.fc10-info-title { font-weight:700; color:var(--text-primary); font-size: var(--fs-md); display:flex; align-items:center; gap: var(--space-sm); }
.fc10-info-close { cursor:pointer; color:var(--text-muted); font-size: var(--fs-xl); line-height:1; padding:0.1rem 0.3rem; border-radius: var(--radius-sm); transition:color 0.15s, background 0.15s; }
.fc10-info-close:hover { color:var(--text-primary); background: var(--glass-medium); }
.fc10-info-grid { display:flex; flex-direction:column; gap: var(--space-lg); }
.fc10-info-row { display:flex; align-items:flex-start; gap: var(--space-md); line-height:1.6; font-size: var(--fs-base); color:var(--text-secondary); }
.fc10-badge { display:inline-flex; align-items:center; padding:0.2rem 0.6rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight:700; white-space:nowrap; flex-shrink:0; letter-spacing:0.2px; }
.fc10-badge-ch { background:var(--red-a15); color:var(--red-light); border:1px solid var(--red-a30); }
.fc10-badge-eu { background:rgba(37,99,235,0.18); color:var(--blue-accent); border:1px solid rgba(37,99,235,0.28); }
.fc10-loader { display:flex; flex-direction:column; align-items:center; gap: var(--space-sm); padding:2.5rem 0; color:var(--text-muted); font-size: var(--fs-sm); }
.fc10-error { text-align:center; padding:1.5rem; color:var(--yellow-dark); font-size: var(--fs-sm); }
.fc10-scroll-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:0.2rem; scrollbar-width:thin; scrollbar-color:var(--blue-a25) transparent; display:flex; justify-content:center; }
.fc10-scroll-wrap::-webkit-scrollbar { height:3px; }
.fc10-scroll-wrap::-webkit-scrollbar-thumb { background:var(--blue-a25); border-radius: var(--radius-sm); }
.fc10-days { display:flex; justify-content:center; gap: var(--space-sm); padding:0.1rem 0.05rem; }
@media (max-width: 768px) {
    .fc10-scroll-wrap { justify-content:flex-start; }
    .fc10-days { justify-content:flex-start; padding:0.1rem 0.5rem 0.1rem 0.1rem; }
}
.fc10-day { flex:1; min-width:100px; max-width:160px; background:var(--bg-tooltip); border:1px solid var(--blue-a40); border-radius: var(--radius-lg); padding:0.65rem 0.5rem 0.55rem; display:flex; flex-direction:column; align-items:center; gap:0; transition:border-color 0.2s,background 0.2s; position:relative; overflow:hidden; cursor:pointer; }
.fc10-day:hover { border-color:var(--blue); background:var(--bg-tooltip); }
.fc10-day.fc10-today {
    border-color: var(--blue-a40) !important;
    background: var(--bg-tooltip) !important;
}
.fc10-day.fc10-today:hover {
    background: var(--bg-tooltip) !important;
    border-color: var(--blue) !important;
}
.fc10-weekday { font-size: var(--fs-md); font-weight:700; color:var(--text-primary); margin-bottom:0.05rem; }
.fc10-date    { font-size: var(--fs-md); font-weight:300; color:var(--text-primary); margin-bottom:0.45rem; letter-spacing:-0.01em; }
.fc10-day.fc10-today .fc10-weekday, .fc10-day.fc10-today .fc10-date { color:var(--blue-light); }
.fc10-icon { font-size: var(--fs-hero); line-height:1; margin-bottom:0.9rem; text-align:center; position:relative; display:flex; align-items:center; justify-content:center; }
.fc10-night-badge { position:absolute; bottom:-4px; right:-6px; width:22px; height:22px; border-radius: var(--radius-full); background:var(--bg-card-solid); border:1.5px solid var(--glass-hover); display:flex; align-items:center; justify-content:center; font-size: var(--fs-sm); line-height:1; }
.fc10-temps { display:flex; flex-direction:column; gap: var(--space-xs); align-items:center; margin-bottom:0.45rem; width:100%; }
.fc10-tmax { font-size: var(--fs-md); font-weight:700; padding:0.14rem 0.4rem; border-radius: var(--radius-md); line-height:1.2; text-align:center; min-width:58px; }
.fc10-tmin { font-size: var(--fs-base); font-weight:600; padding:0.1rem 0.35rem; border-radius: var(--radius-md); line-height:1.2; text-align:center; min-width:58px; }
.fc10-sep { width:70%; height:1px; background:var(--glass-light); margin:0.28rem 0; }
.fc10-wind-row { display:flex; align-items:center; justify-content:center; gap: var(--space-xs); font-size: var(--fs-sm); color:var(--text-secondary); flex-wrap:wrap; }
.fc10-wind-arr { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; flex-shrink:0; }
.fc10-wind-arr svg { width:14px; height:14px; }
.fc10-gust-inline { color:var(--orange-light); font-size: var(--fs-sm); }
.fc10-gust-row,.fc10-uv-row,.fc10-info-box,.fc10-wind-sep,.fc10-precip-prob-row,.fc10-precip-row,.fc10-gust-box,.fc10-snow-row { display:none; }
.fc10-combo-box { display:flex; flex-direction:column; width:100%; margin-top:0.3rem; border-radius: var(--radius-md); overflow:hidden; box-sizing:border-box; }
.fc10-combo-row { display:flex; align-items:center; justify-content:center; gap: var(--space-xs); padding:0.22rem 0.4rem; font-size: var(--fs-md); font-weight:700; background:var(--glass-light); }
.fc10-combo-divider { height:1px; background:rgba(0,0,0,0.25); }
.fc10-combo-prob .fc10-box-val { font-size: var(--fs-xs); font-weight:600; }
.fc10-combo-gust .fc10-box-val { font-size: var(--fs-sm); font-weight:600; }
.fc10-box-val { font-size: var(--fs-md); font-weight:700; }
.fc10-box-unit { font-size: var(--fs-xs); font-weight:500; opacity:0.65; margin-left:0.04rem; align-self:flex-end; padding-bottom:0.1rem; }
.fc10-gust-sym { font-size: var(--fs-base); opacity:0.75; }
.fc10-wind-box .fc10-combo-row { color:var(--text-secondary); background:var(--glass-light); }
.fc10-precip-box .fc10-combo-row { color:var(--blue-light); background:rgba(96,165,250,0.1); }
.fc10-day.fc10-selected {
    border-color: var(--blue) !important;
    /* Hintergrund bewusst nicht blau eingefärbt – das würde mit den
       blauen Temperatur/Wind-Badges verschmelzen. Stattdessen neutraler,
       etwas hellerer Ton und Akzent über die kräftige Border + Glow. */
    background: var(--bg-card-hover) !important;
    box-shadow: 0 0 0 2px var(--blue-a40), 0 4px 12px rgba(0,0,0,0.25);
}
.fc10-day.fc10-selected::after { content:''; position:absolute; bottom:-1px; right:-9px; width:0; height:0; border-top:8px solid transparent; border-bottom:8px solid transparent; border-left:8px solid var(--blue); pointer-events:none; }
@media (max-width: 768px) {
    .fc10-day { width:85px; min-width:85px; padding:0.7rem 0.35rem 0.5rem; }
    .fc10-tmax { font-size: var(--fs-md); font-weight:700; } .fc10-tmin { font-size: var(--fs-base); font-weight:700; }
    .fc10-weekday { font-size: var(--fs-base); font-weight:700; } .fc10-date { font-size: var(--fs-base); font-weight:600; }
    .fc10-box-val { font-weight:700; }
    .fc10-box-unit { font-weight:700; opacity:0.85; }
    .fc10-combo-prob .fc10-box-val,
    .fc10-combo-gust .fc10-box-val { font-weight:700; }
    .fc10-inline-panel { min-width:185px; max-width:215px; }
}
.fc10-inline-panel { display:none; flex-direction:column; background:var(--bg-card-solid); border:1px solid var(--blue-a25); border-radius: var(--radius-lg); padding:0.5rem 0.5rem 0.45rem; min-width:210px; max-width:260px; flex-shrink:0; position:relative; align-self:stretch; overflow-y:auto; overflow-x:hidden; animation:fc10PanelIn 0.25s cubic-bezier(0.22,1,0.36,1); }
.fc10-inline-panel.visible { display:flex; }
#fc10-panel-content::-webkit-scrollbar { display:none; }
@keyframes fc10PanelIn { from { opacity:0; transform:translateX(-12px); } to { opacity:1; transform:translateX(0); } }
.fc10-panel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:0.4rem; padding-bottom:0.35rem; border-bottom:1px solid var(--glass-light); }
.fc10-panel-title { font-size: var(--fs-sm); font-weight:700; color:var(--text-primary); }
.fc10-panel-close { cursor:pointer; color:var(--text-secondary); font-size: var(--fs-lg); line-height:1; padding:0.15rem 0.35rem; border-radius: var(--radius-md); transition:all 0.2s; border:1px solid var(--glass-hover); background:var(--glass-light); flex-shrink:0; }
.fc10-panel-close:hover { color:#fff; background:var(--glass-hover); border-color:var(--glass-hover); }
.fc10-panel-loader { display:flex; align-items:center; justify-content:center; gap: var(--space-sm); padding:2rem 0; color:var(--text-muted); font-size: var(--fs-sm); flex:1; }
.fc10-drawer-overlay,.fc10-drawer { display:none !important; }
.fc10-vlist { width:100%; display:flex; flex-direction:column; gap:0; }
.fc10-vlist-header { display:grid; grid-template-columns:72px 44px 1fr 48px; gap:0; column-gap: var(--space-sm); padding:0.15rem 0.3rem 0.3rem; font-size: var(--fs-xs); font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.4px; border-bottom:1px solid var(--glass-light); margin-bottom:0.05rem; }
.fc10-vlist-header span:nth-child(3),.fc10-vlist-header span:nth-child(4) { text-align:center; }
.fc10-vrow { display:grid; grid-template-columns:72px 44px 1fr 48px; gap:0; column-gap: var(--space-sm); align-items:center; padding:0.28rem 0.3rem; border-radius: var(--radius-md); transition:background 0.15s; }
.fc10-vrow:hover { background:var(--glass-light); }
.fc10-vrow-now { background:var(--blue-a10) !important; border:1px solid var(--blue-a25); }
.fc10-vrow-time { display:flex; align-items:center; gap: var(--space-sm); }
.fc10-vrow-clock { font-size: var(--fs-sm); font-weight:600; color:var(--text-secondary); white-space:nowrap; min-width:22px; }
.fc10-vrow-now .fc10-vrow-clock { color:var(--blue-light); }
.fc10-vrow-icon { font-size: var(--fs-lg); line-height:1; }
.fc10-vrow-temp { font-size: var(--fs-sm); font-weight:700; padding:0.14rem 0.3rem; border-radius: var(--radius-sm); text-align:center; white-space:nowrap; display:inline-block; }
.fc10-vrow-wind { display:flex; align-items:center; justify-content:center; gap: var(--space-xs); font-size: var(--fs-sm); }
.fc10-vrow-wspd { color:var(--text-secondary); white-space:nowrap; }
.fc10-vrow-gust { color:var(--orange-light); font-size: var(--fs-xs); white-space:nowrap; }
.fc10-vrow-rain { font-size: var(--fs-sm); color:var(--blue-light); text-align:center; white-space:nowrap; }
.fc10-h-scroll,.fc10-h-table { display:none; }

/* ── DWD Wetterkarte Zeitschritt-Tabs ── */
.dwd-tab {
    padding: 0.35rem 0.8rem; border-radius: 5px; font-size: var(--fs-sm); font-weight: 700;
    border: 1px solid var(--border-light); background: var(--glass-light);
    color: var(--text-muted); cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.dwd-tab:hover { background: var(--blue-a10); color: var(--text-primary); }
.dwd-tab.active { background: var(--blue-a25); border-color: var(--blue); color: var(--blue-accent); }


/* ============================================================================
   LIGHT THEME OVERRIDES – Vorhersage-Tabs
   Aktive Tab-Farben kräftiger für hellen Hintergrund
   ============================================================================ */
:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-trend"].fc-active .fc-mini-icon,
:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-trend"].fc-active .fc-mini-title { color: var(--green-dark) !important; }

:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-modellvergleich"].fc-active .fc-mini-icon,
:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-modellvergleich"].fc-active .fc-mini-title { color: var(--purple-dark) !important; }

:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-multimodell"].fc-active .fc-mini-icon,
:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-multimodell"].fc-active .fc-mini-title { color: var(--orange) !important; }

:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-wetterkarte"].fc-active .fc-mini-icon,
:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-wetterkarte"].fc-active .fc-mini-title { color: var(--yellow-dark) !important; }

:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-langzeit"] .fc-mini-icon,
:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-langzeit"] .fc-mini-title { color: var(--purple) !important; }
:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-langzeit"].fc-active .fc-mini-icon,
:root.light .forecast-page .fc-topbar .fc-mini[data-expand-target="expand-langzeit"].fc-active .fc-mini-title { color: var(--purple-dark) !important; }

:root.light .forecast-page .fc-mobile-tile[data-section="langzeit"] .fc-tile-icon,
:root.light .forecast-page .fc-mobile-tile[data-section="langzeit"] .fc-tile-label { color: var(--purple) !important; }
:root.light .forecast-page .fc-mobile-tile[data-section="langzeit"].active .fc-tile-icon,
:root.light .forecast-page .fc-mobile-tile[data-section="langzeit"].active .fc-tile-label { color: var(--purple-dark) !important; }

/* Mobile-Tiles: Light-Theme aktive Farben kräftiger */
:root.light .forecast-page .fc-mobile-tile[data-section="trend"].active .fc-tile-icon,
:root.light .forecast-page .fc-mobile-tile[data-section="trend"].active .fc-tile-label { color: var(--green-dark) !important; }

:root.light .forecast-page .fc-mobile-tile[data-section="modelle"].active .fc-tile-icon,
:root.light .forecast-page .fc-mobile-tile[data-section="modelle"].active .fc-tile-label { color: var(--purple-dark) !important; }

:root.light .forecast-page .fc-mobile-tile[data-section="overlay"].active .fc-tile-icon,
:root.light .forecast-page .fc-mobile-tile[data-section="overlay"].active .fc-tile-label { color: var(--orange) !important; }

:root.light .forecast-page .fc-mobile-tile[data-section="karten"].active .fc-tile-icon,
:root.light .forecast-page .fc-mobile-tile[data-section="karten"].active .fc-tile-label { color: var(--yellow-dark) !important; }
