/* Balzac book world 2027 – one player for every book.
   Layout: an app, not a web page. Full-bleed views in the cover's colour world,
   one glass dock at the bottom (tabs + mini player), reading-along as an overlay. */
:root {
  --ink: #0a0a0b; --ink-2: #151517; --ink-3: #1e1e21;
  --paper: #f4efe7; --ash: rgba(244,239,231,.32); --ash-2: rgba(244,239,231,.6); --past: rgba(244,239,231,.46);
  --accent: #ff3b1f; --accent-rgb: 255,59,31;
  --accent-soft: rgba(var(--accent-rgb), .2);
  --glass: rgba(24,24,27,.66); --hair: rgba(244,239,231,.1);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --read: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "Inter", -apple-system, system-ui, sans-serif;
  --size: 25px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body, #bw, #app { height: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--ui); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
[hidden] { display: none !important; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .055; mix-blend-mode: overlay; width: 100%; height: 100%; image-rendering: pixelated; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; color: var(--ash-2); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }

/* top bar */
.topbar { position: fixed; z-index: 30; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.chip-g { height: 40px; min-width: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; text-decoration: none;
  background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--hair); }
.chip-g svg { width: 16px; height: 16px; }
.mark { padding: 0; width: 40px; }
.mark img { height: 23px; }
.key.on { color: var(--accent); }

/* views */
.views { position: relative; height: 100%; }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: calc(env(safe-area-inset-top, 0px) + 64px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 200px) max(20px, env(safe-area-inset-left, 0px));
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985);
  transition: opacity .45s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1), visibility 0s .45s; }
.view::-webkit-scrollbar { display: none; }
.view.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.inner { max-width: 560px; margin: 0 auto; }

/* BUCH */
.hero { position: relative; display: grid; place-items: center; min-height: 390px; margin: 0 calc(-1 * max(20px, env(safe-area-inset-left, 0px))); }
.giant { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) translateX(var(--px, 0px)); text-align: center;
  font-family: var(--display); line-height: .82; letter-spacing: -.01em; white-space: nowrap; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.2px rgba(var(--accent-rgb), .55);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .28), rgba(var(--accent-rgb), 0) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; pointer-events: none; }
.halo { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .32), transparent); filter: blur(30px); top: 50%; left: 50%; transform: translate(-50%, -46%); }
.stage3d { position: relative; width: var(--bw); height: var(--bh); perspective: 1100px; cursor: grab; touch-action: pan-y; }
.stage3d:active { cursor: grabbing; }
.book3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, 28deg)); will-change: transform; }
.face { position: absolute; top: 0; background-repeat: no-repeat; background-color: #000; backface-visibility: hidden; }
.f-front { left: 0; width: var(--bw); height: var(--bh); border-radius: 1px 4px 4px 1px; transform: translateZ(calc(var(--d) / 2)); background-size: var(--ps) 100%; background-position: right center; box-shadow: inset 3px 0 6px rgba(255,255,255,.08); }
.f-back { left: 0; width: var(--bw); height: var(--bh); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background-size: var(--ps) 100%; background-position: left center; }
.f-spine { left: calc(var(--d) / -2); width: var(--d); height: var(--bh); transform: rotateY(-90deg); background-size: var(--ss) 100%; background-position: center; }
.f-edge { right: calc(var(--d) / -2); width: var(--d); height: calc(var(--bh) - 4px); top: 2px; transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #e9e4da 0 1px, #fffdf6 1px 3px); }
.f-top { left: 1px; width: calc(var(--bw) - 4px); height: var(--d); top: calc(var(--d) / -2); transform: rotateX(90deg); background: repeating-linear-gradient(#e7e3d9 0 1px, #fffdf6 1px 3px); }
.f-bottom { left: 1px; width: calc(var(--bw) - 4px); height: var(--d); top: auto; bottom: calc(var(--d) / -2); transform: rotateX(-90deg); background: #d9d4ca; }
.shadow3d { position: absolute; left: 50%; bottom: -26px; width: 115%; height: 30px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,.85), transparent); filter: blur(6px); }
.title-block { text-align: center; margin-top: 18px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ash-2); }
.title-block h1 { font-family: var(--read); font-style: italic; font-weight: 400; font-size: 27px; line-height: 1.15; letter-spacing: -.01em; margin: 10px auto 0; max-width: 17ch; text-wrap: balance; }
.facts { display: flex; margin: 22px auto 0; max-width: 380px; border-radius: 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.facts div { flex: 1; padding: 12px 6px; text-align: center; }
.facts div + div { box-shadow: -1px 0 0 var(--hair); }
.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.facts span { font-size: 11px; color: var(--ash-2); }
.ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px auto 0; max-width: 380px; }
.cta { height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 15px; }
.cta svg { width: 18px; height: 18px; }
.cta.primary { background: var(--accent); color: #fff; box-shadow: 0 12px 30px rgba(var(--accent-rgb), .35); }
.cta.ghost { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.blurb { max-width: 420px; margin: 28px auto 0; font-family: var(--read); font-size: 18px; line-height: 1.55; color: var(--ash-2); }
.blurb p { margin: 0 0 .8em; }
.blurb p:first-child { color: var(--paper); }

/* LESEN */
#v-lesen { padding-left: 0; padding-right: 0; }
.section-title { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .01em; margin: 0 max(20px, env(safe-area-inset-left, 0px)) 14px; }
.flipwrap { position: relative; margin: 0 auto; width: min(100%, 980px); padding: 0 max(12px, env(safe-area-inset-left, 0px)); }
.flipbook { margin: 0 auto; }
.flipbook .stf__item { background: #fbf8f2 center / cover no-repeat; }
.reader-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px max(20px, env(safe-area-inset-left, 0px)) 0; font-size: 13px; color: var(--ash-2); font-variant-numeric: tabular-nums; max-width: 980px; margin: 0 auto; }
.reader-meta .nav { display: flex; gap: 8px; }
.round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.round svg { width: 18px; height: 18px; }
.pager { height: 3px; margin: 10px auto 0; max-width: 940px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.pager i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .3s; }
.endnote { max-width: 560px; margin: 22px auto 0; padding: 0 20px; text-align: center; color: var(--ash-2); font-size: 14px; }
.endnote button { margin-top: 10px; }
.watermark { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); z-index: 5; pointer-events: none; font-size: 12px; color: rgba(244,239,231,.28); white-space: nowrap; }

/* HÖREN */
.listen-hero { display: flex; gap: 16px; align-items: center; }
.listen-hero .cv { width: 84px; flex: none; aspect-ratio: var(--cr, .67); border-radius: 4px; background: #000 center/cover; box-shadow: 0 16px 34px rgba(0,0,0,.6), 0 0 0 1px var(--hair); }
.listen-hero h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0; letter-spacing: .01em; }
.listen-hero p { margin: 4px 0 0; color: var(--ash-2); font-size: 13.5px; }
.part { margin: 28px 0 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.part em { display: block; font-style: normal; letter-spacing: 0; text-transform: none; font-family: var(--read); font-size: 17px; color: var(--paper); margin-top: 3px; }
.ch { width: 100%; text-align: left; display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; box-shadow: 0 1px 0 var(--hair); }
.ch .n { font-family: var(--display); font-size: 18px; color: var(--ash); text-align: center; }
.ch .t { min-width: 0; }
.ch .t b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.ch .t small { color: var(--ash-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.ch .act { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); color: var(--ash-2); }
.ch .act svg { width: 16px; height: 16px; }
.ch.playable .n { color: var(--paper); }
.ch.playable .act { background: rgba(244,239,231,.1); color: var(--paper); }
.ch.current .n, .ch.current .t b { color: var(--accent); }
.ch.current .act { background: var(--accent); color: #fff; }
.ch .prog { grid-column: 2 / 4; height: 2px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.ch .prog i { display: block; height: 100%; background: var(--accent); width: 0; }
.ch.dim { opacity: .55; }
.sync { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--accent-soft); color: #fff; font-size: 13px; font-weight: 600; }

/* AUTOR */
#v-autor { padding-top: 0; }
.portrait { position: relative; margin: 0 calc(-1 * max(20px, env(safe-area-inset-left, 0px))); height: min(78vh, 560px); background: #111 center 20% / cover; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.25) 0%, transparent 30%, transparent 55%, var(--ink) 100%); }
.portrait .who { position: absolute; z-index: 1; left: max(20px, env(safe-area-inset-left, 0px)); right: 20px; bottom: 18px; }
.who .role { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.who h2 { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: .92; margin: 8px 0 0; text-transform: uppercase; }
.bio { font-family: var(--read); font-size: 18.5px; line-height: 1.62; color: rgba(244,239,231,.86); }
.bio p { margin: 0 0 1em; }
.bio p:first-child::first-letter { font-family: var(--display); float: left; font-size: 3.6em; line-height: .82; padding: .06em .08em 0 0; color: var(--accent); }
.bio a { color: inherit; text-decoration: none; }
.sub-h { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 34px 0 12px; letter-spacing: .01em; }
.faq { display: grid; gap: 8px; }
.faq button { text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px; font-weight: 500; }
.faq button span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.faq button span svg { width: 14px; height: 14px; }

/* DOCK */
.dock { position: fixed; z-index: 40; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); transform: translateX(-50%);
  width: min(calc(100% - 24px), 460px); border-radius: 30px; overflow: hidden;
  background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 60px rgba(0,0,0,.6); }
.mini { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px 0; max-height: 0; opacity: 0; transition: max-height .5s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.dock.audio .mini { max-height: 80px; opacity: 1; }
.mini .cv { width: 40px; height: 40px; border-radius: 10px; background: #000 center/cover; }
.mini b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini small { color: var(--ash-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.mini .t { min-width: 0; }
.mini .pp { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.mini .pp svg { width: 18px; height: 18px; }
.mini .mitl { font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: #fff; }
.mini .line { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--hair); overflow: hidden; cursor: pointer; }
.mini .line i { display: block; height: 100%; width: 0; background: var(--accent); }
.i-pause, .playing .i-play { display: none; } .playing .i-pause { display: block; }
.tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px; }
.pill { position: absolute; top: 8px; bottom: 8px; left: 8px; width: calc((100% - 16px) / 4); border-radius: 22px; background: rgba(244,239,231,.1); transition: transform .5s cubic-bezier(.2,.9,.2,1.05); }
.tab { position: relative; z-index: 1; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--ash-2); transition: color .3s; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--paper); }
.tab.on svg { color: var(--accent); }

/* MITLESEN overlay */
.sync-ov { position: fixed; inset: 0; z-index: 70; background: var(--ink); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.sync-ov[hidden] { display: none; }
.sync-ov .glow { position: absolute; inset: -20% -30% auto; height: 70%; pointer-events: none; background: radial-gradient(60% 55% at 50% 0%, var(--accent-soft), transparent 70%);
  opacity: calc(.35 + var(--level, 0) * .9); transform: scale(calc(1 + var(--level, 0) * .08)); transition: opacity .12s linear, transform .12s linear; filter: blur(10px); }
.s-top { position: relative; display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 10px) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); min-width: 0; }
.s-top .cv { width: 38px; height: 55px; border-radius: 3px; flex: none; background: #000 center/cover; box-shadow: 0 6px 18px rgba(0,0,0,.6), 0 0 0 1px var(--hair); }
.s-top .meta { min-width: 0; flex: 1; }
.s-top .brand { font-family: var(--display); font-size: 21px; line-height: 1.2; letter-spacing: .02em; color: var(--accent); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-top .chap { font-size: 12.5px; color: var(--ash-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.s-stage { position: relative; min-height: 0; }
.scroller { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 18vh max(22px, env(safe-area-inset-right, 0px)) 46vh max(22px, env(safe-area-inset-left, 0px));
  -webkit-mask-image: linear-gradient(transparent 0, #000 16%, #000 70%, transparent 100%); mask-image: linear-gradient(transparent 0, #000 16%, #000 70%, transparent 100%); }
.scroller::-webkit-scrollbar { display: none; }
.text { max-width: 34ch; margin: 0 auto; font-family: var(--read); font-size: var(--size); line-height: 1.52; }
.text h1 { font-family: var(--display); font-weight: 400; font-size: 2.3em; line-height: .95; letter-spacing: .01em; margin: 0 0 .25em; text-transform: uppercase; }
.text h2 { font-family: var(--read); font-style: italic; font-weight: 400; font-size: .92em; line-height: 1.35; margin: 0 0 1.4em; text-wrap: balance; }
.text p { margin: 0 0 1.05em; hyphens: auto; -webkit-hyphens: auto; }
.w { color: var(--ash); transition: color .25s ease; border-radius: 4px; cursor: pointer; }
.w.read { color: var(--past); }
.w.sent { color: var(--ash-2); }
.w.sent.read { color: #fff; }
.w.now { color: #fff; text-shadow: 0 0 22px rgba(var(--accent-rgb), .65); padding: 0 .1em; margin: 0 -.1em; border-radius: .28em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(rgba(var(--accent-rgb), .2), rgba(var(--accent-rgb), .2));
  background-repeat: no-repeat; background-position: .1em 94%, 0 0; background-size: calc(var(--p, 0) * (100% - .2em)) 3px, 100% 100%; }
.back { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: opacity .25s, transform .25s; }
.back.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.s-dock { position: relative; margin: 0 max(10px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(10px, env(safe-area-inset-left, 0px)); padding: 14px 18px 16px; border-radius: 26px;
  background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--hair), 0 20px 60px rgba(0,0,0,.55); width: min(calc(100% - 20px), 620px); justify-self: center; }
.bar { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(244,239,231,.14); overflow: hidden; }
.fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(var(--accent-rgb), .6), var(--accent)); border-radius: 4px; }
.knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px var(--accent-soft); left: 0; }
.times { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ash-2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.row { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 18px; margin-top: 8px; }
.row .chip:first-child { justify-self: start; } .row .chip:last-child { justify-self: end; }
.chip { font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); font-variant-numeric: tabular-nums; }
.skip { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.skip svg { width: 28px; height: 28px; }
.bigplay { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; position: relative; box-shadow: 0 10px 30px rgba(var(--accent-rgb), .45); }
.bigplay::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); opacity: 0; transform: scale(.9); }
.playing .bigplay::after { animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { opacity: .6; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.25); } }
.bigplay svg { width: 26px; height: 26px; }

/* access sheet + video */
.sheet-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; border-radius: 26px 26px 0 0; background: #121214; box-shadow: inset 0 0 0 1px var(--hair), 0 -20px 60px rgba(0,0,0,.5);
  padding: 22px 20px calc(env(safe-area-inset-bottom, 0px) + 24px); }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 26px; } }
.sheet h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0 0 10px; letter-spacing: .01em; }
.sheet p { font-size: 15.5px; line-height: 1.5; margin: 0 0 12px; color: rgba(244,239,231,.86); }
.sheet .note { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; color: #fff; }
.sheet .opt { border-radius: 18px; padding: 16px 16px 8px; margin: 0 0 12px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.sheet h3 { font-size: 16px; margin: 0 0 10px; }
.sheet label { display: grid; gap: 6px; font-size: 13px; color: var(--ash-2); margin: 0 0 12px; }
.sheet input { border: 0; border-radius: 12px; padding: 13px 14px; font-size: 17px; background: var(--ink-3); color: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.sheet .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 14px; background: var(--ink-3); font-weight: 600; font-size: 15px; margin: 0 8px 8px 0; box-shadow: inset 0 0 0 1px var(--hair); }
.sheet .btn.primary { background: var(--accent); color: #fff; box-shadow: none; }
.sheet .btn[disabled] { opacity: .5; }
.sheet .x { float: right; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-3); font-size: 20px; line-height: 1; }
.sheet .small { font-size: 13px; color: var(--ash-2); }
.sheet .err { color: #ffb3a6; }
.video-box { width: min(100%, 720px); border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.7); margin: auto; }
.video-box video { display: block; width: 100%; max-height: 80dvh; }
.video-box p { margin: 0; padding: 14px 18px; font-size: 15px; }

/* landscape phones and larger screens */
@media (orientation: landscape) and (max-height: 560px) {
  :root { --size: 22px; }
  #v-buch .inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; max-width: 900px; }
  .hero { min-height: 300px; margin: 0; }
  .stage3d { transform: scale(.8); }
  .title-block { text-align: left; } .title-block h1 { margin-left: 0; }
  .facts, .ctas, .blurb { margin-left: 0; }
  .portrait { height: 75vh; }
  .sync-ov { grid-template-columns: minmax(240px, 36%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .s-top { grid-column: 1; grid-row: 1; align-self: start; padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
  .s-stage { grid-column: 2; grid-row: 1 / 3; }
  .s-dock { grid-column: 1; grid-row: 2; width: auto; justify-self: stretch; margin-right: 0; padding: 12px 14px; }
  .row { gap: 10px; } .bigplay { width: 56px; height: 56px; }
  .scroller { padding-top: 14vh; padding-bottom: 40vh; }
}
@media (min-width: 980px) and (min-height: 600px) {
  #v-buch .inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; max-width: 1080px; min-height: calc(100vh - 220px); }
  .hero { min-height: 560px; margin: 0; }
  .stage3d { transform: scale(1.25); }
  .title-block { text-align: left; } .title-block h1 { margin-left: 0; font-size: 34px; }
  .facts, .ctas, .blurb { margin-left: 0; }
  .inner { max-width: 720px; }
  #v-autor .inner { max-width: 1080px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
  #v-autor .portrait { margin: 64px 0 0; height: 72vh; border-radius: 24px; overflow: hidden; position: sticky; top: 64px; }
  #v-autor .bio-col { padding-top: 96px; }
}
@media (prefers-reduced-motion: reduce) { .view, .pill, .mini, .w, .back { transition: none; } .playing .bigplay::after { animation: none; } }

/* "Aussage prüfen" */
.w.belegt { text-decoration: underline dotted rgba(var(--accent-rgb), .85); text-decoration-thickness: 2px; text-underline-offset: .28em; }
.checkpill { position: fixed; z-index: 75; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: 0 14px 40px rgba(0,0,0,.6); animation: pop .25s cubic-bezier(.2,.9,.2,1.2); }
.checkpill svg { width: 18px; height: 18px; color: var(--accent); }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.read-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 max(20px, env(safe-area-inset-right, 0px)) 14px 0; }
.read-head .section-title { margin-bottom: 0; }
.checkchip { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .7); }
.sheet .claim { padding: 4px 0 16px; border-bottom: 1px solid var(--hair); margin-bottom: 14px; }
.sheet .cq { font-family: var(--read); font-size: 19px; line-height: 1.45; color: var(--paper); }
.sheet .cs { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; margin: 0 0 12px; }
.sheet .cs b { display: block; font-size: 15px; line-height: 1.35; }
.sheet .cs small { display: block; color: var(--ash-2); font-size: 12.5px; margin-top: 2px; }
.sheet .cs p { font-family: var(--read); font-size: 15px; margin: 6px 0 8px; color: rgba(244,239,231,.8); }
.sheet .ck { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.sheet .cs .btn { min-height: 36px; font-size: 13px; padding: 0 12px; text-decoration: none; }
.sheet .more-link { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }

/* real book pages: spine shade over the full height, karaoke word on the page */
.flipbook .bpage { position: relative; background: #fbf8f2; overflow: hidden; }
.flipbook .bpage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.flipbook .bpage::after { content: ""; position: absolute; top: 0; bottom: 0; width: 9%; pointer-events: none; }
.flipbook .bpage.spine-left::after { left: 0; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,.08) 35%, rgba(0,0,0,0)); }
.flipbook .bpage.spine-right::after { right: 0; background: linear-gradient(270deg, rgba(0,0,0,.22), rgba(0,0,0,.08) 35%, rgba(0,0,0,0)); }
.flipbook .bpage .hl { position: absolute; z-index: 2; border-radius: 3px; background: rgba(var(--accent-rgb), .28); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .55), 0 0 14px rgba(var(--accent-rgb), .45); mix-blend-mode: multiply; transition: left .12s ease, top .12s ease, width .12s ease; pointer-events: none; }
.rh-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.aloudchip { background: var(--accent); color: #fff; box-shadow: none; }
.aloudchip.on { background: var(--paper); color: var(--ink); }
.cta.aloud { width: 100%; max-width: 380px; margin: 10px auto 0; background: linear-gradient(90deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .08)); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .6); color: var(--paper); }
.resume { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; max-width: 380px; margin: 18px auto 0; padding: 12px 16px; border-radius: 16px; text-align: left; background: rgba(244,239,231,.08); box-shadow: inset 0 0 0 1px var(--hair); }
.resume b { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.resume span { font-size: 14.5px; font-weight: 500; }
/* zoom */
.zoom { position: fixed; inset: 0; z-index: 90; background: #050506; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.zoom-scroll { overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; display: flex; justify-content: center; align-items: flex-start; padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px 10px; }
.zoom-scroll img { width: 100%; max-width: none; height: auto; display: block; background: #fbf8f2; box-shadow: 0 20px 60px rgba(0,0,0,.7); }
@media (min-aspect-ratio: 3/4) { .zoom-scroll img { width: auto; height: calc(100dvh - 110px); } }
.zoom-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 12px); background: rgba(10,10,11,.9); font-size: 13px; color: var(--ash-2); font-variant-numeric: tabular-nums; }
.zoom-bar .round { font-size: 20px; }
@media (min-width: 980px) and (min-height: 600px) { .cta.aloud, .resume { margin-left: 0; } }
@media (orientation: landscape) and (max-height: 560px) { .cta.aloud, .resume { margin-left: 0; } }

.sources-card { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; max-width: 380px; margin: 12px auto 0; padding: 12px 16px; border-radius: 16px; text-decoration: none; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.sources-card .sc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--read); font-size: 22px; }
.sources-card b { display: block; font-size: 15px; }
.sources-card small { display: block; font-size: 12.5px; color: var(--ash-2); margin-top: 2px; }
.s-top a.chip { text-decoration: none; }
@media (min-width: 980px) and (min-height: 600px) { .sources-card { margin-left: 0; } }

.sleep-btn { display: inline-flex; align-items: center; gap: 6px; }
.sleep-btn svg { width: 14px; height: 14px; }
.sleep-btn.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .7); color: #fff; }
.listen-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.listen-acts .sync { margin-top: 0; }
