/* Wetterportal – Höhenlinien-Design für das Schwarzatal */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --tinte: #0f3a44;
  --tal: #2b7483;
  --tal-hell: #7fc0cf;
  --nebel: #eef4f5;
  --seite: #f6f9f9;
  --papier: #ffffff;
  --linie: #d8e3e5;
  --text: #25343a;
  --leise: #5b6e75;
  --ok: #2f8f5b;
  --fokus: #1d8fa8;
  --r-gross: 18px;
  --r-klein: 10px;
  --anzeige: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --schrift: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--seite); color: var(--text);
  font: 400 1.0625rem/1.6 var(--schrift);
}
a { color: var(--tal); text-underline-offset: 3px; }
a:hover { color: var(--tinte); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tinte); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { flex: none; }

h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; font-family: var(--anzeige); color: var(--tinte); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 600; margin: 8px 0 16px; }
h2 { font-size: 1.35rem; font-weight: 600; margin: 0 0 12px; }

/* ---------- Kopf ---------- */
.site-header { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 30; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--tinte); text-decoration: none; }
.logo:hover { color: var(--tinte); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text small { font-size: .85rem; color: var(--leise); }
.logo-text strong { font-family: var(--anzeige); font-size: 1.45rem; font-weight: 650; letter-spacing: -.01em; }
.hauptnav { display: flex; gap: 2px; align-items: center; }
.hauptnav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.hauptnav a:hover { background: var(--nebel); color: var(--tinte); }
.hauptnav a.aktiv { background: #dfeef1; color: var(--tinte); }
.hauptnav .ic { width: 15px; height: 15px; }
.hauptnav .nav-extern { color: var(--leise); font-weight: 500; }
.mm-knopf {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border: 0; border-radius: 9px; background: none;
  color: var(--text); font: 600 1rem var(--schrift); cursor: pointer;
}
.mm-knopf:hover, .mm-knopf[aria-expanded="true"] { background: var(--nebel); color: var(--tinte); }
.mm-knopf.aktiv { background: #dfeef1; color: var(--tinte); }
.mm-knopf .ic { width: 15px; height: 15px; transition: transform .15s; }
.mm-knopf[aria-expanded="true"] .ic { transform: rotate(180deg); }
.site-header { position: sticky; }
.mm-felder { position: absolute; left: 0; right: 0; top: 100%; }
.mm-feld { background: var(--papier); border-bottom: 1px solid var(--linie); box-shadow: 0 18px 30px -18px rgba(15,58,68,.35); }
.mm-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px; padding-top: 16px; padding-bottom: 18px; }
.mm-raster a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; color: var(--text); text-decoration: none; }
.mm-raster a:hover, .mm-raster a.aktiv { background: var(--nebel); color: var(--tinte); }
.mm-raster .ic { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 11px; background: var(--nebel); color: var(--tal); }
.mm-raster a:hover .ic { background: #fff; }
.mm-raster span { display: flex; flex-direction: column; line-height: 1.25; }
.mm-raster strong { font-size: 1.02rem; }
.mm-raster small { color: var(--leise); font-size: .9rem; }
@media (max-width: 860px) { .mm-felder { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--tinte) center/cover; color: #fff; padding: 44px 0 76px; isolation: isolate; }
.konturen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke: rgba(160,215,226,.2); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.konturen path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: zeichnen 2.8s cubic-bezier(.3,.6,.2,1) both; vector-effect: non-scaling-stroke; }
.konturen path:nth-child(3n) { animation-delay: .25s; }
.konturen path:nth-child(3n+1) { animation-delay: .5s; }
.konturen .major { stroke: rgba(160,215,226,.42); stroke-width: 1.6; }
@keyframes einblenden { from { opacity: 0; } }
@keyframes hochschieben { from { transform: translateY(40px); opacity: .6; } }
@keyframes zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 40px; align-items: end; }
.hero-ort { margin: 0; font-size: 1.1rem; color: #bfe0e8; }
.hero-zahl { margin: 0; font-family: var(--anzeige); font-weight: 700; font-size: clamp(5.5rem, 17vw, 11.5rem); line-height: .95; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.hero-zahl .grad { font-size: .38em; font-weight: 300; letter-spacing: 0; margin-left: .08em; color: var(--tal-hell); vertical-align: top; position: relative; top: .22em; }
.hero-quelle { margin: 14px 0 0; color: #bfe0e8; font-size: .98rem; max-width: 34rem; }
.hero-werte { margin: 0; display: grid; gap: 0; }
.hero-werte > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(160,215,226,.3); }
.hero-werte > div:last-child { border-bottom: 1px solid rgba(160,215,226,.3); }
.hero-werte dt { color: #bfe0e8; }
.hero-werte dd { margin: 0; font-family: var(--anzeige); font-size: 1.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-werte small { font-family: var(--schrift); font-size: .95rem; font-weight: 400; color: #bfe0e8; margin-left: 5px; }

/* ---------- Kopfleiste (Start): DWD-Station + Warnung ---------- */
.statusleiste { position: relative; overflow: hidden; background: var(--tinte); color: #fff; isolation: isolate; min-height: 450px; display: flex; align-items: center; background-size: cover; background-position: center; }
.statusleiste > .container { width: 100%; }
.statusleiste--bild .konturen { display: none; }
/* Foto-Variante: Bild bleibt gut sichtbar, nur links ein Verlauf für die Lesbarkeit */
.statusleiste--bild { min-height: clamp(420px, 56vw, 560px); text-shadow: 0 1px 14px rgba(5,30,38,.55); }
.statusleiste--bild .sl-warn { text-shadow: none; box-shadow: 0 14px 34px -14px rgba(5,30,38,.7); }
.statusleiste--bild .sl-ok { background: rgba(8,40,50,.55); backdrop-filter: blur(6px); }
.statusleiste-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.sl-label { margin: 0 0 6px; color: #bfe0e8; font-size: 1.1rem; }
.sl-werte { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 28px; }
.sl-temp { flex-basis: 100%; }
.sl-temp { font-family: var(--anzeige); font-weight: 700; font-size: clamp(5.5rem, 13vw, 9rem); line-height: .95; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.sl-temp small { font-weight: 300; font-size: .5em; color: var(--tal-hell); margin-left: 3px; letter-spacing: 0; }
.sl-chip { color: #bfe0e8; font-size: 1.05rem; white-space: nowrap; }
.sl-chip b { color: #fff; font-family: var(--anzeige); font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sl-warnung { display: grid; gap: 10px; }
.sl-warn {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: color-mix(in srgb, var(--w, #fff) 22%, #fff); border-left: 6px solid var(--w, var(--ok));
}
.sl-warn:hover { color: var(--text); background: color-mix(in srgb, var(--w, #fff) 32%, #fff); }
.sl-warn > span:nth-child(2) { flex: 1; font-size: .98rem; line-height: 1.3; }
.sl-warn small { display: block; color: var(--leise); font-size: .85rem; }
.sl-warn > .ic:last-child { flex: none; color: var(--leise); width: 18px; height: 18px; }
.sl-warn .signal-stufe { width: 30px; height: 30px; }
.sl-ok { --w: var(--ok); background: rgba(255,255,255,.12); color: #fff; border-left-color: #6fcf97; }
.sl-ok:hover { background: rgba(255,255,255,.2); color: #fff; }
.sl-ok small, .sl-ok > .ic:last-child { color: #bfe0e8; }
.sl-mehr { color: #bfe0e8; font-size: .92rem; padding-left: 4px; }
.sl-mehr:hover { color: #fff; }
@media (max-width: 860px) {
  .statusleiste { min-height: 0; }
  .statusleiste-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 40px; }
}

/* Kompaktes Hero: DWD-Referenzwert unterhalb der eigenen Station, ohne zweite Riesenzahl */
.hero-kompakt { padding: 30px 0 62px; }
.hero-kompakt .hero-inner { align-items: center; gap: 28px; }
.hero-kompakt .hero-zahl { font-size: clamp(3.4rem, 9vw, 5.2rem); }
.hero-kompakt .hero-ort { font-size: 1rem; margin-bottom: 4px; }
.hero-kompakt .hero-quelle { margin-top: 8px; font-size: .92rem; }
.hero-kompakt .hero-werte > div { padding: 9px 0; }
.hero-kompakt .hero-werte dd { font-size: 1.4rem; }

/* ---------- Inhalt ---------- */
main { padding-top: 28px; padding-bottom: 36px; }
.seite-index main { padding-top: 0; }
.dash-start { padding-top: 24px; padding-bottom: 28px; }
.dash-titel { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 14px; }
.hinweis { font-size: .92rem; color: var(--leise); }

/* Signal: Warnlage auf einen Blick, überlappt das Hero */
.signal, .warn-liste { position: relative; }
.seite-index main > .signal, .seite-index .warn-liste { margin-top: -34px; z-index: 2; }
.signal {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--papier);
  border: 1px solid var(--linie); border-radius: var(--r-gross); text-decoration: none; color: var(--text);
  box-shadow: 0 10px 30px -14px rgba(15,58,68,.35); margin-bottom: 12px;
}
.signal > span:not([class]), .signal > span:nth-child(2) { flex: 1; }
.signal:hover { color: var(--text); border-color: var(--tal); }
.signal > .ic:last-child { color: var(--leise); }
.signal small { display: block; color: var(--leise); font-size: .9rem; }
.signal-punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px rgba(47,143,91,.18); flex: none; }
.signal-warn { background: color-mix(in srgb, var(--w) 20%, #fff); border-color: color-mix(in srgb, var(--w) 70%, #fff); border-left: 7px solid var(--w); }
.signal-stufe { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--w); color: var(--wf); font-family: var(--anzeige); font-weight: 700; }
.vorab { font-style: normal; font-size: .82rem; font-weight: 700; padding: 1px 9px; border-radius: 20px; background: rgba(0,0,0,.09); margin-right: 8px; }
.warn-liste { display: grid; gap: 0; }

/* Flächen */
.flaeche, .karte { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--r-gross); padding: 22px 26px; margin-bottom: 20px; }
.flaeche-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 8px; }
.flaeche-kopf h2 { flex: 1 1 14rem; min-width: 0; }
.flaeche-kopf h2 { margin: 0; }
.flaeche-kopf a { white-space: nowrap; flex: none; }
.flaeche-kopf a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; text-decoration: none; }
.flaeche-kopf .ic { width: 18px; height: 18px; }
.karte h2:first-child { font-size: 1.3rem; }

/* Tagesvorhersage */
.tage { list-style: none; margin: 0; padding: 0; }
.tage li { display: grid; grid-template-columns: minmax(5.2rem, 6.5rem) 2rem 2.6rem minmax(70px, 1fr) 2.6rem 4.4rem; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--nebel); }
.tage li:first-child { border-top: 0; }
.tag-name { font-weight: 700; color: var(--tinte); }
.tag-name small { display: block; font-weight: 400; color: var(--leise); font-size: .85rem; line-height: 1.2; }
.tag-sym { font-size: 1.5rem; text-align: center; }
.tag-min { text-align: right; color: var(--leise); font-variant-numeric: tabular-nums; }
.tag-max { font-weight: 700; font-family: var(--anzeige); font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.tag-balken { position: relative; height: 8px; border-radius: 8px; background: var(--nebel); }
.tag-balken i { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, var(--tal-hell), var(--tal)); }
.tage .heute .tag-balken i { background: linear-gradient(90deg, #5fb3c6, var(--tinte)); }
.tag-regen { text-align: right; font-size: .9rem; color: #3a6fa8; font-variant-numeric: tabular-nums; }

/* Weitere Angebote */
.weiter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.weiter a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--papier); border: 1px solid var(--linie); border-radius: 14px; text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
.weiter a:hover { border-color: var(--tal); background: #fbfeff; color: var(--text); }
.weiter a > .ic:first-child { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--nebel); color: var(--tal); }
.weiter a > .ic:last-child { margin-left: auto; color: #9ab0b6; width: 20px; height: 20px; }
.weiter span { display: flex; flex-direction: column; line-height: 1.3; }
.weiter strong { color: var(--tinte); }
.weiter small { color: var(--leise); font-size: .92rem; }

/* ---------- Unterseiten ---------- */
.status-ok { color: #1d7a48; font-weight: 600; }
.status-warnung { color: #b3350c; font-weight: 600; }
.button { display: inline-block; background: var(--tinte); color: #fff; padding: 11px 20px; border: 0; border-radius: var(--r-klein); text-decoration: none; cursor: pointer; font: 600 1rem var(--schrift); margin-top: 8px; }
.button:hover { background: var(--tal); color: #fff; }
.extern-link { margin: 0 0 14px; }

.filter-formular label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--leise); font-size: .95rem; }
.filter-formular select { width: 100%; padding: 12px 14px; border: 1px solid #bccdd1; border-radius: var(--r-klein); font: inherit; background: #fff; color: var(--text); }

.warnkarte { background: color-mix(in srgb, var(--w) 14%, #fff); border: 1px solid color-mix(in srgb, var(--w) 60%, #fff); border-left: 7px solid var(--w); border-radius: 14px; padding: 18px 22px; margin-bottom: 14px; }
.warnkarte.ist-vorab { border-style: dashed; border-left-style: solid; }
.warnkarte header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.warnkarte h2 { margin: 0 0 2px; font-size: 1.25rem; }
.warnkarte-meta { margin: 0; color: var(--leise); font-size: .92rem; }
.warnkarte p { margin: 0 0 10px; }
.anweisung { padding: 10px 14px; background: rgba(255,255,255,.7); border-radius: 10px; }

.wetterbericht { white-space: pre-wrap; font: .9rem/1.55 ui-monospace, Consolas, monospace; background: var(--nebel); padding: 18px; border-radius: 12px; overflow-x: auto; margin: 0; }
.meldegrenzen-tabelle, .api-tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 14px 0; }
.meldegrenzen-tabelle th, .meldegrenzen-tabelle td, .api-tabelle th, .api-tabelle td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--nebel); vertical-align: top; }
.meldegrenzen-tabelle th, .api-tabelle th { color: var(--leise); font-weight: 600; }

.wbi-legende { display: flex; flex-wrap: wrap; gap: 10px; }
.wbi-stufe { flex: 1 1 140px; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.wbi-zahl { font: 700 1.1rem var(--anzeige); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wbi-label { font-weight: 600; font-size: .92rem; }
.wbi-karten-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.wbi-kartenbild { margin: 0; text-align: center; }
.wbi-kartenbild figcaption { font-weight: 700; margin-bottom: 6px; color: var(--tinte); }
.wbi-kartenbild img { width: 100%; height: auto; border-radius: 12px; display: block; }
.wbi-kartenbild .hinweis { display: block; margin-top: 4px; }

code { font: .88em ui-monospace, Consolas, monospace; background: var(--nebel); padding: 1px 6px; border-radius: 4px; word-break: break-all; }
/* Code-Beispiele mit Reitern */
.code-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs button { flex: none; border: 1px solid var(--linie); background: var(--papier); color: var(--text); font: 600 .95rem var(--schrift); padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.code-tabs button[aria-selected="true"] { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.code-block { position: relative; }
.code-block[hidden] { display: none; }
.code-kopie { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; font: 600 .85rem var(--schrift); padding: 6px 12px; cursor: pointer; }
.code-kopie:hover { background: rgba(255,255,255,.26); }
.code-block pre.code { margin: 0; padding-top: 44px; }
pre.code { padding: 14px 16px; overflow-x: auto; background: var(--tinte); color: #d7e8ec; border-radius: 12px; font: .85rem/1.5 ui-monospace, Consolas, monospace; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--tinte); color: #bfe0e8; font-size: .95rem; padding: 28px 0 34px; margin-top: 12px; }
.site-footer p { margin: 0 0 8px; max-width: 60rem; }
.footer-links a { color: #fff; margin-right: 22px; }
.footer-links a:hover { color: var(--tal-hell); }

/* ---------- Tab-Leiste (mobil) ---------- */
.tabbar, .blatt, .menue-knopf { display: none; }
body.embed { background: var(--papier); }
body.embed main { padding-top: 14px; }

@media (max-width: 860px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .hauptnav { display: none; }
  .menue-knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border: 1px solid var(--linie); border-radius: 12px; background: var(--papier); color: var(--tinte); font: 600 1rem var(--schrift); cursor: pointer; }
  .menue-knopf .ic { width: 22px; height: 22px; }
  .menue-knopf.offen { background: var(--nebel); }
  .site-header-inner { min-height: 58px; }
  .hero { padding: 30px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .hero-werte dd { font-size: 1.5rem; }
  .flaeche, .karte { padding: 18px 16px; }
  .weiter { grid-template-columns: 1fr; }
  .tage li { grid-template-columns: 4.6rem 1.8rem 2.2rem minmax(40px, 1fr) 2.2rem; gap: 8px; }
  .tag-regen { display: none; }
  .site-footer { padding-bottom: 40px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--linie);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px;
    color: var(--leise); text-decoration: none; background: none; border: 0; font: 600 .74rem var(--schrift); cursor: pointer;
  }
  .tabbar .ic { width: 23px; height: 23px; }
  .tabbar .aktiv { color: var(--tal); }
  .tabbar .aktiv .ic { stroke-width: 2.2; }
  .blatt { display: flex; position: fixed; inset: 0; z-index: 35; background: rgba(15,58,68,.5); align-items: flex-end; animation: einblenden .2s ease-out; }
  .blatt[hidden] { display: none; }
  .blatt-inhalt { width: 100%; max-height: 85vh; overflow-y: auto; background: var(--papier); border-radius: 24px 24px 0 0; padding: 10px 14px calc(76px + env(safe-area-inset-bottom)); display: grid; gap: 4px; animation: hochschieben .28s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(15,58,68,.25); }
  .blatt-griff { justify-self: center; width: 42px; height: 5px; border-radius: 5px; background: #cbd8db; margin-bottom: 8px; }
  .blatt-kopf { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 4px 8px; }
  .blatt-kopf h2 { font-size: 1.2rem; margin: 0; }
  .blatt-zu { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--nebel); color: var(--tinte); cursor: pointer; }
  .blatt-inhalt a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 12px; border-radius: 14px; color: var(--tinte); text-decoration: none; }
  .blatt-inhalt a > .ic:first-child { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--nebel); color: var(--tal); }
  .blatt-inhalt a > .ic:last-child { margin-left: auto; width: 20px; height: 20px; color: #9ab0b6; }
  .blatt-inhalt a span { display: flex; flex-direction: column; line-height: 1.25; }
  .blatt-inhalt a strong { font-size: 1.05rem; }
  .blatt-inhalt a small { color: var(--leise); font-size: .9rem; }
  .blatt-inhalt a:active, .blatt-inhalt a.aktiv { background: var(--nebel); }
  .tabbar .offen { color: var(--tal); }
  body.blatt-offen { overflow: hidden; }

  h1 { font-size: clamp(1.6rem, 7.2vw, 2rem); }
  .footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
  .footer-links a { margin-right: 0; }
  .code-tabs { margin: 0 -16px; padding: 0 16px; }

  /* Tabellen als gestapelte Liste */
  .api-tabelle, .api-tabelle tbody, .api-tabelle tr, .api-tabelle td { display: block; width: 100%; }
  .api-tabelle tr:first-child:has(th) { display: none; }
  .api-tabelle tr { padding: 10px 0; border-bottom: 1px solid var(--nebel); }
  .api-tabelle td { border: 0; padding: 2px 0; }
  .api-tabelle td:first-child { margin-bottom: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .konturen path { animation: none; }
  .blatt, .blatt-inhalt { animation: none; }
  html { scroll-behavior: auto; }
}

pre.code code { background: none; padding: 0; border-radius: 0; color: inherit; word-break: normal; white-space: pre; font: inherit; }
