@import url("fonts.css");

/* =========================================================================
   examenskorrektur.de — Public-Tier (Brand)
   Design-System „frontend-corpus-design": EINE Sprache.
   Warmes Elfenbein-Papier, Tinte, ein einziger warmer Sienna-Akzent.
   Fraunces als Display (Wortmarke, H1/H2, Werk-Titel). Keine Kästen —
   das Werkverzeichnis trägt die Klausuren als gesetzten Katalog.
   Rot nur für echte Fehlerzustände.
   ========================================================================= */

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

:root {
  /* --- Papier & Tinte: warmes Elfenbein --- */
  --papier:#f4ecdb; --papier-tief:#eee4cf; --papier-hell:#f8f1e2; --karte:#fbf6ea;
  --tinte:#26201a;        /* Fließtext/Überschriften UND Bühnen-Fläche (13.7:1) */
  --tinte-blass:#5f5340;  /* Sekundärtext und alle 11px-Mono-Marker (6.39:1) */
  --tinte-leise:#6f6450;  /* Tertiärtext: Fußnoten, Quellen, Meta (4.94:1) */
  --tinte-zart:#8a7c64;   /* nur dekorativ: Status-Punkt, Disabled (3.47:1) */
  --linie:#d8c9ab; --linie-zart:#e6dabf;
  --linie-stark:var(--tinte); /* 2px-Kopf-Linie (Tabellen, betonte Gliederung) */

  /* --- Sienna: die Hand, die handelt — einzige Klickfarbe --- */
  --terra:#a8552c;        /* Füllung, Lineal, Fokus; als Text nur groß (4.47:1) */
  --terra-tief:#8c4422;   /* Textlinks, Button-Hover (6.03:1) */
  --terra-blass:#efe0d2;  /* Auswahl-/Hoverfläche */
  --ziffer:#dccba8;       /* getonte Laufziffer; auf der Bühne der Akzent (10.09:1) */

  /* --- Tanne: die ruhende Lern-Tinte (nie klickbar, nie Badge) --- */
  --tanne:#56613d;        /* Meter-Füllung, Kapitelmarker, große Lern-Kennzahlen */
  --tanne-tief:#3c4a33;   /* Lern-Kleintext, Modul-Meta (8.05:1) */
  --tanne-blass:#e7e9d6;  /* Fläche: gelernte Karte, erledigte Zeile, aktives Kapitel */

  /* --- Status Erfolg/Warnung: nur Text, Outline-Badge, 3px-Lineal — nie Fläche --- */
  --gruen:#4d7a3a; --gruen-tief:#3a5c2e; --gruen-blass:#e7efdc;
  --bernstein:#9a6712; --bernstein-tief:#6e4a0c;

  /* --- Rot: allein das Urteil des Korrektors (Fehler, Schweregrade) --- */
  --rot:#b8301f; --rot-tief:#8f2415;

  /* --- Bühne (Stufe 4, invertiert): nur Footer + eine Ergebnis-Bühne --- */
  --buehne:var(--tinte);
  --auf-buehne:var(--papier);
  --auf-buehne-leise:var(--ziffer);
  --auf-terra:#ffffff;
  --auf-flaeche:var(--tinte);

  /* Flächen */
  --feld-bg:#fffdf6;
  --fokus-bg:#fffefb;
  --schatten:0 1px 2px rgba(38,32,26,.06);

  /* Schriften */
  --schrift-display:"Fraunces", Georgia, serif;
  --schrift-sans:"IBM Plex Sans", -apple-system, system-ui, sans-serif;
  --schrift-mono:"IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --breite-max:1080px;
  --radius:12px;
  --radius-knopf:8px;

  /* --- Kompatibilität: alte deutsche Variablen -> neue Tokens --- */
  --farbe-text:var(--tinte);
  --farbe-text-leise:var(--tinte-blass);
  --farbe-hintergrund:var(--papier);
  --farbe-akzent:var(--terra);
  --farbe-akzent-hell:var(--terra-tief);
  --farbe-akzent-text:#ffffff;
  --farbe-rahmen:var(--linie);
  --farbe-flaeche-leise:var(--papier-tief);
  --schrift-basis:var(--schrift-sans);
  --schrift-serif:var(--schrift-display);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  font-variant-numeric: tabular-nums lining-nums;
  background:
    linear-gradient(180deg, var(--papier-hell), var(--papier) 46vh),
    var(--papier);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; position: relative; z-index: 1; }

/* Feines, statisches Papierkorn — Wärme ohne Farbe */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

p, li { text-wrap: pretty; }

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

/* --- Display (Fraunces): Wortmarke, H1/H2, Werk-Titel --- */
h1, h2 {
  font-family: var(--schrift-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.018em;
  color: var(--tinte);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.2vw, 4.4rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 2.5rem 0 1rem; }
h3 {
  font-family: var(--schrift-sans);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--tinte);
  margin: 0 0 .5rem;
}

/* Titel-M — H1 der App-, Konto-, Formular- und Rechtsseiten: das Marketing-
   Display-Clamp (bis 4.4rem) erschlägt Werkzeug- und Dokumentseiten. */
.titel-m,
.konto-wrap h1, .portal-wrap h1, .kk-wrap h1, .lern-wrap h1, .ex-wrap h1,
.bestell-section h1, .rechtstext h1, .danke h1, .sachverhalt-seite h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

/* Abschnitts-Marker (Mono-Eyebrow) — die EINE Eyebrow-Definition für Sektionen */
.abschnitt-marker {
  font-family: var(--schrift-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tinte-blass);
  margin: 0 0 .4rem;
}
.abschnitt-marker + h1,
.abschnitt-marker + h2 { margin-top: 0; }

/* Zahlen-Bühne — Note und Kern-KPI: die typografisch größte Stelle der App */
.zahlen-buehne {
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
}

.container {
  max-width: var(--breite-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
.site-header {
  border-bottom: 1px solid var(--linie-zart);
  background: color-mix(in srgb, var(--papier) 85%, transparent);
  backdrop-filter: saturate(1.08) blur(7px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  font-family: var(--schrift-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--tinte);
  text-decoration: none;
}
.logo::after { content: "."; color: var(--terra); }
.site-header nav ul {
  list-style: none;
  display: flex;
  /* flex-wrap: ohne dies bricht die Navigationsleiste auf schmalen Viewports
     (Mobil) nicht um, sondern erzwingt eine breitere Seite als das Fenster →
     horizontaler Überlauf auf allen Seiten. Umbruch hält die Links im Viewport. */
  flex-wrap: wrap;
  gap: .55rem 1.85rem;
  margin: 0;
  padding: 0;
}
.site-header nav a {
  position: relative;
  color: var(--tinte-blass);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -5px;
  height: 1.5px;
  background: var(--terra);
  transition: right .25s cubic-bezier(.2,.7,.3,1);
}
.site-header nav a:hover,
.site-header nav a.active { color: var(--terra-tief); }
.site-header nav a:hover::after,
.site-header nav a.active::after { right: 0; }

/* --- Hero: viel Luft, große Fraunces --- */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.75rem, 5vw, 4rem);
  border-bottom: 1px solid var(--linie-zart);
}
/* hyphens/overflow-wrap: das lange Kompositum „Examensklausuren" passt bei der
   großen Hero-Schrift (clamp bis 4.4rem) auf sehr schmalen Viewports nicht in
   eine Zeile und lief sonst über die Seitenbreite hinaus. */
.hero h1 { margin-bottom: 1.1rem; max-width: 16ch; overflow-wrap: break-word; hyphens: auto; }
.lead {
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  line-height: 1.5;
  color: var(--tinte-blass);
  max-width: 44ch;
}

/* --- Filterbalken: ruhige Unterstrich-Schalter, ein Akzent --- */
.filter-bar {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.filter-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1.1rem;
}
.filter-zeile[hidden] { display: none; }
.filter-label {
  font-family: var(--schrift-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--tinte-blass);
  text-transform: uppercase;
  letter-spacing: .14em;
  min-width: 6.5rem;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.1rem;
}
.filter-pill {
  font-family: var(--schrift-sans);
  font-size: .94rem;
  font-weight: 500;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .12rem .05rem;
  color: var(--tinte-blass);
  cursor: pointer;
  transition: color .16s, border-color .16s;
}
.filter-pill:hover { color: var(--terra-tief); }
.filter-pill.is-aktiv {
  color: var(--tinte);
  border-bottom-color: var(--terra);
}
@media (max-width: 540px) {
  .filter-label { min-width: 0; flex-basis: 100%; }
}

/* --- Sektionen --- */
.ablauf-section,
.mein-konzept,
.rechtstext,
.danke {
  padding: clamp(2.75rem, 6vw, 4rem) 1.5rem;
}
.klausuren-section {
  padding: clamp(2.5rem, 5vw, 3.75rem) 1.5rem clamp(3.5rem, 8vw, 6rem);
}
/* Sektionstitel: Mono-Marker (Eyebrow) darüber, Fraunces-H2 als Titel —
   EIN Muster für alle Sektionen; das Werkverzeichnis trägt denselben Titelgrad
   wie Tarife und Vergleich (keine invertierte Gewichtung mehr). */
.klausuren-section > h2 { margin-top: 0; }
.section-intro {
  color: var(--tinte-blass);
  margin: 0 0 1.75rem;
  max-width: 56ch;
}

/* =======================================================================
   Werkverzeichnis — die Klausuren als gesetzter Katalog (keine Kästen)
   ======================================================================= */
.klausuren-liste {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--linie);
}

.werk-eintrag {
  position: relative;
  display: grid;
  grid-template-columns: clamp(3rem, 7vw, 6rem) 1fr;
  column-gap: clamp(1rem, 3vw, 2.75rem);
  align-items: start;
  padding: clamp(1.7rem, 3vw, 2.5rem) .25rem clamp(1.7rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--linie);
  transition: padding-left .32s cubic-bezier(.2,.7,.3,1), background-color .32s;
  animation: eintrag-rein .55s cubic-bezier(.2,.7,.3,1) backwards;
}
/* Sienna-Lineal, das beim Überfahren von oben einläuft */
.werk-eintrag::before {
  content: "";
  position: absolute;
  left: 0; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--terra);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .32s cubic-bezier(.2,.7,.3,1);
}
.werk-eintrag:hover {
  background: color-mix(in srgb, var(--terra) 4%, transparent);
  padding-left: clamp(1rem, 2vw, 1.5rem);
}
.werk-eintrag:hover::before { transform: scaleY(1); }

.werk-eintrag:nth-child(1) { animation-delay: .02s; }
.werk-eintrag:nth-child(2) { animation-delay: .07s; }
.werk-eintrag:nth-child(3) { animation-delay: .12s; }
.werk-eintrag:nth-child(4) { animation-delay: .17s; }
.werk-eintrag:nth-child(5) { animation-delay: .22s; }
.werk-eintrag:nth-child(n+6) { animation-delay: .26s; }

/* große, getonte Laufziffer */
.werk-ziffer {
  font-family: var(--schrift-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: .82;
  letter-spacing: -.02em;
  color: var(--ziffer);
  font-variant-numeric: tabular-nums lining-nums;
  padding-top: .12em;
  transition: color .3s;
  user-select: none;
}
.werk-eintrag:hover .werk-ziffer { color: var(--terra); }

.werk-meta {
  font-family: var(--schrift-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tinte-blass);
  margin-bottom: .7rem;
}
/* min-width:0 erlaubt der 1fr-Inhaltsspalte, unter ihre Min-Content-Breite zu
   schrumpfen — sonst zwingen lange Komposita-Titel (z. B.
   „Fortsetzungsfeststellungsklage") die Spalte breiter als der Viewport
   und es entsteht horizontaler Überlauf auf Mobil. */
.werk-inhalt { min-width: 0; }
.werk-titel {
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -.018em;
  color: var(--tinte);
  margin: 0 0 .6rem;
  text-wrap: balance;
  /* lange juristische Komposita weich umbrechen statt überlaufen lassen */
  overflow-wrap: break-word;
  hyphens: auto;
  transition: color .25s;
}
.werk-eintrag:hover .werk-titel { color: var(--terra-tief); }
.werk-beschreibung {
  color: var(--tinte-blass);
  margin: 0 0 1.15rem;
  max-width: 54ch;
}
.werk-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.75rem;
}
.werk-sv {
  font-weight: 500;
  color: var(--tinte-blass);
  text-decoration: none;
}
.werk-sv::after { content: " \2197"; font-size: .85em; }
.werk-sv:hover { color: var(--terra-tief); }
.werk-buchen {
  font-weight: 600;
  color: var(--terra-tief);
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--terra) 32%, transparent);
  padding-bottom: 1px;
  transition: color .16s, border-color .16s;
}
.werk-buchen::after {
  content: " \2192";
  display: inline-block;
  transition: transform .18s ease-out;
}
.werk-buchen:hover { color: var(--terra); border-bottom-color: var(--terra); }
.werk-buchen:hover::after { transform: translateX(.25em); }
.werk-status {
  font-family: var(--schrift-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tinte-blass);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.werk-status::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tinte-zart);
}
.werk-quelle {
  margin: 1rem 0 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--tinte-leise);
  max-width: 60ch;
}
.werk-quelle em { font-style: italic; }

/* --- Buttons (Formulare & übrige Seiten) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .72rem 1.2rem;
  border-radius: var(--radius-knopf);
  text-decoration: none;
  font-family: var(--schrift-sans);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  border: 1.5px solid transparent;
  text-align: center;
  cursor: pointer;
  transition: background-color .16s, border-color .16s, color .16s, transform .12s;
}
.btn:active { transform: translateY(1px); }
/* Disabled — EINMAL definiert (ersetzt die Duplikate in bestellen.css/abo.html);
   der :hover-Guard schlägt .btn-primary/-secondary:hover per Spezifität. */
.btn:disabled,
.btn[aria-disabled="true"],
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  background: var(--linie);
  border-color: var(--linie);
  color: var(--tinte-blass);
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: var(--terra);
  color: var(--auf-terra);
  border-color: var(--terra);
}
.btn-primary:hover { background: var(--terra-tief); border-color: var(--terra-tief); color: var(--auf-terra); }
.btn-secondary {
  background: transparent;
  color: var(--terra-tief);
  border-color: color-mix(in srgb, var(--terra) 50%, var(--linie));
}
.btn-secondary:hover { background: var(--terra-blass); color: var(--terra-tief); border-color: var(--terra-tief); }
.btn-extern::after {
  content: " \2197";
  display: inline-block;
  font-size: .85em;
  transition: transform .15s ease-out;
}
.btn-extern:hover::after { transform: translate(.15em, -.15em); }
.btn-attribution {
  font-size: .8rem;
  line-height: 1.5;
  text-align: left;
  justify-content: flex-start;
  padding: .75rem 1rem;
  font-weight: 400;
}

/* Sachverhalt-Wrapper-Seite (PDF-Anzeige) */
.sachverhalt-seite { padding: 2.5rem 1.5rem 3rem; }
.sv-weiter { margin: 1.5rem 0 0; }
.sv-attribution { font-size: .85rem; color: var(--tinte-blass); margin: 0 0 1.5rem; }
.sv-embed {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
}
.sv-embed object { width: 100%; height: 100%; display: block; }

/* --- Ablauf-Liste --- */
.ablauf { padding-left: 1.25rem; max-width: 700px; }
.ablauf li { margin-bottom: .75rem; }

/* --- Mein Konzept & Rechtstexte --- */
.mein-konzept,
.rechtstext,
.danke { max-width: 720px; margin: 0 auto; }
.qualifikation { padding-left: 1.25rem; }
.qualifikation li { margin-bottom: .35rem; }

.mein-konzept { max-width: 720px; padding: 5rem 1.5rem 4rem; }
/* Portrait: hairline-gerahmt ins Papier eingebettet, kein aufgeklebtes Foto */
.konzept-portrait {
  float: right;
  width: 240px;
  height: 300px;
  border: 1px solid var(--linie);
  object-fit: cover;
  margin: .35rem 0 1rem 2rem;
}
/* Credential-Block (10,23 Punkte): definierter Rhythmus statt Kind-Defaults */
.konzept-credential { margin: 0 0 2.25rem; }
.konzept-credential .abschnitt-marker { margin: .35rem 0 0; }
.konzept-clear { clear: both; }
.mein-konzept h1 { margin: 0 0 2rem; }
.mein-konzept p { line-height: 1.7; margin: 0 0 1.5rem; }
.mein-konzept p:last-child { margin-bottom: 0; }
.mein-konzept a { text-decoration-thickness: 1px; }

/* Platzhalter für noch von Conradin zu schreibenden Text — sichtbar markiert */
.text-todo {
  color: var(--tinte-leise);
  font-style: italic;
  border-left: 3px solid var(--terra);
  padding: .5rem 0 .5rem 1rem;
}

/* --- Schluss-Handlung: jede Marketing-Seite endet auf einer Handlung --- */
.schluss-cta {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem clamp(3rem, 7vw, 5rem);
}
.schluss-cta .container-innen {
  border-top: 1px solid var(--linie);
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}
.schluss-cta h2 { margin-top: 0; }
.schluss-cta p { color: var(--tinte-blass); max-width: 54ch; }

@media (max-width: 720px) {
  .konzept-portrait {
    float: none;
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 0 2rem;
  }
  .mein-konzept h1 { margin-bottom: 1.5rem; }
}

/* Rechtstexte enthalten lange, nicht umbrechbare Token (volle URLs, Formular-
   Unterstrich-Felder im Muster-Widerruf) → ohne Umbruch horizontaler Überlauf
   auf Mobil. anywhere bricht nur, wenn eine Zeile sonst überliefe; Fließtext
   bleibt unberührt. */
.rechtstext { overflow-wrap: anywhere; }
/* lange Komposita in Überschriften („Verbraucherstreitbeilegung…“) weich brechen */
.rechtstext h1, .rechtstext h2 { overflow-wrap: break-word; hyphens: auto; }
.rechtstext h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.rechtstext ul { padding-left: 1.25rem; }
.rechtstext li { margin-bottom: .25rem; }

/* Code/Tasten im Fließtext (z. B. Datenschutz): Plex Mono statt Browser-Courier */
code, kbd { font-family: var(--schrift-mono); font-size: .92em; }

/* Hairline-Inhaltsverzeichnis der Rechtstexte (ab >6 Abschnitten) */
.inhalt-verzeichnis {
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
  border-top: 1px solid var(--linie);
}
.inhalt-verzeichnis li { border-bottom: 1px solid var(--linie-zart); }
.inhalt-verzeichnis a {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding: .55rem .1rem;
  color: var(--tinte-blass);
  text-decoration: none;
}
.inhalt-verzeichnis a:hover { color: var(--terra-tief); }
.inhalt-verzeichnis .iv-nr {
  font-family: var(--schrift-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--tinte-blass);
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

/* Mono-Abschnittszähler vor Rechtstext-H2 — folgt der EINEN Eyebrow-Definition */
.abschnitt-nr {
  display: block;
  font-family: var(--schrift-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--tinte-blass);
  margin-bottom: .2rem;
  font-variant-numeric: tabular-nums;
}

/* Gesetzter Adress-/Kontaktblock (Impressum, Datenschutz, Widerruf) */
.adress-block { margin: 0 0 1.5rem; }
.adress-block dt {
  font-family: var(--schrift-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tinte-blass);
  margin-top: .7rem;
}
.adress-block dt:first-child { margin-top: 0; }
.adress-block dd { margin: 0; color: var(--tinte); }

/* --- Footer = die Bühne: dunkelste Stufe des Systems auf jeder Seite.
   Zusammen mit der Noten-Bühne der einzige invertierte Ort — Wertigkeit
   durch Dunkelheit und Materialität, nicht durch Buntheit. --- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  padding: 2.75rem 0 3rem;
  font-size: .9rem;
  background: var(--buehne);
  color: var(--auf-buehne);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
/* flex-wrap: damit die Rechtslinks auf sehr schmalen Viewports (≈320px) umbrechen
   statt die Seite zu verbreitern. */
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer nav a { color: var(--auf-buehne); text-decoration: none; }
.site-footer nav a:hover { color: var(--auf-buehne-leise); }
.site-footer :focus-visible { outline-color: var(--auf-buehne-leise); }
.copyright { margin: 0; color: var(--auf-buehne-leise); }

/* --- Leerzustand (Fallback bei leerer Liste): ruhiger Text, kein Kasten --- */
.hinweis {
  padding: 1.5rem 0;
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  color: var(--tinte-blass);
}

/* --- Eintritts-Animation --- */
@keyframes eintrag-rein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* --- Zugänglichkeit --- */
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- Vergleichstabelle: Hairline-Tabelle im Katalog-Ton — keine Vollrahmen,
   thead als Mono-Marker, eigene Spalte ruhig getönt. --- */
.vergleich-section { padding-top: 1rem; }
.vergleich-wrap { overflow-x: auto; }
.vergleich-tabelle {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .95rem;
}
.vergleich-tabelle th,
.vergleich-tabelle td {
  border: 0;
  border-bottom: 1px solid var(--linie);
  padding: .7rem .85rem;
  text-align: left;
  vertical-align: top;
  hyphens: none;
}
.vergleich-tabelle thead th,
.vergleich-tabelle thead td {
  font-family: var(--schrift-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tinte-blass);
  border-bottom: 2px solid var(--linie-stark);
  vertical-align: bottom;
}
.vergleich-tabelle tbody th {
  font-weight: 600;
  color: var(--tinte-blass);
}
/* Eigene Spalte hervorheben — getönte Fläche statt Farbe */
.vergleich-tabelle th:nth-child(2),
.vergleich-tabelle td:nth-child(2) {
  background: var(--papier-tief);
  font-weight: 600;
}
.vergleich-tabelle thead th:nth-child(2) { color: var(--tinte); }

/* =======================================================================
   Lernplattform — Tarife, Plattform-Shell, Modul-Verzeichnis, Gating
   (B4). Eine Sprache: warmes Papier, Hairlines statt Kästen, EIN Sienna-
   Akzent für die gewünschte Handlung. Kein Karten-Raster.
   ======================================================================= */

/* --- Tarif-Gegenüberstellung (Marketing: index + abo) ----------------
   Zwei Tarife nebeneinander, getrennt durch eine Haarlinie — keine
   gefüllten, schattierten Kacheln. Premium trägt den Sienna-Akzent. */
.tarif-section { padding-top: 1rem; }
.tarife {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 5vw, 4rem);
  border-top: 1px solid var(--linie);
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}
.tarif { display: flex; flex-direction: column; }
/* Trennung der beiden Tarife: vertikale Haarlinie (Desktop) */
@media (min-width: 681px) {
  .tarif + .tarif {
    border-left: 1px solid var(--linie);
    padding-left: clamp(1.75rem, 5vw, 4rem);
  }
}
@media (max-width: 680px) {
  .tarife { grid-template-columns: 1fr; gap: 0; }
  .tarif + .tarif {
    border-top: 1px solid var(--linie);
    margin-top: 2.25rem;
    padding-top: 2.25rem;
  }
}
.tarif-meta {
  font-family: var(--schrift-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tinte-blass);
  margin-bottom: .55rem;
  display: flex;
  align-items: baseline;
  gap: .7rem;
}
.tarif-name {
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -.018em;
  color: var(--tinte);
  margin: 0 0 .3rem;
}
.tarif-premium .tarif-name { color: var(--terra-tief); }
.tarif-preis {
  font-family: var(--schrift-sans);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--tinte);
  margin: .25rem 0 .15rem;
}
.tarif-preis small {
  font-weight: 500;
  font-size: .95rem;
  color: var(--tinte-blass);
}
.tarif-untertitel { color: var(--tinte-blass); margin: 0 0 1.1rem; max-width: 38ch; }
.tarif-features { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.tarif-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .55rem;
  color: var(--tinte);
}
.tarif-features li::before {
  content: "\2713";          /* schlichter Haken, kein Emoji */
  position: absolute;
  left: 0;
  color: var(--terra);
  font-weight: 700;
}
/* Nicht enthaltene Features tragen Kaufinformation → lesbare Tertiärstufe;
   nur der Gedankenstrich bleibt dekorativ zart. */
.tarif-features li.aus { color: var(--tinte-leise); }
.tarif-features li.aus::before { content: "\2013"; color: var(--tinte-zart); }
.tarif-cta { align-self: flex-start; }
.tarif-aktuell {
  font-family: var(--schrift-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gruen);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .12rem .55rem;
}

/* --- Tarif-Marke (aktueller Tarif eines Nutzers) --------------------- */
.tier-marke {
  display: inline-block;
  font-family: var(--schrift-mono);
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .15rem .6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  vertical-align: middle;
}
.tier-marke.premium { color: var(--terra-tief); }
.tier-marke.basic { color: var(--bernstein); }
.tier-marke.free, .tier-marke.anonymous { color: var(--tinte-blass); }

/* --- Plattform-Shell (eingeloggter Hub) ------------------------------ */
.plattform-zurueck { font-size: .9rem; margin: 0 0 1.25rem; }
.plattform-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-bottom: .5rem;
}
.plattform-kopf h1 { margin: 0; }
.plattform-intro { color: var(--tinte-blass); margin: 0 0 1rem; max-width: 60ch; }

/* --- Modul-Verzeichnis (Katalog der Lern-Module, keine Kacheln) ------ */
.modul-liste {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--linie);
}
.modul-eintrag {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .6rem 1.75rem;
  padding: 1.6rem .25rem 1.6rem 0;
  border-bottom: 1px solid var(--linie);
  transition: padding-left .3s cubic-bezier(.2,.7,.3,1), background-color .3s;
}
.modul-eintrag::before {
  content: "";
  position: absolute;
  left: 0; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--terra);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.modul-eintrag.offen:hover {
  background: color-mix(in srgb, var(--terra) 4%, transparent);
  padding-left: clamp(.75rem, 2vw, 1.25rem);
}
.modul-eintrag.offen:hover::before { transform: scaleY(1); }
.modul-meta {
  font-family: var(--schrift-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tinte-blass);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.modul-titel {
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--tinte);
  margin: 0 0 .3rem;
  transition: color .25s;
}
.modul-eintrag.offen:hover .modul-titel { color: var(--terra-tief); }
.modul-text { color: var(--tinte-blass); margin: 0; max-width: 54ch; font-size: .96rem; }
.modul-aktion { grid-column: 2; justify-self: end; white-space: nowrap; }
.modul-go {
  font-weight: 600;
  color: var(--terra-tief);
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--terra) 32%, transparent);
  padding-bottom: 1px;
  transition: color .16s, border-color .16s;
}
.modul-go::after { content: " \2192"; display: inline-block; transition: transform .18s ease-out; }
.modul-go:hover { color: var(--terra); border-bottom-color: var(--terra); }
.modul-go:hover::after { transform: translateX(.25em); }
/* gesperrte Module: gedämpft, aber nie tot — der Weg führt zum Upgrade */
.modul-eintrag.gesperrt .modul-titel { color: var(--tinte-zart); }
.modul-eintrag.gesperrt .modul-text { color: var(--tinte-leise); }
.modul-go.gesperrt-go {
  color: var(--tinte-blass);
  border-bottom-color: color-mix(in srgb, var(--tinte-zart) 45%, transparent);
}
.modul-go.gesperrt-go:hover { color: var(--terra-tief); border-bottom-color: var(--terra); }
.modul-sperre {
  font-family: var(--schrift-mono);
  font-size: .62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--bernstein);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .08rem .5rem;
}
@media (max-width: 560px) {
  .modul-eintrag { grid-template-columns: 1fr; }
  .modul-aktion { grid-column: 1; justify-self: start; }
}

/* --- Gate (Anmelde-/Upgrade-Hinweis): hairline-gegliedert, kein Kasten;
   das 3px-Terra-Lineal markiert die gewünschte Handlung. --- */
.gate-box {
  border: 0;
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  border-left: 3px solid var(--terra);
  background: transparent;
  box-shadow: none;
  padding: 1.5rem 0 1.5rem 1.5rem;
  margin: 1.5rem 0;
  max-width: 60ch;
}
.gate-box h2 { font-family: var(--schrift-display); font-size: 1.4rem; margin: 0 0 .5rem; }
.gate-box p { margin: 0 0 1.1rem; color: var(--tinte-blass); }
.gate-box p:last-child { margin-bottom: 0; }
/* Button-Paare: gap statt margin-left, damit auch der Umbruch Abstand hält */
.gate-box .btn { margin: 0 .6rem .6rem 0; }
.gate-box .btn:last-child { margin-right: 0; }

/* Aktions-Zeile: mehrere Knöpfe/Links nebeneinander, umbruchsicher */
.aktions-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .75rem;
}

/* --- Grundfälle: Liste + pflichtige CC-BY-SA-Attribution -------------
   Hairline-gegliederter Werkblock statt Schatten-Karte. */
.gf-werkblock {
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
}
.gf-werkblock h3 { margin: 0 0 .35rem; }
.gf-filter { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 1.25rem 0; }
.grundfall-attribution {
  font-size: .8rem;
  line-height: 1.55;
  color: var(--tinte-leise);
  margin: .75rem 0 0;
  max-width: 70ch;
}
.grundfall-attribution a { color: var(--tinte-blass); text-decoration-thickness: 1px; }
.grundfall-attribution a:hover { color: var(--terra-tief); }
.sv-vorschau {
  border-top: 1px solid var(--linie);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}
.sv-vorschau .sv-titel { font-family: var(--schrift-display); font-size: 1.5rem; margin: 0 0 .75rem; }
.sv-text {
  white-space: pre-wrap;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--tinte);
  max-width: 70ch;
}
