/* Stylesheet der modernen Oberflaeche (config.ui = "modern").
 *
 * Dieselben Seiten wie nebenan, andere Bedienung. Die Leitgedanken, damit
 * spaetere Ergaenzungen dazu passen:
 *
 *   1. Die Suche ist die Anwendung. Sie steht oben, immer sichtbar, und
 *      nicht hinter einer Schaltflaeche. Was gefiltert ist, steht als
 *      Chip daneben und laesst sich einzeln wegklicken.
 *   2. Ein Treffer ist eine Karte, keine Tabellenzeile. Titel gross,
 *      Fundstelle darunter, alles Uebrige klein und grau. Auf dem Telefon
 *      aendert sich dadurch nichts am Aufbau - er ist von vornherein
 *      derselbe.
 *   3. Platz. Grosse Klickflaechen, ruhige Flaechen, eine Spalte.
 *   4. Ohne JavaScript vollstaendig bedienbar. Was Skripte hier tun, ist
 *      Beiwerk (Fokus aufs Suchfeld, Farbschema merken).
 *
 * Farben kommen aus Variablen und nur von dort; hell und dunkel folgen
 * dem System, lassen sich aber am Umschalter oben rechts ueberstimmen
 * (data-theme am <html>).
 */

:root {
  color-scheme: light dark;

  --ton: 215;
  --bg: hsl(var(--ton) 30% 97%);
  --flaeche: #fff;
  --flaeche-2: hsl(var(--ton) 30% 98.5%);
  --rand: hsl(var(--ton) 20% 88%);
  --rand-stark: hsl(var(--ton) 16% 78%);
  --text: hsl(var(--ton) 25% 14%);
  --text-leise: hsl(var(--ton) 12% 42%);
  --akzent: hsl(211 72% 42%);
  --akzent-sanft: hsl(211 72% 95%);
  --akzent-text: #fff;
  --gut-bg: hsl(145 55% 94%);
  --gut-text: hsl(145 60% 24%);
  --warn-bg: hsl(38 85% 94%);
  --warn-text: hsl(30 70% 30%);
  --schlecht-bg: hsl(2 70% 95%);
  --schlecht-text: hsl(2 62% 38%);
  --markierung: hsl(48 95% 76%);

  --r: 12px;
  --r-klein: 8px;
  --schatten: 0 1px 2px hsl(var(--ton) 25% 14% / 0.06),
              0 4px 12px hsl(var(--ton) 25% 14% / 0.04);
  --schatten-hoch: 0 2px 6px hsl(var(--ton) 25% 14% / 0.10),
                   0 12px 28px hsl(var(--ton) 25% 14% / 0.10);
  --kopf-hoehe: 60px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"]) {
    --bg: hsl(var(--ton) 24% 10%);
    --flaeche: hsl(var(--ton) 20% 14%);
    --flaeche-2: hsl(var(--ton) 20% 17%);
    --rand: hsl(var(--ton) 14% 24%);
    --rand-stark: hsl(var(--ton) 12% 34%);
    --text: hsl(var(--ton) 18% 92%);
    --text-leise: hsl(var(--ton) 12% 65%);
    --akzent: hsl(206 80% 66%);
    --akzent-sanft: hsl(211 40% 22%);
    --akzent-text: hsl(var(--ton) 30% 10%);
    --gut-bg: hsl(145 30% 18%);
    --gut-text: hsl(145 55% 72%);
    --warn-bg: hsl(36 40% 18%);
    --warn-text: hsl(38 75% 72%);
    --schlecht-bg: hsl(2 35% 20%);
    --schlecht-text: hsl(2 80% 78%);
    --markierung: hsl(48 70% 36%);
    --schatten: 0 1px 2px #0006, 0 4px 12px #0004;
    --schatten-hoch: 0 2px 6px #0007, 0 12px 28px #0006;
  }
}

:root[data-theme="dunkel"] {
  --bg: hsl(var(--ton) 24% 10%);
  --flaeche: hsl(var(--ton) 20% 14%);
  --flaeche-2: hsl(var(--ton) 20% 17%);
  --rand: hsl(var(--ton) 14% 24%);
  --rand-stark: hsl(var(--ton) 12% 34%);
  --text: hsl(var(--ton) 18% 92%);
  --text-leise: hsl(var(--ton) 12% 65%);
  --akzent: hsl(206 80% 66%);
  --akzent-sanft: hsl(211 40% 22%);
  --akzent-text: hsl(var(--ton) 30% 10%);
  --gut-bg: hsl(145 30% 18%);
  --gut-text: hsl(145 55% 72%);
  --warn-bg: hsl(36 40% 18%);
  --warn-text: hsl(38 75% 72%);
  --schlecht-bg: hsl(2 35% 20%);
  --schlecht-text: hsl(2 80% 78%);
  --markierung: hsl(48 70% 36%);
  --schatten: 0 1px 2px #0006, 0 4px 12px #0004;
  --schatten-hoch: 0 2px 6px #0007, 0 12px 28px #0006;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--akzent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* Sichtbarer Fokus ueberall - wer mit der Tastatur arbeitet, muss sehen,
   wo er ist. */
:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
  border-radius: var(--r-klein);
}

/* --- Kopfzeile ---------------------------------------------------------
   Bleibt oben stehen: die Suche soll immer erreichbar sein, ohne nach
   oben zu rollen. */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  min-height: var(--kopf-hoehe);
  padding: 0 20px;
  background: color-mix(in srgb, var(--flaeche) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rand);
}
.marke {
  display: flex; align-items: center; gap: 10px;
  font-weight: 650; letter-spacing: -0.02em; color: var(--text);
  text-decoration: none; white-space: nowrap;
}
.marke img { width: 26px; height: 26px; border-radius: 6px; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Navigation: auf dem PC eine Zeile, auf dem Telefon ein Schubfach hinter
   dem Menueknopf. Das Aufklappen macht ein Ankreuzfeld, kein Skript. */
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  padding: 7px 13px; border-radius: 999px;
  color: var(--text-leise); text-decoration: none; font-size: 15px; font-weight: 500;
  white-space: nowrap;
}
.nav a:hover { background: var(--flaeche-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--akzent-sanft); color: var(--akzent); font-weight: 600; }
.menue-feld, .menue-knopf { display: none; }

.wer {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--rand); color: var(--text-leise);
  text-decoration: none; font-size: 14px; background: var(--flaeche);
}
.wer:hover { border-color: var(--akzent); color: var(--text); }
.kuerzel {
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--akzent); color: var(--akzent-text);
  font-size: 12px; font-weight: 700;
}

/* Umschalter hell/dunkel. Ohne JavaScript bleibt er einfach weg - das
   Farbschema folgt dann dem System. */
.thema { display: none; }
.hat-js .thema {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--rand); border-radius: 50%;
  background: var(--flaeche); color: var(--text-leise); cursor: pointer;
  font-size: 15px; line-height: 1;
}
.hat-js .thema:hover { border-color: var(--akzent); color: var(--akzent); }

/* --- Rumpf ------------------------------------------------------------- */
.rumpf { max-width: 1100px; margin: 0 auto; padding: 28px 20px 80px; }
.schmal { max-width: 560px; }

h1 { font-size: 28px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -0.025em; font-weight: 680; }
h2 { font-size: 19px; margin: 0 0 12px; letter-spacing: -0.015em; font-weight: 650; }
h3 { font-size: 16px; margin: 0 0 8px; font-weight: 650; }
.unter { color: var(--text-leise); margin: 0; }
.leise { color: var(--text-leise); }
.klein { font-size: 14px; }
.winzig { font-size: 13px; }
.kopfzeile {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}

/* --- Flaechen ---------------------------------------------------------- */
.flaeche {
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--r); box-shadow: var(--schatten);
}
.block { padding: 20px; margin-bottom: 20px; }
.kacheln { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 24px; }
.kachel { padding: 16px 18px; }
.kachel .zahl { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.kachel .was { color: var(--text-leise); font-size: 14px; margin-top: 2px; }
.spalten { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* --- Suchleiste --------------------------------------------------------
   Das Herz der Oberflaeche. Zwei Felder nebeneinander (Titel, Volltext),
   die uebrigen Filter klappen darunter auf - aber die Suche selbst ist
   immer da. */
.suche { margin-bottom: 16px; }
.suchzeile { display: flex; gap: 10px; flex-wrap: wrap; }
.suchfeld { position: relative; flex: 1 1 260px; }
.suchfeld input {
  width: 100%; padding: 13px 14px 13px 42px; font: inherit;
  color: var(--text); background: var(--flaeche);
  border: 1px solid var(--rand-stark); border-radius: var(--r);
  box-shadow: var(--schatten);
}
.suchfeld input::placeholder { color: var(--text-leise); }
.suchfeld .lupe {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-leise); pointer-events: none; line-height: 1;
}
.suchfeld label {
  position: absolute; left: 44px; top: -9px; padding: 0 6px;
  background: var(--flaeche); color: var(--text-leise);
  font-size: 12px; font-weight: 600; border-radius: 4px;
}

/* Chips: was gerade gefiltert ist. Jeder traegt sein eigenes Kreuz, das
   genau diesen Filter wegnimmt - ohne das Formular zu oeffnen. */
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 7px 5px 12px; border-radius: 999px;
  background: var(--akzent-sanft); color: var(--akzent);
  font-size: 14px; font-weight: 550; text-decoration: none;
}
.chip .weg {
  display: grid; place-items: center; width: 19px; height: 19px;
  border-radius: 50%; background: color-mix(in srgb, var(--akzent) 18%, transparent);
  color: inherit; text-decoration: none; font-size: 13px; line-height: 1;
}
.chip .weg:hover { background: var(--akzent); color: var(--akzent-text); }
.chips .alle-weg { color: var(--text-leise); font-size: 14px; text-decoration: none; }
.chips .alle-weg:hover { color: var(--text); text-decoration: underline; }

/* Die uebrigen Filter: ein <details>, kein Skript. */
.mehr-filter { margin-bottom: 18px; }
.mehr-filter > summary {
  cursor: pointer; color: var(--text-leise); font-size: 14px; font-weight: 550;
  padding: 8px 2px; list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.mehr-filter > summary::-webkit-details-marker { display: none; }
.mehr-filter > summary::before { content: "⊕"; font-size: 15px; }
.mehr-filter[open] > summary::before { content: "⊖"; }
.mehr-filter > summary:hover { color: var(--text); }
.filtergitter {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 18px; margin-top: 8px;
}
.feld label { display: block; font-size: 13px; font-weight: 600; color: var(--text-leise); margin-bottom: 5px; }
.feld input, .feld select, .feld textarea {
  width: 100%; padding: 9px 11px; font: inherit; color: var(--text);
  background: var(--flaeche-2); border: 1px solid var(--rand-stark);
  border-radius: var(--r-klein);
}
.feld-breit { grid-column: 1 / -1; }
.feld-haken { display: flex; align-items: center; gap: 9px; }
.feld-haken input { width: auto; }
.feld-haken label { margin: 0; font-weight: 500; color: var(--text); }

/* --- Knoepfe ----------------------------------------------------------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 17px; font: inherit; font-size: 15px; font-weight: 600;
  border: 1px solid var(--rand-stark); border-radius: var(--r-klein);
  background: var(--flaeche); color: var(--text);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.knopf:hover { border-color: var(--akzent); color: var(--akzent); }
.knopf-haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.knopf-haupt:hover { filter: brightness(1.08); color: var(--akzent-text); }
.knopf-leise { border-color: transparent; background: transparent; color: var(--text-leise); }
.knopf-leise:hover { background: var(--flaeche-2); color: var(--text); }
.knopf-gefahr { color: var(--schlecht-text); }
.knopf-gefahr:hover { background: var(--schlecht-bg); border-color: var(--schlecht-text); color: var(--schlecht-text); }
.knopf-klein { padding: 6px 11px; font-size: 14px; }
.reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.reihe-rechts { justify-content: flex-end; }
form.inline { display: inline; }

/* --- Treffer als Karten ------------------------------------------------ */
.treffer-kopf {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 4px 0 12px;
}
.treffer-zahl { font-size: 15px; color: var(--text-leise); }
.treffer-zahl strong { color: var(--text); font-weight: 650; }

.karten { display: flex; flex-direction: column; gap: 12px; }
.karte {
  display: block; padding: 16px 18px;
  border-radius: var(--r); border: 1px solid var(--rand);
  background: var(--flaeche); box-shadow: var(--schatten);
}
.karte:hover { box-shadow: var(--schatten-hoch); border-color: var(--rand-stark); }
.karte-titel {
  font-size: 17px; font-weight: 620; line-height: 1.35;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em;
}
.karte-titel:hover { color: var(--akzent); }
.karte-zeile {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  color: var(--text-leise); font-size: 14px; margin-top: 6px;
}
.karte-zeile .punkt { opacity: 0.5; }
.karte-fuss {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rand);
}
.karte-fuss .reihe-rechts { margin-left: auto; }

/* Fundstelle: der Ausschnitt mit markiertem Suchwort, davor die Seite. */
.fundstelle {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--r-klein);
  background: var(--flaeche-2); font-size: 14.5px; line-height: 1.55;
  color: var(--text-leise);
}
.seite-knopf {
  display: inline-block; margin-right: 8px; padding: 1px 8px;
  border-radius: 999px; background: var(--akzent-sanft); color: var(--akzent);
  font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.seite-knopf:hover { background: var(--akzent); color: var(--akzent-text); }
mark { background: var(--markierung); color: var(--text); padding: 0 2px; border-radius: 3px; }

/* --- Etiketten --------------------------------------------------------- */
.etikett {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  background: var(--flaeche-2); color: var(--text-leise);
  border: 1px solid var(--rand);
}
.etikett-gut { background: var(--gut-bg); color: var(--gut-text); border-color: transparent; }
.etikett-warn { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.etikett-schlecht { background: var(--schlecht-bg); color: var(--schlecht-text); border-color: transparent; }
.etikett-akzent { background: var(--akzent-sanft); color: var(--akzent); border-color: transparent; }
a.etikett { text-decoration: none; }
a.etikett:hover { border-color: var(--akzent); color: var(--akzent); }

/* Die Beschlussarten. Die Klassennamen kommen aus auswertung.ART_ANZEIGE,
   damit in den Vorlagen keine Wenn-Kette steht - dort heisst es nur
   "etikett {{ farbe }}".

   Drei Toene und neutral statt sechs: bei dieser Groesse sind Gelb und
   Orange kaum zu trennen, und wer Farben schlecht unterscheidet, haette
   sonst gar keine Auskunft - die Beschriftung sagt es ohnehin. Die
   Kenntnisnahme bleibt bewusst neutral: sie ist der normale Ausgang einer
   Mitteilungsvorlage, in Warnfarbe saehe jeder Routinevorgang nach einem
   Problem aus. */
.etikett.tag-beschlossen { background: var(--gut-bg); color: var(--gut-text); border-color: transparent; }
.etikett.tag-abgesetzt,
.etikett.tag-vertagt { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.etikett.tag-abgelehnt { background: var(--schlecht-bg); color: var(--schlecht-text); border-color: transparent; }
.etikett.tag-kenntnis,
.etikett.tag-zurueckgezogen,
.etikett.tag-gemischt,
.etikett.tag-unbekannt { background: var(--flaeche-2); color: var(--text-leise); }

/* --- Meldungen --------------------------------------------------------- */
.meldung {
  padding: 13px 16px; border-radius: var(--r); margin-bottom: 16px;
  font-size: 15px; border: 1px solid transparent;
}
.meldung-success { background: var(--gut-bg); color: var(--gut-text); }
.meldung-error { background: var(--schlecht-bg); color: var(--schlecht-text); }
.meldung-info { background: var(--flaeche); border-color: var(--rand); box-shadow: var(--schatten); }
.meldung ul { margin: 6px 0 0; padding-left: 20px; }

.nichts {
  padding: 48px 24px; text-align: center; color: var(--text-leise);
}
.nichts .gross { font-size: 36px; opacity: 0.4; display: block; margin-bottom: 10px; }

/* --- Tabellen (nur, wo sie wirklich besser sind) ----------------------- */
.tabelle-rollt { overflow-x: auto; border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead th {
  text-align: left; padding: 11px 14px; font-size: 12.5px; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-leise);
  background: var(--flaeche-2); border-bottom: 1px solid var(--rand); white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--rand); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--flaeche-2); }
td.zahl, th.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.eng, th.eng { white-space: nowrap; }

/* --- Blaettern --------------------------------------------------------- */
.blaettern {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 24px; color: var(--text-leise); font-size: 14px;
}

/* --- Betrachter -------------------------------------------------------- */
.betrachter-leiste {
  position: sticky; top: var(--kopf-hoehe); z-index: 10;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 10px 0; margin-bottom: 12px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.rahmen {
  width: 100%; height: 78vh; min-height: 420px; border: 0;
  border-radius: var(--r); background: var(--flaeche-2);
  box-shadow: var(--schatten);
}
.seitenbilder { display: none; }
.seitenbild {
  display: block; width: 100%; height: auto; margin: 0 0 12px;
  border: 1px solid var(--rand); border-radius: var(--r-klein);
  background: var(--flaeche-2); scroll-margin-top: calc(var(--kopf-hoehe) + 56px);
}
/* Auf Telefon und Tablet zeigt kein Browser eine eingebettete PDF - dort
   die Seitenbilder statt des Rahmens. Entschieden am Eingabegeraet, nicht
   an der Fensterbreite. */
@media (hover: none) and (pointer: coarse) {
  .rahmen, .rahmen-hinweis { display: none; }
  .seitenbilder { display: block; }
}
.adresse {
  user-select: all; overflow-wrap: anywhere;
  background: var(--flaeche-2); border: 1px solid var(--rand);
  border-radius: 6px; padding: 2px 7px; font-size: 14px;
}
.pre { white-space: pre-wrap; font-family: inherit; }

/* --- Zeitleiste (Vorgang) ---------------------------------------------- */
.zeitleiste { list-style: none; margin: 0; padding: 0; }
.zeitleiste li {
  display: grid; grid-template-columns: 148px 1fr; gap: 16px;
  padding: 16px 18px; margin-bottom: 10px;
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--r); box-shadow: var(--schatten);
}
.zeitleiste-hier { border-color: var(--akzent); }
.zeitleiste-erwaehnung { opacity: 0.92; }
@media (max-width: 720px) { .zeitleiste li { grid-template-columns: 1fr; gap: 6px; } }

/* --- Diagramm ---------------------------------------------------------- */
.viz {
  --serie-1: #2a78d6; --serie-2: #eb6834; --serie-3: #1baf7a;
  --serie-4: #eda100; --serie-5: #e87ba4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"]) .viz {
    --serie-1: #6fb2f0; --serie-2: #ff9966; --serie-3: #4fd1a0;
    --serie-4: #f5c64f; --serie-5: #f0a3c0;
  }
}
/* Die Geometrie kommt fertig aus statistik.diagramm, das Markup ist in
   beiden Oberflaechen dasselbe - also auch dieselben Klassennamen. */
.viz-svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz-raster { stroke: var(--rand); stroke-width: 1; }
.viz-achse { fill: var(--text-leise); font-size: 12px; }
.viz-wert { fill: var(--text); font-size: 12px; font-weight: 650; }
.viz-linie { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.viz-punkt { stroke: var(--flaeche); stroke-width: 2; }
.viz-linie.viz-serie-1 { stroke: var(--serie-1); } .viz-punkt.viz-serie-1 { fill: var(--serie-1); }
.viz-linie.viz-serie-2 { stroke: var(--serie-2); } .viz-punkt.viz-serie-2 { fill: var(--serie-2); }
.viz-linie.viz-serie-3 { stroke: var(--serie-3); } .viz-punkt.viz-serie-3 { fill: var(--serie-3); }
.viz-linie.viz-serie-4 { stroke: var(--serie-4); } .viz-punkt.viz-serie-4 { fill: var(--serie-4); }
.viz-linie.viz-serie-5 { stroke: var(--serie-5); } .viz-punkt.viz-serie-5 { fill: var(--serie-5); }
/* Hover ohne JavaScript: je Jahr eine unsichtbare Spalte, die beim
   Darueberfahren ihre Hilfslinie zeigt. */
.viz-hilfslinie { stroke: var(--text-leise); stroke-width: 1; opacity: 0; }
.viz-spalte:hover .viz-hilfslinie { opacity: 0.6; }
.viz-legende { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.viz-key { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.viz-key.viz-serie-1 { background: var(--serie-1); } .viz-key.viz-serie-2 { background: var(--serie-2); }
.viz-key.viz-serie-3 { background: var(--serie-3); } .viz-key.viz-serie-4 { background: var(--serie-4); }
.viz-key.viz-serie-5 { background: var(--serie-5); }

/* --- Anmeldung --------------------------------------------------------- */
.anmeldung { max-width: 420px; margin: 8vh auto; padding: 0 20px; }
.anmeldung h1 { font-size: 24px; text-align: center; }
.anmeldung .unter { text-align: center; margin-bottom: 24px; }
.anmeldung .flaeche { padding: 26px; }

/* --- Fuss -------------------------------------------------------------- */
.fuss {
  max-width: 1100px; margin: 0 auto; padding: 24px 20px 40px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; color: var(--text-leise); font-size: 13.5px; text-align: center;
}
.fuss a { color: var(--text-leise); }
.kfk { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.kfk img { width: 26px; height: 26px; }

/* --- Telefon ----------------------------------------------------------- */
@media (max-width: 860px) {
  .kopf { padding: 0 14px; gap: 10px; }
  .rumpf { padding: 20px 14px 72px; }
  h1 { font-size: 23px; }

  /* Navigation ins Schubfach. Das Ankreuzfeld oeffnet es - kein Skript,
     und auf dem PC ist von beidem nichts zu sehen. */
  .menue-knopf {
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid var(--rand); border-radius: var(--r-klein);
    color: var(--text-leise); cursor: pointer; font-size: 17px;
  }
  .nav {
    display: none; position: absolute; left: 10px; right: 10px; top: calc(var(--kopf-hoehe) - 4px);
    flex-direction: column; gap: 2px; padding: 10px;
    background: var(--flaeche); border: 1px solid var(--rand);
    border-radius: var(--r); box-shadow: var(--schatten-hoch);
  }
  .menue-feld:checked ~ .nav { display: flex; }
  .nav a { padding: 11px 14px; border-radius: var(--r-klein); font-size: 16px; }

  .karte-fuss .knopf { flex: 1 1 auto; }
  .zeitleiste li { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
