/* Modwache – Grundlayout (Welle 0/1).
   Leitlinien (apple-design): große Grundschrift, Trefferflächen ≥ 44 px, Kontrast ≥ 4,5:1 (hier ≥ 7:1),
   Hell/Dunkel über prefers-color-scheme, sichtbarer Fokus, reduzierte Bewegung respektiert. */
:root {
  --hintergrund: #f5f5f7;
  --flaeche: #ffffff;
  --text: #1d1d1f;          /* 16,8:1 auf Weiß */
  --text-2: #4a4a52;        /* 8,8:1 auf Weiß, 8,1:1 auf #f5f5f7 */
  --akzent: #5b2fc4;        /* Weiß darauf 7,9:1 */
  --akzent-text: #ffffff;
  --rand: #d2d2d7;
  --fokus: #0058d0;
  --radius: 14px;
  --ok: #156b34;            /* 6,6:1 auf Weiß */
  --warnung: #7a4a00;       /* 7,4:1 auf Weiß */
  --fehler: #a3191f;        /* 7,2:1 auf Weiß */
  --ok-flaeche: #e6f4ea;
  --warnung-flaeche: #fff4dc;
  --fehler-flaeche: #fde8e8;
  font-size: 112.5%;        /* 18 px Grundschrift, skaliert mit Browser-Einstellung */
}
@media (prefers-color-scheme: dark) {
  :root {
    --hintergrund: #121214;
    --flaeche: #1c1c21;
    --text: #f2f2f5;        /* 15,2:1 auf #1c1c21 */
    --text-2: #b6b6c0;      /* 8,4:1 auf #1c1c21 */
    --akzent: #c4b0ff;      /* #1a0f3d darauf 9,3:1 */
    --akzent-text: #1a0f3d;
    --rand: #3a3a42;
    --fokus: #7fb2ff;
    --ok: #7ee2a0;          /* auf #1c1c21 ≥ 10:1 */
    --warnung: #ffd27a;
    --fehler: #ff9c9c;
    --ok-flaeche: #16301f;
    --warnung-flaeche: #3a2e10;
    --fehler-flaeche: #3d1a1a;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--hintergrund);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.sprungmarke {
  position: absolute; left: -9999px; top: 0;
  padding: 12px 16px; background: var(--flaeche); color: var(--text);
}
.sprungmarke:focus { left: 16px; top: 16px; z-index: 10; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.kopf-innen { max-width: 64rem; margin: 0 auto; padding: 0 16px; min-height: 56px; display: flex; align-items: center; }
.marke {
  font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.inhalt { flex: 1; width: 100%; max-width: 64rem; margin: 0 auto; padding: 32px 16px; }
.inhalt:focus { outline: none; }
.karte {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 28px 24px; max-width: 40rem;
}
h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 12px; }
.einleitung { font-size: 1.1rem; }
.hinweis, .fuss p { color: var(--text-2); }
.knopf {
  font: inherit; font-weight: 600; min-height: 48px; min-width: 44px; padding: 10px 22px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
}
.knopf-haupt { background: var(--akzent); color: var(--akzent-text); }
.knopf:disabled { cursor: not-allowed; opacity: 1; background: var(--rand); color: var(--text-2); }
.fuss { padding: 16px; text-align: center; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  :root { --rand: currentColor; }
}

/* ---- Welle 1: Navigation, Seiten, Tabellen, Nachrichten ---- */
.kopf-innen { flex-wrap: wrap; gap: 8px 16px; }
.navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.navigation a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.navigation a:hover { background: var(--hintergrund); }
.navigation a[aria-current="page"] { background: var(--akzent); color: var(--akzent-text); }
.abmelden { margin-left: auto; }
a { color: var(--fokus); }
h2 { font-size: 1.3rem; margin: 0 0 10px; }
h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.karte { max-width: none; margin-bottom: 16px; }
.karte.schmal { max-width: 40rem; }
.raster { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-bottom: 16px; }
.raster .karte { margin-bottom: 0; }
.gross { font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; }
.unterzeile { color: var(--text-2); }
.klein { font-size: 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.knopf { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.knopf-leise { background: var(--flaeche); color: var(--text); border-color: var(--rand); }
.knopf-leise:hover { border-color: var(--text-2); }
.meldungen { margin-bottom: 16px; }
.meldung { padding: 12px 16px; border-radius: 12px; margin: 0 0 8px; border: 1px solid var(--rand); background: var(--flaeche); }
.meldung-success { background: var(--ok-flaeche); color: var(--text); border-color: var(--ok); }
.meldung-warning { background: var(--warnung-flaeche); border-color: var(--warnung); }
.meldung-error { background: var(--fehler-flaeche); border-color: var(--fehler); }
.hinweisbox { padding: 14px 18px; border-radius: 12px; margin: 0 0 16px; border: 1px solid var(--rand); }
.hinweisbox.warnung { background: var(--warnung-flaeche); border-color: var(--warnung); }
.hinweisbox h2 { font-size: 1.15rem; }
/* Status immer mit Text, Farbe nur zusätzlich */
.status { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.punkt { flex: none; width: 12px; height: 12px; border-radius: 50%; background: currentColor; transform: translateY(1px); }
.status-ok .punkt { color: var(--ok); }
.status-warnung .punkt { color: var(--warnung); }
.status-fehler .punkt { color: var(--fehler); }
.status-fehler { color: var(--fehler); }
.limits { margin: 0 0 8px; padding-left: 1.2em; color: var(--warnung); font-weight: 600; }
.zahlen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin: 0 0 12px; }
.zahlen div { display: flex; flex-direction: column-reverse; }
.zahlen dt { color: var(--text-2); font-size: 0.9rem; }
.zahlen dd { margin: 0; font-size: 1.6rem; font-weight: 700; }
.marker {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--rand); background: var(--hintergrund); color: var(--text);
}
.marker-online, .marker-gelesen { background: var(--ok-flaeche); border-color: var(--ok); color: var(--text); }
.marker-wartet { background: var(--warnung-flaeche); border-color: var(--warnung); color: var(--text); }
.marker-fehler { background: var(--fehler-flaeche); border-color: var(--fehler); color: var(--text); }
.marker-neu { background: var(--flaeche); border-style: dashed; }
.formular label { display: block; font-weight: 600; margin: 8px 0 6px; }
.zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
input[type=text], input[type=search], select {
  font: inherit; min-height: 48px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--text-2);
  background: var(--flaeche); color: var(--text); flex: 1 1 14rem; min-width: 0;
}
.suchzeile { margin: 16px 0; }
.schalter-zeile { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; }
.schalter-zeile input { width: 24px; height: 24px; margin: 0; }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.tabelle-huelle { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); border-radius: var(--radius); }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--rand); }
.tabelle thead th { font-size: 0.9rem; color: var(--text-2); }
.tabelle tbody th a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.liste-schlicht { padding-left: 1.2em; margin: 8px 0; }
.liste-schlicht li { margin: 4px 0; }
details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.nachrichten { list-style: none; margin: 0 0 16px; padding: 0; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.nachricht { padding: 10px 14px; border-bottom: 1px solid var(--rand); overflow-wrap: anywhere; }
.nachricht:last-child { border-bottom: none; }
.nachricht time { color: var(--text-2); font-size: 0.9rem; margin-right: 8px; font-variant-numeric: tabular-nums; }
.nachricht .absender { font-weight: 700; }
.nachricht .text { display: block; margin-top: 2px; white-space: pre-wrap; }
.nachricht .kanal-name { margin-right: 8px; }
code { font-size: 0.9em; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .abmelden { margin-left: 0; }
  .navigation a { padding: 0 10px; }
}

/* ---- Welle 2: User-Profil, Maßnahmen, Vorgänge, Beleg-Ansicht ---- */
.hinweisbox.fehler { background: var(--fehler-flaeche); border-color: var(--fehler); }
.marker-erledigt { background: var(--ok-flaeche); border-color: var(--ok); color: var(--text); }
.marker-ausstehend, .marker-laeuft { background: var(--warnung-flaeche); border-color: var(--warnung); color: var(--text); }
.nachricht { position: relative; }
.nachricht .absender { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.nachricht-aktion {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin-top: 4px;
  border: 1px solid var(--rand); border-radius: 10px; color: var(--text); text-decoration: none; font-size: 0.95rem;
}
.nachricht-aktion:hover { border-color: var(--text-2); }
.nachricht.geloescht .text { text-decoration: line-through; text-decoration-thickness: 1px; }
.profil-kopf { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.profilbild { border-radius: 50%; flex: none; }
.profil-kopf h1 { margin-bottom: 4px; }
.aktionen-gross { margin: 0 0 16px; }
.eigenschaften { margin: 0 0 12px; }
.eigenschaften div { padding: 6px 0; border-bottom: 1px solid var(--rand); }
.eigenschaften div:last-child { border-bottom: none; }
.eigenschaften dt { color: var(--text-2); font-size: 0.9rem; }
.eigenschaften dd { margin: 0; }
.karten-liste { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.zeilen-link {
  display: block; padding: 12px 16px; min-height: 44px; background: var(--flaeche); color: var(--text);
  border: 1px solid var(--rand); border-radius: 12px; text-decoration: none; overflow-wrap: anywhere;
}
.zeilen-link:hover { border-color: var(--text-2); }
.notiz { border-bottom: 1px solid var(--rand); padding: 8px 0 4px; }
.notiz.angeheftet { border-left: 4px solid var(--akzent); padding-left: 12px; }
.notiz-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 8px; }
textarea {
  font: inherit; width: 100%; min-height: 96px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--text-2); background: var(--flaeche); color: var(--text); margin-bottom: 12px;
}
input[type=number], input[type=password] {
  font: inherit; min-height: 48px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--text-2);
  background: var(--flaeche); color: var(--text); flex: 1 1 14rem; min-width: 0;
}
.zeitleiste { list-style: none; margin: 0; padding: 0; }
.ereignis { border-left: 4px solid var(--rand); padding: 4px 0 8px 14px; margin-bottom: 12px; }
.ereignis p { margin: 4px 0; }
.ereignis-ban, .ereignis-timeout { border-left-color: var(--fehler); }
.ereignis-unban, .ereignis-untimeout { border-left-color: var(--ok); }
.ereignis-warn, .ereignis-delete { border-left-color: var(--warnung); }
.zitat { font-style: italic; overflow-wrap: anywhere; }
fieldset { border: 1px solid var(--rand); border-radius: var(--radius); padding: 12px 16px 16px; margin: 0 0 16px; background: var(--flaeche); }
legend { font-weight: 700; padding: 0 6px; }
.auswahl-gruppe { display: flex; flex-wrap: wrap; gap: 8px; }
.auswahl { display: flex; align-items: center; }
.auswahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auswahl label {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; margin: 0;
  border: 1px solid var(--text-2); border-radius: 12px; cursor: pointer; font-weight: 600;
}
.auswahl input:checked + label { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.auswahl input:focus-visible + label { outline: 3px solid var(--fokus); outline-offset: 3px; }
.haken-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.haken-liste li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--rand); }
.haken-liste li:last-child { border-bottom: none; }
.haken-liste input { width: 24px; height: 24px; margin: 10px 0 0; flex: none; }
.haken-liste label { flex: 1; min-height: 44px; margin: 0; font-weight: 400; overflow-wrap: anywhere; cursor: pointer; }
.belege-auswahl { max-height: 32rem; overflow-y: auto; }
.belege-auswahl .text { white-space: pre-wrap; }
.knopf-gefahr { background: var(--fehler); color: #ffffff; }
@media (prefers-color-scheme: dark) { .knopf-gefahr { color: #1c1c21; } }
.belege .nachricht .hinweis { display: block; margin-top: 4px; }
.beleg-block { margin: 0 0 20px; }
.beleg-seite .inhalt { max-width: 52rem; }
@media print {
  :root { --hintergrund: #ffffff; --flaeche: #ffffff; --text: #000000; --text-2: #333333; --rand: #999999; font-size: 100%; }
  body { background: #ffffff; color: #000000; }
  .nicht-drucken, .kopf, .fuss, .sprungmarke { display: none !important; }
  .nachrichten, .karte { border-color: #999999; }
  .beleg-block, .nachricht { break-inside: avoid; }
  a { color: #000000; }
}

/* ---- Welle 3: Raids, Herkunft, Raid-Begrüßung ---- */
input[type=date] {
  font: inherit; min-height: 48px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--text-2);
  background: var(--flaeche); color: var(--text); width: 100%;
}
.formular .raster select, .formular .raster input[type=number] { width: 100%; }
/* Stufe immer als Text, Farbe nur zusätzlich */
.marker-stufe-sicher { background: var(--ok-flaeche); border-color: var(--ok); }
.marker-stufe-wahrscheinlich { background: var(--warnung-flaeche); border-color: var(--warnung); }
.marker-stufe-moeglich { border-style: dashed; }
.teilnehmer { padding: 16px 18px; margin: 0; }
.teilnehmer p { margin: 0 0 6px; }
.vorschau { border-top: 1px solid var(--rand); margin-top: 12px; padding-top: 12px; }
.vorschau-text {
  padding: 12px 14px; border-radius: 10px; background: var(--hintergrund); border: 1px solid var(--rand);
  overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.herkunft .gross { font-size: 1.2rem; }

/* ---- Welle 4: Prüfliste, Regeln, Trockenlauf, Bot-Punktwert ---- */
.raster-eng { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 8px 16px; margin-bottom: 8px; }
.raster-eng .breit { grid-column: 1 / -1; }
.raster-eng label { margin-top: 4px; }
.raster-eng input[type=number], .raster-eng input[type=text], .raster-eng select { width: 100%; }
.feld-titel { font-weight: 600; margin: 8px 0 0; }
.filterleiste { margin-bottom: 8px; }
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; padding: 1px 6px;
  border: 1px solid var(--text-2); border-radius: 6px; background: var(--flaeche);
}
.gruppe { padding: 16px; }
.gruppe-kopf { border-bottom: 1px solid var(--rand); margin-bottom: 12px; padding-bottom: 8px; }
.treffer-karte { padding: 12px 0 16px; border-bottom: 1px solid var(--rand); }
.treffer-karte:last-child { border-bottom: none; padding-bottom: 0; }
.treffer-karte:focus { outline: 3px solid var(--fokus); outline-offset: 6px; border-radius: 8px; }
.treffer-karte h3 { margin-top: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.treffer-karte h3 a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.15rem; }
.treffer-karte.erledigt { opacity: 1; }
.treffer-karte.erledigt h3 a { color: var(--text-2); }
.treffer-vorschlag { margin: 0 0 6px; }
.begruendung { margin-top: 0; }
.kurzprofil { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 4px 16px; margin: 8px 0; }
.kurzprofil div { display: flex; flex-direction: column; }
.kurzprofil dt { color: var(--text-2); font-size: 0.9rem; }
.kurzprofil dd { margin: 0; }
.nachrichten-kompakt { margin: 8px 0; }
.nachrichten-kompakt .nachricht { padding: 6px 12px; }
.marker-status-offen { background: var(--warnung-flaeche); border-color: var(--warnung); }
.marker-status-bestaetigt, .marker-status-automatisch { background: var(--ok-flaeche); border-color: var(--ok); }
.marker-status-abgelehnt, .marker-status-rueckgaengig { background: var(--fehler-flaeche); border-color: var(--fehler); }
.marker-modus-scharf { background: var(--fehler-flaeche); border-color: var(--fehler); }
.marker-modus-vorschlag { background: var(--ok-flaeche); border-color: var(--ok); }
.marker-modus-aus { border-style: dashed; }
.not-aus-an { border: 2px solid var(--warnung); }
form.inline, .aktionen.inline { display: inline-flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.zahlen-klein { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.zahlen-klein dd { font-size: 1.3rem; }
.bedingung { border-top: 1px solid var(--rand); padding-top: 8px; margin-top: 8px; }
.bedingung .hinweis { margin: 0 0 4px; }
.scharf-schalten { margin-top: 8px; }
progress { width: 100%; height: 16px; accent-color: var(--akzent); }
.signal-tabelle { margin-bottom: 12px; }
.signal-tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zitat-kurz { overflow-wrap: anywhere; }
.ausnahme-text { flex: 1; overflow-wrap: anywhere; }

/* ---- Welle 5: Navigation (Reiter unten auf dem Handy), Übersicht, Team, Benachrichtigungen, Hilfe ---- */
.zaehler {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; height: 1.6em; padding: 0 6px;
  margin-left: 6px; border-radius: 999px; background: var(--fehler); color: #ffffff; font-size: 0.8rem; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .zaehler { color: #1c1c21; } }
.navigation a[aria-current="page"] .zaehler { background: var(--akzent-text); color: var(--akzent); }
.tabs { display: none; }
@media (max-width: 47.99rem) {
  .navigation { display: none; }                 /* auf dem Handy übernehmen die Reiter unten */
  .kopf-innen { justify-content: space-between; }
  .abmelden { margin-left: auto; }
  body.mit-tabs { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .tabs {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--flaeche); border-top: 1px solid var(--rand); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabs a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px;
    padding: 6px 2px; color: var(--text-2); text-decoration: none; font-size: 0.85rem; font-weight: 600; text-align: center; line-height: 1.2;
  }
  .tabs a[aria-current="page"] { color: var(--akzent); }
  .tabs svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabs a[aria-current="page"] svg { stroke-width: 2.6; }
  .tabs .zaehler { margin-left: 2px; font-size: 0.72rem; }
  .fuss { padding-bottom: 8px; }
  .inhalt { padding-top: 20px; }
  h1 { font-size: 1.5rem; }
  .karte { padding: 20px 16px; }
}
@media (prefers-color-scheme: dark) { .tabs a[aria-current="page"] { color: var(--akzent); } }
.leer { padding: 20px; border: 1px dashed var(--text-2); border-radius: var(--radius); background: var(--flaeche); margin: 0 0 16px; }
.leer p { margin: 4px 0; }
.schritte { border: 2px solid var(--akzent); }
.schritt-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.schritt-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--rand); }
.schritt-liste li:last-child { border-bottom: none; }
.schritt-zeichen {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--akzent); font-weight: 700;
}
.schritt-liste li.erledigt .schritt-zeichen { background: var(--ok-flaeche); border-color: var(--ok); color: var(--text); }
.schritt-liste li.erledigt .schritt-text { color: var(--text-2); }
.schritt-text { flex: 1 1 12rem; }
.karte-wichtig { border-width: 2px; border-color: var(--akzent); }
.menue-liste { list-style: none; margin: 0; padding: 0; }
.menue-liste a {
  display: flex; flex-direction: column; gap: 2px; min-height: 56px; justify-content: center; padding: 10px 12px; margin: 0 -12px;
  border-radius: 12px; color: var(--text); text-decoration: none;
}
.menue-liste a:hover { background: var(--hintergrund); }
.menue-liste span { color: var(--text-2); font-size: 0.95rem; }
.team-karte h3 { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 0; }
.gefahr-zone { margin-top: 8px; border-top: 1px solid var(--rand); }
.gefahr-zone .formular { margin-top: 8px; }
.matrix td { text-align: center; }
.matrix input[type=checkbox] { width: 28px; height: 28px; margin: 8px; }
input[type=time], input[type=email], input[type=url] {
  font: inherit; min-height: 48px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--text-2);
  background: var(--flaeche); color: var(--text); width: 100%;
}
.formular input[type=text], .formular input[type=password], .formular select { width: 100%; }
.formular .zeile input { width: auto; }
.speichern-leiste { position: sticky; bottom: 0; padding: 12px 0; background: var(--hintergrund); margin: 0 0 16px; z-index: 5; }
@media (max-width: 47.99rem) { .speichern-leiste { bottom: calc(60px + env(safe-area-inset-bottom)); } }
.speichern-leiste .knopf { width: 100%; max-width: 24rem; }
.zeile-mit-aktion { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rand); }
.h3 { font-size: 1.15rem; margin: 0 0 4px; }
.hilfe details.karte { margin-bottom: 12px; }
.hilfe summary { font-size: 1.1rem; }
.zahl-links { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (forced-colors: active) {
  .zaehler, .marker, .schritt-zeichen { border: 1px solid CanvasText; }
  .tabs a[aria-current="page"] { outline: 2px solid CanvasText; }
}

/* Welle 6: Rechtstexte */
.rechtstext { max-width: 46rem; }
.rechtstext h2 { font-size: 1.2rem; margin-top: 1.4em; }
mark.platzhalter { background: var(--warnung-flaeche); color: var(--text); border: 1px dashed var(--warnung); border-radius: 6px; padding: 0 4px; }
.fuss a { color: inherit; text-decoration: underline; display: inline-block; min-height: 44px; line-height: 44px; padding: 0 4px; }
