/* warnings.css — Seite /warnings/ (Übersicht + Länderseite).
   Baut auf storm-detail.css auf (tc-shell, tc-card, tc-stats, tc-cta …) und ergänzt nur
   Listenzeilen, Stufen-Abzeichen und Filter. Stufenfarben IDENTISCH zur Kartenebene
   (assets/v4/js/meteo-warnings.js, LEVEL_COLORS). Orange nur als Fläche, nie als Schrift. */

.wn [hidden] { display: none !important; }

.wn-back { display: inline-block; margin: 0 0 8px; font-size: 13px; color: var(--muted); text-decoration: none; }
.wn-back:hover { color: var(--text); }
.wn-stand { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* Stufen-Abzeichen */
.wn-lv {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 3px 9px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; line-height: 1.3;
}
.wn-lv--yellow { background: #F4C20D; color: #3a2d00; }
.wn-lv--orange { background: #F57C00; color: #fff; }
.wn-lv--red    { background: #D32F2F; color: #fff; }

/* Übersicht: eine Zeile je Land */
.wn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wn-row { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-elev); overflow: hidden; }
.wn-row-main { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; }
.wn-row-main:hover { background: var(--menu-hover); }
.wn-row-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.wn-row-name { font-weight: 700; font-size: 15px; }
.wn-row-meta { font-size: 13px; color: var(--muted); }
.wn-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

.wn-quiet { margin: 0; font-size: 14px; line-height: 1.8; }
.wn-quiet a { color: inherit; }

/* Länderseite: Filter */
.wn-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.wn-f {
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--text);
  font: inherit; font-size: 13px; cursor: pointer;
}
.wn-f:hover { background: var(--menu-hover); }
.wn-f.is-on { background: var(--accent-soft-bg); border-color: var(--accent-soft-border); }
.wn-sel {
  padding: 6px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); font: inherit; font-size: 13px;
}

/* Länderseite: Region mit ihren Warnungen */
.wn-reg { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-elev); padding: 12px 14px; }
.wn-reg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.wn-reg-name { font-weight: 700; font-size: 15px; }
.wn-maplink { font-size: 13px; color: var(--muted); white-space: nowrap; }
.wn-maplink:hover { color: var(--text); }
.wn-alert { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.wn-alert:first-of-type { border-top: 0; padding-top: 0; }
.wn-alert .wn-lv { flex: 0 0 auto; margin-top: 1px; }
.wn-alert-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wn-alert-hz { font-size: 14px; font-weight: 600; }
.wn-alert-time { font-size: 13px; color: var(--muted); }

.wn-text { margin-top: 4px; font-size: 13px; }
.wn-text summary { cursor: pointer; color: var(--muted); }
.wn-text[open] summary { margin-bottom: 4px; }
.wn-text strong { display: block; font-weight: 600; margin-bottom: 2px; }
.wn-desc { display: block; white-space: pre-line; }
.wn-only, .wn-src { display: block; font-size: 12px; color: var(--muted); margin: 2px 0; }

/* Stundenübersicht je Region — wie das Panel der Startseite (city-forecast.css .wt-*),
   hier mit Seiten-Tokens, damit es hell und dunkel passt. */
.wn-tl { margin: 0 0 10px; display: flex; flex-direction: column; gap: 10px; }
.wn-tl-sum { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--menu-hover); font-size: 13px; line-height: 1.5; }
.wn-tl-sumlv { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 4px 0 2px; }
.wn-tl-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; font-size: 13px; }
.wn-tl-head span { color: var(--muted); font-size: 12px; }
.wn-tl-scale { display: flex; justify-content: space-between; margin-left: 116px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.wn-tl-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px; align-items: center; padding: 3px 0; }
.wn-tl-lab { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-tl-bar { position: relative; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 1px; height: 18px; }
.wn-tl-bar i { display: block; border-radius: 2px; background: color-mix(in srgb, var(--text) 10%, transparent); }
.wn-tl-bar i.vorbei { opacity: .35; }
.wn-tl-now { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text); box-shadow: 0 0 0 1px var(--bg); }
.wn-ico { font-size: 1.05em; }

@media (max-width: 560px) {
  .wn-tl-row { grid-template-columns: 88px minmax(0, 1fr); }
  .wn-tl-scale { margin-left: 94px; }
  .wn-row-main { flex-wrap: wrap; }
  .wn-badges { justify-content: flex-start; }
}
