*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid #79b8ff !important;
    outline-offset: 2px;
}

html, body {
    height: 100%;
    background: #0d1117;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e6edf3;
    overflow: hidden;
}

/* ── Karten-Container (flex für Split-Screen) ── */
#map-wrap {
    position: absolute; inset: 0;
    display: block;
}
#map  { position:absolute; inset:0; }
#map2 { position:absolute; inset:0; display:none; pointer-events:none; }
body.split-active #map2 { display:block; clip-path:inset(0 0 0 50%); }
#compare-swipe-ui { position:fixed; inset:44px 0 0; z-index:17; pointer-events:none; }
#compare-swipe-slider { position:absolute; left:8%; right:8%; bottom:62px; width:84%; pointer-events:auto; accent-color:#f0f6fc; }
#compare-swipe-line { position:absolute; top:0; bottom:0; left:50%; width:2px; background:#fff; box-shadow:0 0 8px rgba(0,0,0,.8); transform:translateX(-1px); }
#compare-left-label,#compare-right-label { position:absolute; top:12px; padding:5px 9px; border-radius:7px; background:rgba(13,17,23,.82); border:1px solid rgba(255,255,255,.16); font-size:11px; font-weight:700; }
#compare-left-label { left:12px; } #compare-right-label { right:12px; }

/* ── Header ── */
#header {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 44px;
    background: rgba(13,17,23,0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center;
    padding: 0 12px; gap: 10px; z-index: 20;
}
#header-title { font-size: 14px; font-weight: 600; letter-spacing: 0.3px; color: #f0f6fc; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#header-time  { font-size: 12px; color: #8b949e; white-space: nowrap; }

#hamburger {
    display: none;
    background: none; border: 1px solid rgba(255,255,255,0.15);
    color: #8b949e; font-size: 15px;
    padding: 3px 7px; border-radius: 5px; cursor: pointer;
    flex-shrink: 0;
}
#hamburger:hover { color: #f0f6fc; background: rgba(255,255,255,0.06); }

#legend-collapse-btn {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: #c9d1d9;
    cursor: pointer;
}

#wx-pro-details {
    margin: 8px 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    overflow: hidden;
}
#wx-pro-details > summary {
    padding: 9px 10px;
    color: #9da7b3;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    list-style-position: inside;
}
#wx-pro-details[open] > summary { border-bottom: 1px solid rgba(255,255,255,.08); }
.wxc-source-badge { display:inline-block; margin-top:5px; padding:2px 6px; border-radius:999px; font-size:9px; font-weight:700; }
.wxc-source-badge.official { color:#fff; background:#b42318; }
.wxc-source-badge.model { color:#b8c2cc; background:rgba(139,148,158,.14); border:1px solid rgba(139,148,158,.22); }

/* Split-Button */
#split-btn, #time-travel-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    color: #8b949e; font-size: 11px; font-weight: 500;
    padding: 4px 8px; border-radius: 5px; cursor: pointer;
    white-space: nowrap; flex-shrink: 0; transition: background 0.15s, color 0.15s;
}
#split-btn:hover, #time-travel-btn:hover { color: #58a6ff; background: rgba(88,166,255,0.12); border-color: rgba(88,166,255,0.4); }
#split-btn.active, #time-travel-btn.active { color: #58a6ff; background: rgba(88,166,255,0.18); border-color: rgba(88,166,255,0.55); }

/* ── Ortssuche ── */
#search-wrap {
    display: flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px; overflow: visible;
    flex-shrink: 0;
    position: relative;
}
#search-input {
    background: none; border: none; outline: none;
    color: #e6edf3; font-size: 12px;
    padding: 4px 8px; width: 150px;
}
#search-input::placeholder { color: #6e7681; }
#search-btn {
    background: none; border: none; color: #8b949e;
    font-size: 13px; padding: 4px 7px; cursor: pointer;
    transition: color 0.15s;
}
#search-btn:hover { color: #58a6ff; }

/* Autocomplete-Dropdown */
.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    min-width: 220px;
    background: #1c2128;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 7px;
    z-index: 200;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.search-suggestion-item {
    padding: 7px 11px;
    font-size: 12px;
    color: #c9d1d9;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.1s;
}
.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: rgba(88,166,255,0.12);
    color: #58a6ff;
}

#mobile-search-bar {
    position: relative;
}
#mobile-search-suggestions {
    min-width: 100%;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 16px 2px 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: 10px;
}
.legal-links a { color: #8b949e; text-decoration: none; }
.legal-links a:hover, .legal-links a:focus-visible { color: #79b8ff; text-decoration: underline; }

/* ── Steuerfeld ── */
#controls {
    position: absolute;
    top: 56px; right: 12px;
    width: 276px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: rgba(22,27,34,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 12px 12px 10px;
    z-index: 20;
    display: flex; flex-direction: column; gap: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
    transition: right 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
#controls::-webkit-scrollbar { width: 4px; }
#controls::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

#controls.controls-left {
    top: 112px;
    left: 12px;
    right: auto;
    max-height: calc(100vh - 124px);
}
body.has-favorites #controls:not(.controls-left) { top: 84px; max-height: calc(100vh - 96px); }
body.has-favorites #controls.controls-left { top: 140px; max-height: calc(100vh - 152px); }
body:not(.controls-minimized):has(#controls.controls-left) #legend,
body:not(.controls-minimized):has(#controls.controls-left) #radar-legend { left: 300px; }

body.split-active #controls { right: 12px; }

/* ── Split-Steuerfeld rechts ── */
#split-controls {
    position: absolute;
    top: 56px; right: 12px;
    width: 240px;
    background: rgba(22,27,34,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 12px 14px 10px;
    z-index: 20;
    display: none; flex-direction: column; gap: 8px;
}
body.split-active #split-controls { display: none; }

#meta2 { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 6px; }
#valid-time-label2 { font-size: 11px; color: #8b949e; line-height: 1.5; }

.control-group { display: flex; flex-direction: column; gap: 5px; }

.control-label {
    font-size: 11px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.6px; color: #8b949e;
}

/* Einrückung für ICON-D2-Unterelemente */
.icon-d2-sub { padding-left: 2px; margin-top: 4px; }

.slider-row { display: flex; align-items: center; gap: 8px; }
.slider-row input[type=range] {
    flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
    background: rgba(255,255,255,0.15); border-radius: 2px; outline: none; cursor: pointer;
}
.slider-row input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px;
    background: #58a6ff; border-radius: 50%;
    box-shadow: 0 0 6px rgba(88,166,255,0.5); cursor: pointer; transition: transform 0.1s;
}
.slider-row input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slider-value { font-size: 12px; font-weight: 600; color: #58a6ff; min-width: 36px; text-align: right; }

/* ── Animations-Zeile ── */
.anim-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
#play-btn {
    background: rgba(88,166,255,0.15);
    border: 1px solid rgba(88,166,255,0.35);
    color: #58a6ff; font-size: 13px;
    width: 28px; height: 28px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.1s; flex-shrink: 0;
}
#play-btn:hover { background: rgba(88,166,255,0.28); transform: scale(1.08); }
#play-btn.playing { background: rgba(88,166,255,0.28); border-color: #58a6ff; }
.anim-hint { font-size: 10px; color: #8b949e; }

#meta { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 6px; margin-top: 4px; }
#model-run-label, #valid-time-label { font-size: 11px; color: #8b949e; line-height: 1.5; }

/* Variable-Selector (Split-Screen) */
#var-select2 {
    width: 100%; background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
    color: #e6edf3; font-size: 12px; padding: 5px 8px;
    cursor: pointer; outline: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b949e'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center;
    padding-right: 24px;
}
#var-select2:hover { border-color: rgba(88,166,255,0.4); }
#var-select2:focus { border-color: rgba(88,166,255,0.6); }
#var-select2 option, #var-select2 optgroup {
    background: #1c2128; color: #e6edf3; font-size: 12px;
}

#refresh-btn {
    background: rgba(88,166,255,0.12); border: 1px solid rgba(88,166,255,0.3);
    color: #58a6ff; font-size: 12px; font-weight: 500;
    padding: 5px 10px; border-radius: 6px; cursor: pointer;
    transition: background 0.15s, border-color 0.15s; text-align: center;
    margin-top: 4px;
}
#refresh-btn:hover { background: rgba(88,166,255,0.22); border-color: rgba(88,166,255,0.6); }

/* ── Layer-Panel ── */
.layers-group { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 8px; }

details { margin-bottom: 2px; }
details[open] { margin-bottom: 6px; }

/* Kategorie-Überschriften (Prognose / Live / Vergangenheit) */
.layer-cat-title {
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.7px;
    color: #e6edf3;
    padding: 10px 0 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; gap: 6px;
    user-select: none;
}
.layer-cat-title:first-of-type { border-top: none; margin-top: 0; padding-top: 4px; }

/* Haupt-Gruppen-Titel (Radar, Warnungen, etc.) */
summary.layer-group-title {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #6e7681; cursor: pointer; list-style: none;
    display: flex; align-items: center; gap: 5px;
    padding: 5px 0 5px; border-bottom: 1px solid rgba(255,255,255,0.06);
    user-select: none;
}
summary.layer-group-title::before { content: '▶'; font-size: 8px; transition: transform 0.15s; }
details[open] > summary.layer-group-title::before { transform: rotate(90deg); }
summary::-webkit-details-marker { display: none; }

/* Unterkategorie-Titel innerhalb ICON-D2 */
summary.layer-sub-title {
    font-size: 9.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
    color: #8b949e; cursor: pointer; list-style: none;
    display: flex; align-items: center; gap: 4px;
    padding: 4px 0 3px 6px;
    user-select: none; margin-top: 3px;
}
summary.layer-sub-title::before { content: '▸'; font-size: 8px; transition: transform 0.15s; }
details[open] > summary.layer-sub-title::before { transform: rotate(90deg); }

.layer-toggle-row { display: flex; align-items: center; gap: 9px; padding: 2px 0 2px 4px; }

.layer-toggle-label {
    font-size: 11.5px; font-weight: 500; color: #c9d1d9;
    cursor: pointer; user-select: none; transition: color 0.2s, text-shadow 0.2s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.layer-toggle-label.label--warn {
    color: #f78166;
    text-shadow: 0 0 8px rgba(247,129,102,0.4);
}

#eps-prob-threshold {
    background: #0d1117;
    color: #c9d1d9;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    font-size: 11px;
    padding: 2px 6px;
    cursor: pointer;
}
.eps-prob-hint {
    font-size: 10px; color: #6e7681;
    padding: 2px 0 4px 4px; line-height: 1.4;
}

/* Toggle-Switch */
.toggle-switch-wrap {
    position: relative; display: inline-block;
    width: 30px; height: 16px; flex-shrink: 0; cursor: pointer;
}
.toggle-switch-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.10); border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12); transition: background 0.2s, border-color 0.2s;
}
.toggle-track::after {
    content: ''; position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px; background: #8b949e; border-radius: 50%;
    transition: left 0.18s, background 0.18s;
}
.toggle-switch-wrap input:checked + .toggle-track { background: rgba(88,166,255,0.25); border-color: rgba(88,166,255,0.55); }
.toggle-switch-wrap input:checked + .toggle-track::after { left: 16px; background: #58a6ff; }
.toggle-switch-wrap input:checked + .toggle-track--warn { background: rgba(247,129,102,0.22); border-color: rgba(247,129,102,0.55); }
.toggle-switch-wrap input:checked + .toggle-track--warn::after { left: 16px; background: #f78166; }
.toggle-switch-wrap input:checked + .toggle-track--model { background: rgba(188,140,255,0.22); border-color: rgba(188,140,255,0.5); }
.toggle-switch-wrap input:checked + .toggle-track--model::after { left: 16px; background: #bc8cff; }
.toggle-switch-wrap input:checked + .toggle-track--obs { background: rgba(210,153,34,0.22); border-color: rgba(210,153,34,0.5); }
.toggle-switch-wrap input:checked + .toggle-track--obs::after { left: 16px; background: #d2a520; }
.toggle-switch-wrap input:checked + .toggle-track--sat { background: rgba(163,113,247,0.22); border-color: rgba(163,113,247,0.5); }
.toggle-switch-wrap input:checked + .toggle-track--sat::after { left: 16px; background: #a371f7; }
.toggle-switch-wrap input:checked + .toggle-track--pollen { background: rgba(63,185,80,0.22); border-color: rgba(63,185,80,0.5); }
.toggle-switch-wrap input:checked + .toggle-track--pollen::after { left: 16px; background: #3fb950; }

/* ── Hover-Temperatur HUD ── */
#hover-tooltip {
    position: fixed;
    bottom: 14px; right: 14px;
    pointer-events: none;
    background: rgba(22, 27, 34, 0.88);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 7px; padding: 4px 10px;
    font-size: 12px; font-weight: 600; z-index: 30;
    color: #e6edf3; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
#hover-tooltip.hidden { display: none; }

/* ── Legende ── */
#legend {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    background: rgba(22,27,34,0.88); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 12px 10px; z-index: 20;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.legend-varname { font-size: 10px; font-weight: 700; color: #e6edf3; text-align: center; max-width: 72px; line-height: 1.2; margin-bottom: 2px; }
.legend-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #8b949e; }
#legend-inner { display: flex; align-items: stretch; gap: 4px; }
#legend-canvas { border-radius: 3px; width: 20px; height: 200px; }
#legend-labels { position: relative; height: 200px; width: 32px; }
#legend-labels span { position: absolute; right: 0; font-size: 10px; color: #c9d1d9; transform: translateY(50%); white-space: nowrap; }

/* ── Isobarenlinien-Labels ── */
.isobar-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 0 3px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.7);
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

#legend-accum-badge {
    font-size: 9px;
    font-weight: 600;
    color: #d29922;
    background: rgba(210,153,34,0.12);
    border: 1px solid rgba(210,153,34,0.3);
    border-radius: 4px;
    padding: 2px 5px;
    text-align: center;
    white-space: nowrap;
    max-width: 80px;
    line-height: 1.3;
}

/* ── Regenradar-Legende ── */
#radar-legend {
    position: absolute; left: 12px; top: calc(50% + 150px);
    background: rgba(22,27,34,0.88); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 10px 10px; z-index: 20;
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    min-width: 100px;
}
#radar-legend.hidden { display: none; }
#radar-legend-inner { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.radar-row { display: flex; align-items: center; gap: 6px; }
.radar-swatch { width: 14px; height: 11px; border-radius: 2px; flex-shrink: 0; }
.radar-label { font-size: 9.5px; color: #c9d1d9; white-space: nowrap; }

/* ── MOSMIX-Panel ── */
/* ── Wettervorhersage-Panel (rechte Seite) ── */
#wx-panel {
    position: absolute;
    top: 44px; right: 0; bottom: 0;
    width: 360px;
    background: rgba(13,17,23,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid rgba(255,255,255,0.10);
    z-index: 25;
    display: flex; flex-direction: column;
    overflow: hidden;
}
#wx-panel.hidden { display: none; }

#wx-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px 6px; border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0; gap: 8px;
}
#wx-loc-name  { font-size: 13px; font-weight: 600; color: #e6edf3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wx-loc-coords { font-size: 10px; color: #6e7681; }
#wx-panel-close {
    background: none; border: none; color: #8b949e; font-size: 15px;
    cursor: pointer; padding: 2px 5px; border-radius: 4px; flex-shrink: 0;
}
#wx-panel-close:hover { color: #f0f6fc; background: rgba(255,255,255,0.08); }

/* Scrollbarer Inhaltsbereich unterhalb des Headers */
#wx-content {
    flex: 1; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Tab-Leiste */
.wx-tab-bar {
    display: flex; border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky; top: 0; z-index: 1;
    background: rgba(13,17,23,0.98);
}
.wx-tab {
    flex: 1; background: none; border: none; padding: 7px 4px;
    font-size: 11px; font-weight: 500; color: #8b949e;
    cursor: pointer; border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.wx-tab:hover  { color: #c9d1d9; }
.wx-tab.active { color: #58a6ff; border-bottom-color: #58a6ff; }

.wx-detail-label {
    padding: 8px 12px 4px;
    font-size: 9px;
    font-weight: 800;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-top: 1px solid rgba(255,255,255,0.08);
}

#wx-cockpit {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wx-cockpit-loading {
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    background: rgba(255,255,255,0.035);
    color: #8b949e;
    font-size: 11px;
}
.wxc-hero {
    border: 1px solid rgba(255,255,255,0.10);
    border-left-width: 4px;
    border-radius: 7px;
    padding: 10px 11px;
    background: rgba(255,255,255,0.045);
}
.wxc-hero-main { display: flex; gap: 9px; align-items: flex-start; }
.wxc-hero-icon { font-size: 25px; line-height: 1; flex-shrink: 0; }
.wxc-hero-title { color: #e6edf3; font-size: 14px; font-weight: 800; line-height: 1.25; }
.wxc-hero-desc { color: #8b949e; font-size: 11px; line-height: 1.35; margin-top: 2px; }
.wxc-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 9px;
}
.wxc-kpi {
    min-width: 0;
    padding: 5px 6px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    background: rgba(13,17,23,0.55);
}
.wxc-kpi-label { color: #6e7681; font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wxc-kpi-value { color: #e6edf3; font-size: 12px; font-weight: 750; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wxc-section {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    background: rgba(13,17,23,0.62);
    overflow: hidden;
}
.wxc-section-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 8px 10px 6px;
    color: #c9d1d9;
    font-size: 11px;
    font-weight: 800;
}
.wxc-section-sub { color: #6e7681; font-size: 9px; font-weight: 600; }
.wxc-cells-list, .wxc-analog-body { padding: 0 10px 10px; }
.wxc-cell {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.wxc-cell:first-child { border-top: none; padding-top: 0; }
.wxc-cell-icon { font-size: 19px; line-height: 1.2; text-align: center; }
.wxc-cell-title { color: #e6edf3; font-size: 11px; font-weight: 800; }
.wxc-cell-meta { color: #8b949e; font-size: 10px; line-height: 1.35; margin-top: 2px; }
.wxc-cell-advice { color: #f2cc60; font-size: 9.5px; margin-top: 3px; }
.wxc-analog-card {
    padding: 9px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.wxc-analog-title { display: flex; justify-content: space-between; gap: 8px; color: #e6edf3; font-size: 11px; font-weight: 800; }
.wxc-analog-summary { color: #8b949e; font-size: 10px; line-height: 1.35; margin-top: 5px; }
.wxc-empty { color: #6e7681; font-size: 10.5px; line-height: 1.4; }

/* Tab-Inhalte */
.wx-pane {
    overflow-x: hidden;
}
.wx-pane.hidden { display: none; }

/* ── 7-Tage-Karten (Open-Meteo) ── */
#wx-oe-daily {
    display: flex; gap: 4px; padding: 8px 10px 6px;
    overflow-x: auto; flex-shrink: 0; scrollbar-width: none;
}
#wx-oe-daily::-webkit-scrollbar { display: none; }
.wx-dc {
    flex-shrink: 0; width: 52px; background: rgba(255,255,255,0.05);
    border-radius: 7px; padding: 5px 3px; text-align: center;
    border: 1px solid rgba(255,255,255,0.07);
}
.wx-dc-dow  { font-size: 10px; font-weight: 600; color: #8b949e; }
.wx-dc-dat  { font-size: 8.5px; color: #8b949e; margin-bottom: 2px; }
.wx-dc-icon { font-size: 16px; line-height: 1.3; }
.wx-dc-temps { font-size: 10px; display: flex; justify-content: center; gap: 3px; margin-top: 2px; }
.wx-dc-max  { color: #f97316; font-weight: 600; }
.wx-dc-min  { color: #60a5fa; }
.wx-dc-prec { font-size: 9px; color: #58a6ff; margin-top: 1px; min-height: 12px; }
.wx-dc-wind { font-size: 8.5px; color: #8b949e; margin-top: 1px; }

/* Chart-Container */
.wx-chart-box { padding: 0 4px 4px; }
.wx-chart-title { font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; color: #8b949e; padding: 6px 8px 2px; }

/* Modell-Legende */
.wx-model-legend {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 8px 10px 4px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wx-model-entry { display: flex; align-items: center; gap: 4px; }
.wx-model-dot   { width: 10px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.wx-model-lbl   { font-size: 10px; color: #8b949e; }

/* SigWx-Legende */
.sigwx-legend {
    display: grid; grid-template-columns: 14px 1fr 14px 1fr;
    gap: 3px 6px; padding: 4px 8px 8px; align-items: center;
}
.sigwx-swatch {
    width: 14px; height: 10px; border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.15);
}
.sigwx-legend span { font-size: 10px; color: #8b949e; }

/* ── H/T Druckzentren-Marker ─────────────────────────────── */
.pc-marker {
    display: flex; flex-direction: column; align-items: center;
    line-height: 1; pointer-events: none; user-select: none;
    text-shadow: 0 0 4px rgba(0,0,0,0.7), 0 0 8px rgba(0,0,0,0.5);
}
.pc-letter {
    font-size: 22px; font-weight: 900; letter-spacing: -1px;
}
.pc-hpa {
    font-size: 10px; font-weight: 700; margin-top: -2px;
    background: rgba(0,0,0,0.45); border-radius: 3px; padding: 0 3px;
}
.pc-h .pc-letter { color: #42a5f5; }
.pc-h .pc-hpa    { color: #90caf9; }
.pc-t .pc-letter { color: #ef5350; }
.pc-t .pc-hpa    { color: #ffcdd2; }

/* ── Synoptik-Button ─────────────────────────────────────── */
.syno-btn {
    width: 100%; margin: 4px 0 2px; padding: 6px 8px;
    background: rgba(88,166,255,0.12); border: 1px solid rgba(88,166,255,0.3);
    border-radius: 6px; color: #58a6ff; font-size: 11px; font-weight: 600;
    cursor: pointer; text-align: left; transition: background 0.15s;
}
.syno-btn:hover { background: rgba(88,166,255,0.22); }

/* ── Tägliche Wolkenkürzel ───────────────────────────────── */
.wx-dc-cloud {
    font-size: 9px; font-weight: 700; color: #58a6ff;
    margin-top: 2px; text-align: center; letter-spacing: 0.2px;
    white-space: nowrap; overflow: hidden; text-overflow: clip;
}

/* ── Phänomen-Streifen (48h Wolkentypen) ─────────────────── */
#wx-oe-phenom {
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 4px 6px 6px; background: rgba(0,0,0,0.15);
}
.wx-phenom-strip {
    display: flex; gap: 3px; overflow-x: auto;
    scrollbar-width: none; padding-bottom: 2px;
}
.wx-phenom-strip::-webkit-scrollbar { display: none; }
.ph-cell {
    flex-shrink: 0; width: 36px; text-align: center;
    cursor: default;
}
.ph-time {
    font-size: 9px; color: #8b949e; margin-bottom: 2px;
}
.ph-clouds {
    display: flex; flex-direction: column; gap: 1px;
    margin-bottom: 3px; height: 18px; justify-content: flex-end;
}
.ph-cbar {
    height: 5px; border-radius: 1px; min-opacity: 0.05;
}
.ph-type {
    font-size: 9px; font-weight: 700; color: #58a6ff;
    white-space: nowrap; overflow: hidden; text-overflow: clip;
}

/* MOSMIX-Inhalte (bestehende Klassen bleiben erhalten) */
#mosmix-station { font-size: 12px; color: #c9d1d9; padding: 8px 12px 4px; }
.mosmix-dist    { font-size: 10px; color: #8b949e; }
#mosmix-hourly-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }
#mosmix-hourly { display: flex; padding: 4px 10px 8px; gap: 2px; align-items: flex-end; }

/* ICON-D2 vs MOSMIX Vergleich */
#mosmix-icon-compare {
    padding: 4px 12px 3px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
#mosmix-icon-compare.hidden { display: none; }
.icon-compare-title { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #8b949e; margin-bottom: 3px; }
.icon-compare-points { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-pt { font-size: 9.5px; color: #8b949e; background: rgba(255,255,255,0.05); border-radius: 3px; padding: 1px 4px; white-space: nowrap; }

/* Tages-Karten (MOSMIX-Tab) */
#mosmix-daily {
    display: flex; gap: 4px; padding: 6px 10px 4px;
    overflow-x: auto; flex-shrink: 0; scrollbar-width: none;
}
#mosmix-daily::-webkit-scrollbar { display: none; }

.day-card {
    flex-shrink: 0; width: 58px; background: rgba(255,255,255,0.05);
    border-radius: 7px; padding: 5px 4px; text-align: center;
    border: 1px solid rgba(255,255,255,0.07);
}
.day-dow  { font-size: 10px; font-weight: 600; color: #8b949e; }
.day-dat  { font-size: 9px;  color: #8b949e; margin-bottom: 2px; }
.day-icon { font-size: 16px; line-height: 1.3; }
.day-temps { font-size: 10px; display: flex; justify-content: center; gap: 3px; margin-top: 2px; }
.temp-max  { color: #f97316; font-weight: 600; }
.temp-min  { color: #60a5fa; }
.day-precip { margin-top: 2px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; font-size: 9px; color: #58a6ff; }
.prec-bar  { background: #3b82f6; border-radius: 1px; min-height: 2px; }
.day-wind  { font-size: 9px; color: #8b949e; margin-top: 2px; }
.day-anom  { font-size: 8.5px; font-weight: 600; margin-top: 1px; }

/* Stündliche Vorhersage (MOSMIX-Tab — Höhe nun durch wx-pane gesteuert) */
.hour-cell {
    flex-shrink: 0; width: 38px; display: flex; flex-direction: column;
    align-items: center; gap: 1px; padding: 3px 1px;
    border-radius: 5px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.hour-cell.night { background: rgba(0,0,0,0.2); }
.hour-time  { font-size: 9px; color: #6e7681; font-weight: 500; }
.hour-icon  { font-size: 13px; line-height: 1.2; }
.hour-temp  { font-size: 10px; font-weight: 600; color: #e2b714; }
.hour-dew   { font-size: 9px; color: #60a5fa; }
.hour-wind  { font-size: 9px; color: #8b949e; }
.h-prec-bar { width: 16px; background: #3b82f6; border-radius: 2px 2px 0 0; min-height: 0; }

/* ── Modell-Switcher Pills ── */
#model-switcher { padding: 6px 10px 2px; }
.model-switch-pills {
    display: flex; gap: 6px;
}
.model-pill {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04); color: #8b949e;
    font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s;
    line-height: 1.2;
}
.model-pill:hover { background: rgba(255,255,255,0.08); color: #c9d1d9; }
.model-pill.active {
    background: rgba(88,166,255,0.15); border-color: rgba(88,166,255,0.5);
    color: #58a6ff;
}
.model-pill-sub { font-size: 10px; font-weight: 400; color: inherit; opacity: 0.7; }

/* ── Modus-Reset-Pill ── */
.mode-pill-reset {
    background: rgba(248,81,73,0.08) !important;
    border-color: rgba(248,81,73,0.25) !important;
    color: #f85149 !important;
}
.mode-pill-reset:hover { background: rgba(248,81,73,0.18) !important; }

/* ── CAP-Popup ── */
.cap-popup  { font-size: 13px; }
.cap-event  { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cap-headline { font-weight: 600; color: #f0f6fc; margin-bottom: 5px; }
.cap-desc   { font-size: 11px; color: #8b949e; line-height: 1.5; max-height: 100px; overflow-y: auto; margin-bottom: 5px; }
.cap-time   { font-size: 10px; color: #6e7681; }

/* ── KONRAD3D-Popup ── */
.k3d-popup-wrap .maplibregl-popup-content { padding: 0; background: #161b22; border: 1px solid #30363d; border-radius: 8px; }
.k3d-popup { font-size: 12px; color: #c9d1d9; min-width: 260px; max-width: 310px; }
.k3d-header { display: flex; justify-content: space-between; align-items: baseline;
    padding: 8px 10px 4px; border-bottom: 1px solid #21262d; flex-wrap: wrap; gap: 4px; }
.k3d-sev { font-weight: 700; font-size: 13px; }
.k3d-id  { font-size: 11px; color: #8b949e; }
.k3d-flags { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px 10px; border-bottom: 1px solid #21262d; }
.k3d-flag--active { background: #21262d; border: 1px solid #30363d; border-radius: 4px;
    padding: 1px 5px; font-size: 11px; white-space: nowrap; }
.k3d-section { font-size: 10px; font-weight: 600; color: #8b949e; text-transform: uppercase;
    letter-spacing: .05em; padding: 5px 10px 2px; border-top: 1px solid #21262d; }
.k3d-table { width: 100%; border-collapse: collapse; margin: 0 0 2px; }
.k3d-table td { padding: 2px 10px; vertical-align: top; }
.k3d-table td:first-child { color: #8b949e; white-space: nowrap; width: 50%; }
.k3d-table td:last-child  { color: #f0f6fc; font-weight: 500; }
.k3d-track-info { font-size: 11px; color: #8b949e; padding: 3px 10px 4px; }
.k3d-time { font-size: 10px; color: #6e7681; padding: 4px 10px 8px; border-top: 1px solid #21262d; }

/* ── SYNOP / Mesozyklone Popup ── */
.synop-popup { padding: 6px 0; min-width: 180px; }
.synop-station { font-size: 12px; font-weight: 700; color: #e6edf3; padding: 0 10px 2px; }
.synop-time    { padding: 0 10px 4px; }

/* ── Blitz-Live Status ── */
.lightning-live-status {
    font-size: 9px; color: #f78166; margin-left: auto;
    animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* ── Spinner ── */
#spinner {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: rgba(13,17,23,0.65); backdrop-filter: blur(4px); z-index: 50;
}
#spinner.hidden { display: none; }
.spinner-ring {
    width: 44px; height: 44px;
    border: 3px solid rgba(88,166,255,0.2); border-top-color: #58a6ff;
    border-radius: 50%; animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-text { font-size: 13px; color: #8b949e; }
.spinner-sub  { font-size: 11px; color: #8b949e; }

/* ── Fehlermeldung ── */
#error-banner {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(218,54,51,0.92); color: #fff;
    padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 50;
    display: flex; align-items: center; gap: 12px; max-width: 480px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
#error-banner.hidden { display: none; }
#error-retry {
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
    color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 5px;
    cursor: pointer; white-space: nowrap;
}
#error-retry:hover { background: rgba(255,255,255,0.35); }

/* ── MapLibre Dark Theme ── */
.maplibregl-popup-content {
    background: rgba(22,27,34,0.96) !important; color: #e6edf3 !important;
    border: 1px solid rgba(255,255,255,0.12) !important; border-radius: 8px !important;
    padding: 10px 14px !important; font-size: 13px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6) !important; backdrop-filter: blur(8px);
    max-height: 320px; overflow-y: auto;
}
.maplibregl-popup-tip { border-top-color: rgba(22,27,34,0.96) !important; }
.maplibregl-popup-close-button { color: #8b949e !important; font-size: 16px !important; top: 4px !important; right: 6px !important; }
.popup-temp   { font-size: 22px; font-weight: 700; color: #f0f6fc; line-height: 1.2; }
.popup-coords { font-size: 11px; color: #8b949e; margin-top: 3px; }
.maplibregl-ctrl-attrib { background: rgba(13,17,23,0.75) !important; color: #8b949e !important; font-size: 10px !important; }
.maplibregl-ctrl-attrib a { color: #58a6ff !important; }

/* ── Mobile ── */
@media (max-width: 640px) {
    #legend-collapse-btn { display: block; }
    #legend { max-height: min(42vh, 310px); }
    #legend.legend-collapsed { width: 118px; min-height: 38px; padding-right: 34px; }
    #legend.legend-collapsed #legend-inner,
    #legend.legend-collapsed #legend-unit,
    #legend.legend-collapsed #legend-accum-badge { display: none !important; }
    #header button, #hamburger { min-width: 40px; min-height: 40px; }
    #wx-panel-head button { min-width: 40px; min-height: 40px; }
    #hamburger { display: flex; }
    #header-title { font-size: 12px; }
    #header-time { display: none; }
    #search-wrap { display: none; }
    #split-btn, #time-travel-btn { display: none; }
    body.split-active #controls { right: 0; }
    #split-controls { display: none !important; }
    #legend { left: 6px; }
    #radar-legend { left: 6px; }
    #hover-tooltip { bottom: 8px; right: 8px; font-size: 11px; }
    .anim-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ── Standort-Insights, Vertrauen und Ereignis-Timeline ───────── */
.location-insights-card { margin:8px 0; padding:10px; border:1px solid rgba(88,166,255,.22); border-radius:10px; background:rgba(88,166,255,.055); }
.insights-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.insights-head strong { font-size:12px; color:#e6edf3; }
.confidence-badge { padding:3px 6px; border:1px solid; border-radius:10px; font-size:9px; white-space:nowrap; }
.insight-summary { margin-top:7px; color:#c9d1d9; font-size:12px; font-weight:600; }
.insight-range,.insight-muted { margin-top:4px; color:#6e7681; font-size:10px; }
.rain-arrival { margin-top:8px; padding:7px 8px; border-radius:7px; background:rgba(30,136,229,.13); color:#8ecaff; font-size:11px; }
.rain-arrival-dry { background:rgba(63,185,80,.09); color:#7ee787; }
.insight-chips { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.insight-chip { padding:3px 6px; border-radius:9px; background:rgba(255,255,255,.05); color:#8b949e; font-size:9px; }
.insight-change { margin-top:7px; padding:6px 8px; border-left:2px solid #d29922; background:rgba(210,153,34,.07); color:#d7b867; font-size:10.5px; }
.insight-title { margin-top:10px; color:#8b949e; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; }
.insight-timeline { position:relative; margin-top:5px; padding-left:4px; }
.insight-event { display:grid; grid-template-columns:42px 20px 1fr; gap:5px; align-items:start; padding:5px 0; border-bottom:1px solid rgba(255,255,255,.055); }
.insight-event time { color:#58a6ff; font-size:10px; }
.insight-event b { display:block; color:#c9d1d9; font-size:10.5px; }
.insight-event small { display:block; color:#6e7681; font-size:9px; margin-top:1px; }
.insight-why { margin-top:8px; color:#6e7681; font-size:9.5px; }
.insight-why summary { color:#58a6ff; cursor:pointer; }
.insight-why ul { margin:6px 0 0 16px; line-height:1.45; }
.push-option { display:flex; align-items:center; gap:6px; margin:5px 0; color:#8b949e; font-size:10.5px; cursor:pointer; }
.push-sub-label small { color:#6e7681; }
.controls-view-expert details[draggable="true"] > summary::before { content:'⋮⋮'; margin-right:5px; color:#8b949e; cursor:grab; letter-spacing:-2px; }
.controls-view-expert .layer-toggle-row[draggable="true"]::before { content:'⋮'; color:#8b949e; cursor:grab; margin-right:2px; }
details.layer-dragging { opacity:.4; outline:1px dashed #58a6ff; }
.layer-toggle-row.layer-dragging { opacity:.4; outline:1px dashed #58a6ff; }

@media (max-width:640px) {
    #compare-swipe-ui { inset:44px 0 52px; }
    #compare-swipe-slider { bottom:68px; }
    .insights-head { align-items:flex-start; flex-direction:column; }
    .controls-view-expert details[draggable="true"] > summary::before { display:none; }
    .controls-view-expert .layer-toggle-row[draggable="true"]::before { display:none; }
}

/* ── Radar-Rückblick ─────────────────────────────────────── */
.rh-divider {
    height: 1px; background: rgba(255,255,255,0.07);
    margin: 6px 0;
}
#radar-hist-controls { padding: 2px 0 6px; }
.rh-label-row {
    text-align: center; font-size: 11px; font-weight: 600;
    color: #58a6ff; padding: 2px 0 4px; min-height: 18px;
}
.rh-ctrl-row {
    display: flex; align-items: center; gap: 6px;
}
.rh-play-btn {
    flex-shrink: 0; width: 28px; height: 28px;
    background: rgba(88,166,255,0.15);
    border: 1px solid rgba(88,166,255,0.35);
    border-radius: 6px; color: #58a6ff; font-size: 12px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.rh-play-btn:hover { background: rgba(88,166,255,0.28); }
.rh-slider {
    flex: 1; accent-color: #58a6ff; height: 3px; cursor: pointer;
}
.rh-axis {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 9px; color: #8b949e; padding: 3px 0 0;
}

/* ── WetterNOW Nowcast-Widget ────────────────────────────── */
.wx-now-loading {
    padding: 8px 12px; font-size: 11px; color: #6e7681;
    display: flex; align-items: center; gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wx-now-spinner {
    display: inline-block; width: 10px; height: 10px;
    border: 2px solid rgba(88,166,255,0.3);
    border-top-color: #58a6ff;
    border-radius: 50%; animation: wx-spin 0.8s linear infinite;
}
@keyframes wx-spin { to { transform: rotate(360deg); } }
.wx-now-error {
    padding: 6px 12px; font-size: 11px; color: #f85149;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wx-now {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
}
.wx-now-header {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 0;
}
.wx-now-sit-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.wx-now-sit-text { flex: 1; }
.wx-now-sit-label { font-size: 12px; font-weight: 700; color: #e6edf3; }
.wx-now-sit-desc  { font-size: 10px; color: #8b949e; margin-top: 1px; }
.wx-now-badge {
    flex-shrink: 0; padding: 2px 7px; border-radius: 10px;
    font-size: 9px; font-weight: 700; color: #fff; letter-spacing: 0.04em;
}
.wx-now-base {
    padding: 3px 12px 3px; font-size: 10px; color: #6e7681;
    background: rgba(255,255,255,0.02);
}
.wx-now-items { padding: 4px 8px 6px; display: flex; flex-direction: column; gap: 3px; }
.wx-now-item {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 6px; border-radius: 5px;
    background: rgba(255,255,255,0.03);
}
.wx-now-item-crit { border-left: 3px solid #9b59b6; background: rgba(155,89,182,0.1); }
.wx-now-item-warn { border-left: 3px solid #c0392b; background: rgba(192,57,43,0.1); }
.wx-now-item-mod  { border-left: 3px solid #e67e22; background: rgba(230,126,34,0.1); }
.wx-now-item-info { border-left: 3px solid #27ae60; background: rgba(39,174,96,0.07); }
.wx-now-item-icon { font-size: 13px; flex-shrink: 0; }
.wx-now-item-text { flex: 1; color: #c9d1d9; font-size: 11px; }
.wx-now-item-src  { font-size: 9px; color: #8b949e; flex-shrink: 0; }
.wx-now-footer {
    padding: 4px 10px 6px; font-size: 9px; color: #30363d;
    display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end;
}
.wx-now-src-badge {
    padding: 1px 5px; border-radius: 8px; font-size: 9px; font-weight: 600;
    border: 1px solid;
}
.wx-now-src-badge.ok  { color: #58a6ff; border-color: rgba(88,166,255,0.35); background: rgba(88,166,255,0.08); }
.wx-now-src-badge.na  { color: #30363d; border-color: rgba(48,54,61,0.5);  background: transparent; }
.wx-now-tabs {
    display: flex; border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 8px; background: rgba(255,255,255,0.015);
}
.wx-now-tab {
    flex: 1; padding: 5px 4px; font-size: 10px; font-weight: 600;
    background: transparent; border: none; border-bottom: 2px solid transparent;
    color: #6e7681; cursor: pointer; margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.wx-now-tab:hover  { color: #c9d1d9; }
.wx-now-tab.active { color: #58a6ff; border-bottom-color: #58a6ff; }

/* ── Vollbild-Wetter-Dashboard ──────────────────────────────── */
#wx-fullscreen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200; background: #0d1117;
    display: flex; flex-direction: column; overflow: hidden;
}
#wx-fullscreen.hidden { display: none; }

/* Header */
#wxf-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; flex-shrink: 0;
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}
#wxf-loc-wrap { flex: 1; min-width: 0; }
#wxf-loc-name  { font-size: 16px; font-weight: 700; color: #e6edf3;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wxf-loc-coords { font-size: 10px; color: #6e7681; }
#wxf-now-badge {
    flex: 2; font-size: 11px; color: #8b949e;
    text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#wxf-close {
    background: rgba(248,81,73,0.12); border: 1px solid rgba(248,81,73,0.3);
    color: #f85149; padding: 5px 14px; border-radius: 6px;
    cursor: pointer; font-size: 12px; flex-shrink: 0;
    transition: background 0.15s;
}
#wxf-close:hover { background: rgba(248,81,73,0.22); }

/* Vollbild-Button im wx-panel */
#wx-fullscreen-btn {
    background: rgba(88,166,255,0.1); border: 1px solid rgba(88,166,255,0.25);
    color: #58a6ff; width: 28px; height: 28px; border-radius: 6px;
    cursor: pointer; font-size: 14px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; transition: background 0.15s;
}
#wx-fullscreen-btn:hover { background: rgba(88,166,255,0.22); }

/* Tab Bar */
#wxf-tabbar {
    display: flex; flex-shrink: 0; gap: 2px;
    padding: 6px 12px 0;
    background: #0d1117;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow-x: auto; flex-wrap: nowrap;
}
.wxf-tab {
    padding: 6px 16px; font-size: 12px; font-weight: 600;
    color: #8b949e; background: transparent; border: none;
    border-bottom: 2px solid transparent; cursor: pointer;
    border-radius: 4px 4px 0 0; transition: color .15s, border-color .15s;
    letter-spacing: 0.02em;
}
.wxf-tab:hover { color: #c9d1d9; background: rgba(255,255,255,0.05); }
.wxf-tab.wxf-tab-active { color: #58a6ff; border-bottom-color: #58a6ff; }

/* Panes */
.wxf-pane { display: flex; flex: 1; overflow: hidden; flex-direction: column; }
.wxf-pane-hidden { display: none !important; }
#wxf-pane-models,
#wxf-pane-mosmix,
#wxf-pane-analoge { overflow-y: auto; padding: 16px 20px; }

/* Body (Übersicht-Pane inner) */
#wxf-body {
    display: flex; flex: 1; overflow: hidden;
}

/* Lexikon-Pane */
#wxf-pane-lexikon { display: flex; flex: 1; overflow: hidden; }
#wxf-lexikon-inner { display: flex; flex: 1; overflow: hidden; }
.lexi-item:hover { background: rgba(255,255,255,0.04) !important; }
#lexi-search:focus { border-color: #58a6ff !important; }

/* Linke Spalte: 7-Tage */
#wxf-col-daily {
    width: 250px; flex-shrink: 0; overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 10px 8px; display: flex; flex-direction: column; gap: 5px;
}
/* Mittlere Spalte: Charts */
#wxf-col-charts {
    flex: 1; overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 10px;
}
/* Rechte Spalte: Stündlich */
#wxf-col-hourly {
    width: 320px; flex-shrink: 0; overflow-y: auto;
    display: flex; flex-direction: column; padding: 12px 10px; gap: 10px;
}
/* Karten-Container für Sektionen */
.wxf-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 12px 14px;
    flex-shrink: 0;
}
.wxf-card-hourly { overflow: hidden; }
/* Stündlich-Tabelle: max. 220px hoch, dann scrollen */
#wxf-hourly-scroll { max-height: 220px; overflow-y: auto; margin-top: 6px; }
#wxf-tephigramm { margin-top: 8px; }
#wx-fullscreen { transition: background 1.2s ease; }

.wxf-section-title {
    font-size: 10px; font-weight: 700; color: #8b949e;
    letter-spacing: 0.07em; text-transform: uppercase;
    padding-bottom: 8px;
    display: flex; align-items: center; gap: 7px;
}
.wxf-section-title::before {
    content: '';
    display: inline-block;
    width: 3px; height: 11px;
    background: #58a6ff;
    border-radius: 2px;
    flex-shrink: 0;
}

/* 7-Tage Karten (groß) */
.wxf-day {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.12s;
}
.wxf-day:hover { background: rgba(255,255,255,0.06); }
.wxf-day-dow  { font-size: 12px; font-weight: 700; color: #e6edf3; min-width: 28px; }
.wxf-day-date { font-size: 10px; color: #6e7681; min-width: 38px; }
.wxf-day-ico  { font-size: 20px; line-height: 1; }
.wxf-day-temps { flex: 1; }
.wxf-day-max  { font-size: 14px; font-weight: 700; color: #ffa726; }
.wxf-day-min  { font-size: 11px; color: #4fc3f7; }
.wxf-day-pr   { font-size: 10px; color: #4fc3f7; min-width: 44px; text-align: right; }
.wxf-day-wnd  { font-size: 10px; color: #8b949e; min-width: 38px; text-align: right; }
.wxf-day-ct   { font-size: 10px; color: #ce93d8; min-width: 34px; text-align: right;
                font-style: italic; }

/* Stündliche Tabelle */
.wxf-htable { width: 100%; border-collapse: collapse; font-size: 11px; }
.wxf-htable thead th {
    position: sticky; top: 0; background: #0d1117;
    padding: 4px 5px; text-align: left;
    color: #8b949e; font-weight: 600; font-size: 9px; text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wxf-htable tbody tr { border-bottom: 1px solid rgba(255,255,255,0.03); }
.wxf-htable tbody tr:hover { background: rgba(255,255,255,0.04); }
.wxf-htable tbody tr.wxf-now-row { background: rgba(88,166,255,0.07); }
.wxf-htable tbody tr.wxf-midnight td:first-child { color: #58a6ff; font-weight: 700; }
.wxf-htable td { padding: 3px 5px; color: #c9d1d9; }
.wxf-htable td.wxf-t  { color: #ffa726; font-weight: 600; }
.wxf-htable td.wxf-pr { color: #4fc3f7; }
.wxf-htable td.wxf-wnd { color: #8b949e; }

/* WetterJETZT-Kacheln im Vollbild */
#wxf-now-cards {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0;
}
.wxf-now-card {
    display: flex; align-items: flex-start; gap: 6px;
    padding: 8px 10px; border-radius: 8px; flex: 1; min-width: 180px;
    font-size: 11px;
}
.wxf-now-card-crit { background: rgba(155,89,182,0.12); border: 1px solid rgba(155,89,182,0.3); }
.wxf-now-card-warn { background: rgba(192,57,43,0.12);  border: 1px solid rgba(192,57,43,0.3); }
.wxf-now-card-mod  { background: rgba(230,126,34,0.12); border: 1px solid rgba(230,126,34,0.3); }
.wxf-now-card-info { background: rgba(39,174,96,0.08);  border: 1px solid rgba(39,174,96,0.25); }
.wxf-now-card-neu  { background: rgba(48,54,61,0.4);    border: 1px solid rgba(48,54,61,0.7); }
.wxf-now-card-icon { font-size: 16px; flex-shrink: 0; line-height: 1.2; }
.wxf-now-card-body { flex: 1; }
.wxf-now-card-text { color: #c9d1d9; line-height: 1.4; }
.wxf-now-card-src  { font-size: 9px; color: #8b949e; margin-top: 2px; }
.wxf-now-card-head { font-size: 11px; font-weight: 600; color: #e6edf3; margin-bottom: 3px; }
.wxf-now-card-sit  { background: rgba(88,166,255,0.07); border: 1px solid rgba(88,166,255,0.2); }
.wxf-now-card-bi   { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
                     min-width: 160px; }
.wxf-bi-row        { display: flex; justify-content: space-between; gap: 8px;
                     padding: 2px 0; font-size: 11px; color: #8b949e; border-bottom: 1px solid rgba(255,255,255,0.04); }
.wxf-bi-row b      { color: #e6edf3; font-weight: 600; }

/* Tages-Karten Layout im Vollbild */
.wxf-day           { flex-wrap: wrap; }
.wxf-day-today     { background: rgba(88,166,255,0.06); border-color: rgba(88,166,255,0.2); }
.wxf-day-head      { display: flex; gap: 6px; align-items: baseline; width: 100%; flex-shrink: 0; }
.wxf-day-dat       { font-size: 10px; color: #6e7681; }

/* Vollbild: Scrollbar ausblenden wenn Overlay offen */
body.wx-fs-open    { overflow: hidden; }

/* ── Wetter-Narrativ ───────────────────────────────────────── */
#wx-narrative { margin-top: 4px; }
.wxn-loading  { font-size: 11px; color: #6e7681; padding: 6px 0; }
.wxn-wrap     { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
                border-radius: 8px; padding: 10px 12px; margin-bottom: 4px; }
.wxn-head     { display: flex; align-items: center; justify-content: space-between;
                margin-bottom: 8px; }
.wxn-pattern  { font-size: 12px; font-weight: 700; color: #58a6ff; }
.wxn-conf     { font-size: 10px; font-weight: 600; }
.wxn-section  { margin-bottom: 8px; }
.wxn-section-long { opacity: 0.75; }
.wxn-label    { font-size: 10px; font-weight: 700; color: #8b949e;
                text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.wxn-text     { font-size: 12px; color: #c9d1d9; line-height: 1.6; }
.wxn-rundiff  { display: flex; flex-direction: column; gap: 4px; }
.wxn-rundiff-row { display: flex; justify-content: space-between; align-items: baseline;
                   font-size: 11px; gap: 8px; }
.wxn-rundiff-var { color: #8b949e; flex-shrink: 0; }
.wxn-rundiff-vals { color: #c9d1d9; text-align: right; }
.wxn-advice   { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.wxn-advice-chip { font-size: 11px; background: rgba(255,255,255,0.05);
                   border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
                   padding: 2px 8px; color: #8b949e; }
.wxn-wind-badge { display: inline-flex; align-items: center; gap: 3px;
                  font-size: 10px; font-weight: 600; padding: 1px 6px;
                  background: rgba(255,255,255,0.04); border-radius: 8px; }
.wxn-obs-details { margin-bottom: 8px; }
.wxn-obs-details > summary { cursor: pointer; user-select: none;
    font-size: 10px; font-weight: 700; color: #8b949e;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 3px; list-style: none; }
.wxn-obs-details > summary::before { content: '▶ '; font-size: 8px; }
.wxn-obs-details[open] > summary::before { content: '▼ '; }
.wxn-obs-list { margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.wxn-obs-item { font-size: 11px; color: #8b949e; line-height: 1.5;
                padding: 3px 6px; border-left: 2px solid rgba(255,255,255,0.08);
                background: rgba(255,255,255,0.02); border-radius: 0 4px 4px 0; }

/* ── Modellgüte-Widget ─────────────────────────────────────── */
.mqv-nodata {
    font-size: 11px; color: #6e7681; padding: 8px 4px; line-height: 1.6;
}
.mqv-header {
    display: flex; align-items: center; gap: 14px; padding: 8px 0 10px;
}
.mqv-score {
    font-size: 36px; font-weight: 700; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.mqv-pct { font-size: 18px; }
.mqv-meta { flex: 1; }
.mqv-grade-label { font-size: 13px; font-weight: 600; }
.mqv-runs { font-size: 10px; color: #8b949e; margin-top: 3px; }
.mqv-table { width: 100%; border-collapse: collapse; font-size: 11px; margin-bottom: 6px; }
.mqv-table thead th {
    text-align: left; padding: 3px 6px; color: #8b949e;
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mqv-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.03); }
.mqv-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.mqv-label { padding: 4px 6px; color: #8b949e; }
.mqv-val   { padding: 4px 6px; color: #c9d1d9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mqv-anal  { color: #58a6ff; }
.mqv-err   { padding: 4px 6px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mqv-bar-cell { padding: 4px 6px; min-width: 80px; }
.mqv-bar-bg   { background: rgba(255,255,255,0.06); border-radius: 2px; height: 6px; }
.mqv-bar-fill { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.mqv-grade { padding: 4px 6px; font-size: 10px; font-weight: 600; }
.mqv-hint  { font-size: 9px; color: #30363d; padding: 2px 0 4px; line-height: 1.4; }

/* ── Historische Analoge ──────────────────────────────────── */
#wx-pane-analoge { padding: 6px 10px 10px; overflow-y: auto; }
.ana-hint    { font-size: 11px; color: #8b949e; padding: 10px 0; }
.ana-loading { font-size: 11px; color: #6e7681; padding: 10px 0; display: flex; align-items: center; gap: 8px; }
.ana-current { background: rgba(88,166,255,0.06); border: 1px solid rgba(88,166,255,0.15);
               border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; }
.ana-cur-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: #8b949e; margin-bottom: 4px; }
.ana-cur-vals  { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 600;
                 color: #c9d1d9; font-variant-numeric: tabular-nums; }
.ana-meta      { font-size: 9px; color: #30363d; margin-top: 4px; }
.ana-prec-val  { color: #58a6ff; }
.ana-wind-val  { color: #8b949e; }

.ana-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
            border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.ana-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.ana-rank  { font-size: 9px; font-weight: 700; color: #8b949e; min-width: 18px; }
.ana-date  { font-size: 12px; font-weight: 600; color: #c9d1d9; flex: 1; }
.ana-sim   { font-size: 11px; letter-spacing: 1px; }

.ana-cond  { display: flex; gap: 8px; font-size: 11px; color: #8b949e;
             font-variant-numeric: tabular-nums; margin-bottom: 6px; flex-wrap: wrap; }
.ana-fu-head { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em;
               color: #8b949e; margin-bottom: 3px; }
.ana-fu-scroll { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px;
                 scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }
.ana-fu-chip  { display: flex; flex-direction: column; align-items: center; gap: 1px;
                min-width: 38px; background: rgba(255,255,255,0.04);
                border: 1px solid rgba(255,255,255,0.06); border-radius: 5px;
                padding: 4px 3px; flex-shrink: 0; }
.ana-fu-chip-label { font-size: 9px; color: #8b949e; white-space: nowrap; }
.ana-fu-chip-icon  { font-size: 13px; line-height: 1.2; }
.ana-fu-chip-t     { font-size: 11px; color: #c9d1d9; font-variant-numeric: tabular-nums; font-weight: 600; }
.ana-fu-chip-prec  { font-size: 9px; color: #58a6ff; font-variant-numeric: tabular-nums; }

/* Mitternachts-Trennzeile in Stundentabelle */
.wxf-htable tbody tr.wxf-midnight td {
    padding: 6px 5px 3px; color: #58a6ff; font-weight: 700;
    font-size: 10px; letter-spacing: 0.05em;
    border-top: 1px solid rgba(88,166,255,0.15);
    background: rgba(88,166,255,0.04);
}

/* ── Favoriten-Bar ────────────────────────────────────────── */
#fav-bar {
    position: absolute; top: 44px; left: 0; right: 0;
    z-index: 20; display: flex; gap: 5px; padding: 5px 10px;
    background: rgba(13,17,23,0.88); backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    overflow-x: auto; scrollbar-width: none; flex-shrink: 0;
}
#fav-bar.hidden { display: none; }
#fav-bar::-webkit-scrollbar { display: none; }
.fav-chip {
    background: rgba(88,166,255,0.1); border: 1px solid rgba(88,166,255,0.25);
    color: #58a6ff; border-radius: 12px; padding: 3px 10px;
    font-size: 11px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: background 0.15s;
}
.fav-chip:hover { background: rgba(88,166,255,0.22); }

/* ★ / 🔔 Buttons im wx-panel-head */
#wx-fav-btn, #wx-notif-btn {
    background: none; border: none; font-size: 15px; cursor: pointer;
    color: #8b949e; padding: 2px 4px; border-radius: 4px; flex-shrink: 0;
    transition: color 0.15s;
}
#wx-fav-btn:hover  { color: #f0c000; }
#wx-fav-btn.active { color: #f0c000; }
#wx-notif-btn:hover        { color: #c9d1d9; }
#wx-notif-btn.notif-active { color: #3fb950; }

/* ── Meteogramm ───────────────────────────────────────────── */
#mosmix-meteogram {
    margin: 6px 0 4px; border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 6px;
}
.meteogram-title {
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em;
    color: #8b949e; padding: 0 10px 4px;
}
.meteogram-scroll {
    overflow-x: auto; padding: 0 10px 6px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* ── Temperatur-Chart Hover-Tooltip ──────────────────────────── */
.wx-chart-wrap {
    position: relative;
    cursor: crosshair;
    user-select: none;
}
.wx-chart-tip {
    display: none;
    position: absolute;
    top: 4px;
    z-index: 20;
    background: #161b22;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 6px 9px;
    min-width: 165px;
    max-width: 210px;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.wx-tip-time {
    font-size: 9px;
    color: #8b949e;
    margin-bottom: 5px;
    white-space: nowrap;
}
.wx-tip-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    line-height: 1.55;
}
.wx-tip-own { margin-top: 3px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 3px; }
.wx-tip-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wx-tip-label {
    flex: 1;
    color: #c9d1d9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wx-tip-val {
    font-variant-numeric: tabular-nums;
    color: #e6edf3;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Stündliche Details – Modell-Selektor ────────────────────── */
.wxf-hm-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0 8px;
}
.wxf-hm-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 6px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #161b22;
    color: #8b949e;
    font-size: 10px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}
.wxf-hm-btn:hover {
    border-color: var(--hm-col, #58a6ff);
    color: #e6edf3;
}
.wxf-hm-btn.wxf-hm-active {
    border-color: var(--hm-col, #58a6ff);
    background: color-mix(in srgb, var(--hm-col, #58a6ff) 15%, #161b22);
    color: #e6edf3;
}
.wxf-hm-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   USABILITY-VERBESSERUNGEN
   ══════════════════════════════════════════════════════════════ */

/* 1 ── Mobile Suche im Controls-Panel ───────────────────────── */
#mobile-search-bar {
    display: none;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    flex-shrink: 0;
}
#mobile-search-input {
    background: none; border: none; outline: none;
    color: #e6edf3; font-size: 13px;
    padding: 7px 10px; flex: 1; min-width: 0;
}
#mobile-search-input::placeholder { color: #6e7681; }
#mobile-search-btn {
    background: none; border: none; color: #8b949e;
    font-size: 14px; padding: 6px 10px; cursor: pointer;
    transition: color 0.15s; flex-shrink: 0;
}
#mobile-search-btn:hover { color: #58a6ff; }
@media (max-width: 640px) {
    #mobile-search-bar { display: flex; }
}

/* 2 ── Controls-Panel + Anim-Bar weichen wx-Panel aus (Desktop) */
@media (min-width: 641px) {
    body.wx-panel-open #controls {
        right: calc(360px + 12px);
        transition: right 0.22s ease;
    }
    body.wx-panel-open #anim-bar {
        right: calc(360px + 12px);
        transition: right 0.22s ease;
    }
}

/* 3 ── Slider-Value: kein Zeilenumbruch, Platz für Zeitangabe ── */
.slider-value {
    white-space: nowrap;
    min-width: 80px;
}

/* 4 ── Aktive-Layer-Dot auf zugeklapptem summary ─────────────── */
summary.layer-group-title.has-active {
    color: #c9d1d9;
}
summary.layer-group-title.has-active::after {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #58a6ff;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(88,166,255,0.6);
}

/* 5 ── Schichten-Header mit Reset-Button ─────────────────────── */
.layers-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
#reset-layers-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: #6e7681; font-size: 10px;
    padding: 2px 7px; border-radius: 4px;
    cursor: pointer; transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
#reset-layers-btn:hover {
    color: #f85149; border-color: rgba(248,81,73,0.4);
}

/* 6 ── Favoriten-Hinweis in der Leiste ───────────────────────── */
.fav-hint {
    color: #8b949e; font-size: 10px;
    padding: 4px 8px; white-space: nowrap;
    cursor: default; flex-shrink: 0;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 10px; user-select: none;
}

/* 7 ── Legende: weiche Ein-/Ausblendung ──────────────────────── */
#legend {
    transition: opacity 0.25s ease;
}

/* 8 ── "Jetzt"-Button am Slider ─────────────────────────────── */
#now-btn {
    background: rgba(88,166,255,0.12);
    border: 1px solid rgba(88,166,255,0.3);
    color: #58a6ff; font-size: 10px; font-weight: 600;
    padding: 2px 7px; border-radius: 4px;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: background 0.15s;
}
#now-btn:hover { background: rgba(88,166,255,0.24); }
#now-btn:disabled { opacity: 0.35; cursor: default; }

/* 9 ── Timelapse-Button ──────────────────────────────────────── */
#timelapse-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #8b949e; font-size: 13px;
    padding: 2px 7px; border-radius: 4px;
    cursor: pointer; flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
#timelapse-btn:hover { color: #e6edf3; background: rgba(255,255,255,0.10); }

/* 10 ── Deutschland-Zurück-Button ────────────────────────────── */
#map-refresh-btn {
    position: absolute;
    bottom: 106px; left: 12px;
    z-index: 20;
    background: rgba(22,27,34,0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    font-size: 18px;
    padding: 5px 9px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    line-height: 1;
    color: #e6edf3;
}
#map-refresh-btn:hover { background: rgba(88,166,255,0.18); border-color: rgba(88,166,255,0.4); }
#map-refresh-btn.spinning { animation: spin 0.8s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

#home-btn {
    position: absolute;
    bottom: 66px; left: 12px;
    z-index: 20;
    background: rgba(22,27,34,0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    font-size: 16px;
    padding: 6px 9px;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
}
#home-btn:hover { background: rgba(88,166,255,0.18); border-color: rgba(88,166,255,0.4); }

#terrain-btn {
    position: absolute;
    bottom: 110px; left: 12px;
    z-index: 20;
    background: rgba(22,27,34,0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    font-size: 16px;
    padding: 6px 9px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1;
}
#terrain-btn:hover { background: rgba(88,166,255,0.18); border-color: rgba(88,166,255,0.4); }
#terrain-btn.active { background: rgba(63,185,80,0.22); border-color: rgba(63,185,80,0.55); }

/* 11 ── Floating Animation Bar ───────────────────────────────── */
#replay-caption {
    position: fixed;
    bottom: 54px;
    left: 10px;
    right: 290px;
    z-index: 18;
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(13,17,23,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(88,166,255,0.25);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.50);
}
#replay-caption.hidden { display: none; }
.replay-caption-phase { font-size: 10px; font-weight: 700; color: #58a6ff; flex-shrink: 0; white-space: nowrap; }
.replay-caption-text { font-size: 12px; color: #c9d1d9; line-height: 1.4; }

#lightning-approach-banner {
    position: fixed;
    top: 54px; left: 50%;
    transform: translateX(-50%);
    z-index: 250;
    background: rgba(255,193,7,0.16);
    border: 1px solid rgba(255,193,7,0.55);
    color: #ffd54f;
    font-size: 13px; font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: lightning-banner-pulse 1.6s ease-in-out infinite;
}
#lightning-approach-banner.hidden { display: none; }
.lightning-approach-trend { font-size: 11px; font-weight: 500; color: #ffecb3; margin-left: 6px; }
@keyframes lightning-banner-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
    50%      { box-shadow: 0 4px 28px rgba(255,193,7,0.45); }
}

#anim-bar {
    position: fixed;
    bottom: 8px;
    left: 10px;
    right: 290px;
    z-index: 18;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(13,17,23,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.50);
    pointer-events: auto;
}
#anim-bar button {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #c9d1d9;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 9px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    line-height: 1.4;
}
#anim-bar button:hover { background: rgba(88,166,255,0.15); border-color: rgba(88,166,255,0.40); color: #e6edf3; }
#anim-bar-play.playing { color: #58a6ff; border-color: rgba(88,166,255,0.50); }
#anim-bar-label {
    font-size: 12px;
    color: #8b949e;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 130px;
    text-align: center;
}
#anim-bar-slider {
    flex: 1;
    min-width: 60px;
    accent-color: #58a6ff;
    height: 4px;
    cursor: pointer;
}
#anim-bar-age {
    font-size: 10px;
    color: #6e7681;
    white-space: nowrap;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    #anim-bar { right: 10px; }
    #anim-bar-speed { display: none; }
}

/* 12 ── Tastatur-Shortcut Modal ──────────────────────────────── */
#shortcuts-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: #6e7681; font-size: 12px; font-weight: 700;
    width: 22px; height: 22px; border-radius: 50%;
    cursor: pointer; flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
#shortcuts-btn:hover { color: #e6edf3; border-color: rgba(255,255,255,0.35); }

#shortcuts-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    display: flex; align-items: center; justify-content: center;
}
#shortcuts-modal.hidden { display: none; }
#shortcuts-box {
    background: #161b22;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
#shortcuts-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px; font-weight: 600; color: #e6edf3;
}
#shortcuts-close {
    background: none; border: none; color: #6e7681;
    font-size: 15px; cursor: pointer; padding: 2px 4px;
}
#shortcuts-close:hover { color: #e6edf3; }
#shortcuts-body { display: flex; flex-direction: column; gap: 8px; }
.sc-row {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; color: #8b949e;
}
.sc-row span { flex: 1; }
kbd {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 4px; padding: 2px 6px;
    font-size: 11px; font-family: inherit;
    color: #c9d1d9; white-space: nowrap;
    box-shadow: 0 1px 0 rgba(255,255,255,0.12);
}

#model-quality-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: #6e7681; font-size: 12px;
    width: 22px; height: 22px; border-radius: 50%;
    cursor: pointer; flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
#model-quality-btn:hover { color: #e6edf3; border-color: rgba(255,255,255,0.35); }
#model-quality-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    display: flex; align-items: center; justify-content: center;
}
#model-quality-modal.hidden { display: none; }
#model-quality-box {
    background: #161b22;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 16px 20px;
    width: 600px; max-width: 92vw;
    max-height: 82vh; overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
#model-quality-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px; font-weight: 600; color: #e6edf3;
}
.mq-loading { font-size: 12px; color: #6e7681; padding: 10px 0; }
.mq-section-label {
    font-size: 10px; font-weight: 700; color: #8b949e;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}
.mq-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 10px; margin-top: 4px; }
.mq-stations { display: flex; flex-direction: column; gap: 6px; }
.mq-station-row {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mq-station-label { color: #c9d1d9; font-weight: 600; width: 80px; flex-shrink: 0; }
.mq-station-cells { display: flex; flex-wrap: wrap; gap: 8px; color: #8b949e; }
.mq-cell { white-space: nowrap; }
.mq-footnote { font-size: 10px; color: #6e7681; margin-top: 12px; line-height: 1.5; }
.mq-horizons { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:7px; margin-bottom:8px; }
.mq-horizon-card { display:flex; flex-direction:column; gap:2px; padding:8px; border:1px solid rgba(255,255,255,.08); border-radius:8px; background:rgba(255,255,255,.03); }
.mq-horizon-card strong { font-size:15px; }
.mq-horizon-card span { color:#c9d1d9; font-size:10px; }
.mq-horizon-card small { color:#6e7681; font-size:8.5px; }
.mq-ranking { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.mq-rank-row { display:grid; grid-template-columns:110px 1fr; gap:8px; padding:6px 0; border-bottom:1px solid rgba(255,255,255,.05); }
.mq-rank-row > strong { color:#c9d1d9; font-size:10px; }
.mq-rank-row > div { display:flex; flex-wrap:wrap; gap:5px; }
.mq-rank-entry { padding:2px 6px; border-radius:8px; background:rgba(88,166,255,.1); color:#58a6ff; font-size:9px; }
.mq-rank-entry.collecting { background:rgba(255,255,255,.04); color:#6e7681; }
.mq-error-tools { display:flex; gap:7px; margin-top:12px; }
.mq-error-tools select,.mq-error-tools button { border:1px solid #30363d; border-radius:6px; background:#0d1117; color:#c9d1d9; padding:6px 8px; font-size:10px; }
.mq-error-tools button { color:#58a6ff; cursor:pointer; flex:1; }

.cloud-profile-card { margin:9px 0; padding:10px; border:1px solid rgba(168,216,255,.24); border-radius:10px; background:linear-gradient(180deg,rgba(33,83,120,.16),rgba(13,17,23,.3)); }
.cloud-profile-head { display:flex; align-items:center; justify-content:space-between; color:#e6edf3; font-size:12px; }
.cloud-profile-close { border:0; background:none; color:#8b949e; cursor:pointer; font-size:16px; }
.cloud-profile-scene { display:grid; grid-template-columns:38px 1fr; height:260px; margin-top:8px; perspective:600px; }
.cloud-profile-axis { display:flex; flex-direction:column; justify-content:space-between; color:#6e7681; font-size:8px; padding:2px 4px 18px 0; text-align:right; }
.cloud-profile-stack { display:flex; flex-direction:column; justify-content:flex-end; gap:8px; transform:rotateX(2deg) rotateY(-5deg); transform-origin:center bottom; }
.cloud-profile-band { position:relative; min-height:54px; padding:7px 10px; border:1px solid rgba(220,240,255,.28); border-radius:50% 42% 45% 48% / 35% 38% 42% 40%; background:rgba(220,240,255,var(--cloud-opacity)); box-shadow:var(--cloud-depth) 7px 0 rgba(166,206,235,calc(var(--cloud-opacity) * .48)); }
.cloud-profile-band span { color:#c9d1d9; font-size:10px; }
.cloud-profile-band strong { float:right; color:#e6edf3; font-size:12px; }
.cloud-profile-band small { display:block; color:#6e7681; font-size:8px; margin-top:2px; }
.cloud-profile-ground { height:16px; padding-top:3px; border-top:2px solid #6f8f4d; color:#7ee787; text-align:center; font-size:8px; }
.cloud-profile-meta { margin-top:8px; color:#8b949e; font-size:9.5px; }

/* 12 ── Such-Toast ───────────────────────────────────────────── */
#search-toast {
    position: absolute;
    top: 54px; left: 50%; transform: translateX(-50%);
    background: rgba(218,54,51,0.92);
    color: #fff; font-size: 12px; font-weight: 500;
    padding: 6px 14px; border-radius: 6px;
    z-index: 50; white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
    animation: toast-in 0.2s ease;
    pointer-events: none;
}
#search-toast.hidden { display: none; }
@keyframes toast-in { from { opacity:0; transform:translateX(-50%) translateY(-6px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

/* 13 ── Cloud-Kürzel: Tooltip-Hinweis ───────────────────────── */
.wx-dc-cloud {
    text-decoration: underline dotted rgba(88,166,255,0.4);
    cursor: help;
}
.ph-type { cursor: help; }

/* 14 ── fav-hint: nicht-klickbar, kein Zeiger ───────────────── */
.fav-hint { pointer-events: none; }

/* 15 ── Scroll-Fade unten im Controls-Panel ─────────────────── */
#controls::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0; right: 0;
    display: block;
    height: 36px;
    background: linear-gradient(transparent, rgba(22,27,34,0.97));
    pointer-events: none;
    margin-top: -36px;
    flex-shrink: 0;
}

/* 16 ── Slider Tages-Markierungen ────────────────────────────── */
#slider-days {
    position: relative;
    height: 18px;
    margin: 2px 0 0;
}
.slider-day-mark {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 9px;
    color: #8b949e;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}
.slider-day-mark::before {
    content: '';
    display: block;
    width: 1px;
    height: 5px;
    background: rgba(255,255,255,0.15);
    margin: 0 auto 2px;
}

/* 17 ── Meta-Refresh-Zeile ───────────────────────────────────── */
.meta-refresh-row {
    display: flex; align-items: center; gap: 6px; margin-top: 3px;
}
#refresh-btn {
    background: none;
    border: 1px solid rgba(88,166,255,0.25);
    color: #58a6ff; font-size: 12px;
    padding: 2px 7px; border-radius: 5px;
    cursor: pointer; transition: background 0.15s;
    flex-shrink: 0;
}
#refresh-btn:hover { background: rgba(88,166,255,0.15); }
#refresh-age {
    font-size: 10px; color: #8b949e;
}

/* 18 ── Layer-Label Zeiger-Cursor ────────────────────────────── */
.layer-toggle-label { cursor: pointer; }

/* 19 ── ICON-D2 Variable: exklusiver Radio-Hinweis ──────────── */
.icon-d2-exclusive-hint {
    font-size: 9px; color: #8b949e; padding: 2px 0 4px 6px;
    font-style: italic;
}

/* 20 ── Wx-Panel Slide-in Animation ─────────────────────────── */
@keyframes wxPanelSlideIn {
    from { transform: translateX(100%); opacity: 0.3; }
    to   { transform: translateX(0);    opacity: 1; }
}
#wx-panel.wx-panel-sliding {
    animation: wxPanelSlideIn 0.22s ease;
}

/* 21 ── Heute-Highlight in den 7-Tage-Mini-Karten ───────────── */
.wx-dc-today {
    background: rgba(88,166,255,0.10) !important;
    border-color: rgba(88,166,255,0.3) !important;
}
.wx-dc-today .wx-dc-dow { color: #58a6ff; font-weight: 700; }

/* 22 ── Vollbild: "heute"-Tages-Karte ───────────────────────── */
.wxf-day-today .wxf-day-dow { color: #58a6ff; }

/* 23 ── Modell-More-Button ───────────────────────────────────── */
.wxf-hm-more-btn {
    border-style: dashed !important;
    color: #8b949e !important;
}
.wxf-hm-more-btn:hover { color: #8b949e !important; }

/* 16 ── Controls minimieren / Restore-Button ─────────────────── */
#controls-minimize-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: #6e7681; font-size: 14px; font-weight: 700;
    padding: 1px 7px; border-radius: 4px;
    cursor: pointer; line-height: 1;
    transition: color 0.15s, border-color 0.15s;
}
#controls-minimize-btn:hover {
    color: #e6edf3; border-color: rgba(255,255,255,0.3);
}

#controls-restore-btn {
    display: none;
    position: absolute;
    top: 56px; right: 0;
    z-index: 20;
    background: rgba(22,27,34,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.10);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #8b949e; font-size: 15px;
    padding: 8px 10px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    writing-mode: horizontal-tb;
}
#controls-restore-btn:hover {
    color: #e6edf3;
    background: rgba(88,166,255,0.12);
}

body.controls-minimized #controls { display: none; }
body.controls-minimized #controls-restore-btn { display: block; }
/* Bei Split-Screen bleibt Shift-Logik erhalten */
body.split-active.controls-minimized #controls { display: none; }

/* ═══════════════════════════════════════════════════════════════
   NEUE FEATURES 2026-06
   ═══════════════════════════════════════════════════════════════ */

/* ── Schnellzugriff-Sektion ──────────────────────────────────── */
#quick-access {
    padding: 6px 0 4px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 4px;
}
#weather-modes {
    padding: 6px 0 7px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 6px;
}
.qa-label {
    font-size: 9px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.6px; color: #8b949e; margin-bottom: 5px;
}
.qa-pills, .mode-pills {
    display: flex; flex-wrap: wrap; gap: 4px;
}
.qa-pill, .mode-pill {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #8b949e; font-size: 10.5px;
    padding: 3px 8px; border-radius: 12px;
    cursor: pointer; transition: all 0.15s;
    white-space: nowrap;
}
.qa-pill:hover, .mode-pill:hover {
    background: rgba(88,166,255,0.15);
    border-color: rgba(88,166,255,0.4);
    color: #58a6ff;
}
.qa-pill.qa-active, .mode-pill.active {
    background: rgba(88,166,255,0.2);
    border-color: rgba(88,166,255,0.5);
    color: #58a6ff;
}
.mode-pill {
    border-radius: 6px;
    font-weight: 700;
}

/* ── Layer-Suchfeld ──────────────────────────────────────────── */
#layer-search-wrap {
    position: relative; display: flex; align-items: center;
    margin-bottom: 6px;
}
#layer-search {
    width: 100%; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px; color: #e6edf3;
    font-size: 11.5px; padding: 5px 28px 5px 8px;
    outline: none; transition: border-color 0.15s;
}
#layer-search:focus { border-color: rgba(88,166,255,0.5); }
#layer-search::placeholder { color: #8b949e; }
#layer-search-clear {
    position: absolute; right: 6px;
    background: none; border: none; color: #6e7681;
    font-size: 11px; cursor: pointer; padding: 2px;
    transition: color 0.15s;
}
#layer-search-clear:hover { color: #e6edf3; }
#layer-search-clear.hidden { display: none; }
#layer-search-status { margin:-1px 0 7px; color:#6e7681; font-size:9.5px; }
#layer-search-status.no-results { color:#d29922; }

.layer-toggle-label .layer-main-name { color:#c9d1d9; }
.layer-toggle-label .layer-tech-name {
    display:block; margin-top:1px; color:#6e7681; font-size:9px; font-weight:400;
    white-space:normal; line-height:1.25;
}

/* Suchergebnis: versteckte Rows */
.layer-toggle-row.search-hidden { display: none; }
details.search-hidden { display: none; }
.layer-cat-title.search-hidden { display: none; }

/* ── Fokus-Modus ──────────────────────────────────────────────── */
#focus-mode-btn {
    background: none; border: 1px solid rgba(255,255,255,0.12);
    color: #6e7681; font-size: 13px;
    padding: 1px 6px; border-radius: 4px;
    cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
#focus-mode-btn:hover { color: #e6edf3; border-color: rgba(255,255,255,0.3); }

#focus-mode-restore-btn {
    display: none;
    position: fixed;
    top: 56px; left: 0;
    z-index: 20;
    background: rgba(22,27,34,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.10);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: #8b949e; font-size: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
#focus-mode-restore-btn:hover {
    color: #e6edf3; background: rgba(88,166,255,0.12);
}
body.focus-mode #controls { display: none; }
body.focus-mode #focus-mode-restore-btn { display: block; }
body.focus-mode #wx-panel { right: 0; }

/* ── Fehler-Overlay ──────────────────────────────────────────── */
#server-error-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(13,17,23,0.88);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}
#server-error-overlay.hidden { display: none; }
#server-error-box {
    background: rgba(22,27,34,0.98);
    border: 1px solid rgba(248,81,73,0.4);
    border-radius: 14px;
    padding: 32px 36px;
    text-align: center; max-width: 360px;
}
#server-error-icon { font-size: 40px; margin-bottom: 12px; }
#server-error-title { font-size: 17px; font-weight: 700; color: #f85149; margin-bottom: 8px; }
#server-error-msg { font-size: 12px; color: #8b949e; line-height: 1.6; margin-bottom: 20px; }
#server-error-retry {
    background: rgba(88,166,255,0.15);
    border: 1px solid rgba(88,166,255,0.4);
    color: #58a6ff; font-size: 13px;
    padding: 8px 20px; border-radius: 8px;
    cursor: pointer; transition: background 0.15s;
}
#server-error-retry:hover { background: rgba(88,166,255,0.28); }

/* ── Stündliche Tabelle ──────────────────────────────────────── */
#wx-hourly-table {
    padding: 4px 0;
}
.wh-day-block {
    margin-bottom: 2px;
}
.wh-day-header {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.5px; color: #8b949e;
    padding: 8px 12px 4px;
    position: sticky; top: 0;
    background: rgba(13,17,23,0.97);
    z-index: 1;
}
.wh-day-header.wh-today { color: #58a6ff; }
.wh-table {
    width: 100%; border-collapse: collapse;
    font-size: 11.5px;
}
.wh-table th {
    color: #8b949e; font-size: 9.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
    padding: 3px 8px; text-align: right;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.wh-table th:first-child { text-align: left; }
.wh-table td {
    padding: 4px 8px; text-align: right;
    color: #c9d1d9; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.wh-table td:first-child { text-align: left; color: #8b949e; font-size: 11px; }
.wh-table tr:hover td { background: rgba(255,255,255,0.03); }
.wh-table tr.wh-now td { background: rgba(88,166,255,0.07); }
.wh-table tr.wh-now td:first-child { color: #58a6ff; font-weight: 700; }
.wh-temp-hot  { color: #f85149 !important; }
.wh-temp-warm { color: #ffa657 !important; }
.wh-temp-cool { color: #79c0ff !important; }
.wh-temp-cold { color: #a5d6ff !important; }
.wh-rain { color: #58a6ff !important; }
.wh-rain-heavy { color: #388bfd !important; font-weight: 700; }

/* ── Schwellenwert-Alarm Modal ────────────────────────────────── */
#alarm-modal {
    position: fixed; inset: 0; z-index: 8000;
    background: rgba(13,17,23,0.8);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
}
#alarm-modal.hidden { display: none; }
#alarm-modal-box {
    background: rgba(22,27,34,0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px; width: 340px; max-height: 70vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.alarm-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; font-size: 13px; font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
#alarm-modal-close {
    background: none; border: none; color: #8b949e;
    font-size: 15px; cursor: pointer; padding: 2px 5px;
    border-radius: 4px; transition: color 0.15s;
}
#alarm-modal-close:hover { color: #f0f6fc; }
#alarm-list {
    flex: 1; overflow-y: auto; padding: 8px 12px;
    min-height: 40px;
}
.alarm-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 10px; margin-bottom: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; font-size: 11.5px; color: #c9d1d9;
}
.alarm-item.alarm-firing {
    border-color: rgba(248,81,73,0.5);
    background: rgba(248,81,73,0.08);
    color: #f85149;
}
.alarm-delete {
    background: none; border: none; color: #8b949e;
    font-size: 13px; cursor: pointer; padding: 0 3px;
    transition: color 0.15s;
}
.alarm-delete:hover { color: #f85149; }
.alarm-add-form {
    padding: 10px 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.alarm-form-row {
    display: flex; gap: 5px; margin-bottom: 8px;
}
.alarm-form-row select, .alarm-form-row input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px; color: #e6edf3; font-size: 11px;
    padding: 5px 7px; outline: none;
}
.alarm-form-row select { flex: 2; }
.alarm-form-row input  { flex: 1; width: 60px; }
#alarm-add-btn {
    width: 100%; background: rgba(88,166,255,0.12);
    border: 1px solid rgba(88,166,255,0.35);
    color: #58a6ff; font-size: 12px;
    padding: 7px; border-radius: 7px;
    cursor: pointer; transition: background 0.15s;
}
#alarm-add-btn:hover { background: rgba(88,166,255,0.22); }

/* ── Push-Gewitterwarnung (innerhalb #alarm-modal-box) ────────── */
#push-section {
    padding: 12px 0 8px;
}
.push-section-title {
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    color: #8b949e; text-transform: uppercase; margin-bottom: 9px;
}
.push-status-row {
    display: flex; align-items: center; gap: 10px;
}
#push-status-text {
    font-size: 12px; color: #c9d1d9; flex: 1;
}
.push-btn {
    font-size: 11px; padding: 5px 12px;
    border-radius: 6px; cursor: pointer;
    border: 1px solid; transition: opacity 0.15s;
    white-space: nowrap;
}
.push-btn:hover { opacity: 0.8; }
.push-btn-on  { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.5); color: #4ade80; }
.push-btn-off { background: rgba(248,81,73,0.13); border-color: rgba(248,81,73,0.45); color: #f85149; }
.push-sub-row {
    display: flex; align-items: center; gap: 8px;
    margin-top: 6px; padding: 5px 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 5px; border: 1px solid rgba(255,255,255,0.07);
}
.push-sub-label {
    font-size: 11px; color: #8b949e; flex: 1;
}
.push-form-row {
    margin-bottom: 7px;
}
.push-form-row-hint {
    font-size: 11px; color: #8b949e; line-height: 1.6;
}
.push-quiet-row { display:flex; align-items:center; gap:6px; margin:8px 0 5px; color:#8b949e; font-size:10.5px; }
.push-quiet-row input { width:82px; padding:4px; border:1px solid rgba(255,255,255,.13); border-radius:5px; background:#0d1117; color:#c9d1d9; color-scheme:dark; }
.push-summary-options { display:grid; grid-template-columns:1fr 1fr; gap:4px 8px; margin:5px 0 9px 20px; padding:7px; border:1px solid rgba(255,255,255,.08); border-radius:7px; background:rgba(255,255,255,.025); }
.push-summary-options > span { grid-column:1 / -1; color:#6e7681; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.35px; }
.push-summary-options label { display:flex; align-items:center; gap:4px; color:#8b949e; font-size:9.5px; cursor:pointer; }
.push-model-options small { grid-column:1 / -1; color:#6e7681; font-size:8.5px; line-height:1.35; }
.push-input {
    width: 100%; box-sizing: border-box;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13);
    color: #c9d1d9; font-size: 11px; padding: 6px 8px;
    border-radius: 6px; font-family: monospace;
}
.push-input:focus { outline: none; border-color: rgba(88,166,255,0.5); }
.push-input-small {
    width: 56px; text-align: center; margin: 0 3px;
    display: inline-block; vertical-align: baseline;
}
.push-save-btn { width: 100%; margin-top: 4px; padding: 7px; font-size: 12px; }
.push-form-error {
    font-size: 11px; color: #f85149; margin-top: 5px; text-align: center;
}
.push-form-error.hidden { display: none; }
.push-unsupported-msg {
    font-size: 11px; color: #8b949e; margin-top: 4px;
}
.push-unsupported-msg.hidden { display: none; }
.alarm-section-sep {
    border: none; border-top: 1px solid rgba(255,255,255,0.08);
    margin: 12px 0;
}

/* ── Mobile Bottom-Sheet ─────────────────────────────────────── */
@media (max-width: 640px) {
    #controls {
        position: fixed;
        top: auto; bottom: 0; right: 0; left: 0;
        width: 100%; max-height: 78vh;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
        box-shadow: 0 -4px 32px rgba(0,0,0,0.6);
    }
    #controls.mobile-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    /* Drag-Handle */
    #controls::before {
        content: '';
        display: block;
        width: 40px; height: 4px;
        background: rgba(255,255,255,0.25);
        border-radius: 2px;
        margin: 10px auto 8px;
        flex-shrink: 0;
    }
    /* Modell-Pills auf Mobile stärker hervorheben */
    .model-pill { padding: 8px 10px; font-size: 13px; }
    /* Schnellzugriff-Pills breiter */
    .qa-pills { flex-wrap: wrap; }
    .qa-pill { font-size: 12px; padding: 6px 10px; }
    /* Wx-Panel auf Mobile: volle Breite */
    #wx-panel {
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        border-left: none;
        border-radius: 0;
    }
    body.wx-panel-open #controls { right: 0; }
    body.wx-panel-open #hamburger { z-index: 30; }
    #focus-mode-btn { display: none; }
    /* Hamburger-Button — macht deutlicher dass es nach oben öffnet */
    #hamburger::after {
        content: ' ▲';
        font-size: 8px;
        vertical-align: middle;
        opacity: 0.6;
    }
    /* Model-Switcher und Quick-Access als erste sichtbare Elemente */
    #model-switcher { order: -2; }
    #quick-access { order: -1; }
}

/* ── Wind-Animations-Canvas ──────────────────────────────────── */
#wind-canvas {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0.85;
}
body.focus-mode #wind-canvas { left: 0; }

/* ═══════════════════════════════════════════════════════════════
   Kartennahe Navigation 2026-07
   ═══════════════════════════════════════════════════════════════ */
#map-quickbar {
    position: fixed;
    top: 56px;
    left: 12px;
    z-index: 18;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100vw - 330px);
    padding: 6px;
    background: rgba(13,17,23,0.88);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body.has-favorites #map-quickbar { top: 84px; }
.map-view-current,
.map-view-btn {
    min-height: 38px;
    border: 1px solid transparent;
    color: #c9d1d9;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    outline: none;
}
.map-view-current:focus-visible,
.map-view-btn:focus-visible { box-shadow: 0 0 0 2px rgba(88,166,255,.75); }
.map-view-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    background: rgba(88,166,255,.12);
    border-color: rgba(88,166,255,.28);
    white-space: nowrap;
}
#active-weather-icon { font-size: 17px; }
#active-weather-label { color: #e6edf3; font-size: 12px; font-weight: 700; }
#active-weather-model { color: #6e7681; font-size: 10px; }
.map-view-actions { display: flex; align-items: center; gap: 2px; }
.map-view-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    font-size: 14px;
}
.map-view-btn span { font-size: 10px; color: #8b949e; }
.map-view-btn:hover,
.map-view-btn.active { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.09); }
.map-view-btn.active span { color: #58a6ff; }
#active-layer-chips { display: flex; align-items: center; gap: 4px; overflow: hidden; }
.active-layer-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 130px;
    padding: 4px 7px;
    border: 1px solid rgba(88,166,255,.25);
    border-radius: 12px;
    color: #8bbee8;
    background: rgba(88,166,255,.09);
    font-size: 9.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.active-layer-chip button { border: 0; background: none; color: #8b949e; cursor: pointer; padding: 0; }

#controls-tabs {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 3px;
    padding: 3px;
    margin: 8px 0 5px;
    background: rgba(255,255,255,.045);
    border-radius: 8px;
}
.controls-tab {
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    color: #8b949e;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.controls-tab.active { color: #e6edf3; background: rgba(88,166,255,.18); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.controls-pane.hidden { display: none !important; }
.simple-panel-intro { color: #8b949e; font-size: 11px; margin: 7px 1px 8px; }
.wind-unit-setting { display:flex; align-items:center; justify-content:flex-end; gap:6px; margin:-2px 1px 7px; color:#8b949e; font-size:10px; }
.wind-unit-setting select { border:1px solid rgba(255,255,255,.12); border-radius:5px; background:#21262d; color:#c9d1d9; padding:3px 5px; font-size:10px; }
.simple-weather-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.simple-weather-card {
    display: grid;
    grid-template-columns: 26px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: 61px;
    padding: 8px;
    text-align: left;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    background: rgba(255,255,255,.035);
    color: #c9d1d9;
    cursor: pointer;
}
.simple-weather-card > span { grid-row: 1 / 3; font-size: 20px; }
.simple-weather-card strong { font-size: 11px; }
.simple-weather-card small { color: #6e7681; font-size: 8.5px; line-height: 1.25; }
.simple-weather-card:hover,
.simple-weather-card.active { border-color: rgba(88,166,255,.42); background: rgba(88,166,255,.1); }
.simple-section-title { margin: 12px 0 0; color: #6e7681; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }

.controls-view-simple #weather-modes,
.controls-view-simple .layer-cat-title,
.controls-view-simple .layers-group > details,
.controls-view-simple .layers-group > .icon-d2-sub,
.controls-view-simple #wind-arrows-wrap,
.controls-view-simple #isobar-wrap,
.controls-view-simple #meta,
.controls-view-simple #layer-favorites-panel { display: none !important; }
.controls-view-simple.controls-searching #simple-weather-panel,
.controls-view-simple.controls-searching #quick-access { display:none !important; }
.controls-view-simple.controls-searching .layer-cat-title,
.controls-view-simple.controls-searching .layers-group > details,
.controls-view-simple.controls-searching .layers-group > .icon-d2-sub { display:block !important; }
.controls-view-favorites #simple-weather-panel,
.controls-view-favorites #quick-access,
.controls-view-favorites #weather-modes,
.controls-view-favorites #layer-search-wrap,
.controls-view-favorites .layer-cat-title,
.controls-view-favorites .layers-group > details,
.controls-view-favorites .layers-group > .icon-d2-sub,
.controls-view-favorites #wind-arrows-wrap,
.controls-view-favorites #isobar-wrap,
.controls-view-favorites #meta { display: none !important; }
.controls-view-expert #simple-weather-panel,
.controls-view-expert #quick-access,
.controls-view-expert #layer-favorites-panel { display: none !important; }
.favorites-head { display: flex; justify-content: space-between; gap: 8px; padding: 10px 2px; }
.favorites-head strong { color: #e6edf3; font-size: 12px; }
.favorites-head div div { color: #6e7681; font-size: 9px; line-height: 1.35; margin-top: 2px; }
#save-layer-favorite-btn {
    align-self: center; border: 1px solid rgba(88,166,255,.35); border-radius: 7px;
    background: rgba(88,166,255,.12); color: #58a6ff; padding: 6px 8px; cursor: pointer; white-space: nowrap;
}
.layer-favorite-empty { padding: 20px 8px; text-align: center; color: #6e7681; font-size: 11px; }
.layer-favorite-row { display: flex; align-items: center; gap: 6px; padding: 7px; margin-bottom: 5px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.03); }
.layer-favorite-load { flex: 1; border: 0; background: none; color: #c9d1d9; text-align: left; cursor: pointer; }
.layer-favorite-load strong { display: block; font-size: 11px; }
.layer-favorite-load small { color: #6e7681; font-size: 9px; }
.layer-favorite-delete { border: 0; background: none; color: #6e7681; cursor: pointer; font-size: 15px; }

#map-explain-card {
    position:fixed; z-index:29; top:112px; left:12px; width:min(340px,calc(100vw - 24px));
    padding:12px; border:1px solid rgba(88,166,255,.34); border-radius:12px;
    background:rgba(13,17,23,.96); box-shadow:0 12px 35px rgba(0,0,0,.45);
    color:#c9d1d9; backdrop-filter:blur(12px);
}
#map-explain-card.hidden { display:none; }
.map-explain-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.map-explain-head strong { color:#e6edf3; font-size:13px; }
.map-explain-head small { display:block; margin-top:2px; color:#6e7681; font-size:9px; }
.map-explain-close { border:0; background:none; color:#8b949e; cursor:pointer; font-size:16px; }
.map-explain-text { margin-top:9px; color:#c9d1d9; font-size:11px; line-height:1.5; }
.map-explain-note { margin-top:8px; padding:7px; border-radius:7px; background:rgba(210,153,34,.08); color:#d7b867; font-size:10px; }
.map-explain-source { margin-top:8px; color:#6e7681; font-size:9.5px; }

#data-status-banner {
    position:fixed; z-index:31; left:50%; top:58px; transform:translateX(-50%);
    max-width:min(620px,calc(100vw - 24px)); padding:7px 11px; border-radius:8px;
    border:1px solid rgba(210,153,34,.45); background:rgba(56,42,14,.95);
    color:#f0cf74; font-size:10.5px; box-shadow:0 6px 18px rgba(0,0,0,.35);
}
#data-status-banner.hidden { display:none; }

.popup-explain { margin-top:6px; border-top:1px solid rgba(255,255,255,.08); padding-top:5px; }
.popup-explain summary { color:#58a6ff; cursor:pointer; font-size:10px; }
.popup-explain-body { padding-top:5px; color:#8b949e; font-size:9.5px; line-height:1.45; }
.point-compare { margin-top:6px; padding:6px; border-radius:7px; background:rgba(88,166,255,.07); color:#c9d1d9; font-size:9.5px; }
.point-compare strong { color:#58a6ff; }
.point-sources { margin-top:5px; color:#6e7681; font-size:8.5px; }
.source-stale { color:#d29922; }

#wx-source-status { margin:7px 0; padding:7px 8px; border:1px solid rgba(255,255,255,.08); border-radius:8px; color:#6e7681; font-size:9px; line-height:1.5; }
#wx-source-status strong { color:#8b949e; }

#mobile-bottom-nav { display: none; }

@media (max-width: 640px) {
    html, body {
        position: fixed;
        inset: 0;
        width: 100%;
        overscroll-behavior: none;
    }
    #map-quickbar {
        top: auto;
        left: 8px;
        right: 8px;
        bottom: 111px;
        max-width: none;
        padding: 4px;
        gap: 3px;
    }
    .map-view-current { min-width: 0; flex: 1; overflow: hidden; }
    #active-weather-label { overflow: hidden; text-overflow: ellipsis; }
    #active-weather-model,
    .map-view-btn span,
    #active-layer-chips { display: none; }
    .map-view-btn { min-width: 38px; justify-content: center; padding: 4px; font-size: 16px; }
    #anim-bar { bottom: 57px; left: 8px; right: 8px; padding: 5px; }
    #anim-bar-prev,
    #anim-bar-next,
    #anim-bar-age { display: none; }
    #anim-bar-label { min-width: 86px; font-size: 10.5px; }
    #mobile-bottom-nav {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 35;
        display: grid;
        grid-template-columns: repeat(5,1fr);
        height: calc(52px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(13,17,23,.97);
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .mobile-nav-btn {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
        border: 0; background: none; color: #6e7681; font-size: 9px; cursor: pointer;
    }
    .mobile-nav-btn span { font-size: 17px; }
    .mobile-nav-btn.active { color: #58a6ff; }
    #controls,
    #controls.controls-left,
    body.has-favorites #controls.controls-left,
    body.has-favorites #controls:not(.controls-left) {
        top: auto; left: 0; right: 0; bottom: 52px;
        max-height: calc(88vh - 52px);
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    body.has-favorites #map-quickbar { top:auto; }
    body:not(.controls-minimized):has(#controls.controls-left) #legend,
    body:not(.controls-minimized):has(#controls.controls-left) #radar-legend { left:6px; }
    #quick-access,
    #model-switcher { order: initial; }
    body:has(#controls.mobile-open) #map-quickbar,
    body:has(#controls.mobile-open) #legend,
    body:has(#controls.mobile-open) #radar-legend,
    body:has(#controls.mobile-open) #hover-tooltip,
    body:has(#controls.mobile-open) #home-btn,
    body:has(#controls.mobile-open) #terrain-btn,
    body:has(#controls.mobile-open) #map-refresh-btn { opacity: 0; pointer-events: none; }
    #home-btn { bottom: 166px; }
    #terrain-btn { bottom: 204px; }
    #map-refresh-btn { bottom: 242px; }
    .simple-weather-card { min-height: 68px; }
    .controls-tab,
    .qa-pill,
    .mode-pill { min-height: 40px; }
    #map-explain-card { top:auto; bottom:60px; left:8px; width:calc(100vw - 16px); }
    #data-status-banner { top:48px; }
}

/* ── Animations-Geschwindigkeitsregler ───────────────────────── */
#anim-speed {
    flex: 1; height: 3px; min-width: 36px; max-width: 72px;
    -webkit-appearance: none; appearance: none;
    background: rgba(255,255,255,0.15); border-radius: 2px; outline: none; cursor: pointer;
}
#anim-speed::-webkit-slider-thumb {
    -webkit-appearance: none; width: 10px; height: 10px;
    background: #484f58; border-radius: 50%; cursor: pointer;
}
#anim-speed::-webkit-slider-thumb:hover { background: #58a6ff; }

/* ── Cross-Section Panel ─────────────────────────────────────── */
#cross-section-panel {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 220px; background: rgba(13,17,23,0.96);
    border-top: 1px solid #30363d;
    z-index: 500; display: flex; flex-direction: column;
    transform: translateY(100%); transition: transform 0.25s ease;
}
#cross-section-panel.open { transform: translateY(0); }
#cross-section-head {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-bottom: 1px solid #21262d; flex-shrink: 0;
}
#cross-section-head span { font-size: 12px; font-weight: 600; color: #e6edf3; flex: 1; }
#cross-section-close, #cross-section-close2 {
    background: none; border: none; color: #8b949e; cursor: pointer; font-size: 16px; padding: 0 4px;
}
#cross-section-svg-wrap { flex: 1; overflow: hidden; padding: 4px 8px; }
#cross-section-hint {
    position: fixed; top: 54px; left: 50%; transform: translateX(-50%);
    background: rgba(88,166,255,0.18); border: 1px solid rgba(88,166,255,0.5);
    color: #58a6ff; font-size: 12px; font-weight: 600;
    padding: 8px 16px; border-radius: 8px; z-index: 9999; pointer-events: none;
    display: none;
}
body.cross-section-mode #cross-section-hint { display: block; }
body.cross-section-mode .maplibregl-canvas { cursor: crosshair !important; }

/* ── Isobar-wrap ─────────────────────────────────────────────── */
#isobar-wrap { margin-top: 2px; }

/* ── Chart-Hover-Tooltip ─────────────────────────────────────── */
.wx-chart-tooltip {
    position: absolute; pointer-events: none; z-index: 200;
    background: rgba(22,27,34,0.96); border: 1px solid #30363d;
    border-radius: 5px; padding: 4px 8px; font-size: 10px; color: #e6edf3;
    white-space: nowrap; display: none;
}
.wx-chart-box { position: relative; }

/* ── wx-cross-btn ────────────────────────────────────────────── */
#wx-cross-btn {
    background: none; border: 1px solid rgba(255,255,255,0.15);
    color: #8b949e; font-size: 14px; padding: 3px 6px;
    border-radius: 5px; cursor: pointer; line-height: 1;
}
#wx-cross-btn:hover { color: #58a6ff; border-color: rgba(88,166,255,0.4); }
#wx-cross-btn.active { color: #58a6ff; border-color: #58a6ff; background: rgba(88,166,255,0.15); }

/* ── PWA Install-Banner ───────────────────────────────────────── */
#pwa-install-banner {
    position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%);
    background: rgba(22,27,34,0.96);
    border: 1px solid rgba(88,166,255,0.3);
    border-radius: 12px; padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    z-index: 100; font-size: 12px; color: #e6edf3;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    max-width: 320px;
}
#pwa-install-banner.hidden { display: none; }
#pwa-install-btn {
    background: rgba(88,166,255,0.2);
    border: 1px solid rgba(88,166,255,0.4);
    color: #58a6ff; font-size: 11px;
    padding: 5px 12px; border-radius: 7px;
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s;
}
#pwa-install-btn:hover { background: rgba(88,166,255,0.35); }
#pwa-install-dismiss {
    background: none; border: none; color: #8b949e;
    font-size: 13px; cursor: pointer; padding: 2px;
}

/* ── Auth-UI ───────────────────────────────────────────────────── */
#auth-wrap {
    display: flex; align-items: center; gap: 8px;
    margin-left: 8px; flex-shrink: 0;
}
#auth-user-label {
    font-size: 11px; color: #8b949e; max-width: 120px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#auth-btn {
    background: rgba(88,166,255,0.15);
    border: 1px solid rgba(88,166,255,0.4);
    color: #58a6ff; font-size: 11px;
    padding: 4px 11px; border-radius: 7px;
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s;
}
#auth-btn:hover { background: rgba(88,166,255,0.28); }
#auth-btn.logged-in {
    background: rgba(74,222,128,0.1);
    border-color: rgba(74,222,128,0.35);
    color: #4ade80;
}
#auth-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
}
#auth-modal.hidden { display: none; }
#auth-modal-box {
    background: #161b22;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 24px 28px;
    width: 320px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.auth-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
#auth-modal-title {
    font-size: 15px; font-weight: 600; color: #e6edf3;
}
#auth-modal-close {
    background: none; border: none; color: #8b949e;
    font-size: 16px; cursor: pointer; padding: 2px 5px;
    line-height: 1;
}
#auth-modal-close:hover { color: #e6edf3; }
.auth-form-row { margin-bottom: 12px; }
.auth-input {
    width: 100%; box-sizing: border-box;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.13);
    color: #c9d1d9; font-size: 13px;
    padding: 9px 12px; border-radius: 8px;
}
.auth-input:focus {
    outline: none;
    border-color: rgba(88,166,255,0.5);
}
.auth-submit-btn {
    width: 100%; padding: 10px;
    background: rgba(88,166,255,0.2);
    border: 1px solid rgba(88,166,255,0.4);
    color: #58a6ff; font-size: 13px; font-weight: 600;
    border-radius: 8px; cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 10px;
}
.auth-submit-btn:hover { background: rgba(88,166,255,0.35); }
.auth-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-error {
    font-size: 12px; color: #f85149;
    background: rgba(248,81,73,0.1);
    border: 1px solid rgba(248,81,73,0.3);
    border-radius: 6px; padding: 7px 10px;
    margin-bottom: 10px;
}
.auth-error.hidden { display: none; }
.auth-toggle-row {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; font-size: 12px; color: #8b949e;
}
.auth-toggle-btn {
    background: none; border: none;
    color: #58a6ff; font-size: 12px; cursor: pointer;
    padding: 0; text-decoration: underline;
}
.auth-toggle-btn:hover { color: #79b8ff; }
#auth-logged-in {
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
}
#auth-logged-in.hidden { display: none; }
.auth-user-info {
    font-size: 12px; color: #8b949e;
    margin-bottom: 10px; text-align: center;
}
.auth-user-info strong { color: #e6edf3; }
.auth-logout-btn {
    width: 100%; padding: 8px;
    background: rgba(248,81,73,0.1);
    border: 1px solid rgba(248,81,73,0.3);
    color: #f85149; font-size: 12px;
    border-radius: 7px; cursor: pointer;
    transition: background 0.15s;
}
.auth-logout-btn:hover { background: rgba(248,81,73,0.2); }

/* ── Profil-Modal (eingeloggt) ───────────────────────────────────── */
#auth-modal-box {
    width: 360px;
}
.profile-user-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0 14px;
    font-size: 13px; color: #8b949e;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 14px;
}
.profile-avatar { font-size: 22px; }
.profile-tabs {
    display: flex; gap: 4px; margin-bottom: 14px;
}
.profile-tab {
    flex: 1; padding: 7px 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 7px; color: #8b949e;
    font-size: 12px; cursor: pointer;
    transition: all 0.15s;
}
.profile-tab:hover { background: rgba(255,255,255,0.08); color: #c9d1d9; }
.profile-tab.active {
    background: rgba(88,166,255,0.15);
    border-color: rgba(88,166,255,0.4);
    color: #58a6ff;
}
.profile-tab-content { min-height: 160px; }
.profile-section-title {
    font-size: 11px; font-weight: 600; color: #8b949e;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.profile-list-row {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; margin-bottom: 5px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 7px;
}
.profile-list-label {
    flex: 1; font-size: 12px; color: #c9d1d9;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-del-btn {
    background: rgba(248,81,73,0.1);
    border: 1px solid rgba(248,81,73,0.3);
    color: #f85149; font-size: 11px;
    padding: 3px 9px; border-radius: 5px;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: background 0.15s;
}
.profile-del-btn:hover { background: rgba(248,81,73,0.22); }
.profile-del-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.profile-empty {
    font-size: 12px; color: #8b949e;
    display: block; padding: 20px 0; text-align: center;
}
.profile-danger-zone {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.profile-cred-saved {
    font-size: 11px; color: #4ade80;
    background: rgba(74,222,128,0.07);
    border: 1px solid rgba(74,222,128,0.2);
    border-radius: 6px; padding: 6px 10px;
    margin-bottom: 10px;
}
.profile-cred-saved code {
    font-family: monospace; font-size: 11px; color: #c9d1d9;
}
.profile-cred-missing {
    color: #8b949e;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.09);
}
