/* Nordglut — dunkle Röst-Ästhetik: Espresso-Grund, Kupferglut, Crema-Text.
   Alle Inhalte sind ohne JS sichtbar; GSAP setzt Startzustände zur Laufzeit. */

:root {
  --roast-deep: #16100B;
  --roast: #241710;
  --ember: #D97B3F;
  --crema: #F1E3CF;
  --muted: #A78D71;
  --line: #3A2A1D;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--roast-deep);
  color: var(--crema);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.08; }

a { color: var(--ember); }
a:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* Progress */
#progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50;
  background: rgba(241, 227, 207, .12);
}
#progress-fill {
  height: 100%; background: var(--ember);
  transform: scaleX(0); transform-origin: left center;
}

/* Header */
.site-header {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.6rem;
  mix-blend-mode: normal;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif; font-weight: 700;
  letter-spacing: .3em; font-size: .95rem; text-decoration: none;
  color: var(--crema);
}
.nav-link { font-size: .85rem; text-decoration: none; letter-spacing: .05em; }
.nav-link:hover { color: var(--crema); }

/* Hero */
.hero { min-height: 100vh; }
.hero-stage {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 1.5rem; position: relative;
}
.hero-eyebrow {
  font-size: .82rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(4rem, 16vw, 11rem);
  font-weight: 700; color: var(--crema);
  background: linear-gradient(160deg, var(--crema) 55%, var(--ember));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-tagline { margin-top: 1.4rem; font-size: 1.1rem; color: var(--muted); }
.hero-hint {
  position: absolute; bottom: 2.2rem; left: 50%; translate: -50% 0;
  width: 1px; height: 3.4rem; background: var(--line); overflow: hidden;
}
.hero-hint span {
  display: block; width: 100%; height: 40%;
  background: var(--ember);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-hint span { animation: hint 1.8s ease-in-out infinite; }
  @keyframes hint { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
}

/* Kapitel */
.chapter { padding: 9rem 1.5rem; }
.chapter-grid {
  max-width: 64rem; margin: 0 auto;
  display: grid; grid-template-columns: 16rem 1fr; gap: 3.5rem;
  align-items: start;
}
.chapter-head { position: sticky; top: 22vh; }
.chapter-no {
  font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ember); margin-bottom: .7rem;
}
.chapter-head h2, .chapter-final h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.chapter-body { max-width: 36rem; }
.chapter-body > * + * { margin-top: 1.6rem; }
.big {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.35;
  color: var(--crema);
}
.chapter-body p:not(.big):not(.caption) { color: var(--muted); }
blockquote {
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3;
  border-left: 2px solid var(--ember); padding-left: 1.4rem;
}
blockquote em { color: var(--ember); }
.caption { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Kapitel 2 — Röstkurve */
.chapter-roast { padding: 0; }
.roast-stage {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; gap: 2rem;
  max-width: 64rem; margin: 0 auto; padding: 5.5rem 1.5rem 3rem;
}
.roast-head { position: static; }
.roast-figure { color: var(--crema); }
.roast-svg { width: 100%; max-height: 52vh; display: block; }
.axis-label text { font-family: "Work Sans", sans-serif; font-size: 12px; }
.curve-marker circle { fill: var(--ember); }
.curve-marker text {
  fill: var(--crema); font-family: "Work Sans", sans-serif; font-size: 13px;
  letter-spacing: .02em;
}
.roast-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 1.5rem;
}
.roast-step { font-size: .95rem; color: var(--muted); }
.roast-step strong { color: var(--crema); font-weight: 500; }

/* Kapitel 3 — Rituale */
.ritual-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ritual { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.ritual h3 { font-size: 1.25rem; margin-bottom: .5rem; color: var(--crema); }
.ritual p { color: var(--muted); font-size: .98rem; }

/* Kapitel 4 — Finale */
.chapter-final { text-align: center; padding-bottom: 7rem; }
.final-stage { max-width: 38rem; margin: 0 auto; }
.final-stage > * + * { margin-top: 1.4rem; }
.final-lede { font-variant-numeric: tabular-nums; }
.final-stage p:not(.big):not(.chapter-no):not(.final-address) { color: var(--muted); }
.final-actions { display: flex; gap: 1.6rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 2.2rem; }
.btn-ember {
  display: inline-block; background: var(--ember); color: var(--roast-deep);
  font-weight: 600; text-decoration: none; padding: .9rem 1.9rem;
  border-radius: 2px; letter-spacing: .02em;
  transition: background .2s;
}
.btn-ember:hover { background: #E8935C; }
.link-ember { font-size: .95rem; }
.final-address { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 4.5rem; text-align: center;
  font-size: .85rem; color: var(--muted);
}
.site-footer .demo-note { margin-top: .3rem; }

/* Demo-Badge (Portfolio-Navigation) */
.demo-badge {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 60;
  font-size: .75rem; letter-spacing: .04em; text-decoration: none;
  background: var(--crema); color: var(--roast-deep);
  padding: .45rem .8rem; border-radius: 2rem; opacity: .85;
}
.demo-badge:hover { opacity: 1; }

/* Responsive */
@media (max-width: 860px) {
  .chapter { padding: 5.5rem 1.25rem; }
  .chapter-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .chapter-head { position: static; }
  .roast-steps { grid-template-columns: 1fr; gap: .9rem; }
  .roast-svg { max-height: 40vh; }
}
