/* WELTLAGE V1 — Unterseite /fruehwarnung (Kürzel C3, seo-umsetzung 17.11.2026).
   Baut auf /v1/style.css und /v1/gefahren.css auf (Kopf, Fuß, Karten, Brotkrumen, gef-wrap).
   Eigene Regeln nur für die Stufen-Übersicht, die Schwellentabellen (auf dem Handy gestapelt),
   Kennzahlen, Stufen-Marken und das Bild. Hell/Dunkel über die vorhandenen Variablen. */

.c3 .card.wide{gap:14px}
.c3 h2{font-family:var(--display);font-weight:600;font-size:clamp(22px,2.8vw,30px);line-height:1.15;color:var(--ink)}
.c3 h3{font-family:var(--display);font-weight:600;font-size:19px;line-height:1.25;color:var(--ink);margin-top:4px}
.c3 p.text{font-size:15.5px;line-height:1.6;color:var(--ink-soft)}
.c3 p.text b{color:var(--ink)}
.c3 .list li{font-size:15px;line-height:1.55}
.c3 .list li b{color:var(--ink)}
.c3 .list a,.c3 .note a,.c3 td a{color:var(--plum);font-weight:600;text-decoration:none}
.c3 .list a:hover,.c3 .note a:hover,.c3 td a:hover{text-decoration:underline}
.c3 .stand{font-size:13.5px;color:var(--ink-soft);border-top:1px solid var(--line);padding-top:10px}

/* Kennzahlen */
.c3 .kz{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.c3 .kz div{background:var(--tile);border-radius:16px;padding:14px 16px;min-width:0}
.c3 .kz b{display:block;font-family:var(--display);font-size:26px;line-height:1.1;font-weight:600;color:var(--plum)}
.c3 .kz span{font-size:13.5px;line-height:1.4;color:var(--ink-soft)}

/* Drei Stufen als Kacheln */
.c3 .stufen{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.c3 .stufen .tile{gap:8px}
.c3 .stufen .tile h3{margin:0;font-size:17px}
.c3 .stufen .tile p{font-size:14.5px;line-height:1.5;color:var(--ink-soft)}
.c3 .stufen .tile .meta{font-size:13px;color:var(--steel-text);font-weight:600}

/* Stufen-Marken */
.c3 .stufe{display:inline-block;padding:1px 9px;border-radius:999px;font-size:12.5px;font-weight:700;white-space:nowrap;line-height:1.5}
.c3 .stufe.gelb{background:rgba(240,196,25,.22);color:#7A6200}
.c3 .stufe.orange{background:rgba(242,140,40,.2);color:#9A4F0A}
.c3 .stufe.rot{background:rgba(198,40,40,.16);color:#A51F1F}
.c3 .stufe.violett{background:rgba(126,33,126,.16);color:#6B1C6B}
.c3 .stufe.amtlich{background:rgba(44,159,174,.16);color:#1E7480}
.c3 .stufe.modell{background:var(--warn-bg);color:var(--warn-fg)}
:root[data-theme="dark"] .c3 .stufe.gelb{color:#F3D45A}
:root[data-theme="dark"] .c3 .stufe.orange{color:#F7A867}
:root[data-theme="dark"] .c3 .stufe.rot{color:#F08080}
:root[data-theme="dark"] .c3 .stufe.violett{color:#D9A3D9}
:root[data-theme="dark"] .c3 .stufe.amtlich{color:#7FD8E2}

/* Tabellen (auf dem Handy gestapelt, Spaltenname aus data-l) */
.c3 table.fw{width:100%;max-width:100%;border-collapse:collapse;font-size:13.5px;line-height:1.45;table-layout:fixed}
.c3 table.fw th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--plum);padding:6px 8px;border-bottom:2px solid var(--line);vertical-align:bottom}
.c3 table.fw td{padding:8px;border-top:1px solid var(--line);color:var(--ink-soft);vertical-align:top;overflow-wrap:anywhere}
.c3 table.fw td:first-child{color:var(--ink);font-weight:600}
.c3 table.fw td b{color:var(--ink)}
.c3 table.fw.s6 th:nth-child(1){width:15%}
.c3 table.fw.s6 th:nth-child(2){width:24%}
.c3 table.fw.s6 th:nth-child(3){width:20%}
.c3 table.fw.s6 th:nth-child(4){width:12%}
.c3 table.fw.s6 th:nth-child(5){width:13%}
.c3 table.fw.s6 th:nth-child(6){width:16%}
.c3 table.fw.s5 th:nth-child(1){width:11%}
.c3 table.fw.s5 th:nth-child(2){width:26%}
.c3 table.fw.s5 th:nth-child(3){width:21%}
.c3 table.fw.s5 th:nth-child(4){width:16%}
.c3 table.fw.s5 th:nth-child(5){width:26%}
.c3 table.fw.sw th:nth-child(1){width:20%}
.c3 table.fw.sw th:nth-child(2){width:11%}
.c3 table.fw.sw th:nth-child(3){width:11%}
.c3 table.fw.sw th:nth-child(4){width:11%}
.c3 table.fw.sw th:nth-child(5){width:47%}
.c3 table.fw td.n{font-family:var(--display);font-weight:600;color:var(--ink);white-space:nowrap}

/* Bild */
.c3 figure.shot{margin:4px 0 0;border-radius:18px;overflow:hidden;background:var(--tile)}
.c3 figure.shot img{display:block;width:100%;height:auto}
.c3 figure.shot figcaption{font-size:13px;color:var(--ink-soft);padding:10px 14px 12px}

/* Querverweise */
.c3 .nachbarn{display:flex;flex-wrap:wrap;gap:8px}
.c3 .nachbarn a{display:inline-flex;align-items:center;min-height:38px;padding:6px 14px;border-radius:999px;background:var(--chip);color:var(--ink);font-size:14px;font-weight:600;text-decoration:none}
.c3 .nachbarn a:hover{background:var(--tag-bg);color:var(--plum)}

@media (max-width:900px){
  .c3 .stufen{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  .c3 table.fw,.c3 table.fw tbody,.c3 table.fw tr,.c3 table.fw td{display:block;width:100%}
  .c3 table.fw thead{display:none}
  .c3 table.fw tr{border-top:1px solid var(--line);padding:10px 0}
  .c3 table.fw tr:first-child{border-top:0}
  .c3 table.fw td{border:0;padding:2px 0;white-space:normal}
  .c3 table.fw td::before{content:attr(data-l) ": ";font-weight:600;color:var(--plum)}
  .c3 table.fw td:first-child::before{content:none}
  .c3 table.fw td:first-child{font-size:15px;padding-bottom:4px}
  .c3 table.fw{font-size:13.5px}
  .c3 .kz{grid-template-columns:repeat(2,minmax(0,1fr))}
}
