/* Young Ortho Network: Designsprache der Seiten hinter der Landing Page (Richtung B, Blau und Profil, San Francisco).
   Ersatz für public/stil.css. Gleiche Klassen und Funktionsregeln wie dort (Sperrbalken nach Zeilenindex, Fenster,
   Codefeld, Leiste), neue Farben, Schrift und Formen. Tokens und Bausteine: marke/system/README.md. */

/* San Francisco als Systemschrift auf Apple-Geräten; sonst Inter (OFL, lädt nur dort) */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }

/* --- Tokens ---------------------------------------------------------------------------------------------------------- */
:root {
  --blau: #003BD3; --auf-blau: #FFFFFF; --auf-blau-leise: #C9D2FF;
  --grund: #FFFFFF; --flaeche: #F4F6FF; --karte: #F4F6FF; --text: #0B1033; --leise: #4C5373; --linie: #E3E6F2;
  --rand: #767C96; --akzent: #003BD3; --auf-akzent: #FFFFFF; --link: #003BD3;
  --balken: #E3E7F6; --schloss: #4C5373; --segment: #8A90A8; --fenster: #FFFFFF; --schleier: rgba(7, 11, 46, .5);
  --fehler: #B42318; --fehler-flaeche: #FEF3F2; --erfolg: #067647; --erfolg-flaeche: #ECFDF3;
  --warten: #8A4B00; --warten-flaeche: #FFF6E5; --fokus: #003BD3;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --r-klein: 10px; --r-karte: 16px; --pille: 999px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #070B2E; --flaeche: #0F1540; --karte: #0F1540; --text: #E8ECFF; --leise: #9AA7E8; --linie: #1C2457;
    --rand: #6B74A8; --akzent: #8AA4FF; --auf-akzent: #070B2E; --link: #8AA4FF;
    --balken: #1C2457; --schloss: #9AA7E8; --segment: #6B74A8; --fenster: #0F1540; --schleier: rgba(0, 0, 0, .6);
    --fehler: #FF8A80; --fehler-flaeche: #2A1210; --erfolg: #5FD39A; --erfolg-flaeche: #0F2419;
    --warten: #F5B94A; --warten-flaeche: #2B2008; --fokus: #8AA4FF;
  }
}

/* --- Grundlage ------------------------------------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0 auto; max-width: 720px; padding: 0 20px 48px; font: 16px/1.5 var(--sans); color: var(--text);
  background: var(--grund); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: .18em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }

/* Kopf: blaues Band über die ganze Breite, Bildmarke (weißes Logo aus /start/logo-96.png als Maske) vor dem Namen */
/* Oben: Kopf und Reiterleiste bleiben beim Scrollen stehen. Der Grund deckt den Inhalt darunter ab, auch dort, wo die
   Reiter auf dem Handy rechts auslaufen. */
.oben { position: sticky; top: 0; z-index: 30; margin: 0 -20px; padding: 0 20px; background: var(--grund); }
.kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 6px 18px; margin: 0 -20px; padding: 14px 20px;
  background: var(--blau); color: var(--auf-blau); box-shadow: 0 0 0 100vmax var(--blau); clip-path: inset(0 -100vmax); }
.marke { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: inherit;
  text-decoration: none; white-space: nowrap; }
.marke::before { content: ""; flex: none; width: 26px; height: 26px; background: currentColor;
  -webkit-mask: url("/start/logo-96.png") center / contain no-repeat;
  mask: url("/start/logo-96.png") center / contain no-repeat; }
.kopf :focus-visible { outline-color: var(--auf-blau); }
/* Kopf rechts: zwei Symbole ohne Text, Merkliste und Konto. Weiß auf Blau, dezent, je 40 x 40 px Trefferfläche. Im Merklisten-Modus
   (?gemerkt=1, public/filter.js) steht das Lesezeichen gefüllt (aria-current="true") und führt zurück zur normalen Ansicht. */
.kopf-symbole { display: flex; align-items: center; margin: -6px -10px -6px 0; }
.kopf-symbol { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-klein);
  color: inherit; opacity: .8; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.kopf-symbol:hover, .kopf-symbol[aria-current] { opacity: 1; }
.kopf-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.kopf-symbol[aria-current="true"] .kopf-icon { fill: currentColor; }
/* Merklisten-Modus: Teaser zeigen statt der Liste nur den Hinweis; in der Vollversion ist die Seite beim Laden und ohne Gemerktes
   leer bis auf Überschrift, Unterreiter und Hinweis. */
.gemerkt-hinweis { margin: 18px 0; color: var(--leise); }
html.modus-gemerkt body[data-fassung="teaser"] main > :not(h1):not(.gemerkt-hinweis),
html.modus-gemerkt body[data-fassung="teaser"] .leiste,
html.modus-leer main > :not(h1):not(nav.unter):not(.gemerkt-hinweis):not(.quellen-link) { display: none; }
/* Sprungziele landen unter Kopf und Reiterleiste. */
html { scroll-padding-top: 72px; }
html:has(nav.reiter) { scroll-padding-top: 124px; }
/* /anmelden/ mit Anzeige-Cookie: Adressfeld erst, wenn feststeht, dass keine Sitzung besteht (anmelden-vorab.js, anmelden.js) */
.sitzung-pruefen #schritt-adresse { display: none; }

/* Schrift: San Francisco (sonst Inter) überall, Überschriften halbfett und eng, Zahlen tabellarisch */
h1 { margin: 28px 0 6px; font: 600 clamp(28px, 22px + 1.6vw, 38px)/1.1 var(--sans); letter-spacing: -0.03em;
  text-wrap: balance; }
h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.klein { color: var(--leise); font-size: 14px; margin: 4px 0; }

/* --- Reiter: Unterstrich in Blau. Unterreiter: Pillen -------------------------------------------------------------- */
nav.reiter { display: flex; gap: 22px; overflow-x: auto; margin: 0 -20px; padding: 0 20px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; border-bottom: 1px solid var(--linie); }
nav.reiter::-webkit-scrollbar, nav.unter::-webkit-scrollbar { display: none; }
/* Auf dem Handy laufen die Reiter rechts weich aus: man sieht, dass es weitergeht */
@media (max-width: 760px) {
  nav.reiter, nav.unter { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
    mask: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
}
nav.reiter a { flex: 0 0 auto; padding: 14px 0 11px; color: var(--leise); text-decoration: none; font-size: 15px;
  font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
nav.reiter a[aria-current="page"] { color: var(--text); border-color: var(--akzent); }
/* Archive: letzter Reiter als Pille, rechts außen, sobald Platz ist */
nav.reiter a.archiv { margin-left: auto; align-self: center; padding: 6px 14px; border: 0; border-radius: var(--pille);
  background: var(--flaeche); color: var(--text); }
nav.reiter a.archiv[aria-current="page"] { background: var(--text); color: var(--grund); }
/* Ausgabe im Archiv: Absätze wie in WhatsApp */
.ausgabe p { margin: 0 0 14px; max-width: 40em; }
nav.reiter a[aria-current="true"] { color: var(--text); border-color: var(--linie); }
nav.unter { display: flex; gap: 6px; overflow-x: auto; margin: 10px -20px 12px; padding: 0 20px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
nav.unter a { flex: 0 0 auto; padding: 7px 14px; min-height: 36px; border-radius: var(--pille); background: var(--flaeche);
  color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; }
nav.unter a[aria-current="page"] { background: var(--text); color: var(--grund); }

/* --- Filter, Listen, Tabellen -------------------------------------------------------------------------------------- */
.filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 16px 0 6px; }
.filter select:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 560px) { .filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter select:last-child:nth-child(odd) { grid-column: auto; } }
select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 28px 9px 12px; font: inherit; font-size: 15px;
  text-overflow: ellipsis;
  border: 1px solid var(--linie); border-radius: var(--r-klein); color: var(--text); appearance: none;
  background: var(--flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C5373' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 8px center / 16px no-repeat; }
ul { list-style: none; padding: 0; margin: 8px 0; }
#liste > li { padding: 14px 0; border-bottom: 1px solid var(--linie); }
#liste > li b { display: block; font-weight: 600; }
#liste > li b a { text-decoration: none; }
#liste > li b a:hover { text-decoration: underline; }
#liste > li dl, #liste > li details { display: block; }
.karten li { margin: 10px 0; }
.karten a { display: block; padding: 16px; border: 1px solid var(--linie); border-radius: var(--r-karte);
  text-decoration: none; color: var(--text); }
.karten a b { display: block; color: var(--link); font-size: 18px; margin-bottom: 2px; }
.tabelle { overflow-x: auto; margin: 10px 0 18px; }
/* Tabellen passen immer in die Breite, nie seitlich scrollen (Max, 2026-10-29): Köpfe brechen um, lange Wörter auch */
table { border-collapse: collapse; font-size: 15px; min-width: 100%; overflow-wrap: anywhere; hyphens: auto;
  font-variant-numeric: tabular-nums; }
td:first-child { min-width: 9em; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--leise); overflow-wrap: normal; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
dl { margin: 4px 0; } dt { font-weight: 600; font-size: 14px; margin-top: 4px; } dd { margin: 0 0 2px; }
details { margin: 4px 0; } summary { cursor: pointer; color: var(--link); font-size: 15px; padding: 4px 0; }
ul.einzel { margin: 12px 0; }
@media (max-width: 600px) {
  table.karten, table.karten tbody, table.karten tr { display: block; min-width: 0; }
  table.karten thead { display: none; }
  table.karten tr { padding: 12px 0; border-bottom: 1px solid var(--linie); }
  table.karten td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border: 0;
    text-align: right; white-space: normal; font-size: 15px; }
  table.karten td:first-child { display: block; text-align: left; font-weight: 600; min-width: 0; padding-bottom: 4px; }
  table.karten td[data-label]::before { content: attr(data-label); color: var(--leise); text-align: left; flex-shrink: 0; }
  table.karten td:empty { display: none; }
}

/* --- Knöpfe, Formulare, Meldungen ---------------------------------------------------------------------------------- */
.knopf { display: block; margin: 14px 0 6px; padding: 14px 22px; min-height: 52px; border-radius: var(--pille);
  background: var(--akzent); color: var(--auf-akzent); text-align: center; font-weight: 600; text-decoration: none; }
button.knopf { width: 100%; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.knopf:disabled, .mail-zeigen:disabled { opacity: .55; cursor: default; }
.mail-zeigen { margin: 6px 0 2px; padding: 9px 16px; min-height: 40px; font: inherit; font-size: 15px;
  border: 1px solid var(--akzent); border-radius: var(--pille); background: transparent; color: var(--link); }
a.mail-zeigen { display: inline-block; text-decoration: none; }
/* Unauffällige Textlinks: Telefon zeigen, E-Mail zeigen, Blättern (Max, 2026-10-29: kein Knopf-Design in den Listen) */
.kontakt { padding: 2px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--leise); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 3px; }
.kontakt:hover { color: var(--link); text-decoration-color: currentColor; }
.kontakt:disabled { opacity: .5; cursor: default; text-decoration: none; }
nav.seiten { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 6px; }
nav.seiten .kontakt { padding: 8px 0; min-height: 40px; font-size: 15px; }
.link-knopf { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; color: var(--link);
  text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.link-knopf:disabled { color: var(--leise); opacity: .55; cursor: default; text-decoration: none; }
.klein-knopf { display: inline-block; width: auto; margin: 0; padding: 10px 20px; min-height: 44px; }
.zeile { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0; }
.formular label { display: block; margin: 16px 0 6px; font-weight: 600; }
.formular input[type=email], .formular input[type=text] { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit;
  font-size: 17px; border: 1px solid var(--rand); border-radius: var(--r-klein); background: var(--grund); color: var(--text); }
/* Anmelden, erster Schritt: nur Feld und Knopf, die Beschriftung ist unsichtbar (Platzhalter zeigt sie) */
.formular.kurz input[type=email] { margin-top: 18px; }
.formular input#code { font-size: 26px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.formular textarea { display: block; width: 100%; min-height: 160px; padding: 12px 14px; font: inherit; font-size: 17px; line-height: 1.5;
  border: 1px solid var(--rand); border-radius: var(--r-klein); background: var(--grund); color: var(--text); resize: vertical; }
/* Honigtopf im Kontaktformular: außerhalb des Bildes, für Menschen unsichtbar (kein Inline-Stil wegen der CSP) */
.honig { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.formular label.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 14px 0 4px; }
.formular label.haken input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--akzent); }
.meldung { margin: 12px 0; padding: 12px 14px; border-radius: var(--r-klein); border: 1px solid var(--linie);
  background: var(--flaeche); }
.meldung.fehler { border-color: var(--fehler); background: var(--fehler-flaeche); color: var(--fehler); }
.fuss { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--linie); font-size: 14px; color: var(--leise); }
.fuss a { color: var(--leise); }
.rechtstext h2 { margin: 28px 0 6px; }
.rechtstext h3 { font-size: 16px; margin: 20px 0 4px; line-height: 1.3; }
.rechtstext p { margin: 8px 0; }
.rechtstext ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
.rechtstext li { margin: 4px 0; }
.konto-abschnitt { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--linie); }
.konto-abschnitt .formular { margin-top: 8px; }
#konto [tabindex="-1"]:focus { outline: none; }

/* --- Anmeldeschranke: Karte, gesperrte Zeilen, Leiste, Fenster ------------------------------------------------------ */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap; border: 0; }
.schloss { width: 16px; height: 16px; flex: none; color: var(--schloss); }

/* Karte in der Liste: blaue Fläche wie die Landing Page */
#liste > li.schranke, .einzel > li.schranke { margin: 16px 0; padding: 22px 20px 18px; border: 0; border-radius: var(--r-karte);
  background: var(--blau); color: var(--auf-blau); }
.schranke-kopf { display: flex; gap: 12px; align-items: flex-start; }
.schranke-kopf .schloss { width: 22px; height: 22px; margin-top: 4px; color: var(--auf-blau-leise); }
.schranke h2 { margin: 0 0 10px; font: 600 22px/1.2 var(--sans); letter-spacing: -0.02em; }
.schranke p { margin: 0; color: var(--auf-blau-leise); }
.schranke .knopf { margin: 18px 0 12px; background: var(--auf-blau); color: var(--blau); }
.schranke a:not(.knopf) { color: var(--auf-blau); }
.schranke .klein { color: var(--auf-blau-leise); }

/* Platzhalter für gesperrte Werte: Breite nur nach Zeilenindex (b0 bis b3), nie nach dem echten Wert */
.sperre { display: flex; align-items: center; gap: 8px; height: 1.5em; }
.sperre::before { content: ""; flex: 0 0 auto; height: .7em; border-radius: var(--pille); background: var(--balken); }
.sperre::after { content: ""; flex: none; width: 15px; height: 15px; background: var(--schloss);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.sperre.b0::before { width: 58%; } .sperre.b1::before { width: 72%; }
.sperre.b2::before { width: 64%; } .sperre.b3::before { width: 80%; }

/* Bestätigung und Profilzeile nach dem Freischalten */
#liste > li.frei, main > .frei { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 14px 16px;
  border: 0; border-radius: var(--r-karte); background: var(--erfolg-flaeche); color: var(--text); }
.frei:focus, .frei:focus-visible { outline: none; }  /* Ziel für den Fokus, nicht bedienbar */
.haken-icon { width: 22px; height: 22px; flex: none; color: var(--erfolg); }
.frei p { margin: 0; }
#liste > li.einrichten { margin: 14px 0; padding: 18px; border: 1px solid var(--linie); border-radius: var(--r-karte); }
.einrichten-titel { margin: 0 0 4px; font-weight: 600; }
.einrichten label { display: block; margin: 12px 0 6px; font-size: 15px; }
.einrichten select { font-size: 16px; min-height: 48px; }
.neu-frei { animation: blende-aus 1.2s ease-out; }
@keyframes blende-aus { from { background: rgba(0, 59, 211, .12); } to { background: transparent; } }
@media (prefers-color-scheme: dark) { @keyframes blende-aus { from { background: rgba(138, 164, 255, .18); } to { background: transparent; } } }

/* Leiste unten (nur Listenseiten) */
body.hat-leiste { padding-bottom: calc(48px + 64px + env(safe-area-inset-bottom)); }
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 720px; margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom); background: var(--grund); border-top: 1px solid var(--linie);
  transform: translateY(100%); visibility: hidden; transition: transform .16s ease-out, visibility 0s .16s; }
.leiste.an { transform: none; visibility: visible; transition: transform .16s ease-out; }
.leiste-innen { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 20px; }
#leiste-text { flex: 1; font-size: 15px; font-weight: 600; }
.leiste-knopf { min-width: 44px; min-height: 46px; padding: 0 20px; border: 0; border-radius: var(--pille);
  background: var(--akzent); color: var(--auf-akzent); font: inherit; font-weight: 600; cursor: pointer; }

/* Fenster: am Handy von unten, am Desktop mittig */
html:has(dialog[open]), html.anm-offen { overflow: hidden; }
dialog.anmeldung { padding: 0; border: 0; border-radius: 22px; background: var(--fenster); color: var(--text);
  width: min(460px, calc(100% - 32px)); max-width: 460px; max-height: none; overflow: visible;
  box-shadow: 0 24px 64px rgba(7, 11, 46, .28); animation: fenster-ein .22s ease-out; }
dialog.anmeldung::backdrop { background: var(--schleier); animation: schleier-ein .15s ease-out; }
dialog.anmeldung.schliesst { animation: fenster-aus .16s ease-in forwards; }
dialog.anmeldung.schliesst::backdrop { animation: schleier-aus .16s ease-in forwards; }
.anm-blatt { position: relative; padding: 22px 22px 20px; max-height: min(90dvh, 720px); overflow-y: auto;
  overscroll-behavior: contain; border-radius: 22px; }
.anm-griff { display: none; }
.anm-zu { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: var(--pille); background: var(--flaeche); color: var(--leise); cursor: pointer; }
.anm-zu svg { width: 20px; height: 20px; }
.anm-schritt { margin: 0 0 6px; font-size: 13px; line-height: 20px; letter-spacing: .04em; text-transform: uppercase; }
#anm-titel { margin: 0 48px 10px 0; font: 600 25px/1.15 var(--sans); letter-spacing: -0.025em; }
#anm-titel:focus { outline: none; }
.anm-lead { margin: 0 0 18px; }
.anmeldung label { display: block; margin: 0 0 6px; font-weight: 600; }
.anmeldung input[type=email], .anmeldung input[type=text] { width: 100%; min-height: 54px; padding: 12px 14px; font: inherit;
  font-size: 18px; border: 1px solid var(--rand); border-radius: var(--r-klein); background: var(--grund); color: var(--text); }
.anmeldung input[aria-invalid=true] { border: 2px solid var(--fehler); padding: 11px 13px; }
.anmeldung .klein { margin: 6px 0 0; }
.anmeldung .knopf { margin: 14px 0 0; position: relative; }
.anmeldung .recht { margin: 12px 0 0; }
.anmeldung form > .klein + .klein, .anmeldung form > .klein + .knopf { margin-top: 14px; }
.anmeldung label.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0 0; }
.anmeldung label.haken input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--akzent); }
.anm-fehler { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: 15px; line-height: 21px;
  color: var(--fehler); }
.anm-fehler[hidden] { display: none; }
.anm-fehler svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.anmeldung .zeile { display: flex; flex-direction: column; align-items: flex-start; margin: 4px 0 0; gap: 0; }
#anm-ziel { overflow-wrap: anywhere; }

/* Codefeld: ein echtes Feld, das wie sechs Segmente aussieht (Einfügen und Autofill funktionieren) */
.anmeldung input.codefeld, .formular input.codefeld, .codefeld { display: block; width: calc(6 * (1ch + .4em) + 28px) !important; max-width: 100%; margin: 6px auto 0;
  padding: 8px 14px 14px !important; font-size: 30px !important; letter-spacing: .4em; text-align: left;
  font-variant-numeric: tabular-nums; border: 0 !important; border-radius: var(--r-klein) !important; background-color: transparent !important;
  background-image: repeating-linear-gradient(90deg, var(--segment) 0, var(--segment) calc(1ch + .15em), transparent calc(1ch + .15em), transparent calc(1ch + .4em));
  background-size: calc(6 * (1ch + .4em)) 3px; background-repeat: no-repeat; background-origin: content-box;
  background-position: left bottom; min-height: 58px !important; }
.codefeld:focus-visible { --segment: var(--akzent); outline: none; }
.codefeld[aria-invalid=true] { --segment: var(--fehler); }
.codefeld[aria-busy=true] { opacity: .6; }
.spinner { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: dreh .8s linear infinite; }
button[aria-busy=true] { cursor: progress; }
.anm-erfolg { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0 16px; text-align: center; }
.anm-erfolg .haken-icon { width: 44px; height: 44px; }
.anm-erfolg p { margin: 0; font: 600 24px/1.15 var(--sans); letter-spacing: -0.02em; }
@keyframes dreh { to { transform: rotate(360deg); } }
@keyframes fenster-ein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fenster-aus { to { opacity: 0; transform: translateY(12px); } }
@keyframes schleier-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes schleier-aus { to { opacity: 0; } }
@keyframes hoch { from { transform: translateY(100%); } to { transform: none; } }
@keyframes runter { to { transform: translateY(100%); } }
@keyframes ein-1ms { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 639px) {
  dialog.anmeldung { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(7, 11, 46, .22); animation: hoch .22s ease-out; }
  dialog.anmeldung.schliesst { animation: runter .16s ease-in forwards; }
  .anm-blatt { max-height: 90dvh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .anm-griff { display: block; width: 40px; height: 4px; margin: -8px auto 14px; border-radius: 2px; background: var(--linie); }
}
@media (prefers-color-scheme: dark) {
  dialog.anmeldung { box-shadow: none; border: 1px solid var(--linie); }
}

/* --- Antrag und Status (neu, Muster in marke/system/muster/) ------------------------------------------------------- */
.antrag { margin: 8px 0 0; }
.antrag .einleitung { color: var(--leise); margin: 0 0 8px; }
.antrag fieldset { margin: 18px 0; padding: 0; border: 0; }
.antrag legend { margin: 0 0 8px; padding: 0; font-weight: 600; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { position: relative; margin: 0; font-weight: 500; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--rand);
  border-radius: var(--pille); cursor: pointer; }
.wahl input:checked + span { border-color: var(--akzent); background: var(--akzent); color: var(--auf-akzent); }
.wahl input:focus-visible + span { outline: 2px solid var(--fokus); outline-offset: 2px; }
.antrag select { min-height: 52px; font-size: 16px; background-color: var(--grund); border-color: var(--rand); }
.antrag .hinweis { margin: 18px 0 0; font-size: 14px; color: var(--leise); }

.status { margin: 20px 0; padding: 22px 20px; border-radius: var(--r-karte); background: var(--flaeche); }
.status h1 { margin: 12px 0 8px; }
.status p { margin: 0 0 10px; }
.status-marke { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: var(--pille);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.status-marke::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-marke.warten { background: var(--warten-flaeche); color: var(--warten); }
.status-marke.frei { background: var(--erfolg-flaeche); color: var(--erfolg); }
.status-marke.nein { background: var(--fehler-flaeche); color: var(--fehler); }
.status-marke.warten::before { animation: puls 2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .35; } }
.schritte { display: grid; gap: 0; margin: 18px 0 6px; padding: 0; list-style: none; }
.schritte li { position: relative; padding: 0 0 14px 30px; color: var(--leise); }
.schritte li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--rand); background: var(--grund); }
.schritte li::after { content: ""; position: absolute; left: 11px; top: 20px; bottom: 0; width: 1px; background: var(--linie); }
.schritte li:last-child::after { display: none; }
.schritte li.erledigt { color: var(--text); }
.schritte li.erledigt::before { border-color: var(--akzent); background: var(--akzent); }
.schritte li.jetzt { color: var(--text); font-weight: 600; }
.schritte li.jetzt::before { border-color: var(--warten); background: var(--warten-flaeche); }

/* --- Seiten nach der Marke: Statement, Quellen, Team-Liste, Konto ------------------------------------------------------ */
.quellen-link { margin: 20px 0 4px; }
.quellen section { margin: 28px 0; padding-top: 22px; border-top: 1px solid var(--linie); scroll-margin-top: 12px; }
.quellen section:first-child { border-top: 0; padding-top: 0; }
.quellen p { margin: 8px 0; }
.quellen ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
.quellen li { margin: 4px 0; }

.antrag .recht { margin: 14px 0 0; font-size: 14px; color: var(--leise); }
.antrag .klein { margin: 8px 0 0; }
.formular .wahl label, .anmeldung .wahl label { display: block; margin: 0; font-weight: 500; }
.status:focus { outline: none; }
.status h2, .status h3 { margin: 12px 0 8px; font: 600 22px/1.2 var(--sans); letter-spacing: -0.02em; }
.status-angaben { margin: 10px 0 0; font-size: 15px; color: var(--leise); }
.konto-abschnitt .antrag { margin-top: 12px; }
.loeschen-adresse { font-weight: 600; }
.einladen-link { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--linie); border-radius: var(--r-klein); background: var(--flaeche);
  font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.konto-abschnitt .zeile { align-items: center; }

.team-liste li { margin: 12px 0; padding: 16px 18px; border: 1px solid var(--linie); border-radius: var(--r-karte); background: var(--grund); }
.team-liste li b { display: block; font-weight: 600; }
.team-liste .zeile { margin: 12px 0 0; }
.team-liste .text { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.team-liste .eingeladen { color: var(--leise); font-size: 14px; }
.kriterium { margin: 16px 0; padding: 16px 18px; border-radius: var(--r-karte); background: var(--flaeche); }
.kriterium p { margin: 6px 0; }

/* --- Merkliste (Lesezeichen), nur in den Vollversionen ------------------------------------------------------------- */
/* Der Knopf schwebt rechts oben in der Zeile (Liste) oder in der ersten Zelle (Tabelle). Trefferfläche 40 x 40 px; die negativen
   Ränder halten die Zeile so niedrig wie ohne Knopf und ragen nie über den Seitenrand (Body hat 20 px Rand). */
.merken { float: right; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin: -8px -10px -14px 8px; padding: 0; border: 0; border-radius: var(--r-klein); background: transparent;
  color: var(--leise); cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (max-width: 600px) { table.karten td:first-child .merken { margin-right: 0; } }      /* Karten haben keinen Zellenrand */
.merken-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.merken:hover { color: var(--text); }
.merken[aria-pressed="true"] { color: var(--akzent); }
.merken[aria-pressed="true"] .merken-icon { fill: var(--akzent); }
.merken:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
[id^="m-"] { scroll-margin-top: 140px; }
li:target, tr:target { background: var(--flaeche); }
.merken-meldung { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 30; max-width: 480px; margin: 0 auto; padding: 12px 14px;
  border: 1px solid var(--linie); border-radius: var(--r-klein); background: var(--grund); color: var(--text); font-size: 15px;
  box-shadow: 0 4px 18px rgba(11, 16, 51, .18); }
.merken-meldung[hidden] { display: none; }
.gemerkt-liste { margin: 8px 0; }
.gemerkt-liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.gemerkt-liste a { min-width: 0; overflow-wrap: anywhere; }
.gemerkt-liste .mail-zeigen { flex: none; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  dialog.anmeldung, dialog.anmeldung.schliesst { animation: ein-1ms 1ms both; }
  dialog.anmeldung::backdrop, dialog.anmeldung.schliesst::backdrop { animation: ein-1ms 1ms both; }
  .leiste, .leiste.an { transition: none; }
  .neu-frei, .status-marke.warten::before { animation: none; }
  .spinner { animation-duration: 2.4s; }
}
