/* Schriften selbst gehostet — Plex Mono als Belegschrift, darunter die Curani-Schrift. Kein Dienst ruft ein Font-CDN. */
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/static/fonts/plex-mono-400-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/static/fonts/plex-mono-400-latin.woff2') format('woff2');
  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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/static/fonts/plex-mono-500-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/static/fonts/plex-mono-500-latin.woff2') format('woff2');
  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;
}
/* Curani-Schrift (Markenbuch 19.10.2026), selbst gehostet, nie von einem CDN: Poppins für Titel,
   Knöpfe und Eyebrows, Open Sans für Text — beide OFL, Herkunft und Teilmengen in
   assets/fonts/fonts.json. Open Sans ist variabel (wght 300–800), eine Datei je Teilmenge und
   Lage; Poppins in den drei Schnitten des Buchs: Medium trägt auch 300–500, Bold auch 700–900. */
@font-face {
  font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('/static/fonts/opensans-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('/static/fonts/opensans-latin.woff2') format('woff2');
  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: 'Open Sans'; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url('/static/fonts/opensans-italic-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Open Sans'; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url('/static/fonts/opensans-italic-latin.woff2') format('woff2');
  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: 'Poppins'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('/static/fonts/poppins-500-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('/static/fonts/poppins-500-latin.woff2') format('woff2');
  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: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/static/fonts/poppins-600-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/static/fonts/poppins-600-latin.woff2') format('woff2');
  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: 'Poppins'; font-style: normal; font-weight: 700 900; font-display: swap;
  src: url('/static/fonts/poppins-700-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700 900; font-display: swap;
  src: url('/static/fonts/poppins-700-latin.woff2') format('woff2');
  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;
}
/* ───────────────────────────────────────────────────────────────────────────
   §45 design tokens — shared by service 1 and service 2.

   DER BELEUCHTETE WEG. You can always see one step ahead, and it is warm.
   The user arrives exhausted and sceptical; two minutes later they should want
   to open the next screen. Anticipation is the organising idea, so:

   ONE RULE CARRIES THE SYSTEM: --light is scarce and always means
   "the thing ahead of you". The step you are on is lit. The path behind is
   spent and quiet. The path ahead is drawn but not yet lit. Light is never
   spent on decoration, because then it stops meaning anything.

   KEPT ON MERIT from the superseded Leistungsbescheid doctrine: monospace
   marks the evidentiary layer (--font-record via .record), and money is set as
   fact, not accent (.figure). Everything else of that doctrine is cancelled —
   see assets/DESIGN-RULES.md.

   EINE PALETTE, ZWEI ABSCHRIFTEN. Every colour of the platform lives here:
   :root below for light, and the dark palette twice (media query + attribute,
   CSS cannot OR the two — tests/test_dark_palette.py keeps the copies equal).
   participant.css and kursraum.css read these tokens and set none of their own.
   Every value was measured against its own ground; the ratio is in the comment.
   Do not substitute an untested hex.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  /* Hell ausdrücklich: ein SVG im <img> fragt prefers-color-scheme beim Modus der Seite,
     ohne Angabe aber beim System. Ohne diese Zeile malten die Motive auf einer hell
     gewählten Seite mit dunklem System ihren Midnight-Grund (21.10.). */
  color-scheme: light;
  /* Curani (Markenbuch 19.10.2026): Midnight Blue #051f4e, Light Purple #f6f7ff,
     Curani Pink #ef2669 und seine Stufen. Flächen: Höhe ist Helligkeit —
     Seitenleiste am tiefsten, dann Grund, darüber Karte, Zeile, Aktives. */
  --paper:          #f6f7ff;   /* der Grund — Light Purple                  */
  --paper-raised:   #ffffff;   /* Karte, Blatt                              */
  --paper-row:      #ecf0fd;   /* Zeile, gerade Tabellenzeile (LP 60 %)     */
  --paper-top:      #e2e7ff;   /* Aktives, Chip (LP 70 %)                   */
  --paper-card:     #ffffff;   /* Einheitenkarte auf /home                  */
  --paper-sidebar:  #051f4e;   /* Seitenleiste: Midnight, in beiden Modi dunkel */
  --ink:            #051f4e;   /* 14.98:1 on paper, 13.04:1 on top          */
  --ink-2:          #2d3c59;   /* 10.34:1 on paper, 8.99:1 on top           */
  --rule:           #e2e7ff;   /* hairline, decorative only — never a boundary */
  --rule-strong:    #6a779b;   /*  4.16:1 on paper, 3.62:1 on top — boundaries */
  --rule-card:      #6a779b;   /* Kante der Einheitenkarte (anklickbar)     */

  /* The light. Scarce by design: the step ahead, and nothing else.
     Pink 60 % trägt Text; Basis-Pink #ef2669 nur als Zeichen (--path-here). */
  --light:          #c72058;   /*  5.56:1 with --light-on — FILL            */
  --light-text:     #c72058;   /*  5.21:1 on paper, 4.53:1 on top — Links   */
  --light-soft:     #ecf0fd;   /* fill behind the lit step                  */
  --light-on:       #ffffff;   /*  5.56:1 on --light — text ON the fill     */
  --light-hover:    #9f1946;   /*  7.77:1 with --light-on (Pink 70 %)       */

  /* The path. Fertige Punkte tragen eine Ziffer oder einen Haken, deshalb
     haben sie eine eigene Beschriftungsfarbe; --path-here ist nur ein Zeichen. */
  --path-done:      #051f4e;
  --path-done-on:   #ffffff;   /* 16.00:1 on --path-done                    */
  --path-here:      #ef2669;   /*  3.32:1 on top — Zeichen, nie Text        */
  --path-ahead:     #6a779b;   /*  3.62:1 on top — Kontur offener Punkte    */

  --highlight:      #e2e7ff;   /* "you found it" — background only, text Midnight */
  --info:           #235d68;   /*  6.03:1 on top                            */
  --positive:       #205e39;   /*  6.29:1 on top                            */
  --negative:       #a83a16;   /*  5.21:1 on top, 5.66:1 on --stamp-soft — Orange-Rot, nie Pink */
  --ampel-gruen:    #0d6b3f;   /*  5.36:1 on top — die Staff-Ampel          */
  --ampel-gelb:     #8a5200;   /*  5.20:1 on top                            */

  /* Die Seitenleiste ist in beiden Modi dunkel: eigene Schrift, eigene Stufen,
     einmal gesetzt. Die Kante bekommt dunkel eine Farbe (dort liegen Leiste
     und Grund nur ΔL 0,035 auseinander). */
  --pk-sidebar:        var(--paper-sidebar);
  --pk-sidebar-ink:    #f6f7ff;   /* 14.98:1 on Midnight, 18.49:1 on #010922 */
  --pk-sidebar-ink-2:  #b6c0de;   /*  8.83:1 / 10.89:1                       */
  --pk-sidebar-active: #153161;   /* Navigation aktiv, 11.96:1 with ink      */
  --pk-sidebar-hover:  #0c2757;
  --pk-sidebar-nav-hover: #0c2757; /* Menüpunkt unter der Maus, dunkel leiser */
  --pk-sidebar-rule:   #8b99bd;   /*  4.50:1 on active — Kontur, Türrahmen   */
  --pk-sidebar-accent: #f792b4;   /* Fokus und Zitatzeichen auf der Leiste   */
  --pk-sidebar-edge:   transparent;

  /* Kursraum-Flächen. Der Bildgrund der Illustrationen folgt dem Modus; die Motive
     tragen ihren dunklen Grund selbst (prefers-color-scheme im SVG). */
  --pk-mint:        #edf8f2;   /* ink-2 darauf 10.15:1                      */
  --pk-positive-bg: #e4f5e9;   /* --positive darauf 6.81:1                  */
  --pk-beispiel:      #fff1b8; /* Akademie: Marke „Beispiel“, Tinte darauf 11.87:1 */
  --pk-beispiel-soft: #fff8d6; /* Akademie: Satz „Kein echter Kurs“, 12.59:1     */
  --pk-beispiel-ink:  #3b2d00;
  --pk-beispiel-rule: #8a6d00; /*  4.92:1 on raised                        */
  --pk-art-ground:  #ecf0fd;
  --pk-inhalt-grund: #ffffff;  /* Grund der Easygenerator-Bilder, in beiden Modi weiß */
  --pk-shadow:      none;      /* Kanten statt Schatten, in beiden Modi     */
  --shadow-raised:  none;

  /* DEPRECATED aliases — the Leistungsbescheid names. Kept so existing call
     sites in views.py / calculator.css keep working. Do not use in new code. */
  --ballpoint:      var(--light-text);
  --ballpoint-soft: var(--light-soft);
  --stamp:          var(--negative);
  --stamp-soft:     #fdeee8;

  --font-display: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-ui:      'Open Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-record:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* Markenbuch: Titel F37 Sonic — nur als Testversion da, wird nicht ausgeliefert; an seiner
     Stelle Poppins, Text Open Sans. Plex Mono bleibt die Belegschrift (.record): die Marke
     kennt keine Mono, und der Belegsatz ist eine Hausregel, kein Markenelement
     (DESIGN-RULES.md § Typography). */

  --step--1: 0.82rem;
  --step-0:  1rem;
  --step-1:  1.15rem;
  --step-2:  1.4rem;
  --step-3:  1.85rem;
  --step-4:  clamp(2.1rem, 5vw, 2.75rem);

  /* Schriftstufen des Teilnehmerbereichs (Todo 831): Text, Titel, Seite, dazu die Dachzeile.
     Handy links, Desktop rechts. Die Desktop-Enden sind die Markenbuch-Hierarchie (H2 40, H3 28
     auf Text 18), umgerechnet auf den Text der App (16): 36 und 24. Dachzeile = Eyebrow 14. */
  --fs-text:  1rem;
  --fs-titel: clamp(1.375rem, 1.286rem + .238vw, 1.5rem);
  --fs-seite: clamp(1.75rem, 1.393rem + .952vw, 2.25rem);
  --fs-ober:  .875rem;

  --measure: 62ch;
  --radius:  6px;

  /* Hooks the calculator module reads (funnel/module/calculator.css) —
     namespaced so a HubSpot host page cannot collide. Aliases, not copies:
     the dark redefinitions below flow through var(), one list serves both
     modes. calculator.css keeps hex fallbacks — on HubSpot this file is
     absent and the fallbacks ARE the brand. */
  --p45-paper:        var(--paper);
  --p45-paper-raised: var(--paper-raised);
  --p45-ink:          var(--ink);
  --p45-ink-2:        var(--ink-2);
  --p45-rule:         var(--rule);
  --p45-rule-strong:  var(--rule-strong);
  --p45-light:        var(--light);
  --p45-light-text:   var(--light-text);
  --p45-light-soft:   var(--light-soft);
  --p45-light-on:     var(--light-on);
  --p45-light-hover:  var(--light-hover);
  --p45-path-done:    var(--path-done);
  --p45-path-here:    var(--path-here);
  --p45-path-ahead:   var(--path-ahead);
  --p45-highlight:    var(--highlight);
  --p45-stamp:        var(--stamp);
  --p45-stamp-soft:   var(--stamp-soft);
}

/* Dark mode, twice: the OS preference arrives as a media query, an explicit
   choice as [data-theme] on <html>, and CSS cannot OR the two. The :not()
   guard lets an explicit "light" beat a dark OS. Both bodies must stay
   identical — test_web_homepage compares them. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #021030;
    --paper-raised: #051f4e;
    --paper-row: #0c2757;
    --paper-top: #153161;
    --paper-card: #051f4e;
    --paper-sidebar: #010922;
    --ink: #f6f7ff;
    --ink-2: #b6c0de;
    --rule: #2f4c7f;
    --rule-strong: #8b99bd;
    --rule-card: #8b99bd;
    --light: #f46e9b;
    --light-text: #f792b4;
    --light-soft: #153161;
    --light-on: #051f4e;
    --light-hover: #f792b4;
    --path-done: #8b99bd;
    --path-done-on: #051f4e;
    --path-here: #ef2669;
    --path-ahead: #8b99bd;
    --highlight: #b6ccd0;
    --info: #afdce4;
    --positive: #bbebce;
    --negative: #ff8f70;
    --ampel-gruen: #5fd39b;
    --ampel-gelb: #f0b552;
    --stamp-soft: #3a1d14;
    --pk-sidebar-edge: #8b99bd;
    --pk-sidebar-nav-hover: #071535;
    --pk-mint: #253e38;
    --pk-positive-bg: #304c3b;
    --pk-beispiel: #3d3210;
    --pk-beispiel-soft: #352a0e;
    --pk-beispiel-ink: #ffe7a3;
    --pk-beispiel-rule: #f0b552;
    --player-filter: brightness(.72);
    --pk-art-ground: #153161;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #021030;
  --paper-raised: #051f4e;
  --paper-row: #0c2757;
  --paper-top: #153161;
  --paper-card: #051f4e;
  --paper-sidebar: #010922;
  --ink: #f6f7ff;
  --ink-2: #b6c0de;
  --rule: #2f4c7f;
  --rule-strong: #8b99bd;
  --rule-card: #8b99bd;
  --light: #f46e9b;
  --light-text: #f792b4;
  --light-soft: #153161;
  --light-on: #051f4e;
  --light-hover: #f792b4;
  --path-done: #8b99bd;
  --path-done-on: #051f4e;
  --path-here: #ef2669;
  --path-ahead: #8b99bd;
  --highlight: #b6ccd0;
  --info: #afdce4;
  --positive: #bbebce;
  --negative: #ff8f70;
  --ampel-gruen: #5fd39b;
  --ampel-gelb: #f0b552;
  --stamp-soft: #3a1d14;
  --pk-sidebar-edge: #8b99bd;
  --pk-sidebar-nav-hover: #071535;
  --pk-mint: #253e38;
  --pk-positive-bg: #304c3b;
  --pk-beispiel: #3d3210;
  --pk-beispiel-soft: #352a0e;
  --pk-beispiel-ink: #ffe7a3;
  --pk-beispiel-rule: #f0b552;
  --player-filter: brightness(.72);
  --pk-art-ground: #153161;
}

/* Cross-document view transitions: the "next step" moment, with no JavaScript.
   This is the one motion lever available under script-src 'none'. */
@view-transition { navigation: auto; }

/* ── base ─────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
/* Formularelemente erben die Schrift nicht von selbst (UA-Stylesheet: Arial). Gemessen 20.10.:
   zwei Knöpfe und jede Eingabe jeder Seite standen in Arial, in keiner der beiden Schriften. */
button, input, select, textarea { font-family: inherit; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Deutsche Komposita sind länger, als ein Telefon breit ist. Gemessen 17.08. bei
   360px auf /staff/team: „Team und Qualifikationsnachweise" braucht 350px in
   einer 305px-Spalte, läuft aus seiner Box heraus und zieht die ganze SEITE
   25px zur Seite — die Überschrift steht dann links angeschnitten. Sichtbar
   wird das nur im Rendering: die Box selbst ist 305px breit und unauffällig.
   `hyphens: auto` greift, weil jedes Dokument hier lang="de" trägt, und trennt
   nach deutschen Regeln; `overflow-wrap` ist der Notausgang für das, was kein
   Silbentrenner brechen darf (URLs, Aktenzeichen, Pseudonyme). Fließtext
   bekommt nur den Notausgang: dort ist die Spalte breit genug, und eine
   Trennung, die niemand braucht, ändert das Satzbild jeder Seite. */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.22;
             overflow-wrap: break-word; hyphens: auto; }
p, li, dd, td, th, label, legend, summary,
span, a { overflow-wrap: break-word; }

/* Eine breite Tabelle darf seitwärts laufen — nur nicht die Seite mitnehmen.
   Die Regel stand bis zum 18.08. nur im Kurs-CSS; seit die Betragstabelle der
   Website denselben Rahmen braucht, steht sie hier, wo sich beide Dienste
   bedienen. Der Kasten scrollt, die Seite steht still. */
.tabelle { overflow-x: auto; }

/* Eine E-Mail-Adresse hat keine Trennstelle, die `hyphens` kennt, und
   `break-word` bricht sie erst, wenn sie allein auf einer Zeile steht — im
   Satz „Fragen? pflegekurse@curani.org — wir antworten werktags" tut sie das
   nie. Bei 200 % Schriftgröße schob sie deshalb JEDE Seite 17px zur Seite, in
   beiden Diensten. `anywhere` darf mitten im Wort brechen; in einer Fußzeile
   ist das der richtige Preis. */
.pagefoot a, .pagefoot p, footer a { overflow-wrap: anywhere; }

/* Ein Flex- oder Grid-Kind hat `min-width:auto` und kann damit nicht unter die
   Breite seines längsten Wortes schrumpfen — es dehnt stattdessen seinen
   Container, und der schiebt die ganze Seite. Auf Deutsch ist das längste Wort
   lang, und ab 150 % Schriftgröße ist es breiter als ein Telefon. Gemessen
   18.08.: /register ab 150 %, / ab 160 %, /home ab 175 %.

   **Warum pauschal und nicht aufgezählt.** Der erste Versuch war eine Liste der
   bekannten Container. Sie ist in einem einzigen Nachmittag dreimal gerissen:
   erst fehlte `li` (/kursraum-demo), dann lag sie im falschen Stylesheet
   (`APP_CSS` bedient nur die Hülle, /register hat sie nie gesehen), dann fehlten
   `.entry` und `.facts` der Website. Eine Liste, die bei jedem neuen Bildschirm
   still falsch wird, ist keine Regel, sondern eine Wartungsschuld.

   Der Preis ist benannt und geprüft: `min-width:0` überall überschreibt auch
   absichtliche Mindestbreiten. Es gibt genau eine im Repo — `.pillmenu`
   (`views.py`, 15rem) —, und die steht unten wieder her. Kommt eine zweite dazu,
   gehört sie ebenso dorthin; das ist eine Zeile, keine Liste.

   Ein `inline-flex`-Knopf misst sich an seinem Inhalt und kennt seinen Container
   nicht; `max-width:100%` ist dort die Entsprechung zu `min-width:0`. */
main *, footer * { min-width: 0; }
/* `aside` steht bewusst NICHT dabei. Die Seitenleiste ist auf dem Telefon eine
   gewollte Scrollfläche (`overflow-x:auto`), ihre Links sollen dort ihre
   natürliche Breite behalten und seitwärts laufen. Mit dem Reset schrumpften
   sie von 126px auf 48px und die Beschriftungen brachen mitten im Wort —
   gefunden im Pixelvergleich gegen main, nicht im Lauf: die Seite war dabei
   nirgends zu breit, sie war nur kaputt. Die Rasterspur regelt
   `.hk-rahmen>*{min-width:0}` in views.py, und die genügt. */
.next, .btn { max-width: 100%; }
/* `span` und `a` sind am 18.08. dazugekommen, aus derselben Messung wie oben,
   nur eine Stufe weiter: bei 150 % Schriftgröße auf 360px läuft „Ich pflege
   jemanden aus meiner Familie" aus seiner Auswahlkarte heraus, und der Zusatz
   neben „Termin wählen" aus dem Bild. Beide sitzen in einem `span`, das die
   Liste oben nicht kannte. Die Entscheidung darüber — Notausgang ja,
   Silbentrennung im Fließtext nein — bleibt wie sie ist. */
h1 { font-size: var(--step-3); margin: 0 0 .35rem; letter-spacing: -0.01em; }
h2 { font-size: var(--step-1); margin: 1.6rem 0 .6rem; }
h3 { font-size: var(--step-1); margin: 0 0 .9rem; }

a { color: var(--ballpoint); text-underline-offset: 2px; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ballpoint);
  outline-offset: 2px;
}

/* Was als Ganzes gelesen wird, bricht nicht um: „Live-Kurs 1" (sonst „Live-|Kurs 1"). */
.ungetrennt { white-space: nowrap; }

/* The evidence layer. Everything that came from a record, and nothing else. */
.record {
  font-family: var(--font-record);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Figures are facts, not accents: near-black, tabular, tight. */
.figure {
  font-family: var(--font-ui);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.deadline {
  font-family: var(--font-record);
  font-size: var(--step--1);
  color: var(--stamp);
  background: var(--stamp-soft);
  padding: .1rem .4rem;
  border-radius: 3px;
}

/* ── der beleuchtete Weg ───────────────────────────────────────────────────
   The path is decoration and must never be the only carrier of state — the
   step names are real text, and aria-current marks position for assistive
   tech. Colour and dot shape are the visual echo, not the source of truth. */
.path { display: flex; align-items: center; gap: .5rem; list-style: none;
        margin: 0; padding: 0; flex-wrap: wrap; }
.path li { display: flex; align-items: center; gap: .5rem;
           font-size: var(--step--1); color: var(--ink-2); }
.path li::before {
  content: ""; inline-size: .6rem; block-size: .6rem; border-radius: 50%;
  background: var(--path-ahead); flex: none;
}
.path li[data-state="done"]::before { background: var(--path-done); }
.path li[data-state="here"]::before {
  background: var(--path-here); inline-size: .85rem; block-size: .85rem;
  box-shadow: 0 0 0 .25rem var(--light-soft);
}
.path li[data-state="here"] { color: var(--ink); font-weight: 600; }

/* Die Route: der Weg als senkrechtes Rückgrat (Richtung A, 07.09.). Jede
   Station ist ein echter Listeneintrag mit Namen; der Zustand steht in
   data-state UND im Text (aria-current an der Station, an der man ist) —
   Farbe und Punkt sind das Echo, nie die Quelle.
   Kontrast: Ziffer im Punkt --ink-2 auf --paper-raised 11.0:1 (hell) /
   8.8:1 (dunkel); im lit Punkt --light-on auf --light 5.56:1 / 5.75:1;
   im erledigten Punkt --path-done-on auf --path-done 16.0:1 / 5.63:1. */
.route { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.station { position: relative; display: grid; grid-template-columns: 1.7rem minmax(0, 1fr);
           column-gap: .9rem; padding: 0 0 1.1rem; }
.station:last-child { padding-bottom: 0; }
.station::before {
  content: ""; position: absolute; left: calc(.85rem - 1px); top: 1.8rem; bottom: .1rem;
  width: 2px; background: var(--path-ahead);
}
.station:last-child::before { display: none; }
.station__dot {
  inline-size: 1.7rem; block-size: 1.7rem; border-radius: 50%; flex: none;
  border: 2px solid var(--path-ahead); background: var(--paper-raised);
  display: flex; align-items: center; justify-content: center; margin-top: .05rem;
  font-size: var(--step--1); font-weight: 600; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.station[data-state="done"]::before { background: var(--path-done); }
.station[data-state="done"] .station__dot {
  background: var(--path-done); border-color: var(--path-done); color: var(--path-done-on);
}
.station[data-state="here"] .station__dot {
  background: var(--light); border-color: var(--light); color: var(--light-on);
  box-shadow: 0 0 0 .3rem var(--light-soft);
}
.station__name { margin: 0; font-weight: 600; }
/* Der Name der Station, an der man ist, bleibt Tinte: der Punkt trägt das Licht, ein
   Link darin seine eigene Farbe. Hell wie dunkel ein Zeichen. */
.station[data-state="here"] .station__name { color: var(--ink); }
.station__text { margin: .1rem 0 0; color: var(--ink-2); }
.station__text + .station__text { margin-top: .35rem; }
/* Der Weg im Rahmen (`.route--weg`, gesetzt von page()): unter 60rem eine
   Zeile im Seitenkopf — Punkte, der eigene Name, „danach: …"; die übrigen
   Namen bleiben im Dokument, nur nicht auf dem Schirm. Ab 60rem ist es die
   senkrechte Route in einer linken Spalte (Raster in views.py), und die
   „danach"-Ergänzung fällt weg, weil die nächste Station sichtbar ist. */
.route--weg .station__danach { color: var(--ink-2); font-weight: 400; }
@media (min-width: 60rem) { .route--weg .station__danach { display: none; } }
@media (max-width: 59.99rem) {
  .route--weg { flex-direction: row; flex-wrap: wrap; align-items: center;
                gap: .4rem .5rem; margin: .6rem 0 0; font-size: var(--step--1); }
  .route--weg .station { display: flex; align-items: center; gap: .4rem; padding: 0; }
  .route--weg .station::before { display: none; }
  .route--weg .station__dot { inline-size: .7rem; block-size: .7rem; font-size: 0;
    border: 0; background: var(--path-ahead); margin: 0; box-shadow: none; }
  .route--weg .station[data-state="done"] .station__dot { background: var(--path-done); }
  .route--weg .station[data-state="here"] .station__dot { inline-size: .95rem;
    block-size: .95rem; background: var(--light); box-shadow: 0 0 0 .2rem var(--light-soft); }
  .route--weg .station__text { display: none; }
  .route--weg .station__name { font-size: inherit; color: var(--ink); }
  .route--weg .station:not([data-state="here"]) .station__name {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .route--weg .station:not([data-state="here"]) { gap: 0; }
}

/* The next step. Named concretely — "Weiter" is not a next step.
   This is where the light is spent, and almost nowhere else.
   Zwei Zeilen seit 07.09.: der Knopf sagt, was er tut, die Zeile darunter,
   was danach kommt („Als Nächstes: …") — nebeneinander passte das auf kein
   Telefon. */
.next {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  min-block-size: 44px; padding: .7rem 1.1rem;      /* 44px: audience floor */
  background: var(--light); color: var(--light-on);
  border: 0; border-radius: var(--radius);
  font: inherit; font-family: var(--font-display); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}
.next:hover { background: var(--light-hover); }
.next:active { transform: scale(.97); }
/* No opacity on the label: 85% over the fill measures 1.62:1. Weight and size
   carry the hierarchy instead, so the colour stays at its verified ratio. */
.next .next__label { font-size: var(--step--1); font-weight: 400; display: block; }

/* Knöpfe in Poppins SemiBold, wie die Typo-Seite des Markenbuchs (Button · Poppins SemiBold · 16).
   Die Farbseite verlangt daneben „bold, 18 px+" — nur weil Weiß auf Basis-Pink 4,08:1 misst; auf
   Pink 60 % (--light) sind es 5,56:1 bei jeder Größe, also gilt die Typo-Seite (Erratum 4). */
/* What is coming, before they are asked for anything. */
.ahead { color: var(--ink-2); font-size: var(--step--1); }
.ahead b { color: var(--light-text); font-weight: 600; }

.found { background: var(--highlight); padding: .05rem .25rem; border-radius: 3px;
         color: #051f4e; }   /* highlighter: background only, text fixed Midnight */

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 9;
  background: var(--paper-raised); color: var(--ink);
  padding: .6rem 1rem; border: 1px solid var(--rule-strong); border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* The view transition is motion too — it must obey the same switch. */
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ── Kursraum (Welle 2, 07.09.) — Schirme 6–10 ─────────────────────────────
   Farben: ausschließlich vorhandene Tokens, die Kontraste stehen oben. */

/* Terminzeilen. Eine Zeile ist eine Handlung (Formular), kein Kasten: Datum,
   Dauer, ein Ziel rechts — auf 390 px bricht das Ziel unter das Datum. Der
   eigene Termin ist der eine lichte Ort je Live-Class: --light-soft-Füllung,
   Rand --rule-strong (Text --ink darauf: 14.1:1 hell, 12.0:1 dunkel). Kein
   --light-Rand: mit dem .next oben wären das drei Lichtflächen (07.09.). */
.termin{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;
  padding:.75rem 0;margin:0;border-top:1px solid var(--rule)}
.termin+.termin,.foldbody .termin:first-child{border-top-color:var(--rule)}
.termin__wann{flex:1 1 13rem}
.termin .check{flex-basis:100%;margin:0}
.termin form{margin:0}
.termin--mein{background:var(--light-soft);border:2px solid var(--rule-strong);
  border-radius:var(--radius);padding:.9rem 1rem;margin:.5rem 0 .75rem}
.termin--mein .hint{flex-basis:100%;margin:0}
.termin--lit{border-top:0;padding-top:.25rem}

/* Lingoda, ruhiger: only dark components (der Name ist der Testanker). Light presentation is unchanged;
   dark staff navigation and check labels have a 44px floor (filter chips have it in both modes, views.CSS).
   Die Staff-Leiste ist in beiden Modi eine Karte (--paper-raised); dunkel braucht nur ihr Hover eine
   eigene Fläche, weil es sonst in der Kartenfarbe verschwindet. --light is an action fill,
   --light-text is readable link ink; der Knopf trägt sich ohne Ring (Pink 40 % ≥ 5,2:1 auf jeder Fläche).
   Both selectors also cover forms, tables and the sandboxed player shell. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .staffnav a { min-height:44px;display:flex;align-items:center; }
  :root:not([data-theme="light"]) .check { min-height:44px; }
  :root:not([data-theme="light"]) a.hk-kachel:hover, :root:not([data-theme="light"]) .pille__raus { box-shadow:var(--shadow-raised); }
  :root:not([data-theme="light"]) .hk-seite { background:var(--paper-sidebar); }
  :root:not([data-theme="light"]) .staffnav a:not([aria-current]):hover { background:var(--paper-top); }
  :root:not([data-theme="light"]) .hk-tzeile, :root:not([data-theme="light"]) .hk-zitat, :root:not([data-theme="light"]) tbody tr:nth-child(even) { background:var(--paper-row); }
  :root:not([data-theme="light"]) .hk-lesen { background:var(--paper-raised);color:var(--ink);box-shadow:none; }
  :root:not([data-theme="light"]) .hk-lesen h2 { color:var(--ink); }
  :root:not([data-theme="light"]) .hk-lesen .hk-ober { color:var(--ink-2); }
  :root:not([data-theme="light"]) .hk-lesen a.btn, :root:not([data-theme="light"]) .hk-lesen a.next { background:var(--light);color:var(--light-on); }
  :root:not([data-theme="light"]) .btn:not(.secondary) { background:var(--light);color:var(--light-on); }
    :root:not([data-theme="light"]) .btn:not(.secondary):hover, :root:not([data-theme="light"]) .hk-lesen a.next:hover { background:var(--light-hover);filter:none; }
  :root:not([data-theme="light"]) .btn.secondary { color:var(--light-text); }
  :root:not([data-theme="light"]) form[action="/staff/content/reharden"] .btn, :root:not([data-theme="light"]) form[action="/staff/content/reharden"] .btn:hover { background:var(--paper-top);color:var(--ink);box-shadow:inset 0 0 0 1px var(--rule-strong); }
  :root:not([data-theme="light"]) .hk-stempel { rotate:0deg;background:var(--pk-positive-bg);color:var(--positive);border-color:var(--rule-strong); }
  :root:not([data-theme="light"]) .hk-kachel.dran { border-color:var(--light); }
  :root:not([data-theme="light"]) .hk-kachel.bald, :root:not([data-theme="light"]) .hk-kachel.bald .bild svg, :root:not([data-theme="light"]) .hk-tzeile.erledigt { opacity:1; }
  :root:not([data-theme="light"]) .hk-kachel .bild { color:var(--ink-2); }
  :root:not([data-theme="light"]) .hk-kachel .bild svg, :root:not([data-theme="light"]) .hk-kachel .bild svg [stroke] { stroke:currentColor; }
  :root:not([data-theme="light"]) .hk-tzeile.naht, :root:not([data-theme="light"]) .hk-tzeile.jetzt { border-color:var(--rule-strong); }
  :root:not([data-theme="light"]) .hk-tzeile.versaeumt { border-left-color:var(--negative); }
    :root:not([data-theme="light"]) .route--weg .station[data-state="here"] .station__dot { background:var(--path-here); }
  :root:not([data-theme="light"]) .pille__raus:focus-visible, :root:not([data-theme="light"]) .pille__tun:focus-visible { outline-color:var(--light-text); }
}
:root[data-theme="dark"] .staffnav a { min-height:44px;display:flex;align-items:center; }
:root[data-theme="dark"] .check { min-height:44px; }
:root[data-theme="dark"] a.hk-kachel:hover, :root[data-theme="dark"] .pille__raus { box-shadow:var(--shadow-raised); }
:root[data-theme="dark"] .hk-seite { background:var(--paper-sidebar); }
:root[data-theme="dark"] .staffnav a:not([aria-current]):hover { background:var(--paper-top); }
:root[data-theme="dark"] .hk-tzeile, :root[data-theme="dark"] .hk-zitat, :root[data-theme="dark"] tbody tr:nth-child(even) { background:var(--paper-row); }
:root[data-theme="dark"] .hk-lesen { background:var(--paper-raised);color:var(--ink);box-shadow:none; }
:root[data-theme="dark"] .hk-lesen h2 { color:var(--ink); }
:root[data-theme="dark"] .hk-lesen .hk-ober { color:var(--ink-2); }
:root[data-theme="dark"] .hk-lesen a.btn, :root[data-theme="dark"] .hk-lesen a.next { background:var(--light);color:var(--light-on); }
:root[data-theme="dark"] .btn:not(.secondary) { background:var(--light);color:var(--light-on); }
:root[data-theme="dark"] .btn:not(.secondary):hover, :root[data-theme="dark"] .hk-lesen a.next:hover { background:var(--light-hover);filter:none; }
:root[data-theme="dark"] .btn.secondary { color:var(--light-text); }
:root[data-theme="dark"] form[action="/staff/content/reharden"] .btn, :root[data-theme="dark"] form[action="/staff/content/reharden"] .btn:hover { background:var(--paper-top);color:var(--ink);box-shadow:inset 0 0 0 1px var(--rule-strong); }
:root[data-theme="dark"] .hk-stempel { rotate:0deg;background:var(--pk-positive-bg);color:var(--positive);border-color:var(--rule-strong); }
:root[data-theme="dark"] .hk-kachel.dran { border-color:var(--light); }
:root[data-theme="dark"] .hk-kachel.bald, :root[data-theme="dark"] .hk-kachel.bald .bild svg, :root[data-theme="dark"] .hk-tzeile.erledigt { opacity:1; }
:root[data-theme="dark"] .hk-kachel .bild { color:var(--ink-2); }
:root[data-theme="dark"] .hk-kachel .bild svg, :root[data-theme="dark"] .hk-kachel .bild svg [stroke] { stroke:currentColor; }
:root[data-theme="dark"] .hk-tzeile.naht, :root[data-theme="dark"] .hk-tzeile.jetzt { border-color:var(--rule-strong); }
:root[data-theme="dark"] .hk-tzeile.versaeumt { border-left-color:var(--negative); }
:root[data-theme="dark"] .route--weg .station[data-state="here"] .station__dot { background:var(--path-here); }
:root[data-theme="dark"] .pille__raus:focus-visible, :root[data-theme="dark"] .pille__tun:focus-visible { outline-color:var(--light-text); }
