:root {
  --nacht: #0f0a07;
  --holz: #241710;
  --pergament: #efe0bd;
  --pergament-dunkel: #d9c093;
  --tinte: #2b1d12;
  --gold: #d4a64a;
  --gold-hell: #f7e3a1;
  --blut: #8b1a1a;
  --tuerkis: #2fd3c8;
  --kupfer: #c27a3a;
  --glut: #ff7a1a;
  --schrift-titel: 'Cinzel Decorative', serif;
  --schrift-kopf: 'Cinzel', serif;
  --schrift-text: 'IM Fell English', Georgia, serif;
  --schrift-rune: 'Uncial Antiqua', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--pergament); font-family: var(--schrift-text); font-size: 1.12rem; line-height: 1.6;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,140,40,.16), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(139,26,26,.25), transparent 60%),
    repeating-linear-gradient(92deg, rgba(0,0,0,.18) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(88deg, rgba(255,255,255,.02) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #1a110b, #0f0a07 40%, #160d08);
  overflow-x: hidden;
}
html { background: #0f0a07; }
body { background: none; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,140,40,.16), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(139,26,26,.25), transparent 60%),
    repeating-linear-gradient(92deg, rgba(0,0,0,.18) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(88deg, rgba(255,255,255,.02) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #1a110b, #0f0a07 40%, #160d08); }
#glut { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.75)); }
header, main, footer { position: relative; z-index: 2; }
a { color: inherit; }

/* ---------- Prolog ---------- */
.prolog { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7rem 1.5rem 1rem; }
.siegel-oben { width: 92px; animation: schweben 6s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(255,140,40,.45)); }
.anrede { font-family: var(--schrift-kopf); letter-spacing: .35em; text-transform: uppercase; color: var(--gold); font-size: .85rem; margin: 1.6rem 0 .4rem; }
h1 { font-family: var(--schrift-titel); font-weight: 900; font-size: clamp(2.8rem, 9vw, 6.5rem); line-height: 1; margin: 0;
  background: linear-gradient(180deg, #fff3c9 0%, #e8b955 45%, #9c6b1e 70%, #f0d080 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #3a210c) drop-shadow(0 0 30px rgba(255,160,60,.35)); }
h1 span { font-size: .72em; }
.trenner { display: flex; align-items: center; gap: 1rem; width: min(520px, 80vw); margin: 1.8rem auto; }
.trenner span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.trenner svg { width: 26px; height: 26px; }
.prolog-text { max-width: 640px; margin: 0 auto 1.1rem; font-size: 1.2rem; color: #e6d3ad; }
.prolog-text em { color: var(--gold-hell); }
.prolog-text.betont { font-style: italic; }
.prolog-text strong { font-family: var(--schrift-kopf); font-style: normal; color: var(--gold-hell); letter-spacing: .06em; display: inline-block; margin-top: .5rem; font-size: 1.3rem; }
.pfeil { margin-top: 2rem; text-decoration: none; display: flex; flex-direction: column; align-items: center; color: var(--gold); font-family: var(--schrift-kopf); letter-spacing: .2em; font-size: .8rem; text-transform: uppercase; }
.pfeil svg { width: 28px; animation: wippen 1.8s ease-in-out infinite; }

/* ---------- Kapitel ---------- */
.kapitel { font-family: var(--schrift-titel); text-align: center; font-size: clamp(1.7rem, 4.5vw, 2.8rem); color: var(--gold-hell); margin: 0 0 2.5rem; text-shadow: 0 2px 0 #3a210c, 0 0 24px rgba(255,160,60,.25); }
.kapitel small { display: block; font-family: var(--schrift-kopf); font-size: .8rem; letter-spacing: .5em; color: var(--gold); text-transform: uppercase; margin-bottom: .4rem; }
section { padding: 5rem 1.25rem; }

/* ---------- Karten ---------- */
.karten { display: flex; justify-content: center; align-items: stretch; gap: 2.5rem; flex-wrap: wrap; perspective: 1400px; max-width: 1150px; margin: 0 auto; }
.karte { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; display: block; width: min(420px, 92vw); text-decoration: none; border-radius: 18px; padding: 10px;
  background: linear-gradient(145deg, #f7e3a1, #9c6b1e 30%, #f0d080 55%, #7a4f14 80%, #e8c27a);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .3s;
  box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.6); }
.karte::after { content: ''; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.55), transparent 45%); opacity: 0; transition: opacity .3s; }
.karte:hover::after { opacity: 1; }
.karte-artificer:hover { box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 60px rgba(47,211,200,.35); }
.karte-huene:hover { box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 60px rgba(255,122,26,.4); }
.karte-innen { position: relative; border-radius: 11px; padding: 1.1rem 1.2rem 1.4rem; height: 100%; overflow: hidden; text-align: center; }
.karte-artificer .karte-innen { background: radial-gradient(circle at 50% 30%, #17383a, #0b1a1c 60%, #071012); }
.karte-huene .karte-innen { background: radial-gradient(circle at 50% 35%, #4a1a0c, #1f0b06 60%, #120604); }
.ecke { position: absolute; width: 48px; height: 48px; z-index: 3; }
.e1 { top: 4px; left: 4px; } .e2 { top: 4px; right: 4px; transform: scaleX(-1); } .e3 { bottom: 4px; left: 4px; transform: scaleY(-1); } .e4 { bottom: 4px; right: 4px; transform: scale(-1,-1); }
.karte-kopf { display: flex; justify-content: space-between; gap: .8rem; font-family: var(--schrift-kopf); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 0 2.4rem; }
.karte-bild { margin: .6rem auto 0; border-radius: 50% 50% 12px 12px; border: 2px solid rgba(212,166,74,.6); overflow: hidden; aspect-ratio: 1; max-width: 330px; box-shadow: inset 0 0 40px rgba(0,0,0,.8); }
.karte-artificer .karte-bild { background: radial-gradient(circle at 50% 40%, #1f4c4c, #0a1617); }
.karte-huene .karte-bild { background: radial-gradient(circle at 50% 60%, #5c210d, #160805); }
.illu { width: 100%; height: 100%; display: block; }
.karte-name { font-family: var(--schrift-titel); font-size: 1.7rem; line-height: 1.15; margin: 1rem 0 .4rem; color: var(--gold-hell); text-shadow: 0 2px 0 #000; }
.karte-motto { font-style: italic; color: #dccaa5; margin: 0 0 .9rem; min-height: 3.2em; }
.karte-tags { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.karte-tags span { font-family: var(--schrift-kopf); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 99px; border: 1px solid; }
.karte-artificer .karte-tags span { color: var(--tuerkis); border-color: rgba(47,211,200,.5); background: rgba(47,211,200,.08); }
.karte-huene .karte-tags span { color: #ffb35c; border-color: rgba(255,154,60,.5); background: rgba(255,122,26,.08); }
.karte-cta { display: inline-block; margin-top: 1.2rem; font-family: var(--schrift-kopf); font-weight: 700; letter-spacing: .12em; font-size: .85rem; color: var(--gold-hell); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.oder { display: flex; align-items: center; font-family: var(--schrift-titel); color: var(--gold); font-size: 1.4rem; }
.oder span { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(212,166,74,.5); background: rgba(0,0,0,.4); font-size: 1rem; }

/* Illu-Animationen */
.drehen { animation: drehen 18s linear infinite; }
.drehen-rueck { animation: drehen 12s linear infinite reverse; }
.drehen-langsam { animation: drehen 60s linear infinite; }
.sensor { animation: schweben 3.5s ease-in-out infinite; }
.s2 { animation-delay: -1.2s; } .s3 { animation-delay: -2.4s; }
.blinzeln { animation: blinzeln 4s infinite; }
.defender { animation: atmen 3s ease-in-out infinite; transform-origin: 70px 268px; }
.schaltkreis path { stroke-dasharray: 6 4; animation: strom 1.2s linear infinite; }
.pulsieren { animation: pulsieren 2.6s ease-in-out infinite; }
.flamme { transform-origin: 72px 282px; animation: flackern .5s ease-in-out infinite alternate; }
.f2 { animation-duration: .35s; }
.dampf { animation: dampf 3s ease-in-out infinite; }
.d2 { animation-delay: -1.5s; }

/* ---------- Charakterbogen ---------- */
.bogen { padding-top: 3rem; }
.bogen-papier { position: relative; max-width: 1080px; margin: 0 auto; color: var(--tinte); padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse at 15% 10%, rgba(139,90,40,.18), transparent 40%),
    radial-gradient(ellipse at 85% 90%, rgba(139,90,40,.22), transparent 40%),
    radial-gradient(ellipse at center, #f6e9c9 0%, #ead6a8 70%, #cfb27a 100%);
  border-radius: 6px; box-shadow: 0 40px 80px rgba(0,0,0,.7), inset 0 0 120px rgba(120,70,20,.35);
  clip-path: polygon(0 1%, 3% 0, 20% .6%, 45% 0, 70% .7%, 97% 0, 100% 1.2%, 99.5% 30%, 100% 60%, 99.4% 98%, 96% 100%, 70% 99.3%, 40% 100%, 15% 99.4%, 2% 100%, 0 98%, .6% 60%, 0 30%);
  opacity: 0; transform: translateY(40px); transition: opacity .9s, transform .9s; }
.bogen-papier.sichtbar { opacity: 1; transform: none; }
.bogen-papier::before { content: ''; position: absolute; inset: 14px; border: 2px solid rgba(90,55,20,.35); outline: 1px solid rgba(90,55,20,.25); outline-offset: 5px; pointer-events: none; }
.bogen .kapitel { color: #5a0f0f; text-shadow: none; margin-bottom: .2rem; }
.bogen .kapitel small { color: #8a5a24; }
.untertitel { text-align: center; font-style: italic; font-size: 1.3rem; margin: 0 0 2rem; color: #6b4a2e; }
.bogen-artificer .untertitel::before, .bogen-artificer .untertitel::after { content: ' ⚙ '; color: #1f8f88; }
.bogen-huene .untertitel::before, .bogen-huene .untertitel::after { content: ' ✦ '; color: #b3480c; }

.kopfleiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 2px solid #5a3d1c; border-radius: 4px; background: rgba(255,250,235,.45); margin-bottom: 2rem; }
.kopfleiste div { padding: .6rem 1rem; border-right: 1px solid rgba(90,61,28,.4); }
.kopfleiste div:last-child { border-right: 0; }
.kopfleiste small { display: block; font-family: var(--schrift-kopf); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: #8a5a24; }
.kopfleiste b { font-family: var(--schrift-kopf); font-size: 1.05rem; overflow-wrap: anywhere; }

.werte { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.wert { font: inherit; color: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s; position: relative; text-align: center; padding: .7rem .3rem .9rem; border: 2px solid #5a3d1c; border-radius: 14px 14px 40% 40% / 14px 14px 22% 22%; background: rgba(255,250,235,.55); }
.wert small { font-family: var(--schrift-kopf); font-weight: 700; letter-spacing: .15em; font-size: .75rem; color: #6b4a2e; }
.wert .mod { display: block; font-family: var(--schrift-kopf); font-weight: 900; font-size: 2rem; line-height: 1.1; }
.wert .zahl { display: inline-block; margin-top: .3rem; min-width: 2.4em; border: 1.5px solid #5a3d1c; border-radius: 99px; font-family: var(--schrift-kopf); font-size: .9rem; background: #f6e9c9; }
.wert.top { border-color: #8b1a1a; box-shadow: 0 0 0 3px rgba(139,26,26,.2), 0 6px 18px rgba(139,26,26,.25); }
.bogen-artificer .wert.top { border-color: #1f8f88; box-shadow: 0 0 0 3px rgba(31,143,136,.2), 0 6px 18px rgba(31,143,136,.3); }
.wert.top .mod { color: #8b1a1a; } .bogen-artificer .wert.top .mod { color: #136b65; }
.fussnote { font-size: .95rem; font-style: italic; color: #6b4a2e; text-align: center; margin: .9rem 0 2.2rem; }

.spalten { columns: 2 340px; column-gap: 2.6rem; column-rule: 1px solid rgba(90,61,28,.3); }
.abschnitt { break-inside: avoid; margin-bottom: 1.6rem; }
.abschnitt h3 { font-family: var(--schrift-kopf); font-size: 1.35rem; margin: 0 0 .4rem; color: #3a210c; border-bottom: 1px solid rgba(90,61,28,.4); padding-bottom: .2rem; }
.ini { font-family: var(--schrift-titel); font-size: 1.9rem; color: #8b1a1a; margin-right: 1px; }
.bogen-artificer .ini { color: #136b65; }
.abschnitt p { margin: 0 0 .7rem; }
.gadgets { list-style: none; padding: 0; margin: 0; }
.gadgets li { padding: .35rem 0 .35rem 1.6rem; position: relative; border-bottom: 1px dashed rgba(90,61,28,.3); }
.gadgets li::before { content: '⚙'; position: absolute; left: 0; color: #1f8f88; }

.zwischen { font-family: var(--schrift-titel); text-align: center; font-size: 1.6rem; color: #5a0f0f; margin: 2.5rem 0 1.5rem; }
.zwischen::before, .zwischen::after { content: '❧'; margin: 0 .7rem; color: #8a5a24; font-family: serif; }
.zwischen::before { display: inline-block; transform: scaleX(-1); }
.faehigkeiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.faehigkeit { position: relative; padding: 2.2rem 1.1rem 1.1rem; border-radius: 10px; color: var(--pergament); font-size: 1rem; line-height: 1.5;
  box-shadow: 0 12px 24px rgba(0,0,0,.35), inset 0 0 0 1px rgba(212,166,74,.55), inset 0 0 0 5px rgba(0,0,0,.3), inset 0 0 0 6px rgba(212,166,74,.35);
  transition: transform .3s; }
.faehigkeit:hover { transform: translateY(-6px) rotate(-.4deg); }
.bogen-artificer .faehigkeit { background: linear-gradient(160deg, #173c3d, #0b1d1e); }
.bogen-huene .faehigkeit { background: linear-gradient(160deg, #4a1d0e, #1f0b06); }
.f-icon svg { width: 26px; height: 26px; color: #3a210c; }
.f-icon { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; font-family: var(--schrift-rune);
  background: radial-gradient(circle at 35% 30%, #f7e3a1, #9c6b1e); box-shadow: 0 4px 10px rgba(0,0,0,.5); color: #3a210c; }
.faehigkeit h4 { font-family: var(--schrift-kopf); font-size: 1.15rem; text-align: center; margin: 0; color: var(--gold-hell); }
.f-regel { text-align: center; font-family: var(--schrift-kopf); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; margin: .2rem 0 .7rem; }
.bogen-artificer .f-regel { color: var(--tuerkis); } .bogen-huene .f-regel { color: #ffb35c; }
.faehigkeit p:last-child { margin: 0; }

.zwei-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; margin-top: 2.6rem; }
.status-panel { background: #071214; color: #bff5f0; border-radius: 10px; padding: 1.2rem 1.3rem; font-family: ui-monospace, 'Courier New', monospace; font-size: .9rem; border: 1px solid #1f8f88; box-shadow: 0 0 30px rgba(47,211,200,.18), inset 0 0 30px rgba(47,211,200,.08); position: relative; overflow: hidden; }
.status-panel::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px); pointer-events: none; }
.status-kopf { display: flex; align-items: center; gap: .6rem; color: var(--tuerkis); letter-spacing: .12em; font-size: .78rem; margin-bottom: .8rem; }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--tuerkis); box-shadow: 0 0 10px var(--tuerkis); animation: blinzeln 1.6s infinite; }
.status-panel ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.status-panel li { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem 0; border-bottom: 1px dotted rgba(47,211,200,.25); }
.status-panel b { font-weight: 600; text-align: right; }
.ok { color: #6ff7b0; } .warn { color: #ffcf5c; } .krit { color: #ff5c5c; animation: blinzeln 1s infinite; }
.alarm { background: rgba(255,60,60,.08); }
.balken { height: 8px; border-radius: 99px; background: rgba(47,211,200,.15); overflow: hidden; }
.balken span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #1f8f88, #7ff7ee); box-shadow: 0 0 10px #2fd3c8; }
.status-panel small { display: block; margin-top: .4rem; opacity: .7; }

.tafel { background: #1d2420; color: #f2efe6; border-radius: 6px; padding: 1.3rem 1.5rem; border: 12px solid #5a3a20; box-shadow: 0 14px 30px rgba(0,0,0,.4), inset 0 0 40px rgba(0,0,0,.6);
  background-image: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.06), transparent 50%); font-family: var(--schrift-text); }
.tafel-kopf { font-family: var(--schrift-titel); text-align: center; font-size: 1.4rem; margin-bottom: .6rem; color: #fff8e0; text-decoration: underline wavy rgba(255,255,255,.35); text-underline-offset: 6px; }
.tafel ul { list-style: none; padding: 0; margin: 0 0 .8rem; }
.tafel li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
.tafel b { color: #ffd38a; font-weight: normal; white-space: nowrap; }
.tafel .durch { color: #ff8a8a; text-decoration: line-through; }
.tafel small { display: block; font-style: italic; opacity: .75; font-size: .9rem; }

.angst { border-radius: 8px; padding: 1.3rem 1.5rem; position: relative; background: rgba(90,15,15,.08); border: 2px solid rgba(139,26,26,.5); }
.angst h3 { font-family: var(--schrift-kopf); margin: 0 0 .5rem; color: #8b1a1a; font-size: 1.3rem; }
.angst h3::before { content: '☠ '; }
.angst p { margin: 0 0 .6rem; }
.spielgefuehl { margin: 2.6rem auto 0; max-width: 760px; text-align: center; font-size: 1.45rem; font-style: italic; color: #3a210c; position: relative; padding: 1rem 2rem; }
.spielgefuehl { border-top: 1px solid rgba(90,61,28,.35); border-bottom: 1px solid rgba(90,61,28,.35); }
.spielgefuehl small { display: block; font-family: var(--schrift-kopf); font-style: normal; letter-spacing: .35em; text-transform: uppercase; font-size: .75rem; color: #8a5a24; margin-bottom: .4rem; }

/* ---------- Vergleich ---------- */
.vergleich-inhalt { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; align-items: center; }
.radar-rahmen { background: rgba(0,0,0,.35); border: 1px solid rgba(212,166,74,.4); border-radius: 50%; padding: 1rem; aspect-ratio: 1; position: relative; box-shadow: 0 0 60px rgba(0,0,0,.6), inset 0 0 60px rgba(212,166,74,.07); }
#radar { width: 100%; height: 100%; overflow: visible; }
#radar .achse-text { font-family: var(--schrift-kopf); font-size: 12px; fill: var(--gold-hell); letter-spacing: .05em; }
#radar .flaeche { transition: opacity .3s; }
.legende { position: absolute; bottom: -1.8rem; left: 0; right: 0; display: flex; justify-content: center; gap: 1.5rem; font-family: var(--schrift-kopf); font-size: .85rem; }
.legende span { cursor: default; }
.legende span::before { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: .4rem; vertical-align: -2px; }
.l-art::before { background: var(--tuerkis); } .l-hue::before { background: var(--glut); }
.wer-passt h3 { font-family: var(--schrift-kopf); color: var(--gold-hell); font-size: 1.4rem; margin-top: 0; }
.wer-passt table { width: 100%; border-collapse: collapse; }
.wer-passt td { padding: .6rem .5rem; border-bottom: 1px solid rgba(212,166,74,.2); }
.wer-passt td:last-child { text-align: right; font-family: var(--schrift-kopf); font-weight: 700; white-space: nowrap; }
.wer-passt .art { color: var(--tuerkis); } .wer-passt .hue { color: #ff9a3c; } .wer-passt .beide { color: var(--gold); }

/* ---------- Entscheidung ---------- */
.entscheidung { text-align: center; padding-bottom: 7rem; }
.aufruf { max-width: 620px; margin: -1rem auto 3rem; font-size: 1.25rem; font-style: italic; color: #e6d3ad; }
.siegel-wahl { display: flex; justify-content: center; align-items: center; gap: clamp(1.2rem, 5vw, 4rem); flex-wrap: wrap; }
.wachssiegel { background: none; border: 0; cursor: pointer; color: var(--pergament); font: inherit; display: flex; flex-direction: column; align-items: center; gap: 1rem; transition: transform .3s; }
.wachssiegel:hover { transform: translateY(-6px) scale(1.04); }
.wachs { width: 150px; height: 150px; display: grid; place-items: center; position: relative;
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  box-shadow: inset -10px -12px 20px rgba(0,0,0,.45), inset 8px 8px 16px rgba(255,255,255,.18), 0 12px 24px rgba(0,0,0,.6); }
.wachs::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; box-shadow: inset 3px 3px 8px rgba(0,0,0,.5), inset -2px -2px 6px rgba(255,255,255,.15); }
.wachs svg { width: 70%; height: 70%; position: relative; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.4)); }
.siegel-art .wachs { background: radial-gradient(circle at 35% 30%, #2aa9a0, #0d5a55 70%, #073a37); }
.siegel-art:hover .wachs { box-shadow: inset -10px -12px 20px rgba(0,0,0,.45), inset 8px 8px 16px rgba(255,255,255,.18), 0 0 40px rgba(47,211,200,.6); }
.siegel-hue .wachs { background: radial-gradient(circle at 35% 30%, #c4321e, #7a120c 70%, #4a0806); }
.siegel-hue:hover .wachs { box-shadow: inset -10px -12px 20px rgba(0,0,0,.45), inset 8px 8px 16px rgba(255,255,255,.18), 0 0 40px rgba(255,122,26,.6); }
.siegel-text { font-family: var(--schrift-kopf); font-size: .95rem; letter-spacing: .08em; }
.siegel-text b { font-family: var(--schrift-titel); font-size: 1.5rem; color: var(--gold-hell); }
.wuerfel-bereich { display: flex; flex-direction: column; align-items: center; }
.wuerfel { width: 130px; height: 130px; background: none; border: 0; cursor: pointer; padding: 0; filter: drop-shadow(0 10px 20px rgba(0,0,0,.7)) drop-shadow(0 0 18px rgba(212,166,74,.35)); transition: transform .3s; }
.wuerfel:hover { transform: rotate(-8deg) scale(1.06); }
.wuerfel.rollt { animation: rollen 1.6s cubic-bezier(.2,.7,.3,1); }
.wuerfel.nat20 { filter: drop-shadow(0 0 30px #ffd56b) drop-shadow(0 0 60px #ffd56b); }
.wuerfel.nat1 { filter: drop-shadow(0 0 30px #ff3b3b); }
.wuerfel-hinweis { font-family: var(--schrift-kopf); margin: .6rem 0 0; font-size: .95rem; }
.wuerfel-hinweis small { color: var(--gold); font-size: .75rem; letter-spacing: .05em; }
.wuerfel-ergebnis { min-height: 2em; font-family: var(--schrift-kopf); font-size: 1.2rem; color: var(--gold-hell); margin-top: 2rem; }

/* ---------- Urteil-Overlay ---------- */
.urteil { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5,3,2,.82); backdrop-filter: blur(4px); padding: 1rem; animation: einblenden .4s; }
.urteil[hidden] { display: none; }
.urteil-karte { width: min(560px, 100%); max-height: 94vh; overflow-y: auto; text-align: center; color: var(--tinte); padding: 2.5rem 2rem 2rem; border-radius: 6px;
  background: radial-gradient(ellipse at center, #f6e9c9, #e3cc98 80%, #c9a96e); box-shadow: 0 30px 80px rgba(0,0,0,.8), inset 0 0 60px rgba(120,70,20,.35); animation: aufrollen .6s cubic-bezier(.2,.8,.3,1.2); }
.urteil-siegel { width: 120px; height: 120px; margin: -0.5rem auto .8rem; animation: stempel .55s .25s cubic-bezier(.3,1.6,.5,1) both; }
.urteil-siegel .wachs { width: 120px; height: 120px; }
.urteil-klein { font-family: var(--schrift-kopf); letter-spacing: .3em; text-transform: uppercase; font-size: .75rem; color: #8a5a24; margin: 0; }
.urteil-karte h2 { font-family: var(--schrift-titel); color: #5a0f0f; font-size: 1.9rem; margin: .3rem 0 .6rem; line-height: 1.15; }
.urteil-karte p { margin: 0 0 1rem; }
.notiz { display: block; text-align: left; font-family: var(--schrift-kopf); font-size: .8rem; letter-spacing: .05em; color: #6b4a2e; margin: 1.2rem 0; }
.notiz textarea { display: block; width: 100%; margin-top: .4rem; font: 1rem var(--schrift-text); padding: .6rem .8rem; border: 1.5px solid #8a5a24; border-radius: 4px; background: rgba(255,250,235,.7); color: var(--tinte); resize: vertical; }
.urteil-knoepfe { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.knopf-gold { font-family: var(--schrift-kopf); font-weight: 700; letter-spacing: .08em; font-size: 1rem; padding: .8rem 1.6rem; border-radius: 4px; border: 1px solid #5a3a10; cursor: pointer; color: #2b1d12;
  background: linear-gradient(180deg, #f7e3a1, #c9973b 60%, #9c6b1e); box-shadow: 0 4px 0 #5a3a10, 0 8px 16px rgba(0,0,0,.3); }
.knopf-gold:active { transform: translateY(3px); box-shadow: 0 1px 0 #5a3a10; }
.knopf-gold:disabled { opacity: .6; cursor: default; }
.knopf-leise { font-family: var(--schrift-kopf); background: none; border: 1px solid #8a5a24; color: #6b4a2e; padding: .8rem 1.2rem; border-radius: 4px; cursor: pointer; }
.urteil-status { font-family: var(--schrift-kopf); color: #5a0f0f; min-height: 1.5em; margin-top: 1rem !important; }

.fuss { text-align: center; padding: 2rem 1rem 3rem; font-size: .9rem; color: #8a7556; }

/* ---------- Keyframes ---------- */
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes schweben { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes wippen { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes blinzeln { 0%,92%,100% { opacity: 1; } 95% { opacity: .2; } }
@keyframes atmen { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }
@keyframes strom { to { stroke-dashoffset: -20; } }
@keyframes pulsieren { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes flackern { from { transform: scale(1,1) skewX(0); } to { transform: scale(.94,1.08) skewX(3deg); } }
@keyframes dampf { 0% { transform: translateY(6px); opacity: 0; } 40% { opacity: .55; } 100% { transform: translateY(-14px); opacity: 0; } }
@keyframes rollen { 0% { transform: rotate(0) translateY(0) scale(1); } 30% { transform: rotate(540deg) translateY(-60px) scale(1.15); } 60% { transform: rotate(900deg) translateY(0) scale(.95); } 80% { transform: rotate(1060deg) translateY(-12px); } 100% { transform: rotate(1080deg) translateY(0) scale(1); } }
@keyframes einblenden { from { opacity: 0; } }
@keyframes aufrollen { from { transform: scaleY(.1) translateY(40px); opacity: 0; } }
@keyframes stempel { from { transform: scale(2.4) rotate(-25deg); opacity: 0; } to { transform: scale(1) rotate(-6deg); opacity: 1; } }

@media (max-width: 760px) {
  body { font-size: 1.05rem; }
  section { padding: 3.5rem .8rem; }
  .oder { width: 100%; justify-content: center; }
  .werte { grid-template-columns: repeat(3, 1fr); }
  .spalten { columns: 1; }
  .karte-kopf { padding: 0 2.4rem; font-size: .58rem; letter-spacing: .08em; }
  .siegel-wahl { flex-direction: column; }
  .wuerfel-bereich { order: 3; margin-top: 1rem; }
  .bogen-papier { clip-path: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   Version 2: verschachtelte Ansichten
   ===================================================================== */
button { font-family: inherit; }
.ico { width: 1.4em; height: 1.4em; vertical-align: -.3em; }
.ico.klein { width: 1.1em; height: 1.1em; }

/* ---------- Kopfleiste ---------- */
.leiste { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; padding: .55rem 1.2rem;
  background: linear-gradient(180deg, rgba(15,10,7,.96), rgba(15,10,7,.82)); border-bottom: 1px solid rgba(212,166,74,.35); backdrop-filter: blur(6px); }
.marke svg { width: 38px; height: 38px; display: block; filter: drop-shadow(0 0 8px rgba(255,140,40,.4)); transition: transform .4s; }
.marke:hover svg { transform: rotate(60deg); }
.krumen { list-style: none; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .3rem; margin: 0; padding: 0; font-family: var(--schrift-kopf); font-size: .85rem; letter-spacing: .06em; flex: 1; min-width: 0; }
.krumen li { white-space: nowrap; color: var(--gold-hell); }
.krumen li + li::before { content: '›'; margin-right: .35rem; color: var(--gold); }
.krumen a { color: var(--gold); text-decoration: none; } .krumen a:hover { color: var(--gold-hell); text-decoration: underline; }
.fortschritt { display: flex; align-items: center; gap: .45rem; background: none; border: 1px solid rgba(212,166,74,.4); border-radius: 99px; padding: .2rem .7rem .2rem .25rem; color: var(--gold-hell); font-family: var(--schrift-kopf); font-size: .8rem; cursor: pointer; }
.fortschritt svg { width: 28px; height: 28px; transform: rotate(-90deg); }
.ring-hg { fill: none; stroke: rgba(212,166,74,.2); stroke-width: 4; }
.ring { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .8s; filter: drop-shadow(0 0 3px #d4a64a); }
.fortschritt.puls { animation: puls .7s; }
@keyframes puls { 50% { transform: scale(1.18); box-shadow: 0 0 20px rgba(212,166,74,.6); } }

main#buehne { min-height: 100vh; outline: none; }
main#buehne.rein { animation: rein .55s cubic-bezier(.2,.7,.3,1); }
@keyframes rein { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
.ansicht { padding-top: 6.5rem; }

/* ---------- Taverne ---------- */
.prolog-text.klein { font-size: 1rem; font-style: italic; color: #bfa983; }
.prolog.erstmals h1 { animation: aufleuchten 2.2s ease-out; }
@keyframes aufleuchten { from { opacity: 0; letter-spacing: .3em; filter: blur(8px); } }
.tisch { padding-top: 2rem; }
.karte-fuss { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.1rem; }
.karte-fuss .karte-cta { margin: 0; }
.mini-fortschritt { width: 60px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.mini-fortschritt i { display: block; height: 100%; background: var(--gold); }
.kapitel.klein { font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 4.5rem 0 1.8rem; }
.wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; max-width: 1100px; margin: 0 auto; }
.weg { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem 1.4rem 1.2rem; text-decoration: none; border-radius: 10px;
  background: linear-gradient(160deg, rgba(60,38,20,.85), rgba(25,15,9,.9)); border: 1px solid rgba(212,166,74,.4); box-shadow: 0 14px 30px rgba(0,0,0,.5); transition: transform .3s, border-color .3s, box-shadow .3s; }
.weg:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 20px 40px rgba(0,0,0,.6), 0 0 30px rgba(212,166,74,.2); }
.weg .ico { width: 34px; height: 34px; color: var(--gold); }
.weg b { font-family: var(--schrift-kopf); font-size: 1.25rem; color: var(--gold-hell); }
.weg span { color: #d8c6a2; font-size: 1rem; }
.weg em { font-family: var(--schrift-kopf); font-style: normal; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; }
.weg-urteil { background: linear-gradient(160deg, rgba(110,20,16,.85), rgba(40,8,6,.92)); }

/* ---------- Dossier ---------- */
.dossier { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 2.2rem; max-width: 1340px; margin: 0 auto; padding: 5.5rem 1.25rem 4rem; align-items: start; }
.portrait { position: sticky; top: 4.8rem; text-align: center; }
.portrait-rahmen { position: relative; padding: 10px; border-radius: 16px; background: linear-gradient(145deg, #f7e3a1, #9c6b1e 30%, #f0d080 55%, #7a4f14 80%, #e8c27a); box-shadow: 0 25px 50px rgba(0,0,0,.6); }
.portrait-bild { position: relative; border-radius: 9px; overflow: hidden; aspect-ratio: 1; }
.dossier-art .portrait-bild { background: radial-gradient(circle at 50% 40%, #1f4c4c, #0a1617); }
.dossier-hue .portrait-bild { background: radial-gradient(circle at 50% 60%, #5c210d, #160805); }
.spots { position: absolute; inset: 0; }
.spot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid #fff6c8; background: rgba(255,214,107,.35); cursor: pointer; padding: 0;
  box-shadow: 0 0 0 0 rgba(255,214,107,.7); animation: spot 2s infinite; }
.spot::after { content: '+'; color: #fff6c8; font: 700 16px/22px var(--schrift-kopf); }
.spot.gesehen { animation: none; background: rgba(0,0,0,.35); border-color: rgba(255,246,200,.5); }
.spot.gesehen::after { content: '✓'; font-size: 12px; }
@keyframes spot { 70% { box-shadow: 0 0 0 14px rgba(255,214,107,0); } 100% { box-shadow: 0 0 0 0 rgba(255,214,107,0); } }
.spot-hinweis { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; padding: .3rem; font-size: .8rem; font-style: italic; color: #f7e3a1; background: linear-gradient(transparent, rgba(0,0,0,.75)); border-radius: 0 0 9px 9px; pointer-events: none; }
.dossier-name { font-family: var(--schrift-titel); font-size: 1.7rem; line-height: 1.15; color: var(--gold-hell); margin: 1.2rem 0 .2rem; text-shadow: 0 2px 0 #000; }
.dossier-titel { margin: 0 0 1rem; font-style: italic; color: var(--gold); }
.portrait .werte { grid-template-columns: repeat(6, 1fr); gap: .35rem; }
.portrait .wert { padding: .45rem .1rem .55rem; border-color: rgba(212,166,74,.6); background: rgba(30,20,12,.7); color: var(--pergament); border-radius: 10px 10px 40% 40% / 10px 10px 22% 22%; }
.portrait .wert small { color: var(--gold); font-size: .62rem; }
.portrait .wert .mod { font-size: 1.25rem; }
.portrait .wert .zahl { font-size: .7rem; background: rgba(0,0,0,.4); border-color: rgba(212,166,74,.5); }
.portrait .wert:hover { transform: translateY(-4px); box-shadow: 0 0 18px rgba(212,166,74,.5); }
.dossier-art .wert.top { border-color: var(--tuerkis); box-shadow: 0 0 14px rgba(47,211,200,.4); } .dossier-art .wert.top .mod { color: #7ff7ee; }
.dossier-hue .wert.top { border-color: var(--glut); box-shadow: 0 0 14px rgba(255,122,26,.4); } .dossier-hue .wert.top .mod { color: #ffb35c; }
.werte-hinweis { font-size: .8rem; font-style: italic; color: #a8946f; margin: .5rem 0 1rem; }
.kennzahlen { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.kennzahlen div { background: rgba(0,0,0,.35); border: 1px solid rgba(212,166,74,.3); border-radius: 8px; padding: .5rem; display: flex; flex-direction: column; }
.kennzahlen b { font-family: var(--schrift-kopf); font-size: 1.4rem; color: var(--gold-hell); line-height: 1.1; }
.kennzahlen small { font-family: var(--schrift-kopf); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.kennzahlen i { font-size: .78rem; color: #a8946f; }
.anderer { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1.2rem; font-family: var(--schrift-kopf); font-size: .85rem; color: var(--gold); text-decoration: none; }
.anderer:hover { color: var(--gold-hell); }
.anderer .ico { transform: scaleX(-1); }

/* Reiter wie Lesezeichen */
.reiter { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: thin; padding: 0 .5rem; position: relative; z-index: 2; }
.reiter a { position: relative; flex: 0 0 auto; text-decoration: none; font-family: var(--schrift-kopf); font-size: .82rem; font-weight: 700; letter-spacing: .05em; padding: .7rem .95rem .9rem; border-radius: 8px 8px 0 0;
  color: #f1e3c4; background: linear-gradient(180deg, #5a3a20, #3a2414); border: 1px solid rgba(212,166,74,.35); border-bottom: 0; transform: translateY(6px); transition: transform .2s, background .2s; }
.reiter a:hover { transform: translateY(2px); }
.reiter a.aktiv { transform: none; color: #3a210c; background: linear-gradient(180deg, #f6e9c9, #ead6a8); }
.dossier-art .reiter a:not(.aktiv) { background: linear-gradient(180deg, #1a4f4b, #0d2d2b); }
.dossier-hue .reiter a:not(.aktiv) { background: linear-gradient(180deg, #6b2510, #3a1408); }
.reiter a:last-child:not(.aktiv) { background: linear-gradient(180deg, #8b1a1a, #4a0a0a); }
.besucht-punkt { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.reiter a:not(.besucht) .besucht-punkt { background: #ffd56b; box-shadow: 0 0 6px #ffd56b; }

.seite { position: relative; color: var(--tinte); padding: clamp(1.5rem, 4vw, 3rem); min-height: 60vh; border-radius: 0 6px 6px 6px;
  background: radial-gradient(ellipse at 15% 10%, rgba(139,90,40,.18), transparent 40%), radial-gradient(ellipse at 85% 90%, rgba(139,90,40,.22), transparent 40%), radial-gradient(ellipse at center, #f6e9c9 0%, #ead6a8 70%, #cfb27a 100%);
  box-shadow: 0 30px 70px rgba(0,0,0,.7), inset 0 0 100px rgba(120,70,20,.3); transform-origin: left center; }
.seite::before { content: ''; position: absolute; inset: 12px; border: 2px solid rgba(90,55,20,.3); pointer-events: none; border-radius: 3px; }
.seite.blaettern { animation: blaettern .5s cubic-bezier(.2,.7,.3,1); }
@keyframes blaettern { from { opacity: 0; transform: perspective(1400px) rotateY(-14deg) translateX(-10px); } }
.seiten-titel { font-family: var(--schrift-titel); color: #5a0f0f; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 1.2rem; }
.einleitung { font-size: 1.15rem; font-style: italic; color: #4a3220; margin: 0 0 1.6rem; }
.zwischen { margin: 2.2rem 0 1.2rem; }

/* Stufen-Regler */
.stufen-regler { display: flex; align-items: center; gap: 1rem; font-family: var(--schrift-kopf); margin-bottom: 1rem; }
.stufen-regler b { font-size: 1.6rem; color: #8b1a1a; display: inline-block; min-width: 1.4em; }
input[type=range] { flex: 1; accent-color: #8b1a1a; height: 6px; }
.stufen-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.stufen-liste li { display: flex; gap: .9rem; align-items: flex-start; padding: .55rem .8rem; border-radius: 8px; border: 1px dashed rgba(90,61,28,.35); opacity: .38; filter: grayscale(1); transition: opacity .4s, filter .4s, background .4s; }
.stufen-liste li.offen { opacity: 1; filter: none; background: rgba(255,250,235,.55); border-style: solid; }
.stufen-liste .st { flex: 0 0 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: #5a3d1c; color: #f6e9c9; font-family: var(--schrift-kopf); font-weight: 700; }
.stufen-liste li.offen .st { background: #8b1a1a; }
.stufen-liste b { font-family: var(--schrift-kopf); }
.stufen-liste p { margin: .1rem 0 0; font-size: .98rem; }
.weiter-leiste { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.weiter-leiste a, .knopf-link { font-family: var(--schrift-kopf); font-size: .85rem; color: #5a0f0f; text-decoration: none; border: 1px solid rgba(139,26,26,.5); border-radius: 99px; padding: .4rem 1rem; transition: background .2s; }
.weiter-leiste a:hover, .knopf-link:hover { background: rgba(139,26,26,.1); }

/* Lager */
.lager-szene { position: relative; height: 170px; border-radius: 10px; overflow: hidden; margin-bottom: 1.4rem; background: linear-gradient(180deg, #0b1020, #1d1530 60%, #2b1a10); box-shadow: inset 0 0 40px rgba(0,0,0,.7); }
.lager-szene p { position: absolute; left: 1rem; bottom: .4rem; margin: 0; color: #e6d3ad; font-style: italic; font-size: .9rem; }
.lager-himmel i { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; animation: blinzeln 3s infinite; }
.lager-himmel i:nth-child(n) { left: calc(var(--x, 0) * 1%); }
.lager-feuer { position: absolute; left: 50%; bottom: 18px; width: 60px; height: 70px; transform: translateX(-50%); }
.lager-feuer::before { content: ''; position: absolute; left: 50%; bottom: -10px; width: 240px; height: 80px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(255,140,40,.45), transparent 70%); }
.lager-feuer span { position: absolute; bottom: 0; left: 50%; width: 34px; height: 60px; margin-left: -17px; border-radius: 50% 50% 20% 20% / 70% 70% 30% 30%; background: radial-gradient(ellipse at 50% 80%, #ffe08a, #ff7a1a 50%, transparent 72%); animation: flackern .4s ease-in-out infinite alternate; transform-origin: bottom; }
.lager-feuer span:nth-child(2) { width: 24px; height: 44px; margin-left: -22px; animation-duration: .3s; }
.lager-feuer span:nth-child(3) { width: 22px; height: 40px; margin-left: 0; animation-duration: .5s; }
.akkordeon details, .hook { border: 1px solid rgba(90,61,28,.4); border-radius: 8px; margin-bottom: .7rem; background: rgba(255,250,235,.45); overflow: hidden; }
.akkordeon summary, .hook summary { cursor: pointer; list-style: none; padding: .8rem 1rem; font-family: var(--schrift-kopf); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: .7rem; }
.akkordeon summary::-webkit-details-marker, .hook summary::-webkit-details-marker { display: none; }
.akkordeon summary::after, .hook summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; color: #8b1a1a; transition: transform .3s; }
.akkordeon details[open] summary::after, .hook[open] summary::after { transform: rotate(45deg); }
.akkordeon details p, .hook p { margin: 0; padding: 0 1rem 1rem; animation: rein .4s; }
.lager-art summary { color: #136b65; }

/* Flip-Karten */
.flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.flip { background: none; border: 0; padding: 0; height: 230px; perspective: 900px; cursor: pointer; text-align: center; }
.flip-innen { position: relative; display: block; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.3,1.3,.5,1); transform-style: preserve-3d; }
.flip.gedreht .flip-innen { transform: rotateY(180deg); }
.flip-vorne, .flip-hinten { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .4rem;
  box-shadow: 0 10px 20px rgba(0,0,0,.35), inset 0 0 0 1px rgba(212,166,74,.6), inset 0 0 0 5px rgba(0,0,0,.25), inset 0 0 0 6px rgba(212,166,74,.35); }
.flip-vorne { background: repeating-linear-gradient(45deg, #4a2e18 0 10px, #3e2614 10px 20px); color: var(--gold-hell); }
.flip-vorne small, .flip-hinten small { font-family: var(--schrift-kopf); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.flip-vorne b { font-family: var(--schrift-titel); font-size: 1.35rem; }
.flip-vorne i { font-size: .8rem; color: #bfa983; }
.flip-hinten { transform: rotateY(180deg); color: var(--pergament); font-size: .92rem; line-height: 1.4; }
.dossier-art .flip-hinten { background: linear-gradient(160deg, #173c3d, #0b1d1e); }
.dossier-hue .flip-hinten { background: linear-gradient(160deg, #4a1d0e, #1f0b06); }
.flip-hinten b { font-family: var(--schrift-kopf); font-size: 1.1rem; color: var(--gold-hell); }

/* Fähigkeiten */
.dossier-art .faehigkeit { background: linear-gradient(160deg, #173c3d, #0b1d1e); }
.dossier-hue .faehigkeit { background: linear-gradient(160deg, #4a1d0e, #1f0b06); }
.dossier-art .f-regel { color: var(--tuerkis); } .dossier-hue .f-regel { color: #ffb35c; }
.faehigkeiten { margin-top: 2rem; row-gap: 2.2rem; }
.faehigkeit { display: flex; flex-direction: column; }
.f-knoepfe { margin-top: auto; padding-top: .9rem; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.f-knoepfe .knopf-link { color: var(--gold-hell); border-color: rgba(212,166,74,.5); }
.knopf-wurf { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--schrift-kopf); font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: #2b1d12; cursor: pointer;
  padding: .5rem 1rem; border-radius: 99px; border: 1px solid #5a3a10; background: linear-gradient(180deg, #f7e3a1, #c9973b 60%, #9c6b1e); box-shadow: 0 3px 0 #5a3a10; transition: transform .1s; }
.knopf-wurf:active { transform: translateY(2px); box-shadow: 0 1px 0 #5a3a10; }
.knopf-wurf.gross { font-size: 1rem; padding: .7rem 1.3rem; }

/* Werkstatt */
.werkstatt, .kueche { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; }
.ws-titel { font-family: var(--schrift-kopf); font-size: 1.1rem; margin: 0 0 .7rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.ws-titel small { font-size: .75rem; color: #136b65; letter-spacing: .08em; }
.infusionen { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.2rem; }
.infusion { text-align: left; cursor: pointer; padding: .6rem .7rem; border-radius: 8px; border: 1.5px solid rgba(90,61,28,.4); background: rgba(255,250,235,.5); color: var(--tinte); transition: all .25s; }
.infusion b { display: block; font-family: var(--schrift-kopf); font-size: .88rem; }
.infusion span { font-size: .85rem; line-height: 1.3; display: block; }
.infusion.an { background: linear-gradient(160deg, #173c3d, #0b1d1e); color: #bff5f0; border-color: var(--tuerkis); box-shadow: 0 0 16px rgba(47,211,200,.4); }
.infusion.an b { color: #7ff7ee; }
.wackeln { animation: wackeln .4s; }
@keyframes wackeln { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.status-panel .knopf-wurf { position: relative; z-index: 1; }
.defender-bank { background: radial-gradient(ellipse at 50% 70%, #1f4c4c, #0a1617); border-radius: 10px; padding: .5rem; box-shadow: inset 0 0 30px rgba(0,0,0,.7); margin-bottom: 1rem; }
.defender-gross { width: 100%; display: block; }
.up { opacity: 0; transform: translateY(-14px); transition: opacity .5s, transform .5s cubic-bezier(.3,1.6,.5,1); }
.up.an { opacity: 1; transform: none; }
.upgrades { display: grid; gap: .45rem; }
.upgrade { display: flex; gap: .7rem; align-items: center; cursor: pointer; padding: .5rem .7rem; border-radius: 8px; border: 1px solid rgba(90,61,28,.35); background: rgba(255,250,235,.45); }
.upgrade input { width: 20px; height: 20px; accent-color: #1f8f88; flex: 0 0 auto; }
.upgrade b { font-family: var(--schrift-kopf); font-size: .9rem; display: block; }
.upgrade i { font-size: .85rem; }

/* Küche */
.beute { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.3rem; }
.beute button { cursor: pointer; font-family: var(--schrift-kopf); font-size: .85rem; padding: .45rem .85rem; border-radius: 99px; border: 1.5px solid rgba(90,61,28,.5); background: rgba(255,250,235,.5); color: var(--tinte); transition: all .2s; }
.beute button.an { background: linear-gradient(180deg, #8b2a10, #5a1408); color: #ffe0b0; border-color: #ff9a3c; box-shadow: 0 0 12px rgba(255,122,26,.4); }
.tafel { transition: filter .6s, transform .6s; }
.tafel.asche { filter: grayscale(1) brightness(.4) blur(2px); transform: scale(.97); }
.gericht { font-family: var(--schrift-titel); font-size: 1.5rem; text-align: center; margin: .2rem 0 0; color: #ffd38a; }
.gericht-notiz { text-align: center; font-style: italic; opacity: .8; margin: 0 0 1rem; }
.naehr { list-style: none; padding: 0; margin: 0 0 1rem; }
.naehr li { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: .7rem; padding: .3rem 0; border: 0; }
.nbar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.nbar i { display: block; height: 100%; background: linear-gradient(90deg, #ff9a3c, #ffd38a); border-radius: 99px; transition: width .6s cubic-bezier(.3,1.4,.5,1); }
.plan { font-size: .98rem; margin: 0 0 .8rem; }
.plan b { color: #ffd38a; }
.effekte { display: flex; flex-direction: column; gap: .3rem; font-size: .95rem; padding: .7rem; border: 1px dashed rgba(255,255,255,.25); border-radius: 6px; margin-bottom: 1rem; }
.effekte b { color: #9ff0a8; }
.k-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; }
.knopf-leise.hell { color: #f2efe6; border-color: rgba(255,255,255,.4); padding: .5rem 1rem; font-size: .85rem; }
.nein-gross { font-family: var(--schrift-titel); font-size: 2.6rem; text-align: center; margin: 1.5rem 0; color: #ff8a8a; }

/* Abgründe */
.angst-gross { font-size: 1.1rem; }
.albtraum { display: block; width: 100%; margin-top: 1.4rem; min-height: 120px; cursor: pointer; border: 0; border-radius: 10px; padding: 1.4rem; font: inherit; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at center, #2a0c1a, #0a0306); color: #e6c8d0; box-shadow: inset 0 0 40px #000, 0 10px 24px rgba(0,0,0,.4); }
.alb-vorne { font-family: var(--schrift-kopf); font-size: 1.15rem; letter-spacing: .1em; transition: opacity .4s; display: inline-flex; gap: .5rem; align-items: center; }
.alb-hinten { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.4rem 2rem; font-size: 1.2rem; font-style: italic; opacity: 0; transform: scale(1.1); filter: blur(6px); transition: all .8s; }
.albtraum.offen .alb-vorne { opacity: 0; }
.albtraum.offen .alb-hinten { opacity: 1; transform: none; filter: none; }
.albtraum.offen { animation: zittern .5s; }
@keyframes zittern { 20%, 60% { transform: translate(-3px, 1px); } 40%, 80% { transform: translate(3px, -1px); } }
.schwaechen { padding-left: 1.2rem; } .schwaechen li { margin-bottom: .4rem; }

/* Spielleitung */
.dm-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.dm-box { border: 2px solid rgba(139,26,26,.45); border-radius: 8px; padding: 1rem 1.2rem; background: rgba(255,250,235,.45); }
.dm-box h3 { font-family: var(--schrift-kopf); font-size: 1.1rem; color: #8b1a1a; margin: 0 0 .5rem; }
.dm-box ul { margin: 0; padding-left: 1.1rem; } .dm-box li { margin-bottom: .35rem; }
.hooks { margin-bottom: 1.6rem; }
.hook-nr { font-family: var(--schrift-titel); width: 2.2rem; height: 2.2rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #8b1a1a; color: #f6e9c9; font-size: .85rem; }
.sterne { font-size: 1.6rem; letter-spacing: .2em; color: rgba(90,61,28,.25); }
.sterne .an { color: #8b1a1a; }

/* ---------- Szenarien ---------- */
.szenarien { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; max-width: 1150px; margin: 0 auto; }
.szenario-karte { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.3rem; border-radius: 10px; text-decoration: none; color: var(--tinte);
  background: radial-gradient(ellipse at center, #f6e9c9, #e3cc98 80%, #c9a96e); box-shadow: 0 14px 28px rgba(0,0,0,.55); transition: transform .3s; animation: rein .5s calc(var(--i) * 60ms) both; }
.szenario-karte:hover { transform: translateY(-6px) rotate(-.6deg); }
.szenario-karte b { font-family: var(--schrift-kopf); font-size: 1.15rem; color: #5a0f0f; }
.szenario-karte span:not(.sz-icon) { font-size: .95rem; }
.szenario-karte em { margin-top: auto; font-family: var(--schrift-kopf); font-style: normal; font-size: .75rem; letter-spacing: .12em; color: #8a5a24; }
.szenario-karte.besucht::after { content: '✓ gespielt'; position: absolute; top: .8rem; right: .9rem; font-family: var(--schrift-kopf); font-size: .7rem; color: #1f6b3a; }
.sz-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f7e3a1, #9c6b1e); color: #3a210c; }
.sz-icon .ico { width: 24px; height: 24px; }
.sz-icon.gross { width: 64px; height: 64px; flex: 0 0 auto; } .sz-icon.gross .ico { width: 34px; height: 34px; }
.szenario-akte { max-width: 1100px; margin: 0 auto; padding: clamp(1.4rem, 4vw, 2.8rem); border-radius: 8px; color: var(--tinte);
  background: radial-gradient(ellipse at center, #f6e9c9 0%, #ead6a8 70%, #cfb27a 100%); box-shadow: 0 30px 70px rgba(0,0,0,.7), inset 0 0 100px rgba(120,70,20,.3); }
.sz-titel { display: flex; align-items: center; gap: 1rem; }
.sz-titel small { font-family: var(--schrift-kopf); letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; color: #8a5a24; }
.sz-titel h2 { font-family: var(--schrift-titel); color: #5a0f0f; margin: 0; font-size: clamp(1.4rem, 3.5vw, 2.1rem); line-height: 1.15; }
.sg-siegel { margin-left: auto; width: 74px; height: 74px; flex: 0 0 auto; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--schrift-kopf); font-size: .7rem; color: #f3c9a0;
  background: radial-gradient(circle at 35% 30%, #c4321e, #7a120c 70%); box-shadow: inset -5px -6px 10px rgba(0,0,0,.4), 0 6px 14px rgba(0,0,0,.4); transform: rotate(-8deg); }
.sg-siegel b { font-size: 1.6rem; line-height: 1; }
.sz-text { font-size: 1.2rem; font-style: italic; margin: 1.2rem 0 1.8rem; padding-left: 1rem; border-left: 3px solid #8b1a1a; }
.sz-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.sz-held { border-radius: 10px; padding: 1.1rem; color: var(--pergament); display: flex; flex-direction: column; gap: .8rem; transition: box-shadow .4s; }
.sz-art { background: linear-gradient(160deg, #173c3d, #0b1d1e); } .sz-hue { background: linear-gradient(160deg, #4a1d0e, #1f0b06); }
.sz-held.geworfen.sz-art { box-shadow: 0 0 24px rgba(47,211,200,.35); } .sz-held.geworfen.sz-hue { box-shadow: 0 0 24px rgba(255,122,26,.35); }
.sz-kopf { display: flex; gap: .8rem; align-items: center; }
.sz-mini { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); background: #000; }
.sz-mini svg { width: 100%; height: 100%; }
.sz-kopf b { font-family: var(--schrift-kopf); font-size: 1.15rem; color: var(--gold-hell); display: block; }
.sz-kopf small { font-size: .88rem; color: #cdb995; }
.sz-ergebnis { margin: 0; font-size: 1rem; min-height: 3em; }
.sz-ergebnis .ja { color: #8ff0a4; } .sz-ergebnis .nein { color: #ff9a8a; }
.sz-fazit { margin-top: 1.4rem; padding: 1rem 1.3rem; border-radius: 8px; border: 2px solid #8b1a1a; background: rgba(139,26,26,.08); font-size: 1.1rem; animation: rein .5s; }
.sz-fazit small { display: block; font-family: var(--schrift-kopf); letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; color: #8b1a1a; }
.sz-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; font-family: var(--schrift-kopf); font-size: .9rem; }
.sz-nav a { color: #5a0f0f; }

/* ---------- Vergleich ---------- */
.radar-rahmen { max-width: 480px; justify-self: center; width: 100%; }
.legende button { background: none; border: 0; color: var(--pergament); font-family: var(--schrift-kopf); font-size: .85rem; cursor: pointer; }
.legende button::before { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: .4rem; vertical-align: -2px; }
.legende button.aus { opacity: .4; text-decoration: line-through; }
.klein-hinweis { font-style: italic; color: #bfa983; margin-top: -.5rem; }
.kampagne { display: grid; gap: .35rem; }
.kp { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; border-radius: 8px; cursor: pointer; border: 1px solid rgba(212,166,74,.2); transition: background .2s; }
.kp:hover { background: rgba(212,166,74,.08); }
.kp input { width: 18px; height: 18px; accent-color: #d4a64a; flex: 0 0 auto; }
.kp span { flex: 1; }
.kp em { font-family: var(--schrift-kopf); font-style: normal; font-weight: 700; font-size: .8rem; }
.kp em.art { color: var(--tuerkis); } .kp em.hue { color: #ff9a3c; } .kp em.beide { color: var(--gold); }
.waage { margin-top: 1.5rem; text-align: center; }
.waage svg { width: 100%; max-width: 340px; }
.w-text { font-family: var(--schrift-kopf); font-size: 13px; fill: var(--gold-hell); }
.waage-text { font-family: var(--schrift-kopf); color: var(--gold-hell); margin: .2rem 0 0; }

/* ---------- Würfel-Ergebnis ---------- */
.wurf { position: fixed; z-index: 70; left: 50%; bottom: 1.4rem; transform: translateX(-50%); width: min(520px, calc(100vw - 1.6rem)); display: flex; align-items: center; gap: 1rem; padding: 1rem 2.6rem 1rem 1.2rem; border-radius: 12px;
  background: linear-gradient(160deg, rgba(40,25,14,.97), rgba(15,9,5,.97)); border: 1px solid var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.7), 0 0 30px rgba(212,166,74,.2); animation: hoch .35s cubic-bezier(.3,1.4,.5,1); }
.wurf[hidden] { display: none; }
@keyframes hoch { from { transform: translate(-50%, 40px); opacity: 0; } }
.wurf.nat20 { border-color: #ffd56b; box-shadow: 0 0 50px rgba(255,213,107,.6); }
.wurf.nat1 { border-color: #ff4b4b; box-shadow: 0 0 40px rgba(255,60,60,.4); }
.wurf-zu { position: absolute; top: .3rem; right: .5rem; background: none; border: 0; color: var(--gold); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.wurf-wuerfel { display: flex; gap: .35rem; flex-wrap: wrap; max-width: 46%; }
.mini-w { width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--schrift-kopf); font-weight: 900; font-size: 1.1rem; color: #f7e3a1;
  background: #5a0f0f; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.mini-w[data-s="8"], .mini-w[data-s="6"] { background: #2b4a6b; width: 36px; height: 36px; font-size: .95rem; }
.mini-w[data-s="0"] { background: #3a2618; clip-path: none; border-radius: 8px; width: auto; padding: 0 .6rem; }
.mini-w.blass { opacity: .35; }
.mini-w.rollt { animation: mini-rollen .3s linear infinite; }
@keyframes mini-rollen { to { transform: rotate(360deg); } }
.wurf-text { flex: 1; color: var(--pergament); line-height: 1.35; }
.wurf-text small { display: block; font-family: var(--schrift-kopf); font-size: .72rem; letter-spacing: .08em; color: var(--gold); margin-bottom: .15rem; }
.wurf-text .gross { font-family: var(--schrift-titel); font-size: 2rem; color: var(--gold-hell); }
.wurf-text .gross.heil { color: #8ff0a4; }
.wurf-text .aufschl { font-size: .9rem; color: #cdb995; }
.wurf-text .sg { display: block; font-family: var(--schrift-kopf); font-size: .85rem; }
.sg.ja { color: #8ff0a4; } .sg.nein { color: #ff9a8a; }

.notizzettel { position: fixed; z-index: 75; padding: 1rem 1.1rem; color: var(--tinte); border-radius: 4px; font-size: .98rem; line-height: 1.45;
  background: radial-gradient(ellipse at center, #fbf1d6, #e8d3a2); box-shadow: 0 16px 40px rgba(0,0,0,.6); transform: rotate(-1deg); animation: rein .3s; }
.notizzettel b { font-family: var(--schrift-kopf); color: #5a0f0f; font-size: 1.05rem; }
.notizzettel p { margin: .3rem 0 0; }
.toast { position: fixed; z-index: 90; top: 4.6rem; left: 50%; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: all .35s; max-width: min(460px, 92vw); text-align: center;
  padding: .7rem 1.2rem; border-radius: 8px; background: rgba(20,12,7,.96); border: 1px solid var(--gold); color: var(--gold-hell); font-family: var(--schrift-kopf); font-size: .88rem; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.toast.an { opacity: 1; transform: translate(-50%, 0); }
.hinweis-papier { max-width: 560px; margin: -1.5rem auto 2.5rem; padding: .7rem 1rem; border-radius: 6px; background: rgba(212,166,74,.1); border: 1px dashed rgba(212,166,74,.5); font-size: .98rem; color: #e6d3ad; }
.hinweis-papier a { color: var(--gold-hell); }

@media (max-width: 900px) {
  .dossier { grid-template-columns: 1fr; padding-top: 4.8rem; gap: 1.5rem; }
  .portrait { position: static; max-width: 460px; margin: 0 auto; }
  .reiter { margin: 0 -1.25rem; padding: 0 1rem; }
  .sz-spalten { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .leiste { padding: .45rem .7rem; gap: .6rem; }
  .marke svg { width: 32px; height: 32px; }
  .krumen { font-size: .75rem; }
  .infusionen { grid-template-columns: 1fr; }
  .wurf { padding: .8rem 2.2rem .8rem .8rem; gap: .7rem; bottom: .7rem; }
  .mini-w { width: 38px; height: 38px; }
  .naehr li { grid-template-columns: 90px 1fr; }
  .flip { height: 210px; }
}

/* Korrekturen Runde 2 */
.akte { min-width: 0; }
.kopfleiste b { overflow-wrap: normal; hyphens: auto; -webkit-hyphens: auto; }
.reiter { flex-wrap: wrap; row-gap: 0; }
.reiter a { font-size: .76rem; padding: .6rem .7rem .85rem; letter-spacing: .03em; }
@media (max-width: 900px) {
  .dossier { grid-template-columns: minmax(0, 1fr); }
  .portrait-rahmen { max-width: 320px; margin: 0 auto; }
  .reiter { flex-wrap: nowrap; position: sticky; top: 3.1rem; z-index: 30; padding: .6rem 1rem 0; background: linear-gradient(180deg, rgba(15,10,7,.97) 70%, rgba(15,10,7,0)); }
}
.reiter { flex-wrap: nowrap; }
.reiter a { flex: 1 1 auto; text-align: center; padding: .6rem .55rem .85rem; }
.waage svg { overflow: visible; }
@media (max-width: 600px) { .flips { grid-template-columns: 1fr 1fr; gap: .6rem; } .flip { height: 230px; } .flip-vorne b { font-size: 1.05rem; } .flip-hinten { font-size: .8rem; padding: .7rem; } }

/* =====================================================================
   Runde 3: ruhiger – keine Pillen, weniger Kacheln, weniger Leuchten
   ===================================================================== */

/* --- Knöpfe: eckig, flach, ohne Verlauf --- */
.knopf-wurf, .knopf-wurf.gross {
  background: transparent; color: var(--gold-hell); border: 1px solid rgba(212,166,74,.55); border-radius: 2px; box-shadow: none;
  font-weight: 700; letter-spacing: .06em; padding: .45rem .9rem; transition: background .2s, border-color .2s; }
.knopf-wurf:hover { background: rgba(212,166,74,.12); border-color: var(--gold); }
.knopf-wurf:active { transform: none; box-shadow: none; background: rgba(212,166,74,.2); }
.knopf-gold { background: #6e140b; color: #f6e9c9; border: 1px solid #3a0a05; border-radius: 2px; box-shadow: none; }
.knopf-gold:hover { background: #8b1a1a; }
.knopf-gold:active { transform: none; box-shadow: none; }
.knopf-leise, .knopf-leise.hell { border-radius: 2px; }
.weiter-leiste { gap: 1.6rem; }
.weiter-leiste a, .knopf-link { border: 0; border-radius: 0; padding: 0; border-bottom: 1px solid currentColor; background: none !important; }
.f-knoepfe .knopf-link { color: var(--gold); }
.fortschritt { border: 0; border-radius: 0; padding: 0; }
.fortschritt.puls { animation: none; }
.beute button { border-radius: 2px; border-width: 1px; }
.beute button.an { background: #5a1408; color: #ffe0b0; border-color: #8a2b0e; box-shadow: none; }

/* --- Kacheln aufgelöst: Taverne-Wege als Spalten mit Trennlinien --- */
.wege { gap: 0; border-top: 1px solid rgba(212,166,74,.35); border-bottom: 1px solid rgba(212,166,74,.35); }
.weg { background: none !important; border: 0; border-radius: 0; box-shadow: none; padding: 1.4rem 1.6rem; }
.weg + .weg { border-left: 1px solid rgba(212,166,74,.25); }
.weg:hover { transform: none; box-shadow: none; background: rgba(212,166,74,.05) !important; }
.weg:hover b { text-decoration: underline; text-underline-offset: 4px; }
.weg-urteil b { color: #e8a08a; }

/* --- Fähigkeiten als Liste statt dunkler Karten --- */
.faehigkeiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 2.4rem; margin-top: 1rem; row-gap: 0; }
.faehigkeit, .dossier-art .faehigkeit, .dossier-hue .faehigkeit {
  background: none; color: var(--tinte); box-shadow: none; border-radius: 0; padding: 1.1rem 0 1.1rem 3.2rem; border-top: 1px solid rgba(90,61,28,.35); font-size: 1rem; }
.faehigkeit:hover { transform: none; }
.f-icon { top: 1.15rem; left: 0; transform: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: none; border: 1.5px solid #8a5a24; box-shadow: none; }
.f-icon svg { width: 20px; height: 20px; color: #5a3d1c; }
.faehigkeit h4 { text-align: left; color: #5a0f0f; font-size: 1.15rem; }
.f-regel { text-align: left; margin: .1rem 0 .5rem; }
.dossier-art .f-regel { color: #136b65; } .dossier-hue .f-regel { color: #a8400c; }
.f-knoepfe { justify-content: flex-start; gap: 1.4rem; align-items: center; }
.f-knoepfe .knopf-wurf { color: #5a0f0f; border-color: rgba(139,26,26,.5); }
.f-knoepfe .knopf-wurf:hover { background: rgba(139,26,26,.08); }
.f-knoepfe .knopf-link { color: #5a0f0f; }

/* --- Spielleitung, Hooks, Lager: Linien statt Kästen --- */
.dm-box { border: 0; border-radius: 0; background: none; padding: 0; border-top: 2px solid #8b1a1a; padding-top: .7rem; }
.akkordeon details, .hook { border: 0; border-radius: 0; background: none; margin: 0; border-bottom: 1px solid rgba(90,61,28,.35); }
.akkordeon details:first-child, .hook:first-child { border-top: 1px solid rgba(90,61,28,.35); }
.akkordeon summary, .hook summary { padding: .8rem 0; }
.akkordeon details p, .hook p { padding: 0 0 1rem; }
.hook-nr { background: none; color: #8b1a1a; border: 1.5px solid #8b1a1a; width: 2rem; height: 2rem; }
.angst { border-radius: 0; border-width: 0 0 0 4px; background: rgba(139,26,26,.06); }
.albtraum { border-radius: 2px; box-shadow: inset 0 0 40px #000; }

/* --- Werkstatt: Infusionen und Upgrades als Liste --- */
.infusionen { gap: 0; border-top: 1px solid rgba(90,61,28,.35); }
.infusion { border: 0; border-radius: 0; border-bottom: 1px solid rgba(90,61,28,.35); background: none; padding: .55rem .7rem .55rem 2rem; position: relative; }
.infusion::before { content: ''; position: absolute; left: .4rem; top: .75rem; width: 13px; height: 13px; border: 1.5px solid #5a3d1c; }
.infusion.an { background: rgba(31,143,136,.1); color: var(--tinte); border-color: rgba(90,61,28,.35); box-shadow: none; }
.infusion.an::before { background: #1f8f88; border-color: #1f8f88; box-shadow: inset 0 0 0 2px #f2e6c6; }
.infusion.an b { color: #136b65; }
.upgrades { gap: 0; }
.upgrade { border: 0; border-radius: 0; background: none; border-bottom: 1px solid rgba(90,61,28,.35); padding: .55rem .2rem; }
.status-panel { border-radius: 2px; box-shadow: none; }
.led { box-shadow: none; animation: none; }
.krit { animation: none; }
.balken span { box-shadow: none; }
.defender-bank { border-radius: 2px; }

/* --- Szenarien: Verzeichnis statt Karten --- */
.szenarien { grid-template-columns: 1fr; gap: 0; max-width: 880px; border-top: 1px solid rgba(212,166,74,.35); }
.szenario-karte { flex-direction: row; align-items: center; gap: 1.2rem; padding: 1rem .4rem; background: none; border-radius: 0; box-shadow: none; color: var(--pergament);
  border-bottom: 1px solid rgba(212,166,74,.35); animation: none; }
.szenario-karte:hover { transform: none; background: rgba(212,166,74,.06); }
.szenario-karte b { color: var(--gold-hell); flex: 0 0 15rem; }
.szenario-karte span:not(.sz-icon) { flex: 1; color: #cdb995; }
.szenario-karte em { margin: 0; flex: 0 0 auto; color: var(--gold); }
.szenario-karte.besucht::after { position: static; color: #8fbf7a; order: 5; }
.sz-icon { background: none; border: 1.5px solid rgba(212,166,74,.6); color: var(--gold); flex: 0 0 auto; }
.szenario-akte { border-radius: 2px; }
.sz-held { border-radius: 0; }
.sg-siegel { box-shadow: inset -5px -6px 10px rgba(0,0,0,.4); }

/* --- Vergleich --- */
.kp { border: 0; border-radius: 0; border-bottom: 1px solid rgba(212,166,74,.2); }
.radar-rahmen { border-radius: 0; border: 0; background: none; box-shadow: none; padding: 0; }

/* --- Weniger Leuchten --- */
.kapitel, .karte-name, .dossier-name, .kapitel small { text-shadow: none; }
h1 { filter: drop-shadow(0 3px 0 #3a210c); }
.karte, .karte:hover, .karte-artificer:hover, .karte-huene:hover { box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.karte::after { display: none; }
.portrait .wert:hover { box-shadow: none; border-color: var(--gold); }
.dossier-art .wert.top, .dossier-hue .wert.top { box-shadow: none; }
.portrait-rahmen { border-radius: 4px; } .portrait-bild { border-radius: 2px; }
.kennzahlen div { border-radius: 0; }
.besucht-punkt { box-shadow: none !important; }
.wuerfel { filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.wuerfel.nat20 { filter: drop-shadow(0 0 14px rgba(255,213,107,.6)); }
.siegel-art:hover .wachs, .siegel-hue:hover .wachs { box-shadow: inset -10px -12px 20px rgba(0,0,0,.45), inset 8px 8px 16px rgba(255,255,255,.18), 0 12px 24px rgba(0,0,0,.6); }
.wurf { border-radius: 2px; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.wurf.nat20, .wurf.nat1 { box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.toast, .notizzettel, .tafel, .urteil-karte { border-radius: 2px; }
.ring { filter: none; }
.lager-szene { border-radius: 2px; }

@media (max-width: 700px) {
  .weg + .weg { border-left: 0; border-top: 1px solid rgba(212,166,74,.25); }
  .szenario-karte { flex-wrap: wrap; gap: .4rem .9rem; }
  .szenario-karte b { flex: 1 1 auto; }
  .szenario-karte span:not(.sz-icon) { flex-basis: 100%; }
}
.infusionen { grid-template-columns: 1fr; }

/* =====================================================================
   Smartphone
   ===================================================================== */
html, body { overflow-x: clip; }
* { -webkit-tap-highlight-color: transparent; }
.werte-klapp > summary { display: none; }
.werte-klapp { margin: 0; }

@media (max-width: 700px) {
  body { font-size: 1.06rem; }
  .leiste { padding: .4rem .7rem; padding-top: calc(.4rem + env(safe-area-inset-top)); }
  .krumen li:first-child:nth-last-child(3), .krumen li:first-child:nth-last-child(3) + li::before { display: none; }
  .krumen { font-size: .78rem; }

  /* Taverne */
  .prolog { padding: 4.8rem 1.2rem .5rem; }
  .prolog-text { font-size: 1.1rem; }
  .tisch { padding-top: 1rem; }
  .karten { gap: 1.4rem; }
  .karte { width: 100%; }
  .oder span { width: 52px; height: 52px; }
  .weg { padding: 1.1rem .4rem; }

  /* Dossier */
  .dossier { padding: 4rem .5rem 3rem; gap: 1rem; }
  .portrait-rahmen { max-width: 340px; }
  .dossier-name { font-size: 1.5rem; margin-top: .9rem; }
  .dossier-titel { margin-bottom: .6rem; }
  .werte-klapp > summary { display: flex; justify-content: center; align-items: baseline; gap: .6rem; list-style: none; cursor: pointer;
    font-family: var(--schrift-kopf); font-weight: 700; color: var(--gold-hell); padding: .7rem; border-top: 1px solid rgba(212,166,74,.3); border-bottom: 1px solid rgba(212,166,74,.3); }
  .werte-klapp > summary::-webkit-details-marker { display: none; }
  .werte-klapp > summary span { font-size: .8rem; color: var(--gold); font-weight: 500; }
  .werte-klapp > summary::after { content: '▾'; color: var(--gold); }
  .werte-klapp[open] > summary::after { content: '▴'; }
  .werte-klapp[open] > summary { margin-bottom: .8rem; }
  .anderer { margin-top: .8rem; }
  .spot { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .spot::after { line-height: 30px; }
  .spot-hinweis { font-size: .75rem; }

  .reiter { top: 2.85rem; margin: 0 -.5rem; padding: .5rem .6rem 0; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .reiter a { scroll-snap-align: start; font-size: .8rem; padding: .65rem .8rem .85rem; }
  .seite { padding: 1.4rem 1.05rem 1.6rem; border-radius: 0 0 4px 4px; }
  .seite::before { inset: 6px; }
  .seiten-titel { font-size: 1.55rem; }
  .einleitung { font-size: 1.05rem; }
  .kopfleiste { grid-template-columns: 1fr 1fr; }
  .kopfleiste div { border-bottom: 1px solid rgba(90,61,28,.25); }
  .werkstatt, .kueche, .dm-raster, .zwei-spalten, .vergleich-inhalt { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .faehigkeiten { grid-template-columns: minmax(0, 1fr); }
  .faehigkeit { padding-left: 2.9rem; }
  .f-knoepfe { flex-wrap: wrap; gap: .8rem 1.2rem; }
  .knopf-wurf { padding: .6rem 1rem; }
  .stufen-liste li { padding: .5rem .6rem; gap: .7rem; }
  .flips { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .flip { height: 220px; }
  .flip-vorne b { font-size: 1.05rem; }
  .flip-hinten { font-size: .82rem; padding: .7rem; }
  .tafel { border-width: 8px; padding: 1rem 1.1rem; }
  .gericht { font-size: 1.3rem; }
  input[type=range] { width: 100%; height: 28px; }
  .ws-titel { flex-wrap: wrap; }
  .lager-szene { height: 130px; }

  /* Szenarien */
  .ansicht { padding: 4.3rem .5rem 3rem; }
  .szenario-akte { padding: 1.3rem 1.05rem; }
  .sz-titel { gap: .7rem; }
  .sz-icon.gross { width: 48px; height: 48px; } .sz-icon.gross .ico { width: 26px; height: 26px; }
  .sg-siegel { width: 58px; height: 58px; transform: none; } .sg-siegel b { font-size: 1.25rem; }
  .sz-text { font-size: 1.08rem; margin: 1rem 0 1.4rem; }
  .sz-nav { flex-direction: column; gap: .6rem; }

  /* Vergleich & Urteil */
  .radar-rahmen { max-width: 100%; }
  .kp { padding: .6rem .3rem; }
  .siegel-wahl { flex-direction: row; flex-wrap: wrap; gap: 1.2rem 2rem; }
  .wachs { width: 118px; height: 118px; }
  .wuerfel-bereich { order: 3; flex-basis: 100%; }
  .urteil { padding: 0; align-items: end; }
  .urteil-karte { width: 100%; max-height: 92vh; border-radius: 10px 10px 0 0; padding: 1.6rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom)); }
  .urteil-karte h2 { font-size: 1.6rem; }
  .urteil-knoepfe { flex-direction: column; align-items: stretch; }
  .knopf-gold, .knopf-leise { width: 100%; padding: .85rem; }

  /* Würfelergebnis als Leiste unten */
  .wurf { left: 0; right: 0; bottom: 0; width: 100%; transform: none; border-radius: 0; border-width: 1px 0 0;
    padding: .8rem 2.6rem calc(.8rem + env(safe-area-inset-bottom)) 1rem; animation: hoch-mobil .3s ease-out; }
  @keyframes hoch-mobil { from { transform: translateY(100%); } }
  .wurf-zu { font-size: 2rem; top: .2rem; right: .6rem; padding: .2rem .4rem; }
  main#buehne { padding-bottom: 6rem; }
  .notizzettel { font-size: 1rem; }
  .toast { top: 3.6rem; }
}
@media (max-width: 700px) {
  #radar .achse-text { font-size: 17px; }
  .radar-rahmen { margin-bottom: 2.6rem; }
}

/* Heldenkarten als Wisch-Karussell auf dem Handy */
.karussell-punkte { display: none; }
@media (max-width: 900px) {
  .tisch { padding-left: 0; padding-right: 0; }
  .tisch .kapitel, .tisch .wege { margin-left: .9rem; margin-right: .9rem; }
  .karten { flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 1rem; max-width: none; margin: 0;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: .6rem 12vw 1.6rem; perspective: none; }
  .karten::-webkit-scrollbar { display: none; }
  .karten .oder { display: none; }
  .karten .karte { flex: 0 0 76vw; width: 76vw; max-width: 400px; scroll-snap-align: center; scroll-snap-stop: always;
    transform: scale(.94); opacity: .75; transition: transform .35s ease, opacity .35s ease; }
  .karten .karte.vorne { transform: none; opacity: 1; }
  .karte-motto { min-height: 0; }
  .karussell-punkte { display: flex; justify-content: center; align-items: center; gap: .55rem; margin-top: -.4rem; }
  .karussell-punkte button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--gold); background: transparent; cursor: pointer; transition: all .3s; }
  .karussell-punkte button.an { background: var(--gold); width: 24px; border-radius: 5px; }
  .karussell-punkte span { margin-left: .5rem; font-family: var(--schrift-kopf); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: #a8946f; }
}
@media (max-width: 900px) and (min-width: 600px) {
  .karten .karte { flex-basis: 56vw; width: 56vw; }
  .karten { padding-left: 22vw; padding-right: 22vw; }
}
@media (max-width: 900px) { .karten .karte-kopf { padding: 0 2.1rem; font-size: .56rem; letter-spacing: .06em; white-space: nowrap; } }

/* =====================================================================
   PIXEL-ART-THEMA
   ===================================================================== */
:root {
  --px: 'Pixelify Sans', 'Courier New', monospace;
  --schrift-titel: var(--px); --schrift-kopf: var(--px); --schrift-text: var(--px);
  --rahmen: #1a0f08; --gold-px: #e2b04a; --gold-hell-px: #f7dc8a; --gold-dunkel-px: #a86f1e;
}
body { font-family: var(--px); font-size: 1.04rem; line-height: 1.6; }
*, *::before, *::after { border-radius: 0 !important; }
img.px { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.vignette { display: none; }
body::before { background:
  repeating-conic-gradient(#1e150e 0 25%, #1a110b 0 50%) 0 0 / 8px 8px; }

/* Typo: harte Schatten statt Glanz */
h1 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--gold-hell-px); filter: none;
  text-shadow: 4px 4px 0 #6b3510, 8px 8px 0 rgba(0,0,0,.45); letter-spacing: .02em; font-weight: 700; }
h1 span { color: var(--gold-px); }
.kapitel, .karte-name, .dossier-name { font-weight: 700; text-shadow: 3px 3px 0 #3a1a08 !important; letter-spacing: .01em; }
.kapitel small, .anrede, .karte-kopf, .f-regel, .kennzahlen small { letter-spacing: .12em; }
.seiten-titel, .zwischen, .sz-titel h2, .urteil-karte h2, .tafel-kopf, .gericht { font-weight: 700; }
.trenner svg { display: none; }
.trenner span { height: 4px; background: repeating-linear-gradient(90deg, var(--gold-px) 0 8px, transparent 8px 16px); }
.trenner { gap: 0; }
.trenner::after { content: ''; order: 0; }

/* Pixelrahmen */
.karte, .portrait-rahmen, .seite, .szenario-akte, .urteil-karte, .tafel, .status-panel, .wurf, .notizzettel, .toast,
.banner, .lager-bild img, .sz-bild, .defender-bank, .albtraum, .hinweis-papier, .zettel {
  box-shadow: 0 -4px 0 var(--rahmen), 0 4px 0 var(--rahmen), -4px 0 0 var(--rahmen), 4px 0 0 var(--rahmen), 8px 12px 0 rgba(0,0,0,.4) !important; }

/* Banner in der Taverne */
.banner { max-width: 760px; margin: 0 auto 1.8rem; }
.prolog { padding-top: 6rem; }

/* Heldenkarten */
.karte { background: var(--gold-px); padding: 6px; transform: none !important; transition: translate .15s steps(2); }
.karte:hover { translate: 0 -4px; }
.karte-innen { box-shadow: inset 0 0 0 4px var(--gold-dunkel-px); padding: 1rem 1rem 1.2rem; }
.karte-artificer .karte-innen { background: #0f2a2b; } .karte-huene .karte-innen { background: #2a0f08; }
.ecke { display: none; }
.karte-kopf { padding: 0 .3rem; }
.karte-bild { border: 4px solid var(--gold-dunkel-px); background: #000 !important; box-shadow: none; max-width: 100%; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.mini-fortschritt { height: 6px; } .mini-fortschritt i { background: var(--gold-hell-px); }
.oder span { border: 3px solid var(--gold-px); background: #1a0f08; }

/* Wege */
.weg-ico { width: 48px !important; height: 48px; }

/* Dossier */
.portrait-rahmen { background: var(--gold-px); padding: 6px; }
.portrait-bild { border: 4px solid var(--gold-dunkel-px); background: #000 !important; }
.portrait-bild img { width: 100%; height: 100%; object-fit: cover; }
.spot { width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 3px solid var(--rahmen); background: var(--gold-hell-px); box-shadow: 3px 3px 0 rgba(0,0,0,.5); animation: spot-px 1.2s steps(2) infinite; }
.spot::after { color: var(--rahmen); font: 700 15px/20px var(--px); }
.spot.gesehen { background: #6b4513; border-color: var(--rahmen); animation: none; }
.spot.gesehen::after { color: var(--gold-hell-px); }
@keyframes spot-px { 50% { transform: translateY(-3px); } }
.spot-hinweis { background: rgba(0,0,0,.65); }
.wert { border-width: 3px !important; }
.portrait .wert { background: #24170e; }
.kennzahlen div { border-width: 2px; background: #1f150d; }

.reiter a { border-width: 3px; border-color: var(--rahmen); font-weight: 700; letter-spacing: .02em; transition: transform .1s steps(2); }
.reiter a.aktiv { background: #ead6a8; }
.seite { background: #ead6a8 !important; transform-origin: center; }
.seite::before { inset: 10px; border: 2px dashed rgba(90,55,20,.35); }
.seite.blaettern { animation: blatt-px .3s steps(3); }
@keyframes blatt-px { from { opacity: 0; transform: translateY(12px); } }
main#buehne.rein { animation: blatt-px .3s steps(3); }

/* Knöpfe im Pixelstil */
.knopf-wurf, .knopf-wurf.gross, .f-knoepfe .knopf-wurf {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--px); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  color: #2b1609; background: var(--gold-px); border: 0; padding: .55rem 1rem .6rem;
  box-shadow: inset -4px -4px 0 var(--gold-dunkel-px), inset 4px 4px 0 var(--gold-hell-px), 0 0 0 3px var(--rahmen), 4px 6px 0 3px rgba(0,0,0,.35); }
.knopf-wurf:hover { background: #ecc060; }
.knopf-wurf:active { translate: 2px 2px; box-shadow: inset 4px 4px 0 var(--gold-dunkel-px), inset -4px -4px 0 var(--gold-hell-px), 0 0 0 3px var(--rahmen); }
.knopf-wurf .ico { display: none; }
.knopf-wurf::before { content: ''; width: 20px; height: 20px; background: url(px/d20.png) center / contain no-repeat; image-rendering: pixelated; }
.knopf-gold { font-family: var(--px); background: #a8281a; color: #fff1d6; border: 0;
  box-shadow: inset -4px -4px 0 #6e140b, inset 4px 4px 0 #d9563f, 0 0 0 3px var(--rahmen), 4px 6px 0 3px rgba(0,0,0,.35) !important; }
.knopf-gold:active { translate: 2px 2px; }
.knopf-leise, .knopf-leise.hell { font-family: var(--px); border: 3px solid currentColor; }
.f-knoepfe .knopf-link, .weiter-leiste a { font-family: var(--px); font-weight: 600; }

/* Fähigkeiten-Symbole */
.f-icon { border: 0 !important; width: 44px !important; height: 44px !important; top: 1rem !important; }
.f-icon img { width: 44px; }
.faehigkeit { padding-left: 3.6rem !important; }

/* Lager */
.lager-bild { margin: 0 0 1.4rem; }
.lager-bild figcaption { font-size: .9rem; color: #6b4a2e; margin-top: .8rem; }

/* Werkstatt */
.defender-bank { background: #0f2a2b; padding: 1rem .8rem .6rem; }
.defender-px { max-width: 300px; margin: 0 auto; }
.teile { display: flex; justify-content: center; gap: .6rem; margin-top: .6rem; padding-top: .6rem; border-top: 4px solid #3a2618; }
.teile .up { width: 56px; opacity: .15; filter: grayscale(1); transform: none; transition: opacity .2s steps(2), filter .2s steps(2), translate .2s steps(2); }
.teile .up.an { opacity: 1; filter: none; translate: 0 -4px; }
.infusion::before { border-width: 3px; }

/* Küche */
.beute button { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--px); border: 3px solid #5a3d1c; padding: .25rem .6rem .25rem .3rem; }
.beute button img { width: 32px; }
.last-k { padding: .45rem .8rem !important; }
.beute button.an { background: #5a1408; border-color: var(--rahmen); color: #ffe0b0; }
.ration-monster { width: 96px !important; margin: .2rem auto .3rem; }
.tafel { border: 0; background: #1d2420; }
.nbar { height: 12px; } .nbar i { background: repeating-linear-gradient(90deg, #ff9a3c 0 8px, #ffd38a 8px 12px); }

/* Szenarien */
.sz-thumb { width: 112px !important; flex: 0 0 auto; box-shadow: 0 0 0 3px var(--rahmen); }
.szenario-karte b { flex-basis: 13rem; }
.sz-bild { margin: -.4rem 0 1.4rem; }
.sz-mini { border-width: 3px; }
.sz-mini img { width: 100%; height: 100%; object-fit: cover; }
.sg-siegel { box-shadow: 0 0 0 3px var(--rahmen) !important; transform: none; }

/* Urteil */
.wachs { background: none !important; box-shadow: none !important; width: 128px; height: 128px; transition: translate .15s steps(2); }
.wachs::before { display: none; }
.wachs img { width: 100%; }
.wachssiegel:hover { transform: none; } .wachssiegel:hover .wachs { translate: 0 -6px; }
.wuerfel { position: relative; width: 128px; height: 128px; filter: drop-shadow(6px 8px 0 rgba(0,0,0,.45)) !important; }
.wuerfel img { width: 100%; }
.wuerfel:hover { transform: none; translate: 0 -4px; }
.wz { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); min-width: 2.2em; padding: .1rem .2rem; text-align: center;
  background: #7a1010; color: var(--gold-hell-px); font: 700 1.5rem/1.1 var(--px); box-shadow: 0 0 0 3px var(--gold-px); }
.wuerfel.rollt { animation: rollen-px 1.5s steps(12); }
@keyframes rollen-px { 25% { transform: rotate(90deg) translateY(-30px); } 50% { transform: rotate(180deg); } 75% { transform: rotate(270deg) translateY(-12px); } 100% { transform: rotate(360deg); } }
.urteil-siegel { width: 110px; }
.urteil-siegel .wachs { width: 110px; height: 110px; }
.urteil-karte { background: #ead6a8; }
.notiz textarea { font-family: var(--px); border: 3px solid #5a3d1c; }

/* Würfelergebnis, Navigation */
.mini-w, .mini-w[data-s="8"], .mini-w[data-s="6"] { clip-path: none; box-shadow: inset -3px -3px 0 rgba(0,0,0,.35), 0 0 0 2px var(--gold-px); font-family: var(--px); }
.wurf-text .gross { font-family: var(--px); font-weight: 700; }
.marke img { width: 36px; height: 36px; }
.marke svg { display: none; }
.karussell-punkte button { border-width: 2px; }
.stufen-liste .st { font-family: var(--px); }
.flip-vorne b, .flip-hinten b { font-weight: 700; }
.flip-vorne { background: repeating-conic-gradient(#4a2e18 0 25%, #3e2614 0 50%) 0 0 / 16px 16px; }
#radar .achse-text { font-family: var(--px); }
.w-text { font-family: var(--px); }
input[type=range] { accent-color: #a8281a; }
body, button, input, textarea { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
.zwischen::before, .zwischen::after { content: '◆'; font-family: var(--px); font-size: .7em; color: #a8281a; transform: none; vertical-align: .15em; }

/* =====================================================================
   Startbildschirm mit Entschuldigung und Pixel-Blumen
   ===================================================================== */
body.intro-offen { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.2rem; overflow: hidden;
  background: repeating-conic-gradient(#2a1a10 0 25%, #24160d 0 50%) 0 0 / 8px 8px; transition: opacity .5s steps(5); }
.intro[hidden] { display: none; }
.intro.weg { opacity: 0; pointer-events: none; }
.intro-blueten { position: absolute; inset: 0; pointer-events: none; }
.bluete { position: absolute; top: -70px; height: auto; opacity: .9; animation: bluete-fall linear infinite; }
@keyframes bluete-fall {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(calc(var(--dreh) * 24px), 28vh) rotate(calc(var(--dreh) * 90deg)); }
  50% { transform: translate(calc(var(--dreh) * -16px), 56vh) rotate(calc(var(--dreh) * 180deg)); }
  75% { transform: translate(calc(var(--dreh) * 20px), 84vh) rotate(calc(var(--dreh) * 270deg)); }
  100% { transform: translate(0, 115vh) rotate(calc(var(--dreh) * 360deg)); }
}
.intro-brief { position: relative; width: min(460px, 100%); max-height: calc(100vh - 2.4rem); overflow-y: auto; text-align: center;
  background: #ead6a8; color: #2b1d12; padding: 1.4rem 1.6rem 1.8rem;
  box-shadow: 0 -4px 0 #1a0f08, 0 4px 0 #1a0f08, -4px 0 0 #1a0f08, 4px 0 0 #1a0f08, 8px 12px 0 rgba(0,0,0,.45);
  animation: brief-rein .6s steps(6); }
.intro-brief::before { content: ''; position: absolute; inset: 10px; border: 2px dashed rgba(90,55,20,.35); pointer-events: none; }
@keyframes brief-rein { from { opacity: 0; transform: translateY(24px); } }
.intro-strauss { width: 168px !important; margin: -.2rem auto .4rem; animation: strauss-wippen 1.6s steps(2) infinite; }
@keyframes strauss-wippen { 50% { transform: translateY(-4px) rotate(-2deg); } }
.intro-klein { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #8a5a24; margin: 0 0 .2rem; }
.intro-brief h1 { font-size: clamp(2rem, 9vw, 2.6rem); color: #a8281a; text-shadow: 3px 3px 0 #f2c4a8; margin: 0 0 .8rem; line-height: 1.1; }
.intro-brief p { margin: 0 0 .8rem; font-size: 1.02rem; line-height: 1.55; }
.intro-gruss { font-style: italic; color: #6b4a2e; margin-top: 1rem !important; }
.intro-gruss::before { content: '♥ '; color: #a8281a; font-style: normal; }
#intro-weiter { margin-top: .6rem; }
#intro-weiter::before { background-image: url(px/blume_rose.png); }
@media (prefers-reduced-motion: reduce) { .bluete { display: none; } }
.intro-nebenbei { font-size: .9rem !important; font-style: italic; color: #6b4a2e; }
.intro-knoepfe { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; margin-top: .6rem; }
.intro-nein { display: flex; flex-direction: column; align-items: center; gap: .1rem; cursor: pointer; font-family: var(--px); font-weight: 700; font-size: .9rem;
  color: #6b4a2e; background: transparent; border: 3px solid #8a6a48; padding: .45rem 1rem .5rem; }
.intro-nein small { font-weight: 400; font-size: .75rem; color: #8a6a48; }
.intro-nein:hover { background: rgba(90,55,20,.08); }
.intro-nein:active { translate: 2px 2px; }

/* Heldenkarten: Pixel-Rahmen und -Hintergrund (9-Slice) */
.karte { background: none !important; padding: 26px 22px 24px; box-shadow: none !important; image-rendering: pixelated;
  border: 0; border-image: url(px/rahmen_art.png?v=2) 64 fill / 64px stretch; filter: drop-shadow(6px 10px 0 rgba(0,0,0,.45)); }
.karte-huene { border-image-source: url(px/rahmen_hue_voll.png?v=2); }
.karte-innen, .karte-artificer .karte-innen, .karte-huene .karte-innen { background: none !important; box-shadow: none !important; padding: 0 !important; overflow: visible; }
.karte-kopf { padding: 0 2.4rem; min-height: 1.4rem; align-items: center; color: var(--gold-hell-px); }
.karte-bild { border: 4px solid #3a2410; margin-top: .5rem; }
.karte-name { margin-top: .8rem; }
.karte-fuss { margin-bottom: .2rem; }
.marke img { width: 38px; height: 38px; }
.karte { padding: 40px 34px 50px; }
.karte .karte-kopf { display: none; }
.karte-bild { margin-top: 0; }
.karte-motto { margin-bottom: .6rem; }
@media (max-width: 900px) { .karte { padding: 36px 28px 48px; } }
.karte-motto { color: #fff3d6; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.karte-cta { text-shadow: 2px 2px 0 #000; }

/* =====================================================================
   Die Reise: Probe → Waage → Urteil
   ===================================================================== */
.tour { max-width: 900px; margin: 0 auto; text-align: center; }
.tour-stationen { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.tour-stationen::before { content: ''; position: absolute; left: 16%; right: 16%; top: 30px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold-px) 0 8px, transparent 8px 16px); }
.tour-stationen li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 0 .4rem; }
.tour-stationen img { width: 60px !important; padding: 4px; background: #1a0f08; box-shadow: 0 0 0 3px var(--gold-px); position: relative; }
.tour-stationen b { font-size: 1rem; color: var(--gold-hell-px); margin-top: .4rem; }
.tour-stationen b span { display: inline-block; min-width: 1.5em; background: var(--gold-px); color: #1a0f08; padding: 0 .25em; margin-right: .2em; }
.tour-stationen small { color: #bfa983; font-size: .85rem; }
.tour-stationen li.fertig img { box-shadow: 0 0 0 3px #6fbf73; }
.tour-stationen li.fertig b span { background: #6fbf73; }
.tour-stationen li.fertig small::after { content: ' · erledigt'; color: #8fd48f; }
.tour-start { font-size: 1.1rem !important; padding: .8rem 1.6rem !important; }

.tour-leiste { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 680px; margin: 0 auto .4rem; }
.tour-leiste i { flex: 1; height: 4px; min-width: 14px; background: repeating-linear-gradient(90deg, #6b5235 0 6px, transparent 6px 12px); }
.tour-leiste a { display: flex; align-items: center; gap: .45rem; text-decoration: none; color: #8a7556; font-size: .85rem; font-weight: 600; padding: .25rem .4rem; }
.tour-leiste a img { width: 32px !important; padding: 2px; background: #1a0f08; box-shadow: 0 0 0 2px #6b5235; opacity: .7; }
.tour-leiste a.fertig { color: #8fd48f; } .tour-leiste a.fertig img { box-shadow: 0 0 0 2px #6fbf73; opacity: 1; }
.tour-leiste a.aktiv { color: var(--gold-hell-px); } .tour-leiste a.aktiv img { box-shadow: 0 0 0 3px var(--gold-px); opacity: 1; }
.tour-unter { text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.6rem; }
.tour-weiter { display: flex; justify-content: center; margin: 2rem auto 0; padding: 0 1rem; text-align: center; }
.tour-weiter .knopf-wurf { font-size: 1rem; line-height: 1.3; }
.sz-nav { margin-top: 1.2rem; }
.entscheidung .tour-leiste, .entscheidung .tour-unter { text-align: center; }

@media (max-width: 700px) {
  .tour-stationen::before { top: 26px; }
  .tour-stationen img { width: 52px !important; }
  .tour-stationen b { font-size: .85rem; line-height: 1.25; }
  .tour-stationen small { font-size: .74rem; line-height: 1.3; }
  .tour-leiste a span { display: none; }
  .tour-leiste a.aktiv span { display: inline; }
  .tour-weiter .knopf-wurf { width: 100%; justify-content: center; }
}
a.knopf-wurf { text-decoration: none; }

/* =====================================================================
   Waage des Schicksals in Pixel-Art
   ===================================================================== */
.waage-banner { max-width: 760px; margin: -.6rem auto 2rem; }
.waage-seite .vergleich-inhalt { align-items: start; gap: 2rem; max-width: 1100px; }
.px-tafel { background: #22160d; padding: 1.3rem 1.3rem 1.5rem;
  box-shadow: 0 -4px 0 #1a0f08, 0 4px 0 #1a0f08, -4px 0 0 #1a0f08, 4px 0 0 #1a0f08, inset 0 0 0 3px #5a3d1c, 8px 12px 0 rgba(0,0,0,.4); }
.px-tafel h3 { font-family: var(--px); font-size: 1.25rem; color: var(--gold-hell-px); margin: 0 0 .8rem; text-shadow: 2px 2px 0 #000; }
.vg-legende { display: flex; gap: 1.2rem; margin-bottom: 1rem; font-weight: 700; font-size: .9rem; }
.vg-legende span { display: flex; align-items: center; gap: .45rem; }
.vg-legende img { width: 30px !important; height: 30px; object-fit: cover; box-shadow: 0 0 0 2px currentColor; }
.vg-legende .vg-art { color: #6fe3d9; } .vg-legende .vg-hue { color: #ff9a4a; }
.vg-zeile { display: grid; grid-template-columns: 1fr; gap: .25rem; padding: .55rem 0; border-top: 2px dashed #4a3220; }
.vg-zeile b { font-size: .9rem; color: #e6d3ad; }
.vg-balken { display: flex; align-items: center; gap: 3px; }
.vg-balken i { flex: 1; max-width: 26px; height: 12px; background: #3a2618; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); }
.vg-art i.voll { background: #2fb3a8; box-shadow: inset 0 -3px 0 #1d6b65, inset 0 3px 0 #7ff7ee; }
.vg-hue i.voll { background: #e0661e; box-shadow: inset 0 -3px 0 #8a2b0e, inset 0 3px 0 #ffb35c; }
.vg-balken i.voll { animation: segment .1s steps(1) both; animation-delay: calc(var(--n) * 70ms + .2s); }
@keyframes segment { from { background: #3a2618; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); } }
.vg-balken em { font-style: normal; font-size: .8rem; color: #bfa983; margin-left: .4rem; min-width: 1.8em; }

.waage-seite .kampagne { gap: 0; }
.waage-seite .kp { gap: .7rem; padding: .6rem .2rem; border: 0; border-bottom: 2px dashed #4a3220; }
.waage-seite .kp.an { background: rgba(226,176,74,.08); }
.kp input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: 0 0 auto; cursor: pointer;
  background: #1a0f08; box-shadow: 0 0 0 3px #8a6a48; }
.kp input:checked { background: var(--gold-px);
  background-image: linear-gradient(#1a0f08, #1a0f08), linear-gradient(#1a0f08, #1a0f08), linear-gradient(#1a0f08, #1a0f08);
  background-size: 4px 4px, 4px 4px, 4px 4px; background-position: 4px 10px, 8px 14px, 12px 6px; background-repeat: no-repeat; box-shadow: 0 0 0 3px var(--gold-px); }
.kp input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.px-waage { position: relative; max-width: 384px; margin: 1.4rem auto .4rem; }
.px-waage canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.waage-figur { position: absolute; width: 13% !important; transform: translate(-50%, -100%); transition: top .14s steps(1); }
.waage-art { left: 14.6%; } .waage-hue { left: 85.4%; }
.waage-text { font-family: var(--px); font-weight: 700; color: var(--gold-hell-px); text-align: center; text-shadow: 2px 2px 0 #000; }
.kp input:checked { background: var(--gold-px) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%231a0f08' d='M1 4h1v2H1zM2 5h1v2H2zM3 6h1v2H3zM4 5h1v2H4zM5 4h1v2H5zM6 3h1v2H6zM7 2h1v2H7z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.waage-figur { width: 15% !important; }

/* =====================================================================
   Geführtes Abenteuer: Karten umdrehen, Seiten, Questlog, Weiter-Leiste
   ===================================================================== */

/* Heldenkarte mit Vorder- und Rückseite */
.karte, .karte:hover { background: none !important; padding: 0 !important; border: 0 !important; border-image: none !important; filter: none !important; box-shadow: none !important; translate: none; perspective: 1400px; }
.karte-flip { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .6s steps(6); }
.karte.gedreht .karte-flip { transform: rotateY(180deg); }
.karte-face { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 40px 34px 46px; color: var(--pergament); font: inherit;
  border: 0; background: none; image-rendering: pixelated; border-image: url(px/rahmen_art.png?v=2) 64 fill / 64px stretch; cursor: pointer; }
.karte-huene .karte-face { border-image-source: url(px/rahmen_hue_voll.png?v=2); }
.karte-hinten { transform: rotateY(180deg); cursor: default; justify-content: center; }
.karte:not(.gedreht) .karte-hinten, .karte.gedreht .karte-vorne { pointer-events: none; }
.karte-vorne .karte-bild { display: block; width: 100%; }
.karte-name { display: block; font-family: var(--px); font-weight: 700; font-size: 1.5rem; line-height: 1.15; color: var(--gold-hell-px); text-shadow: 3px 3px 0 #000; margin-top: .6rem; }
.karte-name.klein { font-size: 1.3rem; margin: 0 0 .2rem; }
.karte-motto { display: block; font-style: italic; font-size: .95rem; }
.karte-hinweis { display: inline-block; margin-top: .5rem; padding: .3rem .7rem; font-size: .85rem; font-weight: 700; color: #1a0f08; background: var(--gold-px);
  box-shadow: 0 0 0 3px #1a0f08; animation: hinweis-wippen 1.2s steps(2) infinite; }
@keyframes hinweis-wippen { 50% { translate: 0 -3px; } }
.kh-klasse { font-size: .85rem; color: var(--gold-hell-px); margin: 0 0 .6rem; text-shadow: 2px 2px 0 #000; }
.kh-fakten { list-style: none; padding: 0; margin: 0 0 1.2rem; text-align: left; width: 100%; }
.kh-fakten li { position: relative; padding: .45rem .5rem .45rem 1.6rem; font-size: .95rem; line-height: 1.4; background: rgba(0,0,0,.45); margin-bottom: .35rem; text-shadow: 1px 1px 0 #000; }
.kh-fakten li::before { content: ''; position: absolute; left: .55rem; top: .85rem; width: 6px; height: 6px; background: var(--gold-px); box-shadow: 0 0 0 2px #1a0f08; }
.kh-los { font-size: 1.05rem !important; }
.kh-stand { font-size: .8rem; color: #bfa983; margin: .6rem 0 .2rem; }
.kh-zurueck { background: none; border: 0; color: #bfa983; font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }

/* Seitenleiste im Kapitel */
.seiten-leiste { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 4px !important; padding: 0 !important; margin-bottom: .2rem; mask-image: none !important; -webkit-mask-image: none !important; overflow: visible !important; }
.seiten-leiste a { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .45rem .2rem .55rem !important; transform: none !important; text-align: center;
  background: #2a1c12 !important; color: #a8946f !important; border: 0 !important; box-shadow: inset 0 -4px 0 #1a0f08; font-size: .78rem !important; line-height: 1.2; }
.seiten-leiste a .nr { width: 22px; height: 22px; display: grid; place-items: center; background: #1a0f08; color: #a8946f; font-weight: 700; }
.seiten-leiste a.vorher, .seiten-leiste a.besucht { color: #d8c69e !important; }
.seiten-leiste a.besucht .nr { background: #6fbf73; color: #1a0f08; }
.seiten-leiste a.aktiv { background: #ead6a8 !important; color: #5a0f0f !important; box-shadow: inset 0 -4px 0 #a8281a; }
.seiten-leiste a.aktiv .nr { background: #a8281a; color: #fff1d6; }
.seiten-info { margin: .5rem 0 .8rem; font-size: .85rem; color: #bfa983; text-align: center; }
.seiten-info b { color: var(--gold-hell-px); }

/* Questbuch-Knopf und Questlog */
.questbuch-knopf { display: flex; align-items: center; gap: .4rem; background: #2a1c12; border: 0; cursor: pointer; padding: .2rem .6rem .2rem .25rem;
  color: var(--gold-hell-px); font-family: var(--px); font-weight: 700; font-size: .9rem; box-shadow: 0 0 0 3px var(--gold-px); }
.questbuch-knopf img { width: 32px !important; }
.questbuch-knopf[aria-expanded="true"] { background: var(--gold-px); color: #1a0f08; }
.questlog { position: fixed; z-index: 60; top: 3.6rem; right: .8rem; width: min(380px, calc(100vw - 1.6rem)); max-height: calc(100vh - 5rem); overflow-y: auto;
  background: #22160d; color: var(--pergament); padding: .9rem 1rem 1.1rem;
  box-shadow: 0 -4px 0 #1a0f08, 0 4px 0 #1a0f08, -4px 0 0 #1a0f08, 4px 0 0 #1a0f08, inset 0 0 0 3px var(--gold-px), 8px 12px 0 rgba(0,0,0,.5); animation: blatt-px .25s steps(3); }
.questlog[hidden] { display: none; }
.ql-kopf { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.ql-kopf img { width: 36px !important; }
.ql-kopf b { font-size: 1.2rem; color: var(--gold-hell-px); text-shadow: 2px 2px 0 #000; flex: 1; }
.ql-zu { background: none; border: 0; color: var(--gold-px); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.ql-liste { list-style: none; margin: 0 0 1rem; padding: 0; }
.ql-liste a { display: flex; align-items: center; gap: .55rem; padding: .55rem .3rem; text-decoration: none; color: inherit; border-bottom: 2px dashed #4a3220; }
.ql-liste img { width: 30px !important; height: 30px; object-fit: cover; box-shadow: 0 0 0 2px #6b5235; }
.ql-haken { width: 18px; height: 18px; flex: 0 0 auto; background: #1a0f08; box-shadow: 0 0 0 2px #8a6a48; }
.ql-titel { flex: 1; font-size: .92rem; }
.ql-liste em { font-style: normal; font-size: .8rem; color: #bfa983; }
.ql-liste li.aktuell a { background: rgba(226,176,74,.12); }
.ql-liste li.aktuell .ql-titel { color: var(--gold-hell-px); font-weight: 700; }
.ql-liste li.fertig .ql-titel { color: #8fd48f; text-decoration: line-through; text-decoration-thickness: 2px; }
.ql-liste li.fertig .ql-haken { background: #6fbf73 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%231a0f08' d='M1 4h1v2H1zM2 5h1v2H2zM3 6h1v2H3zM4 5h1v2H4zM5 4h1v2H5zM6 3h1v2H6zM7 2h1v2H7z'/%3E%3C/svg%3E") center / 100% no-repeat; box-shadow: 0 0 0 2px #6fbf73; }
.ql-weiter { width: 100%; justify-content: center; }

/* Quest-Banner */
.quest-banner { position: fixed; z-index: 95; left: 50%; top: 4.2rem; transform: translateX(-50%); display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1.1rem; background: var(--gold-px); color: #1a0f08; box-shadow: 0 0 0 4px #1a0f08, 8px 10px 0 4px rgba(0,0,0,.4);
  animation: banner-rein .4s steps(4); transition: opacity .4s steps(4), translate .4s steps(4); max-width: calc(100vw - 2rem); }
.quest-banner img { width: 40px !important; height: 40px; object-fit: cover; box-shadow: 0 0 0 2px #1a0f08; }
.quest-banner small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #6b3510; }
.quest-banner b { font-size: 1.05rem; }
.quest-banner.weg { opacity: 0; translate: 0 -12px; }
@keyframes banner-rein { from { opacity: 0; translate: 0 -16px; } }

/* Weiter-Leiste unten */
.weiter-fix { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(15,10,7,.94); border-top: 4px solid #1a0f08; box-shadow: 0 -4px 0 #3a2618; }
.weiter-fix[hidden] { display: none; }
.weiter-fix a { display: flex; align-items: center; gap: .8rem; max-width: 560px; margin: 0 auto; padding: .55rem 1rem; text-decoration: none; color: #1a0f08; background: var(--gold-px);
  box-shadow: inset -4px -4px 0 var(--gold-dunkel-px), inset 4px 4px 0 var(--gold-hell-px), 0 0 0 3px #1a0f08; }
.weiter-fix a:active { translate: 2px 2px; }
.wf-text { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.wf-text small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #6b3510; font-weight: 700; }
.wf-text b { font-size: 1.05rem; }
.wf-pfeil { font-size: 1.3rem; animation: pfeil-px 1s steps(2) infinite; }
@keyframes pfeil-px { 50% { translate: 4px 0; } }
body.mit-weiter main#buehne { padding-bottom: 7rem; }
body.mit-weiter .wurf { bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
@media (min-width: 701px) { body.mit-weiter .wurf { bottom: 6rem; } }

/* Alte Weiter-Elemente werden durch die Leiste ersetzt */
.tour-weiter, .weiter-leiste, .anderer { display: none !important; }

/* Abenteuer mit fünf Stationen */
.tour-stationen.fuenf { grid-template-columns: repeat(5, 1fr); }
.tour-stationen.fuenf::before { left: 10%; right: 10%; }
.tour-stationen a { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-decoration: none; color: inherit; }
.tour-stationen.fuenf img { width: 56px !important; height: 56px; object-fit: cover; }
@media (max-width: 700px) {
  .tour-stationen.fuenf { grid-template-columns: 1fr; gap: .5rem; text-align: left; }
  .tour-stationen.fuenf::before { left: 31px; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto;
    background: repeating-linear-gradient(180deg, var(--gold-px) 0 8px, transparent 8px 16px); }
  .tour-stationen.fuenf a { flex-direction: row; align-items: center; gap: .8rem; }
  .tour-stationen.fuenf b { margin: 0; font-size: .95rem; }
  .tour-stationen.fuenf small { display: block; }
  .tour-stationen.fuenf a > b, .tour-stationen.fuenf a > small { text-align: left; }
  .tour-stationen.fuenf li { align-items: stretch; }
  .tour-stationen.fuenf a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: .8rem; }
  .tour-stationen.fuenf img { grid-row: 1 / 3; }
  .seiten-leiste a .t { display: none; }
  .seiten-leiste a.aktiv .t { display: block; font-size: .7rem; }
  .questlog { top: 3.3rem; right: .5rem; }
  .karte-face { padding: 36px 26px 44px; }
  .karte-name { font-size: 1.3rem; }
}
.karte-hinten { padding-top: 58px; padding-bottom: 54px; }
.kh-fakten li { font-size: .88rem; padding-top: .35rem; padding-bottom: .35rem; }
@media (max-width: 700px) {
  .karte-hinten { padding: 54px 26px 50px; }
  .portrait-rahmen { max-width: 250px; }
  .dossier-name { font-size: 1.3rem; }
}

/* Steckbrief: das Wichtigste zuerst */
.steckbrief { margin: 0 0 1.4rem; display: grid; gap: .7rem; }
.steckbrief > div { background: rgba(255,250,235,.5); padding: .7rem .9rem .8rem; box-shadow: inset 4px 0 0 #a8281a, 0 0 0 2px rgba(90,61,28,.35); }
.steckbrief dt { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #a8281a; margin-bottom: .25rem; }
.steckbrief dd { margin: 0; line-height: 1.55; }
.steckbrief .albtraum { min-height: 0; margin: .2rem 0 0; padding: .7rem .9rem; text-align: left; display: block; width: 100%; }
.alb-hinten { position: static !important; display: none !important; opacity: 1 !important; transform: none !important; filter: none !important; padding: 0 !important; font-size: 1rem !important; line-height: 1.5; }
.albtraum.offen .alb-vorne { display: none; }
.albtraum.offen .alb-hinten { display: block !important; }
.alb-vorne { font-size: .95rem; }

/* Zusätzliches zum Aufklappen */
.zusatz { margin: .8rem 0; background: rgba(90,61,28,.08); box-shadow: 0 0 0 2px rgba(90,61,28,.35); }
.zusatz > summary { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; cursor: pointer; list-style: none; font-weight: 700; color: #3a210c; }
.zusatz > summary::-webkit-details-marker { display: none; }
.zusatz > summary small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #8a5a24; font-weight: 600; }
.z-plus { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; background: #5a3d1c; color: #f6e9c9; font-weight: 700; }
.zusatz[open] .z-plus { background: #a8281a; }
.zusatz[open] .z-plus { font-size: 0; } .zusatz[open] .z-plus::after { content: '–'; font-size: 1rem; }
.zusatz-inhalt { padding: .2rem .9rem 1rem; }
.zusatz-inhalt .faehigkeiten { margin-top: .4rem; }

/* Startbildschirm: Pixel-Brief auf dem Schreibtisch */
.intro { background: #120b07 url(px/schreibtisch.png) center / cover no-repeat; image-rendering: pixelated; padding: .8rem; }
.intro::before { content: ''; position: absolute; inset: 0; background: rgba(10,6,3,.35); pointer-events: none; }
.intro-brief { background: none !important; box-shadow: none !important; image-rendering: pixelated; filter: drop-shadow(8px 10px 0 rgba(0,0,0,.5));
  border: 0; border-image: url(px/brief_voll.png) 44 fill / 44px stretch; padding: 30px 34px 32px; width: min(470px, 100%);
  max-height: calc(100svh - 1.6rem); overflow-y: auto; scrollbar-width: none; }
.intro-brief::-webkit-scrollbar { display: none; }
.intro-brief::before { display: none; }
.intro-strauss { width: clamp(72px, 14svh, 150px) !important; margin: 0 auto .2rem; }
.intro-klein { font-size: .72rem; }
.intro-brief h1 { font-size: clamp(1.7rem, 4.6svh, 2.5rem); margin: 0 0 .5rem; text-shadow: 3px 3px 0 #f2c4a8; }
.intro-brief p { font-size: clamp(.82rem, 1.95svh, 1rem); line-height: 1.45; margin: 0 0 .55rem; }
.intro-nebenbei { font-size: clamp(.75rem, 1.7svh, .9rem) !important; }
.intro-gruss { margin-top: .6rem !important; }
.intro-knoepfe { gap: .8rem; margin-top: .3rem; }
.intro-knoepfe .knopf-wurf { padding: .5rem .9rem; font-size: .92rem; }
.intro-nein { padding: .35rem .9rem .4rem; }
@media (max-width: 420px) { .intro-brief { padding: 26px 24px 28px; border-image-width: 36px; } }
@media (min-width: 701px) { .intro { background-size: auto 100%; } }

/* Fee fliegt vor dem Brief durchs Bild */
#fee-flug { position: absolute; z-index: 3; left: 0; top: 0; width: 96px !important; display: none; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255,240,180,.6)); }
.intro.flug #fee-flug { display: block; animation: fee-flug 5.6s ease-in-out forwards; }
.intro.flug .intro-brief { visibility: hidden; }
.intro:not(.flug) .intro-brief { animation: brief-rein .6s steps(6); }
.flug-hinweis { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; margin: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,240,200,.6); display: none; }
.intro.flug .flug-hinweis { display: block; }
@keyframes fee-flug {
  0%   { transform: translate(-120px, 20vh) scaleX(1); }
  14%  { transform: translate(40vw, 12vh) scaleX(1) rotate(-6deg); }
  28%  { transform: translate(calc(100vw + 40px), 26vh) scaleX(1); }
  29%  { transform: translate(calc(100vw + 40px), 58vh) scaleX(-1); }
  45%  { transform: translate(45vw, 50vh) scaleX(-1) rotate(6deg); }
  60%  { transform: translate(-140px, 64vh) scaleX(-1); }
  61%  { transform: translate(-140px, 80vh) scaleX(1); }
  76%  { transform: translate(30vw, 52vh) scaleX(1) rotate(-8deg); }
  90%  { transform: translate(calc(50vw - 48px), 34vh) scaleX(1) scale(1.3); opacity: 1; }
  100% { transform: translate(calc(50vw - 48px), 30vh) scaleX(1) scale(.2); opacity: 0; }
}
.glitzer { position: fixed; z-index: 2; width: 6px; height: 6px; pointer-events: none; animation: glitzer .9s steps(4) forwards; }
@keyframes glitzer { to { transform: translateY(26px) scale(.3); opacity: 0; } }
.intro.flug .intro-brief { animation: none; }
