/* ==========================================================================
   Die Wuselwichte – Stilblatt
   QUELLE ist master/stil.css. baue.py schreibt sie nach ../web/stil.css;
   wer die Kopie im Webordner ändert, verliert sie beim nächsten Bau.

   Marke nach dem gedruckten Buch (gs3/build_buch.py): Papier, Tinte,
   Pflaume, Petrol, Gold – und je Wicht eine Farbe. Fredoka für alles Runde,
   EB Garamond für den Vorlesetext.
   ========================================================================== */
:root {
  --papier: #F6F1E8;
  --papier-hell: #FCF8F0;
  --papier-tief: #EDE5D6;
  --tinte: #463428;
  --sanft: #6F5E4E;
  --pflaume: #70406C;
  --petrol: #2E6E75;
  --petrol-tief: #235860;
  --gold: #B8892E;
  --linie: rgba(70, 52, 40, .14);
  --schatten: 0 1px 2px rgba(70, 52, 40, .06), 0 8px 24px rgba(70, 52, 40, .08);
  --schatten-hoch: 0 2px 4px rgba(70, 52, 40, .08), 0 18px 44px rgba(70, 52, 40, .14);
  --rund: 22px;
  --rund-klein: 14px;
  --breite: 1120px;
  --rund-schrift: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --lese-schrift: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --w: var(--petrol);            /* Farbe des Wichts, je Karte überschrieben */
  --f: #BFE0DC;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--lese-schrift);
  font-size: 1.22rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol-tief); text-underline-offset: .18em; }
a:hover { color: var(--pflaume); }
h1, h2, h3, h4 { font-family: var(--rund-schrift); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.innen { width: min(var(--breite), 100% - 2.5rem); margin-inline: auto; }
.abschnitt { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.abschnitt.tief { background: var(--papier-tief); }
.abschnitt.hell { background: var(--papier-hell); }
.kicker { font-family: var(--rund-schrift); font-weight: 500; font-size: .95rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--petrol-tief); display: block; margin-bottom: .6rem; }
.fuehrt { font-size: 1.32rem; color: var(--sanft); max-width: 40em; }
.mitte { text-align: center; }
.mitte .fuehrt { margin-inline: auto; }

/* ---------------------------------------------------------------- Wortmarke */
.wortmarke { font-family: var(--rund-schrift); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.wortmarke i { font-style: normal; }
.wortmarke .die { font-weight: 500; color: var(--tinte); margin-right: .28em; }

/* ---------------------------------------------------------------- Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .6rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--rund-schrift); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:active { transform: scale(.97); }
.btn-haupt { background: var(--petrol); color: #fff; box-shadow: 0 4px 0 var(--petrol-tief); }
.btn-haupt:hover { background: var(--petrol-tief); color: #fff; }
.btn-pflaume { background: var(--pflaume); color: #fff; box-shadow: 0 4px 0 #532E50; }
.btn-pflaume:hover { background: #5E355B; color: #fff; }
.btn-leise { background: var(--papier-hell); color: var(--tinte); border-color: var(--linie); }
.btn-leise:hover { border-color: var(--petrol); color: var(--petrol-tief); }
.btn.gross { min-height: 56px; font-size: 1.15rem; padding-inline: 1.7rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; }
.mitte .knoepfe { justify-content: center; }

/* ---------------------------------------------------------------- Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 40; background: rgba(246, 241, 232, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie);
  padding-top: env(safe-area-inset-top); }
.kopf .nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(var(--breite), 100% - 2rem); margin-inline: auto; min-height: 68px; }
.kopf .marke { text-decoration: none; font-size: 1.55rem; display: inline-flex; align-items: center; min-height: 44px; }
.kopf .links { display: flex; align-items: center; gap: .3rem; }
.kopf .links a:not(.btn) { font-family: var(--rund-schrift); font-weight: 500; font-size: 1.05rem;
  color: var(--tinte); text-decoration: none; padding: .55rem .85rem; border-radius: 999px; min-height: 44px;
  display: inline-flex; align-items: center; }
.kopf .links a:not(.btn):hover { background: var(--papier-tief); }
.kopf .links a[aria-current="page"]:not(.btn) { color: var(--petrol-tief); background: var(--papier-tief); }
.kopf .links .btn { margin-left: .5rem; min-height: 44px; box-shadow: none; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--linie);
  background: var(--papier-hell); position: relative; }
.burger i, .burger i::before, .burger i::after { content: ""; position: absolute; left: 50%; width: 20px; height: 2.5px;
  margin-left: -10px; background: var(--tinte); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger i { top: 50%; margin-top: -1px; }
.burger i::before { top: -7px; }
.burger i::after { top: 7px; }
.burger[aria-expanded="true"] i { background: transparent; }
.burger[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 820px) {
  .burger { display: block; }
  .kopf .links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    gap: .2rem; padding: .8rem 1rem 1.2rem; background: var(--papier); border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten); display: none; }
  .kopf .links.offen { display: flex; }
  .kopf .links a:not(.btn) { font-size: 1.2rem; padding: .8rem 1rem; }
  .kopf .links .btn { margin: .4rem 0 0; }
}

/* ---------------------------------------------------------------- Fußzeile */
.fuss { background: #3A2B21; color: #EFE6D6; padding: 3.5rem 0 1.5rem; margin-top: 0; font-size: 1.08rem; }
.fuss a { color: #EFE6D6; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-gitter { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.fuss .wortmarke { font-size: 1.7rem; }
.fuss .wortmarke .die { color: #EFE6D6; }
.fuss-titel { font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: #C9B79C; margin-bottom: .7rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li a { display: inline-block; padding: .28rem 0; }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  border-top: 1px solid rgba(239, 230, 214, .18); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .98rem; color: #C9B79C; }
.fuss-unten em { color: #EFE6D6; }
@media (max-width: 760px) { .fuss-gitter { grid-template-columns: 1fr 1fr; } .fuss-marke { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- Startseite */
.auftakt { position: relative; overflow: hidden; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.auftakt::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42rem 26rem at 88% 8%, rgba(247, 201, 51, .20), transparent 65%),
    radial-gradient(34rem 24rem at 4% 96%, rgba(183, 163, 217, .26), transparent 65%),
    radial-gradient(30rem 20rem at 60% 110%, rgba(232, 87, 60, .12), transparent 65%); }
.auftakt .innen { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.auftakt h1 { margin-bottom: .25em; }
.auftakt h1 .wortmarke { display: block; font-size: 1.28em; line-height: 1; }
.auftakt h1 .die { display: block; font-size: .42em; margin-bottom: .1em; }
.auftakt .unter { font-style: italic; color: var(--pflaume); font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: .8em; }
.auftakt-bild img { width: 100%; filter: drop-shadow(0 18px 30px rgba(70, 52, 40, .16)); }
@media (max-width: 860px) {
  .auftakt .innen { grid-template-columns: 1fr; }
  .auftakt-bild { order: -1; max-width: 420px; margin-inline: auto; }
  .auftakt { text-align: center; }
  .auftakt .knoepfe { justify-content: center; }
  .auftakt .fuehrt { margin-inline: auto; }
}

.reim { font-family: var(--lese-schrift); font-style: italic; color: var(--pflaume);
  font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.35; text-align: center; margin: 0; }
.reim-kasten { background: var(--papier-hell); border: 2px dashed rgba(112, 64, 108, .35); border-radius: var(--rund);
  padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.reim-kasten .danach { font-family: var(--rund-schrift); color: var(--sanft); font-size: 1.05rem; margin: 1rem 0 0; }

.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: schritt; }
.schritte li { background: var(--papier-hell); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1.4rem 1.3rem 1.2rem; position: relative; counter-increment: schritt; }
.schritte li::before { content: counter(schritt); font-family: var(--rund-schrift); font-weight: 700; font-size: 1.15rem;
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--w); margin-bottom: .8rem; }
.schritte p { margin: 0; font-size: 1.12rem; }
@media (max-width: 900px) { .schritte { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .schritte { grid-template-columns: 1fr; } }

.zweispalt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.zweispalt.bild-breit { grid-template-columns: 1.25fr .75fr; }
@media (max-width: 860px) { .zweispalt, .zweispalt.bild-breit { grid-template-columns: 1fr; } }
.rahmen { border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten-hoch); background: var(--papier-hell); }
.rahmen img { width: 100%; }

/* ---------------------------------------------------------------- Wicht-Kacheln */
.wicht-reihe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 980px) { .wicht-reihe { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .wicht-reihe { grid-template-columns: repeat(3, 1fr); gap: .7rem; } }
@media (max-width: 380px) { .wicht-reihe { grid-template-columns: repeat(2, 1fr); } }
.wicht-knopf { display: flex; flex-direction: column; align-items: center; gap: .15rem; text-align: center; text-decoration: none;
  background: var(--papier-hell); border: 2px solid var(--linie); border-radius: var(--rund); padding: .9rem .5rem 1rem;
  color: var(--tinte); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; width: 100%; }
.wicht-knopf:hover { transform: translateY(-4px); border-color: var(--w); box-shadow: var(--schatten); color: var(--tinte); }
.wicht-knopf img { width: 100%; max-width: 132px; aspect-ratio: 1; object-fit: contain; }
.wicht-knopf strong { font-family: var(--rund-schrift); font-weight: 600; font-size: 1.18rem; color: var(--w); }
.wicht-knopf span { font-family: var(--rund-schrift); font-size: .95rem; color: var(--sanft); line-height: 1.25; }

/* ---------------------------------------------------------------- Bücher */
.buch-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.2rem); }
@media (max-width: 760px) { .buch-reihe { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }
.buch-karte { text-decoration: none; color: var(--tinte); display: block; text-align: center; }
.deckel { border-radius: 6px 12px 12px 6px; overflow: hidden; background: var(--papier-hell);
  box-shadow: inset 4px 0 0 rgba(70, 52, 40, .10), 0 2px 3px rgba(70, 52, 40, .14), 0 20px 36px rgba(70, 52, 40, .20);
  transition: transform .2s ease; }
.buch-karte:hover .deckel { transform: translateY(-6px) rotate(-1deg); }
.buch-karte h3 { margin: 1.1rem 0 .2rem; }
.buch-karte p { color: var(--sanft); font-size: 1.08rem; margin: 0; }

.band { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start;
  padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--linie); }
.band:first-of-type { border-top: 0; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } .band .deckel { max-width: 300px; margin-inline: auto; } }
.titel-liste { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; columns: 2; column-gap: 2rem; }
@media (max-width: 620px) { .titel-liste { columns: 1; } }
.titel-liste li { break-inside: avoid; padding: .32rem 0; display: flex; gap: .6rem; align-items: baseline; font-size: 1.12rem; }
.titel-liste a { color: var(--tinte); text-decoration: none; }
.titel-liste a:hover { color: var(--w); text-decoration: underline; }
.punkt { flex: none; width: .75em; height: .75em; border-radius: 50%; background: var(--w); transform: translateY(.02em); }
.titel-liste small { font-family: var(--rund-schrift); color: var(--w); font-size: .88rem; white-space: nowrap; }
.fakten { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.fakten li { font-family: var(--rund-schrift); font-size: .95rem; background: var(--papier-tief); border-radius: 999px; padding: .3rem .85rem; color: var(--sanft); }
.marke-frei { display: inline-block; font-family: var(--rund-schrift); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  background: #E4F0E6; color: #2F6B3E; border-radius: 999px; padding: .08rem .55rem; }

/* ---------------------------------------------------------------- Wichte-Seite */
.wicht-blatt { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(1.2rem, 4vw, 3rem);
  background: var(--papier-hell); border: 1px solid var(--linie); border-left: 8px solid var(--w); border-radius: var(--rund);
  padding: clamp(1.2rem, 3.5vw, 2.4rem); margin-bottom: 1.6rem; scroll-margin-top: 90px; }
@media (max-width: 720px) { .wicht-blatt { grid-template-columns: 1fr; } .wicht-blatt > .gross-bild { max-width: 240px; margin-inline: auto; } }
.wicht-blatt h3 { font-size: 2rem; color: var(--w); margin-bottom: .1em; }
.wicht-blatt .kommt { font-style: italic; font-size: 1.3rem; margin-bottom: .7em; }
.gesichter { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.2rem 0; }
.gesichter figure { margin: 0; text-align: center; }
.gesichter img { height: 120px; width: 100%; object-fit: contain; object-position: bottom; }
.gesichter figcaption { font-family: var(--rund-schrift); font-size: .92rem; color: var(--sanft); line-height: 1.3; margin-top: .4rem; }
.gesichter figcaption b { display: block; color: var(--w); font-weight: 600; }
.hilft { background: color-mix(in srgb, var(--f) 22%, var(--papier-hell)); border-radius: var(--rund-klein); padding: .9rem 1.1rem; margin: 0 0 1rem; }
.hilft b { font-family: var(--rund-schrift); font-weight: 600; color: var(--w); }
.ich-satz { font-family: var(--rund-schrift); font-weight: 500; }
.band-kopf { display: flex; align-items: baseline; gap: 1rem; margin: 2.8rem 0 1.2rem; flex-wrap: wrap; }
.band-kopf:first-child { margin-top: 0; }
.band-kopf span { font-family: var(--rund-schrift); color: var(--sanft); }

/* ---------------------------------------------------------------- Karte */
.karte { position: relative; border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten-hoch); background: var(--papier); }
.karte > img { width: 100%; }
.karten-ort { position: absolute; transform: translate(-50%, -50%); background: rgba(252, 247, 238, .96); color: var(--w);
  border: 3px solid var(--w); border-radius: 999px; font-family: var(--rund-schrift); font-weight: 600;
  font-size: clamp(.62rem, 1.45vw, 1.02rem); padding: .28em .85em; white-space: nowrap; min-height: 0; line-height: 1.25;
  transition: transform .15s ease, box-shadow .15s ease; text-decoration: none; }
.karten-ort:hover, .karten-ort[aria-pressed="true"] { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 6px 18px rgba(70, 52, 40, .25); background: #fff; color: var(--w); }
.karten-titel { position: absolute; left: 29.4%; top: 4.2%; transform: translateX(-50%); font-family: var(--rund-schrift); font-weight: 700;
  color: var(--petrol); background: rgba(252, 247, 238, .96); border: 3px solid var(--petrol); border-radius: 999px;
  font-size: clamp(1rem, 3vw, 2.1rem); padding: .1em .7em; pointer-events: none; }
.karten-blatt { margin-top: 1.5rem; display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; align-items: center;
  background: var(--papier-hell); border: 1px solid var(--linie); border-left: 8px solid var(--w); border-radius: var(--rund); padding: 1.3rem 1.6rem; }
.karten-blatt h3 { color: var(--w); font-size: 1.6rem; margin-bottom: .15em; }
@media (max-width: 560px) { .karten-blatt { grid-template-columns: 1fr; text-align: center; } .karten-blatt img { max-width: 140px; margin-inline: auto; } .karten-blatt .knoepfe { justify-content: center; } }
.ort-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.ort-liste li { background: var(--papier-hell); border: 1px solid var(--linie); border-top: 6px solid var(--w); border-radius: var(--rund-klein); padding: 1rem 1.2rem; }
.ort-liste b { font-family: var(--rund-schrift); font-weight: 600; color: var(--w); display: block; }

/* ---------------------------------------------------------------- Digital erleben */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.kachel { background: var(--papier-hell); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1.4rem 1.4rem 1.3rem; }
.kachel .zeichen { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--w); margin-bottom: .9rem; }
.kachel .zeichen svg { width: 28px; height: 28px; }
.kachel h3 { margin-bottom: .3em; }
.kachel p { margin: 0; font-size: 1.1rem; color: var(--sanft); }
.zugang-kasten { background: var(--papier-hell); border: 2px solid var(--linie); border-radius: var(--rund); padding: clamp(1.4rem, 4vw, 2.4rem); }
.zugang-kasten ul { margin: 0 0 1.2rem; padding-left: 1.2em; }

/* ==========================================================================
   Die Wuselwelt (digital/welt)
   ========================================================================== */
body.welt { background: var(--papier); min-height: 100vh; min-height: 100dvh; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.welt-kopf { position: sticky; top: 0; z-index: 30; background: rgba(246, 241, 232, .94); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); padding-top: env(safe-area-inset-top); }
.welt-kopf .zeile { display: flex; align-items: center; gap: .6rem; width: min(var(--breite), 100% - 1.6rem); margin-inline: auto; min-height: 62px; }
.welt-kopf .wo { font-family: var(--rund-schrift); font-weight: 600; font-size: 1.2rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welt-kopf .marke { font-size: 1.15rem; text-decoration: none; }
.rund-knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 48px; min-height: 48px;
  padding: 0 .9rem; border-radius: 999px; border: 2px solid var(--linie); background: var(--papier-hell);
  font-family: var(--rund-schrift); font-weight: 500; font-size: 1rem; text-decoration: none; color: var(--tinte); }
.rund-knopf:hover { border-color: var(--petrol); color: var(--petrol-tief); }
.rund-knopf svg { width: 22px; height: 22px; flex: none; }
.rund-knopf.nur-zeichen { padding: 0; width: 48px; }
@media (max-width: 560px) { .welt-kopf .marke { display: none; } }

.schirm { width: min(var(--breite), 100% - 1.6rem); margin-inline: auto; padding: 1.4rem 0 2.5rem; animation: herein .28s ease both; }
@keyframes herein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.schirm h2 { margin-bottom: .3em; }
.schirm .fuehrt { margin-bottom: 1.4rem; font-size: 1.2rem; }

.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(252, 248, 240, .97); border-top: 1px solid var(--linie);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-bottom: env(safe-area-inset-bottom); }
.leiste .zeile { display: grid; grid-template-columns: repeat(4, 1fr); width: min(640px, 100%); margin-inline: auto; }
.leiste button { background: none; border: 0; padding: .55rem 0 .5rem; min-height: 64px; display: flex; flex-direction: column; align-items: center; gap: .15rem;
  font-family: var(--rund-schrift); font-weight: 500; font-size: .88rem; color: var(--sanft); }
.leiste button svg { width: 26px; height: 26px; }
.leiste button[aria-current="true"] { color: var(--petrol-tief); }
.leiste button[aria-current="true"] svg { stroke-width: 2.4; }

/* Zuhause */
.gruss { position: relative; border-radius: var(--rund); overflow: hidden; margin-bottom: 1.6rem; min-height: 220px; display: grid; align-items: end;
  background: var(--papier-tief) center 38% / cover no-repeat; box-shadow: var(--schatten); }
.gruss::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58, 43, 33, 0) 20%, rgba(58, 43, 33, .74) 100%); }
.gruss > div { position: relative; z-index: 1; padding: 1.3rem 1.5rem; color: #fff; }
.gruss h2 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.gruss p { margin: .2rem 0 0; font-size: 1.15rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.zeilen-titel { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; margin: 1.6rem 0 .8rem; }
.zeilen-titel svg { width: 22px; height: 22px; color: var(--gold); }
.gefuehl-reihe { display: flex; gap: .7rem; overflow-x: auto; padding: .3rem .2rem 1rem; margin: 0 -.2rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.gefuehl-knopf { flex: none; width: 104px; scroll-snap-align: start; background: var(--papier-hell); border: 2px solid var(--linie);
  border-radius: 20px; padding: .6rem .3rem .55rem; text-align: center; transition: transform .15s ease, border-color .15s ease; }
.gefuehl-knopf:hover { transform: translateY(-3px); border-color: var(--w); }
.gefuehl-knopf img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto .2rem; }
.gefuehl-knopf span { font-family: var(--rund-schrift); font-weight: 500; font-size: .9rem; color: var(--w); line-height: 1.15; display: block; }
.leer { color: var(--sanft); font-style: italic; background: var(--papier-hell); border: 1px dashed var(--linie); border-radius: var(--rund-klein); padding: .9rem 1.1rem; font-size: 1.1rem; }
.tore { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin-top: .4rem; }
.tor { display: flex; gap: .9rem; align-items: center; text-align: left; background: var(--papier-hell); border: 2px solid var(--linie);
  border-radius: var(--rund); padding: 1rem 1.1rem; min-height: 92px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.tor:hover { transform: translateY(-3px); border-color: var(--w); box-shadow: var(--schatten); }
.tor .zeichen { flex: none; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: var(--w); color: #fff; }
.tor .zeichen svg { width: 28px; height: 28px; }
.tor strong { display: block; font-family: var(--rund-schrift); font-weight: 600; font-size: 1.15rem; }
.tor span span { font-size: 1.02rem; color: var(--sanft); line-height: 1.3; display: block; }

/* Geschichtenliste */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.filter button { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--linie); background: var(--papier-hell);
  font-family: var(--rund-schrift); font-weight: 500; font-size: 1rem; display: inline-flex; align-items: center; gap: .4rem; }
.filter button img { width: 28px; height: 28px; object-fit: contain; }
.filter button[aria-pressed="true"] { background: var(--w); border-color: var(--w); color: #fff; }
.g-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.g-karte { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; align-items: center; text-align: left; background: var(--papier-hell);
  border: 2px solid var(--linie); border-radius: var(--rund); padding: .7rem; position: relative; transition: transform .15s ease, border-color .15s ease; }
.g-karte:hover { transform: translateY(-3px); border-color: var(--w); }
.g-karte > img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; background: var(--papier-tief); }
.g-karte strong { font-family: var(--rund-schrift); font-weight: 600; font-size: 1.08rem; line-height: 1.2; display: block; }
.g-karte .wer { font-family: var(--rund-schrift); font-size: .92rem; color: var(--w); display: flex; align-items: center; gap: .35rem; margin-top: .25rem; flex-wrap: wrap; }
.g-karte .wer svg { width: 15px; height: 15px; color: var(--sanft); }
.g-karte .funke-an { position: absolute; top: .5rem; right: .6rem; color: var(--gold); }
.g-karte .funke-an svg { width: 18px; height: 18px; }

/* Eine Geschichte */
.g-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.g-kopf img { width: 76px; height: 76px; object-fit: contain; flex: none; }
.g-kopf h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); }
.g-kopf p { margin: .1rem 0 0; font-family: var(--rund-schrift); color: var(--w); font-size: 1.02rem; }
.g-kopf .frei { flex: 1; min-width: 0; }
.funke-knopf[aria-pressed="true"] { background: #FBF0D4; border-color: var(--gold); color: #8A6412; }
.funke-knopf[aria-pressed="true"] svg { fill: currentColor; }
.blatt { background: var(--papier-hell); border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten); }
.blatt-innen { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: min(62vh, 560px); }
.blatt-bild { background: var(--papier); align-self: stretch; display: grid; place-items: center; padding: .8rem; }
.blatt-bild img { max-height: min(62vh, 560px); width: auto; max-width: 100%; border-radius: 12px; }
.blatt-text { padding: clamp(1.2rem, 3.5vw, 2.4rem); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.6; }
.blatt-text p { margin-bottom: .8em; white-space: pre-line; }
.blatt-text p.spruch { font-style: italic; color: var(--pflaume); text-align: center; font-size: 1.08em; padding: .4em 0; }
.blatt-text .schritt { font-family: var(--rund-schrift); font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; color: var(--w); margin-bottom: .6rem; display: block; }
@media (max-width: 820px) { .blatt-innen { grid-template-columns: 1fr; min-height: 0; } .blatt-bild img { max-height: 46vh; } }
.blatt-fuss { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 1rem; border-top: 1px solid var(--linie); background: var(--papier); }
.punkte { display: flex; gap: .4rem; }
.punkte i { width: 11px; height: 11px; border-radius: 50%; background: var(--linie); transition: background-color .2s ease, transform .2s ease; }
.punkte i.da { background: var(--w); transform: scale(1.25); }
.punkte i.war { background: color-mix(in srgb, var(--w) 45%, var(--papier)); }
.nachklang { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .nachklang { grid-template-columns: 1fr; } }
.nachklang > div { background: var(--papier-hell); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1.2rem 1.4rem; }
.nachklang h3 { font-size: 1.1rem; color: var(--w); }
.nachklang ul { margin: 0; padding-left: 1.1em; }
.nachklang li { margin-bottom: .35em; }

.schranke { text-align: center; background: var(--papier-hell); border: 2px dashed var(--linie); border-radius: var(--rund); padding: clamp(1.6rem, 5vw, 3rem); }
.schranke .zeichen { width: 64px; height: 64px; border-radius: 50%; background: var(--papier-tief); display: grid; place-items: center; margin: 0 auto 1rem; color: var(--sanft); }
.schranke .zeichen svg { width: 30px; height: 30px; }
.schranke p { max-width: 34em; margin-inline: auto; }

/* Wichte in der Welt */
.dialog { position: fixed; inset: 0; z-index: 60; background: rgba(58, 43, 33, .55); display: flex; padding: 1rem;
  animation: herein .2s ease both; overflow-y: auto; overscroll-behavior: contain; }
.dialog-blatt { background: var(--papier-hell); border-radius: 26px; border-top: 10px solid var(--w); width: min(680px, 100%); margin: auto;
  padding: clamp(1.2rem, 4vw, 2rem); position: relative; box-shadow: var(--schatten-hoch); }
.dialog-blatt .zu { position: absolute; top: .7rem; right: .7rem; }
.dialog-blatt h3 { font-size: 1.9rem; color: var(--w); margin: 0; }
.dialog-kopf { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; align-items: center; padding-right: 3rem; }
@media (max-width: 480px) { .dialog-kopf { grid-template-columns: 90px 1fr; } }
.dialog-blatt .g-liste { grid-template-columns: 1fr; gap: .6rem; margin-top: .6rem; }
.dialog-blatt .g-karte { grid-template-columns: 64px 1fr; }
.dialog-blatt .g-karte > img { width: 64px; height: 64px; }

/* Gefühle */
.ritual { text-align: center; background: color-mix(in srgb, var(--f) 16%, var(--papier-hell)); border: 2px solid color-mix(in srgb, var(--w) 30%, transparent);
  border-radius: 28px; padding: clamp(1.4rem, 5vw, 2.6rem); }
.ritual img { height: min(34vh, 260px); width: auto; margin: 0 auto 1rem; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.ritual img.gross { transform: scale(1.18); }
.ritual img.klein { transform: scale(.82); }
.ritual h3 { color: var(--w); font-size: clamp(1.5rem, 4vw, 2.1rem); }
.ritual .sag { font-family: var(--rund-schrift); font-weight: 600; font-size: clamp(1.5rem, 4.5vw, 2.2rem); color: var(--w); margin: .4rem 0 1rem; }
.ritual .knoepfe { justify-content: center; margin-top: 1.2rem; }
.ritual .btn-haupt { background: var(--w); box-shadow: 0 4px 0 color-mix(in srgb, var(--w) 72%, #000); }

/* Rätsel und Spiele */
.frage { background: var(--papier-hell); border: 1px solid var(--linie); border-radius: var(--rund); padding: clamp(1.2rem, 4vw, 2rem); text-align: center; }
.frage .aus { font-size: clamp(1.3rem, 3vw, 1.6rem); max-width: 30em; margin: 0 auto 1.2rem; }
.frage small { font-family: var(--rund-schrift); color: var(--sanft); display: block; margin-bottom: .6rem; font-size: .95rem; }
.wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; max-width: 560px; margin: 0 auto; }
.wahl button { background: var(--papier); border: 3px solid var(--linie); border-radius: 22px; padding: .7rem .4rem; transition: transform .15s ease, border-color .15s ease; }
.wahl button:hover { transform: translateY(-3px); border-color: var(--w); }
.wahl button img { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; margin: 0 auto; }
.wahl button span { font-family: var(--rund-schrift); font-weight: 600; color: var(--w); display: block; font-size: 1.05rem; }
.wahl button.richtig { border-color: #3E8E52; background: #E8F4EA; animation: huepf .5s ease; }
.wahl button.daneben { opacity: .45; animation: wackel .35s ease; }
@keyframes huepf { 40% { transform: translateY(-12px) scale(1.05); } }
@keyframes wackel { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.tipp { font-family: var(--rund-schrift); margin: 1.1rem auto 0; min-height: 1.6em; max-width: 32em; }
.tipp.gut { color: #2F6B3E; font-weight: 600; }
.fortschritt { font-family: var(--rund-schrift); color: var(--sanft); font-size: .95rem; margin-bottom: .8rem; }

.paare { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; max-width: 620px; margin: 0 auto; }
.paar { aspect-ratio: 1; border-radius: 18px; border: 3px solid var(--linie); background: var(--petrol); position: relative; padding: 0; overflow: hidden; transition: transform .15s ease; }
.paar::before { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--rund-schrift); font-weight: 700; font-size: 2rem; color: rgba(255, 255, 255, .7); }
.paar img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; opacity: 0; }
.paar.auf, .paar.fest { background: var(--papier-hell); }
.paar.auf::before, .paar.fest::before { content: none; }
.paar.auf img, .paar.fest img { opacity: 1; }
.paar.fest { border-color: #3E8E52; }

.pz-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; }
.pz-wahl button { padding: 0; border: 3px solid var(--linie); border-radius: 16px; overflow: hidden; background: var(--papier-tief); aspect-ratio: 1; position: relative; }
.pz-wahl button:hover { border-color: var(--petrol); }
.pz-wahl img { width: 100%; height: 100%; object-fit: cover; }
.pz-wahl .zu-zeichen { position: absolute; inset: 0; background: rgba(246, 241, 232, .7); display: grid; place-items: center; color: var(--sanft); }
.pz-wahl .zu-zeichen svg { width: 26px; height: 26px; }
.pz-brett { display: grid; gap: 3px; width: min(560px, 100%); margin: 0 auto; background: var(--linie); border: 3px solid var(--linie); border-radius: 16px; overflow: hidden; touch-action: manipulation; }
.pz-teil { border: 0; padding: 0; background-repeat: no-repeat; aspect-ratio: 1; transition: transform .15s ease, filter .15s ease; }
.pz-teil.gewaehlt { transform: scale(.9); filter: brightness(1.1); outline: 4px solid var(--gold); outline-offset: -4px; z-index: 1; }
.pz-brett.fertig { gap: 0; border-color: #3E8E52; }
.stufen { display: flex; gap: .5rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }

/* Malen */
.mal-wahl { display: flex; gap: .6rem; overflow-x: auto; padding: .2rem .2rem .9rem; margin: 0 -.2rem .4rem; -webkit-overflow-scrolling: touch; }
.mal-wahl button { flex: none; width: 84px; height: 108px; padding: 4px; border: 3px solid var(--linie); border-radius: 14px; background: #fff;
  font-family: var(--rund-schrift); font-size: .85rem; color: var(--sanft); line-height: 1.15; }
.mal-wahl button[aria-pressed="true"] { border-color: var(--petrol); }
.mal-wahl img { width: 100%; height: 100%; object-fit: contain; }
.mal-werkzeug { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.farbe { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--linie); background: var(--c); padding: 0; }
.farbe[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--tinte); transform: scale(1.1); }
.mal-flaeche { background: #fff; border: 2px solid var(--linie); border-radius: var(--rund); overflow: hidden; touch-action: none; position: relative; margin-inline: auto; }
.mal-flaeche canvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.mal-linien { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; pointer-events: none; user-select: none; }

/* Konto */
.angebot h2 small, .angebot h3 small { display: block; font-size: .62em; font-weight: 500; color: var(--petrol-tief); margin-top: .2em; }
.angebot h3 { font-size: 1.7rem; }
.k-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.k-kopf strong { font-family: var(--rund-schrift); font-size: 1.15rem; word-break: break-all; }
.k-kopf .kicker { margin: 0; }
.k-wege { display: flex; gap: .4rem; margin: .4rem 0 1rem; flex-wrap: wrap; }
.k-wege button { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--linie); background: var(--papier);
  font-family: var(--rund-schrift); font-weight: 500; font-size: 1rem; }
.k-wege button[aria-selected="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.k-form label { display: block; font-family: var(--rund-schrift); font-weight: 500; font-size: 1rem; margin: .7rem 0 .25rem; }
.k-form input { width: 100%; min-height: 50px; border-radius: 14px; border: 2px solid var(--linie); background: #fff; padding: 0 .9rem;
  font: inherit; font-family: var(--rund-schrift); font-size: 1.05rem; color: var(--tinte); }
.k-form input:focus { outline: 3px solid var(--petrol); outline-offset: 1px; border-color: var(--petrol); }
.k-form > .btn { margin-top: 1rem; }
.k-form .klein-hinweis { margin: .9rem 0 0; }
.k-zeile { display: flex; gap: .6rem; flex-wrap: wrap; }
.k-zeile input { flex: 1; min-width: 200px; }
.k-sagt { font-family: var(--rund-schrift); font-size: 1rem; margin: .7rem 0 0; min-height: 1.2em; color: var(--sanft); }
.k-sagt:empty { display: none; }
.k-fehler { color: #A3301F; }
.k-gut { background: #E4F0E6; color: #2F6B3E; border-radius: var(--rund-klein); padding: .8rem 1rem; font-family: var(--rund-schrift); }
.k-text { background: none; border: 0; padding: 0; color: var(--petrol-tief); text-decoration: underline; font: inherit; }
#welt-konto.an { background: var(--petrol); border-color: var(--petrol); color: #fff; }

/* Eltern */
.eltern details { background: var(--papier-hell); border: 1px solid var(--linie); border-left: 8px solid var(--w); border-radius: var(--rund-klein); margin-bottom: .8rem; }
.eltern summary { cursor: pointer; padding: 1rem 1.2rem; font-family: var(--rund-schrift); font-weight: 600; font-size: 1.15rem; min-height: 48px; }
.eltern details > div { padding: 0 1.2rem 1.2rem; }
.wert-tafel { width: 100%; border-collapse: collapse; font-size: 1.08rem; }
.wert-tafel td { padding: .6rem .5rem; border-top: 1px solid var(--linie); vertical-align: top; }
.wert-tafel td:first-child { font-family: var(--rund-schrift); font-weight: 500; width: 34%; }
.wert-tafel small { display: block; color: var(--w); font-family: var(--rund-schrift); }
.ablauf { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; counter-reset: a; }
.ablauf li { counter-increment: a; background: var(--papier-hell); border: 1px solid var(--linie); border-radius: var(--rund-klein); padding: .8rem 1rem; font-size: 1.05rem; }
.ablauf b { font-family: var(--rund-schrift); font-weight: 600; display: block; color: var(--petrol-tief); }
.ablauf b::before { content: counter(a) " · "; color: var(--sanft); }
.wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.weg { display: grid; grid-template-columns: 64px 1fr; gap: .8rem; align-items: center; background: var(--papier-hell); border: 1px solid var(--linie); border-radius: var(--rund-klein); padding: .7rem .9rem; font-size: 1.05rem; }
.weg b { font-family: var(--rund-schrift); font-weight: 600; color: var(--w); display: block; }
.klein-hinweis { font-size: 1.02rem; font-style: italic; color: var(--sanft); }

/* Bücher in der Welt */
.regal { display: grid; gap: 1.2rem; }
.regal-buch { display: grid; grid-template-columns: 150px 1fr; gap: 1.4rem; align-items: center; background: var(--papier-hell); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1.2rem; }
@media (max-width: 520px) { .regal-buch { grid-template-columns: 96px 1fr; gap: 1rem; } }
.regal-buch h3 { margin-bottom: .2em; }
.regal-buch p { font-size: 1.08rem; color: var(--sanft); margin-bottom: .8rem; }
.bald { font-family: var(--rund-schrift); font-size: .95rem; color: var(--sanft); display: inline-flex; gap: .4rem; align-items: center; }
.bald svg { width: 18px; height: 18px; }

/* Leser */
.leser { position: fixed; inset: 0; z-index: 80; background: #2E231B; display: flex; flex-direction: column; color: #EFE6D6; }
.leser-kopf, .leser-fuss { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .8rem; flex: none; }
.leser-kopf { padding-top: calc(.5rem + env(safe-area-inset-top)); }
.leser-fuss { justify-content: center; gap: 1.2rem; padding-bottom: calc(.5rem + env(safe-area-inset-bottom)); font-family: var(--rund-schrift); }
.leser .rund-knopf { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #EFE6D6; }
.leser .rund-knopf:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.leser .rund-knopf:disabled { opacity: .3; }
.leser select { min-height: 44px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #EFE6D6; border: 2px solid rgba(255, 255, 255, .18);
  font-family: var(--rund-schrift); font-size: .98rem; padding: 0 .9rem; max-width: 46vw; }
.leser select option { color: #222; }
.leser-wo { font-family: var(--rund-schrift); font-weight: 500; flex: 1; text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leser-buehne { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 .4rem; overflow: auto; position: relative; }
.leser-buehne img { max-height: 100%; max-width: 100%; object-fit: contain; background: var(--papier); box-shadow: 0 10px 40px rgba(0, 0, 0, .45); user-select: none; -webkit-user-drag: none; }
.leser-buehne.doppel img { max-width: 50%; }
.leser-buehne.lupe { align-items: flex-start; justify-content: flex-start; }
.leser-buehne.lupe img { max-height: none; max-width: none; height: 190%; }
.leser-schranke { background: var(--papier-hell); color: var(--tinte); border-radius: var(--rund); padding: 2rem; max-width: 30rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
