/* jocuris: Designsystem. Schulheft im Hellmodus (Karopapier, Tinte, Textmarker), Tafel im Dunkelmodus. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url('../fonts/bricolage-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url('../fonts/bricolage-var-latinext.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../fonts/figtree-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../fonts/figtree-var-latinext.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dm-mono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/dm-mono-500-latin.woff2') format('woff2'); }

/* Farben und Maße. Das Heft: */
:root {
  --papier: #FAFAF6;
  --karo: #E2E7EF;
  --blatt: #FFFFFF;
  --blatt-2: #F3F5F9;
  --tinte: #1E3FB3;
  --tinte-hell: #E8EDFB;
  --text: #22262E;
  --text-leise: #5E6673;
  --linie: #CBD2DC;
  --marker: #E9FF5A;
  --marker-text: #22262E;
  --rotstift: #D7263D;
  --rotstift-hell: #FDE8EB;
  --gruen: #1F9D55;
  --gruen-hell: #E3F6EA;
  --rand: #F2B0B0;
  --schatten: var(--text);
  --akzent: #1E3FB3;
  --akzent-text: #FFFFFF;
  --reiter: #FFD166;
  --schrift-anzeige: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --schrift-text: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --schrift-mono: 'DM Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --karo-groesse: 28px;
  --text-basis: 1.0625rem;
  --knopf-min: 3rem;
  --radius: .9rem;
  --breite: 72rem;
  color-scheme: light;
}

/* Die Tafel: */
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="heft"]) {
    --papier: #0F1F1B; --karo: #1A3128; --blatt: #152A24; --blatt-2: #1B352E;
    --tinte: #A6BCFF; --tinte-hell: #1F3457; --text: #EDEBE3; --text-leise: #A9B3AE; --linie: #2E4C42;
    --marker: #E9FF5A; --marker-text: #22262E; --rotstift: #FF6B7A; --rotstift-hell: #4A2026;
    --gruen: #4BD38A; --gruen-hell: #1C3F2E; --rand: #5C3A3A; --akzent-text: #FFFFFF;
    color-scheme: dark;
  }
}
:root[data-thema="tafel"] {
  --papier: #0F1F1B; --karo: #1A3128; --blatt: #152A24; --blatt-2: #1B352E;
  --tinte: #A6BCFF; --tinte-hell: #1F3457; --text: #EDEBE3; --text-leise: #A9B3AE; --linie: #2E4C42;
  --marker: #E9FF5A; --marker-text: #22262E; --rotstift: #FF6B7A; --rotstift-hell: #4A2026;
  --gruen: #4BD38A; --gruen-hell: #1C3F2E; --rand: #5C3A3A; --akzent-text: #FFFFFF;
  color-scheme: dark;
}

/* Jahrgang 5 bis 8: größere Schrift, größere Knöpfe. */
body[data-alter="5-8"] { --text-basis: 1.1875rem; --knopf-min: 4rem; }
body[data-alter="8-12"] { --text-basis: 1.125rem; --knopf-min: 3.5rem; }

/* Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 var(--text-basis)/1.6 var(--schrift-text);
  color: var(--text);
  background-color: var(--papier);
  background-image: linear-gradient(var(--karo) 1px, transparent 1px), linear-gradient(90deg, var(--karo) 1px, transparent 1px);
  background-size: var(--karo-groesse) var(--karo-groesse);
  background-position: center top;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: inline-block; vertical-align: middle; }
a { color: var(--tinte); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--marker); }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--schrift-anzeige); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .6rem; font-variation-settings: 'opsz' 96, 'wdth' 100; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.5; color: var(--text); max-width: 42rem; }
.leise { color: var(--text-leise); }
.mono { font-family: var(--schrift-mono); font-variant-numeric: tabular-nums; }
.schmal { max-width: 46rem; }
.versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
ul.liste, ol.liste { padding-left: 1.3rem; }
.liste li { margin: 0 0 .45rem; }

/* Der Textmarker: die eine laute Geste der Seite. */
.marker {
  display: inline;
  padding: 0 .22em;
  margin: 0 -.08em;
  background-color: transparent;
  background-image: linear-gradient(100deg, transparent 0, transparent .3em, var(--marker) .42em, var(--marker) calc(100% - .42em), transparent calc(100% - .3em));
  background-repeat: no-repeat;
  background-size: 100% .6em;
  background-position: 0 70%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:root[data-thema="tafel"] .marker, :root:not([data-thema="heft"]) .marker { color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-thema="heft"]) .marker { --marker: rgba(233, 255, 90, .32); } }
:root[data-thema="tafel"] .marker { --marker: rgba(233, 255, 90, .32); }
:root[data-thema="heft"] .marker { --marker: #E9FF5A; }
.marker.animiert { background-size: 0% .6em; animation: markern .9s .35s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes markern { to { background-size: 100% .6em; } }

/* Seite und Heftrand */
.seite { width: min(100% - 2rem, var(--breite)); margin: 0 auto; flex: 1 0 auto; position: relative; padding: 1.5rem 0 3rem; }
@media (min-width: 64rem) {
  .seite::before { content: ''; position: absolute; left: -2.2rem; top: -1.5rem; bottom: 0; width: 2px; background: var(--rand); opacity: .9; }
}
.abschnitt { margin: 3rem 0; }
.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.3rem; }
.abschnitt-kopf h2 { margin: 0; }
.augenbraue { font: 600 .8rem/1.4 var(--schrift-text); letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); margin: 0 0 .4rem; }
.augenbraue.akzent { color: var(--akzent); }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--papier) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--text); }
.kopf-innen { width: min(100% - 2rem, var(--breite)); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: .6rem 0; }
.logo { font: 800 1.55rem/1 var(--schrift-anzeige); letter-spacing: -.03em; color: var(--text); text-decoration: none; font-variation-settings: 'opsz' 96; }
.logo .marker { padding: 0 .18em; }
.kopf-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-left: auto; align-items: center; }
.kopf-nav a, .kopf-nav button { font: 600 .9rem/1 var(--schrift-text); color: var(--text); text-decoration: none; padding: .55rem .75rem; border-radius: .55rem; border: 2px solid transparent; background: transparent; cursor: pointer; }
.kopf-nav a:hover, .kopf-nav button:hover { border-color: var(--text); }
.kopf-nav a[aria-current="page"] { background: var(--text); color: var(--papier); }
.kopf-nav .reiter-link { border-color: var(--linie); border-bottom-width: 4px; }
.kopf-nav .reiter-link[aria-current="page"] { border-color: var(--text); }
.kopf-nav .reiter-link span { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--reiter); margin-right: .4em; border: 1px solid var(--text); }
.thema-knopf svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 40rem) {
  .kopf { position: static; backdrop-filter: none; background: var(--papier); }
  .kopf-innen { gap: .4rem .75rem; padding: .5rem 0; }
  .kopf-nav { width: 100%; margin-left: 0; gap: .3rem; }
  .kopf-nav a, .kopf-nav button { padding: .4rem .5rem; font-size: .8rem; }
  .kopf-nav .thema-knopf { margin-left: auto; }
}

/* Brotkrumen */
.brotkrumen { font-size: .9rem; color: var(--text-leise); margin: 0 0 1rem; }
.brotkrumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.brotkrumen li + li::before { content: '›'; margin-right: .35rem; }
.brotkrumen a { color: inherit; }

/* Held */
.held { padding: 2.5rem 0 1.5rem; display: grid; gap: 1.5rem; }
.held h1 { max-width: 16ch; }
.held .lead { max-width: 38rem; }
.held-zeile { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; color: var(--text-leise); font-size: .95rem; }
.held-zeile strong { color: var(--text); font-family: var(--schrift-mono); font-weight: 500; }
@media (min-width: 60rem) { .held { padding: 4rem 0 2rem; } }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--knopf-min); padding: .6rem 1.25rem; border: 2px solid var(--text); border-radius: .75rem; background: var(--blatt); color: var(--text); font: 700 1rem/1.2 var(--schrift-text); text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--schatten); transition: transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.knopf:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--schatten); }
.knopf:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--schatten); }
.knopf:disabled { opacity: .55; cursor: default; transform: none; box-shadow: 3px 3px 0 var(--schatten); }
.knopf-marker { background: var(--marker); color: var(--marker-text); }
.knopf-marker { --marker: #E9FF5A; }
.knopf-tinte { background: var(--tinte); color: #fff; border-color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-thema="heft"]) .knopf-tinte { color: #0F1F1B; } }
:root[data-thema="tafel"] .knopf-tinte { color: #0F1F1B; }
.knopf-leise { background: transparent; box-shadow: none; border-color: var(--linie); font-weight: 600; }
.knopf-leise:hover { border-color: var(--text); transform: none; box-shadow: none; }
.knopf-klein { min-height: 2.4rem; padding: .35rem .8rem; font-size: .9rem; box-shadow: 2px 2px 0 var(--schatten); }
.knopf-rund { width: 2.6rem; min-height: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; }
.knopf svg { width: 1.2em; height: 1.2em; }
.knopf-gross { font-size: 1.2rem; padding: .9rem 1.8rem; }
.knopfzeile { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Etiketten */
.etikett { display: inline-flex; align-items: center; gap: .35rem; font: 600 .78rem/1 var(--schrift-text); letter-spacing: .04em; padding: .35rem .6rem; border-radius: .5rem; border: 1.5px solid var(--text); background: var(--blatt); color: var(--text); white-space: nowrap; }
.etikett-reiter { background: var(--reiter); color: #22262E; }
.etikett-akzent { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.etikett-mono { font-family: var(--schrift-mono); letter-spacing: 0; font-weight: 500; }
.etikettzeile { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Register: die Jahrgänge als Ordner-Reiter */
.register { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: stretch; }
.reiter { display: block; position: relative; padding-top: 1.75rem; text-decoration: none; color: var(--text); transition: transform .15s ease; }
.reiter-lasche { position: absolute; top: 2px; left: 1rem; z-index: 1; background: var(--reiter); color: #22262E; border: 2px solid var(--text); border-bottom: 0; border-radius: .6rem .6rem 0 0; padding: .35rem .9rem .3rem; font: 700 .8rem/1.4 var(--schrift-text); letter-spacing: .1em; text-transform: uppercase; }
.reiter-karte { display: flex; flex-direction: column; gap: .3rem; height: 100%; border: 2px solid var(--text); border-radius: 0 var(--radius) var(--radius) var(--radius); background: var(--blatt); padding: 1.25rem 1.25rem 1.1rem; box-shadow: 4px 4px 0 var(--schatten); transition: box-shadow .15s ease; }
.reiter:hover { transform: translate(-2px, -2px); }
.reiter:hover .reiter-karte { box-shadow: 6px 6px 0 var(--schatten); }
.reiter-alter { font: 800 clamp(2.4rem, 2rem + 1.5vw, 3.2rem)/1 var(--schrift-anzeige); letter-spacing: -.03em; font-variation-settings: 'opsz' 96; }
.reiter-jahre { font: 600 .85rem/1 var(--schrift-text); letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); margin-bottom: .6rem; }
.reiter-motto { color: var(--text); font-size: .97rem; line-height: 1.5; flex: 1; }
.reiter-zahl { margin-top: .8rem; font: 500 .85rem/1 var(--schrift-mono); color: var(--text-leise); display: flex; justify-content: space-between; align-items: center; }
.reiter-zahl .sterne { gap: .15rem; }

/* Kacheln: die Kategorien */
.kacheln { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.kachel { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.1rem 1.1rem 1rem; border: 2px solid var(--text); border-radius: var(--radius); background: var(--blatt); color: var(--text); text-decoration: none; box-shadow: 3px 3px 0 var(--akzent); transition: transform .15s ease, box-shadow .15s ease; }
.kachel:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--akzent); }
.kachel-symbol { width: 3.2rem; height: 3.2rem; border-radius: .8rem; background: var(--akzent); color: var(--akzent-text); display: grid; place-items: center; border: 2px solid var(--text); }
.kachel-symbol svg { width: 1.8rem; height: 1.8rem; }
.kachel h3 { margin: .1rem 0 .2rem; }
.kachel p { margin: 0; color: var(--text-leise); font-size: .95rem; }
.kachel .kachel-zahl { margin-top: .5rem; font: 500 .8rem/1 var(--schrift-mono); color: var(--text-leise); }

/* Karten: die Spiele */
.karten { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.karte { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.1rem 1rem; border: 2px solid var(--text); border-top: 8px solid var(--akzent); border-radius: var(--radius); background: var(--blatt); color: var(--text); text-decoration: none; box-shadow: 3px 3px 0 var(--schatten); transition: transform .15s ease, box-shadow .15s ease; }
.karte:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--schatten); }
.karte h3 { margin: .2rem 0 0; }
.karte p { margin: 0; color: var(--text-leise); font-size: .95rem; flex: 1; }
.karte-fuss { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; font: 500 .8rem/1 var(--schrift-mono); color: var(--text-leise); }
.karte-bald { opacity: .6; }
.karte-bald::after { content: 'pronto'; position: absolute; top: .6rem; right: .8rem; font: 600 .7rem/1 var(--schrift-text); letter-spacing: .1em; text-transform: uppercase; color: var(--text-leise); }

/* Sterne */
.sterne { display: inline-flex; gap: .2rem; }
.sterne svg { width: 1.1em; height: 1.1em; fill: none; stroke: var(--text); stroke-width: 1.6; }
.sterne svg.voll { fill: var(--marker); --marker: #E9FF5A; }

/* Gruppe je Kategorie auf Jahrgangsseiten */
.gruppe { margin: 2rem 0; }
.gruppe-kopf { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.gruppe-kopf .kachel-symbol { width: 2.4rem; height: 2.4rem; border-radius: .6rem; }
.gruppe-kopf .kachel-symbol svg { width: 1.3rem; height: 1.3rem; }
.gruppe-kopf h2 { margin: 0; font-size: 1.4rem; }
.gruppe-kopf a { margin-left: auto; font-size: .9rem; }

/* Texttafeln */
.tafel { border: 2px solid var(--text); border-radius: var(--radius); background: var(--blatt); padding: 1.4rem; box-shadow: 4px 4px 0 var(--schatten); }
.tafel-akzent { border-left: 10px solid var(--akzent); }
.tafel h2, .tafel h3 { margin-top: 0; }
.spalten { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.zahlen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.zahl { border: 2px solid var(--text); border-radius: var(--radius); background: var(--blatt); padding: 1rem 1.1rem; }
.zahl strong { display: block; font: 800 2.4rem/1 var(--schrift-anzeige); letter-spacing: -.03em; }
.zahl span { color: var(--text-leise); font-size: .9rem; }

/* Fortschritt */
.fortschritt { height: .7rem; border: 2px solid var(--text); border-radius: 1rem; background: var(--blatt); overflow: hidden; }
.fortschritt > span { display: block; height: 100%; width: 0; background: var(--akzent); transition: width .4s ease; }
@media (prefers-color-scheme: dark) { :root:not([data-thema="heft"]) .fortschritt > span { background: #E9FF5A; } }
:root[data-thema="tafel"] .fortschritt > span { background: #E9FF5A; }

/* Spielbühne */
.spiel { margin: 1.5rem 0 2rem; }
.spiel-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding: .55rem .9rem; border: 2px solid var(--text); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--text); color: var(--papier); font: 500 .95rem/1 var(--schrift-mono); font-variant-numeric: tabular-nums; }
.hud { display: inline-flex; align-items: baseline; gap: .4rem; }
.hud b { font-weight: 500; font-size: 1.15rem; }
.hud small { font: 600 .68rem/1 var(--schrift-text); letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.hud.knapp b { color: #E9FF5A; animation: blinken 1s steps(1) infinite; }
.spiel-kopf .knopfzeile { margin-left: auto; gap: .4rem; }
.spiel-kopf .knopf { min-height: 2.2rem; height: 2.2rem; width: 2.2rem; padding: 0; border-radius: .5rem; border-color: var(--papier); background: transparent; color: var(--papier); box-shadow: none; }
.spiel-kopf .knopf:hover { background: var(--papier); color: var(--text); transform: none; }
.spiel-kopf .knopf[aria-pressed="false"] { opacity: .55; }
/* Bühne und Schleier teilen sich dieselbe Rasterzelle: Der Rahmen wächst mit dem höheren von beiden,
   so wird die Startfläche auf schmalen Bildschirmen nie abgeschnitten. */
.buehne-rahmen { position: relative; display: grid; border: 2px solid var(--text); border-radius: 0 0 var(--radius) var(--radius); background: var(--blatt); box-shadow: 4px 4px 0 var(--schatten); overflow: hidden; }
.buehne-rahmen > .buehne, .buehne-rahmen > .schleier { grid-area: 1 / 1; }
.buehne { position: relative; min-height: clamp(22rem, 62vh, 40rem); padding: 1rem 1rem 2.6rem; outline: none; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.buehne.leinwand { padding: 0; }
.buehne canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.buehne-hinweis { position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem 1rem; font: 600 .9rem/1.3 var(--schrift-text); text-align: center; color: var(--text-leise); pointer-events: none; }
.spiel:fullscreen { background: var(--papier); padding: 1rem; display: flex; flex-direction: column; }
.spiel:fullscreen .buehne-rahmen { flex: 1; display: flex; flex-direction: column; }
.spiel:fullscreen .buehne { flex: 1; min-height: 0; }

/* Schleier: Start- und Ergebnisfläche über der Bühne */
.schleier { position: relative; z-index: 5; display: grid; place-items: center; padding: 1rem; background: color-mix(in srgb, var(--blatt) 86%, transparent); backdrop-filter: blur(3px); }
.schleier[hidden] { display: none; }
.schleier-panel { width: min(100%, 34rem); border: 2px solid var(--text); border-radius: var(--radius); background: var(--blatt); padding: 1.4rem 1.4rem 1.3rem; box-shadow: 5px 5px 0 var(--schatten); display: grid; gap: .9rem; }
.schleier-panel h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.schleier-panel .liste { margin: 0; font-size: .97rem; }
.stufen { display: flex; gap: .5rem; flex-wrap: wrap; }
.stufen button { flex: 1 1 6rem; min-height: 2.8rem; border: 2px solid var(--linie); border-radius: .6rem; background: var(--blatt); font: 700 .95rem/1 var(--schrift-text); cursor: pointer; }
.stufen button[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--papier); }
.ergebnis-sterne { display: flex; justify-content: center; gap: .5rem; }
.ergebnis-sterne svg { width: 3.2rem; height: 3.2rem; fill: none; stroke: var(--text); stroke-width: 1.4; opacity: .35; }
.ergebnis-sterne svg.voll { fill: var(--marker); --marker: #E9FF5A; opacity: 1; animation: stempel .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.ergebnis-sterne svg.voll:nth-child(2) { animation-delay: .15s; }
.ergebnis-sterne svg.voll:nth-child(3) { animation-delay: .3s; }
@keyframes stempel { from { transform: scale(1.7) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ergebnis-zahl { text-align: center; font: 500 3rem/1 var(--schrift-mono); letter-spacing: -.02em; }
.ergebnis-zahl small { display: block; font: 600 .75rem/1.4 var(--schrift-text); letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); margin-top: .35rem; }
.ergebnis-details { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .5rem; }
.ergebnis-details li { border: 1.5px solid var(--linie); border-radius: .6rem; padding: .5rem .7rem; font-size: .9rem; display: grid; gap: .1rem; }
.ergebnis-details b { font: 500 1.15rem/1.2 var(--schrift-mono); }
.ergebnis-details small { color: var(--text-leise); font-size: .78rem; }
.ergebnis-rekord { text-align: center; font-weight: 700; color: var(--gruen); margin: 0; }
.schleier-panel .knopfzeile { justify-content: center; }

/* Gemeinsame Bausteine für Spiele */
.frage { font: 700 clamp(1.3rem, 1.1rem + 1.2vw, 2rem)/1.3 var(--schrift-anzeige); letter-spacing: -.01em; margin: 0 0 1.2rem; text-align: center; text-wrap: balance; }
.frage-gross { font-size: clamp(2.2rem, 1.6rem + 3vw, 4.4rem); }
.antworten { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.antworten-2 { grid-template-columns: repeat(2, 1fr); }
.antwort { min-height: var(--knopf-min); padding: .7rem 1rem; border: 2px solid var(--text); border-radius: .75rem; background: var(--blatt); color: var(--text); font: 600 1.05rem/1.3 var(--schrift-text); cursor: pointer; box-shadow: 3px 3px 0 var(--schatten); transition: transform .1s ease, box-shadow .1s ease, background .15s ease; text-align: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.antwort:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--schatten); }
.antwort:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--schatten); }
.antwort.richtig { background: var(--gruen-hell); border-color: var(--gruen); box-shadow: 3px 3px 0 var(--gruen); }
.antwort.falsch { background: var(--rotstift-hell); border-color: var(--rotstift); box-shadow: 3px 3px 0 var(--rotstift); }
.antwort:disabled { cursor: default; }
.antwort .taste { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1.5px solid var(--linie); border-radius: .35rem; font: 500 .75rem/1 var(--schrift-mono); margin-right: .5rem; vertical-align: middle; color: var(--text-leise); }
.erklaerung { margin: 1rem 0 0; padding: .9rem 1rem; border-left: 6px solid var(--akzent); background: var(--blatt-2); border-radius: 0 .6rem .6rem 0; font-size: .97rem; }
.erklaerung.richtig { border-color: var(--gruen); }
.erklaerung.falsch { border-color: var(--rotstift); }
.zaehler { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; font: 500 .9rem/1 var(--schrift-mono); color: var(--text-leise); }
.raster { display: grid; gap: .5rem; width: min(100%, 32rem); margin: 0 auto; }
.feld { aspect-ratio: 1; border: 2px solid var(--text); border-radius: .6rem; background: var(--blatt); cursor: pointer; font: 600 1.2rem/1 var(--schrift-text); display: grid; place-items: center; transition: background .12s ease, transform .1s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; padding: 0; }
.feld:active { transform: scale(.96); }
.feld.an { background: var(--marker); --marker: #E9FF5A; color: #22262E; }
.feld.richtig { background: var(--gruen); color: #fff; border-color: var(--gruen); }
.feld.falsch { background: var(--rotstift); color: #fff; border-color: var(--rotstift); }
.feld.leise { opacity: .35; }
.zahlenfeld { display: grid; grid-template-columns: repeat(3, minmax(3.5rem, 5rem)); gap: .5rem; justify-content: center; margin-top: 1rem; }
.zahlenfeld button { min-height: var(--knopf-min); border: 2px solid var(--text); border-radius: .7rem; background: var(--blatt); color: var(--text); font: 500 1.4rem/1 var(--schrift-mono); cursor: pointer; box-shadow: 2px 2px 0 var(--schatten); touch-action: manipulation; }
.zahlenfeld button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--schatten); }
.zahlenfeld .breit { grid-column: span 2; }
.eingabe { text-align: center; font: 500 2.4rem/1.2 var(--schrift-mono); min-height: 3rem; border-bottom: 3px solid var(--text); margin: 0 auto 1rem; width: min(100%, 14rem); letter-spacing: .05em; }
.eingabe .cursor { display: inline-block; width: 2px; height: 1em; background: var(--tinte); vertical-align: -.1em; animation: blinken 1s steps(1) infinite; }
@keyframes blinken { 50% { opacity: 0; } }
.mitte { display: grid; place-items: center; text-align: center; min-height: 100%; gap: 1rem; }
.gross { font: 800 clamp(3rem, 2rem + 6vw, 7rem)/1 var(--schrift-anzeige); letter-spacing: -.04em; }
.gruen { color: var(--gruen); }
.rot { color: var(--rotstift); }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; min-height: var(--knopf-min); padding: .3rem .7rem; border: 2px solid var(--text); border-radius: .6rem; background: var(--blatt); font: 600 1.05rem/1 var(--schrift-text); cursor: pointer; box-shadow: 2px 2px 0 var(--schatten); touch-action: manipulation; }
.chip.gesetzt { background: var(--tinte-hell); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.wackeln { animation: wackeln .35s ease; }
@keyframes wackeln { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.puls { animation: puls .5s ease; }
@keyframes puls { 50% { transform: scale(1.08); } }

/* Spielseite: Erklärungen unter der Bühne */
.spiel-info { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 2rem 0; }
.spiel-info .tafel { box-shadow: none; }
.spiel-info ol { margin: 0; padding-left: 1.2rem; }
.spiel-info li { margin-bottom: .4rem; }
.spiel-meta { display: grid; gap: .4rem; font-size: .95rem; }
.spiel-meta div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--linie); padding: .3rem 0; }
.spiel-meta dt { color: var(--text-leise); margin: 0; }
.spiel-meta dd { margin: 0; text-align: right; font-weight: 600; }

/* Fußzeile */
.fuss { border-top: 2px solid var(--text); background: var(--blatt); margin-top: 2rem; }
.fuss-innen { width: min(100% - 2rem, var(--breite)); margin: 0 auto; padding: 2rem 0 1.6rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); font-size: .92rem; }
.fuss h3 { font: 700 .8rem/1.4 var(--schrift-text); letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); margin: 0 0 .6rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss-unten { width: min(100% - 2rem, var(--breite)); margin: 0 auto; padding: 1rem 0 1.5rem; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; color: var(--text-leise); }
.netz-verbund { margin: 0; }
.netz-verbund a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Rechtstexte */
.text h2 { font-size: 1.4rem; margin-top: 2rem; }
.text h3 { font-size: 1.1rem; margin-top: 1.4rem; }

/* Bewegung nur, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .marker.animiert { background-size: 100% .6em; }
}
@media print { .kopf, .fuss, .spiel { display: none; } }
