/* Das neue Regelheft (App 215, REGELHEFT-PLAN.md §4 Gestaltungssystem; Muster vom 11.10.2026 vom Autor abgenommen).
   Grundlage bleibt style.css (Farben, Schriften Fredoka/Nunito, Kopf, Knoepfe, Kontrast, "Bewegung aus").
   Hier nur das Heft: Blatt, Frage, Bild, Sprechblase, Kernsaetze, Beispiel, Kaesten, Haken, Schatzkarte.
   Beutearten-Farben wie data/cards.mjs; Karten und Wortkarten stehen immer auf Elfenbein mit Tinte (wie gedruckt),
   auch im dunklen Thema. Bewegung nur unter prefers-reduced-motion: no-preference (bewegung.js schaltet die Regel bei
   "Bewegung aus" ab, style.css hat die Notbremse). */
:root { --wolle: #B0121B; --blech: #0072B2; --speck: #E69F00; --glasart: #14100C; --rattenart: #9A6FB0;
  --elfenbein: #F2E8C9; --kartentinte: #2A2118; --gold: #FFD45A; --gold-tief: #8A6A00;
  --blatt: #FFFDF6; --blase: #FFF4D6; --blase-rand: #E7CF8F; --kicker: #46653A; --profi: #EEF4FA; --profi-rand: #9DB6CC;
  --wissen: #FFF1D9; --wissen-rand: #E69F00; --schatten: 0 6px 22px rgba(39, 51, 31, .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --blatt: #222A20; --blase: #3A3624; --blase-rand: #6F6236; --kicker: #9BC088;
  --profi: #24303A; --profi-rand: #4D6478; --wissen: #3B3020; --wissen-rand: #B07A10; --gold-tief: #FFD45A; --schatten: 0 6px 22px rgba(0, 0, 0, .35); } }
:root[data-theme="dark"] { --blatt: #222A20; --blase: #3A3624; --blase-rand: #6F6236; --kicker: #9BC088;
  --profi: #24303A; --profi-rand: #4D6478; --wissen: #3B3020; --wissen-rand: #B07A10; --gold-tief: #FFD45A; --schatten: 0 6px 22px rgba(0, 0, 0, .35); }
html[data-kontrast="hoch"] { --blatt: var(--karte); --blase: var(--karte); --blase-rand: var(--tinte); --profi: var(--karte); --profi-rand: var(--tinte); --wissen: var(--karte); --wissen-rand: var(--tinte); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main.heftbuehne { max-width: 760px; padding: 10px 12px 40px; overflow-x: clip; }
.heftbuehne { font-size: 1.05rem; }

/* Kopf: Schatzkarte rechts */
.heftkartenknopf { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600;
  font-size: .9rem; padding: 6px 10px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .7); min-height: 44px; white-space: nowrap; }
.heftkartenknopf:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* App 320 (axe, N6): vorher heller Schleier rgba(255,255,255,.22) - weiss auf #7E9C70 nur 3,05 : 1. Jetzt dunkler Schleier (Kontrast steigt)
   und eine weisse Linie unten als Zeichen "hier bist du" (nicht nur Farbe). */
.heftkartenknopf[aria-current] { background: rgba(0, 0, 0, .22); border-color: #fff; box-shadow: inset 0 -3px 0 #fff; }
.heftkartenzeichen { width: 20px; height: 20px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-2 6 2 6-2v14l-6 2-6-2-6 2z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3Cpath d='M17 9l2 2m0-2l-2 2' stroke-linecap='round'/%3E%3C/svg%3E"); }
@media (max-width: 400px) { .heftkartentext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .heftkartenknopf { padding: 6px 10px; } #kopfinfo { font-size: .8rem; } }

/* Schatzpfad oben: zehn Steine und eine Truhe */
.pfad { margin: 2px 0 10px; }
.pfadreihe { list-style: none; margin: 0; padding: 8px 4px 4px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.pfadreihe::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 3px dashed var(--linie); transform: translateY(1px); }
.pfadreihe li { position: relative; z-index: 1; }
.pstopp { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font: 700 .72rem/1 "Fredoka", "Nunito", sans-serif;
  background: var(--grund); color: var(--tinte); border: 2px dashed var(--linie); text-decoration: none; }
a.pstopp { border: 2px solid var(--gruen-dunkel); background: var(--karte); width: 32px; height: 32px; font-size: .85rem; }
a.pstopp:hover { background: var(--gruen-hell); }
.pstopp.geknackt { background: radial-gradient(circle at 35% 30%, #FFF0A8, #F2C230 60%, #C99A12); color: #3A2A00; border-color: #A57D0B; }
.pstopp.gesehen { background: radial-gradient(circle at 35% 30%, #FFFFFF, #D9DEE3 60%, #A9B2BA); color: #2A2118; border-color: #7D8790; }
.pstopp.jetzt { transform: scale(1.22); box-shadow: 0 0 0 3px var(--grund), 0 0 0 6px var(--gruen); }
.pstopp.ziel { width: 34px; height: 30px; border-radius: 8px; border-style: solid; }
.ptruhe { width: 22px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Crect x='2' y='8' width='20' height='11' rx='2' fill='%238B5A2B' stroke='%232A2118' stroke-width='1.5'/%3E%3Cpath d='M2 9 Q2 2 12 2 Q22 2 22 9z' fill='%23A86E35' stroke='%232A2118' stroke-width='1.5'/%3E%3Crect x='10' y='8' width='4' height='5' rx='1' fill='%23FFD45A' stroke='%232A2118'/%3E%3C/svg%3E"); }
.pfadtext { margin: 6px 0 0; font-size: .9rem; font-weight: 700; display: flex; align-items: center; gap: 6px; justify-content: center; text-align: center; }
.pfadmuenze { flex: none; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF0A8, #F2C230 60%, #C99A12); border: 1.5px solid #A57D0B; }

/* Das Blatt */
.heftblatt { background: var(--blatt); border-radius: 22px; padding: 16px 16px 20px; box-shadow: var(--schatten); border: 1.5px solid var(--linie); position: relative; }
.kicker { margin: 0; font: 600 .85rem/1.2 "Fredoka", "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--kicker); }
.heftblatt h1 { font-size: clamp(1.75rem, 6.4vw, 2.4rem); line-height: 1.12; margin: 4px 0 12px; }
.heftblatt h1:focus { outline: none; }
.heftblatt h2 { font-size: 1.3rem; }

/* Grosses Bild oben */
.held { position: relative; margin: 0 -4px 14px; border-radius: 18px; overflow: hidden; aspect-ratio: 5 / 3; max-height: 340px; width: calc(100% + 8px); background: #16223F; }
.hszene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hfigur { position: absolute; right: 4%; bottom: 0; height: 92%; width: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.held-tisch .hfigur { right: 2%; height: 96%; }
.held-keller .hfigur { right: 6%; bottom: 6%; height: 62%; }
.hkarten { position: absolute; left: 6%; bottom: 9%; height: 70%; width: 60%; }
.hkarte { position: absolute; height: 100%; width: auto; border-radius: 6%/4.4%; box-shadow: 0 6px 14px rgba(0, 0, 0, .45); transform-origin: 50% 110%; }
.held-tisch .hk0 { left: 0; transform: rotate(-12deg); } .held-tisch .hk1 { left: 18%; transform: rotate(-2deg) translateY(-4%); } .held-tisch .hk2 { left: 36%; transform: rotate(9deg); }
.held-keller .hkarten { left: 8%; bottom: 14%; height: 72%; } .held-keller .hk0 { transform: rotate(-9deg); }
@media (prefers-reduced-motion: no-preference) {
  .hsterne circle { animation: funkeln 3.6s ease-in-out infinite; }
  .hsterne circle:nth-child(3n) { animation-delay: -1.2s; } .hsterne circle:nth-child(3n+1) { animation-delay: -2.4s; }
  .held-keller .hfigur { animation: flitzen 2.8s ease-in-out infinite; }
  .held-nacht .hfigur { animation: schleichen 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
}
@keyframes funkeln { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes flitzen { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(-10px) rotate(-2deg); } }
@keyframes schleichen { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-1.5deg) translateY(-2px); } }

/* Zottel erzaehlt: Gesicht und Sprechblase */
.erzaehlt { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 12px; }
.zottel { flex: none; width: 62px; height: 62px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #CFE0BE; border: 3px solid var(--gruen-dunkel); }
.blase { position: relative; flex: 1; background: var(--blase); border: 2px solid var(--blase-rand); border-radius: 18px; padding: 10px 14px; min-width: 0; }
.blase::before { content: ""; position: absolute; left: -11px; top: 18px; border: 10px solid transparent; border-right-color: var(--blase-rand); border-left: 0; }
.blase::after { content: ""; position: absolute; left: -7px; top: 20px; border: 8px solid transparent; border-right-color: var(--blase); border-left: 0; }
.blase p { margin: 0; font-size: 1.08rem; }
.blasename { display: block; font: 600 .8rem/1.2 "Fredoka", "Nunito", sans-serif; color: var(--kicker); margin-bottom: 2px; letter-spacing: .02em; }
.erzaehlt.klein .zottel { width: 46px; height: 46px; border-width: 2px; }
.erzaehlt.klein .blase { padding: 8px 12px; min-height: 3.6em; }
.erzaehlt.klein .blase p { font-size: 1rem; }

/* Hoechstens vier Saetze, jeder mit einem Beutesymbol */
.kernsaetze { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 10px; }
.kernsaetze li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.14rem; line-height: 1.45; }
.ksym { flex: none; width: 30px; height: 30px; margin-top: 1px; }
.vorlesezeile { margin: 10px 0 4px; }
.stimmechip { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; padding: 4px 10px; border-radius: 999px; border: 1.5px dashed var(--linie); opacity: .9; }
.vsym { width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M15 8q3 4 0 8M18 5q6 7 0 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M15 8q3 4 0 8M18 5q6 7 0 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Beispiel-Kasten */
.zeig { margin: 18px -4px 6px; padding: 14px 12px 12px; border-radius: 20px; background: var(--gruen-hell); border: 2px solid var(--gruen-dunkel); }
.zeig h2 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 1.22rem; }
.zeigicon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gruen-dunkel) no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l13 8-13 8z' fill='white'/%3E%3C/svg%3E"); }
.bsptabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.bsptab { flex: 1 1 160px; font-size: .92rem; }

.tisch { position: relative; border-radius: 16px; padding: 10px 8px 8px; background: radial-gradient(ellipse at 50% 30%, #6B4428, #3E2616); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25), inset 0 6px 18px rgba(0, 0, 0, .35); color: #FFF6E0; }
.trumpfecke { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; margin-bottom: 8px; border-bottom: 2px dashed rgba(255, 246, 224, .25); }
.tkarte { width: 44px; height: auto; border-radius: 4px; transform: rotate(-6deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
.tinfo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; line-height: 1.2; }
.tlabel { font: 600 .8rem/1 "Fredoka", sans-serif; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.tart { display: inline-flex; align-items: center; gap: 5px; font: 600 1.05rem/1 "Fredoka", sans-serif; background: var(--elfenbein); color: var(--kartentinte); padding: 3px 9px 3px 4px; border-radius: 999px; border: 2px solid var(--f); }
.tsym { width: 20px; height: 20px; }
.tinfo small { font-size: .8rem; opacity: .9; }

.rstichreihe { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(4, 1fr); }
.rstichreihe.n3 { grid-template-columns: repeat(3, minmax(0, 120px)); justify-content: center; gap: 12px; }
.rplatz { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.rplatz .slot { margin-top: 6px; }
.rwer { display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative; }
.werbild { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #CFE0BE; border: 2px solid #FFF6E0; }
.wername { font: 600 .85rem/1.1 "Fredoka", sans-serif; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt { position: absolute; top: -4px; right: -14px; width: 20px; height: 20px; border-radius: 50%; background: #FFF6E0 no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 21V5q0-2 2-2h8q2 0 2 2v16' fill='%238B5A2B' stroke='%232A2118' stroke-width='1.6'/%3E%3Ccircle cx='15' cy='12' r='1.4' fill='%23FFD45A'/%3E%3C/svg%3E"); border: 1.5px solid #2A2118; }
.slot { position: relative; width: 100%; aspect-ratio: 400 / 559; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.rleer { width: 100%; height: 100%; border-radius: 8px; border: 2px dashed rgba(255, 246, 224, .45); display: flex; align-items: center; justify-content: center; font: 600 1.6rem/1 "Fredoka", sans-serif; color: rgba(255, 246, 224, .55); }
.rkarte { width: 100%; height: auto; border-radius: 7px; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); display: block; transition: filter var(--t-mittel), opacity var(--t-mittel), transform var(--t-mittel); }
.rplatz.vorn .rkarte { box-shadow: 0 0 0 3px var(--gold), 0 0 14px 4px rgba(255, 212, 90, .55); }
.rplatz.sieger .rkarte { box-shadow: 0 0 0 4px var(--gold), 0 0 22px 8px rgba(255, 212, 90, .75); transform: translateY(-4px) scale(1.04); }
.rplatz.verloren .rkarte { filter: saturate(.5) brightness(.8); }
.rplatz.gefressen .rkarte { filter: grayscale(.8) brightness(.75);
  -webkit-mask-image: radial-gradient(ellipse 32% 23% at 100% 18%, transparent 96%, #000 100%), radial-gradient(ellipse 37% 26.5% at 100% 52%, transparent 96%, #000 100%), radial-gradient(ellipse 42% 30% at 62% 0%, transparent 96%, #000 100%), radial-gradient(ellipse 47% 33.6% at 100% 86%, transparent 96%, #000 100%);
  mask-image: radial-gradient(ellipse 32% 23% at 100% 18%, transparent 96%, #000 100%), radial-gradient(ellipse 37% 26.5% at 100% 52%, transparent 96%, #000 100%), radial-gradient(ellipse 42% 30% at 62% 0%, transparent 96%, #000 100%), radial-gradient(ellipse 47% 33.6% at 100% 86%, transparent 96%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.rkrone { position: absolute; top: -13px; left: 50%; width: 34px; height: 26px; margin-left: -17px; z-index: 3; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M3 22 L1 6 L10 13 L17 2 L24 13 L33 6 L31 22 Z' fill='%23FFD45A' stroke='%232A2118' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='17' cy='16' r='2.6' fill='%23A3392C'/%3E%3C/svg%3E"); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.marke { font: 700 .72rem/1.1 "Nunito", sans-serif; padding: 4px 6px; border-radius: 999px; background: var(--elfenbein); color: var(--kartentinte); border: 2px solid var(--f); max-width: 100%; text-align: center; white-space: nowrap; }
@media (max-width: 420px) { .rstichreihe:not(.n3) .marke { font-size: .64rem; padding: 3px 4px; letter-spacing: -.01em; } }
@media (max-width: 350px) { .rstichreihe:not(.n3) .marke { font-size: .56rem; padding: 3px 2px; letter-spacing: -.02em; } }
.marke.ohne { visibility: hidden; }
.rplatz.sieger .marke { background: var(--gold); border-color: #2A2118; }
.niemand { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%) rotate(-6deg); margin: 0; z-index: 4; padding: 8px 16px; border-radius: 10px;
  background: var(--elfenbein); color: #8A1F14; border: 3px solid #8A1F14; font: 700 1.1rem/1.1 "Fredoka", sans-serif; text-align: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); white-space: nowrap; }

.steuer { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.zurueckschritt { min-width: 48px; min-height: 48px; font-size: 1.1rem; color: var(--tinte); }
.zurueckschritt[disabled] { opacity: .35; cursor: default; }
.rpunkte { display: flex; gap: 4px; flex: 1; justify-content: center; }
.pkt { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--gruen-dunkel); }
.pkt.an { background: var(--gruen-dunkel); }
.hauptschritt { flex: 0 1 auto; white-space: nowrap; background: var(--gruen-dunkel); color: var(--auf-gruen); border-color: var(--gruen-dunkel); font-weight: 700; border-radius: 16px; padding: 10px 12px; font-size: 1rem; }

/* Probier's aus: Prahlrad und Wahl */
.ansagebox { display: flex; align-items: center; gap: 8px; }
.ansagebox .erzaehlt { flex: 1; margin: 0; }
.prahlrad { flex: none; width: 92px; height: 92px; }
.rrand { fill: #6B4428; } .rflaeche { fill: var(--elfenbein); stroke: #2A2118; stroke-width: 1.5; }
.rzahl { font: 700 11px "Fredoka", sans-serif; fill: #2A2118; } .rzahl.an { fill: #A3392C; font-size: 15px; }
.rzeiger { stroke: #A3392C; stroke-width: 4; stroke-linecap: round; } .rnabe { fill: #2A2118; }
.wahlreihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 6px; }
.wahl { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 6px; border-radius: 16px; font-weight: 700; }
.wzahl { font: 600 1.8rem/1.1 "Fredoka", sans-serif; }
.wahl.an { background: var(--gruen-dunkel); color: var(--auf-gruen); }
.rergebnis { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; background: var(--karte); border-radius: 16px; padding: 10px 12px; border: 2px solid var(--linie); }
.rergebnis.gut { border-color: var(--ja-rand); background: var(--ja); } .rergebnis.schlecht { border-color: var(--nein-rand); background: var(--nein); }
.rergebnis p { margin: 0; }
.punktzahl { grid-column: 2; font: 600 1.5rem/1.1 "Fredoka", sans-serif; }
.rergebnis.gut .punktzahl { color: var(--ja-rand); } .rergebnis.schlecht .punktzahl { color: var(--nein-rand); }
.paeckchen { grid-row: span 2; display: flex; }
.stichpack { width: 28px; height: 40px; border-radius: 4px; margin-left: -10px; background: #ADA9A1 radial-gradient(circle, #8C877E 22%, transparent 24%) center / 10px 10px; border: 2px solid #2A2118; transform: rotate(calc(var(--i) * 7deg - 6deg)); box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.stichpack:first-child { margin-left: 0; }

/* Vier Woerter als kleine Karten in den Beutearten-Farben */
.woerter h2 { margin-top: 20px; }
.wortkarten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wortkarte { background: var(--elfenbein); color: var(--kartentinte); border-radius: 14px; padding: 10px 10px 12px; border: 2px solid var(--f); box-shadow: inset 0 6px 0 var(--f); display: flex; flex-direction: column; gap: 2px; }
.wsym { width: 34px; height: 34px; margin-top: 4px; }
.wortkarte b { font: 600 1.2rem/1.2 "Fredoka", sans-serif; }
.wortkarte span { font-size: .95rem; line-height: 1.35; }

/* Wusstest du? */
.wusstest { display: flex; gap: 12px; margin: 18px 0 12px; padding: 12px 14px; border-radius: 18px; background: var(--wissen); border: 2px dashed var(--wissen-rand); }
.wusstest h2 { margin: 0 0 4px; font-size: 1.15rem; }
.wusstest p { margin: 0; }
.wbirne { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gold) no-repeat center / 24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2118' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.8.8 1 1.5 1 2.5h6c0-1 .2-1.7 1-2.5A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); border: 2px solid #2A2118; }

/* Aufklapper: Fuer Profis und Im Heft nachschlagen */
details.profi, details.heftnach { margin: 12px 0; border-radius: 18px; border: 2px solid var(--profi-rand); background: var(--profi); overflow: hidden; }
details.heftnach { border-color: var(--linie); background: var(--karte); }
details > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; min-height: 56px; }
details > summary::-webkit-details-marker { display: none; }
.sumbild { flex: none; width: 46px; height: 46px; object-fit: contain; }
.sumtext { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sumtext b { font: 600 1.12rem/1.2 "Fredoka", sans-serif; }
.sumtext small { font-size: .85rem; opacity: .85; }
.sumpfeil { flex: none; width: 14px; height: 14px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--t-mittel); }
details[open] > summary .sumpfeil { transform: rotate(-135deg) translate(-3px, -3px); }
.profiinhalt, .heftinhalt { padding: 2px 14px 12px; }
.profiteil h3 { margin: 10px 0 2px; font-size: 1.05rem; }
.profiteil p { margin: 2px 0 8px; }
.ptabelle, .heftinhalt table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 4px 0 8px; }
.ptabelle th, .ptabelle td, .heftinhalt th, .heftinhalt td { border-bottom: 1px solid var(--linie); padding: 6px 4px; text-align: left; vertical-align: top; }
.ptabelle td { font-weight: 700; white-space: nowrap; }
.heftinhalt { font-size: .98rem; }
.heftinhalt table { display: table; }
.tabrolle { overflow-x: auto; max-width: 100%; border-radius: 8px; }
.tabrolle:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 2px; }
.rvorlesen { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 4px; }
.rvorlesen[aria-pressed="true"] { background: var(--gruen-dunkel); color: var(--auf-gruen); }

/* Neugier-Haken am Ende: eine Seite mit Eselsohr */
.rhaken { position: relative; margin: 20px -4px 0; padding: 16px 112px 18px 16px; border-radius: 20px; min-height: 150px; overflow: hidden;
  background: linear-gradient(135deg, var(--elfenbein) 0 calc(100% - 46px), #D9C9A0 calc(100% - 46px) calc(100% - 44px), #CDB98A 0) ; color: var(--kartentinte); border: 2px solid #C9B27A; }
.rhaken::after { content: ""; position: absolute; right: 0; bottom: 0; width: 46px; height: 46px; background: linear-gradient(315deg, var(--blatt) 0 50%, #E6D6AC 50%); box-shadow: -3px -3px 6px rgba(0, 0, 0, .12); border-top-left-radius: 6px; }
.hakentext { margin: 0 0 10px; font-size: 1.28rem; line-height: 1.25; color: var(--kartentinte); }
.bauhinweis { margin: 0 0 10px; font-size: .9rem; opacity: .9; }
.hakenfigur { position: absolute; right: -14px; bottom: -6px; height: 150px; width: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
@media (prefers-reduced-motion: no-preference) { .hakenfigur { animation: lugen 3.8s ease-in-out infinite; transform-origin: 80% 100%; } }
@keyframes lugen { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-5deg); } 90% { transform: rotate(2deg); } }
.umblaettern { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; min-height: 48px; border-radius: 16px; background: #5C804E; color: #fff; text-decoration: none;
  font: 700 1.15rem/1 "Fredoka", sans-serif; border: 2px solid #3F5C34; box-shadow: 0 4px 0 #3F5C34; }
.umblaettern:focus-visible { outline: 3px solid #2A2118; outline-offset: 3px; }
.upfeil { width: 18px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h14M12 5l7 7-7 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: no-preference) { .umblaettern .upfeil { animation: stupsen 2.4s ease-in-out infinite; } }
@keyframes stupsen { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(5px); } 90% { transform: translateX(-1px); } }

/* Blaettern unten */
.blaettern { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; margin: 14px 0 0; align-items: center; }
.bknopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--gruen-dunkel);
  color: var(--tinte); background: var(--karte); text-decoration: none; font-weight: 700; }
.bknopf[rel="next"] { justify-self: end; } .bknopf[rel="prev"] { justify-self: start; }
.bknopf:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }

/* Schatzkarte: Pergament mit gestricheltem Weg */
.schatzkarte { background: linear-gradient(180deg, #F6E7BC, #EAD49A); color: #3A2614; border-color: #C9A85C; }
.schatzkarte h1, .schatzkarte h2 { color: #3A2614; }
.schatzkarte .blase { background: #FFF8E2; border-color: #C9A85C; } .schatzkarte .blase::before { border-right-color: #C9A85C; } .schatzkarte .blase::after { border-right-color: #FFF8E2; }
.schatzkarte .blasename { color: #4F6E42; }
.musterhinweis { font-size: .9rem; margin: 0 0 6px; }
.kteil { margin-top: 16px; }
.kteil h2 { margin: 0; font-size: 1.35rem; }
.kunter { margin: 0 0 8px; font-size: .92rem; }
.schatzpfad { list-style: none; margin: 0; padding: 0 0 0 6px; position: relative; }
.schatzpfad::before { content: ""; position: absolute; left: 34px; top: 20px; bottom: 30px; border-left: 4px dashed #A3392C; opacity: .7; }
.kstopp { position: relative; margin: 0 0 8px; }
.kstopp > a, .kstopp > div { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 4px; border-radius: 16px; color: inherit; text-decoration: none; min-height: 64px; }
.kstopp:nth-child(even) > a, .kstopp:nth-child(even) > div { margin-left: 18px; }
.kstopp > a { background: #FFF8E2; border: 2px solid #5C804E; box-shadow: 0 3px 0 #5C804E; }
.kstopp > a:focus-visible { outline: 3px solid #2A2118; outline-offset: 2px; }
.kstopp > div { background: rgba(255, 248, 226, .55); border: 2px dashed #B8995A; }
.kfig { flex: none; width: 56px; height: 56px; object-fit: contain; position: relative; z-index: 1; }
.kstopp.bald .kfig { filter: grayscale(1) contrast(.7); opacity: .65; }
.ktext { display: flex; flex-direction: column; min-width: 0; }
.ktext small { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: #6B4F1E; }
.ktext b { font: 600 1.08rem/1.2 "Fredoka", sans-serif; }
.kstatus { font-size: .82rem; font-weight: 700; color: #4F6E42; }
.kstopp.bald .kstatus { color: #6B4F1E; }
.kstopp.ziel > div { border-style: solid; border-color: #A57D0B; background: #FFF0B8; }
.kachelpfad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kachelpfad .kstopp { margin: 0; } .kachelpfad .kstopp > div { margin: 0; height: 100%; }
.kachelpfad .kfig { width: 44px; height: 44px; }

/* Breiter Bildschirm: Bild und Text nebeneinander wird nicht gebraucht, aber mehr Luft */
@media (min-width: 700px) {
  main.heftbuehne { padding-top: 16px; }
  .heftblatt { padding: 24px 32px 28px; }
  .held { aspect-ratio: 2 / 1; }
  .rstichreihe { gap: 14px; } .rstichreihe:not(.n3) { grid-template-columns: repeat(4, minmax(0, 130px)); justify-content: center; }
  .wortkarten { grid-template-columns: repeat(4, 1fr); }
  .tkarte { width: 56px; }
  .pstopp { width: 32px; height: 32px; font-size: .85rem; } a.pstopp { width: 38px; height: 38px; font-size: .95rem; }
  .rhaken { padding-right: 160px; } .hakenfigur { height: 180px; right: 0; }
  .zeig { margin-left: 0; margin-right: 0; padding: 18px 18px 14px; }
}
html[data-bewegung="aus"] .hsterne circle, html[data-bewegung="aus"] .hfigur, html[data-bewegung="aus"] .hakenfigur, html[data-bewegung="aus"] .upfeil { animation: none; }
@media (max-width: 420px) { .bknopf { padding: 8px 9px; font-size: .9rem; } }
@media (max-width: 520px) { .kachelpfad { grid-template-columns: 1fr; } .kachelpfad .kstopp > div { min-height: 56px; } }

/* ===================== App 215: das ganze Heft ===================== */
.kopfheim { color: #fff; text-decoration: none; }
.zeigunter { margin: -4px 0 10px; font-size: .92rem; }

/* Bild oben mit vier Karten, Laune- und Rollenkarten */
.hn4 .hkarten { width: 66%; } .hn4 .hk0 { left: 0; transform: rotate(-14deg); } .hn4 .hk1 { left: 16%; transform: rotate(-5deg) translateY(-3%); } .hn4 .hk2 { left: 32%; transform: rotate(4deg) translateY(-2%); } .hn4 .hk3 { left: 48%; transform: rotate(13deg); }
.hn2 .hk0 { left: 0; transform: rotate(-10deg); } .hn2 .hk1 { left: 24%; transform: rotate(8deg); }
.hn1 .hk0 { left: 4%; transform: rotate(-7deg); }
.hn3:not(.held-tisch) .hk0 { left: 0; transform: rotate(-12deg); } .hn3:not(.held-tisch) .hk1 { left: 20%; transform: rotate(-1deg) translateY(-4%); } .hn3:not(.held-tisch) .hk2 { left: 40%; transform: rotate(10deg); }
.held-mond .hfigur, .held-truhe .hfigur, .held-tafel .hfigur, .held-stube .hfigur, .held-schlafzimmer .hfigur { right: 3%; height: 90%; }
.held-schlafzimmer .hfigur { right: 2%; height: 86%; }
.held-regal { aspect-ratio: 5 / 2; } .held-regal .hfigur { right: 50%; transform: translateX(50%); height: 92%; }
@media (prefers-reduced-motion: no-preference) {
  .hwolken { animation: wolken 14s ease-in-out infinite; }
  .hzzz text { animation: zzz 3.4s ease-in-out infinite; } .hzzz text:nth-child(2) { animation-delay: -1.1s; } .hzzz text:nth-child(3) { animation-delay: -2.2s; }
  .held-mond .hfigur, .held-truhe .hfigur, .held-stube .hfigur { animation: schleichen 5s ease-in-out infinite; transform-origin: 50% 100%; }
}
@keyframes wolken { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-12px); } }
@keyframes zzz { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* Vorlesen in der Sprechblase und an Schritten */
.blase .rvorlesen { margin: 8px 0 0; }
.tonmini { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: 36px; height: 36px; min-height: 36px; padding: 0; margin: 4px 0 0; border-radius: 50%; }
.tonmini[aria-pressed="true"], .rvorlesen[aria-pressed="true"] { background: var(--gruen-dunkel); color: var(--auf-gruen); }

/* Stich: Laerm, verbrannte Karte, Krach */
.rplatz.verbrannt .rkarte { filter: sepia(.9) saturate(1.6) brightness(.62); }
.rplatz.ausloeser .marke { background: #FFE2DC; }
.rboegen { position: absolute; right: -4px; top: -6px; z-index: 2; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 999px; background: #FFF6E0; color: #2A2118; border: 2px solid #2A2118;
  font: 700 .78rem/18px "Fredoka", sans-serif; text-align: center; }
.rboegen::before { content: ")"; margin-right: 1px; font-weight: 700; }
.krachstempel { color: #8A1F14; line-height: 1.15; }
.laermleiste { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 8px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 246, 224, .12); color: #FFF6E0; }
.llabel { font: 600 .8rem/1 "Fredoka", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.lfelder { display: flex; gap: 3px; min-width: 0; }
.lfeld { flex: 1; height: 14px; border-radius: 3px; background: rgba(255, 246, 224, .18); border: 1px solid rgba(255, 246, 224, .4); }
.lfeld.zuviel { border-color: #FF9C88; background: rgba(255, 120, 100, .15); }
.lfeld.an { background: #FFD45A; border-color: #FFD45A; } .lfeld.an.zuviel { background: #E8553C; border-color: #FFB4A6; }
.lfeld[data-grenze] { box-shadow: 3px 0 0 #FFF6E0; }
.lzahl { font: 600 1.25rem/1 "Fredoka", sans-serif; min-width: 1.5em; text-align: right; }
.lgrenze { grid-column: 1 / -1; font-size: .8rem; opacity: .95; }
.laermleiste.krach { background: rgba(232, 85, 60, .28); }

/* Probier's aus mit Kartenreihen (Detektiv) */
.wahlreihe.mitkarten { grid-template-columns: 1fr; }
.wahlreihe.mitkarten .wahl { flex-direction: row; justify-content: space-between; gap: 10px; padding: 8px 12px; }
.wtitel { font: 600 1.1rem/1.2 "Fredoka", sans-serif; }
.minikarten { display: inline-flex; gap: 4px; }
.minikarte { width: 38px; height: auto; border-radius: 4px; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); }
.rchip { fill: #9A6FB0; stroke: #2A2118; stroke-width: 2; }
.rergebnis.ohnepack { grid-template-columns: 1fr; } .rergebnis.ohnepack .punktzahl { grid-column: 1; }

/* Faecher und Sortierspiel */
.fgruppen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fgruppe { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; background: var(--elfenbein); color: var(--kartentinte); border: 2px solid var(--f); box-shadow: inset 5px 0 0 var(--f); }
.fname { display: flex; align-items: center; gap: 6px; font: 600 1rem/1.1 "Fredoka", sans-serif; }
.fsym { width: 28px; height: 28px; flex: none; }
.ffaecher { display: flex; gap: 6px; min-width: 0; }
.fkarte { padding: 0; min-height: 0; border: 0; background: none; width: 52px; border-radius: 6px; transform: rotate(calc((var(--i) - 1) * 4deg)); }
.fkarte img { width: 100%; height: auto; display: block; border-radius: 5px; box-shadow: 0 3px 7px rgba(0, 0, 0, .35); }
.fkarte:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 3px; }
.sortier { margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--karte); border: 2px dashed var(--gruen-dunkel); }
.sortier h3 { margin: 0 0 8px; font-size: 1.1rem; }
.sortbox { display: flex; gap: 12px; align-items: center; }
.sortkarte { width: 86px; height: auto; flex: none; border-radius: 7px; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.sortrechts { min-width: 0; flex: 1; } .sortrechts p { margin: 0 0 6px; font-weight: 700; }
.sortknoepfe { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.sortknopf { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 12px; border: 2px solid var(--f); background: var(--elfenbein); color: var(--kartentinte); font-weight: 700; min-height: 44px; }
.sortrueck p, .quizrueck p, .rfertig, .sortfertig { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; font-weight: 700; }
p.gut { background: var(--ja); color: var(--tinte); border: 2px solid var(--ja-rand); } p.schlecht, small.schlecht { color: var(--nein-rand); }
p.schlecht { background: var(--nein); color: var(--tinte); border: 2px solid var(--nein-rand); }
.sortpunkte { margin-top: 8px; }

/* Karte gross */
.rgross { position: fixed; inset: 0; z-index: 80; background: rgba(20, 24, 40, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rgrosskarte { position: relative; background: var(--karte); color: var(--tinte); border-radius: 18px; padding: 14px 14px 10px; max-width: min(360px, 92vw); text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.rgrosskarte img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 10px; }
.rgrosskarte p { margin: 6px 0 0; font-weight: 700; }
.rgrosskarte .popupzu { position: absolute; top: -14px; right: -14px; }

/* Pfad: Stationen */
.pstationen { list-style: none; margin: 0 0 10px; padding: 0; display: flex; justify-content: space-between; position: relative; }
.pstationen::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 3px dashed var(--gruen-dunkel); opacity: .6; }
.pstation { position: relative; z-index: 1; }
.pstationknopf { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; font: 700 1rem/1 "Fredoka", sans-serif; background: var(--karte); color: var(--tinte); border: 2px solid var(--gruen-dunkel); }
.pstation.vorbei .pstationknopf { background: var(--gruen-hell); }
.pstation.jetzt .pstationknopf { background: var(--gruen-dunkel); color: var(--auf-gruen); transform: scale(1.15); }
.pkarte { display: flex; gap: 12px; align-items: center; background: var(--karte); border-radius: 16px; padding: 10px 12px; border: 2px solid var(--linie); min-height: 120px; }
.pkarte h3 { margin: 0 0 4px; font-size: 1.12rem; } .pkarte p { margin: 0; }
.pbildfigur { width: 84px; height: 96px; object-fit: contain; flex: none; }
.pbildkarte { width: 70px; height: auto; flex: none; border-radius: 6px; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.naechte { margin-top: 14px; } .naechte h3 { margin: 0 0 8px; font-size: 1.08rem; }
.nachtreihe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; text-align: center; }
.nachtreihe li { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.nachtreihe b { font: 600 .8rem/1.1 "Fredoka", sans-serif; } .nachtreihe small { font-size: .74rem; }
.nfaecher { position: relative; width: 44px; height: 40px; }
.nrueck { position: absolute; left: 50%; bottom: 0; width: 18px; height: 26px; margin-left: -9px; border-radius: 3px; background: #ADA9A1; border: 1.5px solid #2A2118; transform-origin: 50% 120%;
  transform: rotate(calc((var(--j) - (var(--k) - 1) / 2) * 11deg)); }

/* Drehen: Launen mit Mond-Ruecken, Dickwanst und Korsett */
.drehreihe { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.drehreihe.n3 { grid-template-columns: repeat(3, 1fr); }
.drehkarte { display: flex; gap: 12px; align-items: flex-start; }
.drehreihe.n3 .drehkarte { flex-direction: column; align-items: center; text-align: center; }
.drehknopf { flex: none; padding: 0; border: 0; background: none; min-height: 0; width: 120px; border-radius: 10px; }
.drehreihe.n3 .drehknopf { width: 100%; max-width: 120px; }
.drehknopf:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 3px; }
.dvorne { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.mondruecken { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 2 / 3; border-radius: 8px; background: radial-gradient(ellipse at 50% 35%, #2E3F6E, #101833 70%); border: 3px solid #C9A85C; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.mondscheibe { width: 56%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #FFF6D8, #FFE08A 55%, #E2B84C); box-shadow: 0 0 18px 6px rgba(255, 224, 138, .45); }
.dtext { min-width: 0; } .dtext p { margin: 4px 0 0; } .dtext small { display: inline-block; opacity: .9; }
.drehhinweis { font-size: .85rem; opacity: .85; }
.rzaehne { display: inline-flex; gap: 2px; vertical-align: middle; }
.rzahn { width: 10px; height: 13px; background: #F4F0E6; border: 1.5px solid #2A2118; border-radius: 2px 2px 6px 6px / 2px 2px 9px 9px; }
.zahnlegende { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.zahnlegende li { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--karte); border-radius: 12px; padding: 8px 4px; border: 1.5px solid var(--linie); }
.zahnlegende small { font-size: .8rem; }

/* Prahlrad drehen */
.radhand { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.trumpfmini { display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; } .trumpfmini img { width: 46px; border-radius: 5px; transform: rotate(-6deg); }
.handkarten { list-style: none; margin: 0; padding: 0; display: flex; } .handkarten li { margin-left: -10px; } .handkarten li:first-child { margin-left: 0; }
.handkarten img { width: 70px; height: auto; border-radius: 6px; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.handkarten li:nth-child(1) img { transform: rotate(-8deg); } .handkarten li:nth-child(3) img { transform: rotate(8deg); }
.radfrage { margin: 10px 0 6px; }
.raddreh { display: flex; align-items: center; justify-content: center; gap: 14px; }
.radknopf { width: 56px; height: 56px; min-height: 56px; padding: 0; border-radius: 50%; font: 600 1.8rem/1 "Fredoka", sans-serif; }
.radgross .prahlrad { width: 130px; height: 130px; }
.radtipp { font-size: .92rem; margin: 8px 0; }
.radreihe { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.radreihe .prahlrad { width: 64px; height: 64px; } .radreihe li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .9rem; }
.radreihe li.du b { color: var(--gruen-dunkel); }
.radsumme { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--karte); border: 2px solid var(--linie); }

/* Rechnen */
.rstart { margin: 0 0 8px; }
.rzeilen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rzeile { display: grid; grid-template-columns: 76px 1fr; grid-template-areas: "wer werte" "wer tun"; align-items: center; gap: 4px 10px; padding: 8px 10px; border-radius: 14px; background: var(--karte); border: 2px solid var(--linie); }
.rzeile .rwer { grid-area: wer; } .rzeile .rwer b { font: 600 .95rem/1.1 "Fredoka", sans-serif; }
.rwerte { grid-area: werte; display: flex; align-items: center; gap: 8px; } .rwerte .prahlrad { width: 44px; height: 44px; } .rwerte span { display: flex; flex-direction: column; } .rwerte small { font-size: .9rem; }
.rknoepfe, .rrechnung { grid-area: tun; } .rknoepfe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .rknoepfe small { flex-basis: 100%; font-weight: 700; }
.rrechnung { margin: 0; font-weight: 700; }
.rzeile.gut { border-color: var(--ja-rand); background: var(--ja); } .rzeile.schlecht { border-color: var(--nein-rand); background: var(--nein); }

/* Kacheln zum Aufklappen */
.rkacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rkachel { background: var(--karte); border-radius: 14px; border: 2px solid var(--linie); overflow: hidden; }
.rkachel.auf { grid-column: 1 / -1; border-color: var(--gruen-dunkel); }
.rkachelknopf { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 0; border-radius: 0; background: none; color: var(--tinte); text-align: left; min-height: 56px; }
.rkachelknopf img { width: 44px; height: 44px; object-fit: contain; flex: none; } .rkachelknopf b { flex: 1; font: 600 1rem/1.15 "Fredoka", sans-serif; }
.rkachelknopf[aria-expanded="true"] .sumpfeil { transform: rotate(-135deg) translate(-3px, -3px); }
.rkachel p { margin: 0; padding: 0 12px 12px; }

/* Schatz: Truhe, Spickzettel, Knoepfe */
.truhenzeile { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; } .truhenzeile p { margin: 0; font-weight: 700; }
.truhe { position: relative; flex: none; width: 84px; height: 70px; }
.truhekasten { position: absolute; left: 4px; right: 4px; bottom: 0; height: 40px; background: #8B5A2B; border: 3px solid #2A2118; border-radius: 6px; }
.truhekasten::after { content: ""; position: absolute; left: 50%; top: 4px; width: 14px; height: 16px; margin-left: -7px; background: #FFD45A; border: 2px solid #2A2118; border-radius: 3px; }
.truhedeckel { position: absolute; left: 4px; right: 4px; bottom: 34px; height: 26px; background: #A86E35; border: 3px solid #2A2118; border-radius: 40px 40px 4px 4px; transform-origin: 0 100%; transition: transform var(--t-mittel); }
.truhe.offen .truhedeckel { transform: rotate(-38deg) translate(-4px, -6px); }
.truhegold { position: absolute; left: 14px; right: 14px; bottom: 30px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 30% 50%, #FFF0A8, #F2C230 60%, #C99A12); opacity: 0; }
.truhe.offen .truhegold { opacity: 1; box-shadow: 0 0 18px 6px rgba(255, 212, 90, .6); }
.spickzettel { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 2px; background: #FFF8E2; color: #3A2614; border-radius: 14px; border: 2px solid #C9A85C;
  background-image: repeating-linear-gradient(transparent 0 30px, rgba(163, 57, 44, .12) 30px 31px); }
.spickzettel a { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; color: inherit; text-decoration: none; border-radius: 8px; }
.spickzettel a:focus-visible { outline: 3px solid #2A2118; outline-offset: 1px; }
.spickzettel b { font: 600 .98rem/1.2 "Fredoka", sans-serif; display: block; } .spickzettel small { font-size: .9rem; line-height: 1.3; display: block; }
.snr { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 .85rem/1 "Fredoka", sans-serif; border: 2px dashed #8B6A2E; }
.spickzettel li.da .snr { border-style: solid; background: radial-gradient(circle at 35% 30%, #FFF0A8, #F2C230 60%, #C99A12); border-color: #A57D0B; color: #3A2A00; }
.schatzknoepfe { display: grid; gap: 8px; margin-top: 12px; }
.schatzknopf { display: flex; align-items: center; gap: 10px; padding: 8px 14px; min-height: 56px; border-radius: 16px; background: #5C804E; color: #fff; text-decoration: none; font: 600 1.1rem/1.2 "Fredoka", sans-serif; border: 2px solid #3F5C34; box-shadow: 0 4px 0 #3F5C34; }
.schatzknopf img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.schatzknopf:focus-visible { outline: 3px solid #2A2118; outline-offset: 3px; }

/* Mini-Quiz */
.quiz { margin: 18px -4px 6px; padding: 14px 12px 12px; border-radius: 20px; background: #FFF4D6; color: #2A2118; border: 2px solid #C99A12; box-shadow: inset 0 0 0 4px rgba(255, 212, 90, .25); }
.quizkopf { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .quizkopf h2 { margin: 0; font-size: 1.22rem; color: #2A2118; } .quizkopf small { font-size: .88rem; }
.quizschloss { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #FFD45A no-repeat center / 24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2118' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); border: 2px solid #A57D0B; }
.quizschloss.offen { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2118' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E"); background-color: #F2C230; }
.quizfrage { margin: 4px 0 10px; font-size: 1.08rem; font-weight: 700; }
.quizwahl { display: grid; gap: 8px; }
.quizknopf { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 14px; background: #FFFDF6; color: #2A2118; border: 2px solid #C9A85C; min-height: 52px; font-weight: 700; }
.quizknopf[disabled] { opacity: .55; }
.quizbuchst { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #2A2118; color: #FFF4D6; font: 700 .95rem/1 "Fredoka", sans-serif; }
.quizknopf.richtig { background: #DCEFD3; border-color: #2F6B2A; } .quizknopf.richtig .quizbuchst { background: #2F6B2A; color: #fff; }
.quizknopf.falsch { background: #FBE0DA; border-color: #A3392C; } .quizknopf.falsch .quizbuchst { background: #A3392C; color: #fff; }
.quiz .quizrueck p.gut { background: #DCEFD3; border-color: #2F6B2A; color: #1E3B1A; } .quiz .quizrueck p.schlecht { background: #FBE0DA; border-color: #A3392C; color: #5C140C; }
.quizmuenze { display: inline-block; vertical-align: -4px; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF0A8, #F2C230 60%, #C99A12); border: 1.5px solid #A57D0B; }

/* Teil 3: Nachschlagen */
.nachinhalt { font-size: 1rem; }
.rsuche { display: block; margin: 10px 0; } .rsuche input { width: 100%; font-size: 1.05rem; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--linie); background: var(--karte); color: var(--tinte); }
.karteikarten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.karteikarte { background: var(--elfenbein); color: var(--kartentinte); border-radius: 12px; padding: 10px 12px; border: 2px solid var(--f); box-shadow: inset 0 5px 0 var(--f); line-height: 1.4; }
.karteikarte b { font-family: "Fredoka", sans-serif; font-weight: 600; }
.fragenliste { display: grid; gap: 8px; }
details.frage { border-radius: 14px; border: 2px solid var(--linie); background: var(--karte); }
details.frage summary { min-height: 48px; } details.frage summary b { flex: 1; font-weight: 700; line-height: 1.3; }
details.frage > p { margin: 0; padding: 0 14px 12px 48px; }
.fragezeichen { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gruen-dunkel); color: var(--auf-gruen); font: 700 1rem/1 "Fredoka", sans-serif; }
.fallen { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.falle { background: var(--karte); border-radius: 16px; border: 2px solid var(--linie); padding: 10px 12px; }
.falle p { margin: 4px 0; display: flex; gap: 8px; align-items: flex-start; }
.fzeichen { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 1rem/1 "Fredoka", sans-serif; color: #fff; }
.fzeichen.nein { background: #A3392C; } .fzeichen.ja { background: #2F6B2A; }
.fallefalsch b { text-decoration: line-through; text-decoration-color: rgba(163, 57, 44, .7); text-decoration-thickness: 2px; }
.fallekarten { margin: 6px 0 4px 36px; }
.gesetz { background: var(--elfenbein); color: var(--kartentinte); border: 3px double #8B6A2E; border-radius: 16px; padding: 4px 14px 8px; }
.gesetz ul { padding-left: 1.1em; } .gesetz li { margin: 6px 0; }
.heftstueck h2 { font-size: 1.3rem; margin: 18px 0 6px; }
.heftstueck img { max-width: 160px; height: auto; }
.launenraster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lkachel details { border-radius: 14px; border: 2px solid var(--linie); background: var(--karte); overflow: hidden; }
.lkachel summary { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; min-height: 0; }
.lkachel summary img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.lkopf { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 6px 8px; } .lkopf b { font: 600 .98rem/1.15 "Fredoka", sans-serif; flex: 1 1 100%; } .lkopf small { font-weight: 700; opacity: .9; }
.ltext { padding: 0 10px 10px; font-size: .95rem; } .ltext p { margin: 6px 0; }
.nachhaken .hakentext { font-size: 1.15rem; }

/* Schatzkarte: Zusatz-Kacheln, Stand der Seiten */
.kstopp.geknackt .kstatus { color: #4F6E42; } .kstopp.geknackt .kfig { filter: drop-shadow(0 0 6px rgba(242, 194, 48, .9)); }
.ksammlung { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 4px; border-radius: 16px; color: inherit; text-align: left; min-height: 64px; background: #FFF8E2; border: 2px solid #5C804E; box-shadow: 0 3px 0 #5C804E; }
.kteil-mehr { margin-top: 18px; }

@media (min-width: 700px) {
  .fgruppen { grid-template-columns: repeat(2, 1fr); } .fgruppe:last-child { grid-column: 1 / -1; }
  .fkarte { width: 64px; }
  .launenraster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quiz { margin-left: 0; margin-right: 0; padding: 18px; }
  .quizwahl { grid-template-columns: repeat(3, 1fr); } .quizknopf { flex-direction: column; text-align: center; }
  .pbildfigur { width: 110px; height: 120px; }
}
@media (max-width: 380px) {
  .fgruppe { grid-template-columns: 1fr; } .fkarte { width: 48px; }
  .nachtreihe { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
  .radreihe { grid-template-columns: repeat(2, 1fr); }
  .drehreihe.n3 { grid-template-columns: 1fr; } .drehreihe.n3 .drehkarte { flex-direction: row; text-align: left; } .drehreihe.n3 .drehknopf { width: 96px; }
  .zahnlegende { grid-template-columns: 1fr; }
  .drehkarte { flex-direction: column; } .drehknopf { width: 140px; }
}
/* Dunkles Thema: helle Flaechen des Hefts bleiben wie gedruckt (Elfenbein mit Tinte), Quiz und Spickzettel ebenso. */
html[data-kontrast="hoch"] .quiz, html[data-kontrast="hoch"] .spickzettel, html[data-kontrast="hoch"] .gesetz { background: var(--karte); color: var(--tinte); border-color: var(--tinte); }
html[data-kontrast="hoch"] .quiz .quizkopf h2, html[data-kontrast="hoch"] .quizknopf { color: var(--tinte); background: var(--karte); border-color: var(--tinte); }
html[data-bewegung="aus"] .hwolken, html[data-bewegung="aus"] .hzzz text { animation: none; }
@media (max-width: 520px) { .nachtreihe { grid-template-columns: repeat(3, 1fr); row-gap: 10px; } .nachtreihe b { white-space: nowrap; } }
.fallekarten .minikarte { width: 50px; }

/* App 216: Suche, das ganze Heft und die Schachteln (die alte Regeln-Seite der App ist hier aufgegangen). Heft-Text und
   Schachteln tragen die Klassen der App (.heft, .heftboxen, .heftteil, .laune aus style.css), hier nur der Rahmen. */
.rhsuche { margin: 12px 0 6px; }
.rhsuche .rsuche { margin: 0; }
.rhsuche .treffer { max-height: 46vh; }
.rhsuche .treffer:empty { display: none; }
.rhsuche .treffer button { background: var(--karte); color: var(--tinte); border: 1.5px solid var(--linie); border-radius: 12px; }
#launeAnzeige:empty { display: none; }
#launeAnzeige { margin: 8px 0 12px; }
.heftwegweiser ul { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.heftwegweiser a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--linie); background: var(--karte); color: var(--tinte); font-weight: 600; text-decoration: none; }
.heftwegweiser a:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 2px; }
.heftvoll, .heftschachteln { overflow-wrap: anywhere; }
.heftseite .heft [id] { scroll-margin-top: calc(var(--kopfh, 56px) + 12px); }
.heftvoll .regelfigur { width: 96px; }
.heftvoll img.kartebild { max-width: 140px; }
.heftganz { margin: 10px 0 0; text-align: right; font-weight: 700; }
.heftganz a { color: var(--tinte); text-decoration: underline; text-underline-offset: 3px; }
.hefttitel { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.6rem; letter-spacing: .04em; margin: 18px 0 4px; }

/* Gezeichnete Karten (App 216, app/karte-baustein.js/.css wie im digitalen Spiel): die Groesse kommt aus --k (Breite);
   die Bild-Regeln oben (width/height auto, display block) gelten fuer die gedruckten Launen und Rollen. */
span.dkarte.kbau { display: flex; width: var(--k); height: calc(var(--k) * 1.414); max-height: none; }
.slot { container-type: inline-size; } .rkarte.kbau { --k: 100cqw; }
.hkarten { container-type: size; } .hkarte.kbau { --k: calc(100cqh / 1.414); }
.tkarte.kbau { --k: 44px; }
.minikarte.kbau { --k: 38px; } .fallekarten .minikarte.kbau { --k: 50px; }
.fkarte { container-type: inline-size; } .fkarte .kbau { --k: 100cqw; border-radius: calc(var(--k) * .155); box-shadow: 0 3px 7px rgba(0, 0, 0, .35); }
.sortkarte.kbau { --k: 86px; }
.pbildkarte.kbau { --k: 70px; }
.trumpfmini .kbau { --k: 46px; transform: rotate(-6deg); }
.handkarten .kbau { --k: 70px; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.handkarten li:nth-child(1) .kbau { transform: rotate(-8deg); } .handkarten li:nth-child(3) .kbau { transform: rotate(8deg); }
.rgrosskarte .kbau { --k: min(300px, 76vw, 46vh); margin: 0 auto; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
@media (min-width: 700px) { .tkarte.kbau { --k: 56px; } }
/* Sortierspiel (App 216): nach der Antwort richtig/falsch an den Knoepfen, dann "Naechste Karte"; Punkte je Karte. */
.sortknopf.richtig { box-shadow: 0 0 0 3px var(--ja-rand); } .sortknopf.falsch { box-shadow: 0 0 0 3px var(--nein-rand); }
.sortknopf:disabled { cursor: default; opacity: 1; } .sortknopf:disabled:not(.richtig):not(.falsch) { opacity: .55; }
.sortsteuer { display: flex; align-items: center; gap: 8px; margin-top: 10px; } .sortsteuer .rpunkte { justify-content: flex-start; }
.pkt.falsch { background: var(--nein-rand); border-color: var(--nein-rand); }
.pkt.jetzt { transform: scale(1.3); }

/* Schnellsuche (App 216): ganz oben in den Spielregeln, klebt unter dem Kopf, Treffer als Liste darueber. */
.schnellsuche { position: sticky; top: calc(var(--kopfh, 56px) + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--grund); padding: 8px 12px 6px; }
.ssbox { position: relative; max-width: 760px; margin: 0 auto; }
.sslupe { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-60%); border: 2.5px solid var(--gruen-dunkel); border-radius: 50%; pointer-events: none; }
.sslupe::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 7px; height: 2.5px; background: var(--gruen-dunkel); transform: rotate(45deg); border-radius: 2px; }
#ssfeld { width: 100%; min-height: 46px; padding: 8px 12px 8px 40px; border-radius: 999px; border: 2px solid var(--gruen-dunkel); background: var(--karte); color: var(--tinte); font: inherit; font-size: 1rem; box-sizing: border-box; }
#ssfeld:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 2px; }
#sstreffer { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: min(62vh, 520px); overflow-y: auto; background: var(--blatt); color: var(--tinte); border: 2px solid var(--linie); border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
#sstreffer [role=option] { padding: 8px 10px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; }
#sstreffer [role=option] + [role=option] { margin-top: 2px; }
#sstreffer [role=option]:hover, #sstreffer [aria-selected="true"] { background: var(--karte); border-color: var(--gruen-dunkel); }
.sskopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.sskopf b { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; }
.sskopf small { font-size: .78rem; font-weight: 700; opacity: .8; }
.ssaus { display: block; font-size: .9rem; line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }
.ssaus mark, .sskopf mark { background: #FFE38A; color: #2A2118; border-radius: 3px; padding: 0 1px; }
.ssleer { padding: 10px; font-weight: 700; }
/* Stelle aus der Suche leuchtet kurz auf */
.suchtreffer { background: #FFF1B8 !important; color: #2A2118; box-shadow: 0 0 0 4px #FFD45A; border-radius: 6px; transition: background 1.2s ease, box-shadow 1.2s ease; }
.rlaunefenster { max-width: min(420px, 94vw); max-height: 86vh; overflow-y: auto; text-align: left; }

/* Handy (App 216, Auftrag des Autors: auf jedem Handy einwandfrei): Tippflaechen mindestens 44 px. Der Schatzpfad oben
   bricht auf schmalen Bildschirmen in zwei Reihen um (die gestrichelte Linie faellt dort weg), statt winziger Steine. */
.tonmini { width: 44px; height: 44px; min-height: 44px; }
.pstationknopf { width: 44px; height: 44px; min-height: 44px; flex: none; }
.radknopf { flex: none; min-width: 56px; }
@media (max-width: 520px) {
  .pfadreihe { flex-wrap: wrap; justify-content: center; gap: 4px 4px; }
  .pfadreihe::before { display: none; }
  a.pstopp, a.pstopp.ziel { width: 44px; height: 44px; font-size: .95rem; }
  .pstopp.jetzt { transform: scale(1.08); }
}
a.pstopp, a.pstopp.ziel { width: 44px; height: 44px; font-size: .95rem; }
@media (min-width: 521px) { .pfadreihe { gap: 2px; } }
/* Quer auf dem Handy (wenig Hoehe): die Suche steht oben, klebt aber nicht, damit Platz fuer die Seite bleibt. */
@media (max-height: 500px) { .schnellsuche { position: static; padding-top: 6px; } #ssfeld { min-height: 44px; } }

/* Oben in den Spielregeln (App 216): Schnellsuche und Teil-Leiste kleben gemeinsam unter dem Kopf. */
.heftoben { position: sticky; top: calc(var(--kopfh, 56px) + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--grund); }
.heftoben .schnellsuche { position: static; }
.teilleiste { display: flex; gap: 6px; justify-content: center; max-width: 760px; margin: 0 auto; padding: 0 12px 8px; }
.teilknopf { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 8px; border-radius: 999px; border: 2px solid var(--gruen-dunkel); background: var(--karte); color: var(--tinte); font: 600 .9rem/1.1 "Fredoka", "Nunito", sans-serif; text-align: center; text-decoration: none; }
.teilknopf[aria-current="true"] { background: var(--gruen-dunkel); color: var(--auf-gruen); }
.teilknopf:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
@media (max-width: 360px) { .teilknopf { font-size: .8rem; padding: 4px 4px; } .teilleiste { gap: 4px; padding: 0 8px 6px; } }
@media (max-height: 500px) { .heftoben { position: static; } }
.heftvoll h2 { color: var(--tinte); }
.heftvoll .wie-h4 { font-size: 1.1rem; color: inherit; } .heftvoll .wie-h5 { font-size: 1.05rem; color: inherit; margin: 30px 0 4px; clear: both; }
.heftvoll h3, .heftvoll h4, .heftschachteln h3 { color: var(--tinte); }
.heftschachteln .stichleiter .leiterbox, .heftschachteln .heftboxen button.an { background: color-mix(in srgb, var(--box) 82%, #000); }   /* Kontrast: Maerchen-Orange mit weisser Schrift */
.heftschachteln h2 small { opacity: 1; }
.heftseite .laune .stichwort { opacity: 1; } .heftseite .laune .badge.dick { background: #8E2F24; border-color: #8E2F24; color: #fff; }
.heftschachteln .boxteil { background: var(--karte); color: var(--tinte); }   /* dunkles Thema: kein halbweisser Schleier unter heller Schrift */

/* Kacheln zum Aufklappen (App 216, Fund des Autors am Desktop: Titel abgeschnitten, Pfeil ueberdeckt, ungleich hoch):
   Raster aus Figur | Titel | Pfeil, der Titel bricht an Silben statt abgeschnitten zu werden, gleich hohe Kacheln je Zeile. */
.rkacheln { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); align-items: stretch; }
.rkachel { display: flex; flex-direction: column; min-width: 0; }
.rkachelknopf { display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; align-items: center; column-gap: 10px; flex: 1; height: 100%; }
.rkachelknopf b { min-width: 0; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.rkachelknopf .sumpfeil { justify-self: end; position: static; margin: 0; }

/* Detektiv (App 216): Stiche mit allen Karten und Namen, Zottels Karte hervorgehoben, Lupe fuer seine Hand. */
.dttrumpf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; }
.dtlupe { margin-left: auto; min-height: 44px; }
.dtstiche { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.dtstich { background: linear-gradient(160deg, #6E4A2C, #4A3020); color: #FFF6E0; border-radius: 16px; padding: 8px 10px 10px; }
.dtstich.jetzt { box-shadow: 0 0 0 3px var(--gold, #FFD45A); }
.dtstich h3 { margin: 0 0 6px; font-size: 1.05rem; color: #FFF6E0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dtstich h3 small { display: inline-flex; align-items: center; gap: 4px; font: 700 .8rem/1.1 "Nunito", sans-serif; background: #F2E8C9; color: #2A2118; border: 2px solid var(--f); border-radius: 999px; padding: 2px 8px 2px 4px; }
.dtsym { width: 18px; height: 18px; }
.dtkarten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dtk { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; container-type: inline-size; }
.dtk .werbild { width: 32px; height: 32px; }
.dtname { font: 700 .78rem/1 "Fredoka", "Nunito", sans-serif; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.dtk .dtkarte.kbau { --k: min(64px, 100cqw); }
.dtk img.dtkarte { width: min(64px, 100%); height: auto; border-radius: 6px; }
.dtk.verdacht .dtkarte { box-shadow: 0 0 0 3px #FFD45A, 0 0 12px 3px rgba(255, 212, 90, .6); }
.dtk.verdacht .dtname { color: #FFD45A; }
.dthand { margin-top: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 246, 224, .12); border: 1.5px dashed #FFD45A; }
.dthand small { display: block; font-weight: 700; margin-bottom: 4px; }
.dthand .minikarten { flex-wrap: wrap; }
.dtwahl { margin-top: 10px; }

/* Schnell nachsehen (App 216): Kacheln mit Figur, Titel und einer Zeile; Handy zwei Spalten, breit ein Raster. */
.schnellgruppe { margin: 14px 0 6px; }
.schnellgruppe h2, .schnellgruppe h3 { margin: 0 0 8px; font-size: 1.15rem; }
.schnellkacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 8px; }
@media (max-width: 520px) { .schnellkacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.schnellkachel { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; height: 100%; min-height: 56px; box-sizing: border-box; padding: 6px 8px; border-radius: 14px; background: #FFF8E2; color: #2A2118; border: 2px solid #5C804E; box-shadow: 0 3px 0 #5C804E; text-decoration: none; }
.schnellkachel img { width: 40px; height: 40px; object-fit: contain; }
.schnellkachel b { display: block; font: 600 .98rem/1.15 "Fredoka", "Nunito", sans-serif; overflow-wrap: anywhere; hyphens: auto; }
.schnellkachel small { display: block; font-size: .8rem; line-height: 1.25; opacity: .9; overflow-wrap: anywhere; }
.schnellkachel:focus-visible { outline: 3px solid #2A2118; outline-offset: 2px; }
.teilleiste { flex-wrap: wrap; } .teilknopf { flex: 1 1 calc(25% - 6px); }

.teilknopf .tkurz { display: none; }
@media (max-width: 520px) {
  .teilknopf { flex: 1 1 0; padding: 4px 4px; font-size: .78rem; }
  .teilknopf .tlang { display: none; } .teilknopf .tkurz { display: inline; }
}
.lfilter { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.lfknopf { min-height: 44px; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--f, var(--gruen-dunkel)); background: var(--karte); color: var(--tinte); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.lfknopf[aria-pressed="true"] { background: var(--gruen-dunkel); color: var(--auf-gruen); border-color: var(--gruen-dunkel); }

/* ===================== App 218: Pfad mit Kurztiteln, Profi-Pfad, Wegweiser ===================== */
/* Unter jeder Zahl steht, was dahinter steckt (Wunsch des Autors). Raster statt Reihe, damit die Woerter Platz haben. */
.pfadreihe.mitkurz { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 8px 2px; justify-items: center; align-items: start; padding: 6px 0 2px; }
.pfadreihe.mitkurz::before { display: none; }
.pfadreihe.mitkurz li { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.pkurz { font: 600 .66rem/1.1 "Fredoka", "Nunito", sans-serif; color: var(--tinte); opacity: .85; text-align: center; max-width: 64px; overflow-wrap: normal; hyphens: manual; }   /* nur an weichen Trennstellen (\u00ad in pfadname) */
.pfadprofi a.pstopp { border-color: var(--profi-rand); }
.pfadprofi a.pstopp.gesehen { background: radial-gradient(circle at 35% 30%, #FFFFFF, #CFE0EE 60%, #8FB0CA); border-color: #5E83A3; }
.pfadprofi .pstopp.jetzt { box-shadow: 0 0 0 3px var(--grund), 0 0 0 6px var(--profi-rand); }
@media (min-width: 700px) { .pkurz { font-size: .76rem; max-width: 80px; } }

/* Wegweiser oben auf der Schatzkarte: drei Wege, je ein Sprung zu ihrem Teil */
.wegweiser { margin: 12px 0 6px; }
.wegweiser h2 { margin: 0 0 8px; font-size: 1.2rem; }
.wegliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.weg a { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 12px; border-radius: 16px; border: 2px solid var(--linie); background: var(--karte); color: var(--tinte); text-decoration: none; }
.weg a:hover, .weg a:focus-visible { border-color: var(--gruen-dunkel); }
.weg b { display: block; font: 600 1.02rem/1.2 "Fredoka", "Nunito", sans-serif; }
.weg small { display: block; font-size: .85rem; opacity: .85; }
.wegfig { width: 52px; height: 52px; object-fit: contain; flex: none; }
.weg.fertig a { border-color: #C99A12; box-shadow: inset 0 0 0 2px #F2C230; }
.kteil-profi { border-top: 3px dashed var(--profi-rand); padding-top: 12px; margin-top: 22px; }
.kteil-profi h2::before { content: "🎓 "; }

/* Alle Spielmodi im Profi-Kapitel "Welche Spielarten gibt es noch?" (App 219) */
.rmodi { margin: 18px 0 8px; }
.rmodi h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.rmodiliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rmodus { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 14px; background: var(--profi); border: 2px solid var(--profi-rand); }
.rmodus.bald { border-style: dashed; }   /* App 219: nicht mehr durchscheinend (axe: Kontrast), nur gestrichelt mit Marke "Bald" */
.rmodus.bald .rmodusfig, .rmodus.bald img { filter: grayscale(.8); opacity: .6; }
.rmodus p { margin: 2px 0; }
.rmodus em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--profi-rand); }
.rmodusfig { width: 52px; height: 52px; object-fit: contain; flex: none; }
.rmodusdaten { font-size: .85rem; opacity: .85; }
.rmoduserleben { font-size: .9rem; font-style: italic; }

/* Quiz von vorn (App 246): Knopf unter dem Schatzpfad, Rueckfrage als Kasten */
.quizneu { margin: 6px 0 0; text-align: center; font-size: .9rem; }
.quizneufertig { font-weight: 700; }
.quizneukasten { margin: 8px auto 0; max-width: 520px; padding: 8px 12px; border: 2px solid #5E8250; border-radius: 12px; background: #FAFCF5; color: #27331F; font-size: .9rem; text-align: center; }
.quizneukasten p { margin: 0 0 6px; }
.quizneuknoepfe { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
/* App 304 (Paket K): Schachtel-Leiste auf der Schatzkarte und Kapitel der Schachteln (Marke und Farbe der Schachtel) */
.rhleiste { margin: 14px 0 4px; }
.kteil-sk { border-left: 6px solid var(--box, var(--gruen-dunkel)); padding-left: 10px; }
.kteil-sk h2 { display: flex; align-items: center; gap: 6px; }
.kteil-sk .kmarke { display: inline-block; width: 46px; height: 46px; }
.pfadbox { border-top: 4px solid var(--box, var(--gruen-dunkel)); }
.pfadbox .rhmarke { width: 1.8em; height: 1.8em; }
.heftblatt.teil-sk { border-top: 6px solid var(--box, var(--gruen-dunkel)); }
/* App 304 (Paket H): Herkunftszeichen an Saetzen, Woertern, Quiz und Heftkaesten; Titelbild der Schachtel im Kapitelkopf */
.rhzeichen { flex: 0 0 auto; }
.kteil-sk .kteilbild { float: right; width: 84px; height: 84px; object-fit: contain; margin: -6px 0 0 8px; }
.quizkopf h2 .rhzeichen, .heftnach .sumtext .rhzeichen { width: 1.2em; height: 1.2em; }
.rhboxgesetz { border-left: 6px solid var(--box, var(--gruen-dunkel)); padding-left: 10px; }
.rhboxgesetz h2 { display: flex; align-items: center; gap: 6px; }
.gesetz li[data-herkunft] .rhzeichen, .karteikarte[data-herkunft] .rhzeichen { width: 1.15em; height: 1.15em; vertical-align: -.25em; }
.heftbox .heftblick { margin-top: 0; }

/* App 408 (F-0067, Wunsch des Autors 11.11.2026): "Suchfeld und die vier Knoepfe darunter in eigenem Bereich labeln; die Kreise
   1-12 groesser und zweireihig; tippt man auf Einsteiger, Profis usw., faehrt es ein Stueck zu weit runter und man sieht die
   Ueberschrift nicht mehr." */
.heftoben { padding-top: 6px; }
.heftobentitel { max-width: 760px; margin: 0 auto; padding: 0 14px 2px; font: 700 .78rem/1.2 "Fredoka", "Nunito", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: inherit; }
.heftoben > .schnellsuche, .heftoben > .teilleiste { max-width: 760px; margin-left: auto; margin-right: auto; }
.heftoben { border-bottom: 2px solid var(--linie); box-shadow: 0 6px 10px -8px rgba(0, 0, 0, .35); margin-bottom: 8px; }
/* Die Kreise des Pfads: groesser, in zwei gleich langen Reihen */
.pfadreihe.mitkurz { grid-template-columns: repeat(var(--spalten, 6), minmax(0, 1fr)); gap: 10px 4px; max-width: 520px; margin: 0 auto; }
.pfadreihe.mitkurz a.pstopp { width: 46px; height: 46px; font-size: 1.15rem; }
.pfadreihe.mitkurz .pstopp.ziel { width: 52px; height: 46px; }
.pfadreihe.mitkurz .ptruhe { width: 30px; height: 25px; }
.pfadreihe.mitkurz .pkurz { font-size: .8rem; }
.pfadreihe.mitkurz .pstopp.jetzt { transform: scale(1.12); }
/* Spruenge (Teil-Knoepfe, Wegweiser, Suchtreffer) halten Abstand zum klebenden Kopf samt Such-Bereich: --heftobenh misst ihn (regelheft.js). */
.heftseite [id], .heftseite .heft [id] { scroll-margin-top: calc(var(--heftobenh, 120px) + 10px); }   /* den Kopf deckt schon html scroll-padding-top (style.css) */
@media (max-height: 500px) { .heftseite [id], .heftseite .heft [id] { scroll-margin-top: 12px; } }
