/* Christian Hermann Gonska – immersive Fassung (Entwurf)
   Stil: hanseatische Nacht. Anthrazit-Blau, Elfenbein, Gold. Playfair Display wie auf der bisherigen Seite. */

@font-face { font-family: 'Playfair Display'; src: url('../assets/fonts/playfair-display-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../assets/fonts/playfair-display-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../assets/fonts/playfair-display-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('../assets/fonts/source-sans-3-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('../assets/fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('../assets/fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #090c11;
  --bg-2: #0e1219;
  --ink: #ece6d8;
  --ink-2: #c9c4b8;
  --muted: #8d8f93;
  --gold: #c9a96b;
  --gold-2: #e7d3a1;
  --line: rgba(201, 169, 107, .3);
  --line-soft: rgba(236, 230, 216, .12);
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Consolas', monospace;
  --pad: clamp(20px, 3.4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading, body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1px solid var(--gold-2); outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
}

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.grain { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
#track-height { width: 1px; pointer-events: none; }

/* ---------- Bausteine ---------- */
.kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0; display: flex; align-items: center; gap: 14px; }
.kicker i { width: 22px; height: 1px; background: var(--line); display: block; }

.btn { isolation: isolate; font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; padding: 17px 28px; border-radius: 999px; border: 1px solid var(--line); position: relative; overflow: hidden; transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); display: inline-flex; gap: 12px; align-items: center; white-space: nowrap; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateY(101%); transition: transform .55s var(--ease); z-index: -1; border-radius: inherit; }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--bg); border-color: var(--gold); }
.btn span { transition: transform .5s var(--ease); display: inline-block; }
.btn:hover span { transform: translateX(5px); }
.btn-gold { color: var(--gold-2); border-color: var(--gold); }
.btn-ghost { color: var(--muted); border-color: var(--line-soft); }

/* ---------- Ladebild ---------- */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: opacity 1.4s var(--ease), visibility 0s 1.4s; }
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; padding: 24px; }
.loader-ring { position: relative; width: min(46vw, 220px); aspect-ratio: 1; }
.loader-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.loader-ring .ring-bg { fill: none; stroke: var(--line-soft); stroke-width: .6; }
.loader-ring .ring-fg { fill: none; stroke: var(--gold); stroke-width: 1.1; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .5s linear; }
.loader-ring .ticks line { stroke: var(--gold); stroke-width: .7; opacity: .16; transition: opacity .4s; }
.loader-ring .ticks line.on { opacity: .95; }
.monogram { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: clamp(26px, 6vw, 38px); color: var(--gold); letter-spacing: .02em; }
.monogram span { padding: 0 .26em; line-height: 1.25; }
.monogram span + span { border-left: 1px solid var(--gold); }
.loader-count { font-family: var(--mono); font-size: 12px; letter-spacing: .34em; color: var(--muted); margin: 0; transition: opacity .6s; }
.loader-enter { display: grid; gap: 26px; justify-items: center; opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); pointer-events: none; margin-top: -48px; }
.loader-name { font-family: var(--mono); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin: 0 0 -8px; }
.loader-quote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.4vw, 34px); color: var(--ink); margin: 0; }
.loader-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
#loader.ready .loader-count { opacity: 0; }
#loader.ready .loader-enter { opacity: 1; transform: none; filter: none; pointer-events: auto; }

/* ---------- Feste Bedienelemente ---------- */
.hud { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: flex-start; padding: calc(var(--pad) * .75) var(--pad); pointer-events: none; transition: opacity 1.2s var(--ease) .3s, transform 1.2s var(--ease) .3s; }
.hud > * { pointer-events: auto; }
body.is-loading .hud, body.is-loading .progress { opacity: 0; transform: translateY(-10px); }
.brand { font-family: var(--serif); font-size: 21px; color: var(--gold); display: flex; align-items: center; height: 46px; }
.brand span { padding: 0 .3em; line-height: 1.15; }
.brand span + span { border-left: 1px solid var(--gold); }
.hud-right { display: grid; justify-items: end; gap: 10px; }
.pill { display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 8px; border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(9, 12, 17, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 40px -18px rgba(201, 169, 107, .5); }
.pill button { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; padding: 10px 14px; color: var(--ink-2); transition: color .4s; border-radius: 999px; }
.pill button:hover { color: var(--gold-2); }
.sound-toggle { display: grid; place-items: center; padding: 6px 4px !important; }
#wave { width: 44px; height: 14px; display: block; }
.track { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-right: 12px; transition: opacity .6s; }
.track button { color: var(--muted); padding: 4px 6px; border: 1px solid var(--line-soft); border-radius: 6px; font-size: 10px; letter-spacing: 0; transition: color .3s, border-color .3s; }
.track button:hover { color: var(--gold-2); border-color: var(--line); }
.track span { min-width: 15ch; text-align: center; }
.track.off { opacity: .45; }

/* Impressum und Datenschutz: immer erreichbar */
.legal-links { position: fixed; right: var(--pad); bottom: calc(var(--pad) * .8); z-index: 30; display: flex; gap: 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); transition: opacity 1.2s var(--ease) .5s; }
.legal-links a, .loader-legal a, .c-legal a { transition: color .3s; }
.legal-links a:hover, .loader-legal a:hover, .c-legal a:hover { color: var(--gold-2); }
body.is-loading .legal-links { opacity: 0; pointer-events: none; }
.loader-legal { position: absolute; left: 0; right: 0; bottom: calc(var(--pad) * .8); margin: 0; display: flex; justify-content: center; gap: 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.c-legal { display: flex; justify-content: center; gap: 22px; margin: 0; padding: 0 0 calc(var(--pad) * .9); font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.progress { position: fixed; right: calc(var(--pad) * .6); top: 50%; transform: translateY(-50%); z-index: 30; display: grid; justify-items: center; gap: 14px; transition: opacity 1.2s var(--ease) .5s; pointer-events: none; }
.progress-label { font-family: var(--mono); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.progress-line { width: 1px; height: 120px; background: var(--line-soft); position: relative; overflow: hidden; }
.progress-line i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); }

/* ---------- Szenen ---------- */
#stage { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.scene { position: absolute; inset: 0; padding: var(--pad); opacity: 0; visibility: hidden; will-change: opacity, transform; }
.scene a, .scene button { pointer-events: auto; }

/* Auftakt */
.hero { display: flex; align-items: center; }
.hero-text { width: min(58vw, 880px); display: grid; gap: clamp(18px, 3vh, 34px); padding-top: 4vh; }
.hero-name { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, min(8.6vw, 16.5vh), 148px); line-height: .96; letter-spacing: -.015em; margin: 0; }
.hero-name .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-name .line > span { display: block; transform: translateY(112%) rotate(3deg); transform-origin: left top; transition: transform 1.5s var(--ease); }
.hero-name .line:nth-child(2) > span { transition-delay: .09s; font-style: italic; color: var(--gold-2); }
.hero-name .line:nth-child(3) > span { transition-delay: .18s; }
.hero-intro { margin: 0; max-width: 42ch; color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.55; }
.hero .kicker, .hero-quote, .hero-intro, .scroll-hint, .hero-coords { opacity: 0; transition: opacity 1.4s var(--ease) .7s, transform 1.4s var(--ease) .7s; }
.clock { opacity: 0; transition: opacity 2s var(--ease) 1.2s; }
.hero .kicker { transform: translateY(10px); }
.hero-quote { display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: clamp(19px, 2vw, 28px); color: var(--ink-2); margin: 0; }
.hero-quote .rule { width: clamp(40px, 6vw, 96px); height: 1px; background: var(--gold); display: block; transform-origin: left; }
body.is-entered .hero-name .line > span { transform: none; }
body.is-entered .hero .kicker, body.is-entered .hero-quote, body.is-entered .hero-intro, body.is-entered .scroll-hint, body.is-entered .hero-coords, body.is-entered .clock { opacity: 1; transform: none; }
.scroll-hint { position: absolute; left: var(--pad); bottom: var(--pad); font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.scroll-hint i { width: 64px; height: 1px; background: var(--line-soft); position: relative; overflow: hidden; display: block; }
.scroll-hint i::after { content: ''; position: absolute; inset: 0; background: var(--gold); animation: hint 2.6s var(--ease) infinite; }
@keyframes hint { 0% { transform: translateX(-100%); } 55% { transform: translateX(0); } 100% { transform: translateX(100%); } }
.hero-coords { position: absolute; right: calc(var(--pad) * 2.2); bottom: calc(var(--pad) + 38px); font-family: var(--mono); font-size: 10.5px; letter-spacing: .26em; color: var(--muted); margin: 0; text-align: right; line-height: 1.9; }
.clock { position: absolute; left: 0; top: 0; width: 100px; height: 100px; pointer-events: none; }
.clock svg { width: 100%; height: 100%; overflow: visible; }
.clock-ring { fill: none; stroke: var(--line-soft); stroke-width: .5; }
.clock-ticks line { stroke: var(--gold); stroke-width: .7; opacity: .5; }
.clock-ticks line.major { opacity: 1; stroke-width: 1; }
.hand { transform-origin: 200px 200px; transition: transform 1.2s var(--ease); }
.hand-m { stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; }
.hand-h { fill: var(--gold-2); stroke: none; }
.clock-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 14px); font-family: var(--mono); font-size: 10.5px; letter-spacing: .28em; color: var(--gold); white-space: nowrap; }
.fallback-img { display: none; }

/* Leitsatz */
.statement { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 40px); padding-left: clamp(24px, 12vw, 220px); padding-right: clamp(24px, 12vw, 220px); }
.statement-text { font-weight: 400; font-family: var(--serif); font-size: clamp(30px, 4.5vw, 76px); line-height: 1.13; letter-spacing: -.01em; margin: 0; max-width: 21ch; }
.statement-text .w { opacity: .13; transition: opacity .5s linear, color .5s linear; display: inline-block; white-space: pre; }
.statement-text .w.on { opacity: 1; }
.statement-text .w.gold { color: var(--gold-2); font-style: italic; }
.statement-sub { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 20px); opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.statement-sub.on { opacity: 1; transform: none; filter: none; }

/* Kapitel */
.chapters { display: flex; flex-direction: column; justify-content: center; }
.ch-text { width: min(46vw, 620px); display: grid; gap: 20px; justify-items: start; margin-left: clamp(0px, 4vw, 80px); margin-bottom: 9vh; }
.ch-count { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 14px; }
.ch-count #ch-nr { color: var(--gold-2); font-size: 15px; }
.ch-count i { width: 54px; height: 1px; background: var(--line); display: block; }
.ch-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 92px); line-height: 1.02; letter-spacing: -.012em; margin: 0; }
.ch-teaser { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.7vw, 25px); color: var(--ink-2); margin: 0 0 14px; max-width: 26ch; }
.swap { animation: swap .9s var(--ease) both; }
.swap.d1 { animation-delay: .06s; } .swap.d2 { animation-delay: .12s; } .swap.d3 { animation-delay: .18s; }
@keyframes swap { from { opacity: 0; transform: translateY(26px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.ch-list { list-style: none; margin: 0; padding: 0; position: absolute; left: calc(var(--pad) + clamp(0px, 4vw, 80px)); bottom: var(--pad); display: grid; gap: 3px 46px; grid-auto-flow: column; grid-template-rows: repeat(4, auto); }
.ch-list a { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding: 3px 0; display: flex; gap: 12px; align-items: center; transition: color .4s, transform .5s var(--ease); }
.ch-list a::before { content: '→'; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--ease); margin-left: -22px; }
.ch-list a:hover, .ch-list .on a { color: var(--ink); transform: translateX(22px); }
.ch-list a:hover::before, .ch-list .on a::before { opacity: 1; transform: none; }

/* Kontakt */
.contact { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(14px, 2.6vh, 28px); }
.contact .kicker { justify-content: center; }
.contact-title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7.4vw, 128px); line-height: 1; letter-spacing: -.015em; margin: 0; }
.contact-title em { color: var(--gold-2); }
.contact-mail { font-family: var(--serif); font-size: clamp(17px, 2.2vw, 32px); color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .4s, border-color .4s; word-break: break-word; }
.contact-mail:hover { color: var(--gold-2); border-color: var(--gold); }
.contact-links { display: flex; gap: 28px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; }
.contact-links a { color: var(--gold); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .4s; }
.contact-links a:hover { border-color: var(--gold); }
.contact-sign { margin: clamp(8px, 2vh, 24px) 0 0; font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: clamp(15px, 1.2vw, 19px); line-height: 1.7; }
.contact-sign strong { font-style: normal; font-weight: 500; color: var(--ink); letter-spacing: .02em; }
.foot { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) * .8); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.foot-links { display: flex; gap: 22px; }
.foot a:hover { color: var(--gold-2); }

/* ---------- Kapitel-Ansicht ---------- */
.chapter { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; --cx: 70%; --cy: 50%; clip-path: circle(0% at var(--cx) var(--cy)); transition: clip-path 1.25s var(--ease), visibility 0s 1.25s; background: rgba(9, 12, 17, .8); backdrop-filter: blur(26px) saturate(1.1); -webkit-backdrop-filter: blur(26px) saturate(1.1); }
.chapter.open { visibility: visible; pointer-events: auto; clip-path: circle(150% at var(--cx) var(--cy)); transition: clip-path 1.5s var(--ease), visibility 0s; }
.chapter-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: calc(var(--pad) * .75) var(--pad); font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); background: linear-gradient(to bottom, rgba(9, 12, 17, .92), rgba(9, 12, 17, 0)); }
.chapter-close { color: var(--gold-2); border: 1px solid var(--line); border-radius: 999px; padding: 13px 22px; letter-spacing: .24em; text-transform: uppercase; transition: background .4s, color .4s; }
.chapter-close:hover { background: var(--gold); color: var(--bg); }
.chapter.scrolled .chapter-bar { background: linear-gradient(to bottom, rgba(9, 12, 17, .97) 55%, rgba(9, 12, 17, 0)); }
.chapter-bar-title { opacity: 0; transition: opacity .5s; color: var(--ink-2); }
.chapter.scrolled .chapter-bar-title { opacity: 1; }
.chapter-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
#chapter-body { max-width: 1320px; margin: 0 auto; padding: clamp(110px, 17vh, 190px) var(--pad) 0; }

.c-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 6vw, 100px); align-items: end; min-height: 62vh; }
.c-head-text { display: grid; gap: 22px; padding-bottom: 4vh; }
.c-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.6vw, 118px); line-height: 1; letter-spacing: -.015em; margin: 0; }
.c-sub { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 30px); color: var(--gold-2); margin: 0; }
.c-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 4px 4px; overflow: hidden; max-height: 74vh; justify-self: end; width: min(100%, 440px); }
.c-cover::after { content: ''; position: absolute; inset: 9px; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.c-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transition: transform 2.4s var(--ease); }
.chapter.open .c-cover img { transform: scale(1); }

.c-body { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 100px); margin-top: clamp(60px, 12vh, 150px); }
.c-aside { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.c-aside-inner { position: sticky; top: 130px; display: grid; gap: 10px; }
.c-aside b { color: var(--gold); font-weight: 400; }
.c-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; max-width: 30ch; }
.c-tags i { font-style: normal; font-size: 9.5px; letter-spacing: .16em; border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 10px; color: var(--ink-2); }
.c-read { margin-top: 14px; color: var(--gold); transition: color .3s; }
.c-read:hover { color: var(--gold-2); }
.c-flow { max-width: 68ch; }
.c-flow p { margin: 0 0 1.5em; color: var(--ink-2); font-size: clamp(17px, 1.22vw, 20px); line-height: 1.75; }
.c-flow p.lead { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 32px); line-height: 1.42; color: var(--ink); margin-bottom: 1.4em; }
.c-flow h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 46px); margin: 2.2em 0 .8em; line-height: 1.1; }
.c-flow h3:first-child { margin-top: 0; }
.c-quote { margin: clamp(40px, 8vh, 90px) 0; padding: 0 0 0 clamp(20px, 3vw, 44px); border-left: 1px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: clamp(25px, 3vw, 46px); line-height: 1.25; color: var(--gold-2); max-width: 22ch; }
.c-timeline { list-style: none; margin: 0 0 2.4em; padding: 0; border-top: 1px solid var(--line-soft); }
.c-timeline li { display: grid; grid-template-columns: minmax(110px, .32fr) 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.c-timeline .y { font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em; color: var(--gold); }
.c-timeline .t { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; color: var(--ink); }
.c-cta { margin-top: 12px; }

.c-gallery-head { margin: clamp(70px, 14vh, 170px) 0 clamp(24px, 4vh, 44px); display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-soft); padding-bottom: 18px; }
.c-gallery-head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 46px); margin: 0; }
.c-gallery-head span { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--muted); }
.c-gallery { columns: 3; column-gap: clamp(10px, 1.4vw, 22px); }
.c-gallery button { display: block; width: 100%; margin: 0 0 clamp(10px, 1.4vw, 22px); border-radius: 3px; overflow: hidden; position: relative; break-inside: avoid; background: var(--bg-2); }
.c-gallery img { width: 100%; height: auto; display: block; filter: brightness(.9); transform: scale(1.03); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.c-gallery button:hover img, .c-gallery button:focus-visible img { filter: none; transform: scale(1.07); }

.c-next { margin-top: clamp(80px, 16vh, 190px); border-top: 1px solid var(--line-soft); padding: clamp(46px, 10vh, 110px) 0 clamp(60px, 12vh, 130px); display: grid; gap: 16px; justify-items: center; text-align: center; width: 100%; }
.c-next .kicker { justify-content: center; }
.c-next strong { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 104px); line-height: 1.02; transition: color .5s, letter-spacing .9s var(--ease); display: block; }
.c-next:hover strong { color: var(--gold-2); letter-spacing: .012em; }

.rv { opacity: 0; transform: translateY(46px); filter: blur(12px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }

/* ---------- Großansicht ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6, 8, 12, .95); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.lightbox img { max-width: min(88vw, 1500px); max-height: 82vh; object-fit: contain; border-radius: 2px; box-shadow: 0 40px 120px -40px #000; transition: opacity .35s; }
.lightbox button { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); padding: 14px 18px; }
.lightbox-close { top: calc(var(--pad) * .7); right: var(--pad); }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 20px !important; border: 1px solid var(--line); border-radius: 999px; width: 54px; height: 54px; padding: 0 !important; display: grid; place-items: center; letter-spacing: 0 !important; transition: background .4s, color .4s; }
.lightbox-nav:hover { background: var(--gold); color: var(--bg); }
.lightbox-nav.prev { left: calc(var(--pad) * .7); }
.lightbox-nav.next { right: calc(var(--pad) * .7); }
.lightbox-count { position: absolute; bottom: calc(var(--pad) * .8); left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .28em; color: var(--muted); }

/* ---------- Mauszeiger ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
.cursor i { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--gold-2); transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, border-color .45s, opacity .3s; border: 1px solid transparent; }
.cursor span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.link i { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(201, 169, 107, .12); border-color: var(--gold); }
.cursor.card i { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); }
.cursor.card span { opacity: 1; }
.cursor.hidden i { opacity: 0; }

.noscript { position: fixed; inset: 0; z-index: 300; background: var(--bg); overflow: auto; padding: 12vh 8vw; font-family: var(--sans); max-width: 100%; }
.noscript > * { max-width: 62ch; }
.noscript h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 72px); margin: 0 0 .3em; }
.noscript ul { padding-left: 1.2em; line-height: 1.9; }
.noscript a { color: var(--gold); border-bottom: 1px solid var(--line); }

/* ---------- Ohne WebGL ---------- */
.no-gl #gl { display: none; }
.no-gl body, body.no-gl { background: radial-gradient(ellipse at 70% 30%, #14202f 0%, var(--bg) 60%); }
.no-gl .fallback-img { display: block; position: absolute; right: 9vw; top: 50%; transform: translateY(-50%); height: 66vh; aspect-ratio: .72; object-fit: cover; border-radius: 999px 999px 4px 4px; }
.no-gl .clock { display: none; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 820px), (max-aspect-ratio: 95/100) {
  body { font-size: 16px; }
  .brand { font-size: 18px; height: 42px; }
  .pill { height: 42px; padding: 0 4px; }
  .pill button { padding: 8px 9px; font-size: 10px; letter-spacing: .18em; }
  .track span { min-width: 0; }
  .progress { display: none; }
  .hero { align-items: flex-end; padding-bottom: calc(var(--pad) + 78px); }
  .hero-text { width: 100%; gap: 14px; padding-top: 0; }
  .hero-name { font-size: clamp(46px, 14.5vw, 84px); }
  .hero-coords { display: none; }
  .hero-intro { font-size: 14px; max-width: none; }
  .clock-label { display: none; }
  .statement .kicker i { display: none; }
  .statement .kicker { gap: 4px 12px; }
  .kicker { font-size: 10px; letter-spacing: .2em; gap: 9px; flex-wrap: wrap; }
  .kicker i { width: 12px; }
  .statement { padding-left: var(--pad); padding-right: var(--pad); }
  .statement-text { font-size: clamp(28px, 8.4vw, 46px); }
  .chapters { justify-content: flex-end; padding-bottom: calc(var(--pad) + 46px); }
  .ch-text { width: 100%; margin-left: 0; gap: 10px; }
  .ch-title { font-size: clamp(34px, 10vw, 56px); }
  .ch-teaser { margin-bottom: 6px; font-size: 17px; }
  .ch-count { margin: 0; }
  .ch-list { display: none; }
  .btn { padding: 15px 22px; font-size: 10.5px; }
  .contact-links { gap: 20px; }
  .foot { justify-content: center; text-align: center; bottom: calc(var(--pad) * .8 + 30px); }
  .legal-links { left: 0; right: 0; justify-content: center; font-size: 9.5px; }
  .scroll-hint { bottom: calc(var(--pad) + 30px); }
  .c-head { grid-template-columns: 1fr; min-height: 0; }
  .c-cover { justify-self: start; width: min(72%, 320px); order: -1; }
  .c-body { grid-template-columns: 1fr; }
  .c-aside-inner { position: static; display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .c-gallery { columns: 2; }
  .c-timeline li { grid-template-columns: 1fr; gap: 6px; }
  .chapter-bar-title { display: none; }
  .lightbox-nav { top: auto; bottom: calc(var(--pad) * .6); transform: none; }
  .lightbox-count { bottom: calc(var(--pad) * .6 + 18px); }
}

@media (max-height: 640px) { .ch-list { display: none; } .ch-text { margin-bottom: 0; } }
@media (max-height: 720px) and (min-width: 821px) { .hero-coords, .clock-label, .scroll-hint { display: none; } .hero-text { padding-top: 6vh; gap: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .rv, .swap, .hero-name .line > span, .chapter, .chapter.open { transition-duration: .01s !important; animation-duration: .01s !important; }
}
