/* =============================================================================
 * css/warnband.css – Amtliche Wetterwarnung (GeoSphere Austria) auf der Startseite
 * Markup: includes/partials/warnband.php, Verhalten: js/warnband.js
 * Nur geladen, wenn eine Warnung angezeigt wird.
 *   Desktop: Band 44 px über beiden Spalten (Referenz .pw/berg_tal/referenz_startseite_desktop_D7.png)
 *   Handy ≤ 600 px: schmales einzeiliges Band ganz oben, „Gelb · Glatteis · bis 11:00 ›“
 * Stufenfarben laut Vorgabe: Gelb #facc15, Orange #fb923c, Rot #ef4444 – Hintergrund 10 %, Rand 45 %.
 * Hell: Hintergrund/Rand gleich, Schrift und Symbol dunkler (Lesbarkeit).
 * ============================================================================= */

.wb-stufe-1 { --wb-hg: rgba(250, 204, 21, .10); --wb-rand: rgba(250, 204, 21, .45); --wb-symbol: #facc15; --wb-titel: #fde047; }
.wb-stufe-2 { --wb-hg: rgba(251, 146, 60, .10); --wb-rand: rgba(251, 146, 60, .45); --wb-symbol: #fb923c; --wb-titel: #fdba74; }
.wb-stufe-3 { --wb-hg: rgba(239, 68, 68, .10);  --wb-rand: rgba(239, 68, 68, .45);  --wb-symbol: #ef4444; --wb-titel: #fca5a5; }
html.light .wb-stufe-1 { --wb-symbol: #ca8a04; --wb-titel: #a16207; }
html.light .wb-stufe-2 { --wb-symbol: #ea580c; --wb-titel: #c2410c; }
html.light .wb-stufe-3 { --wb-symbol: #dc2626; --wb-titel: #b91c1c; }

.wb { --wb-text: #cbd5e1; --wb-leise: #94a3b8; --wb-link: #60a5fa; margin: 0 0 16px; }
html.light .wb { --wb-text: #334155; --wb-leise: #64748b; --wb-link: #1d4ed8; }
.wb[hidden] { display: none; }

/* ── Band ───────────────────────────────────────────────────────────────── */
.wb-band {
    display: flex; align-items: center; gap: 14px;
    width: 100%; height: 44px; padding: 0 16px; box-sizing: border-box;
    background: var(--wb-hg); border: 1px solid var(--wb-rand); border-radius: 12px;
    color: var(--wb-text); font: inherit; text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer;
}
.wb-band:hover { border-color: var(--wb-symbol); }
.wb-band:focus-visible { outline: 2px solid var(--wb-link); outline-offset: 2px; }
.wb-ic { width: 22px; height: 22px; flex: none; color: var(--wb-symbol); }
.wb-titel, .wb-titel-kurz { flex: none; font-size: 14px; font-weight: 700; color: var(--wb-titel); }
.wb-text { flex: 1 1 auto; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.wb-mehr { flex: none; font-size: 12px; font-weight: 600; color: var(--wb-titel); }
.wb-quelle { flex: none; font-size: 12px; color: var(--wb-leise); }
.wb-details { flex: none; font-size: 13px; color: var(--wb-link); }
.wb-titel-kurz, .wb-zeit-kurz { display: none; }

/* ── Handy ──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .wb { margin-bottom: 12px; }
    .wb-band { height: 36px; gap: 8px; padding: 0 12px; border-radius: 10px; }
    .wb-ic { width: 18px; height: 18px; }
    .wb-titel, .wb-text, .wb-quelle, .wb-details-wort { display: none; }
    .wb-titel-kurz { display: inline; font-size: 13px; }
    .wb-zeit-kurz { display: inline; flex: 1 1 auto; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
    .wb-mehr { font-size: 11px; }
    .wb-details { font-size: 18px; line-height: 1; }
}

/* ── Detail-Fenster (Klon von #card-warnung im Modal, außerhalb von .wb) ─── */
.wb-vorlage[hidden] { display: none; }
.wb-vorlage { --wb-text: #cbd5e1; --wb-leise: #94a3b8; --wb-link: #60a5fa; }
html.light .wb-vorlage { --wb-text: #334155; --wb-leise: #64748b; --wb-link: #1d4ed8; }
.wb-vorlage .db-card-label { display: flex; align-items: center; gap: 8px; }
.wb-vorlage .db-card-label .wb-ic { width: 18px; height: 18px; color: var(--wb-leise); }
.wb-liste { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.wb-eintrag {
    background: var(--wb-hg); border: 1px solid var(--wb-rand); border-radius: 12px; padding: 12px 14px;
    color: var(--wb-text); font-size: 14px; line-height: 1.45;
}
.wb-eintrag-titel { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; color: var(--wb-titel); }
.wb-eintrag-titel .wb-ic { width: 18px; height: 18px; }
.wb-eintrag-zeit { margin: 2px 0 8px; font-size: 13px; color: var(--wb-leise); }
.wb-eintrag-gebiet { margin: -6px 0 8px; font-size: 12px; color: var(--wb-leise); }   /* direkt unter der Zeit */
.wb-eintrag-text, .wb-eintrag-meteo { margin: 0 0 8px; }
.wb-eintrag-meteo { color: var(--wb-leise); }
.wb-eintrag-unter { margin: 8px 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--wb-leise); }
.wb-eintrag-punkte { margin: 0; padding-left: 18px; }
.wb-fuss { margin: 12px 0 0; font-size: 12px; color: var(--wb-leise); }
.wb-fuss a { color: var(--wb-link); text-decoration: none; }
.wb-fuss a:hover { text-decoration: underline; }
