/* LootChores: Seele „Spielstand“. Die Website ist ein Rollenspiel-Bildschirm: Quest-Dialog, Quest-Log zum Abhaken, Händler-Inventar,
   Party gründen, Gold-Beutel als feste Anzeige. Wiederkehrendes Zeichen: die Münze aus dem Logo. Gold-Orange nur für Gold.
   Gerüst aus dem Design System „Dracula Glass“ (dg.css, Präfix dg-): Glasleiste, Knöpfe, Fußzeile.
   Farben wie in der App (Theme.swift): Dracula dunkel, Alucard hell. Schrift Geist + Geist Mono, Zahlen in Geist Pixel wie eine Spielanzeige.
   Formregel: Fenster 10px mit vier Winkeln in der Hauptfarbe; Quests, Fächer, Gegenstände 8px; Knöpfe und Beutel rund (Pille); Handys 34px.
   Keine Skripte (CSP script-src 'none'): Das Quest-Log rechnet mit CSS-Zählern, :has() und „~“. */


@font-face { font-family: Geist; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  /* Alucard (hell), wie in der App */
  --bg: #FFFBEB;
  --page: #F6F1DE;
  --card: rgba(255, 253, 245, 0.72);
  --line: rgba(31, 31, 31, 0.12);
  --text: #1F1F1F;
  --muted: #625C44;           /* 6:1 auf --bg */
  --accent: #6B3FD4;          /* Text und Linien: dunkleres Lila, damit Schrift lesbar bleibt */
  --accent-fill: #A77FF5;     /* Flächen: das Lila der App */
  --on-accent: #282A36;
  --gold: #FFA347;            /* Münzen, Flächen */
  --gold-text: #A65300;       /* Gold als Schrift auf hellem Grund, 5,3:1 */
  --ok: #17803D;
  --ok-fill: #2CCF5C;
  --frame: #1C1D27;
  --shadow: rgba(80, 60, 30, 0.16);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .3);
  --glow-a: rgba(167, 127, 245, 0.30);
  --glow-b: rgba(255, 98, 186, 0.14);
  --c-purple: #A77FF5; --c-pink: #FF62BA; --c-cyan: #3FC5E4; --c-green: #2CCF5C; --c-yellow: #E0C93A;

  --r-card: 10px;
  --r-phone: 34px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --max: 1400px;
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* Dracula (dunkel), wie in der App */
    --bg: #282A36;
    --page: #2F3141;
    --card: rgba(68, 71, 90, 0.48);
    --line: rgba(248, 248, 242, 0.12);
    --text: #F8F8F2;
    --muted: #A9AECB;
    --accent: #BD93F9;
    --accent-fill: #BD93F9;
    --on-accent: #282A36;
    --gold: #FFB86C;
    --gold-text: #FFB86C;
    --ok: #50FA7B;
    --ok-fill: #50FA7B;
    --frame: #15161E;
    --shadow: rgba(0, 0, 0, 0.45);
    --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 0 0 1px rgba(255, 255, 255, .04);
    --glow-a: rgba(189, 147, 249, 0.30);
    --glow-b: rgba(189, 147, 249, 0.16);
    --c-purple: #BD93F9; --c-pink: #FF79C6; --c-cyan: #8BE9FD; --c-green: #50FA7B; --c-yellow: #F1FA8C;
  }
}

/* Namen aus Dracula Glass, abgebildet auf die LootChores-Farben */
:root {
  --surface: var(--card); --surface-solid: var(--page); --border: var(--line); --secondary: var(--muted);
  --purple: var(--accent-fill); --green: var(--ok); --phone-frame: var(--frame);
  --shadow-nav: 0 12px 40px -18px var(--shadow);
  --font-sans: var(--sans); --font-mono: var(--mono);
  --blur-card: 24px; --blur-pill: 20px; --opacity-disabled: 0.6;
  --space-8: 8px; --space-10: 10px; --space-16: 16px; --space-20: 20px; --space-22: 22px; --space-28: 28px; --space-32: 32px; --space-40: 40px; --space-64: 64px;
  --radius-9: 9px; --radius-12: 12px; --radius-14: 14px; --radius-18: 18px; --radius-24: var(--r-card); --radius-pill: 999px;
  --page-max: var(--max); --gutter: clamp(16px, 3vw, 32px); --section-gap: clamp(96px, 11vw, 144px); --nav-height: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
/* Schimmer wie GlowBackground der App: Lila oben links, schwächer unten rechts. Fest, damit er beim Scrollen bleibt. */
body {
  margin: 0; color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; touch-action: manipulation;
  background:
    radial-gradient(50vmax 50vmax at 0% 0%, var(--glow-a), transparent 65%) fixed,
    radial-gradient(45vmax 45vmax at 100% 100%, var(--glow-b), transparent 65%) fixed,
    var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 30; background: var(--page); padding: 8px 14px; border-radius: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
code { font-family: var(--mono); }

/* Knöpfe: Grundform aus dg.css. Text auf Lila immer dunkel (wie onAccent in der App). */
.dg-btn { white-space: nowrap; color: var(--on-accent); }
.dg-btn:hover { color: var(--on-accent); }
.dg-btn--glass, .dg-btn--glass:hover { color: var(--text); }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 14px; background: var(--text); color: var(--bg); line-height: 1.1; font-weight: 600; font-size: 18px; cursor: default; }
.store .i { width: 24px; height: 24px; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: .8; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* Kopf: schwebende Glasleiste aus dg.css. Logo „Münzhaus“ wie das App-Symbol. Eigenheit: Die Münze im Ring dreht sich beim Drüberfahren einmal um. */
.dg-brand em { font-style: normal; color: var(--accent); }
.brand__coin { transform-origin: 512px 512px; transform-box: view-box; transition: transform .6s var(--ease); }
.dg-brand:hover .brand__coin { transform: scaleX(-1); }

/* Die Gold-Münze der App (GoldCoin, bilder/muenze.svg): feste Farben in hell und dunkel, wie in der App. */
.muenze {
  --s: 64px;
  display: inline-block; width: var(--s); height: var(--s); flex: none;
  background: url("/bilder/muenze.svg") center / contain no-repeat;
}

/* Abschnitte */
main > .wrap + .wrap { margin-top: var(--section-gap); }
h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; color: var(--accent); }
.sub { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 54ch; margin: 18px 0 0; }
.label { font: 500 13px/1 var(--mono); color: var(--gold-text); margin: 0 0 16px; }
.phone { border-radius: var(--r-phone); border: 6px solid var(--frame); background: var(--frame); box-shadow: 0 34px 70px -28px var(--shadow); }

@font-face { font-family: "Geist Pixel"; src: url("/fonts/GeistPixel-Square.woff2") format("woff2"); font-weight: 400; font-display: swap; }
.pixel { font-family: "Geist Pixel", var(--mono); font-weight: 400; letter-spacing: 0; }

/* ── Fenster: Glas mit vier Winkeln in der Hauptfarbe, wie ein Dialogfenster im Spiel ── */
.fenster, .doc-head, .fehlt__fenster {
  position: relative; padding: clamp(26px, 4vw, 52px); border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--glass-edge), 0 40px 80px -50px var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
.fenster::before, .doc-head::before, .fehlt__fenster::before, .kasten--akzent::before {
  content: ""; position: absolute; inset: -6px; pointer-events: none; border-radius: 4px;
  --w: 26px; --d: 3px; --c: var(--accent);
  background:
    linear-gradient(var(--c) 0 0) top left / var(--w) var(--d), linear-gradient(var(--c) 0 0) top left / var(--d) var(--w),
    linear-gradient(var(--c) 0 0) top right / var(--w) var(--d), linear-gradient(var(--c) 0 0) top right / var(--d) var(--w),
    linear-gradient(var(--c) 0 0) bottom left / var(--w) var(--d), linear-gradient(var(--c) 0 0) bottom left / var(--d) var(--w),
    linear-gradient(var(--c) 0 0) bottom right / var(--w) var(--d), linear-gradient(var(--c) 0 0) bottom right / var(--d) var(--w);
  background-repeat: no-repeat;
}
.fenster__kopf { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 600 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); }
/* Quest-Marker: das „!“ über Figuren, die eine Aufgabe haben */
.marker { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--gold); color: var(--on-accent); font-size: 24px; }
.titel-frei { margin-left: 4px; }

/* ── Gold zählen: ein Zähler für die ganze Startseite ── */
.rpg { counter-reset: gold 0 offen 4; }

/* ── Held: Quest-Dialog ── */
.held { padding-top: 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.dialog h1 { font-size: clamp(42px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -0.045em; }
.dialog h1 em { font-style: normal; color: var(--accent); }
.dialog__text { color: var(--muted); font-size: clamp(18px, 1.5vw, 20px); max-width: 44ch; margin: 22px 0 0; }
.dialog__lohn { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--line); }
.dialog__lohn dt { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.dialog__lohn dd { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 600; }
.dialog__lohn .i { color: var(--gold-text); }
.dialog__wahl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.held__bild { position: relative; display: grid; justify-items: center; }
.held__bild picture, .log__bild picture, .haendler__regeln picture { display: contents; }
picture source { display: none; }
.held__bild .phone { width: min(310px, 100%); max-height: calc(100dvh - 200px); aspect-ratio: 600 / 1180; object-fit: cover; object-position: top; }
/* Beute schwebt um das Handy, wie Gold, das aus einer Truhe fällt */
.drop { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); box-shadow: 0 16px 30px -18px var(--shadow); font: 400 22px/1 "Geist Pixel", var(--mono); color: var(--gold-text); }
.drop::before { content: ""; width: 24px; height: 24px; background: url("/bilder/muenze.svg") center / contain no-repeat; }
.drop--1 { left: -4%; top: 16%; }
.drop--2 { right: -2%; top: 46%; }
.drop--3 { left: 4%; bottom: 14%; }

/* ── Quest-Log ── */
.log { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.log__bild { display: grid; justify-items: center; }
.log__bild .phone { width: min(280px, 100%); }
.quests { display: grid; gap: 12px; margin-top: 30px; }
/* Kästchen als Geschwister vor ihrem Label: so kann „~“ abgehakte Quests zählen (:has darf nicht verschachtelt werden) */
.qi { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qi:focus-visible + .q { outline: 2px solid var(--accent); outline-offset: 3px; }
.q { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 20px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: color-mix(in srgb, var(--page) 60%, transparent); transition: border-color .2s, background-color .3s, transform .2s var(--ease); -webkit-tap-highlight-color: transparent; user-select: none; }
.q:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.q:active { transform: scale(.99); }
.q__box { width: 30px; height: 30px; border-radius: 6px; border: 2.5px solid var(--accent-fill); display: grid; place-items: center; color: transparent; transition: background-color .25s, color .25s; }
.q__box .i { width: 18px; height: 18px; transform: scale(.3); transition: transform .35s var(--spring); }
.q__text b { display: block; font-size: 19px; letter-spacing: -0.01em; }
.q__text small { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.q__lohn { font-size: 24px; line-height: 1; color: var(--gold-text); padding-top: 3px; }
.qi:checked + .q { counter-increment: gold 25 offen -1; border-color: color-mix(in srgb, var(--ok-fill) 50%, var(--line)); background: color-mix(in srgb, var(--ok-fill) 8%, var(--page)); }
.qi:checked + .q .q__box { background: var(--ok-fill); border-color: var(--ok-fill); color: var(--on-accent); }
.qi:checked + .q .q__box .i { transform: scale(1); }
.qi:checked + .q .q__text b { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.qi:checked + .q .q__lohn { opacity: .45; }

/* ── Händler ── */
.inventar { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.slot { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 26px 12px 18px; text-align: center; border-radius: 8px; border: 2px solid var(--line); background: color-mix(in srgb, var(--page) 50%, transparent); opacity: .5; filter: grayscale(.7); transition: opacity .35s, filter .35s, border-color .35s, transform .45s var(--spring); }
.slot > .i { width: 54px; height: 54px; padding: 12px; border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent-fill) 16%, transparent); }
.slot b { font-size: 14.5px; line-height: 1.3; font-weight: 600; }
.slot__preis { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 22px; line-height: 1; color: var(--gold-text); }
.slot__preis::before { content: ""; width: 18px; height: 18px; background: url("/bilder/muenze.svg") center / contain no-repeat; }
/* Wunsch und Mystery-Box wie in der App: kleine Marke unter dem Namen, Fragezeichen am Symbol */
.slot__tag { margin-top: -4px; font: 500 12px/1.2 var(--mono); color: var(--accent); }
.slot__box { position: relative; display: block; line-height: 0; }
.slot__box > .i { width: 54px; height: 54px; padding: 12px; border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent-fill) 16%, transparent); }
.slot__frage { position: absolute; top: -8px; right: -10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--on-accent); font-size: 16px; line-height: 1; }
.slot::after { content: "Gesperrt"; position: absolute; top: 8px; right: 8px; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
/* Freigeschaltet nach 1, 2, 3, 4 erledigten Quests (je 25 Gold). 150 und 200 bleiben zu: weiter sammeln. */
.rpg:has(.qi:checked) .slot--1,
.rpg:has(.qi:checked ~ .qi:checked) .slot--2,
.rpg:has(.qi:checked ~ .qi:checked ~ .qi:checked) .slot--3,
.rpg:has(.qi:checked ~ .qi:checked ~ .qi:checked ~ .qi:checked) .slot--4 { opacity: 1; filter: none; border-color: var(--accent-fill); transform: translateY(-4px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-fill) 18%, transparent); }
.rpg:has(.qi:checked) .slot--1::after,
.rpg:has(.qi:checked ~ .qi:checked) .slot--2::after,
.rpg:has(.qi:checked ~ .qi:checked ~ .qi:checked) .slot--3::after,
.rpg:has(.qi:checked ~ .qi:checked ~ .qi:checked ~ .qi:checked) .slot--4::after { content: "Kaufbar"; color: var(--ok); }
.haendler__stand { margin: 24px 0 0; text-align: center; color: var(--muted); }
.stand__offen::before { content: "Noch " counter(offen) " von 4 Quests offen. "; color: var(--text); font-weight: 600; }
.stand__offen::after { content: "Hak sie im Quest-Log ab, dann schaltest du Fächer frei."; }
.stand__fertig { display: none; color: var(--ok); font-weight: 600; }
.rpg:has(.qi:checked ~ .qi:checked ~ .qi:checked ~ .qi:checked) .stand__offen { display: none; }
.rpg:has(.qi:checked ~ .qi:checked ~ .qi:checked ~ .qi:checked) .stand__fertig { display: inline; }
.haendler__regeln { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 44px; padding-top: 40px; border-top: 1px dashed var(--line); }
.haendler__regeln .phone { width: 100%; max-width: 260px; justify-self: center; rotate: -2deg; }
.haendler__regeln h3 { font: 600 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); }
.regeln { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.regeln li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.regeln .i { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent-fill) 16%, transparent); color: var(--accent); }
.regeln b { font-size: 18px; letter-spacing: -0.01em; }
.regeln span { color: var(--muted); font-size: 15.5px; line-height: 1.45; }

/* ── Stufen: zwei Handys (Feier und Erfolge), daneben die Stufenleiter und die Boni ── */
.stufen { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.stufen__bilder { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: start; max-width: 540px; justify-self: center; width: 100%; }
.stufen__bilder .phone { width: 100%; }
.stufen__feier { rotate: -2deg; }
.stufen__abzeichen { rotate: 2deg; margin-top: 64px; }
.leiter { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.leiter li { display: grid; gap: 2px; padding: 12px 12px 10px; border-radius: 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--page) 55%, transparent); font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.leiter span { font-size: 22px; line-height: 1; color: var(--accent); margin-bottom: 4px; }
.leiter small { display: inline-flex; align-items: center; gap: 5px; font: 500 12.5px/1.2 var(--mono); color: var(--muted); }
.leiter small::before { content: ""; width: 12px; height: 12px; background: url("/bilder/muenze.svg") center / contain no-repeat; }
.leiter .is-hier { border: 2px solid var(--accent-fill); background: color-mix(in srgb, var(--accent-fill) 14%, var(--page)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-fill) 16%, transparent); }
.leiter li:last-child span { color: var(--gold-text); }
.stufen__bonus-titel { margin: 34px 0 0; font: 600 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); }
.bonus { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bonus li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); background: color-mix(in srgb, var(--gold) 12%, var(--page)); }
.bonus .i { width: 22px; height: 22px; color: var(--gold-text); }
.bonus b { font-size: 22px; line-height: 1; font-weight: 400; color: var(--gold-text); }
.bonus span { color: var(--muted); font-size: 15px; }

/* ── Ausrüstung: Gegenstände in den Dracula-Farben, Rand und Schimmer in der Farbe des Gegenstands ── */
.ausruestung { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 14px; }
.item { position: relative; overflow: hidden; display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 8px; border: 2px solid color-mix(in srgb, var(--f) 50%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--f) 14%, var(--card)), var(--card) 65%); }
.item > .i { width: 34px; height: 34px; color: var(--f); }
.item b { font-size: 18px; }
.item > span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.item--gross { grid-column: span 3; }
.item--gross > span { max-width: 56ch; }
.item--verlauf { grid-column: 4; grid-row: 1 / span 4; padding-bottom: 0; grid-template-rows: auto auto auto 1fr; }
.item--verlauf img { margin: 14px auto 0; width: 86%; border-radius: 22px 22px 0 0; border: 5px solid var(--frame); border-bottom: 0; aspect-ratio: 600 / 980; object-fit: cover; object-position: top; align-self: end; }
.item--farbe { grid-column: span 3; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; align-content: center; }
.item--farbe > .i { grid-row: span 2; }
.item--farbe .farben { grid-column: 3; grid-row: 1 / 3; display: flex; gap: 8px; }
.farben i { width: 34px; height: 34px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text) 12%, transparent); }
.takte { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.takte li { padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line); background: color-mix(in srgb, var(--page) 70%, transparent); font: 500 14px/1.2 var(--mono); color: var(--muted); }
.takte li:last-child { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

/* ── Party ── */
.party { text-align: center; display: grid; justify-items: center; }
.party .sub { margin-inline: auto; }
.code { margin-top: 34px; display: flex; align-items: center; gap: clamp(6px, 1.2vw, 12px); }
.code span { width: clamp(44px, 7vw, 74px); aspect-ratio: 4 / 5; display: grid; place-items: center; border-radius: 8px; font: 400 clamp(28px, 4.4vw, 48px)/1 "Geist Pixel", var(--mono); background: var(--page); border: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 16px 30px -22px var(--shadow); }
.code i { width: clamp(10px, 1.6vw, 18px); height: 4px; background: var(--muted); }

/* ── Preise ── */
.preise { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: stretch; }
.plan__name { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.plan__name .i { color: var(--gold-text); }
.plan__preis { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.plan__null { color: var(--gold-text); }
.plan__preis--bald { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.plan li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.plan li .i { color: var(--ok); }
.plan--pro { padding: clamp(26px, 4vw, 52px); border-radius: var(--r-card); border: 2px dashed var(--line); }
.plan--pro > p:last-child { color: var(--muted); margin: 18px 0 0; max-width: 42ch; }

/* ── Abspann ── */
.abspann { margin-bottom: clamp(110px, 12vw, 160px); text-align: center; display: grid; justify-items: center; }
.abspann h2 { max-width: 20ch; }
.abspann .sub { margin-inline: auto; }
.muenze--abspann { --s: 88px; margin-bottom: 28px; }

/* ── Gold-Beutel: immer unten rechts, zeigt das gesammelte Gold ── */
.beutel {
  position: fixed; right: max(16px, calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: 20px; z-index: 20;
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--page) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--glass-edge), 0 20px 40px -20px var(--shadow);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.beutel .muenze { --s: 44px; }
.beutel__zahl { font-size: 34px; line-height: 1; min-width: 2.4ch; color: var(--gold-text); }
.beutel__zahl::before { content: counter(gold); }
.beutel__gold { font-weight: 600; color: var(--muted); }

/* ── Bewegung: nur mit Zustimmung, nur transform und opacity ── */
@media (prefers-reduced-motion: no-preference) {
  .drop { animation: schweben 4s ease-in-out infinite alternate; }
  .drop--2 { animation-delay: -1.3s; } .drop--3 { animation-delay: -2.6s; }
  .dialog > * { animation: hoch .7s var(--ease) both; }
  .dialog > :nth-child(2) { animation-delay: .06s; } .dialog > :nth-child(3) { animation-delay: .12s; } .dialog > :nth-child(4) { animation-delay: .18s; } .dialog > :nth-child(5) { animation-delay: .24s; }
  .held__bild .phone { animation: hoch 1s .1s var(--ease) both; }
  .qi:checked + .q .q__lohn { animation: einsammeln .6s var(--ease); }
  .beutel { transition: transform .3s var(--spring); }
  .rpg:has(.qi:checked) .beutel { animation: klimpern .5s var(--spring); }
  @supports (animation-timeline: view()) {
    .slot, .item, .regeln li, .leiter li, .bonus li, .code span { animation: hoch linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes hoch { from { opacity: 0; transform: translateY(24px); } }
@keyframes schweben { to { transform: translateY(-14px); } }
@keyframes einsammeln { 0% { transform: none; opacity: 1; } 60% { transform: translateY(-18px) scale(1.2); opacity: 1; } 100% { transform: none; opacity: .45; } }
@keyframes klimpern { 40% { transform: scale(1.08); } }

@media (prefers-reduced-transparency: reduce) {
  .fenster, .doc-head, .fehlt__fenster, .beutel { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ── Unterseiten (Hilfe, Datenschutz, Impressum): Kopf als Spiel-Fenster mit Münze ── */
.doc-page { padding-top: 40px; margin-bottom: clamp(80px, 10vw, 128px); }
.doc-head { overflow: visible; }
.doc-head .muenze { --s: clamp(130px, 16vw, 200px); position: absolute; right: clamp(20px, 4vw, 56px); top: 50%; translate: 0 -50%; opacity: .4; }
.doc-head h1 { hyphens: auto; overflow-wrap: break-word; position: relative; font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.035em; color: var(--accent); }
.doc-head .lead { position: relative; color: var(--muted); font-size: 18px; max-width: 52ch; margin: 14px 0 0; }
.doc-head__meta { position: relative; margin: 16px 0 0; font: 500 14px var(--mono); color: var(--gold-text); }
.doc-grid { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 760px) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.doc-grid--toc { grid-template-columns: 250px minmax(0, 760px); }
.doc-aside { position: sticky; top: 104px; display: grid; gap: 18px; }

/* Hilfe: Fragen wie Einträge im Quest-Log */
.faq section + section { margin-top: 44px; }
.faq h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; color: var(--text); margin-bottom: 14px; }
.faq h2 .i { color: var(--accent); width: 26px; height: 26px; }
.faq details { border-radius: 8px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--glass-edge); transition: border-color .2s; }
.faq details + details { margin-top: 10px; }
.faq details:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 26px/1 "Geist Pixel", var(--mono); color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 16px; }
.kasten { position: relative; display: grid; gap: 12px; justify-items: start; padding: 26px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); box-shadow: var(--glass-edge); }
.kasten > .i { width: 30px; height: 30px; color: var(--accent); }
.kasten h2 { font-size: 22px; color: var(--text); }
.kasten p { margin: 0; color: var(--muted); font-size: 16px; }
.kasten--akzent { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent-fill) 16%, var(--card)), var(--card) 70%); }
.kasten__mail { font: 500 14px var(--mono); color: var(--muted); }

/* Rechtstexte */
.doc-inhalt { position: sticky; top: 104px; }
.doc-inhalt__titel { margin: 0 0 10px; font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); }
.doc-inhalt ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.doc-inhalt li { counter-increment: toc; }
.doc-inhalt a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 15px; }
.doc-inhalt a::before { content: counter(toc) ". "; font-variant-numeric: tabular-nums; }
.doc-inhalt a:hover { color: var(--text); background: color-mix(in srgb, var(--accent-fill) 12%, transparent); }
.doc-text { min-width: 0; }
.doc-text h2 { font-size: 26px; letter-spacing: -0.02em; color: var(--text); margin: 48px 0 12px; }
.doc-text h2:first-child { margin-top: 0; }
.doc-text h3 { font-size: 19px; margin: 28px 0 8px; }
.doc-text p, .doc-text li { color: var(--text); font-size: 16.5px; line-height: 1.65; }
.doc-text p { margin: 0 0 12px; }
.doc-text ul { padding-left: 22px; margin: 0 0 12px; }
.doc-text li + li { margin-top: 6px; }
.muted { color: var(--muted) !important; }

/* Impressum: Kästen im Raster */
.impressum { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.impressum address { font-style: normal; color: var(--text); line-height: 1.6; }
.impressum__breit { grid-column: 1 / -1; }

/* 404: Quest-Dialog */
.fehlt { padding-top: 40px; margin-bottom: clamp(80px, 10vw, 128px); min-height: min(calc(100dvh - 180px), 640px); display: grid; align-items: center; }
.fehlt__fenster { max-width: 760px; }
.fehlt h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.045em; }
.fehlt h1 em { font-style: normal; color: var(--accent); }
.fehlt .lead { color: var(--muted); font-size: 19px; max-width: 44ch; margin: 22px 0 0; }
.fehlt__null { font-size: 22px; font-weight: 800; color: var(--gold-text); }
.fehlt__aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── Schmal ── */
@media (max-width: 1023px) {
  .held, .log, .stufen { grid-template-columns: 1fr; }
  .stufen__bilder { max-width: 440px; }
  .held__bild .phone, .log__bild .phone { width: min(280px, 76%); max-height: none; }
  .inventar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ausruestung { grid-template-columns: 1fr 1fr; }
  .item--gross, .item--farbe { grid-column: 1 / -1; }
  .item--verlauf { grid-column: 2; grid-row: 2 / span 3; }
  .doc-grid, .doc-grid--toc { grid-template-columns: 1fr; }
  .doc-aside, .doc-inhalt { position: static; }
  .impressum { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .inventar { grid-template-columns: 1fr 1fr; }
  .haendler__regeln { grid-template-columns: 1fr; }
  .haendler__regeln .phone { max-width: 220px; }
  .regeln { grid-template-columns: 1fr; }
  .leiter { grid-template-columns: 1fr 1fr; }
  .stufen__bilder { max-width: 340px; }
  .ausruestung { grid-template-columns: 1fr; }
  .item--verlauf { grid-column: 1; grid-row: auto; }
  .item--verlauf img { width: 70%; }
  .item--farbe { grid-template-columns: 34px minmax(0, 1fr); }
  .item--farbe .farben { grid-column: 1 / -1; grid-row: auto; margin-top: 8px; }
  .preise { grid-template-columns: 1fr; }
  .beutel { left: 50%; right: auto; translate: -50% 0; }
  .drop { font-size: 18px; }
  .q { padding: 14px; gap: 10px; grid-template-columns: 26px minmax(0, 1fr) auto; }
  .q__box { width: 26px; height: 26px; }
  .q__lohn { font-size: 19px; }
  .fenster, .doc-head, .fehlt__fenster { padding: 24px 18px; }
  .doc-head .muenze { display: none; }
}

/* Startseite: Platz unter der Fußzeile, damit der Gold-Beutel nichts verdeckt */
body:has(.beutel) .dg-foot { padding-bottom: 96px; }
