/* ==========================================================================
   meinHERMES — Stylesheet
   Mobile-first. Ein Farbschema (Light) für die ganze Anwendung — das
   Modernist-System aus design/: flach, architektonisch, fast einfarbig Rot
   auf warmem hellem Grund, kein Rundungsradius, Struktur aus Linien statt
   aus Kästen, Archivo (Google Fonts) für alles.
   Keine Laufzeitbibliotheken.
   ========================================================================== */

/* --- Design-Tokens -------------------------------------------------------- */
:root {
  color-scheme: light;

  --schrift: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schrift-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Grund und Flächen: die Seite hat genau eine Grundfarbe; «Flächen» heben
     sich nur durch Linien ab, nicht durch Farbe. Weiss ist der Bühne der
     Originalabbildung vorbehalten. */
  --bg: #f3f2f2;
  --bg-gedaempft: #eae9e9;
  --flaeche: #f3f2f2;
  --flaeche-2: #eae9e9;
  --weiss: #ffffff;
  --text: #201e1d;
  --text-weich: #444141;
  --text-leise: #605d5d;
  --text-leise-hell: #9b9797;
  --rand: #d7d3d3;
  --rand-fein: #eae7e7;
  --rand-stark: #bab6b6;
  --linie-stark: #cfcbcb;          /* Strukturlinien: dünn und hellgrau statt dick und schwarz */

  --akzent: #ec3013;
  --akzent-hover: #dd2b0f;
  --akzent-auf: #ffffff;
  --akzent-text: #ae1800;
  --akzent-schwach: #fff2ef;
  --akzent-schwach-2: #ffe0d9;
  --auswahl: #ffc4b8;

  --gut: #1f6b3d;
  --gut-bg: #e6efe8;
  --schlecht: #ae1800;
  --schlecht-bg: #fff2ef;
  --warn: #7a4a10;

  --fokus: #ec3013;

  --radius: 0;
  --radius-s: 0;
  --schatten: none;
  --schatten-stark: 0 12px 32px rgba(45, 43, 43, .22);

  --maxbreite: 66rem;
  --tap: 44px;

  /* Kategorie-Farbcodierung (dezent, für Marken im Lexikon) */
  --kat-phase-bg: #e4e2e2;         --kat-phase-fg: #2d2b2b;
  --kat-szenario-bg: #e4e2e2;      --kat-szenario-fg: #2d2b2b;
  --kat-modul-bg: #e4e2e2;         --kat-modul-fg: #2d2b2b;
  --kat-aufgabe-bg: #e4e2e2;       --kat-aufgabe-fg: #2d2b2b;
  --kat-ergebnis-bg: #e4e2e2;      --kat-ergebnis-fg: #2d2b2b;
  --kat-rolle-bg: #e4e2e2;         --kat-rolle-fg: #2d2b2b;
  --kat-grundbegriff-bg: #e4e2e2;  --kat-grundbegriff-fg: #2d2b2b;

  /* Dieselben Werte unter den Namen, die css/ueberblick.css eingeführt hat. */
  --ub-grund: var(--bg);
  --ub-flaeche: var(--flaeche-2);
  --ub-tinte: var(--text);
  --ub-tinte-weich: var(--text-weich);
  --ub-leise: var(--text-leise);
  --ub-leise-hell: var(--text-leise-hell);
  --ub-linie: var(--rand);
  --ub-linie-fein: var(--rand-fein);
  --ub-rand: var(--rand-stark);
  --ub-akzent: var(--akzent);
  --ub-akzent-tief: var(--akzent-hover);
  --ub-akzent-text: var(--akzent-text);
  --ub-akzent-hauch: var(--akzent-schwach);
  --ub-akzent-hauch-2: var(--akzent-schwach-2);
  --ub-auswahl: var(--auswahl);
  --ub-schrift: var(--schrift);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 .5rem;
  font-weight: 800;
  letter-spacing: -.018em;
  overflow-wrap: break-word;
}
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 .75rem; overflow-wrap: break-word; }
ul, ol { margin: 0 0 .75rem; padding-left: 1.25rem; }

a { color: var(--akzent-text); text-decoration: none; }
a:hover { color: var(--akzent); }
::selection { background: var(--auswahl); }

button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--fokus);
  outline-offset: 2px;
  border-radius: 0;
}
main:focus { outline: none; }

/* Mikro-Beschriftung: das Gliederungsmittel des Systems — jeder Kicker,
   jede Abschnittsüberschrift zweiter Ordnung. */
.mikro {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.nur-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--akzent);
  color: var(--akzent-auf);
  padding: .75rem 1rem;
  font-weight: 700;
}
.skiplink:focus { left: 0; }

/* --- Kopfzeile ------------------------------------------------------------ */
/* Markenzelle links mit starker Linie, Hauptnavigation mittig, unten eine
   starke Linie über die ganze Breite. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--linie-stark);
}
.topbar__inner {
  display: flex;
  align-items: stretch;
  min-height: 46px;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text);
}
.marke:hover { color: var(--text); }
/* Markenzeichen: die Meilenstein-Raute der Methode — ein Quality Gate, kein
   Buchstabe. Aussen Akzent, innen ausgespart. */
.marke__logo {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: 0 0 auto;
  color: var(--akzent);
}
.marke__logo svg { display: block; }
.marke__text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* Beta-Pille neben der Marke: klein, rund, im Akzent — sagt, dass die
   Anwendung noch in Entwicklung ist. */
.marke__beta {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--akzent-schwach);
  border: 1px solid var(--akzent);
  color: var(--akzent-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* Rechts in der Kopfzeile — auch auf dem Telefon, wo die Hauptnavigation
   unten liegt: das GitHub-Zeichen und der offizielle Ko-fi-Becher als Bild. */
.github {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 0 10px 0 16px;
  flex: 0 0 auto;
  color: var(--text);
}
.github svg { display: block; }
.github:hover { background: var(--flaeche-2); color: var(--text); }
.kofi {
  display: flex;
  align-items: center;
  padding: 0 16px 0 10px;
  flex: 0 0 auto;
}
.kofi:hover { background: var(--flaeche-2); }
.kofi img { width: 24px; height: auto; display: block; }

/* Suche in der Kopfzeile: eine kleine Pille «Suchen» rechts neben der
   Marke, die beim Anklicken breit wird; die Treffer liegen darunter. */
.kopf-suche { display: flex; align-items: center; padding: 0 4px; }
.kopf-suche .gleiste-suche { width: 7.25rem; transition: width .2s ease; }
.kopf-suche .gleiste-suche:focus-within { width: 22rem; }
.kopf-suche .gleiste-suche__feld { height: 30px; min-height: 30px; font-size: 13px; padding-right: 10px; }
.kopf-suche .gleiste-suche__treffer { min-width: 20rem; }
@media (max-width: 699.98px) {
  .kopf-suche .gleiste-suche { width: 34px; }
  .kopf-suche .gleiste-suche__feld { padding-left: 32px; }
  .kopf-suche .gleiste-suche__feld::placeholder { color: transparent; }
  .kopf-suche .gleiste-suche:focus-within { width: min(22rem, 70vw); }
  .kopf-suche .gleiste-suche:focus-within .gleiste-suche__feld::placeholder { color: var(--text-leise-hell); }
}

.nav-top {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
}
.nav-top__liste {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-top__liste a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-leise);
}
.nav-top__liste a:hover { color: var(--text); background: var(--flaeche-2); }
.nav-top__liste a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 -4px 0 var(--akzent);
}

/* --- Bottom-Navigation (schmal) ------------------------------------------ */
.nav-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: var(--bg);
  border-top: 1px solid var(--linie-stark);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-bottom__liste {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-bottom__liste li { flex: 1 1 0; min-width: 0; }
.nav-bottom__liste a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--tap);
  padding: .35rem .15rem .4rem;
  text-decoration: none;
  color: var(--text-leise);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.nav-bottom__liste a[aria-current="page"] { color: var(--akzent); }
.nav-bottom__liste a[aria-current="page"] .nav-icon { background: var(--akzent-schwach); }
.nav-icon {
  display: grid;
  place-items: center;
  width: 30px; height: 22px;
  font-size: .95rem;
  line-height: 1;
}
.nav-label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* --- Layout --------------------------------------------------------------- */
.view {
  max-width: var(--maxbreite);
  margin: 0 auto;
  padding: 18px 16px 40px;
}
.ladehinweis { color: var(--text-leise); }

/* Seitenkopf: Titel und ein Vorspann — darunter beginnt der Inhalt ohne
   Kasten, nur die Abstände gliedern. */
.kopf { margin-bottom: 22px; }
.kopf h1 { font-size: 26px; letter-spacing: -.022em; margin: 0 0 8px; }
/* Kopf eines Teils unter einer Seite mit Leiste (Trainer): eine Stufe kleiner. */
.kopf--teil { margin-bottom: 18px; }
.kopf--teil h2 { font-size: 21px; letter-spacing: -.018em; margin: 0 0 6px; }
.kopf p {
  color: var(--text-weich);
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  max-width: 64ch;
  text-wrap: pretty;
}

.fusszeile {
  max-width: var(--maxbreite);
  margin: 0 auto;
  padding: 14px 16px 24px;
  color: var(--text-leise);
  font-size: 11.5px;
  border-top: 1px solid var(--rand);
}
.fusszeile p { margin: 0; }

/* --- Flächen -------------------------------------------------------------- */
/* Kein Kasten, keine Schatten: eine «Box» ist ein Abschnitt zwischen einer
   starken Linie oben und einer Haarlinie unten. */
.box {
  border-top: 1px solid var(--linie-stark);
  border-bottom: 1px solid var(--rand);
}

/* --- Buttons -------------------------------------------------------------- */
/* Schaltflächen sind Text: versal, klein, ohne Fläche. Gedrückt zeigt eine
   Unterstreichung in Akzentfarbe. Nur die Primäraktion ist gefüllt. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--text-leise);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}
.btn:hover { color: var(--text); }
.btn[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--akzent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.btn--primaer {
  min-height: 40px;
  padding: 0 18px;
  justify-content: center;
  background: var(--akzent);
  border: 2px solid var(--akzent);
  color: var(--akzent-auf);
}
.btn--primaer:hover { background: var(--akzent-hover); border-color: var(--akzent-hover); color: var(--akzent-auf); }
.btn--gut, .btn--schlecht {
  min-height: 40px;
  padding: 0 14px;
  justify-content: center;
  border: 1px solid currentColor;
}
.btn--gut { color: var(--gut); background: var(--gut-bg); }
.btn--schlecht { color: var(--schlecht); background: var(--schlecht-bg); }
.btn--gut:hover { color: var(--gut); border-color: var(--gut); background: var(--gut-bg); }
.btn--schlecht:hover { color: var(--schlecht); border-color: var(--schlecht); background: var(--schlecht-bg); }
.btn--breit { width: 100%; }
.btn--klein { min-height: 28px; }

.btn-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.btn-reihe > .btn { flex: 0 0 auto; }
.btn-reihe > .btn--primaer, .btn-reihe > .btn--gut, .btn-reihe > .btn--schlecht { flex: 1 1 8rem; }

/* --- Chips / Filter ------------------------------------------------------- */
/* Filter sind eine Zeile aus Textknöpfen, getrennt durch Haarstriche, die
   Zeile selbst durch eine Haarlinie abgeschlossen. */
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0 0 12px;
  padding: 0 0 6px;
  list-style: none;
  border-bottom: 1px solid var(--rand);
}
.chips > li { display: flex; align-items: center; }
.chips > li + li::before {
  content: '';
  width: 1px;
  height: 16px;
  margin: 0 4px;
  background: var(--rand);
}
/* Knapp gesetzt, damit die acht Kategorien samt Zähler in eine Zeile der
   Inhaltsbreite passen — sonst hinge «Grundbegriffe» allein darunter. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--text-leise);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] {
  color: var(--text);
  font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--akzent);
}
.chip__zahl { font-weight: 500; color: var(--text-leise-hell); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.chip svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* Auf schmalen Screens einzeilig scrollbar, damit der Lerninhalt oben bleibt. */
.chips--streifen {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: -16px;
  padding-inline: 16px;
}
.chips--streifen::-webkit-scrollbar { display: none; }
.chips--streifen > li { flex: 0 0 auto; }

/* --- Suchfeld ------------------------------------------------------------- */
.suche { position: relative; margin-bottom: 14px; }
.suche__feld {
  width: 100%;
  min-height: 40px;
  padding: 8px 40px 8px 12px;
  border: 1px solid var(--rand-stark);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.suche__feld::placeholder { color: var(--text-leise-hell); }
/* Der Browser bringt beim Suchfeld ein eigenes ✕ mit — wir haben unseres. */
.suche__feld::-webkit-search-cancel-button, .suche__feld::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.suche__feld:focus-visible { outline-offset: 0; }
.suche__loeschen {
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0;
  background: transparent;
  color: var(--text-leise);
  font-size: 16px;
  cursor: pointer;
}
.suche__loeschen:hover { color: var(--text); }

/* --- Badges --------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px 2px 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--kat-grundbegriff-bg);
  color: var(--kat-grundbegriff-fg);
}
.badge--phase { background: var(--kat-phase-bg); color: var(--kat-phase-fg); }
.badge--szenario { background: var(--kat-szenario-bg); color: var(--kat-szenario-fg); }
.badge--modul { background: var(--kat-modul-bg); color: var(--kat-modul-fg); }
.badge--aufgabe { background: var(--kat-aufgabe-bg); color: var(--kat-aufgabe-fg); }
.badge--ergebnis { background: var(--kat-ergebnis-bg); color: var(--kat-ergebnis-fg); }
.badge--rolle { background: var(--kat-rolle-bg); color: var(--kat-rolle-fg); }
.badge--grundbegriff { background: var(--kat-grundbegriff-bg); color: var(--kat-grundbegriff-fg); }
.badge svg { width: 12px; height: 12px; flex: 0 0 auto; stroke-width: 2.1; }

/* --- Lexikon -------------------------------------------------------------- */
.trefferzahl {
  color: var(--text-leise);
  font-size: 12px;
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}
.eintraege { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }

/* Ein Eintrag ist ein Abschnitt zwischen Haarlinien — kein Kasten, keine
   Farbkante. Die Kategorie steht als Marke in der Titelzeile. */
.eintrag {
  border-top: 1px solid var(--rand);
  padding: 16px 0 18px;
}
.eintraege > .eintrag:last-child { border-bottom: 1px solid var(--rand); }
.eintrag, details.stufe-block, .hb-titel[id] { scroll-margin-top: 64px; }
.eintrag.ist-hervorgehoben {
  background: var(--akzent-schwach);
  box-shadow: -12px 0 0 var(--akzent-schwach), 12px 0 0 var(--akzent-schwach);
}

.eintrag__kopf { padding: 0; }
.eintrag__titelzeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.eintrag__titel { font-size: 20px; margin: 0; letter-spacing: -.015em; }
.eintrag__def { margin: 0 0 12px; color: var(--text); font-size: 15px; line-height: 1.55; max-width: 64ch; text-wrap: pretty; }

.eintrag__fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 0;
}
.aufklapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--text-leise);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.aufklapp:hover { color: var(--text); }
.aufklapp__pfeil { transition: transform .18s ease; display: inline-block; font-size: .7rem; }
.aufklapp[aria-expanded="true"] .aufklapp__pfeil { transform: rotate(90deg); }

/* Quellenlink — Kernfeature, in Akzentfarbe unterstrichen */
.quelle-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  border-bottom: 2px solid var(--auswahl);
  color: var(--akzent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  max-width: 100%;
}
.quelle-link:hover { color: var(--akzent); border-bottom-color: var(--akzent); }
.quelle-link__pfeil { font-size: .85em; }
.btn--graph { border-bottom: 2px solid var(--rand); padding: 0; }
.btn--graph:hover { border-bottom-color: var(--akzent); }

.detail {
  padding: 0;
  border-top: 1px solid var(--rand);
  margin-top: 14px;
}
.detail__block { padding-top: 14px; }
.detail__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: 4px;
}
.detail__text { margin: 0; white-space: pre-wrap; color: var(--text-weich); font-size: 14.5px; line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.werteliste { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.wert {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--rand);
  font-size: 13px;
}
a.wert, .wert a { color: var(--text); }
a.wert:hover, .wert a:hover { color: var(--akzent); border-color: var(--text); }
.meilenstein-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.meilenstein-liste li {
  padding: 8px 0;
  border-top: 1px solid var(--rand-fein);
  font-size: 14px;
}
.meilenstein-liste li:first-child { border-top: 0; padding-top: 0; }
.meilenstein-liste b { display: block; }

.leer {
  padding: 22px 0;
  text-align: left;
  color: var(--text-leise);
  border-top: 1px solid var(--rand);
  border-bottom: 1px solid var(--rand);
  max-width: 56ch;
}
.leer strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 20px; font-weight: 800; letter-spacing: -.015em; }

.mehr-laden { margin-top: 16px; }

/* --- Lernkarten ----------------------------------------------------------- */
.lk-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-bottom: 12px;
}
.fortschritt { margin: 4px 0 18px; }
.fortschritt__zeile {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.fortschritt__balken {
  height: 4px;
  background: var(--flaeche-2);
  overflow: hidden;
}
.fortschritt__fuellung {
  height: 100%;
  background: var(--akzent);
  width: 0;
  transition: width .3s ease;
}

.flip-wrap { perspective: 1400px; margin-bottom: 14px; }
.flip {
  display: grid;
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2, .7, .3, 1);
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
.flip.ist-gedreht { transform: rotateY(180deg); }
.flip__seite {
  grid-area: 1 / 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: var(--bg);
  border: 1px solid var(--rand-stark);
  padding: 18px 20px;
  min-height: 11rem;
  max-height: 46vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flip__seite--hinten { transform: rotateY(180deg); }
.flip__seite--vorne { cursor: pointer; }
.flip__seite--vorne:hover { border-color: var(--text); }
.flip__seite[aria-hidden="true"] { pointer-events: none; }
.flip__rolle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.flip__inhalt { font-size: 22px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; overflow-wrap: break-word; text-wrap: pretty; }
.flip__seite--vorne .flip__inhalt { margin-block: auto; }
.flip__inhalt--klein { font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.55; color: var(--text-weich); }
.flip__begriff { font-size: 14px; font-weight: 700; color: var(--text); }
.flip__hinweis {
  margin-top: auto;
  font-size: 13px;
  color: var(--text-leise);
  border-top: 1px solid var(--rand);
  padding-top: 8px;
}
.flip__tipp { margin-top: auto; font-size: 12px; color: var(--text-leise); }

.lk-aktionen { display: flex; gap: 8px; }
.lk-aktionen .btn { flex: 1 1 0; }

.abschluss { text-align: left; padding: 18px 0 20px; margin-bottom: 18px; }
.abschluss__zahl { font-size: 42px; font-weight: 800; letter-spacing: -.022em; line-height: 1.05; }

/* --- Quiz ----------------------------------------------------------------- */
.feldgruppe { margin-bottom: 18px; }
.feldgruppe > legend, .feldgruppe__titel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: 6px;
  padding: 0;
}
fieldset.feldgruppe { border: 0; padding: 0; margin-inline: 0; }
.feldgruppe > .trefferzahl { margin: 8px 0 0; }

.antwort-liste { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.antwort {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--rand-stark);
  background: var(--bg);
  color: var(--text);
  text-align: left;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.antwort:hover:not(:disabled) { border-color: var(--text); }
.antwort:disabled { cursor: default; }
.antwort__marke {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border: 1px solid var(--rand-stark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}
.antwort--richtig { border-color: var(--gut); background: var(--gut-bg); }
.antwort--richtig .antwort__marke { border-color: var(--gut); background: var(--gut); color: #fff; }
.antwort--falsch { border-color: var(--schlecht); background: var(--schlecht-bg); }
.antwort--falsch .antwort__marke { border-color: var(--schlecht); background: var(--schlecht); color: #fff; }
.antwort--blass { opacity: .6; }

.rueckmeldung {
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--rand);
  background: var(--flaeche-2);
}
.rueckmeldung--gut { border-color: var(--gut); background: var(--gut-bg); }
.rueckmeldung--schlecht { border-color: var(--schlecht); background: var(--schlecht-bg); }
.rueckmeldung__titel { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.rueckmeldung--gut .rueckmeldung__titel { color: var(--gut); }
.rueckmeldung--schlecht .rueckmeldung__titel { color: var(--schlecht); }
.rueckmeldung p:last-of-type { margin-bottom: 10px; }
.rueckmeldung .quelle-link, .fehler-eintrag .quelle-link { margin-top: 2px; }
.rueckmeldung:focus { outline: none; }

.quiz-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-leise);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.frage {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 14px 0 16px;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.frage__zitat {
  display: block;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.55;
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--akzent-schwach);
}

.ergebnis-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.fehler-eintrag {
  padding: 14px 0 16px;
  border-top: 1px solid var(--rand);
}
.ergebnis-liste > .fehler-eintrag:last-child { border-bottom: 1px solid var(--rand); }
.fehler-eintrag__frage { font-weight: 700; margin-bottom: 6px; }
.fehler-eintrag__zeile { font-size: 14px; margin-bottom: 3px; }
.fehler-eintrag__zeile b { font-weight: 700; }
.tag-schlecht { color: var(--schlecht); }
.tag-gut { color: var(--gut); }

.statistik { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.statistik__feld {
  border-top: 1px solid var(--linie-stark);
  padding: 8px 0 0;
  text-align: left;
}
.statistik__wert { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: block; line-height: 1.1; }
.statistik__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-leise); }

/* --- Methode: Phasenmodell ----------------------------------------------- */
/* Je Vorgehensweise eine eigene, beschriftete Zeile. */
.vorgehen { margin-bottom: 26px; }
.vorgehen__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rand);
}
.vorgehen__titel { font-size: 16px; margin: 0; }
.vorgehen__zahl { font-size: 12px; color: var(--text-leise); }

/* Phasen als bündige Blöcke zwischen Linien; kein Kasten, keine Farbe. */
.phasenmodell { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.pm-phase {
  display: block;
  padding: 12px 0 14px;
  border-top: 1px solid var(--rand);
  color: var(--text);
  text-decoration: none;
}
.phasenmodell > li:first-child .pm-phase { border-top: 0; }
a.pm-phase:hover .pm-phase__name { color: var(--akzent); }
.pm-phase__nr { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent-text); }
.pm-phase__name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.15;
  margin-top: 2px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.pm-phase__def { display: block; font-size: 13.5px; line-height: 1.5; margin-top: 6px; color: var(--text-weich); }

/* Meilensteine schliessen ihre Phase ab und stehen darum darunter. */
.pm-ms {
  list-style: none;
  margin: 10px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--rand-fein);
  display: grid;
  gap: 4px;
}
.pm-meilenstein {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
  hyphens: auto;
}
.pm-meilenstein--mehr { color: var(--text-leise); font-weight: 500; padding-left: 16px; }
.pm-raute { flex: 0 0 auto; font-size: 10px; line-height: 1.6; color: var(--akzent); }

.pm-verbinder { display: none; }
.pm-pfeil { color: var(--text-leise-hell); font-size: 1rem; }
.pm-pfeil--breit { display: none; }

.abschnitt { margin-bottom: 26px; }
.abschnitt__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--linie-stark);
}
.abschnitt__kopf h2 { margin: 0; }
.abschnitt__zahl { font-size: 12px; color: var(--text-leise); }

/* --- Über ----------------------------------------------------------------- */
.prosa { max-width: 60ch; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.prosa h2 { margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--rand); }
.prosa ul { padding-left: 1.1rem; }
.prosa li { margin-bottom: 6px; }
.hinweisbox {
  background: var(--akzent-schwach);
  padding: 14px 16px;
  margin: 18px 0;
}
.hinweisbox h2, .hinweisbox h3 { border: 0; padding-top: 0; margin-top: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent-text); }
.hinweisbox p:last-child, .hinweisbox ul:last-child { margin-bottom: 0; }

/* --- Fehlerhinweis Daten -------------------------------------------------- */
.datenwarnung {
  border: 1px solid var(--rand-stark);
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--text-leise);
}

/* --- Breite Viewports ----------------------------------------------------- */
@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .nav-bottom { display: none; }
  .nav-top { display: flex; }
  .view { padding: 26px 32px 48px; }
  .kopf h1 { font-size: 31px; }
  .fusszeile { padding-inline: 32px; }

  .eintraege { grid-template-columns: 1fr; }
  .btn-reihe > .btn--primaer, .btn-reihe > .btn--gut, .btn-reihe > .btn--schlecht { flex: 0 1 auto; }

  .chips--streifen {
    flex-wrap: wrap;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

/* Phasenmodell nebeneinander — erst ab 900 px, sonst wird es bei fünf Phasen
   zu eng. Die Phasen stehen als Spalten unter einer gemeinsamen Linie,
   getrennt durch Haarstriche. */
@media (min-width: 900px) {
  .phasenmodell {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
  }
  .phasenmodell > li { min-width: 0; }
  .phasenmodell > li + li .pm-phase { border-left: 1px solid var(--rand); padding-left: 14px; }
  .phasenmodell > li:not(:last-child) .pm-phase { padding-right: 14px; }
  .pm-phase, .phasenmodell > li:first-child .pm-phase { height: 100%; border-top: 0; }
  .pm-phase__name { font-size: 16px; }
  .pm-phase__def { font-size: 13px; }
  .pm-meilenstein { font-size: 12px; }
  .pm-verbinder { display: none; }
}

/* --- Reduzierte Bewegung -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- Druck ---------------------------------------------------------------- */
@media print {
  .topbar, .nav-bottom, .suche, .chips, .aufklapp { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}

/* ==========================================================================
   Stufen, Fakten und Handbuchtext
   ========================================================================== */

/* --- Faktenzeile (Stufe Kurz) -------------------------------------------- */
.fakten {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-leise);
}
.fakt { display: inline-flex; align-items: center; gap: 4px; line-height: 1.3; }
.fakt__label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fakt__wert { color: var(--text); }
.fakt__wert a, .hb-link { color: var(--akzent-text); text-decoration: none; border-bottom: 1px solid var(--auswahl); }
.fakt__wert a:hover, .hb-link:hover { color: var(--akzent); border-bottom-color: var(--akzent); }
.fakt--marker {
  padding: 2px 6px;
  background: var(--akzent);
  color: #fff;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.phasenstreifen { display: inline-flex; gap: 2px; vertical-align: middle; }
.phasenstreifen__feld {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border: 1px solid var(--rand);
  background: transparent;
  color: var(--text-leise-hell);
  font-size: 10px;
  font-weight: 700;
}
.phasenstreifen__feld.ist-aktiv {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* --- Stufenwahl je Karte ------------------------------------------------- */
/* Die drei Stufen sind eine Gruppe von Textknöpfen mit Haarstrichen. */
.stufen {
  display: inline-flex;
  align-items: center;
}
.stufe {
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--text-leise);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.stufe:first-child { padding-left: 0; }
.stufe + .stufe { box-shadow: inset 1px 0 0 var(--rand); }
.stufe:hover { color: var(--text); }
.stufe[aria-pressed="true"] { color: var(--text); font-weight: 800; }
.stufe[aria-pressed="true"]::after { display: none; }
.stufe[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--akzent); }
.stufe[aria-pressed="true"] + .stufe { box-shadow: inset 1px 0 0 var(--rand); }
.stufe:focus-visible { outline-offset: -2px; }

.stufenwahl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 10px;
}
.stufenwahl__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-leise); }
.stufenwahl .chips { margin: 0; padding: 0; border: 0; }
.stufenwahl .chip { height: 28px; }

.detail--handbuch { border-top: 1px solid var(--rand); }

/* --- Handbuchtext-Blöcke -------------------------------------------------- */
.hb-verweis {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 12px 0 4px;
  font-size: 12px;
  color: var(--text-leise);
}
.hb-verweis .hb-online { font-weight: 700; text-decoration: none; border: 0; }
.hb-abschnitt { margin-top: 10px; }
.hb-titel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin: 16px 0 4px;
}
.hb-nr { color: var(--akzent-text); font-variant-numeric: tabular-nums; }
.hb-seite { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-leise); font-size: .95em; }
.hb-p { margin: 0 0 10px; color: var(--text-weich); font-size: 14.5px; line-height: 1.6; max-width: 60ch; text-wrap: pretty; }
.hb-h { margin: 14px 0 4px; font-size: 15px; }
.hb-liste { margin: 0 0 10px; padding-left: 1.25rem; font-size: 14.5px; line-height: 1.55; color: var(--text-weich); }
.hb-liste li { margin-bottom: 3px; }
.hb-liste .hb-liste { margin: 3px 0; }
.hb-li-titel { display: block; font-weight: 700; color: var(--text); }
.hb-tabelle-wrap { overflow-x: auto; margin: 6px 0 14px; -webkit-overflow-scrolling: touch; }
.hb-tabelle {
  border-collapse: collapse;
  width: 100%;
  min-width: 28rem;
  font-size: 13.5px;
  line-height: 1.35;
}
.hb-tabelle caption { caption-side: top; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-leise); padding: 0 0 6px; }
.hb-tabelle th, .hb-tabelle td {
  border-top: 1px solid var(--rand);
  border-bottom: 1px solid var(--rand);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
.hb-tabelle th { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-leise); border-top: 1px solid var(--linie-stark); }
.hb-tabelle .hb-x { text-align: center; color: var(--akzent); font-weight: 800; }
.hb-abb { margin: 10px 0 16px; }
.hb-abb img {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--rand);
  padding: 6px;
}
.hb-abb--ohne img { max-height: 70px; width: auto; }
.hb-abb figcaption { font-size: 11.5px; color: var(--text-leise); margin-top: 6px; }

/* Verweis auf eine Dokumentvorlage (.dotx) von hermes.admin.ch. */
.hb-vorlage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 6px 0 14px;
  border: 1px solid var(--rand-stark);
  color: var(--text);
  text-decoration: none;
}
.hb-vorlage:hover { border-color: var(--text); color: var(--text); }
.hb-vorlage__ikone {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--akzent);
  color: var(--akzent-auf);
  font-size: 14px;
  font-weight: 800;
}
.hb-vorlage__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hb-vorlage__text b { font-size: 14px; font-weight: 700; }
.hb-vorlage__meta { font-size: 11.5px; color: var(--text-leise); }

/* --- Handbuch: Kapitel-Chips, Kapitelkopf, Elemente ---------------------- */
.pm-block { margin-bottom: 8px; }
.hb-kapitel { margin-bottom: 18px; }
.hb-kapitel__nr { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--akzent-text); }
.chip[aria-pressed="true"] .hb-kapitel__nr { color: inherit; }
.hb-kapitelkopf { margin: 0 0 6px; }
.hb-kapitelkopf__titel { margin: 2px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.015em; line-height: 1.1; }
/* Inhaltsverzeichnis des Kapitels: Knöpfe wie Links, Abschnitte eingerückt. */
.hb-inhalt { margin: 4px 0 18px; padding: 10px 0 12px; border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.hb-inhalt__liste { list-style: none; margin: 4px 0 0; padding: 0; columns: 2; column-gap: 28px; }
.hb-inhalt__eintrag { break-inside: avoid; }
.hb-inhalt__eintrag--2 { padding-left: 14px; }
.hb-inhalt__eintrag--3 { padding-left: 28px; }
.hb-inhalt__knopf { padding: 2px 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.hb-inhalt__knopf:hover { color: var(--akzent); }
.hb-inhalt__eintrag--1 .hb-inhalt__knopf { font-weight: 700; }
/* Teile (Unterkapitel) und Titelebenen des Handbuchtexts. */
.hb-teil { margin-top: 8px; }
.hb-teil + .hb-teil { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--linie-stark); }
.hb-teil__titel { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.hb-titel--2 { margin-top: 26px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; text-transform: none; color: var(--text); padding-top: 12px; border-top: 1px solid var(--rand); }
.hb-titel--3 { margin-top: 18px; font-size: 14.5px; text-transform: none; letter-spacing: 0; color: var(--text); }
.hb-titel--4, .hb-titel--5, .hb-titel--6 { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--text); }
.hb-karten { margin: 6px 0 10px; }
.hb-karten .eintrag__titel { font-size: 17px; }

/* --- Handbuch: Kapitelseite ---------------------------------------------- */
.hb-kapitelkopf .hb-verweis { margin-top: 2px; }
/* Das Handbuch: Kopf, Chips und Blatt in einer zentrierten Spalte, die etwas
   breiter ist als die breiteste Abbildung des Referenzhandbuchs (1196 px
   plus Rahmen); keine Zeilenlängen-Grenzen für Text und Karten. */
body[data-route="handbuch"] .view { max-width: 1380px; }
/* Das Blatt: Kapitelkopf und Text auf weissem Grund, wie eine Seite. */
.hb-blatt {
  background: var(--weiss);
  border: 1px solid var(--rand);
  padding: 28px 44px 40px;
}
@media (max-width: 899.98px) {
  .hb-blatt { padding: 18px 16px 28px; }
}
body[data-route="handbuch"] .kopf p,
body[data-route="handbuch"] .hb-p,
body[data-route="handbuch"] .hb-liste,
body[data-route="handbuch"] .eintrag__def,
body[data-route="handbuch"] .detail__text,
body[data-route="handbuch"] .prosa { max-width: none; }

.kapitel-nav { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rand); }
/* Referenzhandbuch (PDF) als Text: Absatzarten, Tabellentitel unten, Seitenlinks. */
.hb-p--kursiv, .hb-h--kursiv { font-style: italic; }
.hb-p--fussnote { font-size: 12.5px; color: var(--text-leise); margin: 4px 0; padding-left: 1.1em; text-indent: -1.1em; }
.hb-p--fussnote + .hb-p:not(.hb-p--fussnote) { margin-top: 12px; }
.hb-tabelle--unten caption { caption-side: bottom; text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 500; color: var(--text-leise); padding: 6px 0 0; }
/* Seitenmarke im Text: eine gestrichelte Linie, rechts die Seite des PDF —
   dort beginnt im Referenzhandbuch eine neue Seite. */
.hb-seitenmarke {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-leise-hell);
}
.hb-seitenmarke::before { content: ''; flex: 1 1 auto; border-top: 1px dashed var(--rand); }
.hb-seitenmarke a, .hb-seitenmarke span { flex: 0 0 auto; color: inherit; text-decoration: none; }
.hb-seitenmarke a:hover { color: var(--akzent); }
a.hb-seite { text-decoration: none; border-bottom: 1px dotted var(--rand); }
a.hb-seite:hover { color: var(--akzent); border-bottom-color: var(--akzent); }
.hb-verweis .hb-pdf { font-weight: 700; text-decoration: none; border: 0; }
.hb-abschnitt--teil { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--linie-stark); }
.hb-karten--einzeln { margin: 10px 0 14px; }
.hb-teil--innen { margin-top: 0; }

/* --- Quiz: Beleg ---------------------------------------------------------- */
.beleg {
  margin: 8px 0;
  padding: 10px 14px;
  background: var(--akzent-schwach);
  font-size: 14px;
  color: var(--text);
}
.beleg__kopf { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent-text); margin-bottom: 3px; }
