/* ───────── Schriften (lokal eingebunden, keine Google-Server) ───────── */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/alegreya-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/alegreya-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/alegreya-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/alegreya-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/alegreya-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/alegreya-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/alegreya-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/alegreya-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("../fonts/alegreya-latin-800-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("../fonts/alegreya-latin-ext-800-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/alegreya-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/alegreya-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/alegreya-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/alegreya-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ───────── Tokens ───────── */
:root {
  --lesesaal: #1d3a30;       /* Hintergrund: grüner Lesesaal */
  --lesesaal-tief: #13291f;  /* Innenraum des Regals */
  --lesesaal-hell: #2a4c3f;  /* Flächen, Rahmen */
  --pergament: #efe7d4;      /* Text auf Grün */
  --pergament-dim: #b8b49f;  /* Nebentext auf Grün */
  --gold: #d6b25e;           /* Goldprägung */
  --gold-hell: #ecd28f;
  --holz: #6a4528;
  --holz-hell: #93673d;
  --karte: #fcfaf4;          /* Karteikarte */
  --karte-linie: #b4c6dd;
  --karte-rot: #c2463e;
  --tinte: #232733;
  --tinte-dim: #5b6070;
  --falsch: #e8826a;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --s-1: 0.8125rem;  /* 13 */
  --s0: 1.0625rem;   /* 17 */
  --s1: 1.25rem;     /* 20 */
  --s2: 1.5625rem;   /* 25 */
  --s3: 2rem;        /* 32 */
  --s4: 3.25rem;     /* 52 */

  --regal-zeile: 164px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lesesaal);
  color: var(--pergament);
  font-family: var(--sans);
  font-size: var(--s0);
  line-height: 1.45;
  min-height: 100dvh;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--gold-hell); }
:focus-visible { outline: 3px solid var(--gold-hell); outline-offset: 2px; }

.seite {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 7rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }
h2 { font-size: var(--s2); }
h3 { font-size: var(--s1); }
p { margin: 0 0 0.75em; }
.leise { color: var(--pergament-dim); }
.klein { font-size: var(--s-1); }

/* ───────── Logo ───────── */
.logo {
  font-family: var(--serif);
  font-weight: 800;
  font-style: italic;
  font-size: var(--s4);
  letter-spacing: -0.01em;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 1px 0 #00000055;
}
.logo-klein { font-size: var(--s2); }

/* ───────── Buttons ───────── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.6rem 1.25rem;
  border-radius: 6px; border: 2px solid var(--gold);
  background: var(--gold); color: var(--lesesaal-tief);
  font-weight: 700; font-size: var(--s0);
  cursor: pointer; text-decoration: none;
}
.knopf:hover { background: var(--gold-hell); border-color: var(--gold-hell); }
.knopf:disabled { opacity: 0.4; cursor: not-allowed; }
.knopf.zweit { background: transparent; color: var(--gold-hell); }
.knopf.zweit:hover { background: #ffffff10; }
.knopf.breit { width: 100%; }
.textknopf {
  background: none; border: 0; padding: 0.5rem 0.25rem; cursor: pointer;
  color: var(--gold-hell); text-decoration: underline; text-underline-offset: 3px;
  font-size: var(--s-1);
}
.textknopf:disabled { color: var(--pergament-dim); opacity: 0.6; text-decoration: none; cursor: not-allowed; }

/* Fester Aktionsbalken unten (Daumenzone) */
.aktionen {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--lesesaal) 70%, transparent);
}
.aktionen-innen { max-width: 34rem; margin: 0 auto; display: flex; gap: 0.5rem; }
.aktionen-innen > * { flex: 1; }

/* ───────── Kopfzeile im Spiel ───────── */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.punkte { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0 0.5rem; margin: 0 -1rem 1rem; padding-inline: 1rem; scrollbar-width: none; }
.punkte::-webkit-scrollbar { display: none; }
.spieler-chip {
  flex: none; display: flex; flex-direction: column; align-items: flex-start;
  padding: 0.4rem 0.75rem; border-radius: 6px;
  background: var(--lesesaal-hell); border: 2px solid transparent;
  cursor: pointer; text-align: left; min-width: 5.5rem;
}
.spieler-chip.aktiv { border-color: var(--gold); }
.spieler-chip .name { font-weight: 700; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spieler-chip .stand { font-size: var(--s-1); color: var(--pergament-dim); display: flex; gap: 0.6rem; align-items: center; }
.tokens { display: inline-flex; gap: 3px; vertical-align: middle; }
.token { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 -1px 0 #0003; }
.token.leer { background: transparent; border: 1px solid #ffffff30; }

.am-zug { font-family: var(--serif); font-size: var(--s3); font-weight: 800; margin-bottom: 0.75rem; }
.am-zug span { color: var(--gold); }

/* ───────── Karteikarte ───────── */
.karteikarte {
  position: relative;
  background: var(--karte);
  color: var(--tinte);
  border-radius: 3px;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 10px 24px #00000040, 0 1px 0 #fff inset;
  background-image:
    linear-gradient(var(--karte-rot), var(--karte-rot)),
    repeating-linear-gradient(to bottom, transparent 0 calc(1.75rem - 1px), var(--karte-linie) calc(1.75rem - 1px) 1.75rem);
  background-size: 100% 2px, 100% 100%;
  background-position: 0 2.6rem, 0 2.75rem;
  background-repeat: no-repeat, no-repeat;
}
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; height: 2.1rem; font-size: var(--s-1); color: var(--tinte-dim); }
.karte-kopf .kat { font-weight: 700; color: var(--karte-rot); }
.hinweis {
  font-family: var(--serif);
  font-size: var(--s1);
  line-height: 1.75rem;         /* sitzt auf den Linien */
  margin: 0.95rem 0 0;
  min-height: 5.25rem;
}
.karteikarte.ohne-linien { background-image: linear-gradient(var(--karte-rot), var(--karte-rot)); background-size: 100% 2px; background-position: 0 2.6rem; }
.hinweis-titel { font-family: var(--serif); font-size: var(--s2); font-weight: 700; line-height: 1.75rem; margin-top: 0.95rem; }
.hinweis-autor { font-family: var(--serif); font-style: italic; font-size: var(--s1); line-height: 1.75rem; }

/* Auflösung */
.loesung { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: start; margin-top: 0.95rem; }
.loesung .titel { font-family: var(--serif); font-weight: 700; font-size: var(--s1); line-height: 1.3; }
.loesung .autor { font-family: var(--serif); font-style: italic; color: var(--tinte-dim); margin-top: 0.15rem; }
.jahr-gross { font-family: var(--serif); font-weight: 800; font-size: var(--s4); line-height: 1; color: var(--tinte); margin-top: 0.5rem; letter-spacing: -0.02em; }
.notiz { font-size: var(--s-1); color: var(--tinte-dim); margin-top: 0.75rem; }

.umdrehen { animation: umdrehen 0.55s cubic-bezier(.2,.7,.3,1) both; transform-origin: 50% 50%; }
@keyframes umdrehen {
  0% { transform: perspective(900px) rotateY(-90deg); opacity: 0.2; }
  100% { transform: perspective(900px) rotateY(0); opacity: 1; }
}

/* Cover */
.cover {
  position: relative; width: 88px; aspect-ratio: 2 / 3; border-radius: 2px 4px 4px 2px; overflow: hidden;
  background: var(--c, #2e6b67); color: var(--gold-hell);
  box-shadow: inset 6px 0 0 #00000030, 0 4px 10px #0004;
  display: flex; flex-direction: column; justify-content: center; padding: 0.5rem 0.4rem 0.5rem 0.65rem;
  font-family: var(--serif); font-weight: 700; font-size: 0.72rem; line-height: 1.15; hyphens: auto;
}
.cover::before { content: ""; position: absolute; left: 10px; right: 6px; top: 8px; border-top: 1px solid currentColor; opacity: 0.6; }
.cover::after { content: ""; position: absolute; left: 10px; right: 6px; bottom: 8px; border-top: 1px solid currentColor; opacity: 0.6; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ───────── Das Regal ───────── */
.regal-titel { display: flex; justify-content: space-between; align-items: baseline; margin: 1.75rem 0 0.5rem; }
.regal-titel h3 { font-size: var(--s1); }
.regal {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  padding: 0 10px;
  background-color: var(--lesesaal-tief);
  background-image: linear-gradient(to bottom,
    transparent 0 calc(var(--regal-zeile) - 12px),
    var(--holz-hell) calc(var(--regal-zeile) - 12px) calc(var(--regal-zeile) - 10px),
    var(--holz) calc(var(--regal-zeile) - 10px) var(--regal-zeile));
  background-size: 100% var(--regal-zeile);
  border-left: 10px solid var(--holz); border-right: 10px solid var(--holz);
  border-top: 10px solid var(--holz);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 8px 16px #0006;
}
.fach { height: var(--regal-zeile); padding-bottom: 12px; display: flex; align-items: flex-end; }

.ruecken {
  position: relative;
  width: var(--b, 40px); height: var(--h, 124px);
  background: var(--c);
  border-radius: 2px 2px 1px 1px;
  box-shadow: inset 3px 0 0 #ffffff14, inset -3px 0 0 #00000030;
  display: flex; flex-direction: column; align-items: center;
  margin: 0 1px;
}
.ruecken::before, .ruecken::after { /* Goldbänder */
  content: ""; position: absolute; left: 4px; right: 4px; height: 0;
  border-top: 1.5px solid var(--gold); opacity: 0.85;
}
.ruecken::before { top: 9px; }
.ruecken::after { top: 13px; }
.ruecken .r-titel {
  flex: 1; min-height: 0; margin-top: 20px; margin-bottom: 5px;
  max-width: calc(100% - 8px);
  writing-mode: vertical-rl;
  font-family: var(--serif); font-weight: 700; font-size: 0.7rem; line-height: 1.05;
  color: var(--gold-hell);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere;
}
.ruecken .signatur {  /* Signaturschild mit Jahr */
  flex: none;
  margin-bottom: 7px; width: calc(100% - 6px); max-width: 38px;
  background: #f7f3e8; color: #222; border-radius: 2px;
  font-family: var(--sans); font-weight: 700; font-size: 0.74rem; line-height: 1; text-align: center;
  padding: 3px 0 2px;
  font-variant-numeric: tabular-nums;
}
.ruecken.neu { animation: einschieben 0.5s ease-out both; outline: 2px solid var(--gold); outline-offset: 2px; }
.ruecken.gehoert-hier { opacity: 0.45; outline: 2px dashed var(--falsch); outline-offset: 2px; }
@keyframes einschieben { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Lücken zum Einordnen */
.luecke {
  width: 26px; height: 134px; margin: 0 1px;
  border: 0; padding: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: 3px;
}
.luecke::after {
  content: ""; position: absolute; left: 50%; top: 18px; bottom: 6px; width: 2px; transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--pergament-dim) 0 4px, transparent 4px 9px);
  opacity: 0.5;
}
.luecke:hover::after, .luecke:focus-visible::after { opacity: 1; background: var(--gold); }
.luecke:disabled { cursor: default; }
.luecke:disabled::after { display: none; }
.luecke.platz {   /* gewählter Platz: Geisterbuch */
  width: 40px; background: #ffffff10; border: 2px dashed var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gold); font-family: var(--serif); font-weight: 800; font-size: 1.4rem;
}
.luecke.platz::after { display: none; }
.luecke.platz .wer {
  position: absolute; bottom: 6px; left: 0; right: 0; text-align: center;
  font-family: var(--sans); font-size: 0.65rem; font-weight: 700; line-height: 1;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 2px;
}
.luecke.platz.fremd { border-color: var(--falsch); color: var(--falsch); }
.luecke.platz.falsch-geraten { border-color: var(--falsch); color: var(--falsch); background: #e8826a18; }
.regal-leer { color: var(--pergament-dim); padding: 1rem 0; }

/* ───────── Ergebnis ───────── */
.ergebnis {
  margin: 1rem 0 0; padding: 0.9rem 1rem; border-radius: 6px;
  background: var(--lesesaal-hell); border-left: 5px solid var(--gold);
}
.ergebnis.falsch { border-left-color: var(--falsch); }
.ergebnis strong { font-family: var(--serif); font-size: var(--s1); display: block; margin-bottom: 0.15rem; }
.bonus {
  display: flex; align-items: center; gap: 0.75rem; margin-top: 0.9rem; padding: 0.75rem 0.9rem;
  border-radius: 6px; border: 2px solid var(--lesesaal-hell); cursor: pointer;
}
.bonus input { width: 1.4rem; height: 1.4rem; accent-color: var(--gold); flex: none; }

/* Einspruch */
.einspruch { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 6px; background: var(--lesesaal-hell); }
.einspruch .wahl { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.einspruch .wahl .knopf { min-height: 2.5rem; padding: 0.4rem 0.9rem; }

/* ───────── Start ───────── */
.start-kopf { margin: 0.5rem 0 1.25rem; }
.start-kopf p { font-family: var(--serif); font-size: var(--s1); margin-top: 0.5rem; max-width: 26rem; }
.deko-regal { margin: 0 0 1.75rem; }
.feld { margin: 1.5rem 0; }
.feld > h3 { margin-bottom: 0.6rem; }
.spieler-liste { display: grid; gap: 0.5rem; }
.spieler-zeile { display: flex; gap: 0.5rem; }
.eingabe {
  flex: 1; min-height: 3rem; padding: 0.5rem 0.75rem; border-radius: 6px;
  border: 2px solid var(--lesesaal-hell); background: var(--lesesaal-tief); color: var(--pergament);
}
.eingabe::placeholder { color: #b8b49f99; }
.eingabe:focus { border-color: var(--gold); outline: none; }
.weg { width: 3rem; flex: none; border-radius: 6px; border: 2px solid var(--lesesaal-hell); background: none; cursor: pointer; color: var(--pergament-dim); font-size: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.45rem 0.85rem; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--lesesaal-hell); background: transparent; color: var(--pergament-dim);
}
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--pergament); background: #d6b25e1f; }
.chip .anz { font-size: var(--s-1); opacity: 0.75; margin-left: 0.2rem; }
.stepper { display: inline-flex; align-items: center; gap: 0.25rem; border: 2px solid var(--lesesaal-hell); border-radius: 6px; }
.stepper button { width: 2.75rem; height: 2.75rem; background: none; border: 0; cursor: pointer; font-size: 1.3rem; color: var(--gold-hell); }
.stepper output { min-width: 2.5rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.modus { display: grid; gap: 0.5rem; }
.modus label {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0.9rem; border-radius: 6px;
  border: 2px solid var(--lesesaal-hell); cursor: pointer;
}
.modus label:has(input:checked) { border-color: var(--gold); }
.modus input { accent-color: var(--gold); margin-top: 0.3rem; }
.modus small { display: block; color: var(--pergament-dim); }
.schalter { display: flex; gap: 0.75rem; align-items: center; cursor: pointer; }
.schalter input { width: 1.25rem; height: 1.25rem; accent-color: var(--gold); }

details.regeln { margin-top: 2rem; border-top: 1px solid var(--lesesaal-hell); padding-top: 1rem; }
details.regeln summary { cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: var(--s1); color: var(--gold-hell); }
details.regeln ol, details.regeln ul { padding-left: 1.25rem; }
details.regeln li { margin-bottom: 0.4rem; }
.fehler { color: var(--falsch); font-weight: 500; margin-top: 0.5rem; }
.fuss { margin-top: 2rem; font-size: var(--s-1); color: var(--pergament-dim); }

/* ───────── Blatt (Overlay) ───────── */
.blatt-hintergrund { position: fixed; inset: 0; background: #0009; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.blatt {
  width: 100%; max-width: 34rem; max-height: 88dvh; overflow-y: auto;
  background: var(--lesesaal); border-top: 3px solid var(--gold); border-radius: 10px 10px 0 0;
  padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
}
.blatt-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.blatt .menue { display: grid; gap: 0.5rem; }

/* ───────── Sieg ───────── */
.sieg { text-align: left; }
.sieg .krone { font-family: var(--serif); font-size: var(--s4); font-weight: 800; font-style: italic; color: var(--gold); line-height: 1.05; margin: 1rem 0 0.5rem; }
.rangliste { list-style: none; padding: 0; margin: 1rem 0; }
.rangliste li { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--lesesaal-hell); }

@media (prefers-reduced-motion: reduce) {
  .umdrehen, .ruecken.neu { animation: none; }
}
@media (min-width: 40rem) {
  :root { --regal-zeile: 172px; }
  .seite { padding-top: 2rem; }
}

/* ───────── Vorlesen ───────── */
.vorlese-knopf {
  display: inline-flex; align-items: center; gap: 0.65rem;
  min-height: 3rem; padding: 0.35rem 1.1rem 0.35rem 0.4rem;
  border-radius: 999px; border: 2px solid var(--gold); background: transparent;
  color: var(--gold-hell); font-weight: 700; cursor: pointer;
}
.vorlese-knopf:hover { background: #ffffff10; }
.vorlese-knopf .kreis {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; flex: none;
  background: var(--gold); color: var(--lesesaal-tief);
  display: grid; place-items: center;
}
.vorlese-knopf svg { width: 0.95rem; height: 0.95rem; margin-left: 2px; }
.vorlese-knopf .balken { display: none; gap: 2px; align-items: flex-end; height: 0.95rem; }
.vorlese-knopf .balken i { display: block; width: 3px; height: 100%; background: currentColor; border-radius: 1px; transform-origin: bottom; animation: balken 0.9s ease-in-out infinite; }
.vorlese-knopf .balken i:nth-child(2) { animation-delay: -0.3s; }
.vorlese-knopf .balken i:nth-child(3) { animation-delay: -0.6s; }
.vorlese-knopf.spricht .play { display: none; }
.vorlese-knopf.spricht .balken { display: flex; }
@keyframes balken { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.vorlese-knopf.gross { min-height: 3.75rem; font-size: var(--s1); padding-right: 1.5rem; }
.vorlese-knopf.gross .kreis { width: 2.9rem; height: 2.9rem; }
.unter-karte { display: flex; gap: 0.75rem 1rem; flex-wrap: wrap; align-items: center; margin-top: 0.9rem; }

/* Verdeckter Hinweis (nur anhören) */
.verdeckt {
  display: block; width: 100%; margin: 0.95rem 0 0; min-height: 5.25rem;
  border: 0; background: transparent; cursor: pointer; text-align: left; padding: 0;
  font-family: var(--serif); font-style: italic; font-size: var(--s1); line-height: 1.75rem; color: var(--tinte-dim);
}
.verdeckt .striche { display: block; height: 0.55rem; margin: 0.6rem 0 0.6rem; border-radius: 3px; background: #23273318; }
.verdeckt .striche.kurz { width: 62%; }

/* ───────── Startseite: Wahl Analog / Digital ───────── */
.wahl { display: grid; gap: 0.9rem; margin-top: 0.75rem; }
.wahl-karte {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 1.1rem 1.1rem 1.2rem; border-radius: 6px;
  border: 2px solid var(--lesesaal-hell); background: var(--lesesaal-tief); color: var(--pergament);
}
.wahl-karte:hover { border-color: var(--gold); }
.wahl-karte .w-titel { font-family: var(--serif); font-weight: 800; font-size: var(--s2); color: var(--gold); line-height: 1.1; display: block; }
.wahl-karte .w-text { display: block; margin-top: 0.4rem; color: var(--pergament-dim); }
.fortsetzen { display: grid; gap: 0.5rem; margin: 0 0 1.5rem; }
.fortsetzen .knopf { justify-content: space-between; text-align: left; }
.fortsetzen .knopf small { font-weight: 400; opacity: 0.8; }

.zurueck { display: inline-block; margin: 0 0 0.75rem -0.25rem; font-size: var(--s0); }

/* ───────── Versionen wie Buchcover ───────── */
.versionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1.25rem; }
.version {
  position: relative; aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  padding: 1.5rem 0.85rem 1.1rem 1.35rem; border: 0; border-radius: 3px 8px 8px 3px;
  background: var(--c); color: var(--gold-hell);
  box-shadow: inset 9px 0 0 #00000030, inset 10px 0 0 #ffffff12, 0 8px 18px #0005;
}
.version::before, .version::after {
  content: ""; position: absolute; left: 1.35rem; right: 0.85rem; height: 4px;
  border-top: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); opacity: 0.85;
}
.version::before { top: 0.75rem; }
.version::after { bottom: 0.75rem; }
.version:focus-visible { outline-offset: 4px; }
.version .v-name { font-family: var(--serif); font-weight: 800; font-size: 1.3rem; line-height: 1.08; hyphens: manual; }
.nw { white-space: nowrap; }
.version .v-text { font-family: var(--serif); font-style: italic; font-size: 0.95rem; line-height: 1.3; color: var(--pergament); margin-top: 0.5rem; }
.version .v-zahl { margin-top: auto; font-size: var(--s-1); color: var(--pergament-dim); }
.version.gross { grid-column: 1 / -1; aspect-ratio: auto; min-height: 10.5rem; }
.version.gross .v-name { font-size: var(--s3); }
.version .v-weiter { font-size: var(--s-1); color: var(--gold-hell); font-weight: 700; margin-top: 0.25rem; }

.version-kopf { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.5rem; }
.version-mini {
  flex: none; width: 2.6rem; height: 3.5rem; border-radius: 2px 4px 4px 2px; background: var(--c);
  box-shadow: inset 4px 0 0 #00000030; position: relative;
}
.version-mini::before { content: ""; position: absolute; left: 8px; right: 5px; top: 6px; border-top: 1.5px solid var(--gold); }
.version-mini::after { content: ""; position: absolute; left: 8px; right: 5px; bottom: 6px; border-top: 1.5px solid var(--gold); }
.version-kopf h2 { font-size: var(--s2); }
.version-kopf p { margin: 0.1rem 0 0; }

/* ───────── Analog ───────── */
.zaehler { display: flex; justify-content: space-between; align-items: baseline; margin: 0.25rem 0 0.75rem; }
.zaehler strong { font-family: var(--serif); font-size: var(--s1); }
.einstellungen { display: grid; gap: 0.75rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--lesesaal-hell); }
.fertig { text-align: left; padding: 1rem 0; }
