/* ==========================================================================
   engine.css — Fallfeder-Spiele-Engine
   Markenfarben laut MARKE.md; Schriften lokal (engine/schriften/, optional),
   sonst Georgia / system-ui. Alle Klassen mit Präfix fe- (Rätselgrafiken
   bringen ihre eigenen Klassen aus raetsel.css mit).
   Inhalt: 1 Tokens · 2 Basis · 3 Knöpfe · 4 Kopfleiste · 5 Start · 6 Kalender
   7 Tag · 8 Lösung · 9 Erfolg & Plan · 10 Finale & Urkunde · 11 Akte & Dialoge
   12 Effekte · 13 Druck
   ========================================================================== */

/* ---------- 1 Tokens ---------- */
:root {
  --tinte: #1f2a44; --nacht: #16203a; --papier: #fbf7ef; --gold: #c18a2e;
  --rot: #a8412f; --gruen: #2f5d50; --schnee: #eef3f8; --grau: #6b6f7a;
  --nacht-tief: #0d1427; --nacht-hell: #243463; --gold-hell: #ecc977; --gold-dunkel: #86600f;
  --papier-2: #f4ead3; --linie-hell: rgba(236, 201, 119, .24);
  --f-titel: "Fraunces", "Literata", Georgia, "Times New Roman", serif;
  --f-text: "Literata", Georgia, "Times New Roman", serif;
  --f-ui: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hand: "Caveat", "Patrick Hand", "Kalam", "Gochi Hand", "Noteworthy", "Bradley Hand", "Segoe Print", "Ink Free", cursive;
  --papier-korn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --schatten: 0 18px 44px rgba(3, 7, 20, .42);
  --breite: 780px;
  color-scheme: dark;
}
/* Helle Papierflächen: Formularelemente & Scrollbalken hell darstellen */
.fe-dialog, .fe-brief, .fe-aufgabe, .fe-erfolg, .fe-epilog, .fe-start__karte, .fe-beweis__blatt, .fe-tipps { color-scheme: light; }
/* Erwachsenen-Krimi: gleiche Engine, eigene Farben/Schriften (Art déco, wie die Druckfassung).
   Alle Krimi-Regeln stehen in diesem Block und in Abschnitt 14 – nur unter [data-thema="krimi"]. */
[data-thema="krimi"] {
  --tinte: #1d2233; --nacht: #13322a; --papier: #fbf6ea; --gold: #b8893b;
  --rot: #9b2d2a; --gruen: #1f4d3f; --grau: #6d6657;
  --nacht-tief: #081611; --nacht-hell: #1f4d3f; --gold-hell: #e2c27a; --gold-dunkel: #8a6420;
  --papier-2: #f3ead6; --linie-hell: rgba(226, 194, 122, .28);
  --f-titel: "Playfair Display", "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif;
  --f-text: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-ui: "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-hand: "Special Elite", "American Typewriter", "Courier Prime", "Courier New", ui-monospace, monospace;
  --f-schrift: "Pinyon Script", "Snell Roundhand", "Savoye LET", "Apple Chancery", "Segoe Script", "Brush Script MT", cursive;
  --schatten: 0 18px 44px rgba(0, 10, 6, .5);
  --messing: linear-gradient(135deg, #f6e2a6 0%, #d9ae58 42%, #b8893b 70%, #8f6424 100%);
  /* Urkunde (ui/urkunde.js liest diese Variablen) */
  --urkunde-stil: deko; --urkunde-papier: #fbf6ea; --urkunde-tinte: #1d2233; --urkunde-akzent: #13322a;
  --urkunde-gold: #b8893b; --urkunde-gold-dunkel: #8a6420; --urkunde-rot: #9b2d2a; --urkunde-grau: #6d6657;
  --urkunde-hand: var(--f-schrift);
  /* Messing-Zimmerschild, Art-déco-Ecken (wie druck.css), Vierzack-Stern fürs goldene Feld */
  --z-schild: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 104'%3E%3Cdefs%3E%3ClinearGradient id='m' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f6e2a6'/%3E%3Cstop offset='.45' stop-color='%23d0a24c'/%3E%3Cstop offset='1' stop-color='%23946a2a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M45 2 62 10h18l8 12v60l-8 12H62l-17 8-17-8H10L2 82V22l8-12h18z' fill='url(%23m)' stroke='%236b4a18' stroke-width='1.6'/%3E%3Cpath d='M45 8 60 15h16l6 9v56l-6 9H60l-15 7-15-7H14l-6-9V24l6-9h16z' fill='none' stroke='%23fff4d2' stroke-width='1' opacity='.75'/%3E%3Ccircle cx='45' cy='17' r='2.4' fill='%236b4a18'/%3E%3Ccircle cx='45' cy='87' r='2.4' fill='%236b4a18'/%3E%3C/svg%3E");
  --z-ecke-lo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23b8893b'%3E%3Cpath d='M0 26A26 26 0 0 1 26 0M0 15A15 15 0 0 1 15 0' stroke-width='1.3'/%3E%3Cpath d='M0 0l19 19' stroke-width='1'/%3E%3C/g%3E%3Ccircle cx='3.2' cy='3.2' r='3.2' fill='%23b8893b'/%3E%3C/svg%3E");
  --z-ecke-ro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='translate(40 0) scale(-1 1)'%3E%3Cg fill='none' stroke='%23b8893b'%3E%3Cpath d='M0 26A26 26 0 0 1 26 0M0 15A15 15 0 0 1 15 0' stroke-width='1.3'/%3E%3Cpath d='M0 0l19 19' stroke-width='1'/%3E%3C/g%3E%3Ccircle cx='3.2' cy='3.2' r='3.2' fill='%23b8893b'/%3E%3C/g%3E%3C/svg%3E");
  --z-ecke-lu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='translate(0 40) scale(1 -1)'%3E%3Cg fill='none' stroke='%23b8893b'%3E%3Cpath d='M0 26A26 26 0 0 1 26 0M0 15A15 15 0 0 1 15 0' stroke-width='1.3'/%3E%3Cpath d='M0 0l19 19' stroke-width='1'/%3E%3C/g%3E%3Ccircle cx='3.2' cy='3.2' r='3.2' fill='%23b8893b'/%3E%3C/g%3E%3C/svg%3E");
  --z-ecke-ru: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='translate(40 40) scale(-1 -1)'%3E%3Cg fill='none' stroke='%23b8893b'%3E%3Cpath d='M0 26A26 26 0 0 1 26 0M0 15A15 15 0 0 1 15 0' stroke-width='1.3'/%3E%3Cpath d='M0 0l19 19' stroke-width='1'/%3E%3C/g%3E%3Ccircle cx='3.2' cy='3.2' r='3.2' fill='%23b8893b'/%3E%3C/g%3E%3C/svg%3E");
  --z-ecken: var(--z-ecke-lo) 0 0 / 30px no-repeat, var(--z-ecke-ro) 100% 0 / 30px no-repeat,
    var(--z-ecke-lu) 0 100% / 30px no-repeat, var(--z-ecke-ru) 100% 100% / 30px no-repeat;
  --z-ecken-klein: var(--z-ecke-lo) 0 0 / 20px no-repeat, var(--z-ecke-ro) 100% 0 / 20px no-repeat,
    var(--z-ecke-lu) 0 100% / 20px no-repeat, var(--z-ecke-ru) 100% 100% / 20px no-repeat;
  --z-vierzack: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.9 5.6 4.9 9.6 10.5 10.5-5.6.9-9.6 4.9-10.5 10.5C11.1 16.9 7.1 12.9 1.5 12 7.1 11.1 11.1 7.1 12 1.5z' fill='%23d9ae58' stroke='%236b4a18' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- 2 Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--nacht); color: var(--papier);
  font: 400 1rem/1.55 var(--f-ui); -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(62, 88, 160, .55), transparent 70%),
    radial-gradient(50% 35% at 85% 100%, rgba(193, 138, 46, .10), transparent 70%),
    linear-gradient(180deg, #1a2646 0%, var(--nacht) 45%, var(--nacht-tief) 100%);
}
#fe-app { position: relative; z-index: 1; }
img, svg { max-width: 100%; }
a { color: var(--gold-hell); }
:focus-visible { outline: 3px solid var(--gold-hell); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.fe-nur-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fe-springen { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--papier); color: var(--tinte); padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.fe-springen:focus { top: 12px; }
.fe-schnee { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.fe-ikon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }
.fe-klein { font-size: .88rem; opacity: .85; margin: 0; }
.fe-link { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; font-weight: 700; text-decoration: none; }
.fe-link:hover span { text-decoration: underline; }
.fe-inhalt { display: block; padding: 0 16px 72px; outline: none; }
.fe-inhalt > * { animation: fe-einblenden .45s ease-out both; }
.fe-etikett {
  display: inline-flex; align-items: center; gap: .5em; margin: 0;
  font: 800 .8rem/1.2 var(--f-ui); letter-spacing: .13em; text-transform: uppercase; color: var(--gold-hell);
}
.fe-etikett .fe-ikon { width: 1.35em; height: 1.35em; }
.fe-eingabe {
  width: 100%; min-height: 50px; border-radius: 12px; border: 2px solid rgba(31, 42, 68, .22); background: #fff;
  color: var(--tinte); font: 700 1.1rem var(--f-ui); padding: 10px 14px;
}
.fe-eingabe:focus { border-color: var(--gold); outline: 3px solid rgba(236, 201, 119, .55); outline-offset: 1px; }
.fe-eingabe[aria-invalid="true"] { border-color: var(--rot); }
.fe-kreisel { width: 1.1em; height: 1.1em; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; display: inline-block; animation: fe-drehen .8s linear infinite; }

/* ---------- 3 Knöpfe ---------- */
.fe-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px;
  padding: .55em 1.15em; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  font: 800 1rem/1.15 var(--f-ui); text-decoration: none; text-align: center; color: inherit; background: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.fe-knopf:hover { transform: translateY(-1px); }
.fe-knopf:active { transform: translateY(1px); }
.fe-knopf[disabled] { cursor: progress; opacity: .8; transform: none; }
.fe-knopf--gold {
  background: linear-gradient(180deg, #f0c872, #c99433 60%, #b98424); color: #1b2238;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 16px rgba(193, 138, 46, .35);
}
.fe-knopf--gold:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 24px rgba(193, 138, 46, .5); }
.fe-knopf--hell { background: var(--papier); color: var(--tinte); border-color: rgba(31, 42, 68, .16); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.fe-knopf--leise { border-color: rgba(31, 42, 68, .25); color: var(--tinte); background: rgba(255, 255, 255, .6); }
.fe-knopf--dunkel { background: rgba(255, 255, 255, .07); border-color: rgba(236, 201, 119, .28); color: var(--papier); }
.fe-knopf--dunkel:hover { background: rgba(255, 255, 255, .12); }
.fe-knopf--text { min-height: 44px; padding: .4em .6em; color: var(--gold-hell); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.fe-knopf--gefahr { background: var(--rot); color: #fff; }
.fe-knopf--gefahr-leise { color: var(--rot); border-color: rgba(168, 65, 47, .35); background: #fff; }
.fe-knopf--gross { min-height: 54px; font-size: 1.12rem; padding: .6em 1.7em; }
.fe-knopf--ikon { width: 46px; height: 46px; padding: 0; }
.fe-knopf--rund { width: 46px; padding: 0; }
.fe-knopf.ist-ladend::before { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: fe-drehen .8s linear infinite; }
.fe-knopf.ist-ladend .fe-ikon { display: none; }

/* ---------- 4 Kopfleiste ---------- */
.fe-kopf {
  position: sticky; top: 0; z-index: 30; background: rgba(13, 20, 39, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie-hell);
}
.fe-kopf__innen { max-width: 1120px; margin: 0 auto; padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fe-kopf__links { min-width: 0; }
.fe-kopf__aktionen { display: flex; gap: 8px; align-items: center; }
.fe-marke { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; color: var(--gold-hell); font: 600 1.2rem var(--f-titel); letter-spacing: .02em; text-decoration: none; }
.fe-marke .fe-ikon { width: 1.4em; height: 1.4em; }
.fe-knopf--kopf { min-height: 44px; padding: .4em .9em; background: rgba(255, 255, 255, .06); border-color: rgba(236, 201, 119, .22); color: var(--papier); font-size: .95rem; }
.fe-knopf--kopf.fe-knopf--rund { width: 44px; padding: 0; }
.fe-knopf--kopf:hover { background: rgba(255, 255, 255, .12); }
.fe-knopf--zurueck { padding-left: .6em; }
.fe-kopf__abzeichen { display: inline-flex; align-items: center; gap: 3px; background: var(--gold); color: #1b2238; border-radius: 999px; padding: 1px 8px 1px 5px; font-size: .78rem; font-weight: 900; }
.fe-kopf__abzeichen .fe-ikon { width: 1em; height: 1em; }
@media (max-width: 560px) {
  .fe-kopf__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fe-marke span { font-size: 1.05rem; }
}

/* ---------- Titelbild (Held) ---------- */
.fe-held { position: relative; overflow: hidden; background: #1b2748; }
.fe-held__leinwand { position: absolute; left: 0; top: 50%; width: 100%; transform: translateY(calc(var(--fokus, 38%) * -1)); }
.fe-held__leinwand > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fe-held--ohne { display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 45%, rgba(242, 198, 106, .18), transparent 70%); }
.fe-held__emblem { width: min(150px, 38vw); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.fe-held__emblem svg { display: block; width: 100%; height: auto; }
.fe-held__licht { position: absolute; width: 2.7%; transform: translate(-50%, -6.3%); filter: drop-shadow(0 0 6px rgba(255, 214, 120, .95)); }
.fe-held__licht svg { display: block; width: 100%; height: auto; overflow: visible; }
.fe-held__licht::before {
  content: ""; position: absolute; left: 50%; top: 58%; width: 900%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 232, 160, .75) 0%, rgba(255, 200, 90, .35) 25%, rgba(255, 190, 80, 0) 62%);
  border-radius: 50%; animation: fe-schein 3.2s ease-in-out infinite; pointer-events: none;
}
/* Laterne (Produktvorlage) */
.fe-laterne .lat-schein { opacity: .25; transition: opacity .8s; }
.ist-hell .fe-laterne .lat-schein, .fe-held__licht .fe-laterne .lat-schein { opacity: 1; animation: fe-glimmen 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

/* ---------- 5 Start ---------- */
.fe-start { max-width: 1080px; margin: 0 auto; padding: 0 0 48px; display: grid; gap: 0; justify-items: center; text-align: center; }
.fe-start__held { width: calc(100% + 32px); margin: 0 -16px; height: clamp(190px, 31vh, 400px); border-radius: 0 0 28px 28px; box-shadow: var(--schatten); }
.fe-start__held::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(transparent, rgba(22, 32, 58, .85)); pointer-events: none; }
.fe-start__held.fe-held--ohne { height: auto; padding: 36px 0 8px; box-shadow: none; background: none; }
.fe-start__held.fe-held--ohne::after { display: none; }
.fe-start__spalte { display: grid; gap: 16px; justify-items: center; width: 100%; max-width: 560px; margin-top: -34px; position: relative; }
.fe-start__kopf { display: grid; gap: 4px; justify-items: center; }
.fe-start__marke { display: inline-flex; align-items: center; gap: .5em; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(13, 20, 39, .78); border: 1px solid var(--linie-hell); color: var(--gold-hell); font-weight: 900; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; }
.fe-start__titel { margin: 12px 0 0; font: 700 clamp(2.05rem, 8.2vw, 3.5rem)/1.06 var(--f-titel); color: var(--papier); text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); letter-spacing: -.01em; }
.fe-start__unter { margin: 8px 0 0; font: italic 400 1.12rem/1.4 var(--f-text); color: var(--gold-hell); }
.fe-start__alter { margin: 2px 0 0; font-size: .9rem; color: rgba(251, 247, 239, .7); }
.fe-start__intro { margin: 0; max-width: 34em; font: 400 clamp(1rem, 3.9vw, 1.08rem)/1.6 var(--f-text); color: rgba(251, 247, 239, .9); }
.fe-start__karte {
  width: 100%; max-width: 440px; display: grid; gap: 10px; text-align: left; color: var(--tinte);
  background: var(--papier-korn), linear-gradient(180deg, #fffdf7, var(--papier)); border-radius: 22px; padding: 22px 20px 20px;
  box-shadow: 0 0 0 1px rgba(236, 201, 119, .55), 0 0 0 7px rgba(236, 201, 119, .08), var(--schatten);
}
.fe-start__label { font: 900 .8rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dunkel); }
.fe-eingabe--code { font: 800 1.35rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; text-align: center; min-height: 56px; }
.fe-eingabe--code::placeholder { color: rgba(31, 42, 68, .28); }
.fe-start__knopf { width: 100%; margin-top: 4px; }
.fe-start__fehler { margin: 0; color: var(--rot); font-weight: 800; line-height: 1.4; }
.fe-start__fehler:empty { display: none; }
.fe-start__datenschutz { display: inline-flex; align-items: center; gap: .5em; margin: 0; font-size: .85rem; color: rgba(251, 247, 239, .66); }
.fe-recht { margin: 0; font-size: .8rem; }
.fe-recht a { color: inherit; text-underline-offset: 2px; }
.fe-start__recht { margin-top: -8px; color: rgba(251, 247, 239, .66); }
.fe-start__laden { display: inline-flex; align-items: center; gap: .7em; margin: 18px 0 0; color: var(--gold-hell); font-weight: 800; }
@media (max-width: 899px) { /* einspaltig: ein langes Wort im Titel („Sternenlaterne“ bei großer Schrift) wird getrennt, statt die Spalte über den Rand aufzublähen */
  .fe-start__spalte, .fe-start__kopf { min-width: 0; }
  .fe-start__kopf, .fe-start__titel { max-width: 100%; }
  .fe-start__titel { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
}
@media (min-width: 900px) {
  .fe-start { grid-template-columns: minmax(320px, 430px) 1fr; gap: 56px; align-items: center; align-content: center; min-height: 100vh; text-align: left; justify-items: start; padding: 40px 0; }
  .fe-start__held { width: 100%; margin: 0; height: auto; aspect-ratio: var(--verh, 3 / 4); border-radius: 22px; transform: rotate(-1.2deg); box-shadow: 0 0 0 6px rgba(236, 201, 119, .9), 0 0 0 12px rgba(13, 20, 39, .9), 0 0 0 13px rgba(236, 201, 119, .35), 0 30px 70px rgba(0, 0, 0, .55); }
  .fe-start__held .fe-held__leinwand { --fokus: 50% !important; }
  .fe-start__held::after { display: none; }
  .fe-start__spalte { margin-top: 0; justify-items: start; }
  .fe-start__kopf { justify-items: start; }
}

/* ---------- 6 Kalender ---------- */
.fe-brett { max-width: 1120px; margin: 0 auto; container-type: inline-size; }
.fe-szene { position: relative; margin: 0 -16px; border-radius: 0 0 28px 28px; overflow: hidden; box-shadow: var(--schatten); background: #1b2748; }
.fe-szene__bild { height: clamp(330px, 88vw, 440px); }
.fe-szene__bild .fe-held__leinwand { --fokus: 43% !important; }
.fe-szene__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 20, 39, .15) 0%, transparent 30%, rgba(13, 20, 39, .55) 62%, rgba(13, 20, 39, .94) 100%); pointer-events: none; }
.fe-szene__bild.fe-held--ohne { height: 210px; }
.fe-szene__text { position: absolute; inset: auto 0 0; padding: 0 18px 18px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.fe-szene__ueber { margin: 0; font: italic 400 1rem var(--f-text); color: var(--gold-hell); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.fe-brett__titel { margin: 0; font: 700 clamp(1.75rem, 6.4vw, 3rem)/1.08 var(--f-titel); color: #fff; text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, .75); }
.fe-leiste { display: grid; gap: 4px; justify-items: center; margin-top: 8px; }
.fe-leiste__sterne { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 100%; }
.fe-leiste__stern { width: clamp(11px, 3.1vw, 17px); height: clamp(11px, 3.1vw, 17px); color: rgba(255, 255, 255, .28); display: grid; }
/* Handy: 24 Sterne in zwei gleichen Reihen statt eines einzelnen Sterns in Zeile 2 */
@media (max-width: 559px) { [data-thema="kinder"] .fe-leiste__sterne { display: grid; grid-template-columns: repeat(12, auto); justify-content: center; } }
.fe-leiste__stern .fe-ikon { width: 100%; height: 100%; }
.fe-leiste__stern.ist-an { color: #f4cf72; filter: drop-shadow(0 0 4px rgba(244, 207, 114, .8)); }
.fe-leiste__text { margin: 0; font-weight: 800; font-size: .88rem; color: rgba(251, 247, 239, .88); }
@media (max-width: 479px) { .fe-szene__ueber { display: none; } }
@media (min-width: 760px) {
  .fe-szene__bild { height: 440px; }
  .fe-szene__bild .fe-held__leinwand { --fokus: 37% !important; }
  .fe-szene { margin: 18px 0 0; border-radius: 28px; box-shadow: 0 0 0 1px var(--linie-hell), var(--schatten); }
  .fe-szene__text { padding: 0 32px 26px; }
}
.fe-status {
  margin: 18px auto 0; max-width: 720px; padding: 18px 20px; text-align: center; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid var(--linie-hell);
  display: grid; gap: 8px; justify-items: center;
}
.fe-status p { margin: 0; }
.fe-status__titel { margin: 0; font: 700 1.5rem var(--f-titel); color: var(--gold-hell); }
.fe-status__datum { color: rgba(251, 247, 239, .78); }
.fe-status__gross { font: 700 1.25rem/1.35 var(--f-titel); color: var(--papier); }
.fe-countdown__titel { font-weight: 900; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hell); margin-top: 6px !important; }
.fe-countdown { display: flex; gap: 10px; justify-content: center; }
.fe-countdown__block { display: grid; justify-items: center; min-width: 74px; padding: 8px 10px 6px; border-radius: 14px; background: rgba(13, 20, 39, .6); border: 1px solid rgba(236, 201, 119, .35); box-shadow: inset 0 -12px 18px rgba(0, 0, 0, .25); }
.fe-countdown__block b { font: 700 2.1rem/1 var(--f-titel); color: #f4cf72; font-variant-numeric: tabular-nums; }
.fe-countdown__block span { font-size: .75rem; font-weight: 800; letter-spacing: .08em; color: rgba(251, 247, 239, .75); }
.fe-probe {
  position: relative; display: flex; align-items: center; gap: 14px; max-width: 720px; margin: 14px auto 0; padding: 16px 18px 16px 16px;
  border-radius: 20px; text-decoration: none; color: var(--tinte); overflow: hidden;
  background: var(--papier-korn), linear-gradient(135deg, #fff9ea, #f3e2b9); box-shadow: 0 0 0 2px rgba(236, 201, 119, .8), 0 14px 30px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.fe-probe:hover { transform: translateY(-2px) rotate(-.3deg); }
.fe-probe__schleife { position: absolute; top: 12px; right: -30px; width: 120px; height: 22px; background: var(--rot); transform: rotate(35deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.fe-probe__ikon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--nacht); color: var(--gold-hell); }
.fe-probe__ikon .fe-ikon { width: 28px; height: 28px; }
.fe-probe__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fe-probe__text strong { font: 700 1.3rem var(--f-titel); }
.fe-probe__text span { color: #4a4f5c; font-size: .95rem; }
.fe-probe__pfeil { width: 26px; height: 26px; color: var(--gold-dunkel); position: relative; z-index: 1; }
.fe-probe__haken { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gruen); color: #fff; display: grid; place-items: center; position: relative; z-index: 1; }
.fe-brett__fuss { margin: 34px auto 0; max-width: 720px; display: grid; gap: 6px; justify-items: center; text-align: center; color: rgba(251, 247, 239, .7); }

/* Türchen */
.fe-tueren {
  --spalten: 4; --luecke: 10px; --zelle: 84px;
  list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: var(--luecke);
  grid-template-columns: repeat(var(--spalten), minmax(0, 1fr)); grid-auto-rows: var(--zelle); grid-auto-flow: row dense;
}
@supports (width: 1cqi) { .fe-tueren { --zelle: calc((100cqi - (var(--spalten) - 1) * var(--luecke)) / var(--spalten) * .96); } }
@media (max-width: 339px) { .fe-tueren { --spalten: 3; } }
@media (min-width: 700px) { .fe-tueren { --spalten: 6; --luecke: 14px; --zelle: 118px; } }
.fe-tueren__platz { display: flex; min-width: 0; }
.fe-tueren__platz--b { grid-column: span 2; }
.fe-tueren__platz--h { grid-row: span 2; }
.fe-tueren__platz--g { grid-column: span 2; grid-row: span 2; }
.fe-tuer {
  --tuer: linear-gradient(160deg, #2c4176, #1c2b53); --rand: #182543; --zahl: var(--gold-hell);
  position: relative; flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 12px; background: none;
  color: var(--zahl); font: inherit; cursor: pointer; perspective: 1000px; -webkit-tap-highlight-color: transparent;
}
.fe-tueren__platz--b .fe-tuer, .fe-tueren__platz--g .fe-tuer { perspective: 2600px; }
.fe-tueren__platz--h .fe-tuer { perspective: 1900px; }
.fe-tuer--v1 { --tuer: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 7px, transparent 7px 14px), linear-gradient(160deg, #3a7563, #25503f); --rand: #1f463a; }
.fe-tuer--v2 { --tuer: radial-gradient(circle, rgba(255, 225, 190, .12) 1px, transparent 1.6px) 0 0 / 11px 11px, linear-gradient(160deg, #b44c3b, #8a3224); --rand: #772a1f; }
.fe-tuer--v3 { --tuer: var(--papier-korn), linear-gradient(160deg, #fbf1db, #ead7ad); --rand: #e2c996; --zahl: #7a560f; }
.fe-tuer--v4 { --tuer: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .5) 0 1px, transparent 1.5px) 0 0 / 23px 19px, radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .35) 0 .8px, transparent 1.3px) 0 0 / 17px 21px, linear-gradient(160deg, #1d2847, #121a31); --rand: #0f172c; }
.fe-tuer__innen {
  position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #fffbe9 0%, #f7df98 32%, #d7a443 72%, #9c6c1a 100%);
  box-shadow: inset 0 0 0 2px rgba(80, 50, 5, .35), inset 0 8px 18px rgba(80, 50, 5, .45);
}
.fe-tuer__buchstabe { font: 700 clamp(1.7rem, 8cqi, 3.2rem)/1 var(--f-titel); color: var(--tinte); text-shadow: 0 1px 0 rgba(255, 255, 255, .7); transform: translateX(14%); }
.fe-tuer__licht { width: 42%; height: 42%; color: #fff6d6; filter: drop-shadow(0 0 8px #fff2b8); transform: translateX(14%); }
.fe-tuer__klein { position: absolute; right: 8px; bottom: 5px; font: 800 .75rem var(--f-ui); color: rgba(60, 40, 5, .65); }
.fe-tuer__fluegel {
  position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center; background: var(--tuer);
  transform-origin: 0 50%; transform: rotateY(0deg); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.25, .8, .25, 1), box-shadow .3s ease, filter .3s ease;
  box-shadow: inset 0 0 0 1.5px rgba(236, 201, 119, .6), inset 0 0 0 6px var(--rand), inset 0 0 0 7px rgba(236, 201, 119, .32), 0 8px 16px rgba(0, 0, 0, .4);
}
.fe-tuer__zahl { font: 700 clamp(1.55rem, 6.4cqi, 2.7rem)/1 var(--f-titel); color: var(--zahl); text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.fe-tuer--v3 .fe-tuer__zahl { text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.fe-tueren__platz--g .fe-tuer__fluegel {
  background:
    linear-gradient(90deg, transparent calc(50% - 13px), rgba(0, 0, 0, .12) calc(50% - 13px), #b3402c calc(50% - 11px), #d4604a 50%, #b3402c calc(50% + 11px), rgba(0, 0, 0, .12) calc(50% + 13px), transparent calc(50% + 13px)),
    linear-gradient(0deg, transparent calc(50% - 13px), rgba(0, 0, 0, .12) calc(50% - 13px), #b3402c calc(50% - 11px), #d4604a 50%, #b3402c calc(50% + 11px), rgba(0, 0, 0, .12) calc(50% + 13px), transparent calc(50% + 13px)),
    var(--tuer);
}
.fe-tueren__platz--g .fe-tuer__zahl {
  display: grid; place-items: center; width: 42%; aspect-ratio: 1; border-radius: 50%; font-size: clamp(2.2rem, 10cqi, 4.2rem);
  color: #1b2238; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); background: radial-gradient(circle at 35% 30%, #fbe3a2, #d9a445 60%, #9c6c1a);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 6px 16px rgba(0, 0, 0, .35);
}
.fe-tueren__platz--g .fe-tuer__griff { display: none; }
.fe-tuer__deko { position: absolute; left: 11%; top: 11%; width: clamp(14px, 4.2cqi, 24px); height: auto; opacity: .55; color: var(--zahl); }
.fe-tueren__platz--g .fe-tuer__deko { width: clamp(22px, 7cqi, 40px); }
.fe-tuer__griff { position: absolute; right: 10%; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c8, #c18a2e 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.fe-tuer__zu { position: absolute; right: 9%; bottom: 9%; width: 20px; height: 20px; color: var(--zahl); opacity: .7; }
.fe-tuer__zu .fe-ikon { width: 100%; height: 100%; }
.fe-tuer__band { position: absolute; top: 8%; right: -4px; padding: 2px 9px 2px 8px; border-radius: 6px 0 0 6px; background: var(--rot); color: #fff; font: 900 .68rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.fe-tuer__haken { position: absolute; top: -6px; right: -6px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gruen); color: #fff; box-shadow: 0 0 0 2px var(--nacht); }
.fe-tuer__haken .fe-ikon { width: 15px; height: 15px; }
.fe-tuer.ist-offen:not(.ist-geloest):hover .fe-tuer__fluegel { transform: rotateY(-16deg); box-shadow: inset 0 0 0 1.5px rgba(236, 201, 119, .8), inset 0 0 0 6px var(--rand), inset 0 0 0 7px rgba(236, 201, 119, .45), 10px 10px 22px rgba(0, 0, 0, .45); }
.fe-tuer.ist-geloest .fe-tuer__fluegel { transform: rotateY(-64deg); }
.fe-tuer.ist-oeffnend .fe-tuer__fluegel { transform: rotateY(-100deg); }
.fe-tuer.ist-zu .fe-tuer__fluegel { filter: saturate(.72) brightness(.84); }
.fe-tuer--v3.ist-zu .fe-tuer__fluegel { filter: saturate(.8) brightness(.8) contrast(1.05); }
.fe-tuer.ist-zu .fe-tuer__fluegel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 60% at 50% 110%, rgba(238, 243, 248, .28), transparent 60%); }
.fe-tuer.ist-heute .fe-tuer__fluegel { animation: fe-pulsieren 2.4s ease-in-out infinite; }
.fe-tuer.ist-geloest .fe-tuer__zu { display: none; }
.fe-tuer:focus-visible { outline: none; }
.fe-tuer:focus-visible .fe-tuer__fluegel, .fe-tuer:focus-visible .fe-tuer__innen { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- 7 Tag ---------- */
.fe-tag { max-width: var(--breite); margin: 0 auto; padding-top: 18px; display: grid; gap: 20px; }
.fe-tag > * { min-width: 0; } /* breite Inhalte dürfen die Spalte nicht aufblähen */
.fe-raetsel.ist-breit { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 6px;
  background: linear-gradient(90deg, #fffdf8 30%, rgba(255, 253, 248, 0)) left / 24px 100% no-repeat local, linear-gradient(270deg, #fffdf8 30%, rgba(255, 253, 248, 0)) right / 24px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(31, 42, 68, .18), transparent) left / 10px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(31, 42, 68, .18), transparent) right / 10px 100% no-repeat scroll; }
.fe-tag__bild { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--nacht-hell); box-shadow: 0 0 0 1px var(--linie-hell), var(--schatten); }
.fe-tag__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fe-tag__kopf { display: flex; align-items: center; gap: 14px; }
.fe-tag__kopf > :last-child { min-width: 0; } /* Titelblock neben der Medaille darf schmaler sein als sein längstes Wort */
.fe-tag__medaille {
  flex: none; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; color: #1b2238;
  font: 700 1.9rem/1 var(--f-titel); background: radial-gradient(circle at 35% 30%, #fbe3a2, #d9a445 55%, #8f6419);
  box-shadow: 0 0 0 3px rgba(236, 201, 119, .3), 0 0 0 7px rgba(236, 201, 119, .08), 0 8px 20px rgba(0, 0, 0, .45);
}
.fe-tag__medaille .fe-ikon { width: 30px; height: 30px; }
@media (max-width: 479px) { .fe-tag__medaille { width: 54px; height: 54px; font-size: 1.6rem; } .fe-tag__kopf { gap: 12px; } }
.fe-tag__ueber { margin: 0; color: var(--gold-hell); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.fe-tag__ueber time { letter-spacing: .04em; text-transform: none; font-weight: 700; color: rgba(251, 247, 239, .72); font-size: .9rem; }
.fe-tag__titel { margin: 2px 0 0; font: 700 clamp(1.6rem, 5.6vw, 2.5rem)/1.12 var(--f-titel); color: #fff; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; } /* lange Titelwörter: trennen statt über den Rand laufen */

.fe-brief {
  position: relative; color: var(--tinte); padding: 30px 24px 34px; border-radius: 4px;
  background:
    linear-gradient(180deg, transparent calc(34% - 1px), rgba(31, 42, 68, .07) 34%, rgba(255, 255, 255, .9) calc(34% + 1px), transparent calc(34% + 3px)),
    var(--papier-korn),
    radial-gradient(120% 80% at 10% 0%, #fffdf6, var(--papier) 60%, #f3e9d3 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 22px 44px rgba(0, 0, 0, .42);
  font: 400 1.08rem/1.68 var(--f-text); transform: rotate(-.4deg);
}
.fe-brief p { margin: 0 0 .85em; }
.fe-brief__anrede { font: 400 1.85rem/1.15 var(--f-hand) !important; margin: 0 92px .5em 0 !important; color: #253258; }
.fe-brief__gruss { font: 400 1.7rem/1.2 var(--f-hand) !important; text-align: right; margin: 1em 64px 0 0 !important; color: #253258; hyphens: manual; -webkit-hyphens: manual; }
.fe-brief__ps { font: 400 1.35rem/1.3 var(--f-hand) !important; color: #555b69; margin: .9em 0 0 !important; }
.fe-brief__stempel { position: absolute; top: 12px; right: 12px; width: 88px; height: 88px; color: rgba(168, 65, 47, .5); transform: rotate(14deg); }
.fe-brief__siegel {
  position: absolute; right: 16px; bottom: -20px; width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%; color: rgba(255, 232, 215, .92); font: 700 1.15rem var(--f-titel); letter-spacing: .02em;
  background: radial-gradient(circle at 35% 30%, #d66a52, #a8412f 55%, #6f2518);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .35), inset 0 0 0 5px rgba(0, 0, 0, .1), inset 0 0 0 7px rgba(255, 210, 190, .18);
}
@media (min-width: 640px) { .fe-brief { padding: 38px 44px 40px; } }

.fe-beweis { border-radius: 20px; padding: 14px; background: rgba(255, 255, 255, .045); border: 1px solid var(--linie-hell); }
.fe-beweis__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 2px 12px; }
.fe-beweis__werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fe-beweis__blatt { position: relative; border-radius: 12px; padding: clamp(10px, 3.4vw, 24px); color: var(--tinte); background: #fffdf8; box-shadow: inset 0 0 0 1px rgba(31, 42, 68, .1), 0 10px 26px rgba(0, 0, 0, .3); }
.fe-beweis__blatt::before { content: ""; position: absolute; top: -9px; left: 22px; width: 18px; height: 42px; border: 3px solid #9aa3b5; border-radius: 9px; border-bottom-color: transparent; transform: rotate(8deg); }
.fe-raetsel { position: relative; font-size: clamp(.86rem, 2.7vw, 1rem); line-height: 1.45; }
.fe-raetsel__fehlt { margin: 0; padding: 40px 10px; text-align: center; color: var(--grau); }
.fe-raetsel.ist-malbar { outline: 2px dashed var(--gold); outline-offset: 6px; border-radius: 4px; }
.fe-stift__leinwand { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; }
.fe-raetsel.ist-malbar .fe-stift__leinwand { pointer-events: auto; touch-action: none; cursor: crosshair; }
.fe-raetsel.ist-malbar.ist-radierer .fe-stift__leinwand { cursor: cell; }
.fe-stift { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fe-stift__werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fe-stift__schalter { min-height: 44px; padding: .4em 1em; background: rgba(255, 255, 255, .07); border-color: rgba(236, 201, 119, .3); color: var(--papier); }
.fe-stift__schalter[aria-pressed="true"] { background: linear-gradient(180deg, #f0c872, #c99433); color: #1b2238; border-color: transparent; }
.fe-stift__werkzeug { width: 44px; height: 44px; min-height: 44px; background: rgba(255, 255, 255, .07); border-color: rgba(236, 201, 119, .25); color: var(--papier); }
.fe-stift__werkzeug[aria-pressed="true"] { background: var(--papier); color: var(--tinte); }
.fe-stift__farbe { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); background: none; display: grid; place-items: center; cursor: pointer; }
.fe-stift__farbe span { width: 24px; height: 24px; border-radius: 50%; background: var(--farbe); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.fe-stift__farbe[aria-pressed="true"] { border-color: var(--gold-hell); box-shadow: 0 0 0 3px rgba(236, 201, 119, .3); }
.fe-stift__trenner { width: 1px; height: 26px; background: rgba(236, 201, 119, .3); margin: 0 2px; }
/* Rätsel-Interaktionen */
.fe-ziehbar { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; position: relative; transition: filter .2s; }
.fe-ziehbar.ist-gezogen { cursor: grabbing; filter: drop-shadow(0 12px 16px rgba(31, 42, 68, .35)); }
.fe-ziehbar:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.fe-drehbar { cursor: grab; }
.fe-drehbar.ist-gezogen { cursor: grabbing; }
.fe-drehbar:focus { outline: none; }
.fe-drehbar:focus-visible { filter: drop-shadow(0 0 4px #c18a2e) drop-shadow(0 0 2px #c18a2e); }
.fe-spiegelleiste { display: flex; justify-content: center; margin: 0 0 12px; }
.fe-spiegelknopf[aria-pressed="true"] { background: linear-gradient(180deg, #f0c872, #c99433); border-color: transparent; }

.fe-aufgabe {
  border-radius: 18px; padding: 18px 20px 20px; color: var(--tinte);
  background: var(--papier-korn), linear-gradient(180deg, #fff8e4, #f8e9c4); box-shadow: 0 0 0 1px rgba(193, 138, 46, .55), 0 14px 30px rgba(0, 0, 0, .3);
}
.fe-aufgabe .fe-etikett { color: var(--gold-dunkel); }
.fe-aufgabe p { margin: .55em 0 0; font: 700 1.14rem/1.5 var(--f-ui); }

/* ---------- 8 Lösung ---------- */
.fe-antwort { text-align: center; border-radius: 20px; padding: 18px 12px 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); border: 1px solid var(--linie-hell); }
.fe-antwort__hinweis { display: block; margin: 8px auto 0; max-width: 30em; text-align: center; font-size: .9rem; line-height: 1.45; color: rgba(251, 247, 239, .8); }
.fe-antwort__hinweis .fe-ikon { margin-right: .35em; }
.fe-antwort__hinweis .fe-ikon { color: #f4cf72; }
.fe-antwort__aktionen { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.fe-kaestchen { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; margin: 18px 0 4px; }
.fe-kaestchen__wort { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 5px; max-width: 100%; min-width: 0; }
.fe-kaestchen__zelle { position: relative; flex: 1 1 22px; max-width: 48px; min-width: 0; }
.fe-kaestchen__feld {
  display: block; width: 100%; height: clamp(42px, 12vw, 58px); padding: 0; border-radius: 10px; border: 2px solid rgba(31, 42, 68, .18);
  background: #fffdf8; color: var(--tinte); font: 900 1.6rem/1 var(--f-ui); text-align: center; text-transform: uppercase;
  caret-color: transparent; box-shadow: inset 0 -4px 0 rgba(31, 42, 68, .07), 0 4px 10px rgba(0, 0, 0, .25); transition: border-color .15s, transform .15s, background-color .3s;
}
.fe-kaestchen__feld:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(236, 201, 119, .55), 0 6px 14px rgba(0, 0, 0, .3); transform: translateY(-2px); }
.fe-kaestchen__zelle.ist-stern .fe-kaestchen__feld { border-color: var(--gold); background: #fff3cf; }
.fe-kaestchen__zelle.ist-stern::after {
  content: ""; position: absolute; top: -10px; right: -8px; width: 22px; height: 22px; pointer-events: none;
  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='M12 2.6l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17l-5.6 3 1.1-6.3-4.6-4.4 6.3-.9z' fill='%23f2c14e' stroke='%238f6419' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}
.fe-kaestchen__fest { align-self: center; font: 900 1.6rem var(--f-ui); color: var(--papier); padding: 0 2px; }
.fe-kaestchen.ist-lang .fe-kaestchen__zelle { max-width: 40px; }
.fe-kaestchen.ist-lang .fe-kaestchen__feld { height: 50px; font-size: 1.35rem; }
.fe-kaestchen.ist-falsch .fe-kaestchen__feld { border-color: #d9765f; }
.fe-kaestchen.ist-richtig .fe-kaestchen__feld { border-color: #3f8a73; background: #eaf6f0; color: var(--gruen); }
.fe-kaestchen.ist-richtig .ist-stern .fe-kaestchen__feld { background: linear-gradient(180deg, #fff1c2, #f4d27c); color: #5b3f08; border-color: var(--gold); }
.fe-kaestchen.ist-richtig .fe-kaestchen__zelle { animation: fe-hops .55s ease-out both; }
.fe-kaestchen.ist-richtig .fe-kaestchen__wort > :nth-child(2) { animation-delay: .04s; } .fe-kaestchen.ist-richtig .fe-kaestchen__wort > :nth-child(3) { animation-delay: .08s; }
.fe-kaestchen.ist-richtig .fe-kaestchen__wort > :nth-child(4) { animation-delay: .12s; } .fe-kaestchen.ist-richtig .fe-kaestchen__wort > :nth-child(5) { animation-delay: .16s; }
.fe-kaestchen.ist-richtig .fe-kaestchen__wort > :nth-child(6) { animation-delay: .2s; } .fe-kaestchen.ist-richtig .fe-kaestchen__wort > :nth-child(n+7) { animation-delay: .24s; }
.fe-kaestchen.ist-gesperrt .fe-kaestchen__feld { cursor: default; }
.fe-meldung { min-height: 1.5em; margin: 10px 0 0; font-weight: 800; }
.fe-meldung.ist-falsch { color: #ffb8a6; }
.fe-meldung.ist-hinweis { color: var(--gold-hell); }
.fe-frei { margin-top: 10px; }
.fe-finale__frei { display: grid; gap: 12px; width: min(100%, 440px); margin: 16px auto 6px; text-align: left; }
.fe-finale__feld { display: grid; gap: 6px; }
.fe-finale__feldname { font-weight: 800; font-size: .92rem; opacity: .9; }
.fe-finale__frei .fe-eingabe:disabled { opacity: 1; background: #eaf6f0; color: var(--gruen, #2f5d50); font-weight: 800; }
.fe-frei summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: rgba(251, 247, 239, .78); font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.fe-frei summary::-webkit-details-marker { display: none; }
.fe-frei__form { display: flex; gap: 8px; max-width: 420px; margin: 6px auto 0; }
.fe-frei__form .fe-eingabe { flex: 1; min-width: 0; }
.fe-frei__form .fe-knopf--leise { background: var(--papier); }
.fe-antwort.ist-geloest .fe-antwort__hinweis { visibility: hidden; }

.fe-hilfe { border-radius: 20px; padding: 16px; border: 1px dashed rgba(236, 201, 119, .34); display: grid; gap: 12px; justify-items: center; text-align: center; }
.fe-tipps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; text-align: left; }
.fe-tipps li { display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; color: var(--tinte); background: var(--papier-korn), #fff7df; border-left: 6px solid var(--gold); box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.fe-tipps li strong { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dunkel); }
.fe-tipps li.ist-neu { animation: fe-auftauchen .5s ease-out both; }
.fe-tipps li:focus { outline: none; }
.fe-hilfe__knoepfe { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center; }

.fe-tag__fuss { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 8px; }
.fe-tag__fuss > :first-child { justify-self: start; }
.fe-tag__fuss > :last-child { justify-self: end; }
@media (max-width: 520px) {
  .fe-tag__fuss { grid-template-columns: 1fr 1fr; }
  .fe-tag__fuss > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
.fe-zu { max-width: 520px; margin: 48px auto 0; padding: 28px 22px; text-align: center; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid var(--linie-hell); display: grid; gap: 12px; justify-items: center; }
.fe-zu p { margin: 0; }
.fe-zu__schloss { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--nacht); color: var(--gold-hell); box-shadow: 0 0 0 3px var(--linie-hell); }
.fe-zu__schloss .fe-ikon { width: 38px; height: 38px; }
.fe-zu__titel { margin: 0; font: 700 1.9rem var(--f-titel); }

/* ---------- 9 Erfolg & Sternsplitter-Plan ---------- */
.fe-erfolg {
  display: grid; gap: 14px; padding-bottom: 20px; border-radius: 22px; overflow: hidden; color: var(--tinte); outline: none;
  background: var(--papier-korn), linear-gradient(180deg, #fffaf0, #f5e8cc); box-shadow: 0 0 0 2px rgba(193, 138, 46, .7), 0 24px 56px rgba(0, 0, 0, .5);
  animation: fe-auftauchen .6s cubic-bezier(.2, .8, .2, 1) both;
}
.fe-erfolg > :not(.fe-erfolg__band) { margin: 0 18px; }
.fe-erfolg__splitter > * { min-width: 0; } /* Plan und Überschrift dürfen die Spalte des Felds nicht aufblähen – sonst ragen sie über das Feld hinaus */
.fe-erfolg__band { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: #fff; background: linear-gradient(90deg, #2f5d50, #3f7d6b); }
.fe-erfolg.ist-aufgeloest .fe-erfolg__band { background: linear-gradient(90deg, #1f2a44, #34467c); }
.fe-erfolg__band h2 { margin: 0; font: 700 clamp(1.3rem, 4.4vw, 1.6rem)/1.2 var(--f-titel); }
.fe-erfolg__stern { flex: none; width: 36px; height: 36px; color: #f4cf72; filter: drop-shadow(0 0 6px rgba(244, 207, 114, .8)); animation: fe-drehen 9s linear infinite; }
.fe-erfolg__stern .fe-ikon { width: 100%; height: 100%; }
.fe-erfolg__loesung { font-size: 1.05rem; }
.fe-erfolg__loesung strong { font: 900 1.2rem var(--f-ui); letter-spacing: .08em; }
.fe-erfolg__text { font: 400 1.06rem/1.62 var(--f-text); }
.fe-erfolg p { margin: 0; }
.fe-erfolg__splitter { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 16px 12px; border-radius: 16px; background: radial-gradient(120% 100% at 50% 0%, #2a3b6c, var(--nacht)); color: var(--papier); }
.fe-erfolg__splitter .fe-klein { color: rgba(251, 247, 239, .8); }
.fe-erfolg__splitter .fe-etikett > span { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.fe-erfolg__zeichen { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; margin-left: .35em; border-radius: 8px; background: linear-gradient(180deg, #f5d98f, #c99433); color: #1b2238; font: 900 1.05rem var(--f-ui); letter-spacing: 0; }
.fe-erfolg__akte { position: relative; padding: 16px 16px 16px 18px; border-radius: 12px; background: #fff; border: 1px solid rgba(31, 42, 68, .12); box-shadow: 0 6px 14px rgba(31, 42, 68, .1); }
.fe-erfolg__akte::before { content: ""; position: absolute; top: -10px; right: 22px; width: 16px; height: 38px; border: 3px solid #9aa3b5; border-radius: 8px; border-bottom-color: transparent; transform: rotate(-10deg); }
.fe-erfolg__akte .fe-etikett { color: var(--rot); margin-bottom: 6px; }
.fe-erfolg__akte p { font: 400 1rem/1.55 var(--f-text); }
.fe-erfolg__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.fe-plan { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; min-width: 0; max-width: 100%; }
.fe-plan__wort { display: flex; gap: 4px; min-width: 0; max-width: 100%; } /* ein langes Wort schrumpft auf die Breite der Zeile (320 px), statt Finale und Karte aufzublähen */
.fe-plan__feld { display: grid; justify-items: center; gap: 2px; width: 36px; }
.fe-plan__tag { font: 900 .7rem var(--f-ui); color: var(--gold-hell); }
.fe-plan__zeichen { width: 100%; height: 42px; display: grid; place-items: center; border-radius: 8px; border: 2px solid rgba(236, 201, 119, .38); background: rgba(255, 255, 255, .06); font: 900 1.25rem var(--f-ui); color: var(--papier); }
.fe-plan__feld.ist-voll .fe-plan__zeichen { background: linear-gradient(180deg, #f6dc98, #cf9c3c); border-color: #f6dc98; color: #1b2238; box-shadow: 0 0 12px rgba(244, 207, 114, .35); }
.fe-plan__feld.ist-wartet .fe-plan__zeichen { color: transparent; background: rgba(255, 255, 255, .06); border-style: dashed; border-color: #f4cf72; box-shadow: 0 0 0 4px rgba(244, 207, 114, .18); }
.fe-plan__feld.ist-neu .fe-plan__zeichen { animation: fe-aufleuchten 1.1s ease-out both; }
.fe-plan__feld.ist-leuchtend .fe-plan__zeichen { animation: fe-welle 1s ease-in-out both; }
.fe-plan--klein { gap: 10px 14px; }
.fe-plan--klein .fe-plan__feld { width: 29px; }
.fe-plan--klein .fe-plan__zeichen { height: 34px; font-size: 1.02rem; border-radius: 7px; }
.fe-plan--klein .fe-plan__tag { font-size: .62rem; }

/* ---------- 10 Finale & Urkunde ---------- */
.fe-finale {
  display: grid; gap: 18px; text-align: center; padding: 26px 14px 22px; border-radius: 26px;
  background: radial-gradient(120% 70% at 50% 0%, #34498a 0%, #1d2a50 45%, var(--nacht) 100%);
  box-shadow: 0 0 0 2px rgba(236, 201, 119, .55), 0 0 60px rgba(236, 201, 119, .14), var(--schatten);
}
.fe-finale__kopf { display: grid; gap: 6px; justify-items: center; }
.fe-finale__kopf h2 { margin: 0; font: 700 clamp(1.8rem, 6vw, 2.6rem)/1.1 var(--f-titel); color: #f4cf72; text-shadow: 0 0 22px rgba(244, 207, 114, .35); }
.fe-finale__kopf p { margin: 0; max-width: 30em; color: rgba(251, 247, 239, .86); }
.fe-finale__ornament { display: flex; gap: 8px; align-items: center; color: #f4cf72; }
.fe-finale__ornament .fe-ikon { width: 14px; height: 14px; }
.fe-finale__ornament .fe-ikon:nth-child(2) { width: 24px; height: 24px; }
.fe-finale__frage { margin: 6px auto 0; max-width: 34em; font: 700 1.05rem/1.5 var(--f-ui); color: rgba(251, 247, 239, .95); }
.fe-finale__hilfe { display: grid; gap: 10px; justify-items: center; margin-top: 12px; }
.fe-finale.ist-geloest .fe-finale__eingabe .fe-finale__hilfe { display: none; }
.fe-epilog { display: grid; gap: 14px; margin-top: 8px; padding: 0 0 24px; border-radius: 20px; overflow: hidden; text-align: left; color: var(--tinte); background: var(--papier-korn), linear-gradient(180deg, #fffbf1, #f4e7c9); box-shadow: 0 0 0 2px rgba(236, 201, 119, .6), var(--schatten); outline: none; }
.fe-epilog > :not(.fe-epilog__bild) { margin-left: 20px; margin-right: 20px; }
.fe-epilog__bild { height: clamp(260px, 60vw, 420px); }
.fe-epilog__bild::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(255, 251, 241, .95)); }
.fe-epilog__bild.fe-held--ohne { height: 220px; background: radial-gradient(60% 70% at 50% 50%, #3a4f8f, var(--nacht)); }
.fe-epilog__bild.fe-held--ohne::after { display: none; }
.fe-epilog__titel { margin: 4px 0 0 !important; font: 700 clamp(1.9rem, 6vw, 2.6rem)/1.1 var(--f-titel); color: var(--tinte); text-align: center; }
.fe-epilog p { margin-top: 0; margin-bottom: 0; font: 400 1.1rem/1.66 var(--f-text); }
.fe-epilog__gruss { font: 400 1.9rem/1.2 var(--f-hand) !important; text-align: right; color: #253258; }
.fe-epilog.ist-animiert p, .fe-epilog.ist-animiert .fe-epilog__titel { animation: fe-auftauchen .9s ease-out both; animation-delay: calc(.5s + var(--i, 0) * .55s); }
.fe-urkunde { display: grid; gap: 12px; margin-top: 10px !important; padding-top: 18px; border-top: 2px dashed rgba(193, 138, 46, .45); }
.fe-urkunde .fe-etikett { color: var(--gold-dunkel); font-size: .86rem; }
.fe-urkunde__form { display: grid; gap: 8px; }
.fe-urkunde__label { font: 700 1.25rem var(--f-titel); }
.fe-urkunde__zeile { display: flex; flex-wrap: wrap; gap: 10px; }
.fe-urkunde__zeile .fe-eingabe { flex: 1 1 220px; }
.fe-urkunde__form .fe-meldung { color: var(--rot); margin: 0; }
.fe-urkunde__img { display: block; width: 100%; max-width: 520px; height: auto; margin: 8px auto 0; border-radius: 6px; box-shadow: 0 0 0 1px rgba(31, 42, 68, .15), 0 18px 40px rgba(31, 42, 68, .35); animation: fe-auftauchen .7s ease-out both; }
.fe-urkunde__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#fe-druckbogen { display: none; }

/* ---------- 11 Fallakte & Dialoge ---------- */
.fe-dialog { padding: 0; border: 0; background: none; color: var(--tinte); width: min(520px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow: visible; }
.fe-dialog::backdrop { background: rgba(6, 10, 22, .64); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.fe-dialog--ersatz { position: fixed; inset: 0; margin: auto; z-index: 90; height: fit-content; box-shadow: 0 0 0 100vmax rgba(6, 10, 22, .64); }
.fe-dialog__karte:focus { outline: none; }
.fe-dialog__karte {
  display: flex; flex-direction: column; max-height: calc(100dvh - 24px); border-radius: 22px; overflow: hidden;
  background: var(--papier-korn), var(--papier); box-shadow: 0 0 0 1px rgba(236, 201, 119, .5), 0 30px 80px rgba(0, 0, 0, .55);
  animation: fe-auftauchen .3s ease-out both;
}
.fe-dialog__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.fe-dialog__titel { margin: 0; font: 700 1.4rem/1.2 var(--f-titel); }
.fe-dialog__x { width: 44px; height: 44px; flex: none; color: var(--tinte); background: rgba(31, 42, 68, .06); }
.fe-dialog__inhalt { padding: 6px 20px 8px; overflow: auto; overscroll-behavior: contain; }
.fe-dialog__inhalt > p { margin: .3em 0 .6em; line-height: 1.55; }
.fe-dialog__label { display: block; font-weight: 800; margin: 6px 0 8px; }
.fe-dialog__fehler { color: var(--rot); font-weight: 800; min-height: 1.3em; margin: 8px 0 0; }
.fe-eingabe--zahl { font-size: 1.4rem; text-align: center; max-width: 180px; }
.fe-dialog__knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 12px 20px 20px; }
.fe-dialog--akte { width: min(580px, 100vw); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; }
.fe-dialog--akte .fe-dialog__karte { height: 100%; max-height: 100dvh; border-radius: 26px 0 0 26px; background: var(--papier-korn), linear-gradient(180deg, #efdcb2, #e6cf9e); animation: fe-schublade .38s cubic-bezier(.2, .8, .2, 1) both; }
.fe-dialog--akte .fe-dialog__kopf { padding: 16px 16px 8px 22px; }
.fe-dialog--akte .fe-dialog__titel { font-size: 1.6rem; }
.fe-akte__stempel { display: inline-block; margin-right: .55em; padding: 2px 8px; border: 2px solid var(--rot); border-radius: 5px; color: var(--rot); font: 900 .62rem/1.3 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; vertical-align: .4em; transform: rotate(-6deg); opacity: .85; }
.fe-dialog--akte .fe-dialog__inhalt { padding: 0; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
@media (max-width: 600px) { .fe-dialog--akte .fe-dialog__karte { border-radius: 0; } }
.fe-reiterleiste { display: flex; gap: 4px; padding: 6px 12px 0; }
.fe-reiter {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: .4em .5em;
  border: 0; border-radius: 14px 14px 0 0; cursor: pointer; font: 800 .92rem var(--f-ui); color: #5a4a2a; background: rgba(255, 255, 255, .28);
}
.fe-reiter[aria-selected="true"] { background: #fbf5e7; color: var(--tinte); box-shadow: 0 -3px 0 var(--rot) inset; box-shadow: none; }
.fe-reiter[aria-selected="true"] .fe-ikon { color: var(--rot); }
.fe-reiter:focus-visible { outline-offset: -3px; }
.fe-tafel { flex: 1; overflow: auto; overscroll-behavior: contain; background: #fbf5e7; padding: 18px 14px 28px; outline: none; }
.fe-tafel__unter { margin: 22px 4px 10px; font: 900 .78rem var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dunkel); }
.fe-tafel__leer { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 40px 12px; color: var(--grau); font-weight: 700; }
.fe-tafel__einleitung { margin: 0 4px 16px; line-height: 1.5; }
.fe-tafel__zahl { display: flex; justify-content: center; align-items: center; gap: .4em; margin: 18px 0 0; font-weight: 800; color: var(--gold-dunkel); }
.fe-tafel .fe-plan__tag { color: var(--gold-dunkel); }
.fe-tafel .fe-plan__zeichen { background: #fff; border-color: rgba(31, 42, 68, .25); color: var(--tinte); }
.fe-personen { display: grid; gap: 12px; }
.fe-person {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: start; padding: 14px; overflow: hidden;
  border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(31, 42, 68, .06), 0 8px 18px rgba(31, 42, 68, .1);
}
.fe-person__bild {
  grid-row: span 3; position: relative; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--farbe); color: #fff; font: 700 1.35rem var(--f-titel); box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(193, 138, 46, .55);
}
.fe-person.mit-foto .fe-person__bild { width: 84px; height: 84px; }
.fe-person__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.fe-person__text h3 { margin: 2px 0 0; font: 700 1.14rem/1.2 var(--f-titel); }
.fe-person__text p { margin: .2em 0 0; font-size: .95rem; line-height: 1.45; }
.fe-person__text .fe-person__rolle { margin: 1px 0 0; font-weight: 800; font-size: .84rem; color: var(--gold-dunkel); }
.fe-person__haken { grid-column: 2; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; cursor: pointer; justify-self: start; }
.fe-person__haken input { width: 24px; height: 24px; margin: 0; accent-color: var(--gruen); cursor: pointer; }
.fe-person__stempel {
  position: absolute; left: 4px; top: 66px; padding: 1px 5px; border: 3px solid var(--gruen); border-radius: 6px; color: var(--gruen); background: rgba(255, 255, 255, .9);
  font: 900 .68rem var(--f-ui); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: rotate(-12deg) scale(1.7); pointer-events: none;
  transition: opacity .25s ease, transform .4s cubic-bezier(.2, 1.6, .4, 1); }
.fe-person.ist-entlastet .fe-person__stempel { opacity: .92; transform: rotate(-12deg) scale(1); }
.fe-person.ist-entlastet .fe-person__bild { filter: grayscale(.5); }
.fe-beweise { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fe-beweise__eintrag { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 8px 18px rgba(31, 42, 68, .1); }
.fe-beweise__nr { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--rot); color: var(--rot); font: 800 1.15rem var(--f-titel); transform: rotate(-8deg); }
.fe-beweise__eintrag h3 { margin: 2px 0 4px; font: 700 1.05rem var(--f-titel); }
.fe-beweise__eintrag p { margin: 0; font: 400 .98rem/1.55 var(--f-text); }
.fe-einst__zeile { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid rgba(31, 42, 68, .1); justify-items: start; }
.fe-einst__zeile--quer { grid-template-columns: 1fr auto; align-items: center; }
.fe-einst__text h3 { margin: 0; font: 700 1.08rem var(--f-titel); }
.fe-einst__text p { margin: 2px 0 0; }
.fe-einst__qr { display: grid; gap: 6px; justify-items: center; width: 100%; }
.fe-einst__qrbild { width: 200px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(31, 42, 68, .12); }
.fe-einst__qrbild svg { display: block; width: 100%; height: auto; }
.fe-einst__datenschutz { display: flex; gap: .5em; align-items: flex-start; margin: 14px 0 6px; font-size: .9rem; color: #4a4f5c; }
.fe-einst__recht { margin: 0 0 6px; color: #4a4f5c; }
.fe-einst__warnung { color: var(--rot); }
.fe-schalter { position: relative; width: 64px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; }
.fe-schalter::before { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; bottom: 8px; border-radius: 999px; background: #c5c9d2; transition: background .2s; }
.fe-schalter__knopf { position: absolute; left: 8px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s; }
.fe-schalter[aria-checked="true"]::before { background: var(--gruen); }
.fe-schalter[aria-checked="true"] .fe-schalter__knopf { transform: translateX(28px); }
.fe-toast { position: fixed; left: 50%; bottom: 22px; z-index: 120; width: max-content; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px; background: var(--papier); color: var(--tinte); font-weight: 800; text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(236, 201, 119, .6); opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s; pointer-events: none; }
.fe-toast.ist-sichtbar { opacity: 1; transform: translate(-50%, 0); }
html.fe-dialog-offen { overflow: hidden; }
.fe-notfall { padding: 24px; }

/* Rätsel des Probetürchens */
.fe-spiegelwort { display: grid; place-items: center; padding: 34px 12px; }
.fe-spiegelwort__zettel { position: relative; display: inline-block; padding: 20px 34px 16px; background: #fff8d9; border: 1px solid #e7d9a6; transform: rotate(-2deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .14); }
.fe-spiegelwort__zettel::before { content: ""; position: absolute; left: 50%; top: -12px; width: 70px; height: 22px; margin-left: -35px; background: rgba(193, 138, 46, .35); transform: rotate(3deg); }
.fe-spiegelwort__text { display: block; transform: scaleX(-1); font: 400 3.4rem/1 var(--f-hand); letter-spacing: .08em; color: var(--tinte); }
.fe-spiegelwort__pfote { position: absolute; right: -24px; bottom: -22px; width: 44px; color: rgba(31, 42, 68, .45); transform: rotate(18deg); }

/* ---------- 12 Effekte ---------- */
.fe-funke { position: fixed; z-index: 200; pointer-events: none; display: block; }
.fe-funke .fe-ikon { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(244, 207, 114, .9)); }
.fe-flugstern { position: fixed; z-index: 210; pointer-events: none; display: grid; place-items: center; color: #f4cf72; filter: drop-shadow(0 0 10px rgba(244, 207, 114, .95)); }
.fe-flugstern .fe-ikon { position: absolute; inset: 0; width: 100%; height: 100%; }
.fe-flugstern b { position: relative; font: 900 1.05rem var(--f-ui); color: #1b2238; padding-top: 4px; }
@keyframes fe-einblenden { from { opacity: 0; transform: translateY(6px); } }
@keyframes fe-auftauchen { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes fe-schublade { from { transform: translateX(100%); } }
@keyframes fe-drehen { to { transform: rotate(360deg); } }
@keyframes fe-hops { 35% { transform: translateY(-10px); } 70% { transform: translateY(2px); } }
@keyframes fe-pulsieren {
  0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(236, 201, 119, .7), inset 0 0 0 6px var(--rand), inset 0 0 0 7px rgba(236, 201, 119, .4), 0 0 0 2px rgba(244, 207, 114, .9), 0 0 18px 2px rgba(244, 207, 114, .45); }
  50% { box-shadow: inset 0 0 0 1.5px rgba(236, 201, 119, .9), inset 0 0 0 6px var(--rand), inset 0 0 0 7px rgba(236, 201, 119, .5), 0 0 0 3px rgba(244, 207, 114, 1), 0 0 34px 8px rgba(244, 207, 114, .6); }
}
@keyframes fe-aufleuchten { 0% { transform: scale(1.6); box-shadow: 0 0 0 0 rgba(244, 207, 114, .9); } 55% { transform: scale(.94); } 100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(244, 207, 114, 0); } }
@keyframes fe-welle { 40% { transform: translateY(-10px) scale(1.12); box-shadow: 0 0 22px rgba(244, 207, 114, .95); } }
@keyframes fe-schein { 0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } }
@keyframes fe-glimmen { 0%, 100% { opacity: .82; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- 13 Druck ----------
   Ausdruck eines Türchens (Knopf „Rätsel drucken“) und der Urkunde. Für dieses Blatt gilt der Hausstandard wie für
   die Kaufdateien: Kinder Lesetext ab 12 pt, Erwachsene ab 11 pt; Antwortkästchen mit mindestens 10 mm (Kinder) bzw.
   8 mm lichter Weite; nichts näher als 10 mm am Blattrand; kein Lesetext in der Fußzone (unterste 14 mm).
   Die Maße enthalten die übliche Reserve: 12,2 pt · 11,2 pt · 10,2 mm · 8,2 mm. Literata ist in schriften.css auf
   95 % gesetzt (size-adjust) – deshalb stehen für den Brief 13,2 pt (gedruckt 12,5 pt) bzw. 12 pt (gedruckt 11,4 pt).
   Chrome setzt Kästchen auf ganze Bildpunkte (0,265 mm): 10,2 mm würden als 10,05 mm gedruckt, 8,2 mm als 7,94 mm –
   deshalb stehen für die Kästchen 10,4 mm (gedruckt 10,3 mm) bzw. 8,4 mm (gedruckt 8,2 mm).
   Kinderprodukt = Thema „kinder“ (Vorgabe), Erwachsenenprodukt = Thema „krimi“.
   Umbruch – fest, nicht dem Browser überlassen: Blatt 1 trägt Kopf und Brief, Blatt 2 beginnt mit dem Beweisstück und
   trägt darunter Aufgabe und Antwortkästchen. Ein Beweisstück, das mit Aufgabe und Kästchen nicht auf ein Blatt passt,
   bekommt das zweite Blatt für sich allein; Aufgabe und Kästchen stehen dann unter dem Brief. Dafür kennzeichnet das
   Produkt die Rätselgrafik in seinem CSS (außerhalb von @media print, die Klasse der Grafik einsetzen):
     .r-beispiel { --fe-druck-eigenes-blatt: 1; }
   app.js stellt das Beweisstück dann vor dem Druck im Dokument hinter die Antwort und danach zurück (beforeprint und
   afterprint). Es bleibt ein gewöhnlicher Block mit „break-before: page“ – kein Umstellen per Flex, dessen Umbruch die
   Browser verschieden behandeln.
   Nichts wird geteilt: weder Beweisstück noch Aufgabe noch Kästchen. (Chrome hält Blöcke nur dann sicher zusammen, wenn
   auch ihre Kinder keinen Umbruch erlauben – deshalb die Regel für die Kinder der drei Teile.)
   Grenzen: gemessen ist der Ausdruck aus Chrome (Erwachsenen-Maße des Themas „krimi“ noch ungemessen). Safari beachtet
   Papierformat und Ränder aus @page erst ab Version 18.2 (davor gelten die Ränder des Druckdialogs) und size-adjust erst
   ab Version 17 (der Brief druckt dort 13,2 statt 12,5 pt); ohne beforeprint/afterprint (sehr alte Browser) steht ein
   hohes Beweisstück mit Aufgabe und Kästchen hintereinander und kann drei Blätter brauchen.
   Die Rätselgrafiken regeln ihre Druckgrößen selbst (Druckregeln des Produkts, an seine raetsel.css angehängt:
   @media print, unter .fe-raetsel).
   Gemessen wird das Blatt von 02_Produktion/werkzeug/pruefsystem/web_lauf.js <produkt> S7 (Prüfpunkt „druckansicht“).
   Nur Druck – die Bildschirmdarstellung ändert sich nicht. */
@media print {
  @page { size: A4 portrait; margin: 14mm 15mm 16mm; }
  :root { --druck-text: 13.2pt; --druck-ui: 12.2pt; --druck-kaestchen: 10.4mm; }
  :root[data-thema="krimi"] { --druck-text: 12pt; --druck-ui: 11.2pt; --druck-kaestchen: 8.4mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body::before, body::after, .fe-schnee, .fe-kopf, .fe-springen, .fe-toast, .fe-funke, .fe-flugstern, dialog,
  .fe-tag__bild, .fe-tag__fuss, .fe-hilfe, .fe-erfolg-platz, .fe-finale-platz, .fe-beweis__werkzeuge, .fe-stift__leinwand,
  .fe-antwort__aktionen, .fe-frei, .fe-meldung, .fe-spiegelleiste, .fe-brief__siegel, .fe-brief__stempel, .fe-start { display: none !important; }
  .fe-inhalt { padding: 0; }
  .fe-inhalt > * { animation: none !important; }
  .fe-tag { display: block; max-width: none; padding: 0; }
  .fe-tag > * { margin-bottom: 5mm; }
  /* Kopf: Nummer, Türchen und Datum, Titel */
  .fe-tag__kopf { display: flex; gap: 4mm; break-after: avoid; }
  .fe-tag__medaille { width: 16mm; height: 16mm; background: none !important; border: 1.5pt solid #000; box-shadow: none; color: #000; font-size: 20pt; }
  .fe-tag__ueber, .fe-tag__ueber time { color: #000 !important; font-size: var(--druck-ui); line-height: 1.25; }
  .fe-tag__titel { color: #000; font-size: 22pt; text-shadow: none; }
  /* Brief (der Poststempel entfällt: Seine Umschrift wäre gedruckt unter 6 pt) */
  .fe-brief { background: none !important; box-shadow: none !important; transform: none; border: .8pt solid #999; border-radius: 3mm; padding: 5mm 7mm; font-size: var(--druck-text); line-height: 1.45; orphans: 3; widows: 3; }
  .fe-brief::before { display: none !important; }
  .fe-brief p { margin: 0 0 .65em; }
  .fe-brief__anrede { font-size: 18pt !important; margin: 0 0 .45em !important; }
  .fe-brief__gruss { font-size: 17pt !important; margin: .3em 0 0 !important; }
  .fe-brief__ps { font-size: 15pt !important; margin: .5em 0 0 !important; }
  .fe-brief__anrede, .fe-brief__gruss, .fe-brief__ps { color: #000 !important; }
  /* Beweisstück: beginnt immer ein neues Blatt und wird nie geteilt; ohne Rahmen, damit die Rätselgrafik die volle
     Satzbreite (180 mm) nutzen kann */
  .fe-beweis { background: none; border: 0; padding: 0; break-before: page; break-inside: avoid; }
  .fe-beweis__kopf { margin: 0 0 3mm; }
  .fe-beweis__blatt { background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; max-width: none; margin: 0; }
  .fe-beweis__blatt::before { display: none; }
  .fe-beweis > *, .fe-aufgabe > *, .fe-antwort > * { break-before: avoid; break-after: avoid; }
  .fe-aufgabe, .fe-antwort { orphans: 99; widows: 99; }
  .fe-etikett, .fe-aufgabe .fe-etikett { color: #000 !important; font-size: var(--druck-ui); letter-spacing: .08em; }
  .fe-raetsel { font-size: var(--druck-ui); line-height: 1.4; }
  .fe-raetsel > * { zoom: 1 !important; }
  .fe-raetsel.ist-breit { overflow: visible; background: none; padding-bottom: 0; }
  .fe-raetsel.ist-malbar { outline: none; }
  .fe-ziehbar { translate: none !important; }
  /* Aufgabe und Antwortkästchen: zusammen auf einem Blatt */
  .fe-aufgabe { background: none !important; box-shadow: none !important; border: 1.2pt solid #000; border-radius: 3mm; break-inside: avoid; break-after: avoid; padding: 4mm 5mm; }
  .fe-aufgabe p { font-size: var(--druck-ui); line-height: 1.4; margin-top: .45em; }
  .fe-antwort { background: none; border: 0; break-inside: avoid; break-before: avoid; padding: 0; }
  .fe-antwort__hinweis { color: #000; font-size: var(--druck-ui); line-height: 1.3; max-width: none; margin-top: 2mm; }
  .fe-antwort__hinweis .fe-ikon { color: #000; }
  /* Kästchen: alle gleich groß (lichte Weite = --druck-kaestchen); das Sternkästchen trägt einen Stern ÜBER dem Kästchen,
     damit sein Innenraum so groß bleibt wie der der anderen. Der Stern ist ein Bild im Inhalt (kein Hintergrund) und
     wird deshalb auch ohne „Hintergrundgrafiken“ gedruckt. */
  .fe-antwort .fe-kaestchen { gap: 7.5mm 7mm; margin: 8mm 0 0; }
  .fe-kaestchen__wort { gap: 7.5mm 1.6mm; }
  .fe-kaestchen__zelle, .fe-kaestchen.ist-lang .fe-kaestchen__zelle { flex: 0 0 auto; max-width: none; }
  .fe-kaestchen__feld, .fe-kaestchen.ist-lang .fe-kaestchen__feld {
    box-sizing: content-box; width: var(--druck-kaestchen); height: var(--druck-kaestchen); padding: 0;
    color: transparent !important; background: none !important; border: 1.5pt solid #000 !important; border-radius: 1.5mm; box-shadow: none !important; transform: none !important;
  }
  .fe-kaestchen__fest { color: #000; font-size: 18pt; }
  .fe-kaestchen__zelle.ist-stern::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17l-5.6 3 1.1-6.3-4.6-4.4 6.3-.9z' fill='%23000'/%3E%3C/svg%3E");
    top: auto; right: auto; bottom: calc(100% + .8mm); left: 50%; width: 19px; height: 19px; margin-left: -9.5px; background: none; filter: none; line-height: 0;
  }
  /* Urkunde: nur der Druckbogen, ein Blatt */
  html.fe-druck-urkunde body > :not(#fe-druckbogen) { display: none !important; }
  html.fe-druck-urkunde #fe-druckbogen { display: block !important; }
  #fe-druckbogen img { display: block; width: auto; max-width: 100%; max-height: 265mm; margin: 0 auto; }
}

/* ---------- 14 Thema „krimi“ (Erwachsene, Art déco wie die Druckfassung) ----------
   Nur Bildschirm; der Druck nutzt die neutralen Regeln aus Abschnitt 13.
   Jede Regel ist auf [data-thema="krimi"] beschränkt – das Kinderprodukt bleibt unberührt. */
@media screen {
  /* Grund: Smaragd-Nacht mit Sonnenstrahlen und Fächermuster */
  [data-thema="krimi"] body { background: #0c1f19; }
  [data-thema="krimi"] body::before {
    background:
      radial-gradient(70% 38% at 50% 0%, rgba(226, 194, 122, .15), transparent 72%),
      radial-gradient(circle at 50% 100%, transparent 0 7px, rgba(226, 194, 122, .05) 7px 8px, transparent 8px 13px, rgba(226, 194, 122, .05) 13px 14px, transparent 14px 19px, rgba(226, 194, 122, .06) 19px 20px, transparent 20px) 0 0 / 40px 20px,
      radial-gradient(circle at 50% 100%, transparent 0 7px, rgba(226, 194, 122, .05) 7px 8px, transparent 8px 13px, rgba(226, 194, 122, .05) 13px 14px, transparent 14px 19px, rgba(226, 194, 122, .06) 19px 20px, transparent 20px) 20px 10px / 40px 20px,
      linear-gradient(180deg, #173d32 0%, #10291f 42%, #07130f 100%);
  }
  /* Sonnenstrahlen von oben, nach unten ausblendend */
  [data-thema="krimi"] body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: repeating-conic-gradient(from 180deg at 50% -8%, rgba(226, 194, 122, .05) 0deg 1deg, transparent 1deg 6deg);
    -webkit-mask-image: radial-gradient(90% 75% at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 80%);
    mask-image: radial-gradient(90% 75% at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 80%);
  }
  [data-thema="krimi"] .fe-etikett { font: 600 .74rem/1.2 var(--f-ui); letter-spacing: .24em; }
  [data-thema="krimi"] .fe-eingabe { border-radius: 2px; border: 1px solid rgba(29, 34, 51, .3); background: #fffdf8; font-weight: 600; }
  [data-thema="krimi"] .fe-eingabe:focus { border-color: var(--gold); outline: 3px solid rgba(226, 194, 122, .5); }

  /* Knöpfe: rechteckig, Messing */
  [data-thema="krimi"] .fe-knopf { border-radius: 3px; font-weight: 600; letter-spacing: .02em; }
  [data-thema="krimi"] .fe-knopf--gold {
    background: linear-gradient(180deg, #f4dfa3 0%, #d9b061 52%, #b8893b 100%); color: #10291f; border-color: rgba(107, 74, 24, .55);
    text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 251, 232, .8), inset 0 0 0 1px rgba(255, 244, 210, .35), 0 6px 18px rgba(0, 0, 0, .35);
  }
  [data-thema="krimi"] .fe-knopf--gold:hover { box-shadow: inset 0 1px 0 rgba(255, 251, 232, .8), inset 0 0 0 1px rgba(255, 244, 210, .35), 0 10px 26px rgba(184, 137, 59, .35); }
  [data-thema="krimi"] .fe-knopf--gross { font-size: 1rem; padding: .6em 1.9em; }
  [data-thema="krimi"] .fe-knopf--hell { background: var(--papier); color: var(--tinte); border-color: rgba(184, 137, 59, .6); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
  [data-thema="krimi"] .fe-knopf--leise { border-color: rgba(29, 34, 51, .3); background: #fffdf8; }
  [data-thema="krimi"] .fe-knopf--dunkel { background: rgba(8, 22, 17, .55); border-color: rgba(226, 194, 122, .38); }
  [data-thema="krimi"] .fe-knopf--dunkel:hover { background: rgba(31, 77, 63, .55); }
  [data-thema="krimi"] .fe-knopf--gefahr-leise { background: #fffdf8; }

  /* Kopfleiste: Nachtgrün mit doppelter Goldlinie */
  [data-thema="krimi"] .fe-kopf { background: rgba(7, 20, 15, .88); border-bottom: 1px solid rgba(226, 194, 122, .45); box-shadow: 0 3px 0 -1px rgba(7, 20, 15, .88), 0 4px 0 -1px rgba(226, 194, 122, .2); }
  [data-thema="krimi"] .fe-marke { font: 700 1.25rem var(--f-titel); letter-spacing: .03em; }
  [data-thema="krimi"] .fe-knopf--kopf { background: rgba(255, 255, 255, .04); border-color: rgba(226, 194, 122, .3); font-weight: 600; }
  [data-thema="krimi"] .fe-knopf--kopf:hover { background: rgba(226, 194, 122, .12); }
  [data-thema="krimi"] .fe-kopf__abzeichen { background: var(--messing); color: #10291f; border-radius: 2px; font: 700 .76rem var(--f-ui); letter-spacing: .04em; }

  /* Rahmen mit Art-déco-Ecken für helle Karten (Linie + Ecken als ::before) */
  [data-thema="krimi"] .fe-start__karte, [data-thema="krimi"] .fe-brief, [data-thema="krimi"] .fe-erfolg,
  [data-thema="krimi"] .fe-epilog, [data-thema="krimi"] .fe-probe, [data-thema="krimi"] .fe-dialog--einst .fe-dialog__karte,
  [data-thema="krimi"] .fe-dialog:not(.fe-dialog--akte):not(.fe-dialog--einst) .fe-dialog__karte { position: relative; }
  [data-thema="krimi"] .fe-start__karte::before, [data-thema="krimi"] .fe-brief::before, [data-thema="krimi"] .fe-erfolg::before,
  [data-thema="krimi"] .fe-epilog::before, [data-thema="krimi"] .fe-probe::before, [data-thema="krimi"] .fe-dialog--einst .fe-dialog__karte::before,
  [data-thema="krimi"] .fe-dialog:not(.fe-dialog--akte):not(.fe-dialog--einst) .fe-dialog__karte::before {
    content: ""; position: absolute; inset: 7px; z-index: 3; pointer-events: none;
    border: 1px solid rgba(184, 137, 59, .6); background: var(--z-ecken);
  }
  [data-thema="krimi"] .fe-probe::before, [data-thema="krimi"] .fe-dialog--einst .fe-dialog__karte::before,
  [data-thema="krimi"] .fe-dialog:not(.fe-dialog--akte):not(.fe-dialog--einst) .fe-dialog__karte::before { inset: 5px; background: var(--z-ecken-klein); }

  /* Titelbild */
  [data-thema="krimi"] .fe-held { background: #0b1d17; }
  [data-thema="krimi"] .fe-held__licht { width: 11%; transform: translate(-50%, -50%); filter: none; }
  [data-thema="krimi"] .fe-held__licht svg { opacity: 0; }
  [data-thema="krimi"] .fe-held__licht::before {
    top: 50%; width: 300%; mix-blend-mode: screen;
    background: radial-gradient(circle, rgba(255, 244, 205, .95) 0%, rgba(255, 220, 130, .6) 22%, rgba(255, 196, 90, .22) 42%, rgba(255, 190, 80, 0) 66%);
  }
  [data-thema="krimi"] .fe-held--ohne { background: radial-gradient(60% 70% at 50% 45%, rgba(226, 194, 122, .2), transparent 70%); }

  /* Start */
  [data-thema="krimi"] .fe-start__held { border-radius: 0; box-shadow: 0 1px 0 rgba(226, 194, 122, .6), var(--schatten); }
  [data-thema="krimi"] .fe-start__held::after { background: linear-gradient(transparent, rgba(9, 24, 19, .9)); }
  [data-thema="krimi"] .fe-start__marke { background: none; border: 0; padding: 0; gap: .75em; font: 600 .7rem/1 var(--f-ui); letter-spacing: .4em; }
  [data-thema="krimi"] .fe-start__marke::before, [data-thema="krimi"] .fe-start__marke::after { content: ""; width: 30px; height: 5px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .7; }
  [data-thema="krimi"] .fe-start__titel { font-weight: 700; font-size: clamp(2.2rem, 8.8vw, 3.9rem); line-height: 1.04; color: #fff8e8; letter-spacing: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, .55); }
  [data-thema="krimi"] .fe-start__unter { font: italic 400 1.2rem/1.35 var(--f-titel); color: var(--gold-hell); }
  [data-thema="krimi"] .fe-start__alter { font: 600 .72rem var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 246, 234, .62); margin-top: 6px; }
  [data-thema="krimi"] .fe-start__intro { font: 400 1.04rem/1.68 var(--f-text); color: rgba(251, 246, 234, .88); text-wrap: pretty; }
  [data-thema="krimi"] .fe-start__karte {
    border-radius: 2px; padding: 26px 24px 22px; background: var(--papier-korn), linear-gradient(180deg, #fffdf7, #f7efdd);
    box-shadow: 0 0 0 1px rgba(226, 194, 122, .75), 0 0 0 6px rgba(8, 22, 17, .85), 0 0 0 7px rgba(226, 194, 122, .3), var(--schatten);
  }
  [data-thema="krimi"] .fe-start__label { font: 700 .74rem var(--f-ui); letter-spacing: .24em; color: var(--gruen); }
  [data-thema="krimi"] .fe-eingabe--code { font: 400 1.32rem var(--f-hand); letter-spacing: .1em; min-height: 56px; }
  [data-thema="krimi"] .fe-eingabe--code::placeholder { color: rgba(29, 34, 51, .26); }
  [data-thema="krimi"] .fe-start__datenschutz { color: rgba(251, 246, 234, .6); }
  @media (min-width: 900px) {
    [data-thema="krimi"] .fe-start__held {
      transform: none; border-radius: 2px;
      box-shadow: 0 0 0 1px rgba(226, 194, 122, .85), 0 0 0 8px #0b1d17, 0 0 0 9px rgba(226, 194, 122, .45), 0 36px 80px rgba(0, 0, 0, .6);
    }
    [data-thema="krimi"] .fe-start__held::after {
      display: block; inset: 12px; height: auto; z-index: 2; background: var(--z-ecken); border: 1px solid rgba(226, 194, 122, .55);
    }
    [data-thema="krimi"] .fe-start__spalte { gap: 18px; }
  }

  /* Kalender: Szene */
  [data-thema="krimi"] .fe-szene { border-radius: 0; background: #0b1d17; box-shadow: 0 1px 0 rgba(226, 194, 122, .5), var(--schatten); }
  [data-thema="krimi"] .fe-szene::after { content: ""; position: absolute; inset: 8px; z-index: 2; pointer-events: none; border: 1px solid rgba(226, 194, 122, .5); background: var(--z-ecken-klein); }
  [data-thema="krimi"] .fe-szene__bild::after {
    background:
      radial-gradient(ellipse 48% 62% at 50% 100%, rgba(7, 20, 15, .9) 0%, rgba(7, 20, 15, .6) 55%, transparent 100%),
      linear-gradient(180deg, rgba(7, 20, 15, .18) 0%, transparent 26%, transparent 58%, rgba(7, 20, 15, .55) 100%);
  }
  [data-thema="krimi"] .fe-szene__text { padding-bottom: 22px; }
  [data-thema="krimi"] .fe-szene__ueber { font: italic 400 1.05rem var(--f-titel); letter-spacing: .02em; }
  [data-thema="krimi"] .fe-brett__titel { font-weight: 700; color: #fff8e8; letter-spacing: .005em; }
  [data-thema="krimi"] .fe-leiste__sterne { gap: 5px; }
  [data-thema="krimi"] .fe-leiste__stern { width: clamp(8px, 2.2vw, 11px); height: clamp(8px, 2.2vw, 11px); transform: rotate(45deg); border: 1px solid rgba(226, 194, 122, .55); color: transparent; }
  [data-thema="krimi"] .fe-leiste__stern.ist-an { background: var(--messing); border-color: #f6e2a6; filter: drop-shadow(0 0 4px rgba(242, 208, 128, .8)); }
  [data-thema="krimi"] .fe-leiste__text { font: 600 .8rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: rgba(251, 246, 234, .82); margin-top: 4px; }
  @media (min-width: 760px) {
    [data-thema="krimi"] .fe-szene { border-radius: 2px; box-shadow: 0 0 0 1px rgba(226, 194, 122, .7), 0 0 0 7px #0b1d17, 0 0 0 8px rgba(226, 194, 122, .3), var(--schatten); }
    [data-thema="krimi"] .fe-szene::after { inset: 12px; background: var(--z-ecken); }
    [data-thema="krimi"] .fe-szene__text { padding-bottom: 30px; }
  }

  /* Kalender: Status, Countdown, Probekapitel */
  [data-thema="krimi"] .fe-status {
    border-radius: 2px; background: linear-gradient(180deg, rgba(23, 61, 50, .78), rgba(8, 22, 17, .82));
    border: 1px solid rgba(226, 194, 122, .5); box-shadow: inset 0 0 0 4px rgba(8, 22, 17, .6), inset 0 0 0 5px rgba(226, 194, 122, .2);
  }
  [data-thema="krimi"] .fe-status__titel { font-weight: 700; color: var(--gold-hell); }
  [data-thema="krimi"] .fe-status .fe-status__gross { font: 700 1.25rem/1.35 var(--f-titel); color: #fff8e8; }
  [data-thema="krimi"] .fe-status p { font-family: var(--f-text); }
  [data-thema="krimi"] .fe-status__datum { font: italic 400 1rem var(--f-text); }
  [data-thema="krimi"] .fe-status .fe-countdown__titel { font: 600 .72rem var(--f-ui); letter-spacing: .26em; }
  [data-thema="krimi"] .fe-countdown__block {
    border-radius: 2px; min-width: 78px; background: linear-gradient(180deg, #10291f, #081611);
    border: 1px solid rgba(226, 194, 122, .55); box-shadow: inset 0 0 0 3px #081611, inset 0 0 0 4px rgba(226, 194, 122, .22);
  }
  [data-thema="krimi"] .fe-countdown__block b { font-weight: 700; color: #f1d58e; }
  [data-thema="krimi"] .fe-countdown__block span { font: 600 .68rem var(--f-ui); letter-spacing: .16em; text-transform: uppercase; }
  [data-thema="krimi"] .fe-probe {
    border-radius: 2px; background: var(--papier-korn), linear-gradient(135deg, #fffcf2, #f1e3bf);
    box-shadow: 0 0 0 1px rgba(226, 194, 122, .8), 0 0 0 5px rgba(8, 22, 17, .8), 0 0 0 6px rgba(226, 194, 122, .3), 0 14px 30px rgba(0, 0, 0, .35);
    padding: 18px 20px 18px 18px;
  }
  [data-thema="krimi"] .fe-probe__schleife { height: 20px; top: 14px; background: linear-gradient(180deg, #a93a35, #7d2220); }
  [data-thema="krimi"] .fe-probe__ikon { border-radius: 0; background: var(--z-schild) center / contain no-repeat; width: 48px; height: 56px; color: #3b2a10; }
  [data-thema="krimi"] .fe-probe__ikon .fe-ikon { width: 22px; height: 22px; }
  [data-thema="krimi"] .fe-probe__text strong { font-weight: 700; color: #13322a; }
  [data-thema="krimi"] .fe-probe__text span { color: #4a4336; font-family: var(--f-text); }
  [data-thema="krimi"] .fe-probe__haken { background: var(--gruen); box-shadow: 0 0 0 2px var(--gold-hell); }
  [data-thema="krimi"] .fe-brett__fuss { color: rgba(251, 246, 234, .62); }
}
@media screen {
  /* Kalender: Türen wie Hoteltüren – Lack, Goldleisten, Messing-Zimmerschild */
  [data-thema="krimi"] .fe-tuer { --tuer: linear-gradient(160deg, #265c4b, #133a2e); --rand: #0e2a21; --zahl: #3b2a10; --leiste: rgba(226, 194, 122, .62); --schloss: var(--gold-hell); }
  [data-thema="krimi"] .fe-tuer--v1 { --tuer: linear-gradient(160deg, #8e302b, #5a1b19); --rand: #43120f; }
  [data-thema="krimi"] .fe-tuer--v2 { --tuer: linear-gradient(160deg, #2a2f35, #121518); --rand: #0a0c0e; }
  [data-thema="krimi"] .fe-tuer--v3 { --tuer: var(--papier-korn), linear-gradient(160deg, #f8efd9, #e3d0a4); --rand: #d2b983; --leiste: rgba(143, 100, 36, .7); --schloss: #8a6420; }
  [data-thema="krimi"] .fe-tuer--v4 { --tuer: linear-gradient(160deg, #22355c, #121d36); --rand: #0c1428; }
  [data-thema="krimi"] .fe-tuer, [data-thema="krimi"] .fe-tuer__innen, [data-thema="krimi"] .fe-tuer__fluegel { border-radius: 3px; }
  [data-thema="krimi"] .fe-tuer__fluegel {
    box-shadow: inset 0 0 0 1px var(--leiste), inset 0 0 0 5px var(--rand), inset 0 0 0 6px var(--leiste), 0 8px 16px rgba(0, 0, 0, .45);
  }
  /* Füllung (Kassette) mit gestufter Art-déco-Kante */
  [data-thema="krimi"] .fe-tuer__fluegel::before {
    content: ""; position: absolute; inset: 15% 17%; pointer-events: none; border: 1px solid var(--leiste); opacity: .75;
    clip-path: polygon(0 7px, 7px 7px, 7px 0, calc(100% - 7px) 0, calc(100% - 7px) 7px, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 7px calc(100% - 7px), 0 calc(100% - 7px));
  }
  [data-thema="krimi"] .fe-tueren__platz--b .fe-tuer__fluegel::before { inset: 16% 9%; }
  [data-thema="krimi"] .fe-tueren__platz--h .fe-tuer__fluegel::before { inset: 9% 17%; }
  [data-thema="krimi"] .fe-tuer__deko { display: none; }
  [data-thema="krimi"] .fe-tuer__zahl {
    position: relative; z-index: 1; display: grid; place-items: center; height: 54%; max-height: 92px; aspect-ratio: 90 / 104;
    background: var(--z-schild) center / contain no-repeat; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45));
    color: #3b2a10; font: 700 clamp(1.05rem, 5.4cqi, 2.2rem)/1 var(--f-titel); text-shadow: 0 1px 0 rgba(255, 244, 210, .7); padding-top: .06em;
  }
  [data-thema="krimi"] .fe-tuer__griff { right: 8%; width: 8px; height: 8px; margin-top: -4px; background: radial-gradient(circle at 35% 35%, #fff4d2, #d0a24c 55%, #7a5520); }
  [data-thema="krimi"] .fe-tuer__zu { color: var(--schloss); opacity: .6; width: 16px; height: 16px; right: 8%; bottom: 8%; }
  [data-thema="krimi"] .fe-tuer__band { top: 7%; padding: 2px 8px 2px 9px; border-radius: 2px 0 0 2px; background: linear-gradient(180deg, #a93a35, #7d2220); color: #f6e2a6; font: 700 .6rem var(--f-ui); letter-spacing: .22em; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); z-index: 2; }
  [data-thema="krimi"] .fe-tuer__haken { background: var(--gruen); box-shadow: 0 0 0 2px var(--gold-hell), 0 2px 6px rgba(0, 0, 0, .4); }
  [data-thema="krimi"] .fe-tuer__innen {
    background: radial-gradient(circle at 55% 42%, #fff9e6 0%, #f3d995 30%, #c99a44 68%, #6e4a17 100%);
    box-shadow: inset 0 0 0 1px rgba(80, 50, 5, .5), inset 0 10px 20px rgba(60, 35, 5, .5);
  }
  [data-thema="krimi"] .fe-tuer__buchstabe { font-weight: 700; color: #10291f; text-shadow: 0 1px 0 rgba(255, 248, 225, .8); }
  [data-thema="krimi"] .fe-tuer__klein { font: 700 .72rem var(--f-titel); color: rgba(60, 38, 8, .7); }
  /* Tür 24: der goldene Kalender – schwarzer Lack mit Sonnenstrahlen */
  [data-thema="krimi"] .fe-tueren__platz--g .fe-tuer__fluegel {
    background:
      repeating-conic-gradient(from -90deg at 50% 58%, rgba(226, 194, 122, .2) 0deg 2.5deg, transparent 2.5deg 10deg),
      radial-gradient(circle at 50% 58%, rgba(242, 208, 128, .3), transparent 58%),
      linear-gradient(160deg, #1f2326, #0b0d0f);
    --rand: #070809;
  }
  [data-thema="krimi"] .fe-tueren__platz--g .fe-tuer__fluegel::before { inset: 8%; }
  [data-thema="krimi"] .fe-tueren__platz--g .fe-tuer__zahl {
    width: auto; height: 50%; max-height: 150px; border-radius: 0; box-shadow: none; aspect-ratio: 90 / 104;
    background: var(--z-schild) center / contain no-repeat; font-size: clamp(1.8rem, 9cqi, 3.6rem); color: #3b2a10;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
  }

  /* Tagesansicht */
  [data-thema="krimi"] .fe-tag__bild { border-radius: 2px; box-shadow: 0 0 0 1px rgba(226, 194, 122, .75), 0 0 0 6px #0b1d17, 0 0 0 7px rgba(226, 194, 122, .3), var(--schatten); }
  [data-thema="krimi"] .fe-tag__medaille {
    width: 60px; height: 70px; border-radius: 0; background: var(--z-schild) center / contain no-repeat; box-shadow: none;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); color: #3b2a10; font: 700 1.65rem/1 var(--f-titel); padding-top: 2px;
  }
  [data-thema="krimi"] .fe-tag__medaille .fe-ikon { width: 24px; height: 24px; }
  [data-thema="krimi"] .fe-tag__ueber { font: 600 .72rem var(--f-ui); letter-spacing: .26em; }
  [data-thema="krimi"] .fe-tag__ueber time { font: italic 400 .95rem var(--f-text); letter-spacing: 0; }
  [data-thema="krimi"] .fe-tag__titel { font-weight: 700; color: #fff8e8; }
  @media (max-width: 479px) { [data-thema="krimi"] .fe-tag__medaille { width: 50px; height: 58px; font-size: 1.35rem; } }

  /* Kapiteltext: Buchseite mit Initiale, Hotelstempel und Siegel */
  [data-thema="krimi"] .fe-brief {
    transform: none; border-radius: 2px; padding: 34px 26px 38px; color: var(--tinte);
    background: var(--papier-korn), linear-gradient(180deg, #fffdf7 0%, #fbf6ea 45%, #f4ead2 100%);
    box-shadow: 0 0 0 1px rgba(184, 137, 59, .5), 0 22px 44px rgba(0, 0, 0, .45);
    font: 400 1.06rem/1.72 var(--f-text); text-align: justify; hyphens: auto; -webkit-hyphens: auto;
  }
  [data-thema="krimi"] .fe-brief p { margin: 0 0 .75em; }
  /* Handy: Blocksatz reißt in schmalen Spalten Löcher → linksbündig; Datumszeile nie trennen */
  @media (max-width: 560px) { [data-thema="krimi"] .fe-brief, [data-thema="krimi"] .fe-epilog p { text-align: left; } }
  [data-thema="krimi"] .fe-brief__gruss { hyphens: manual; -webkit-hyphens: manual; }
  [data-thema="krimi"] .fe-brief > p:first-of-type:not(.fe-brief__anrede)::first-letter {
    float: left; margin: .06em .1em 0 0; font: 700 3.5em/.78 var(--f-titel); color: var(--gruen);
  }
  [data-thema="krimi"] .fe-brief__stempel { position: relative; float: right; top: auto; right: auto; width: 82px; height: 82px; margin: -12px -8px 6px 14px; color: rgba(184, 137, 59, .62); transform: rotate(-9deg); }
  [data-thema="krimi"] .fe-brief__anrede { font: italic 400 1.55rem/1.25 var(--f-titel) !important; color: var(--nacht); margin: 0 0 .55em !important; text-align: left; }
  [data-thema="krimi"] .fe-brief__gruss { font: italic 400 1.08rem/1.45 var(--f-titel) !important; color: var(--gruen); text-align: right; margin: 1.2em 0 0 !important; }
  [data-thema="krimi"] .fe-brief__ps {
    font: italic 400 .98rem/1.6 var(--f-text) !important; color: #4a4336; text-align: left;
    margin: 1.1em 58px 0 0 !important; padding-top: .8em; border-top: 1px solid rgba(184, 137, 59, .55);
  }
  [data-thema="krimi"] .fe-brief__siegel {
    right: 18px; bottom: -22px; color: #f7d9a8; font: 700 1.25rem var(--f-titel);
    background: radial-gradient(circle at 36% 32%, #c9493f, #9b2d2a 55%, #5d1210);
  }
  @media (min-width: 640px) { [data-thema="krimi"] .fe-brief { padding: 42px 48px 44px; } }
  @media (max-width: 639px) {
    [data-thema="krimi"] .fe-brief { padding-top: 64px; }
    [data-thema="krimi"] .fe-brief__stempel { position: absolute; float: none; top: 12px; right: 14px; width: 60px; height: 60px; margin: 0; }
  }

  /* Beweisstück & Aufgabe */
  [data-thema="krimi"] .fe-beweis { border-radius: 2px; background: rgba(7, 20, 15, .55); border-color: rgba(226, 194, 122, .32); }
  [data-thema="krimi"] .fe-beweis__blatt { border-radius: 2px; background: #fffdf6; box-shadow: inset 0 0 0 1px rgba(184, 137, 59, .35), 0 10px 26px rgba(0, 0, 0, .35); }
  [data-thema="krimi"] .fe-beweis__blatt::before { border-color: #c9a45a; border-bottom-color: transparent; }
  [data-thema="krimi"] .fe-stift__schalter[aria-pressed="true"], [data-thema="krimi"] .fe-spiegelknopf[aria-pressed="true"] { background: linear-gradient(180deg, #f4dfa3, #c99a44); }
  [data-thema="krimi"] .fe-aufgabe {
    position: relative; border-radius: 2px; padding: 18px 22px 20px; background: #fffdf6;
    box-shadow: 0 0 0 2px var(--gruen), 0 14px 30px rgba(0, 0, 0, .35);
  }
  [data-thema="krimi"] .fe-aufgabe::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(31, 77, 63, .75); pointer-events: none; }
  [data-thema="krimi"] .fe-aufgabe .fe-etikett { color: var(--gruen); }
  [data-thema="krimi"] .fe-aufgabe p { font: 500 1.1rem/1.58 var(--f-text); color: var(--tinte); }

  /* Lösung */
  [data-thema="krimi"] .fe-antwort { border-radius: 2px; background: linear-gradient(180deg, rgba(23, 61, 50, .72), rgba(8, 22, 17, .72)); border-color: rgba(226, 194, 122, .38); }
  [data-thema="krimi"] .fe-antwort__hinweis { font-family: var(--f-text); font-style: italic; }
  [data-thema="krimi"] .fe-antwort__hinweis .fe-ikon { color: var(--gold-hell); }
  [data-thema="krimi"] .fe-kaestchen__feld {
    border-radius: 2px; border: 1.5px solid rgba(29, 34, 51, .32); background: #fffdf6; color: var(--nacht);
    font: 700 1.55rem/1 var(--f-titel); box-shadow: inset 0 -3px 0 rgba(29, 34, 51, .06), 0 4px 10px rgba(0, 0, 0, .3);
  }
  [data-thema="krimi"] .fe-kaestchen__zelle.ist-stern .fe-kaestchen__feld {
    border: 2px solid var(--gold); background: #fff7e2;
    box-shadow: 0 0 0 2px #fff7e2, 0 0 0 3.5px var(--gold), 0 4px 12px rgba(0, 0, 0, .35);
  }
  [data-thema="krimi"] .fe-kaestchen__zelle.ist-stern::after { top: -12px; right: -11px; width: 20px; height: 20px; background-image: var(--z-vierzack); }
  [data-thema="krimi"] .fe-kaestchen__fest { font-family: var(--f-titel); }
  [data-thema="krimi"] .fe-kaestchen.ist-lang .fe-kaestchen__feld { font-size: 1.3rem; }
  [data-thema="krimi"] .fe-kaestchen.ist-richtig .fe-kaestchen__feld { border-color: #3f7d6b; background: #eef5ef; color: var(--gruen); }
  [data-thema="krimi"] .fe-kaestchen.ist-richtig .ist-stern .fe-kaestchen__feld { background: linear-gradient(180deg, #fbeec4, #e6c475); color: #3b2a10; border-color: var(--gold); }
  [data-thema="krimi"] .fe-hilfe { border-radius: 2px; border: 1px solid rgba(226, 194, 122, .3); background: rgba(7, 20, 15, .35); }
  [data-thema="krimi"] .fe-tipps li { border-radius: 2px; background: var(--papier-korn), #fffaf0; border-left: 4px solid var(--gold); font-family: var(--f-text); }
  [data-thema="krimi"] .fe-tipps li strong { font: 700 .7rem var(--f-ui); letter-spacing: .2em; }
  [data-thema="krimi"] .fe-zu { border-radius: 2px; background: linear-gradient(180deg, rgba(23, 61, 50, .82), rgba(8, 22, 17, .82)); border-color: rgba(226, 194, 122, .45); }
  [data-thema="krimi"] .fe-zu__schloss { width: 64px; height: 74px; border-radius: 0; background: var(--z-schild) center / contain no-repeat; box-shadow: none; color: #3b2a10; }
  [data-thema="krimi"] .fe-zu__schloss .fe-ikon { width: 28px; height: 28px; }
  [data-thema="krimi"] .fe-zu__titel { font-weight: 700; color: #fff8e8; }

  /* Erfolg, Goldbuchstabe, Aktennotiz */
  [data-thema="krimi"] .fe-erfolg {
    border-radius: 2px; background: var(--papier-korn), linear-gradient(180deg, #fffdf6, #f5ecd6);
    box-shadow: 0 0 0 1px rgba(226, 194, 122, .85), 0 0 0 6px #0b1d17, 0 0 0 7px rgba(226, 194, 122, .35), 0 24px 56px rgba(0, 0, 0, .5);
  }
  [data-thema="krimi"] .fe-erfolg::before { inset: 5px; background: var(--z-ecken-klein); }
  [data-thema="krimi"] .fe-erfolg__band { color: #f6e2a6; background: linear-gradient(90deg, #10291f, #1f4d3f 50%, #10291f); border-bottom: 1px solid rgba(226, 194, 122, .65); padding: 16px 20px; }
  [data-thema="krimi"] .fe-erfolg.ist-aufgeloest .fe-erfolg__band { background: linear-gradient(90deg, #2c1413, #6a201d 50%, #2c1413); }
  [data-thema="krimi"] .fe-erfolg__band h2 { font-weight: 700; }
  [data-thema="krimi"] .fe-erfolg__stern { color: #f1d58e; }
  [data-thema="krimi"] .fe-erfolg > :not(.fe-erfolg__band) { margin-left: 22px; margin-right: 22px; }
  [data-thema="krimi"] .fe-erfolg__loesung strong { font: 700 1.2rem var(--f-titel); letter-spacing: .1em; color: var(--nacht); }
  [data-thema="krimi"] .fe-erfolg__text { font: 400 1.05rem/1.68 var(--f-text); }
  [data-thema="krimi"] .fe-erfolg__splitter { border-radius: 2px; background: radial-gradient(120% 100% at 50% 0%, #245a4a, #0d2219); box-shadow: inset 0 0 0 1px rgba(226, 194, 122, .45); }
  [data-thema="krimi"] .fe-erfolg__zeichen { border-radius: 2px; background: var(--messing); color: #10291f; font: 700 1.15rem var(--f-titel); }
  [data-thema="krimi"] .fe-erfolg__akte { border-radius: 2px; background: #f3eee1; border: 0; border-left: 4px solid #cdbb91; box-shadow: inset 0 0 0 1px rgba(184, 137, 59, .25); }
  [data-thema="krimi"] .fe-erfolg__akte::before { border-color: #c9a45a; border-bottom-color: transparent; }
  [data-thema="krimi"] .fe-erfolg__akte .fe-etikett { color: var(--rot); }
  [data-thema="krimi"] .fe-erfolg__akte p { font: 400 .96rem/1.62 var(--f-hand); color: #262b3a; }

  /* Goldbuchstaben-Plan */
  [data-thema="krimi"] .fe-plan__tag { font: 600 .66rem var(--f-ui); letter-spacing: .04em; }
  [data-thema="krimi"] .fe-plan__zeichen { border-radius: 2px; border: 1px solid rgba(226, 194, 122, .5); background: rgba(7, 20, 15, .5); font: 700 1.2rem var(--f-titel); }
  [data-thema="krimi"] .fe-plan__feld.ist-voll .fe-plan__zeichen { background: var(--messing); border-color: #f6e2a6; color: #10291f; box-shadow: 0 0 12px rgba(242, 208, 128, .35); }
  [data-thema="krimi"] .fe-plan--klein .fe-plan__zeichen { font-size: 1rem; }
  [data-thema="krimi"] .fe-tafel .fe-plan__zeichen { background: #fffdf8; border-color: rgba(29, 34, 51, .28); color: var(--tinte); }
  [data-thema="krimi"] .fe-tafel .fe-plan__feld.ist-voll .fe-plan__zeichen { background: var(--messing); border-color: #b8893b; color: #10291f; }
  [data-thema="krimi"] .fe-flugstern b { font-family: var(--f-titel); color: #10291f; }

  /* Finale & Epilog */
  [data-thema="krimi"] .fe-finale {
    border-radius: 2px; background: radial-gradient(120% 70% at 50% 0%, #245a4a 0%, #13322a 48%, #081611 100%);
    box-shadow: 0 0 0 1px rgba(226, 194, 122, .8), 0 0 0 7px #0b1d17, 0 0 0 8px rgba(226, 194, 122, .38), 0 0 60px rgba(226, 194, 122, .12), var(--schatten);
  }
  [data-thema="krimi"] .fe-finale__kopf h2 { font-weight: 700; color: #f1d58e; }
  [data-thema="krimi"] .fe-finale__kopf p { font: italic 400 1.02rem/1.55 var(--f-text); }
  [data-thema="krimi"] .fe-finale__ornament .fe-ikon { display: none; }
  [data-thema="krimi"] .fe-finale__ornament { width: 150px; height: 18px; background: var(--z-vierzack) center / 18px no-repeat, linear-gradient(currentColor, currentColor) left 50% / 58px 1px no-repeat, linear-gradient(currentColor, currentColor) right 50% / 58px 1px no-repeat; color: var(--gold-hell); }
  [data-thema="krimi"] .fe-finale__frage { font: 500 1.08rem/1.62 var(--f-text); }
  [data-thema="krimi"] .fe-epilog {
    border-radius: 2px; background: var(--papier-korn), linear-gradient(180deg, #fffdf7, #f4ead2);
    box-shadow: 0 0 0 1px rgba(226, 194, 122, .85), 0 18px 40px rgba(0, 0, 0, .45);
  }
  [data-thema="krimi"] .fe-epilog > :not(.fe-epilog__bild) { margin-left: 30px; margin-right: 30px; }
  @media (max-width: 520px) { [data-thema="krimi"] .fe-epilog > :not(.fe-epilog__bild) { margin-left: 22px; margin-right: 22px; } }
  [data-thema="krimi"] .fe-epilog__bild::after { background: linear-gradient(transparent, rgba(251, 246, 234, .97)); }
  [data-thema="krimi"] .fe-epilog__titel { font-weight: 700; color: var(--nacht); }
  [data-thema="krimi"] .fe-epilog p { font: 400 1.08rem/1.72 var(--f-text); text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
  /* Schmale Bildschirme: Flattersatz statt Blocksatz – sonst entstehen große Wortlücken */
  @media (max-width: 600px) { [data-thema="krimi"] .fe-brief, [data-thema="krimi"] .fe-epilog p { text-align: left; } }
  [data-thema="krimi"] .fe-epilog__gruss { font: italic 400 1.4rem/1.3 var(--f-titel) !important; color: var(--gruen); text-align: right !important; }
  [data-thema="krimi"] .fe-urkunde { border-top: 1px solid rgba(184, 137, 59, .55); }
  [data-thema="krimi"] .fe-urkunde p { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
  [data-thema="krimi"] .fe-urkunde__label { font-weight: 700; color: var(--nacht); }
  [data-thema="krimi"] .fe-urkunde__img { border-radius: 1px; }

  /* Ermittlerakte: grüne Ledermappe, Karteikarten auf Papier */
  [data-thema="krimi"] .fe-dialog__karte { border-radius: 2px; box-shadow: 0 0 0 1px rgba(184, 137, 59, .8), 0 30px 80px rgba(0, 0, 0, .6); }
  [data-thema="krimi"] .fe-dialog__titel { font-weight: 700; color: var(--nacht); }
  [data-thema="krimi"] .fe-dialog--akte .fe-dialog__karte {
    border-radius: 3px 0 0 3px; background: var(--papier-korn), linear-gradient(180deg, #22533f, #133a2e);
    box-shadow: -1px 0 0 rgba(226, 194, 122, .75), -30px 0 80px rgba(0, 0, 0, .55);
  }
  [data-thema="krimi"] .fe-dialog--akte .fe-dialog__titel { color: #f6e2a6; }
  [data-thema="krimi"] .fe-dialog--akte .fe-dialog__x { color: #f6e2a6; background: rgba(255, 255, 255, .08); }
  [data-thema="krimi"] .fe-akte__stempel { border-color: var(--gold-hell); color: var(--gold-hell); font: 700 .6rem/1.3 var(--f-ui); letter-spacing: .24em; }
  [data-thema="krimi"] .fe-reiter { border-radius: 3px 3px 0 0; color: var(--gold-hell); background: rgba(255, 255, 255, .07); font: 600 .9rem var(--f-ui); }
  [data-thema="krimi"] .fe-reiter[aria-selected="true"] { background: #fbf6ea; color: var(--nacht); }
  [data-thema="krimi"] .fe-reiter[aria-selected="true"] .fe-ikon { color: var(--rot); }
  [data-thema="krimi"] .fe-tafel { background: var(--papier-korn), #fbf6ea; }
  [data-thema="krimi"] .fe-tafel__unter { font: 700 .72rem var(--f-ui); letter-spacing: .24em; color: var(--rot); }
  [data-thema="krimi"] .fe-person { border-radius: 2px; background: #fffdf8; box-shadow: 0 0 0 1px rgba(184, 137, 59, .35), 0 6px 14px rgba(40, 30, 10, .1); }
  [data-thema="krimi"] .fe-person__bild { box-shadow: 0 0 0 2px #fffdf8, 0 0 0 3.5px var(--gold); font-family: var(--f-titel); }
  [data-thema="krimi"] .fe-person__text h3 { font-weight: 700; color: var(--nacht); }
  [data-thema="krimi"] .fe-person__text p { font-family: var(--f-text); }
  [data-thema="krimi"] .fe-person__text .fe-person__rolle { font: 700 .7rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--rot); }
  [data-thema="krimi"] .fe-person__haken { font: 600 .95rem var(--f-ui); }
  [data-thema="krimi"] .fe-person__stempel { border-radius: 2px; font: 700 .64rem var(--f-ui); letter-spacing: .16em; }
  [data-thema="krimi"] .fe-beweise__eintrag { grid-template-columns: 42px 1fr; border-radius: 2px; background: #fffdf8; box-shadow: 0 0 0 1px rgba(184, 137, 59, .35), 0 6px 14px rgba(40, 30, 10, .08); }
  [data-thema="krimi"] .fe-beweise__nr { width: 40px; height: 46px; border: 0; border-radius: 0; transform: none; background: var(--z-schild) center / contain no-repeat; color: #3b2a10; font: 700 1rem var(--f-titel); }
  [data-thema="krimi"] .fe-beweise__eintrag h3 { font-weight: 700; color: var(--nacht); }
  [data-thema="krimi"] .fe-beweise__eintrag p { font: 400 .92rem/1.6 var(--f-hand); color: #262b3a; }
  [data-thema="krimi"] .fe-tafel__zahl { font: 600 .9rem var(--f-ui); }
  [data-thema="krimi"] .fe-tafel__einleitung { font: italic 400 1rem/1.55 var(--f-text); color: #4a4336; }
  [data-thema="krimi"] .fe-einst__text h3 { font-weight: 700; color: var(--nacht); }
  [data-thema="krimi"] .fe-toast { border-radius: 2px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(226, 194, 122, .7); }
}
/* ---- Film-Knopf (Vorspann, spiele/film/) ------------------------------------------ */
.fe-film-knopf { display: inline-flex; align-items: center; gap: .55em; justify-self: start; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(236, 201, 119, .7); background: rgba(8, 12, 22, .55); color: var(--gold-hell);
  font: 600 .95rem/1.1 var(--f-ui, inherit); letter-spacing: .02em; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fe-film-knopf:hover { background: rgba(8, 12, 22, .78); border-color: var(--gold-hell); }
.fe-film-knopf .fe-ikon { width: 1.25em; height: 1.25em; }
.fe-film-knopf__dauer { font-weight: 400; opacity: .72; font-variant-numeric: tabular-nums; }
.fe-szene__film { justify-self: center; margin-top: 6px; padding: 8px 15px; font-size: .88rem; }
.fe-epilog__film { justify-self: center; margin-top: 4px; }
@media (max-width: 479px) { .fe-szene__film { padding: 7px 13px; font-size: .82rem; } }

/* ---------- Fensterhöhe am Bildschirm ----------
   Auf einem Laptop zählt die Höhe des Fensters, nicht die Breite. Die großen Bilder richten sich deshalb nach ihr, damit der erste
   Bildschirm zeigt, worum es geht: die Startansicht ganz (Bild, Code-Feld, Knopf), im Kalender das heutige Türchen und die erste
   Reihe, im Tag das Bild und den Anfang des Briefs. Geprüft mit 03_Website/werkzeug/ansicht.js bei 1440 × 780 und 1280 × 680. */
@media screen and (min-width: 900px) {
  .fe-inhalt:has(> .fe-start) { padding-bottom: 0; }
  .fe-start { padding: clamp(10px, 2.4vh, 40px) 0; }
  .fe-start__held { justify-self: center; width: min(100%, calc((100vh - clamp(64px, 14vh, 130px)) * var(--verh, 3 / 4))); }
  .fe-start__spalte { gap: clamp(8px, 1.8vh, 16px); max-width: 620px; }
  .fe-start__titel { margin-top: clamp(4px, 1.2vh, 12px); font-size: clamp(2.1rem, 6.4vh, 3.5rem); }
  .fe-start__intro { max-width: 38em; font-size: clamp(.98rem, 2.2vh, 1.08rem); line-height: 1.5; }
  .fe-start__karte { padding: clamp(14px, 2.6vh, 22px) 20px clamp(14px, 2.4vh, 20px); gap: clamp(6px, 1.2vh, 10px); }
  .fe-start .fe-eingabe--code { min-height: clamp(46px, 7vh, 56px); }
  /* Krimi-Kleid: Seine eigenen Regeln weiter oben (Abstand der Spalte 18 px, Vorspann 1.04rem/1.68, Karte 26/22 px) sind genauer
     als die allgemeinen Regeln dieses Blocks und galten deshalb weiter – die Startansicht war bei 1280 × 680 1,2 Bildschirme lang.
     Hier richten sich auch sie nach der Fensterhöhe (gemessen mit ansicht.js: 1440 × 780 und 1280 × 680 je genau ein Bildschirm). */
  [data-thema="krimi"] .fe-start__titel { font-size: clamp(2rem, 5.6vh, 3.9rem); }
  [data-thema="krimi"] .fe-start__spalte { max-width: 680px; gap: clamp(6px, calc(6vh - 31px), 16px); }
  [data-thema="krimi"] .fe-start__intro { max-width: 42em; font-size: clamp(.94rem, 2.3vh, 1.04rem); line-height: 1.5; }
  [data-thema="krimi"] .fe-start__karte { padding: clamp(12px, 2.4vh, 22px) 22px clamp(12px, 2.2vh, 20px); }
}
@media screen and (min-width: 760px) {
  .fe-szene__bild { height: clamp(250px, 38vh, 440px); }
  .fe-tag__bild { justify-self: center; width: min(100%, max(420px, calc(44vh * 16 / 9))); }
}
/* Vorfreude (vom Kauf bis zum 1. Dezember): Unter dem Bild stehen die Karte mit dem Countdown und der Weg zum Probetürchen. Beides
   gehört in den ersten Bildschirm. In niedrigen Fenstern und am Handy ist das Bild deshalb etwas kürzer (gemessen: 1280 × 680 und
   390 × 760, Unterkante des Probetürchens vorher 682 und 794 px). */
@media screen and (min-width: 760px) and (max-height: 720px) {
  .fe-szene__bild { height: clamp(220px, 34vh, 440px); }
}
@media screen and (max-width: 759px) {
  .fe-szene__bild { height: clamp(250px, min(88vw, 38vh), 440px); }
}
/* Handy und schmale Fenster: Wer hier ankommt, hat gekauft und will den Code eingeben. Das Code-Feld steht deshalb vor der
   Geschichte und dem Vorspann; das Bild ist ein kürzerer Ausschnitt. Die Reihenfolge im Dokument bleibt (Vorlesen: erst die
   Geschichte, dann das Feld). */
@media screen and (max-width: 899px) {
  .fe-start__held { height: clamp(150px, 24vh, 300px); }
  .fe-start__kopf { order: 1; }
  .fe-start__karte { order: 2; }
  .fe-start__intro { order: 3; }
  .fe-start__film { order: 4; justify-self: center; }
  .fe-start__datenschutz { order: 5; }
  .fe-start__recht { order: 6; }
}
/* Die Startansicht füllt das Fenster genau. Das Einblenden verschiebt sie deshalb nicht (sonst wäre die Seite während der
   Animation 6 px höher als das Fenster und bekäme kurz einen Rollbalken). */
@keyframes fe-einblenden-ruhig { from { opacity: 0; } }
.fe-inhalt > .fe-start { animation-name: fe-einblenden-ruhig; }
