/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WETTER-DETAIL-MODAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.wmodal-backdrop {
    position:fixed; inset:0; z-index:2000;
    background:rgba(5,7,11,0.78);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    display:flex; align-items:center; justify-content:center;
    padding:30px 20px;
    opacity:0; pointer-events:none;
    transition:opacity .25s ease;
}
.wmodal-backdrop.open { opacity:1; pointer-events:auto; }

.wmodal {
    background:linear-gradient(135deg, rgba(20,24,36,0.95) 0%, rgba(14,18,28,0.95) 100%);
    border:1px solid var(--border-h);
    border-radius:var(--radius-lg);
    box-shadow:0 30px 80px rgba(0,0,0,0.7), 0 0 60px rgba(94,234,212,0.1);
    width:100%; max-width:980px; max-height:calc(100vh - 60px);
    overflow-y:auto;
    transform:scale(.95) translateY(15px);
    opacity:0;
    transition:transform .35s cubic-bezier(.34,1.4,.64,1), opacity .25s ease;
    position:relative;
}
.wmodal-backdrop.open .wmodal { transform:scale(1) translateY(0); opacity:1; }

.wmodal::-webkit-scrollbar { width:8px; }
.wmodal::-webkit-scrollbar-track { background:transparent; }
.wmodal::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:4px; }
.wmodal::-webkit-scrollbar-thumb:hover { background:rgba(255,255,255,0.18); }

.wmodal-header {
    padding:20px 26px 14px;
    display:flex; justify-content:space-between; align-items:flex-start;
    border-bottom:1px solid var(--border);
    position:sticky; top:0;
    background:linear-gradient(180deg, rgba(20,24,36,0.98) 0%, rgba(20,24,36,0.92) 100%);
    backdrop-filter:blur(20px);
    z-index:5;
}
.wmodal-title {
    font-size:1.4rem; font-weight:300; color:var(--text);
    letter-spacing:-0.02em; margin:0;
    display:flex; align-items:center; gap:10px;
}
.wmodal-title .lucide { color:var(--teal-2); width:22px; height:22px; }
.wmodal-sub { font-size:0.72rem; color:var(--text-3); letter-spacing:0.08em; text-transform:uppercase; margin-top:3px; }

.wmodal-close {
    width:34px; height:34px; border-radius:50%;
    background:var(--glass2); border:1px solid var(--border);
    color:var(--text-2); cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:all .2s ease;
    flex-shrink:0;
}
.wmodal-close:hover { background:rgba(244,114,182,0.12); border-color:rgba(244,114,182,0.3); color:var(--accent-rose); transform:rotate(90deg); }
.wmodal-close .lucide { width:16px; height:16px; }

.wmodal-body { padding:18px 26px 26px; }

/* Section heading inside modal */
.wmodal-section-h {
    font-size:0.65rem; font-weight:600; letter-spacing:0.13em;
    text-transform:uppercase; color:var(--text-3);
    margin:18px 0 10px;
    display:flex; align-items:center; gap:6px;
}
.wmodal-section-h .lucide { color:var(--teal-3); width:13px; height:13px; }
.wmodal-section-h:first-child { margin-top:0; }

/* 24h Chart */
.chart-card {
    background:var(--glass2); border:1px solid var(--border);
    border-radius:var(--radius-sm); padding:16px;
    height:280px; position:relative;
}
.chart-card canvas { max-height:100%; }

/* Stündliche Mini-Cards */
.hourly-row {
    display:grid; grid-template-columns:repeat(8, minmax(80px, 1fr));
    gap:7px; overflow-x:auto;
    padding-bottom:6px;
    scrollbar-width:thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.hourly-row::-webkit-scrollbar { height:6px; }
.hourly-row::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:3px; }
.hour-card {
    background:var(--glass2); border:1px solid var(--border);
    border-radius:var(--radius-sm); padding:10px 6px;
    text-align:center; flex-shrink:0;
    transition:background .2s, transform .2s;
}
.hour-card:hover { background:var(--glass-hi); transform:translateY(-2px); }
.hour-card .ht { font-size:0.62rem; color:var(--text-3); font-weight:600; letter-spacing:0.05em; text-transform:uppercase; }
.hour-card .hi-icon { width:24px; height:24px; color:var(--teal-2); margin:5px auto; display:block; }
.hour-card .hi-icon .lucide { width:24px; height:24px; }
.hour-card .htemp { font-size:1.05rem; font-weight:600; color:var(--text); }
.hour-card .hpop {
    font-size:0.6rem; color:var(--accent-blue); margin-top:2px;
    display:flex; align-items:center; justify-content:center; gap:2px;
}
.hour-card .hpop .lucide { width:9px; height:9px; }
.hour-card .hwind { font-size:0.55rem; color:var(--text-3); margin-top:2px; }

/* 7-Tage erweitert */
.fc7 { display:grid; grid-template-columns:repeat(7, 1fr); gap:7px; }
@media(max-width:780px) { .fc7 { grid-template-columns:repeat(4, 1fr); } }
@media(max-width:500px) { .fc7 { grid-template-columns:repeat(3, 1fr); } }

/* Modal Detail-Stats */
.det-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
@media(max-width:780px) { .det-grid { grid-template-columns:repeat(2, 1fr); } }
.det-tile {
    background:var(--glass2); border:1px solid var(--border);
    border-radius:var(--radius-sm); padding:11px 12px;
    transition:background .2s;
}
.det-tile:hover { background:var(--glass-hi); }
.det-tile .di { color:var(--teal-3); margin-bottom:4px; }
.det-tile .di .lucide { width:14px; height:14px; }
.det-tile .dv { font-size:1.15rem; font-weight:600; color:var(--text); line-height:1.1; }
.det-tile .dv small { font-size:0.65rem; color:var(--text-2); font-weight:400; margin-left:2px; }
.det-tile .dl { font-size:0.55rem; color:var(--text-3); text-transform:uppercase; letter-spacing:0.08em; margin-top:3px; }

/* UV-Bar */
.uv-bar {
    height:5px; border-radius:3px; margin-top:5px;
    background:linear-gradient(to right, #2dd4bf 0%, #fbbf24 30%, #fb923c 60%, #f87171 80%, #c084fc 100%);
    position:relative;
}
.uv-bar::after {
    content:''; position:absolute; top:-2px; width:3px; height:9px;
    background:#fff; border-radius:2px;
    box-shadow:0 0 6px rgba(255,255,255,0.7);
    left:var(--uv-pos, 0%); transform:translateX(-50%);
    transition:left .6s cubic-bezier(.34,1.4,.64,1);
}

/* Wetter-Radar */
.radar-card {
    background:var(--glass2); border:1px solid var(--border);
    border-radius:var(--radius-sm);
    height:340px; overflow:hidden;
    position:relative;
}
.radar-map { width:100%; height:100%; background:#0a0d14; }
.leaflet-container { background:#0a0d14 !important; font-family:inherit !important; }
.radar-legend {
    position:absolute; bottom:8px; left:8px;
    background:rgba(10,13,20,0.85); backdrop-filter:blur(8px);
    padding:5px 9px; border-radius:6px;
    font-size:0.6rem; color:var(--text-2);
    display:flex; align-items:center; gap:7px;
    z-index:500;
    border:1px solid var(--border);
}
.radar-legend .leg-bar { width:60px; height:7px; border-radius:3px;
    background:linear-gradient(to right, #6dd5ed 0%, #2196f3 30%, #ffeb3b 60%, #ff9800 80%, #f44336 100%);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ANSICHT 3 · WETTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.wx-wrap {
    position:relative; z-index:1; min-height:100vh;
    padding:50px 18px 100px;
    max-width:var(--maxw); margin:0 auto;
    display:flex; flex-direction:column; gap:14px;
}
.wx-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.wx-head h1 { font-size:1.35rem; font-weight:700; letter-spacing:-0.02em; margin:0; display:flex; align-items:center; gap:9px; }
.wx-head h1 .lucide { width:20px; height:20px; color:var(--teal-2); }
.wx-head .sub { font-size:0.72rem; color:var(--text-3); letter-spacing:0.08em; text-transform:uppercase; margin-top:4px; }

/* Hero: gemessener Ist-Wert (Ecowitt) + Prognose-Zustand (Open-Meteo) */
.wx-hero {
    display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:18px;
    background:linear-gradient(145deg, var(--w-bg-1), var(--w-bg-2));
    transition:background 1.2s ease;
}
.wx-hero-now { display:flex; align-items:center; gap:18px; }
.wx-hero-icon {
    width:74px; height:74px; flex-shrink:0;
    display:grid; place-items:center;
    border-radius:22px; background:var(--glass2); border:1px solid var(--border);
}
.wx-hero-icon .lucide { width:38px; height:38px; color:var(--teal-1); }
.wx-hero-temp { font-size:3.4rem; font-weight:200; line-height:1; letter-spacing:-0.04em; }
.wx-hero-temp small { font-size:1.2rem; font-weight:300; color:var(--text-2); margin-left:3px; }
.wx-hero-desc { font-size:0.95rem; color:var(--text); margin-top:6px; }
.wx-hero-src { font-size:0.62rem; color:var(--text-3); text-transform:uppercase; letter-spacing:0.08em; margin-top:5px; }
.wx-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.wx-chip {
    font-size:0.68rem; color:var(--text-2);
    background:var(--glass2); border:1px solid var(--border);
    padding:3px 9px; border-radius:999px; white-space:nowrap;
}
.wx-chip b { color:var(--text); font-weight:600; }
.wx-hero-stats { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; align-content:center; }
.wx-stat {
    background:var(--glass2); border:1px solid var(--border);
    border-radius:var(--radius-sm); padding:11px 13px;
}
.wx-stat .v { font-size:1.35rem; font-weight:300; letter-spacing:-0.02em; }
.wx-stat .v small { font-size:0.7rem; color:var(--text-2); margin-left:2px; }
.wx-stat .l { font-size:0.58rem; color:var(--text-3); text-transform:uppercase; letter-spacing:0.08em; margin-top:3px; }

/* Abschnitts-Überschrift innerhalb der Ansicht (analog zum früheren Modal) */

/* Sensor-Gitter der Station */
.wx-sensor-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(112px,1fr)); gap:8px; }
.wx-sensor {
    background:var(--glass2); border:1px solid var(--border);
    border-radius:var(--radius-sm); padding:11px 12px;
    transition:background .2s, border-color .2s;
}
.wx-sensor:hover { background:var(--glass-hi); border-color:var(--border-h); }
.wx-sensor .lucide { width:13px; height:13px; color:var(--teal-3); }
.wx-sensor .v { font-size:1.15rem; font-weight:300; letter-spacing:-0.02em; margin-top:7px; }
.wx-sensor .v small { font-size:0.66rem; color:var(--text-2); margin-left:2px; }
.wx-sensor .l { font-size:0.57rem; color:var(--text-3); text-transform:uppercase; letter-spacing:0.07em; margin-top:3px; }
.wx-sensor .offline-val { font-size:0.75rem; color:var(--text-3); font-style:italic; }

.wx-foot { display:flex; align-items:center; gap:6px; font-size:0.63rem; color:var(--text-3); padding:0 4px; }

/* Windy-Karte mit Layer-Umschaltung */
.windy-bar { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.windy-btn {
    font-family:inherit; font-size:0.68rem; color:var(--text-2);
    background:var(--glass2); border:1px solid var(--border);
    padding:5px 11px; border-radius:999px; cursor:pointer;
    display:inline-flex; align-items:center; gap:5px; white-space:nowrap;
    transition:background .18s, color .18s, border-color .18s;
}
.windy-btn .lucide { width:12px; height:12px; }
.windy-btn:hover { background:var(--glass-hi); color:var(--text); border-color:var(--border-h); }
.windy-btn.active { background:var(--teal-1); border-color:var(--teal-1); color:#04121a; font-weight:600; }
.windy-card {
    background:var(--glass2); border:1px solid var(--border);
    border-radius:var(--radius-sm); overflow:hidden;
    height:624px; position:relative;
}
.windy-card iframe { width:100%; height:100%; border:0; display:block; }
.windy-ph { position:absolute; inset:0; display:grid; place-items:center; font-size:0.72rem; color:var(--text-3); }
@media (max-width:640px) { .windy-card { height:442px; } }
