/* vucahelden.de: Gestaltung der Seite. Layout: Vollbild-3D im Hintergrund, Karten links (Handy: unten), Handbuch als Doppelseite in der Mitte */
/* Layout: die VUCA-Helden fliegen im Vollbild über die Karte, die Etappen liegen als Karten links (Handy: unten). Zwischen den Etappen ist Scrollweg für den Flug */
:root { --paper: #fbf8f1; --ink: #2a2a2a; --navy: #16212d; --soft: #5f6670; --red: #e2262b; --blue: #3678b4;
  --head: "Archivo", "Arial Narrow", sans-serif; --serif: "Spectral", Georgia, serif; --hand: "Caveat", cursive; }
* { box-sizing: border-box; }
body { margin: 0; background: #e4eef5; color: var(--ink); font: 400 1.04rem/1.6 var(--serif); }
.scene3d { position: fixed; inset: 0; z-index: 0; }
.scene3d canvas { display: block; width: 100%; height: 100%; }
.scene3d .fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; font: 600 1rem/1.4 var(--head); color: var(--soft); }
.hud { position: fixed; left: 16px; top: 16px; z-index: 5; pointer-events: none; display: flex; gap: .5rem; align-items: center; }
.hud .disp { font: 700 1.5rem/1 var(--hand); color: var(--ink); background: rgb(251 248 241 / .9); padding: .35rem .8rem .45rem; border-radius: 6px; border: 2px solid var(--ink); }
.content { position: relative; z-index: 2; pointer-events: none; }
.card { pointer-events: auto; max-width: 33rem; margin-left: clamp(16px, 5vw, 5rem); margin-right: 16px; background: rgb(251 248 241 / .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 2px solid var(--ink); border-radius: 10px; padding: 1.5rem; box-shadow: 6px 6px 0 rgb(42 42 42 / .25); }
.stop { min-height: 100vh; display: flex; align-items: center; padding: 8vh 0; }
.travel { height: 340vh; }
.label { font: 700 .76rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
h1 { font: 700 clamp(2.8rem, 6vw, 4.4rem)/.95 var(--hand); margin: .4rem 0 .8rem; }
h2 { font: 700 clamp(2.1rem, 4vw, 2.8rem)/1 var(--hand); margin: .4rem 0 .7rem; }
h2 small { display: block; font: 800 .95rem/1.2 var(--head); letter-spacing: .02em; color: var(--soft); margin-top: .35rem; }
.places { display: flex; flex-wrap: wrap; gap: .35rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.places li { font: 500 1.15rem/1 var(--hand); padding: .3rem .6rem .35rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; }
.models { font: 600 .82rem/1.5 var(--head); color: var(--soft); margin-top: .8rem; }
.ask { font: 700 1.05rem/1.35 var(--head); margin: 1rem 0 .3rem; }
.pencil { font: 500 1.45rem/1.15 var(--hand); color: var(--blue); margin: .6rem 0 .2rem; }
.draft { font: 600 .7rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: #914795; }
.row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.btn { pointer-events: auto; display: inline-flex; font: 800 .95rem/1 var(--head); text-decoration: none; padding: .8rem 1.05rem; border-radius: 6px; border: 2px solid var(--navy); background: var(--navy); color: #f4efe4; box-shadow: 3px 3px 0 var(--red); }
.btn.ghost { background: var(--paper); color: var(--navy); box-shadow: 3px 3px 0 #9cc3e6; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pick { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .2rem; }
.pick button { font: 800 .9rem/1 var(--head); padding: .7rem .95rem; border-radius: 999px; border: 2px solid var(--navy); background: var(--paper); color: var(--navy); cursor: pointer; }
.pick button[aria-checked="true"] { background: var(--navy); color: #f4efe4; box-shadow: 3px 3px 0 var(--red); }
.pick button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ad { margin-top: 1rem; border: 1.5px dashed #9a907d; border-radius: 8px; padding: .8rem; display: grid; grid-template-columns: 4.2rem 1fr; gap: .8rem; align-items: center; background: #fffdf7; position: relative; }
.ad::before { content: "Anzeige"; position: absolute; top: -.55rem; left: .7rem; background: #f8f4ea; padding: 0 .35rem; font: 700 .62rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: #9a907d; }
.ad img { width: 100%; height: auto; display: block; box-shadow: 2px 3px 6px rgb(0 0 0 / .25); border-radius: 2px; }
.ad b { font: 800 .95rem/1.2 var(--head); display: block; }
.ad span { font-size: .85em; color: #6b6455; display: block; margin: .2rem 0 .45rem; }
.ad a { font: 800 .8rem/1 var(--head); color: var(--navy); margin-right: .7rem; text-decoration-color: var(--red); text-underline-offset: 3px; }
.cue { margin-top: 1.4rem; font: 700 .78rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.note { font-size: .82rem; color: var(--soft); margin-top: 1rem; }
.wanne { margin: 1.1rem 0 .4rem; padding: .8rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; }
.wanne svg { width: 100%; height: auto; display: block; }
.wanne text { font: 500 15px var(--hand); fill: var(--ink); }
.wanne figcaption { font-size: .86rem; color: var(--soft); margin-top: .4rem; }
.quote { font: 500 1.6rem/1.15 var(--hand); margin: 1rem 0 .2rem; }
.links { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .45rem; }
.links li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px solid rgb(42 42 42 / .15); padding-bottom: .4rem; }
.links a { color: var(--navy); font: 700 .98rem/1.3 var(--head); text-decoration-color: var(--red); text-underline-offset: 3px; }
.links span { font: 600 .8rem/1 var(--head); color: var(--soft); }
.bookstop { min-height: 140vh; } /* gelandet: die Helden stehen, weiterscrollen heißt weiterfliegen */
/* Durchflug-Ort: kurzer Abschnitt, in dem die Helden langsam vorbeifliegen; erst „Landen“ macht daraus den langen Ortsabschnitt */
.bookstop:not(.land) { min-height: 120vh; }
.spread { position: fixed; z-index: 4; left: 50%; top: 50%; width: min(94vw, calc(84vh * 1.45)); height: min(84vh, calc(94vw / 1.45)); transform: translate(-50%, -50%) scale(.95); opacity: 0; pointer-events: none; transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1); perspective: 2400px; }
.spread.on { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.sheets { position: absolute; inset: 0; filter: drop-shadow(0 26px 34px rgb(22 33 45 / .38)); }
/* Seitenschnitt: gestapelte Blattkanten rechts und links */
.sheets::before, .sheets::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 7px; background: repeating-linear-gradient(90deg, #efe8d8 0 1px, #d9cfbb 1px 2px); }
.sheets::before { left: -6px; border-radius: 4px 0 0 4px; } .sheets::after { right: -6px; border-radius: 0 4px 4px 0; }
.sheet { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; visibility: hidden; transform-style: preserve-3d; }
.sheet.on { visibility: visible; }
.page { position: relative; overflow: hidden; padding: clamp(1.1rem, 2.4vw, 2.3rem) clamp(1.1rem, 2.6vw, 2.5rem) 2.6rem; font-size: clamp(.82rem, .98vw, .98rem); line-height: 1.55; color: #2b2a27;
  background-color: #f8f4ea; background-image: radial-gradient(rgb(120 100 70 / .045) 1px, transparent 1.2px); background-size: 5px 5px; }
.page.left { border-radius: 8px 2px 2px 8px; box-shadow: inset -36px 0 40px -30px rgb(90 70 40 / .35); }
.page.right { border-radius: 2px 8px 8px 2px; box-shadow: inset 36px 0 40px -30px rgb(90 70 40 / .35); }
.page .run { font: 700 .66rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: #9a907d; border-bottom: 1px solid #e3dac7; padding-bottom: .55rem; margin-bottom: 1rem; }
.page.right .run { text-align: right; }
.page .folio { position: absolute; bottom: 1rem; font: 500 1.05rem/1 var(--hand); color: #9a907d; }
.page.left .folio { left: clamp(1.1rem, 2.6vw, 2.5rem); } .page.right .folio { right: clamp(1.1rem, 2.6vw, 2.5rem); }
.page .kicker { font: 700 .72rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.page .title { font: 700 clamp(2.4rem, 4.2vw, 3.6rem)/.9 var(--hand); margin: .3rem 0 .2rem; }
.page .sub { font: 700 .95rem/1.3 var(--head); color: #6b6455; margin: 0 0 .4rem; }
.page h3 { font: 700 clamp(1.5rem, 2.2vw, 2rem)/1 var(--hand); margin: .2rem 0 .5rem; }
.page h4 { font: 800 .72rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; margin: 1.1rem 0 .45rem; color: #6b6455; }
.page p { margin: 0 0 .7rem; }
.page .lead { font-size: 1.08em; }
.drop::first-letter { float: left; font: 700 3.4em/.8 var(--hand); color: var(--red); margin: .1em .12em 0 0; }
.ill { width: 100%; height: auto; display: block; margin: .3rem 0 .6rem; }
.ill.small { max-height: 7.5rem; }
.ill .h { font: 700 26px var(--hand); fill: #2a2a2a; } .ill .h2 { font: 700 15px var(--hand); fill: #2a2a2a; } .ill .s { font: 500 14px var(--hand); fill: #5b5446; }
.cap { font-size: .8em; color: #8b8270; margin-top: -.2rem; }
.ill .mk circle { fill: #f8f4ea; stroke: #2a2a2a; stroke-width: 2; } .ill .mk text { font: 700 14px var(--head); fill: #2a2a2a; text-anchor: middle; }
.legend { margin: -.2rem 0 .6rem; padding: 0; list-style: none; counter-reset: lg; display: flex; flex-wrap: wrap; gap: .2rem 1rem; font: 500 1.05rem/1.2 var(--hand); }
.legend li { counter-increment: lg; } .legend li::before { content: counter(lg); font: 700 .7rem/1 var(--head); border: 1.5px solid #2a2a2a; border-radius: 50%; width: 1.1rem; height: 1.1rem; display: inline-grid; place-items: center; margin-right: .3rem; vertical-align: .1em; }
.fact { margin: .9rem 0; padding: .8rem .9rem; border: 1.5px solid #2a2a2a; border-radius: 6px; background: #fffdf7; display: grid; gap: .35rem; transform: rotate(-.6deg); box-shadow: 3px 3px 0 #e8dcc2; }
.fact div { display: grid; grid-template-columns: 6.2rem 1fr; gap: .5rem; font-size: .92em; }
.fact b { font: 800 .72rem/1.5 var(--head); letter-spacing: .08em; text-transform: uppercase; color: #6b6455; }
.steps { margin: .6rem 0 .8rem; padding: 0; list-style: none; counter-reset: st; display: grid; gap: .5rem; }
.steps li { counter-increment: st; position: relative; padding-left: 2.4rem; min-height: 1.8rem; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -.05rem; font: 700 1.5rem/1 var(--hand); color: var(--red); border: 1.5px solid currentColor; border-radius: 50%; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; }
blockquote { margin: .4rem 0 1rem; font: 700 clamp(1.4rem, 2vw, 1.8rem)/1.1 var(--hand); }
blockquote cite { display: block; font: 600 .7rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: #9a907d; font-style: normal; margin-top: .4rem; }
.asks { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.asks li { padding-left: 1.3rem; position: relative; font-weight: 500; }
.asks li::before { content: "?"; position: absolute; left: 0; top: -.15rem; font: 700 1.3rem/1 var(--hand); color: var(--red); }
.inbook-q { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.inbook-q li { padding-left: 1.3rem; position: relative; }
.inbook-q li::before { content: "›"; position: absolute; left: 0; top: -.15rem; font: 700 1.3rem/1 var(--hand); color: var(--blue, #005aa6); }
.spread .links li { border-bottom-color: #e3dac7; }
.turn { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--navy); background: var(--paper); color: var(--navy); font: 700 1.6rem/1 var(--head); cursor: pointer; display: grid; place-items: center; box-shadow: 2px 2px 0 var(--red); z-index: 3; }
.turn.prev { left: -1.3rem; } .turn.next { right: -1.3rem; }
.turn[disabled] { opacity: .3; cursor: default; }
.turn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pgind { position: absolute; left: 50%; bottom: -2rem; transform: translateX(-50%); font: 700 .8rem/1 var(--head); letter-spacing: .1em; color: var(--navy); background: rgb(251 248 241 / .9); padding: .35rem .6rem; border-radius: 999px; }
/* Umblättern: das rechte Blatt dreht sich um den Falz nach links */
.flipper { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: left center; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.45,.05,.3,1); z-index: 2; pointer-events: none; }
.flipper.back { left: 0; transform-origin: right center; }
.flipper > .face { position: absolute; inset: 0; backface-visibility: hidden; }
.flipper > .face.b { transform: rotateY(180deg); }
.flipper .page { height: 100%; }
@media (max-width: 860px) {
  .spread { width: 94vw; height: 82vh; }
  .sheet { grid-template-columns: 1fr; overflow: auto; background: #f8f4ea; border-radius: 8px; }
  .page { overflow: visible; border-radius: 0 !important; box-shadow: none !important; }
  .turn.prev { left: 0; top: auto; bottom: -3.2rem; transform: none; } .turn.next { right: 0; top: auto; bottom: -3.2rem; transform: none; }
  .pgind { display: none; }
  .sheets::before, .sheets::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .spread, .flipper { transition: none; } }
footer { position: relative; z-index: 2; background: var(--paper); padding: 1.5rem 16px 2rem; font: 500 .85rem/1.4 var(--head); color: var(--soft); display: flex; gap: 1.2rem; flex-wrap: wrap; }
footer a { color: inherit; }
@media (max-width: 860px) {
  .stop { align-items: flex-end; padding: 55vh 0 4vh; }
  .card { margin: 0 12px; }
  .travel { height: 280vh; }
}

/* Ohne WebGL: Inhalte als normale Seite, Handbuch im Fluss */
.no-3d .scene3d, .no-3d .hud { display: none; }
.no-3d body { background: #f4efe4; }
.no-3d .travel { height: 2rem; }
.no-3d .stop, .no-3d .bookstop, .no-3d .bookstop:not(.land) { min-height: auto; padding: 1.5rem 0; }
.no-3d .spread { position: relative; left: auto; top: auto; transform: none; opacity: 1; pointer-events: auto; width: auto; height: auto; max-width: 64rem; margin: 0 auto; padding: 0 12px; }
.no-3d .sheets { position: relative; inset: auto; filter: none; display: grid; gap: 1.2rem; }
.no-3d .sheets::before, .no-3d .sheets::after, .no-3d .turn, .no-3d .pgind { display: none; }
.no-3d .sheet { position: relative; inset: auto; visibility: visible; box-shadow: 0 10px 24px rgb(22 33 45 / .2); border-radius: 8px; overflow: hidden; }
.no-3d .page { overflow: visible; }
/* Vorschaubild für geteilte Links: nur die Szene */
.og .content, .og .hud, .og footer, .og .lift, .og .toc-book { display: none !important; }

/* Fahrten zwischen Orten derselben Region sind kürzer */
.travel.short { height: 200vh; }
@media (max-width: 860px) { .travel.short { height: 170vh; } }
/* Handbuchseiten scrollen, falls der Text länger ist als die Seite */
.spread .page { overflow-y: auto; scrollbar-width: thin; }
/* Handy: eine durchgehende Spalte, die ganze Seite scrollt (sonst quetscht das Raster die Seiten zu Mini-Scrollboxen) */
@media (max-width: 860px) { .spread .page { overflow: visible; padding-bottom: 3rem; } }

/* Handbuch schließen */
.spread .closers { position: absolute; bottom: -3.1rem; right: 0; z-index: 5; display: flex; gap: .5rem; }
.spread .closers button { position: static; font: 800 .82rem/1 var(--head); letter-spacing: .04em; padding: .6rem .85rem; border-radius: 999px; border: 2px solid var(--navy); background: var(--paper); color: var(--navy); cursor: pointer; box-shadow: 2px 2px 0 var(--red); }
.spread .closers button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.no-3d .spread .closers { display: none; }
.spread .shut { box-shadow: 2px 2px 0 #9cc3e6 !important; }

/* kleine Buchanzeige am Ende jeder Doppelseite */
.ad.small { grid-template-columns: 2.8rem 1fr; padding: .6rem .7rem; margin-top: 1rem; }
.ad.small span { margin: .1rem 0 .3rem; }

/* Inhaltsverzeichnis: ein kleines Buch am rechten Rand */
.toc-book { position: fixed; right: max(14px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%) rotate(-4deg); z-index: 6; width: 3.1rem; height: 4.3rem; border: 2px solid #0f1a33; border-radius: 3px 6px 6px 3px; background: #1d2b55; cursor: pointer; padding: 0; box-shadow: 4px 5px 0 rgb(22 33 45 / .25); transition: transform .25s; }
.toc-book:hover, .toc-book[aria-expanded="true"] { transform: translateY(-50%) rotate(0deg) scale(1.05); }
.toc-book .spine { position: absolute; left: 0; top: 0; bottom: 0; width: .45rem; background: #0f1a33; }
.toc-book .lbl { position: absolute; inset: 0 0 0 .45rem; display: grid; place-items: center; font: 700 1.05rem/1 var(--hand); color: #f2c230; writing-mode: vertical-rl; transform: rotate(180deg); }
.toc-book:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.toc { position: fixed; z-index: 7; right: calc(max(14px, env(safe-area-inset-right)) + 3.8rem); top: 50%; transform: translateY(-50%); width: min(22rem, calc(100vw - 6rem)); max-height: 82vh; overflow: auto; background: #f8f4ea; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 8px 8px 0 rgb(22 33 45 / .25); padding: 1rem 1.1rem 1.2rem;
  background-image: radial-gradient(rgb(120 100 70 / .045) 1px, transparent 1.2px); background-size: 5px 5px; }
.toc[hidden] { display: none; }
.toc-head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; border-bottom: 1px solid #e3dac7; padding-bottom: .6rem; margin-bottom: .6rem; }
.toc-head b { font: 700 .68rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: #9a907d; }
.toc-head span { grid-column: 1; font: 700 2rem/1 var(--hand); margin-top: .3rem; }
.toc-x { grid-column: 2; grid-row: 1 / 3; border: 0; background: none; font: 700 1.1rem/1 var(--head); cursor: pointer; color: var(--ink); padding: .3rem; }
.toc-list, .toc-list ol { list-style: none; margin: 0; padding: 0; }
.toc-stage > a { display: flex; gap: .55rem; align-items: baseline; font: 700 1.35rem/1.2 var(--hand); color: var(--ink); text-decoration: none; margin-top: .55rem; }
.toc-stage > a span { font: 800 .7rem/1 var(--head); color: var(--red); border: 1.5px solid currentColor; border-radius: 50%; width: 1.25rem; height: 1.25rem; display: inline-grid; place-items: center; flex: none; transform: translateY(-.15rem); }
.toc-list ol li a { display: block; padding: .22rem 0 .22rem 1.8rem; font: 500 .95rem/1.3 var(--serif); color: #3b3a36; text-decoration: none; border-bottom: 1px dotted #e3dac7; }
.toc a:hover { color: var(--red); }
.toc a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.no-3d .toc-book { top: auto; bottom: 16px; transform: none; }

/* Während eines Direktflugs treten Karten und Handbuch zurück */
.content .card, .content .room > .wrap { transition: opacity .5s; }
@media (max-width: 860px) {
  .toc-book { top: auto; bottom: 16px; transform: none; width: 2.7rem; height: 3.7rem; }
  .toc-book:hover, .toc-book[aria-expanded="true"] { transform: scale(1.05); }
  .toc { top: auto; bottom: 5.2rem; transform: none; right: 12px; width: calc(100vw - 24px); max-height: 70vh; }
}

/* Ruhe: Karte und Handbuch nie gleichzeitig */
body.book-open .content .card { opacity: 0; pointer-events: none; }
.inbook { font: 600 .85rem/1.4 var(--head); color: var(--soft); margin: 1rem 0 0; }
.inbook a { color: var(--navy); }
.spread .links li span { text-align: right; max-width: 45%; }
@media (max-width: 860px) {
  .content .card { max-height: 40vh; overflow: auto; }
  .toc-book { top: 12px; bottom: auto; right: 12px; }
  .toc { top: 5.4rem; bottom: auto; }
  .spread .closers { bottom: -3.2rem; left: 0; right: 0; justify-content: center; pointer-events: none; } .spread .closers button { pointer-events: auto; }
}
@media (max-width: 860px) { #start .card .note, #start .cue { display: none; } #start .card > p:not(.note) { font-size: .92rem; line-height: 1.45; margin: 0 0 .8rem; } #start .card h1 { margin-bottom: .5rem; } }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 30; background: #ece4d2; display: grid; place-items: center; transition: opacity 1.2s ease, transform 1.4s ease; }
.intro-foot { position: absolute; bottom: 24px; right: 24px; display: flex; align-items: baseline; gap: 1.2rem; }
.intro-foot a, .intro-skip { font: 700 .85rem/1 var(--head); color: #5f6670; text-decoration: underline; text-underline-offset: 3px; }
.intro-foot a { font-weight: 500; }
.intro-skip { background: none; border: 0; padding: 0; cursor: pointer; }
.intro.out { opacity: 0; pointer-events: none; }
/* Intro: das Buch liegt zu, schlägt auf, die Karte fliegt in die Landschaft */
.intro { --pw: min(calc(66vh * .706), 44vw); }
.ib { position: absolute; left: 50%; top: 50%; width: var(--pw); aspect-ratio: 1412 / 2000; transform: translate(-50%, -50%); transform-style: preserve-3d; perspective: 2200px; perspective-origin: 0 50%; /* nur fürs Buch: die fliegende Seite (.ib-fly) rechnet ihre Perspektive selbst */ opacity: 0; transition: transform 1.4s cubic-bezier(.45,.05,.3,1), opacity .7s ease; }
.intro.shown .ib { opacity: 1; }
.intro.open .ib { transform: translate(0, -50%); }
.ib-page, .ib-cover, .ib-front, .ib-back { position: absolute; inset: 0; }
.ib-page { background: #fbf8f1; border: 1.5px solid #2b2723; border-radius: 2px 6px 6px 2px; box-shadow: 6px 8px 0 rgb(43 39 35 / .18); overflow: hidden; }
.ib-page img, .ib-front img, .ib-fly { display: block; width: 100%; height: 100%; }
.ib-cover { transform-origin: left center; transform-style: preserve-3d; transition: transform 1.4s cubic-bezier(.45,.05,.3,1); z-index: 2; }
.intro.open .ib-cover { transform: rotateY(-180deg); }
.ib-front, .ib-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2px 6px 6px 2px; overflow: hidden; }
.ib-front { box-shadow: 6px 8px 0 rgb(43 39 35 / .22); }
.ib-back { transform: rotateY(180deg); background: #f4efe4; border: 1.5px solid #2b2723; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .8rem; padding: 12%; text-align: center; color: #2b2723; }
.ib-back span { font: 700 clamp(.55rem, 1.4vh, .8rem)/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.ib-back b { font: 700 clamp(1.3rem, 4.4vh, 2.6rem)/1.05 var(--hand); }
.ib-fly { position: fixed; left: 0; top: 0; width: 706px; height: 1000px; transform-origin: 0 0; visibility: hidden; pointer-events: none; z-index: 1; transition: opacity .45s ease; }
.intro.land { background-color: transparent; transition: background-color .7s ease; }
.intro.morph .ib { opacity: 0; transition: opacity .5s ease; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }

/* ---------- Kapitelkarte: Tinte läuft ins Papier ---------- */
.chapter-card { position: fixed; z-index: 8; left: 50%; top: 18vh; transform: translateX(-50%); pointer-events: none; text-align: center; color: #2b2723; opacity: 0; filter: url(#ink-edge); }
.chapter-card span { display: block; font: 700 .85rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.chapter-card b { font: 700 clamp(2.6rem, 6vw, 4.8rem)/1 var(--hand); text-shadow: 0 0 22px rgb(236 228 210 / .9); white-space: nowrap; }
.chapter-card.on { animation: chapter 3.2s ease forwards; }
@keyframes chapter { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 18% { opacity: 1; clip-path: inset(0 0 0 0); } 72% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 860px) { .chapter-card { top: 12vh; } .chapter-card b { white-space: normal; } }

/* ---------- Minikarte ---------- */
.minimap { position: fixed; z-index: 6; right: max(14px, env(safe-area-inset-right)); bottom: 18px; width: 92px; height: 130px; transition: width .3s ease, height .3s ease; background: rgb(247 242 230 / .92); border: 2px solid #2b2723; border-radius: 6px; box-shadow: 3px 3px 0 rgb(43 39 35 / .2); padding: 4px; }
.minimap svg { width: 100%; height: 100%; display: block; }
.minimap .all { fill: none; stroke: #c9bfae; stroke-width: 18; stroke-linecap: round; }
.minimap .done { fill: none; stroke: #c4473b; stroke-width: 22; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.minimap a circle { fill: #f7f2e6; stroke: #2b2723; stroke-width: 9; cursor: pointer; }
.minimap a.seen circle { fill: #c4473b; }
.minimap a:hover circle, .minimap a:focus-visible circle { stroke: #3678b4; stroke-width: 14; }
.minimap .me { fill: #2f4fb8; stroke: #fff; stroke-width: 10; }
body.book-open .minimap, .no-3d .minimap { opacity: 0; pointer-events: none; }
.minimap:hover, .minimap:focus-within, .minimap.open { width: 176px; height: 250px; }
.minimap a circle { r: 52px; }
.minimap-toggle { display: none; }
@media (max-width: 860px) {
  .minimap { bottom: auto; top: 64px; right: 12px; width: 0; height: 0; padding: 0; border-width: 0; overflow: hidden; }
  .minimap.open { width: 176px; height: 250px; padding: 4px; border-width: 2px; }
  .minimap-toggle { display: block; position: fixed; z-index: 7; top: 14px; right: 160px; font: 700 .78rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; padding: .55rem .75rem; border-radius: 999px; border: 2px solid #2b2723; background: rgb(247 242 230 / .92); color: #2b2723; }
}

/* ---------- Klang und Teilen ---------- */
.sound { position: fixed; z-index: 6; right: max(14px, env(safe-area-inset-right)); top: 16px; font: 700 .78rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; padding: .55rem .75rem; border-radius: 999px; border: 2px solid #2b2723; background: rgb(247 242 230 / .92); color: #2b2723; cursor: pointer; }
.sound span::before { content: "○ "; }
.sound[aria-pressed="true"] span::before { content: "● "; color: #c4473b; }
.sound svg { display: none; }
@media (max-width: 860px) { .sound { right: 66px; top: 14px; } }
/* schmale Handys: Klang nur als Symbol, Karte rückt nach, damit nichts unter dem Hauptquartier-Knopf liegt */
@media (max-width: 520px) {
  .sound { right: 62px; width: 2.4rem; height: 2.4rem; padding: 0; display: grid; place-items: center; }
  .sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sound svg { display: block; width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .sound svg path:first-child { fill: currentColor; }
  .sound .wave { opacity: .3; } .sound[aria-pressed="true"] .wave { opacity: 1; stroke: #c4473b; }
  .minimap-toggle { right: 108px; }
  .wt-signal { padding-right: .7rem; letter-spacing: .05em; }
}
.share { margin-top: 1rem; font: 700 .9rem/1 var(--head); background: none; border: 0; color: var(--navy); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; cursor: pointer; padding: 0; }
@media (prefers-reduced-motion: reduce) { .chapter-card.on { animation: none; } }

/* Hinweis nach der Landung */
.open-hint { position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 6px); z-index: 30; pointer-events: none;
  font: 700 .8rem/1 var(--head); letter-spacing: .02em; color: var(--ink); background: rgba(250,246,236,.92);
  border: 1.5px solid var(--ink); border-radius: 999px; padding: .55rem 1rem .55rem .9rem; opacity: 0; transition: opacity .5s, transform .5s; }
.open-hint::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .55rem; vertical-align: .12rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
body.can-open .open-hint { opacity: 1; transform: translate(-50%, 0); transition-delay: .6s; }
.spread:focus { outline: none; }
/* Buchcover im Schluss */
#ende .card .end-cover { float: right; width: 92px; height: auto; margin: 0 0 .6rem 1rem; transform: rotate(2.5deg);
  box-shadow: 0 6px 14px rgba(40,30,15,.22); border-radius: 2px; }
@media (max-width: 860px) { #ende .card .end-cover { width: 70px; } .open-hint { bottom: auto; top: 4.4rem; white-space: nowrap; font-size: .8rem; } }

/* ---------- Hauptquartier: Signal und Werkzeuge ---------- */
.wt-signal { position: fixed; z-index: 8; top: 16px; right: calc(max(14px, env(safe-area-inset-right)) + 98px); display: inline-flex; align-items: center; gap: .4rem;
  font: 800 .78rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; padding: .5rem .8rem .5rem .6rem; border-radius: 999px;
  border: 2px solid var(--navy); background: var(--navy); color: #f4efe4; box-shadow: 2px 2px 0 var(--red); cursor: pointer; }
.wt-signal svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: #f2c230; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wt-signal:hover .ray, .wt-signal[aria-expanded="true"] .ray { stroke: #fff3c4; }
.wt-signal:focus-visible, .wt button:focus-visible, .wt a:focus-visible { outline: 3px solid #f2c230; outline-offset: 2px; }
html.wt-open { overflow: hidden; }
.wt { position: fixed; inset: 0; z-index: 40; background: rgb(239 230 211 / .28); opacity: 0; transition: opacity .25s; }
.wt.on { opacity: 1; }
.wt-card { position: absolute; top: 64px; right: max(14px, env(safe-area-inset-right)); width: min(460px, calc(100vw - 28px)); max-height: calc(100vh - 84px); overflow: auto; overscroll-behavior: contain;
  background: var(--paper); border: 2px solid var(--navy); border-radius: 10px; box-shadow: 5px 5px 0 var(--navy), 0 24px 50px rgb(22 33 45 / .28);
  padding: 1.1rem 1.25rem 1.3rem; transform: translateY(-8px); transition: transform .25s; font-size: .95rem; line-height: 1.5; color: var(--ink); }
.wt.on .wt-card { transform: none; }
.wt-head { position: relative; padding-right: 6.5rem; }
.wt-head h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); margin: .3rem 0 .6rem; }
.wt-x { position: absolute; top: -.2rem; right: 0; font: 700 .8rem/1 var(--head); padding: .45rem .7rem; border-radius: 999px; border: 2px solid var(--navy); background: var(--paper); color: var(--navy); cursor: pointer; }
.wt-tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--navy); margin: 0 -1.25rem .9rem; padding: 0 1.25rem; overflow-x: auto; }
.wt-tabs button { font: 800 .82rem/1 var(--head); padding: .6rem .7rem .55rem; border: 2px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; background: none; color: var(--soft); cursor: pointer; white-space: nowrap; margin-bottom: -2px; }
.wt-tabs button[aria-selected="true"] { color: var(--navy); background: var(--paper); border-color: var(--navy); border-bottom: 2px solid var(--paper); }
.wt-intro { margin: 0 0 .9rem; }
.wt h3 { font: 700 1.7rem/1 var(--hand); margin: .2rem 0 .6rem; }
.wt h4 { font: 800 .8rem/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; margin: 1rem 0 .4rem; color: var(--navy); }
.wt fieldset { border: 0; border-top: 1.5px dashed #cfc4ad; margin: 0; padding: .7rem 0 .3rem; }
.wt legend { font: 700 1.35rem/1 var(--hand); padding: 0 .4rem 0 0; }
.wt legend b { color: var(--red); }
.wt legend span { font: 600 .78rem/1.2 var(--head); color: var(--soft); margin-left: .3rem; }
.wt-q p { margin: .35rem 0 .3rem; }
.wt-scale { display: flex; gap: .35rem; }
.wt-scale label { position: relative; }
.wt-scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wt-scale span { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1.5px solid var(--navy); font: 700 .9rem/1 var(--head); color: var(--navy); background: #fff; }
.wt-scale input:checked + span { background: var(--navy); color: #f4efe4; box-shadow: 2px 2px 0 var(--red); }
.wt-scale input:focus-visible + span { outline: 3px solid #f2c230; outline-offset: 2px; }
.wt-legend { display: flex; justify-content: space-between; font: 600 .75rem/1.2 var(--head); color: var(--soft); margin: .6rem 0 .9rem; }
.wt .btn { border: 2px solid var(--navy); cursor: pointer; }
.wt .btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.wt-radar { display: block; width: min(240px, 70%); margin: 0 auto .6rem; }
.wt-radar .g { fill: none; stroke: #cfc4ad; stroke-width: 1; }
.wt-radar .v { fill: rgb(226 38 43 / .14); stroke: var(--red); stroke-width: 2.2; stroke-linejoin: round; }
.wt-radar text { font: 700 17px/1 var(--hand); fill: var(--navy); }
.wt-res { border-top: 1.5px dashed #cfc4ad; padding-top: .3rem; }
.wt-res p { margin: .2rem 0 .5rem; }
.lv { font: 700 .68rem/1 var(--head); letter-spacing: .08em; padding: .2rem .45rem; border-radius: 999px; border: 1.5px solid currentColor; margin-left: .3rem; vertical-align: .1rem; }
.lv.niedrig { color: #4f7a52; } .lv.mittel { color: #a77a12; } .lv.hoch { color: var(--red); }
.wt-flys { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .6rem; }
.wt-fly { font: 700 .8rem/1.2 var(--head); padding: .45rem .7rem; border-radius: 999px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; text-align: left; }
.wt-fly::before { content: "↗ "; color: var(--red); }
.wt-fly:hover { background: #eef3fa; }
.wt-src { font: 500 .75rem/1.4 var(--head); color: var(--soft); margin: .8rem 0 .5rem; }
.wt-link { font: 700 .85rem/1 var(--head); background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; cursor: pointer; }
.wt-case { background: #fff; border: 1.5px solid #cfc4ad; border-radius: 8px; padding: .7rem .9rem; margin-bottom: .8rem; box-shadow: 2px 2px 0 #e7dcc4; }
.wt-case p { margin: .3rem 0 0; font-size: 1.02rem; }
.wt-count { font: 800 .7rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.wt-grid { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--navy); border-radius: 8px; overflow: hidden; }
.wt-grid button { display: grid; gap: .25rem; text-align: left; padding: .75rem .8rem; border: 0; background: #fff; color: var(--ink); cursor: pointer; min-height: 4.4rem; }
.wt-grid button:nth-child(1), .wt-grid button:nth-child(2) { border-bottom: 1.5px solid var(--navy); }
.wt-grid button:nth-child(odd) { border-right: 1.5px solid var(--navy); }
.wt-grid b { font: 700 1.3rem/1 var(--hand); color: var(--navy); }
.wt-grid span { font: 600 .72rem/1.3 var(--head); color: var(--soft); }
.wt-grid button:not([disabled]):hover { background: #eef3fa; }
.wt-grid button[disabled] { cursor: default; }
.wt-grid button.right { background: #e3efd9; } .wt-grid button.wrong { background: #f7dcd8; }
.wt-fb p { margin: .7rem 0 .2rem; }
.wt-hint { color: var(--soft); font-style: italic; }
.wt-prac { font: 600 .8rem/1.4 var(--head); color: var(--soft); }
.wt-fb .btn { margin-top: .6rem; }
.wt-rules { padding-left: 1.1rem; margin: 0 0 .5rem; } .wt-rules li { margin-bottom: .35rem; }
.wt-concerns { list-style: none; padding: 0; margin: 0; }
.wt-concerns li { border-top: 1.5px dashed #cfc4ad; }
.wt-concerns button { width: 100%; text-align: left; font: 700 1.25rem/1.15 var(--hand); color: var(--navy); background: none; border: 0; padding: .65rem 1.6rem .65rem 0; cursor: pointer; position: relative; }
.wt-concerns button::after { content: "+"; position: absolute; right: .2rem; top: .55rem; font: 700 1.2rem/1 var(--head); color: var(--red); }
.wt-concerns button[aria-expanded="true"]::after { content: "–"; }
.wt-concerns p { margin: 0 0 .4rem; }
.wt-cta { background: var(--navy); color: #f4efe4; border-radius: 8px; padding: .9rem 1rem 1rem; margin-bottom: .9rem; box-shadow: 3px 3px 0 var(--red); }
.wt-cta h3 { color: #f2c230; margin-top: 0; }
.wt-cta p { margin: 0 0 .8rem; }
.wt-cta .btn { background: #f2c230; color: var(--navy); border-color: #f2c230; box-shadow: none; }
.wt-offers { list-style: none; padding: 0; margin: 0; }
.wt-offers li { border-top: 1.5px dashed #cfc4ad; padding: .6rem 0 .1rem; }
.wt-offers a { display: grid; gap: .2rem; text-decoration: none; color: var(--ink); }
.wt-offers a b { font: 800 .98rem/1.2 var(--head); color: var(--navy); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.wt-offers a b::after { content: " ↗"; color: var(--red); text-decoration: none; display: inline-block; }
.wt-offers a span { font-size: .9rem; }
.wt-flys.small .wt-fly { font-size: .72rem; padding: .3rem .55rem; }
@media (max-width: 860px) {
  .wt-signal { top: 14px; right: auto; left: max(14px, env(safe-area-inset-left)); }
  .wt-card { top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: 86vh; border-radius: 14px 14px 0 0; border-bottom: 0; box-shadow: 0 -10px 40px rgb(22 33 45 / .3); transform: translateY(24px); padding-bottom: max(1.3rem, env(safe-area-inset-bottom)); }
  .wt-grid button { min-height: 4rem; }
}
@media (prefers-reduced-motion: reduce) { .wt, .wt-card { transition: none; } }
.wt [tabindex="-1"]:focus { outline: none; }
.end-wt { font-size: .95rem; margin: .9rem 0 0; }
.wt-inline { font: inherit; font-weight: 700; color: var(--navy); background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; cursor: pointer; }
.wt-mini { border: 1.5px solid var(--navy); border-radius: 8px; padding: .7rem .8rem .8rem; margin: 1rem 0 .4rem; background: #fff; }
.wt-mini p { margin: 0 0 .6rem; }
.wt-mini .btn { padding: .6rem .85rem; font-size: .85rem; margin-right: .6rem; }
.wt-note { font: 600 .8rem/1.4 var(--head); color: var(--soft); }
@media (max-width: 860px) {
  .wt-scale { gap: .25rem; } .wt-scale span { width: 2.75rem; height: 2.75rem; }
  .wt-flys.small .wt-fly, .wt-fly { font-size: .82rem; padding: .6rem .8rem; }
  .wt-tabs button { padding: .75rem .7rem .7rem; }
}

/* ---------- Hauptquartier als Seite neben den schwebenden Helden ---------- */
.wt-signal .hq-emblem { width: 1.25rem; height: 1.25rem; }
.hq-emblem circle { fill: none; stroke: #f2c230; stroke-width: 3; }
.hq-emblem path { fill: #f2c230; }
html.wt-open .content .card, html.wt-open .minimap, html.wt-open .minimap-toggle, html.wt-open .toc-book, html.wt-open .sound, html.wt-open .wt-signal, html.wt-open .chapter-card, html.wt-open .open-hint { opacity: 0 !important; pointer-events: none; transition: opacity .3s; }
.wt.hq { background: none; }
.hq .wt-card { top: 0; bottom: 0; right: 0; left: max(30vw, 340px); width: auto; max-height: none; border: 0; border-left: 2px solid var(--navy); border-radius: 0;
  box-shadow: -24px 0 50px rgb(22 33 45 / .16); padding: 0; transform: translateX(48px); opacity: 0; transition: transform .45s cubic-bezier(.2,.7,.2,1) .15s, opacity .35s .15s;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hq.on .wt-card { transform: none; opacity: 1; }
.hq-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 1.2rem; padding: .75rem clamp(1.2rem, 3vw, 2.4rem); background: rgb(251 248 241 / .96); border-bottom: 2px solid var(--navy); }
.hq-brand { display: flex; align-items: center; gap: .55rem; flex: none; }
.hq-brand .hq-emblem { width: 2.2rem; height: 2.2rem; }
.hq-brand .hq-emblem circle { stroke: var(--navy); fill: #f2c230; }
.hq-brand .hq-emblem path { fill: var(--navy); }
.hq-brand span { font: 700 1.45rem/.95 var(--hand); color: var(--navy); }
.hq-brand small { display: block; font: 700 .68rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.hq-bar .wt-tabs { flex: 1; margin: 0; padding: 0; border: 0; gap: .25rem; justify-content: center; }
.hq-bar .wt-tabs button { border: 2px solid transparent; border-radius: 999px; margin: 0; padding: .55rem .85rem; color: var(--navy); }
.hq-bar .wt-tabs button:hover { border-color: #cfc4ad; }
.hq-bar .wt-tabs button[aria-selected="true"] { background: var(--navy); color: #f4efe4; border-color: var(--navy); box-shadow: 2px 2px 0 var(--red); }
.hq-bar .wt-x { position: static; flex: none; padding: .55rem .9rem; }
.hq-bar .wt-x::before { content: "← "; color: var(--red); }
.hq-body { max-width: 980px; padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1.2rem, 3vw, 2.6rem) 4rem; font-size: 1rem; }
.hq-h1 { font: 700 clamp(2.6rem, 4.6vw, 4rem)/.95 var(--hand); margin: .4rem 0 .7rem; color: var(--ink); }
.hq-lead { font-size: 1.12rem; max-width: 40rem; margin: 0 0 1.8rem; }
.hq-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.hq-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: .35rem; text-align: left; padding: 1rem 1.1rem 1.1rem; border: 2px solid var(--navy); border-radius: 12px; background: #fffdf8; color: var(--ink); cursor: pointer;
  box-shadow: 4px 4px 0 var(--navy); transition: transform .18s, box-shadow .18s; font: inherit; }
.hq-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy); }
.hq-card svg { width: 100%; height: 86px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .2rem; }
.hq-card svg .a { stroke: var(--red); } .hq-card svg .g { stroke: #cfc4ad; }
.hq-card svg path.a[d*="z"] { fill: rgb(226 38 43 / .12); }
.hq-card b { font: 700 1.75rem/1 var(--hand); color: var(--navy); }
.hq-card span { font-size: .95rem; color: var(--ink); }
.hq-card i { font: 800 .78rem/1 var(--head); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-top: .4rem; }
.hq-card i::after { content: " →"; }
.hq-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.6rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 2px dashed #cfc4ad; }
.hq-blog ul { list-style: none; padding: 0; margin: 0 0 .8rem; }
.hq-blog li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid #e3dac7; }
.hq-blog li a { color: var(--navy); font: 700 .95rem/1.3 var(--head); text-decoration-color: var(--red); text-underline-offset: 3px; }
.hq-blog li span { font: 600 .8rem/1.3 var(--head); color: var(--soft); flex: none; }
.hq-book { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; background: #fffdf8; border: 1.5px solid #cfc4ad; border-radius: 10px; padding: 1rem; }
.hq-book img { width: 96px; height: auto; transform: rotate(-2deg); box-shadow: 0 6px 14px rgb(40 30 15 / .22); border-radius: 2px; }
.hq-book h3 { margin-top: 0; }
.hq-book p { margin: 0 0 .8rem; font-size: .92rem; }
.hq-book .btn { padding: .6rem .85rem; font-size: .85rem; margin-right: .6rem; }
.hq-sec-head { margin-bottom: 1rem; }
.hq-h2 { font: 700 clamp(2.2rem, 3.6vw, 3rem)/1 var(--hand); margin: .5rem 0 0; }
.hq-sec-head .wt-link::before { content: "← "; color: var(--red); }
.hq-sec { max-width: 760px; }
.hq #wt-b-lage .wt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.hq #wt-b-lage .wt-form > .wt-legend, .hq #wt-b-lage .wt-form > .btn { grid-column: 1 / -1; justify-self: start; }
.hq .wt-grid button { min-height: 5.2rem; }
.hq .wt-case p { font-size: 1.12rem; }
@media (max-width: 860px) {
  .hq .wt-card { left: 0; top: 30vh; border-left: 0; border-top: 2px solid var(--navy); border-radius: 16px 16px 0 0; box-shadow: 0 -18px 40px rgb(22 33 45 / .2); transform: translateY(40px); }
  .hq.on .wt-card { transform: none; }
  .hq-bar { flex-wrap: wrap; gap: .5rem .8rem; padding: .7rem 1rem; }
  .hq-brand span { font-size: 1.2rem; } .hq-brand .hq-emblem { width: 1.8rem; height: 1.8rem; }
  .hq-bar .wt-x { margin-left: auto; }
  .hq-bar .wt-tabs { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .hq-cards, .hq-two, .hq #wt-b-lage .wt-form { grid-template-columns: 1fr; }
  .hq-card svg { height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .hq .wt-card { transition: none; transform: none; } }
.hq #wt-b-lage .wt-form > .wt-legend { justify-self: stretch; max-width: 32rem; }
.wt [hidden] { display: none !important; }
.hq-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding: .9rem 1.1rem; border-radius: 12px; background: var(--navy); color: #f4efe4; box-shadow: 4px 4px 0 var(--red); }
.hq-strip b { display: block; font: 700 1.5rem/1 var(--hand); color: #f2c230; }
.hq-strip span { font-size: .95rem; }
.hq-strip .btn { background: #f2c230; color: var(--navy); border-color: #f2c230; box-shadow: none; flex: none; }
.hq #wt-b-lage .wt-form { display: block; max-width: 38rem; }
.hq #wt-b-lage .wt-form > .wt-legend { max-width: none; margin: 0 0 .6rem; }
.lv.mittel { color: #7a5800; } .lv.niedrig { color: #3f6542; }
.lv { font-size: .74rem; }
.wt-src, .wt-legend, .wt-prac, .wt-note { color: #4d535b; font-size: .8rem; }
.wt-flys.small .wt-fly, .wt-fly { font-size: .8rem; min-height: 32px; }
@media (max-width: 860px) { .hq .wt-card { top: 24vh; } .hq-strip { flex-direction: column; align-items: flex-start; } }

@media (max-width: 860px) { .bookstop { min-height: 140vh; } .bookstop:not(.land) { min-height: 140vh; } }
/* aufgeschlagenes Handbuch: die Seite scrollt nicht weg, zu geht es mit Zuklappen, Weiterfliegen oder Esc */
html:has(> body.book-open) { overflow: hidden; }

/* Landen oder weiterfliegen: Schild am Ort, im Vorbeiflug und nach der Landung */
.ln { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 5; width: max-content; max-width: calc(100vw - 32px); --tx: -50%;
  display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 1.1rem; padding: .7rem .8rem .75rem 1.1rem;
  background: rgb(251 248 241 / .96); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 rgb(42 42 42 / .22);
  opacity: var(--ln, 0); transform: translate(var(--tx), calc((1 - var(--ln, 0)) * 18px)) rotate(-.6deg);
  transition: left .45s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1); }
.ln[inert] { pointer-events: none; }
.ln.swap { opacity: 0 !important; pointer-events: none; transition: opacity .15s; }
/* unsichtbar die Seite wechseln (ohne Gleiten), dann einblenden */
.ln.swap, .ln.swap-in { transition-property: opacity; }
.ln.swap-in { transition: opacity .25s; }
/* gelandet: Schild weicht zur Seite, auf der die Helden nicht stehen (Desktop) */
@media (min-width: 861px) {
  .ln[data-side="l"] { left: calc(100% - 130px); --tx: -100%; }
  .ln[data-side="r"] { left: 24px; --tx: 0%; }
  .ln[data-mode="landed"] { grid-template-columns: auto; }
  .ln[data-mode="landed"] .ln-row { grid-column: 1; grid-row: auto; margin-top: .5rem; }
}
.ln .ln-k { grid-column: 1; font: 700 .68rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ln .ln-n { grid-column: 1; font: 700 1.75rem/1.05 var(--hand); color: var(--ink); white-space: nowrap; }
.ln .ln-s { grid-column: 1; font: 600 .78rem/1.25 var(--head); color: var(--soft); max-width: 15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln .ln-s:empty { display: none; }
.ln .ln-row { grid-column: 2; grid-row: 1 / span 3; display: flex; align-items: center; gap: .7rem; }
.ln button { font: 800 .9rem/1.1 var(--head); padding: .65rem .95rem; border-radius: 999px; border: 2px solid var(--navy); background: var(--paper); color: var(--navy); cursor: pointer; box-shadow: 2px 2px 0 #9cc3e6; white-space: nowrap; }
.ln .ln-go, .ln .ln-open { background: var(--navy); color: #f4efe4; box-shadow: 3px 3px 0 var(--red); text-align: left; }
.ln button:hover { transform: translate(-1px, -1px); }
.ln button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ln[data-mode="pass"] .ln-landed, .ln[data-mode="landed"] .ln-pass, .ln[data-mode=""] .ln-row > * { display: none; }
.ln:not([data-mode="landing"]) .ln-landing, .ln[data-mode="landing"] .ln-pass, .ln[data-mode="landing"] .ln-landed, .ln[data-mode="landing"] .ln-row { display: none; }
body.book-open .ln, html.wt-open .ln, .no-3d .ln { opacity: 0 !important; pointer-events: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Landen per Tastatur in der Lesereihenfolge: unsichtbar, bis der Knopf den Fokus hat */
.land-here { position: fixed; left: 50%; top: 5.5rem; transform: translateX(-50%); z-index: 9; font: 800 .9rem/1 var(--head); padding: .7rem 1rem; border-radius: 999px; border: 2px solid var(--navy); background: var(--navy); color: #f4efe4; box-shadow: 3px 3px 0 var(--red); cursor: pointer; }
.land-here:not(:focus) { width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.land-here:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.no-3d .land-here, .bookstop.land .land-here { display: none; }
@media (max-width: 860px) {
  .ln { grid-template-columns: 1fr auto; width: min(calc(100vw - 32px), 25rem); bottom: max(16px, env(safe-area-inset-bottom)); padding: .6rem .7rem .65rem .9rem; column-gap: .7rem; }
  .ln .ln-n { font-size: 1.35rem; line-height: 1; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ln .ln-s { font-size: .72rem; max-width: 100%; }
  .ln .ln-row { grid-column: 2; grid-row: 1 / span 2; }
  .ln[data-mode="landed"] .ln-row { grid-column: 1 / -1; grid-row: auto; margin-top: .45rem; }
  .ln[data-mode="landed"] .ln-row button { flex: 1 1 0; }
  .ln .ln-go { padding: .75rem 1.1rem; font-size: .95rem; }
  /* Papierverlauf unter der Kopfleiste: Kartentexte laufen nicht lesbar hinter den Knöpfen durch */
  body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 88px; z-index: 4; pointer-events: none; background: linear-gradient(rgb(244 239 228) 62%, rgb(244 239 228 / 0)); }
  html.wt-open body::before, .no-3d body::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ln { transition: opacity .15s; } }

/* ---------- Handy, Feinschliff ---------- */
@media (max-width: 860px) {
  /* Hauptquartier-Reiter: links beginnen und rechts auslaufen, damit man sieht, dass es weitergeht */
  .hq-bar .wt-tabs { justify-content: flex-start; overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 2rem; }
  /* Etappenkarten: unten weich auslaufen statt hart abgeschnitten */
  .content .card { max-height: 36vh; }
  #start .card, #ende .card { max-height: 66vh; }
  .content .card.long::after { content: ""; display: block; position: sticky; bottom: -1.5rem; height: 2.4rem; margin: -2.4rem -1.5rem -1.5rem; background: linear-gradient(rgb(251 248 241 / 0), rgb(251 248 241) 75%); pointer-events: none; transition: opacity .3s; }
  .content .card.long.end::after { opacity: 0; }
  /* Ende: beide Knöpfe sichtbar halten */
  #ende .card h2 small { display: none; }
  #ende .card .note, #ende .card .share { display: none; }
  #ende .card .row { display: flex; flex-wrap: wrap; gap: .5rem; }
  /* Handbuch auf dem Handy: eine Spalte ohne Umblättern, die Pfeile stören nur */
  .spread.single .turn { display: none; }
  /* offenes Handbuch: unter der Kopfleiste beginnen, Szene dahinter unter einen Papierschleier */
  .spread { top: calc(72px + (100vh - 72px - 4.2rem) / 2); height: calc(100vh - 72px - 4.2rem); width: calc(100vw - 24px); }
  .scene3d::after { content: ""; position: absolute; inset: 0; background: rgb(244 239 228 / .78); opacity: 0; transition: opacity .6s; pointer-events: none; }
  body.book-open .scene3d::after { opacity: 1; }
  /* weicher Papierstreifen hinter der Kopfleiste, damit Modellspitzen nicht in die Knöpfe stoßen */
  .scene3d::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 104px; z-index: 1; background: linear-gradient(rgb(244 239 228 / .9) 35%, rgb(244 239 228 / 0)); pointer-events: none; }
  .page .sub { margin-bottom: .8rem; }
  /* Hauptquartier auf dem Handy: der schmale Rest der Szene darüber wird ruhiges Papier mit leichter Karte */
  html.wt-open .scene3d::after { opacity: .7; }
  .spread .sheet::after { content: ""; display: block; position: sticky; bottom: 0; height: 2.2rem; margin-top: -2.2rem; background: linear-gradient(rgb(248 244 234 / 0), #f8f4ea 80%); pointer-events: none; }
}
.page .title .nobr { white-space: nowrap; }
@media (max-width: 380px) {
  .wt-signal { font-size: .68rem; letter-spacing: .03em; padding: .45rem .6rem .45rem .5rem; gap: .3rem; }
  .minimap-toggle { right: 106px; padding: .5rem .6rem; font-size: .7rem; letter-spacing: .05em; }
  .sound { right: 58px; width: 2.2rem; height: 2.2rem; }
}

/* Die Karte aus dem Buch: Vorschau in der Startkarte, groß im Dialog */
.map-thumb { float: right; width: 112px; margin: .2rem 0 .6rem 1rem; padding: 5px 5px 0; border: 1.5px solid var(--ink); border-radius: 3px; background: #fff; box-shadow: 3px 3px 0 rgb(42 42 42 / .2); transform: rotate(2.5deg); cursor: zoom-in; transition: transform .25s ease; }
.map-thumb img { display: block; width: 100%; height: auto; }
.map-thumb span { display: block; font: 600 1.05rem/1.1 var(--hand); color: var(--ink); text-align: center; padding: .3rem 0 .35rem; }
.map-thumb:hover, .map-thumb:focus-visible { transform: rotate(0deg) scale(1.04); }
.map-thumb:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.map-big { padding: 10px 10px 0; border: 2px solid var(--ink); border-radius: 4px; background: #fff; max-width: 96vw; max-height: 96vh; overflow: auto; box-shadow: 8px 8px 0 rgb(42 42 42 / .3); }
.map-big::backdrop { background: rgb(36 32 28 / .55); }
.map-big img { display: block; height: calc(96vh - 66px); width: auto; max-width: 100%; object-fit: contain; }
.map-big p { margin: 0; padding: .55rem .2rem .7rem; font: 600 .8rem/1.3 var(--head); color: var(--soft); }
.map-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); font: 400 1.6rem/1 var(--head); cursor: pointer; }
@media (max-width: 860px) { .map-thumb { width: 74px; margin-left: .7rem; } .map-thumb span { font-size: .85rem; } .map-big img { height: auto; width: 100%; max-height: none; } }
/* Minikarte auf der Originalkarte: der eigene Weg in Heldenblau über der roten Straße */
.minimap image { opacity: .92; }
.minimap .all { display: none; }
.minimap .done { stroke: #2f4fb8; stroke-width: 26; opacity: .7; }
.minimap a circle { fill: rgb(247 242 230 / .15); stroke: #2b2723; stroke-width: 6; }
.minimap a.seen circle { fill: rgb(196 71 59 / .75); }
/* Umsehen mit der Maus am gelandeten Ort */
html.can-orbit .scene3d canvas { cursor: grab; }
html.orbiting .scene3d canvas, html.orbiting body { cursor: grabbing !important; }
.orbit-hint { position: fixed; z-index: 6; left: 50%; top: 18px; transform: translateX(-50%); white-space: nowrap; font: 600 1.25rem/1.1 var(--hand); color: var(--ink); background: rgb(251 248 241 / .9); border: 1.5px solid var(--ink); border-radius: 6px; padding: .35rem .7rem .4rem; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
html.can-orbit:not(.orbited):not(.wt-open) body:not(.book-open) .orbit-hint { opacity: 1; transition-delay: 1.2s; }
.orbit-hint .oh-m { display: none; }
@media (pointer: coarse) { .orbit-hint .oh-d { display: none; } .orbit-hint .oh-m { display: inline; } .orbit-hint { top: 64px; font-size: 1.1rem; } }
.scene3d canvas { touch-action: pan-y; }

/* Das Handbuch trägt das echte Cover: Inhalt-Knopf, Kopf des Inhaltsverzeichnisses, Handbuch am Ort */
.toc-book { background: #005aa6 url(../assets/buch-cover.jpg) center / cover; border-color: #00305e; }
.toc-book .spine { background: rgb(0 48 94 / .85); }
.toc-book .lbl { inset: auto -.35rem .35rem .2rem; display: block; writing-mode: horizontal-tb; transform: rotate(-3deg); background: #fbf8f1; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 3px; padding: .12rem 0 .18rem; text-align: center; font-size: .95rem; box-shadow: 2px 2px 0 rgb(42 42 42 / .2); }
.toc-head { grid-template-columns: auto 1fr auto; column-gap: .8rem; }
.toc-head img { grid-row: 1 / span 2; width: 46px; height: auto; border: 1px solid var(--ink); border-radius: 2px 4px 4px 2px; box-shadow: 2px 2px 0 rgb(42 42 42 / .2); align-self: center; }
.toc-head b, .toc-head span { grid-column: 2; }
.toc-head .toc-x { grid-column: 3; grid-row: 1; }
/* Warten aufs Laden: die Route unter dem Buch zeigt den echten Fortschritt, daneben eine Frage aus dem Handbuch */
.ib-road { position: absolute; left: 50%; top: calc(50% + var(--pw) / .706 / 2 + 1rem); width: min(520px, 88vw); transform: translateX(-50%); overflow: visible; opacity: 0; transition: opacity .6s ease; }
.ib-road path { fill: none; stroke-linecap: round; }
.ib-road .r0 { stroke: #b9ad98; stroke-width: 3; stroke-dasharray: 2 9; }
.ib-road .r1 { stroke: #e2262b; stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ib-road .me { fill: #2f4fb8; stroke: #fbf8f1; stroke-width: 3; }
.ib-road text { font: 600 22px var(--hand); fill: var(--soft); }
.ib-ask { position: absolute; margin: 0; right: calc(50% + var(--pw) / 2 + 3rem); top: 50%; width: min(19rem, calc(50vw - var(--pw) / 2 - 5rem)); transform: translateY(-50%) rotate(-2deg);
  background: #fffdf5; border: 1.5px solid var(--ink); border-radius: 3px; padding: 1rem 1.1rem 1.1rem; box-shadow: 4px 5px 0 rgb(43 39 35 / .15); color: var(--ink); opacity: 0; transition: opacity .6s ease; }
.ib-ask span { display: block; font: 700 .68rem/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: .55rem; }
.ib-ask b { display: block; font: 600 1.55rem/1.15 var(--hand); }
.ib-ask small { display: block; margin-top: .7rem; font: 600 .78rem/1.2 var(--head); color: var(--soft); }
.ib-ask:not(:has(b:not(:empty))) { display: none; }
.intro.loading .ib-road, .intro.loading .ib-ask { opacity: 1; }
@media (max-width: 860px) {
  .ib-ask { right: auto; left: 50%; top: auto; bottom: calc(50% + var(--pw) / .706 / 2 + 1.4rem); width: min(22rem, 88vw); transform: translateX(-50%) rotate(-1.5deg); padding: .8rem .95rem .9rem; }
  .ib-ask b { font-size: 1.3rem; }
}
/* Minikarte: Vorschau des Orts aus der gezeichneten Karte */
.mm-tip { position: fixed; z-index: 8; width: 234px; padding: 6px 6px 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 4px 5px 0 rgb(43 39 35 / .2); opacity: 0; transform: translateX(8px) rotate(-1deg); transition: opacity .12s ease, transform .12s ease; pointer-events: none; }
.mm-tip.on { opacity: 1; transform: rotate(-1deg); }
.mm-pic { width: 220px; height: 168px; background: #fff url(../assets/karte-buch.jpg) no-repeat; }
.mm-tip b { display: block; font: 700 1.3rem/1.1 var(--hand); text-align: center; padding: .35rem .2rem .1rem; }
.mm-tip small { display: block; font: 600 .66rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); text-align: center; padding-bottom: .55rem; }
@media (hover: none) { .mm-tip { display: none; } }
.toc-legal { margin: .9rem 0 0; padding-top: .6rem; border-top: 1px solid #e3dac7; font: 600 .75rem/1.4 var(--head); color: var(--soft); }
.toc-legal a { color: var(--soft); }
#ende .note.end-src { display: block; }
