: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; } }
