/* Rätselreise „Leise rätselt der Schnee“
   Screendesign: Figma „Heimkehr Weihnachtsaktion“, Frame „Weihnachtssaktion“ (23:5552)
   Heimkehr-Farben: Blau #0E37EE, Hellblau #0BA9EB, Orange #FD8800, Violett #9429B9, Petrol #009598
   Schrift: PP Agrandir (selbst gehostet, Webfont-Lizenz für die Live-Version klären) */

@font-face { font-family: "Agrandir Grand"; src: url("../fonts/PPAgrandir-GrandHeavy.woff") format("woff"), url("../fonts/PPAgrandir-GrandHeavy.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Agrandir Text"; src: url("../fonts/PPAgrandirText-Regular.woff") format("woff"), url("../fonts/PPAgrandirText-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Agrandir Text"; src: url("../fonts/PPAgrandirText-Bold.woff") format("woff"), url("../fonts/PPAgrandirText-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --blue: #0e37ee;
  --blue-dark: #0c2bb8;
  --lightblue: #0ba9eb;
  --orange: #fd8800;
  --teal: #009598;
  --page: #0a24a1;
  --sky: #071d7d;
  --night: #071560;
  --night-deep: #040b2e;
  --purple: #9429b9;
  --gold: #ffc94a;
  --warm: #ffd36e;
  --snow: #f4f7ff;
  --ice: #e3eaff;
  --ink: #141a3d;
  --muted: #5a6285;
  --line: #d5ddf5;
  --ok: #1f8a4c;
  --error: #c62828;
  --radius: 8px;
  --font: "Agrandir Text", "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Agrandir Grand", "Agrandir Text", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  color: #fff;
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
h1, h2 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.25; color: #fff; text-wrap: balance; }
h3 { font-family: var(--font); font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: calc(1193px + 48px); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: calc(1440px + 48px); }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; }

/* ---------- Winterwelt ---------- */
/* Desktop wie im Screendesign: Logo und Headline im Himmel, alles skaliert mit der Breite (1920 px = 100cqw) */
.world { position: relative; background: var(--sky); color: #fff; container-type: inline-size; }
.world-intro {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12.92cqw 24px 0; pointer-events: none;
}
.world-logo { display: block; width: 13.65cqw; pointer-events: auto; }
.world-logo img { display: block; width: 100%; height: auto; }
.world-intro h1 { font-size: 5.69cqw; line-height: 1.1; margin: 2.46cqw 0 0; max-width: 70.4cqw; text-wrap: balance; }
.world-sub { margin: .7cqw 0 0; font-size: max(16px, 1.25cqw); line-height: 1.33; max-width: max(34.1cqw, 460px); text-wrap: balance; }

.world-stage { position: relative; height: calc(100cqw * 1460 / 1920); }
.world-scroll { height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.world-scroll::-webkit-scrollbar { display: none; }
#scene { display: block; width: 100%; height: 100%; font-family: var(--font); }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.swipe-hint { display: none; }

/* Häuser */
.house { cursor: pointer; outline: none; }
.house-inner { transition: transform .25s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.house:hover .house-inner, .house:focus-visible .house-inner { transform: translateY(-4px); }
.house:focus-visible .house-inner { filter: drop-shadow(0 0 6px var(--gold)); }
.house.is-locked { cursor: default; }
.house.is-locked:hover .house-inner { transform: none; }
.ind { pointer-events: none; }
.ind-bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -7px; } }
.ind-star { animation: pop .5s cubic-bezier(.16, 1, .3, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { scale: 0; } }
.ind-pill text { font-family: var(--font); font-size: 16.8px; font-weight: 700; fill: #fff; }

.aurora { animation: aurora-sway 14s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes aurora-sway {
  0%   { translate: -70px 0; scale: 1 1; }
  50%  { translate: 0 -14px; scale: 1.04 1.14; }
  100% { translate: 70px 4px; scale: 1 .9; }
}
.aurora-strip { animation: aurora-glow 5s ease-in-out infinite; }
@keyframes aurora-glow { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.star { animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; } }
/* Fenster: aus, solange das Haus noch nicht dran ist */
.house.is-locked .win { fill: #0b1d6e; }
.house.is-locked .win-glow { filter: none; }
.house.is-locked .ambient { display: none; }
.house .ambient, .house .win-glow { pointer-events: none; }
.light-on { animation: light-on 1.1s ease-out both; }
@keyframes light-on { 0% { opacity: 0; } 40% { opacity: 1; } 55% { opacity: .4; } 100% { opacity: 1; } }

/* ---------- Wochenleiste ---------- */
/* Schwebt im Stil der Datums-Pillen über der Welt und bleibt beim Scrollen durch die Welt unten stehen */
.weekbar-slot { position: sticky; bottom: 0; z-index: 20; height: 0; }
.weekbar {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 0; width: min(1193px, calc(100% - 32px));
  border-radius: var(--radius); background: rgba(0, 0, 0, .4); color: #fff;
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
}
.weekbar-inner { padding: 14px 20px; display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.wb-status { display: flex; flex-direction: column; min-width: 180px; }
.wb-status strong { font-size: 20px; line-height: 1.3; }
.wb-status span { font-size: 15px; opacity: .8; }
.wb-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.wb-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3);
  font-size: 15px; font-weight: 700; transition: background .2s;
}
.wb-chip:hover { background: rgba(255,255,255,.22); }
.wb-chip-icon {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: var(--blue); font-weight: 700;
}
.wb-chip.is-done .wb-chip-icon { background: var(--gold); color: var(--night); }
.wb-cta { margin-left: auto; }
.wb-hint { font-size: 15px; opacity: .85; }
.wb-done { font-weight: 700; color: var(--gold); }

/* ---------- Buttons (Heimkehr-Button aus dem Screendesign) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; border-radius: 0; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 18px; line-height: 1.3;
  text-decoration: none; transition: transform .15s, background .2s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-gold { background: var(--orange); color: #000; }
.btn-gold:hover { background: #ff9d26; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--ice); }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--ice); }
.btn-block { width: 100%; }
.btn-arrow { padding: 8px 12px; font-size: 20px; }
.btn-arrow img { display: block; width: 16px; height: 16px; }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { scale: 1.04; } }
.linklike { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* ---------- Inhaltsbereiche ---------- */
.intro { position: relative; z-index: 2; margin-top: clamp(16px, 2.1vw, 40px); }
.intro-card {
  background: #fff; color: #000; border-radius: var(--radius);
  padding: clamp(28px, 4.4vw, 64px) clamp(24px, 8.5vw, 122px);
  font-size: clamp(17px, 1.7vw, 24px); line-height: 1.33; text-wrap: pretty;
}
.intro-card p { margin: 0 0 1.33em; }
.intro-card p:last-child { margin: 0; }

.section { padding: clamp(64px, 8.1vw, 117px) 0 0; }
.section h2 { margin-bottom: clamp(24px, 3.3vw, 48px); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--lightblue); color: #fff; font-weight: 700; font-size: 24px; letter-spacing: -.02em;
}
.steps h3 { margin: 0; font-size: 24px; line-height: 1.33; letter-spacing: -.02em; text-wrap: balance; }
.steps p { margin: 0; font-size: 18px; line-height: 1.33; text-wrap: pretty; }

/* Gewinne als Tickets: Lage, Drehung und Größe wie im Screendesign (1440 px breite Fläche) */
.prizes { padding-top: clamp(72px, 8.4vw, 162px); }
.prizes .container-wide { container-type: inline-size; }
.tickets { list-style: none; padding: 0; margin: 0; position: relative; height: calc(100cqw * 580 / 1440); }
.ticket {
  --u: calc(100cqw / 1440);
  position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); z-index: var(--z);
  width: calc(287 * var(--u)); height: calc(157 * var(--u));
  translate: -50% -50%; rotate: var(--r); color: #fff; transition: rotate .3s cubic-bezier(.16, 1, .3, 1);
}
.ticket:hover { rotate: calc(var(--r) * .4); }
.ticket.is-orange { color: #000; }
.ticket.is-lightblue { color: var(--blue); }
.ticket-bg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ticket-line { position: absolute; left: calc(10 * var(--u)); top: calc(117 * var(--u)); width: calc(267 * var(--u)); height: 1px; }
.ticket-title {
  position: absolute; inset: calc(18 * var(--u)) 0 auto; margin: 0; text-align: center; white-space: nowrap;
  font-size: calc(40 * var(--u)); line-height: calc(38 * var(--u)); letter-spacing: -.04em;
}
.ticket-text {
  position: absolute; inset: calc(126 * var(--u)) calc(14 * var(--u)) auto; margin: 0; text-align: center;
  font-size: max(11px, calc(15 * var(--u))); line-height: 1.15; opacity: .7;
}
.ticket.is-lightblue .ticket-text { opacity: 1; }

/* Spendenhaus */
.donation { padding: clamp(32px, 2.3vw, 44px) 0 clamp(80px, 7.7vw, 148px); }
.donation-card {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: 507px; padding: 64px clamp(32px, 8vw, 96px); border-radius: 16px;
  background: radial-gradient(circle 557px at calc(100% - 9.5px) calc(100% - 48px), rgba(253, 136, 0, .4), rgba(253, 136, 0, 0)), var(--purple);
}
.donation-text { position: relative; z-index: 1; max-width: 703px; }
.donation-text h2 { margin: 0 0 24px; }
.donation-text p { max-width: 689px; margin: 0 0 32px; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.33; text-wrap: pretty; }
.donation-stars { position: absolute; right: -238px; top: -31px; width: 640px; height: 371px; pointer-events: none; }
.donation-church { position: absolute; inset: 0; pointer-events: none; }
.dc { position: absolute; display: block; }
.dc-0 { right: -54.2px; bottom: -4.3px; width: 175.2px; height: 108.9px; }
.dc-1 { right: -57.8px; bottom: 104.5px; width: 257.1px; height: 62.9px; }
.dc-2 { right: 120.7px; bottom: -4.3px; width: 164.4px; height: 163.2px; }
.dc-3 { right: -62.2px; bottom: 99.1px; width: 361.3px; height: 68.6px; }
.dc-4 { right: 186.5px; bottom: -4.3px; width: 32.8px; height: 69.6px; }
.dc-5 { right: 190.1px; bottom: 94.7px; width: 26.8px; height: 26.8px; }
.dc-tower { right: 164.3px; bottom: 149px; width: 71.1px; height: 263px; }
.dc-6 { right: 58.7px; bottom: -13.5px; width: 111.5px; height: 34.7px; }
.dc-win { bottom: 34.9px; width: 13.18px; height: 27.56px; border-radius: 10px 10px 0 0; background: radial-gradient(circle at 15% 10%, #ffb866, var(--orange) 75%); }

/* Footer der Heimkehr-Webseite (layouts/main.blade.php), ohne Tailwind nachgebaut */
.footernav { background: #0e37ee; color: #fff; font-weight: 700; padding: 64px 0; font-size: 16px; }
.footernav a, .footernav .linklike { color: #fff; }
.footernav .linklike { text-decoration: underline; font-weight: 700; }
.footernav hr { border: 0; border-top: 1px solid rgba(255,255,255,.35); margin: 0; }
.footernav .pb-8 { padding-bottom: 32px; }
.footernav .py-8 { padding: 32px 0; }
.footernav .my-4 { margin: 16px 0; }
.footernav > .container > div > svg { width: 16rem; height: 3rem; }
.footernav .flex { display: flex; }
.footernav .items-center { align-items: center; }
.footernav .gap-2 { gap: 8px; }
.footernav .gap-1 { gap: 4px; }
.footernav .justify-end { justify-content: flex-end; }
.footernav .clientlogos { gap: 16px; }
.footernav .clientlogos img { height: 56px; width: auto; }
.footernav .social img, .footernav .social svg { width: 40px; height: 40px; }
.footernav .subfooter { display: block; }
@media (min-width: 768px) {
  .footernav > .container > div > svg { width: 28rem; height: 5rem; }
  .footernav .md\:flex { display: flex; }
  .footernav .justify-between { justify-content: space-between; }
  .footernav .subfooter { display: flex; gap: 16px; }
}
@media (max-width: 767px) {
  .footernav { padding: 40px 0; }
  .footernav .social { justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- Dialoge ---------- */
.dlg {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: clamp(24px, 4vw, 40px); border: 0; border-radius: 16px;
  color: var(--ink); background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.dlg::backdrop { background: rgba(4, 11, 46, .65); backdrop-filter: blur(3px); }
.dlg[open] { animation: dlg-in .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.dlg h2 { font-size: clamp(26px, 4vw, 30px); color: var(--blue); }
.dlg h3 { font-size: 17px; margin-top: 22px; }
.dlg-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.dlg-close {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ice); color: var(--ink); font-size: 24px; line-height: 1;
}
.dlg-close:hover { background: var(--line); }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); margin-bottom: 8px; }
.question { font-size: 19px; }
.display {
  font-family: var(--font-head); font-size: clamp(24px, 5vw, 30px); font-weight: 800; letter-spacing: .06em;
  text-align: center; padding: 18px; border-radius: 16px; background: var(--ice); color: var(--blue);
}
.notice { background: #fff6dc; border-radius: 12px; padding: 12px 16px; font-size: 15px; }

.answer, .field input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s;
}
.answer { font-size: 20px; }
.answer:focus, .field input:focus { outline: none; border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: var(--error); }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  padding: 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
  cursor: pointer; font-weight: 700; color: var(--ink); text-align: center; transition: border-color .2s, background .2s;
}
.choice:hover { border-color: var(--blue); }
.choice[aria-checked="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }

.feedback { min-height: 1.5em; margin: 10px 0 0; color: var(--error); font-weight: 700; font-size: 15px; }
.riddle-actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.riddle-actions.center { justify-content: center; margin-top: 20px; }
.hint { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--ice); font-size: 15px; }
.demo-solution { margin: 14px 0 0; padding: 8px 12px; border-radius: 10px; border: 2px dashed var(--purple); color: var(--purple); font-size: 14px; }
.feedback.is-info { color: var(--muted); }
.shake { animation: shake .4s; }

/* ---------- Mini-Spiele ---------- */
.game { margin: 18px 0 0; }
.g-meta { margin: 10px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

.g-memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mem-card {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 14px; cursor: pointer; font-size: clamp(28px, 7vw, 40px);
  background: linear-gradient(150deg, var(--blue), var(--blue-dark)); transition: background .2s, transform .2s;
}
.mem-card::before { content: "❄"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); font-size: .8em; }
.mem-card.is-open::before { content: none; }
.mem-card span { opacity: 0; transition: opacity .15s; }
.mem-card:hover { transform: translateY(-2px); }
.mem-card.is-open { background: var(--ice); }
.mem-card.is-open span { opacity: 1; }
.mem-card.is-found { background: #fff6dc; box-shadow: inset 0 0 0 2px var(--gold); cursor: default; transform: none; }

.g-lights { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 10px; max-width: 230px; margin: 0 auto; padding: 14px; border-radius: 18px; background: var(--night); }
.win-btn {
  aspect-ratio: 3 / 4; border: 0; border-radius: 10px 10px 4px 4px; cursor: pointer;
  background: #1b2a7a; box-shadow: inset 0 0 0 3px #0b1d6e; transition: background .25s, box-shadow .25s;
}
.win-btn.is-on { background: #fd8800; box-shadow: inset 0 0 0 3px #ffb347; }

.g-words { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; max-width: 320px; margin: 0 auto; }
.letter {
  aspect-ratio: 1; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--ink);
}
.letter:hover { border-color: var(--blue); }
.letter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.g-words.is-found .letter[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }
.g-pick { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; font-size: 15px; }
.g-pick-word { font-family: var(--font-head); font-weight: 800; letter-spacing: .12em; font-size: 20px; color: var(--blue); min-width: 5ch; text-align: center; }

.g-order { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.g-order li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.g-order-num { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ice); color: var(--blue); font-weight: 700; font-size: 14px; }
.g-order-text { flex: 1; font-weight: 700; }
.g-order-btns { display: flex; gap: 6px; }
.g-order-btns button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--ice); color: var(--blue); cursor: pointer; font-size: 14px; }
.g-order-btns button:hover:not(:disabled) { background: var(--line); }
.g-order-btns button:disabled { opacity: .3; cursor: default; }
.g-order-check { display: flex; justify-content: center; margin-top: 14px; }

.g-maze {
  display: grid; grid-template-columns: repeat(var(--w), 1fr); gap: 3px; max-width: 320px; margin: 0 auto;
  padding: 8px; border-radius: 16px; background: #0a2c45;
}
.g-maze .cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; font-size: clamp(18px, 5vw, 26px); line-height: 1; }
.g-maze .path { background: var(--snow); }
.g-maze .trail { background: #cfe0ff; }
.g-maze .wall { background: #0d3a55; }
.g-maze .wall::after { content: "🌲"; font-size: .75em; }
.g-pad { display: grid; grid-template-columns: repeat(3, 52px); grid-template-areas: ". up ." "left down right"; gap: 6px; justify-content: center; margin-top: 14px; }
.g-pad button { height: 48px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-size: 18px; cursor: pointer; }
.g-pad button:hover { background: var(--blue-dark); }
.g-pad [data-dir="up"] { grid-area: up; }
.g-pad [data-dir="left"] { grid-area: left; }
.g-pad [data-dir="down"] { grid-area: down; }
.g-pad [data-dir="right"] { grid-area: right; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.solved { text-align: center; }
.solved-star {
  width: 84px; height: 84px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 50%; background: radial-gradient(circle, #fff6dc, var(--gold)); color: #fff;
  font-size: 46px; text-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.solved.is-fresh .solved-star { animation: pop .6s cubic-bezier(.16, 1, .3, 1) both; }
.progress { display: flex; justify-content: center; gap: 10px; margin: 18px 0 6px; }
.progress-dot {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ice); color: var(--muted); font-weight: 700;
}
.progress-dot.is-done { background: var(--gold); color: var(--night); }
.progress-text { font-weight: 700; color: var(--blue); }

.entry-form { margin-top: 18px; display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.entry-form .small, .entry-form .feedback { margin: 0; }
.hp { position: absolute; left: -9999px; }

.mail { margin: 22px 0 12px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.mail-label { margin: 0; padding: 8px 16px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.mail-label span { opacity: .6; font-weight: 400; }
.mail-head { padding: 12px 16px; background: var(--ice); font-size: 14px; }
.mail-head p { margin: 0; }
.mail-body { padding: 18px 16px; font-size: 15px; }
.mail-body .btn { margin: 4px 0 14px; }

.deadline { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #f6e9fb; color: var(--purple); font-weight: 700; font-size: 15px; }
.needs { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.needs li { padding: 7px 14px; border-radius: 999px; background: var(--ice); font-size: 15px; font-weight: 700; }
.needs.is-placeholder li { background: transparent; border: 2px dashed var(--line); color: var(--muted); }
.places { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.places li { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 12px; background: var(--ice); }
.places span { font-size: 15px; color: var(--muted); }
.dlg-donation .eyebrow { color: var(--purple); }
.dlg-donation h2 { color: var(--purple); }

.dlg-text { width: min(640px, calc(100vw - 32px)); }
.terms { padding-left: 20px; display: grid; gap: 10px; font-size: 15px; margin-bottom: 22px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; translate: -50% 20px;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; translate: -50% 0; }

/* ---------- Demo-Steuerung ---------- */
.demo { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.demo-toggle {
  order: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--purple); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.demo-panel {
  order: 1; width: 280px; padding: 18px; border-radius: 18px; background: #fff; color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3); font-size: 14px;
}
.demo-title { font-weight: 700; font-size: 16px; margin: 0 0 2px; }
.demo-now { color: var(--muted); margin: 0 0 12px; }
.demo-dates { display: grid; gap: 6px; margin-bottom: 14px; }
.demo-date {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--ink); text-align: left;
}
.demo-date span { font-weight: 400; color: var(--muted); font-size: 13px; }
.demo-date:hover { border-color: var(--purple); }
.demo-date.is-active { background: var(--purple); border-color: var(--purple); color: #fff; }
.demo-date.is-active span { color: rgba(255,255,255,.8); }
.demo-pick { display: grid; gap: 4px; margin-bottom: 14px; font-size: 14px; }
.demo-pick input { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); font: inherit; }
.demo-check { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; cursor: pointer; }
.demo-check input { accent-color: var(--purple); }
.demo-reset { width: 100%; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--snow); cursor: pointer; color: var(--ink); }
.demo-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .donation-card { padding-right: 340px; }
}
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 760px) {
  /* Tickets als Raster in zwei Spalten */
  .tickets { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; padding: 8px 0; }
  .ticket { --u: calc((100cqw - 12px) / 2 / 287); position: relative; left: auto; top: auto; translate: none; rotate: calc(var(--r) * .35); }
  .ticket:nth-child(even) { translate: 0 10px; }
  /* Ticket etwas höher, damit zweizeilige Angaben in den Abschnitt passen */
  .ticket { height: calc(157 * var(--u) + 16px); }
  .ticket-line { top: 74.2%; }
  .ticket-text { inset: calc(74.2% + 4px) 8px 4px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; line-height: 1.1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  /* Mobil: Welt in voller Höhe, seitlich wischbar; Logo und Headline stehen im Himmel */
  .world-intro { padding: 36px 16px 0; }
  .world-logo { width: 150px; }
  .world-intro h1 { font-size: clamp(30px, 9.2vw, 52px); margin-top: 18px; max-width: none; }
  .world-sub { margin-top: 8px; font-size: 16px; max-width: 340px; }
  .world-stage { height: 760px; }
  #scene { width: 1300px; height: 100%; }
  /* Datums-Pillen über gesperrten Häusern: bei der verkleinerten Welt sonst nur ~10px groß, 1.25 hält sie lesbar, ohne Nachbarhäuser zu verdecken */
  .pill-in { scale: 1.25; transform-origin: 0 0; }
  .weekbar-slot { position: static; height: auto; }
  .weekbar { position: static; translate: none; width: auto; border-radius: 0; background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .riddle-actions .btn { flex: 1; padding-inline: 12px; white-space: nowrap; }
  .swipe-hint {
    display: block; position: absolute; left: 50%; bottom: 14px; translate: -50% 0; margin: 0;
    padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .4); font-size: 13px; white-space: nowrap; pointer-events: none;
    transition: opacity .4s;
  }
  .swipe-hint.is-hidden { opacity: 0; }
  .weekbar-inner { padding: 16px; }
  .wb-cta { margin-left: 0; width: 100%; }
  .wb-cta .btn { width: 100%; }
  .intro { margin-top: 24px; }
  .steps { grid-template-columns: 1fr; }
  .steps h3 { font-size: 21px; }
  .steps p { font-size: 16px; }
  /* Spendenhaus: Kirche unter dem Text, etwas kleiner */
  .donation-card { display: block; min-height: 0; padding: 32px 24px 300px; }
  .donation-church { transform: scale(.72); transform-origin: 100% 100%; }
  .donation-stars { top: auto; bottom: 40px; right: -330px; }
  .field-row, .choices { grid-template-columns: 1fr; }
  .demo { right: 12px; bottom: 12px; }
  .demo-panel { width: min(280px, calc(100vw - 24px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.ico { display: inline-block; vertical-align: -.125em; flex: none; }
.g-order-btns .ico { width: 14px; height: 14px; }
.g-pad .ico { width: 18px; height: 18px; }
.wb-chip-icon .ico, .progress-dot .ico { width: 14px; height: 14px; }
.solved-star .ico { width: 46px; height: 46px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .2)); }
.wb-done .ico { margin-right: 4px; }
