/* Arbeit und Brot? – Gestaltung: ruhig, dokumentarisch, Archiv-/Papieranmutung. Handy zuerst. */

:root {
  --papier: #f5efe3;
  --papier-2: #ebe2cf;
  --karte: #fbf8f1;
  --tinte: #26221d;
  --tinte-2: #574d42;
  --linie: #cdbfa5;
  --fokus: #1f5f8b;
  --wirklichkeit: #2f5d62;
  --wirklichkeit-hell: #e3ecea;
  --plakat: #e8d6a6;
  --plakat-rand: #c7ad6f;
  --plakat-tinte: #3b2f1c;
  --stempel: #7d3b1d;
  --gut: #2d6a3e;
  --gut-hell: #e2efe3;
  --mittel: #7a5a12;
  --mittel-hell: #f3ead0;
  --schlecht: #8d2f2a;
  --schlecht-hell: #f6e2df;
  --schatten: 0 1px 2px rgba(60, 45, 25, .08), 0 4px 14px rgba(60, 45, 25, .08);
  --radius: 10px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Cambria, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 720px;
  --akzent: #6b5a45;
  --akzent-text: #ffffff;
  --akzent-tinte-hell: #5a4b39;
  --akzent-tinte-dunkel: #c9b79f;
  --akzent-tinte: var(--akzent-tinte-hell);
  color-scheme: light dark;
}
/* Elemente mit eigener Figurenfarbe berechnen ihre Schriftvariante neu */
[style*="--akzent"] { --akzent-tinte: var(--akzent-tinte-hell); }

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #1c1a17;
    --papier-2: #26231f;
    --karte: #24211d;
    --tinte: #ece5d8;
    --tinte-2: #bfb4a3;
    --linie: #4a4238;
    --fokus: #8cc4ec;
    --wirklichkeit: #8fc3c4;
    --wirklichkeit-hell: #1f2c2d;
    --plakat: #3a3222;
    --plakat-rand: #6b5a35;
    --plakat-tinte: #f0e4c8;
    --stempel: #e39b72;
    --gut: #8ad19b;
    --gut-hell: #1d2c20;
    --mittel: #e3c272;
    --mittel-hell: #2e2816;
    --schlecht: #f0a19a;
    --schlecht-hell: #33201e;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  }
  :root, [style*="--akzent"] { --akzent-tinte: var(--akzent-tinte-dunkel); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.125rem;          /* 18 px */
  line-height: 1.6;
  overflow-wrap: break-word;
  min-height: 100vh;
}

html.dialog-offen { overflow: hidden; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
h2 { font-size: 1.4rem; margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
h1:focus { outline: none; }
h1:focus-visible { outline: 3px solid var(--fokus); outline-offset: 4px; border-radius: 4px; }
p { margin: 0 0 1em; }
a { color: var(--fokus); text-underline-offset: .15em; }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprunglink { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--karte); padding: .6rem 1rem; }
.sprunglink:focus { left: .5rem; top: .5rem; }

.klein { font-size: .85em; }
.hinweis-klein { font-size: .95rem; color: var(--tinte-2); }
.laden { color: var(--tinte-2); padding-top: 30vh; text-align: center; }

/* ---------- Seitenrahmen ---------- */

.seite {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  outline: none;
}
.seite.breit { max-width: 1040px; }
@media (min-width: 600px) { .seite { padding-top: 1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; } }

.eintritt { animation: eintritt .32s ease-out both; }
@keyframes eintritt { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.fliesstext { max-width: 40rem; }
.fliesstext p { margin-bottom: .9em; }

.kicker {
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--akzent-tinte); margin: 0 0 .4rem;
}

/* Kopf auf Unterseiten */
.seitenkopf {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--linie); padding-bottom: .5rem; margin-bottom: 1.4rem;
}
.zurueck-link, .marke {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px;
  text-decoration: none; color: var(--tinte); font-weight: 600;
}
.zurueck-link:hover { text-decoration: underline; }
.marke { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--tinte-2); }

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.2rem;
  font: inherit; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none;
  color: var(--tinte); background: var(--karte);
  border: 1.5px solid var(--linie); border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.knopf:hover { border-color: var(--tinte-2); }
.knopf:active { transform: translateY(1px); }
.knopf.haupt { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.knopf.haupt:hover { background: var(--tinte-2); border-color: var(--tinte-2); }
.knopf.leise { background: transparent; border-color: transparent; color: var(--tinte-2); text-decoration: underline; text-underline-offset: .2em; }
.knopf.leise:hover { color: var(--tinte); }
.knopf.warnung { background: var(--schlecht); border-color: var(--schlecht); color: var(--papier); }
.knopf.warnung-leise { color: var(--schlecht); }
.knopf.breit { display: flex; width: 100%; }
.knopf.rund { min-width: 48px; padding: 0; font-size: 1.5rem; border-radius: 50%; }
.knopf:disabled { cursor: default; background: var(--papier-2); color: var(--tinte-2); border-color: var(--linie); }
.knopf-paar { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

.weiter-bereich { margin-top: 2rem; }
.seite-spiel .knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.seite-spiel .knopf.haupt:hover { filter: brightness(1.08); }

/* ---------- Start ---------- */

.start { padding-top: clamp(1rem, 6vh, 4rem); }
.start-kicker { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-2); margin-bottom: .6rem; }
.start-titel { font-size: clamp(2.6rem, 13vw, 4.4rem); line-height: 1.02; margin-bottom: .35em; }
.start-untertitel { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--tinte-2); max-width: 34rem; }
.start .zeitleiste { margin: 1.6rem 0; }
.start-knoepfe { display: grid; gap: .6rem; margin-top: 1.8rem; max-width: 28rem; }

.anleitung { padding-left: 1.4rem; }
.anleitung li { margin-bottom: .7rem; padding-left: .3rem; }
.ablauf-schema { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0; }
.ablauf-schritt {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem .35rem .35rem;
  border: 1px solid var(--linie); border-radius: 999px; background: var(--karte); font-size: .95rem;
}
.ablauf-schritt .nr {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--tinte); color: var(--papier); font-size: .8rem; font-weight: 700;
}

/* ---------- Zeitleiste ---------- */

.zeitleiste {
  list-style: none; margin: .5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); position: relative;
}
.zeitleiste::before {
  content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 7px;
  height: 2px; background: var(--linie);
}
.zeitleiste li { display: flex; flex-direction: column; align-items: center; gap: .2rem; position: relative; font-size: .8rem; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.zl-punkt { width: 12px; height: 12px; margin-top: 2px; border-radius: 50%; background: var(--papier); border: 2px solid var(--linie); }
.zeitleiste .mit-kapitel .zl-punkt { border-color: var(--akzent-tinte); }
.zeitleiste .vergangen .zl-punkt { background: var(--akzent-tinte); border-color: var(--akzent-tinte); opacity: .55; }
.zeitleiste .aktuell .zl-punkt { width: 16px; height: 16px; margin-top: 0; background: var(--akzent); border-color: var(--akzent-tinte); box-shadow: 0 0 0 3px var(--papier); }
.zeitleiste .aktuell { color: var(--tinte); font-weight: 700; }
.zl-lang { display: none; }
@media (min-width: 400px) { .zl-lang { display: inline; } }

/* ---------- Kopfzeile im Spiel ---------- */

#kopf { position: sticky; top: 0; z-index: 10; }
.spielkopf {
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
  border-top: 4px solid var(--akzent);
  padding: .4rem max(1rem, env(safe-area-inset-left)) .5rem;
}
@supports not (background: color-mix(in srgb, red, blue)) { .spielkopf { background: var(--papier); } }
.spielkopf > * { max-width: var(--breite); margin-left: auto; margin-right: auto; }
.spielkopf-zeile { display: flex; align-items: center; gap: .6rem; }
.spielkopf-name { font-family: var(--serif); font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spielkopf-punkte { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--tinte-2); }
.spielkopf-punkte strong { color: var(--tinte); font-size: 1.1rem; }
.knopf-menue {
  min-height: 44px; min-width: 44px; padding: 0 .9rem; font: inherit; font-weight: 600; font-size: 1rem;
  background: transparent; color: var(--tinte); border: 1.5px solid var(--linie); border-radius: var(--radius); cursor: pointer;
}
.spielkopf .zeitleiste { margin-top: .35rem; }

/* ---------- Monogramm ---------- */

.monogramm {
  flex: none; display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--akzent); color: var(--akzent-text);
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: .03em;
  box-shadow: inset 0 0 0 3px var(--akzent), inset 0 0 0 5px color-mix(in srgb, var(--akzent-text) 45%, transparent);
}
.monogramm.mini { width: 32px; height: 32px; font-size: .8rem; box-shadow: none; }
.monogramm.gross { width: 88px; height: 88px; font-size: 2.1rem; }

/* ---------- Figurenauswahl ---------- */

.figuren-liste { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .figuren-liste { grid-template-columns: 1fr 1fr; } }
.figur-karte {
  position: relative; display: flex; gap: 1rem; align-items: flex-start;
  background: var(--karte); border: 1px solid var(--linie); border-left: 6px solid var(--akzent);
  border-radius: var(--radius); padding: 1.1rem 1rem; box-shadow: var(--schatten);
  transition: transform .15s, box-shadow .15s;
}
.figur-karte:hover { transform: translateY(-2px); }
.figur-karte:focus-within { outline: 3px solid var(--fokus); outline-offset: 2px; }
.figur-karte h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
.figur-link { color: var(--tinte); text-decoration: none; }
.figur-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.figur-link:focus-visible { outline: none; }
.figur-karte-text { min-width: 0; flex: 1; }
.figur-meta { font-size: .95rem; color: var(--tinte-2); margin-bottom: .5rem; }
.figur-kurz { font-size: 1rem; margin-bottom: .7rem; }
.figur-stand { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .9rem; color: var(--tinte-2); align-items: center; }
.marke-fertig {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  border: 1.5px solid var(--gut); color: var(--gut); border-radius: 4px; padding: .05rem .4rem;
}
.figur-aktion { display: block; margin-top: .7rem; font-weight: 700; color: var(--akzent-tinte); }
.banner {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1rem; display: grid; gap: .6rem; box-shadow: var(--schatten);
}
.banner p { margin: 0; }
.zuruecksetzen { text-align: center; margin-top: 2rem; }

/* ---------- Spiel ---------- */

.figur-vorstellung { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.figur-vorstellung h1 { margin-bottom: .15rem; }
.figur-vorstellung .figur-meta { margin: 0; }

.szene-titel { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1.2rem; }
.jahreszahl {
  font-size: clamp(3.4rem, 18vw, 5.5rem); line-height: .95; color: var(--akzent-tinte);
  font-variant-numeric: oldstyle-nums proportional-nums; letter-spacing: -.02em;
}
.szene-name { font-size: clamp(1.5rem, 5.5vw, 2rem); }

.frage-titel { font-size: clamp(1.4rem, 5vw, 1.8rem); }

.optionen, .antworten { display: grid; gap: .7rem; margin-top: 1.2rem; }
.antworten.zwei { grid-template-columns: 1fr 1fr; }
.option, .antwort {
  display: flex; align-items: flex-start; gap: .8rem; width: 100%; min-height: 56px;
  padding: .9rem 1rem; text-align: left; font: inherit; color: var(--tinte);
  background: var(--karte); border: 1.5px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); cursor: pointer; transition: border-color .15s, background-color .15s, transform .1s;
}
.antworten.zwei .antwort { justify-content: center; text-align: center; font-weight: 700; flex-direction: column; align-items: center; gap: .2rem; }
.option:hover:not(:disabled), .antwort:hover:not(:disabled) { border-color: var(--akzent-tinte); }
.option:active:not(:disabled), .antwort:active:not(:disabled) { transform: translateY(1px); }
.option:disabled, .antwort:disabled { cursor: default; }
.option:disabled:not(.gewaehlt) { color: var(--tinte-2); box-shadow: none; border-style: dashed; }
.option:disabled:not(.gewaehlt) .option-buchstabe { border-color: var(--tinte-2); color: var(--tinte-2); }
.option.gewaehlt { border-color: var(--akzent); border-width: 2.5px; }
.option-buchstabe {
  flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid var(--akzent-tinte); color: var(--akzent-tinte); font-weight: 700; font-size: .95rem;
}
.option.gewaehlt .option-buchstabe { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.option-text { flex: 1; padding-top: .1rem; }
.antwort-status { display: block; font-size: .85rem; font-weight: 700; }
.antworten:not(.zwei) .antwort-status:not(:empty) { margin-left: auto; padding-left: .5rem; white-space: nowrap; }
.antwort.richtig { border-color: var(--gut); background: var(--gut-hell); }
.antwort.richtig .antwort-status { color: var(--gut); }
.antwort.falsch { border-color: var(--schlecht); background: var(--schlecht-hell); }
.antwort.falsch .antwort-status { color: var(--schlecht); }
.antwort:disabled:not(.richtig):not(.falsch) { color: var(--tinte-2); box-shadow: none; }
.antwort:disabled:not(.richtig):not(.falsch) .option-buchstabe { border-color: var(--tinte-2); color: var(--tinte-2); }
@media (max-width: 420px) {
  .antworten:not(.zwei) .antwort { flex-wrap: wrap; }
  .antworten:not(.zwei) .antwort-status:not(:empty) { margin-left: 2.8rem; padding-left: 0; flex-basis: 100%; }
}

.deine-wahl {
  border-left: 4px solid var(--akzent); background: var(--karte); border-radius: 0 var(--radius) var(--radius) 0;
  padding: .8rem 1rem; margin-bottom: 1.4rem; box-shadow: var(--schatten);
}
.deine-wahl p { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
.deine-wahl-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tinte-2); font-weight: 600; }

/* ---------- Faktencheck ---------- */

.faktencheck { display: grid; gap: 1.4rem; margin-top: 1.2rem; align-items: start; }
@media (min-width: 900px) {
  .faktencheck.aufgedeckt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .faktencheck .aufdecken-bereich { max-width: 28rem; }
  .seite.breit .kicker, .seite.breit > .schritt > h1, .seite.breit .weiter-bereich { max-width: var(--breite); }
}

.propaganda-karte {
  position: relative; margin: .6rem .3rem 0;
  background: var(--plakat);
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(255, 255, 255, .35), transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(110, 80, 30, .16), transparent 55%),
    repeating-linear-gradient(0deg, rgba(90, 70, 30, .025) 0 2px, transparent 2px 4px);
  color: var(--plakat-tinte);
  border: 1px solid var(--plakat-rand);
  box-shadow: 0 2px 0 rgba(90, 70, 30, .15), 0 10px 24px rgba(60, 45, 20, .16);
  padding: 3.7rem 1.3rem 1.2rem;
  transform: rotate(-1deg);
}
.propaganda-karte blockquote { margin: 0; }
.propaganda-karte blockquote p {
  font-family: var(--serif); font-size: clamp(1.35rem, 5.4vw, 1.75rem); line-height: 1.25; font-weight: 700; margin: 0 0 .8rem;
}
.propaganda-karte figcaption { font-size: .9rem; font-style: italic; border-top: 1px dashed var(--plakat-rand); padding-top: .5rem; }
.stempel {
  position: absolute; top: .7rem; right: .8rem;
  font-family: var(--sans); font-weight: 800; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--stempel); border: 3px double var(--stempel); border-radius: 4px; padding: .1rem .5rem;
  transform: rotate(4deg); opacity: .88;
}

.knopf.aufdecken {
  min-height: 60px; font-size: 1.1rem; background: var(--wirklichkeit); border-color: var(--wirklichkeit); color: #fff;
}
@media (prefers-color-scheme: dark) { .knopf.aufdecken { color: #10201f; } }
.lupe { width: 18px; height: 18px; border: 3px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.lupe::after { content: ""; position: absolute; width: 3px; height: 9px; background: currentColor; right: -6px; bottom: -8px; transform: rotate(-45deg); border-radius: 2px; }

.wirklichkeit-karte {
  background: var(--karte); border: 1px solid var(--linie); border-top: 5px solid var(--wirklichkeit);
  border-radius: var(--radius); padding: 1.1rem 1.2rem 1rem; box-shadow: var(--schatten);
}
.wirklichkeit-karte h2 { margin-top: 0; color: var(--wirklichkeit); display: flex; align-items: center; gap: .5rem; font-size: 1.45rem; }
.wirklichkeit-karte h2:focus { outline: none; }
.wirklichkeit-karte h2:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
.wk-marke { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--wirklichkeit); color: var(--karte); font-size: 1rem; font-family: var(--sans); }
.fakten { padding-left: 1.2rem; margin: 0 0 1rem; }
.fakten li { margin-bottom: .6rem; }
.fakten li::marker { color: var(--wirklichkeit); }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1rem 0; }
.zahl { background: var(--wirklichkeit-hell); border-radius: 8px; padding: .8rem; display: flex; flex-direction: column; gap: .2rem; }
.zahl-wert { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--wirklichkeit); font-variant-numeric: lining-nums tabular-nums; }
.zahl-label { font-size: .95rem; line-height: 1.35; }
.zahl-quelle { font-size: .8rem; color: var(--tinte-2); }
.belege { border-top: 1px solid var(--linie); padding-top: .6rem; font-size: .92rem; }
.belege h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tinte-2); margin: 0 0 .3rem; }
.belege ul { margin: 0; padding-left: 1.1rem; }
.belege li { margin-bottom: .25rem; }

.faktencheck.animiert .wirklichkeit-karte { animation: aufdecken .5s cubic-bezier(.2, .7, .2, 1) both; }
.faktencheck.animiert .propaganda-karte { animation: verblassen .5s ease-out both; }
@keyframes aufdecken { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes verblassen { from { transform: rotate(-1deg); } 50% { transform: rotate(-2.5deg) translateX(-4px); } to { transform: rotate(-1deg); } }

/* ---------- Quiz ---------- */

.aussage { margin: 1rem 0; padding: 1rem 1.1rem; background: var(--karte); border-left: 4px solid var(--akzent); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--schatten); }
.aussage p { margin: 0; font-family: var(--serif); font-size: 1.2rem; }

.rueckmeldung:empty { display: none; }
.rueckmeldung { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1.5px solid var(--linie); background: var(--karte); }
.rueckmeldung.gut { border-color: var(--gut); background: var(--gut-hell); }
.rueckmeldung.mittel { border-color: var(--mittel); background: var(--mittel-hell); }
.rueckmeldung.schlecht { border-color: var(--schlecht); background: var(--schlecht-hell); }
.rueckmeldung.zeigt { animation: eintritt .3s ease-out both; }
.rueck-kopf { font-weight: 800; font-size: 1.15rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.gut .rueck-kopf { color: var(--gut); }
.mittel .rueck-kopf { color: var(--mittel); }
.schlecht .rueck-kopf { color: var(--schlecht); }
.rueck-symbol { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid currentColor; font-size: .95rem; }
.loesung { margin-bottom: .5rem; }
.erklaerung { margin: 0; }

.schaetzen { margin-top: 1.4rem; display: grid; gap: .8rem; }
.schaetz-wert {
  display: block; text-align: center; font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 2.2rem); color: var(--akzent-tinte); font-variant-numeric: lining-nums tabular-nums;
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: .6rem;
}
.schaetz-zeile { display: flex; align-items: center; gap: .6rem; }
.schaetz-zeile input[type="range"] { flex: 1; min-width: 0; height: 44px; accent-color: var(--akzent); cursor: pointer; }
.schaetz-skala { display: flex; justify-content: space-between; font-size: .85rem; color: var(--tinte-2); padding: 0 56px; margin-top: -.6rem; }
.schaetz-balken { position: relative; height: 40px; margin: 2.4rem 56px 0; border-top: 2px solid var(--linie); }
.schaetz-balken > span { position: absolute; top: -8px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: .8rem; font-weight: 700; }
.schaetz-balken > span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; margin-bottom: .2rem; }
.marke-deine { color: var(--tinte-2); flex-direction: column-reverse !important; top: -34px !important; }
.marke-deine::before { margin-bottom: 0 !important; margin-top: .2rem; }
.marke-deine::before { background: var(--tinte-2); }
.marke-richtig { color: var(--gut); top: -8px !important; }
.marke-richtig::before { background: var(--gut); }
.marke-richtig > span, .marke-deine > span { white-space: nowrap; }

/* ---------- Epilog / Hinweise ---------- */

.hinweis-box { border: 1px dashed var(--linie); border-radius: var(--radius); padding: .9rem 1rem; color: var(--tinte-2); font-size: 1rem; margin-top: 1rem; }
.hinweis-box p { margin: 0; }

/* ---------- Auswertung / Abschluss ---------- */

.ergebnis-box { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--schatten); margin: 1rem 0 1.5rem; }
.ergebnis-box > p:last-child { margin-bottom: 0; }
.ergebnis-zahl { margin-bottom: .5rem; }
.ergebnis-zahl strong { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--akzent-tinte); }
.balken { display: block; height: 10px; border-radius: 999px; background: var(--papier-2); overflow: hidden; margin-bottom: .8rem; }
.balken > span { display: block; height: 100%; background: var(--akzent); border-radius: inherit; }
.punkte-je-figur { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .4rem; }
.punkte-je-figur li { display: flex; align-items: center; gap: .6rem; }
.punkte-je-figur li span:not(.monogramm) { flex: 1; }

.kapitel-uebersicht { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--linie); margin-left: .4rem; }
.kapitel-uebersicht li { display: flex; gap: .9rem; padding: 0 0 1.1rem 1rem; position: relative; }
.kapitel-uebersicht li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--akzent); }
.ku-jahr { font-family: var(--serif); font-weight: 700; color: var(--akzent-tinte); min-width: 3rem; }
.ku-text h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.ku-text p { margin: 0 0 .15rem; font-size: 1rem; }
.ku-label { color: var(--tinte-2); font-size: .9rem; }
.aktionen { display: grid; gap: .6rem; margin-top: 2rem; max-width: 28rem; }

.pw-gruppe h3 { display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; }
.pw-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.pw-paar { display: grid; gap: .4rem; grid-template-columns: 1fr; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem; }
@media (min-width: 640px) { .pw-paar { grid-template-columns: 3.4rem 1fr 1fr; gap: .8rem; } }
.pw-jahr { font-family: var(--serif); font-weight: 700; color: var(--akzent-tinte); }
.pw-paar p { margin: 0; font-size: 1rem; }
.pw-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: .15rem; }
.pw-propaganda { background: var(--plakat); color: var(--plakat-tinte); padding: .5rem .7rem; border-radius: 6px; }
.pw-propaganda p { font-family: var(--serif); font-style: italic; }
.pw-propaganda .pw-label { color: var(--stempel); }
.pw-wirklichkeit .pw-label { color: var(--wirklichkeit); }
.pw-wirklichkeit { padding: .5rem .2rem; }

/* Rangliste */
.rangliste { margin-top: 2rem; border-top: 1px solid var(--linie); }
.rl-formular label { display: block; font-weight: 600; margin-bottom: .3rem; }
.rl-zeile { display: flex; gap: .5rem; }
.rl-zeile input { flex: 1; min-width: 0; }
.rl-liste { padding-left: 1.6rem; }
.rl-liste li { padding: .3rem 0; border-bottom: 1px solid var(--linie); }
.rl-liste li strong { float: right; }
.rl-figur { color: var(--tinte-2); font-size: .85rem; }

/* ---------- Eingabefelder ---------- */

input[type="search"], input[type="text"] {
  font: inherit; color: var(--tinte); background: var(--karte);
  border: 1.5px solid var(--linie); border-radius: var(--radius); padding: .6rem .8rem; min-height: 48px; width: 100%;
}
input[type="search"]:focus, input[type="text"]:focus { border-color: var(--fokus); }

/* ---------- Glossar & Quellen ---------- */

.suchfeld { margin: 1rem 0 .3rem; }
.suchfeld label { display: block; font-weight: 600; margin-bottom: .3rem; }
.glossar-liste { margin: 1rem 0; }
.glossar-eintrag { padding: .9rem 0; border-bottom: 1px solid var(--linie); }
.glossar-eintrag dt { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.glossar-eintrag dd { margin: .2rem 0 0; }
.leer-hinweis { color: var(--tinte-2); font-style: italic; }
.quellen-liste { padding-left: 1.6rem; }
.quellen-liste li { margin-bottom: .9rem; }
.quelle-meta { display: block; font-size: .92rem; color: var(--tinte-2); }

/* Antippbarer Begriff */
.begriff {
  font: inherit; color: inherit; background: none; border: 0; padding: 0 .05em; margin: 0; cursor: help;
  text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: .2em;
  text-decoration-color: var(--akzent-tinte); border-radius: 3px; display: inline; text-align: inherit; line-height: inherit;
  /* größere Tippfläche ohne Layoutverschiebung */
  position: relative;
}
.begriff::after { content: ""; position: absolute; inset: -10px -2px; }
.begriff:hover { background: color-mix(in srgb, var(--akzent) 15%, transparent); }

/* ---------- Dialog ---------- */

.dialog {
  width: min(92vw, 34rem); max-height: 85vh; padding: 0; border: 1px solid var(--linie); border-radius: 14px;
  background: var(--karte); color: var(--tinte); box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.dialog::backdrop { background: rgba(28, 22, 14, .5); }
.dialog[open] { animation: eintritt .2s ease-out both; }
.dialog-inhalt { padding: 1.3rem 1.3rem 1.1rem; }
.dialog-inhalt h2 { margin-top: 0; }
.dialog-art { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tinte-2); margin-bottom: .2rem; }
.dialog-knoepfe { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.menue-liste { display: grid; gap: .5rem; }
/* Ersatz für Browser ohne <dialog> */
.dialog[open]:not(:modal) { position: fixed; inset: 0; margin: auto; z-index: 100; height: fit-content; }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ---------- */

@media print {
  #kopf, .weiter-bereich, .aktionen, .knopf-menue { display: none !important; }
  body { background: #fff; }
}
