/* Oberfläche Tabak Track & Trace. Gestaltung angelehnt an Floema (floema.com, Bürocratik):
   warmes Off-White, Anthrazit, Gelb als Akzent, gedeckte Naturtöne für Zustände, Pillen
   statt Kästen. Schrift: Figtree (SIL OFL 1.1, figtree-OFL.txt), selbst gehostet -- keine
   externen Ressourcen (CSP default-src 'self'). Kontraste mindestens 4.5:1 (WCAG AA),
   sichtbarer Fokus, Bedienung per Tastatur. Zustände nie nur über Farbe (Text/Symbol). */

@font-face {
  font-family: "Figtree";
  src: url("/static/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/static/figtree-latin-ext-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Grundtöne (Floema) */
  --anthrazit: #241f21;
  --creme: #f2efea;
  --creme-tief: #ebe7df;
  --sand: #e4ded3;
  --stein: #d2cdc4;
  --gelb: #e9e778;
  --gelb-tief: #dcd95a;
  --salbei: #bacfa3;
  --orange: #f76c46;
  --blau: #85a1c5;

  /* Rollen */
  --text: var(--anthrazit);
  --text-leise: #5c5450;
  --grund: var(--creme);
  --flaeche: #ffffff;
  --flaeche-leise: #f8f6f2;
  --linie: var(--sand);
  --rahmen-feld: #8a817c;
  --akzent: var(--anthrazit);
  --akzent-dunkel: #000000;
  --fehler: #a2361a;
  --fehler-grund: #fde4da;
  --hinweis-grund: #e3eaf3;
  --erfolg-text: #2f4a1f;
  --erfolg-grund: #e7efdd;
  --warn-text: #4d4a0c;
  --fokus: var(--anthrazit);

  --rund: 12px;
  --rund-klein: 8px;
  --pille: 999px;
  --schrift: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -.005em;
  color: var(--text);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--gelb); color: var(--anthrazit); }

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: text-decoration-color .15s ease, color .15s ease;
}
a:hover { text-decoration-color: var(--gelb-tief); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
  border-radius: 4px;
}

.sprunglink {
  position: absolute;
  left: -999px;
  top: 0;
  padding: .5rem 1rem;
  background: var(--gelb);
  color: var(--anthrazit);
  border-radius: var(--pille);
}
.sprunglink:focus { left: 1rem; top: .75rem; z-index: 10; }

/* --- Kopf ------------------------------------------------------------------------------ */
.kopf { background: var(--grund); }
.kopf-innen {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.marke {
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -.045em;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
  display: inline-flex;
  align-items: baseline;
  gap: .15em;
}
.marke::after {
  content: "";
  width: .38em;
  height: .38em;
  border-radius: 50%;
  background: var(--gelb);
  border: 1px solid var(--anthrazit);
}
.marke:hover { text-decoration: none; }

.navigation {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin: 0;
  padding: 0;
}
.navigation a {
  display: inline-block;
  padding: .55rem 1.1rem;
  border-radius: var(--pille);
  background: var(--flaeche);
  color: var(--text);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background .15s ease;
}
.navigation a:hover { background: var(--creme-tief); }
.navigation a[aria-current="page"] { background: var(--gelb); }
.abmelden { margin: 0; }
.abmelden .knopf-leise { font-size: .8125rem; }

/* --- Inhalt ---------------------------------------------------------------------------- */
.inhalt {
  width: 100%;
  max-width: 76rem;
  margin: 1.5rem auto 3rem;
  padding: 0 clamp(1rem, 3vw, 2.25rem);
  flex: 1 0 auto;
}
.inhalt:focus { outline: none; }

.karte {
  background: var(--flaeche);
  border-radius: var(--rund);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.karte.schmal { max-width: 30rem; margin: 2rem auto 0; }

h1 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin: 0 0 1.25rem;
}
.karte h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); }
h2 {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

/* --- Formulare ------------------------------------------------------------------------- */
.feld { margin-bottom: 1.125rem; }
.feld label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .375rem; }
.feld input {
  width: 100%;
  padding: .7rem .9rem;
  font: inherit;
  color: var(--text);
  background: var(--flaeche-leise);
  border: 1px solid var(--rahmen-feld);
  border-radius: var(--rund-klein);
  transition: border-color .15s ease, background .15s ease;
}
.feld input:hover { border-color: var(--anthrazit); }
.feld input:focus-visible { background: var(--flaeche); }
.feld input[aria-invalid="true"] { border-color: var(--fehler); }
.feldhinweis { margin: .375rem 0 0; font-size: .875rem; color: var(--text-leise); }

.knopf, .knopf-leise {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--pille);
  padding: .7rem 1.4rem;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.knopf {
  color: var(--anthrazit);
  background: var(--gelb);
  border: 1px solid var(--gelb);
}
.knopf:hover { background: var(--gelb-tief); border-color: var(--gelb-tief); }
.knopf-leise {
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--stein);
}
.knopf-leise:hover { border-color: var(--anthrazit); }

.meldung {
  padding: .9rem 1.1rem;
  border-radius: var(--rund-klein);
  margin: 0 0 1.25rem;
  border: 0;
}
.meldung.fehler { color: var(--fehler); background: var(--fehler-grund); }
.meldung.hinweis-box { background: var(--hinweis-grund); }
.hinweis { margin: 1.25rem 0 0; font-size: .875rem; color: var(--text-leise); }

.angaben { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 2rem; margin: 0; }
.angaben dt { font-weight: 600; color: var(--text-leise); font-size: .9375rem; }
.angaben dd { margin: 0; }

@media (max-width: 30rem) {
  .angaben { grid-template-columns: 1fr; gap: .125rem; }
  .angaben dd { margin-bottom: .75rem; }
}

/* --- Einrichtung (US-060) ------------------------------------------------------------ */
.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.teilnav { margin: 0 0 1.25rem; }
.teilnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin: 0;
  padding: 0;
}
.teilnav a {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: var(--pille);
  text-decoration: none;
  background: var(--flaeche);
  font-weight: 500;
  font-size: .9375rem;
  transition: background .15s ease;
}
.teilnav a:hover { background: var(--creme-tief); }
.teilnav a[aria-current="page"] {
  color: var(--anthrazit);
  background: var(--gelb);
  font-weight: 600;
}
.inhalt .karte + .karte { margin-top: 1.25rem; }
.meldung.erfolg { background: var(--erfolg-grund); color: var(--erfolg-text); }
.leise { font-weight: 400; color: var(--text-leise); }

.feld select, .feld textarea, .inline-formular select {
  font: inherit;
  color: var(--text);
  background: var(--flaeche-leise);
  border: 1px solid var(--rahmen-feld);
  border-radius: var(--rund-klein);
  padding: .7rem .9rem;
  max-width: 100%;
}
.feld select, .feld textarea { width: 100%; }
.knopfreihe { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 1.25rem 0 0; }
.knopf-leise.gefahr { color: var(--fehler); border-color: var(--fehler); }
.knopf-leise.gefahr:hover { background: var(--fehler-grund); }
.inline-formular { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.inline-formular select { padding: .45rem .7rem; }
.inline-formular .knopf-leise, .aktion .knopf-leise { padding: .45rem .9rem; font-size: .875rem; }
.aktion form { margin: 0; }

.checkliste { list-style: none; margin: 0; padding: 0; }
.checkliste li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--linie);
}
.checkliste li:first-child { border-top: 0; padding-top: .25rem; }
.status-marke {
  flex: 0 0 6.5rem;
  text-align: center;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: var(--pille);
  border: 0;
}
.erledigt .status-marke { color: var(--erfolg-text); background: var(--salbei); }
.offen .status-marke { color: var(--anthrazit); background: var(--gelb); }
.schritt-text { display: flex; flex-direction: column; gap: .125rem; }
.schritt-text a { font-weight: 600; }
.schritt-text .feldhinweis { margin: 0; }

.liste { width: 100%; border-collapse: collapse; }
.liste th, .liste td {
  text-align: left;
  vertical-align: middle;
  padding: .75rem .75rem .75rem 0;
  border-bottom: 1px solid var(--linie);
}
.liste th {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.liste code, .angaben code { overflow-wrap: anywhere; }
code { font-family: var(--mono); font-size: .875em; }
.geheimnis {
  display: inline-block;
  font-size: 1rem;
  padding: .4rem .7rem;
  background: var(--gelb);
  border-radius: var(--rund-klein);
  overflow-wrap: anywhere;
  user-select: all;
}
.angaben dd { min-width: 0; overflow-wrap: anywhere; }

/* Schmale Bildschirme: Tabellenzeilen als Blöcke mit Beschriftung, kein Querscrollen */
@media (max-width: 40rem) {
  .liste thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .liste, .liste tbody, .liste tr, .liste td { display: block; width: 100%; }
  .liste tr { padding: .875rem 0; border-bottom: 1px solid var(--linie); }
  .liste td { border: 0; padding: .125rem 0; }
  .liste td[data-titel]::before {
    content: attr(data-titel);
    display: block;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-leise);
  }
  .liste td.aktion { padding-top: .5rem; }
  .checkliste li { flex-direction: column; gap: .5rem; }
  .status-marke { flex-basis: auto; }
}
form > p.feldhinweis { margin: 0 0 1rem; }

/* --- Dashboard, Meldungen (US-059) ------------------------------------------------ */

/* Nur für Screenreader (Tabellen-Caption u. Ä.); anders als .sprunglink nie sichtbar */
.versteckt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Ampel: Farbe UND Text/Symbol, damit die Aussage nicht allein an der Farbe hängt */
.ampel {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
  border: 0;
  border-radius: var(--rund);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  color: var(--anthrazit);
}
.ampel-punkt {
  flex: none;
  width: .875rem;
  height: .875rem;
  border-radius: 50%;
  background: var(--anthrazit);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .55);
}
.ampel-rot { background: var(--orange); }
.ampel-rot .ampel-punkt { background: var(--anthrazit); }
.ampel-gelb { background: var(--gelb); }
.ampel-gelb .ampel-punkt { background: var(--anthrazit); }
.ampel-gruen { background: var(--salbei); }
.ampel-gruen .ampel-punkt { background: var(--anthrazit); }

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.kennzahl {
  background: var(--flaeche);
  border-radius: var(--rund);
  padding: 1.1rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: .5rem;
}
.kennzahl-wert {
  display: block;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}
.kennzahl-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.abschnitt { margin: 0 0 2.5rem; }
.abschnitt h2 { margin: 0 0 1rem; }

.agentenliste { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.agentenliste li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .9rem 1.1rem;
  border-radius: var(--rund-klein);
  align-items: center;
  background: var(--flaeche);
}
/* Zustand als Pille wie in der Checkliste; der Text trägt die Aussage, die Farbe verstärkt */
.agent-status {
  font-weight: 600;
  font-size: .8125rem;
  padding: .25rem .75rem;
  border-radius: var(--pille);
}
.agent-offline .agent-status { color: var(--fehler); background: var(--fehler-grund); }
.agent-online .agent-status { color: var(--erfolg-text); background: var(--erfolg-grund); }

.filterleiste {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--flaeche);
  border-radius: var(--rund);
}
.filterleiste .feld { margin: 0; min-width: 11rem; }
.filterleiste select {
  width: 100%;
  padding: .6rem .8rem;
  font: inherit;
  color: var(--text);
  background: var(--flaeche-leise);
  border: 1px solid var(--rahmen-feld);
  border-radius: var(--rund-klein);
}

table.tabelle {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 1rem;
  background: var(--flaeche);
  border-radius: var(--rund);
  overflow: hidden;
}
table.tabelle caption { text-align: left; font-weight: 600; margin: 0 0 .75rem; }
table.tabelle th, table.tabelle td {
  text-align: left;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}
table.tabelle tbody tr:last-child td { border-bottom: 0; }
table.tabelle th {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-leise);
  background: var(--flaeche-leise);
}
table.tabelle tbody tr { transition: background .12s ease; }
table.tabelle tbody tr:hover { background: var(--flaeche-leise); }

.status-anzeige { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.status-anzeige::before {
  content: "";
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  background: currentColor;
}
.status-rot { color: var(--fehler); }
.status-gelb { color: var(--warn-text); }
.status-gelb::before { background: var(--gelb-tief); box-shadow: 0 0 0 1px var(--warn-text); }
.status-neutral { color: var(--text-leise); }
.status-gruen { color: var(--erfolg-text); }

.paginierung { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 1.25rem 0; }
.paginierung a { white-space: nowrap; }
.paginierung [aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  background: var(--gelb);
  padding: .2rem .7rem;
  border-radius: var(--pille);
}

.nachricht-vorschau {
  background: var(--anthrazit);
  color: var(--creme);
  border-radius: var(--rund);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Tabellen bei Telefonbreite als Karten statt seitlichem Scrollen (keine horizontale
   Scrollleiste bei 390 px): Kopf bleibt für Screenreader vorhanden, aber unsichtbar;
   jede Zelle bekommt ihre Spaltenüberschrift über data-label zurück. */
@media (max-width: 40rem) {
  table.tabelle { background: transparent; border-radius: 0; overflow: visible; }
  table.tabelle thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
  }
  table.tabelle, table.tabelle tbody, table.tabelle tr, table.tabelle td { display: block; width: 100%; }
  table.tabelle tr {
    margin: 0 0 .75rem;
    background: var(--flaeche);
    border-radius: var(--rund);
    padding: .25rem 1rem;
  }
  /* Beschriftung über dem Wert: Zellen mit mehreren Teilen (z. B. Frist + Erklärung)
     bleiben zusammen statt links/rechts auseinanderzufallen */
  table.tabelle td {
    display: block;
    text-align: left;
    padding: .6rem 0;
    border-bottom: 1px solid var(--linie);
    overflow-wrap: anywhere;
  }
  table.tabelle td:last-child { border-bottom: 0; }
  table.tabelle td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .15rem;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-leise);
  }
  .filterleiste .feld { flex: 1 1 100%; }
  .filterleiste .knopf { width: 100%; }
}

/* --- Betrieb (US-061) -------------------------------------------------------------- */
/* Die Betreiber-Tabelle hat mehr Spalten als jede andere Liste; ab Telefonbreite greift
   der Karten-Umbau oben, darüber bekommt sie lieber einen eigenen scrollbaren Rahmen als
   die ganze Seite waagerecht zu schieben. */
.tabelle-scroll {
  overflow-x: auto;
  margin: 0 0 1rem;
  border-radius: var(--rund);
}
.tabelle-scroll table.tabelle { margin: 0; min-width: 52rem; }
.tabelle-scroll table.tabelle th, .tabelle-scroll table.tabelle td {
  padding: .8rem .6rem;
}
.tabelle-scroll table.tabelle th { font-size: .6875rem; letter-spacing: .04em; }
@media (max-width: 40rem) {
  .tabelle-scroll { overflow-x: visible; }
  .tabelle-scroll table.tabelle { min-width: 0; }
  .tabelle-scroll table.tabelle th, .tabelle-scroll table.tabelle td { padding: .65rem 0; }
}

/* --- Kopfzeile mobil (US-066, Issue #117) -----------------------------------------------
   <details>/<summary> ohne JavaScript: ab 480 px eingeklappt hinter einem Menü-Knopf, der
   sich per Tastatur (Enter/Leertaste, nativ fokussierbar) bedienen lässt; :focus-visible
   oben im Dokument sorgt für den sichtbaren Fokusring. `.kopf-menue-inhalt` ist absichtlich
   ein GESCHWISTER von `.kopf-menue-schalter`, kein Kind: ein Browser blendet die Kinder
   eines geschlossenen <details> über eine eigene, nicht per Autoren-CSS überschreibbare
   Regel aus -- ein Geschwister dagegen ganz normal über den `[open]`-Selektor plus `~`.
   Ab 480 px bleibt der Inhalt darum immer sichtbar (Desktop-Navigation), unabhängig vom
   "open"-Attribut des Knopfs; erst die Media Query unten koppelt beides für Telefonbreite. */
.kopf-menue-schalter {
  border: 0;
  margin: 0;
  padding: 0;
}
.kopf-menue-knopf {
  display: none;
  width: fit-content;
  cursor: pointer;
  list-style: none;
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--flaeche);
  padding: .55rem 1.1rem;
  border: 0;
  border-radius: var(--pille);
}
.kopf-menue-schalter[open] .kopf-menue-knopf { background: var(--gelb); }
.kopf-menue-knopf::-webkit-details-marker { display: none; }
.kopf-menue-knopf::marker { content: ""; }
.kopf-menue-inhalt {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}

@media (max-width: 30rem) {
  .kopf-innen { align-items: center; }
  .kopf-menue-knopf { display: inline-block; }
  .kopf-menue-inhalt { display: none; }
  .kopf-menue-schalter[open] ~ .kopf-menue-inhalt {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: .5rem;
    padding: .75rem;
    background: var(--flaeche);
    border-radius: var(--rund);
  }
  .kopf-menue-schalter[open] ~ .kopf-menue-inhalt .navigation {
    flex-direction: column;
    gap: .25rem;
  }
  .kopf-menue-schalter[open] ~ .kopf-menue-inhalt .navigation a {
    display: block;
    background: var(--flaeche-leise);
  }
  .kopf-menue-schalter[open] ~ .kopf-menue-inhalt .navigation a[aria-current="page"] {
    background: var(--gelb);
  }
  .kopf-menue-schalter[open] ~ .kopf-menue-inhalt .knopf-leise { width: 100%; }
}

/* --- Lebenszyklus-Banner (US-062) --------------------------------------------------- */
.lebenszyklus {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: var(--rund);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.lebenszyklus-test { background: var(--sand); color: var(--anthrazit); }
.lebenszyklus-gesperrt { background: var(--fehler-grund); color: var(--fehler); }
.lebenszyklus-marke {
  display: inline-block;
  padding: .2rem .65rem;
  border: 0;
  border-radius: var(--pille);
  background: var(--sand);
  color: var(--anthrazit);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Neutrale Ampel ohne Echtbetrieb: weder grün noch Warnfarbe */
.ampel-test, .ampel-gesperrt { background: var(--stein); color: var(--anthrazit); }
.ampel-test .ampel-punkt, .ampel-gesperrt .ampel-punkt { background: var(--flaeche); box-shadow: 0 0 0 2px var(--anthrazit); }
.status-test, .status-gesperrt { color: var(--text-leise); }
.lebenszyklus-marke.aktiv { background: var(--salbei); color: var(--erfolg-text); }

/* --- Seitenfuss: Betreiber-Kontakt (US-072) ------------------------------------------ */
.fuss {
  margin-top: auto;
  background: var(--anthrazit);
  color: var(--creme);
}
.fuss-innen {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 1.75rem;
  font-size: .9375rem;
}
.fuss-innen p { margin: 0; }
.fuss a { color: var(--gelb); }
.fuss a:hover { text-decoration-color: var(--gelb); }
.fuss :focus-visible { outline-color: var(--gelb); }

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