/* Lokale Schriftarten zuerst laden (kein Drittserver, DSGVO-konform) */
@import url('fonts.css');

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0A0806;
  --surface: #171310;
  --fg:      #EDE5D0;
  --fg2:     rgba(237,229,208,0.75);   /* Fließtext — AAA (≈7.7:1)        */
  --fg3:     rgba(237,229,208,0.55);   /* Meta/Labels — AA  (≈4.9:1)      */
  --fg-faint: rgba(237,229,208,0.34);  /* rein dekorativ, kein Text       */
  --amber:   #C4883A;
  --green:   #6E9642;
  --border:  rgba(237,229,208,0.08);
  --serif:   'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --max:     1100px;
  --pad-x:  clamp(1.5rem, 6vw, 4rem);

  /* ── Typografische Skala (8 Stufen) ─────────────────────────
     Alle Schriftgrößen der Seite referenzieren ausschließlich
     diese Variablen — keine einmaligen clamp()-Werte irgendwo.
     Referenzwerte bei 920px Viewport:
     display 46px · h1 41px · h2 29px · h3 23px
     large 18px   · base 17px · small 14px · xs 10px        */
  --t-display: clamp(2.4rem, 5vw, 3.4rem);    /* Wörterbuch-Wort, Display-Ebene */
  --t-h1:      clamp(2.1rem, 4.5vw, 3rem);    /* Seitentitel, Hero, Typewriter    */
  --t-h2:      clamp(1.6rem, 3.2vw, 2.4rem);  /* Sektionsüberschriften            */
  --t-h3:      clamp(1.3rem, 2.5vw, 1.9rem);  /* Karten- und Schritt-Titel        */
  --t-large:   clamp(1.1rem, 2vw, 1.5rem);    /* Teaser-Text, Buttons, Zitat      */
  --t-base:    1.0625rem;                       /* Fließtext (17 px)                */
  --t-small:   0.875rem;                        /* Meta, Attribution                */
  --t-xs:      0.72rem;                         /* Labels, Kicker, Rechtliches      */
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.0625rem; /* 17px — Accessibility-Minimum */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typografie ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

.label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 0.75rem;
}

p { color: var(--fg2); }
strong { color: var(--fg); font-weight: 600; }

/* Fließtext (dichte Lesetexte) bei 400 — die dünne 300er-Garamond
   wirkt als Lauftext zu blass; Display-/Hero-Momente bleiben bei 300. */
.legal-page p, .legal-page li,
.pillar p, .scrolly-step p, .feat-desc,
.starter-intro, .zeitplan-intro, .zeitplan-lead,
.feat-hero-lead, .app-intro p:not(.app-intro-lead) {
  font-weight: 400;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Globale Fokus-Stile für Tastatur-Navigation */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Inputs: behalten ihren Bottom-Border-Fokus */
input:focus-visible { outline: none; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section {
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 8vw, 6rem) var(--pad-x);
}
/* Inhalt bleibt in zentrierter Lesespalte, Sektion selbst ist full-bleed.
   hero-story ausgenommen — die verwaltet ihre eigene full-bleed-Sticky-Struktur. */
section:not(.hero-story) > * {
  max-width: var(--max);
  margin-inline: auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col .screenshot-wrap { order: -1; }
}

/* ─── Skip-Link (Tastatur-Navigation) ───────────────────────── */
/* Normalerweise unsichtbar — erscheint nur beim Tab-Navigieren  */
.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 9999;
  transform: translateY(-120%);
  background: var(--amber);
  color: var(--bg);
  font-size: var(--t-small);
  font-family: var(--serif);
  letter-spacing: 0.08em;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* ─── Hero Story (scroll-getriebene Erzählung) ──────────────── */

/* Äußerer Container: erzeugt den Scrollraum
   500vh gibt dem Typewriter-Kapitel genug Platz (~160vh reale Scroll-Distanz) */
.hero-story {
  position: relative;
  height: 500vh;
  border-bottom: 1px solid var(--border);
  padding: 0; /* überschreibt section-Padding */
}

/* Sticky-Pane: klebt im Viewport, nimmt genau 100svh ein */
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;   /* Fallback für Safari < 16 */
  height: 100svh;  /* Safari 16+, Chrome 108+ — exkludiert iOS-Browser-Chrome */
  overflow: hidden;
}

/* Brotbild: statisch, kein Parallax */
.hero-bg {
  position: absolute;
  inset: 0;
  /* Fallback für Safari < 17.2 (kein image-set type() support) */
  background-image:
    linear-gradient(
      to top,
      rgba(10,8,6,0.90) 0%,
      rgba(10,8,6,0.72) 20%,
      rgba(10,8,6,0.38) 55%,
      rgba(10,8,6,0.52) 100%
    ),
    url('../img/photos/hero-splash.jpg');
  /* Moderne Browser (Chrome 87+, Firefox 116+, Safari 17.2+): WebP */
  background-image:
    linear-gradient(
      to top,
      rgba(10,8,6,0.90) 0%,
      rgba(10,8,6,0.72) 20%,
      rgba(10,8,6,0.38) 55%,
      rgba(10,8,6,0.52) 100%
    ),
    image-set(
      url('../img/photos/hero-splash.webp') type('image/webp'),
      url('../img/photos/hero-splash.jpg')  type('image/jpeg')
    );
  background-size: cover;
  background-position: center 35%;
  z-index: 0;
  transition: opacity 1s ease;
}

/* Desktop: Querformat-Bild, statisch */
@media (min-width: 820px) {
  .hero-bg {
    /* Fallback für Safari < 17.2 */
    background-image:
      linear-gradient(
        to right,
        rgba(10,8,6,0.50) 0%,
        rgba(10,8,6,0.28) 28%,
        rgba(10,8,6,0.38) 55%,
        rgba(10,8,6,0.85) 100%
      ),
      linear-gradient(
        to top,
        rgba(10,8,6,0.85) 0%,
        rgba(10,8,6,0.0) 25%
      ),
      url('../img/photos/hero-wide.jpg');
    /* Moderne Browser: WebP */
    background-image:
      linear-gradient(
        to right,
        rgba(10,8,6,0.50) 0%,
        rgba(10,8,6,0.28) 28%,
        rgba(10,8,6,0.38) 55%,
        rgba(10,8,6,0.85) 100%
      ),
      linear-gradient(
        to top,
        rgba(10,8,6,0.85) 0%,
        rgba(10,8,6,0.0) 25%
      ),
      image-set(
        url('../img/photos/hero-wide.webp') type('image/webp'),
        url('../img/photos/hero-wide.jpg')  type('image/jpeg')
      );
    background-position: center 42%;
  }
}


/* Dunkle Überblendung für Kapitel 3 */
.hero-dark {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* ─── Story-Schichten ────────────────────────────────────────── */
.story-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}
.story-layer.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Layouts innerhalb der Schichten */
.story-layout {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 0 var(--pad-x);
}

/* Kapitel 0: Text unten links (Mobile) / Mitte rechts (Desktop) */
/* Mehr Padding unten damit Scroll-Indikator nicht mit Button überlappt */
.story-layout--hero {
  align-items: flex-end;
  padding-bottom: clamp(7rem, 12vw, 9rem);
}
@media (min-width: 820px) {
  .story-layout--hero {
    align-items: center;
    justify-content: flex-end;
  }
  .story-layout--hero .story-inner {
    max-width: 30rem;
  }
}

/* Kapitel 1–3: zentriert */
.story-layout--center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.story-inner {
  width: 100%;
  max-width: 34rem;
}
.story-inner--wide {
  max-width: 46rem;
}

/* ─── Kapitel 0: Hero-Inhalt ─────────────────────────────────── */
.story-layer[data-layer="0"] h1 {
  max-width: 24ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--fg);
}

/* ─── Scroll-Indikator (Kapitel 0, mittig unten) ────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.scroll-indicator-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg3);
}

.scroll-indicator-track {
  width: 1px;
  height: 36px;
  background: rgba(237,229,208,0.2);
  position: relative;
  overflow: hidden;
}

.scroll-indicator-dot {
  position: absolute;
  top: -10px;
  left: 0;
  width: 1px;
  height: 10px;
  background: var(--fg2);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%   { top: -10px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 36px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator-dot { animation: none; top: 12px; }
}

/* ─── Kapitel 1: Typewriter ──────────────────────────────────── */
.typewriter-sentence {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-h1);
  line-height: 1.3;
  color: var(--fg);
}

#tw-name {
  color: var(--amber);
}

/* ─── Kapitel 2: Namenseingabe ───────────────────────────────── */
.story-question {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-h2);
  line-height: 1.35;
  color: var(--fg);
  margin-bottom: 2rem;
}

.story-input-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#starter-name {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(237,229,208,0.35);
  color: var(--fg);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem); /* mind. 16px für iOS — kein Zoom */
  font-weight: 300;
  font-style: italic;
  text-align: center;
  width: 100%;
  max-width: 280px;
  padding: 0.5rem 0.5rem 0.6rem;
  outline: none;
  transition: border-color 0.25s;
  caret-color: var(--amber);
  border-radius: 0;
  -webkit-appearance: none;
}
#starter-name::placeholder { color: var(--fg3); }
#starter-name:focus { border-bottom-color: var(--amber); }

/* ─── Kapitel 3: App-Intro (dunkler Hintergrund) ─────────────── */
.app-intro {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 42ch;
  margin: 0 auto;
  text-align: center;
}

/* Alle Absätze: einheitliche Größe */
.app-intro p {
  font-size: var(--t-large);
  color: var(--fg2);
  line-height: 1.7;
}

/* Hauptsatz: kursiv, größer — nach .app-intro p für korrekte Spezifität */
.app-intro p.app-intro-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-h2);
  color: var(--fg);
  line-height: 1.45;
}

/* Letzter Satz: gleiche Größe, nur etwas gedämpfter */
.app-intro p.app-intro-sub {
  color: var(--fg3);
}

/* ─── Hilfsmittel ────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.site-header {
  position: absolute;
  top: clamp(1.5rem, 4vw, 2.5rem);
  left: var(--pad-x);
  z-index: 4; /* über allen Story-Schichten */
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  height: 34px;
  width: 34px;
  border-radius: 22%;   /* iOS-App-Icon-Stil */
  object-fit: cover;
}

.site-header .site-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.btn-store:hover {
  background: rgba(196,136,58,0.08);
  text-decoration: none;
}

/* Fixes Download-Badge: nach dem Hero eingeblendet, ganze Journey sichtbar */
.floating-cta {
  position: fixed;
  top: clamp(1rem, 2.5vw, 1.5rem);
  right: clamp(1rem, 4vw, 2rem);
  z-index: 50;
  line-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.floating-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.floating-cta img {
  display: block;
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45));
}
@media (max-width: 560px) {
  .floating-cta img { height: 34px; }
}

/* Offizieller App Store Badge */
.btn-store-badge {
  display: inline-block;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.btn-store-badge:hover {
  opacity: 1;
  text-decoration: none;
}
.btn-store-badge img {
  display: block;
  height: 44px;
  width: auto;
}

/* ─── Phone Screenshot (Scrolly-Rundgang) ───────────────────── */
.screenshot-wrap {
  display: flex;
  justify-content: center;
}

.phone-screenshot {
  width: 100%;
  max-width: 260px;
  border-radius: 40px;
  box-shadow:
    0 0 0 1px rgba(237,229,208,0.08),
    0 24px 80px rgba(0,0,0,0.6);
  display: block;
}

/* ─── Starter-Sektion ────────────────────────────────────────── */
.starter-intro {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 2rem;
  max-width: 42ch;
}

.naming-block {
  margin-top: 2rem;
}

.naming-question {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--fg);
  margin-bottom: 1rem;
}

.name-row {
  display: flex;
  gap: 0.5rem;
  max-width: 340px;
}

.name-row input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}
.name-row input::placeholder { color: var(--fg3); }
.name-row input:focus { border-color: var(--amber); }

.name-row button {
  background: transparent;
  border: 1px solid var(--amber);
  border-radius: 4px;
  color: var(--amber);
  padding: 0.75rem 1.25rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.name-row button:hover { background: rgba(196,136,58,0.08); }

.starter-response {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg);
  font-size: var(--t-h3);
  line-height: 1.4;
  min-height: 1.5em;
  text-shadow: 0 1px 12px rgba(10,8,6,0.7);
}

/* ─── Zeitplan-Sektion ───────────────────────────────────────── */
.zeitplan-intro {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 2rem;
  max-width: 42ch;
}

.zeitplan-block { margin-top: 2rem; }

.zeitplan-question {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--fg);
  margin-bottom: 1rem;
}

.date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 340px;
}

.date-row input[type="datetime-local"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  color-scheme: dark;
}
.date-row input:focus { border-color: var(--amber); }

.date-row button {
  background: transparent;
  border: 1px solid var(--amber);
  border-radius: 4px;
  color: var(--amber);
  padding: 0.75rem 1.25rem;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.date-row button:hover { background: rgba(196,136,58,0.08); }

.zeitplan-result {
  margin-top: 1rem;
  color: var(--fg);
  font-size: 1.05rem;
  min-height: 1.5em;
  line-height: 1.6;
}
.zeitplan-result strong { color: var(--amber); }

/* ─── Wert-Säulen ────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.pillar {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.pillar h3 {
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ─── Zitat ──────────────────────────────────────────────────── */
.quote-section {
  text-align: center;
}

.quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-h3);
  color: var(--fg);
  max-width: 36ch;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.quote-attr {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--fg3);
}

/* ─── Haupt-CTA ──────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  border-bottom: none;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 1.1rem 2.5rem;
  border-radius: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-large);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-cta:hover {
  background: rgba(196,136,58,0.08);
  text-decoration: none;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--fg3);
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--fg3);
}
.footer-legal a:hover { color: var(--fg2); }

.footer-features a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--fg3);
}
.footer-features a:hover { color: var(--fg2); }

/* ─── Editoriale Sektionsnummern ─────────────────────────────── */
.sec-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--amber);
  letter-spacing: 0;
  margin-right: 0.6rem;
  vertical-align: baseline;
}

/* ─── Krume-Moment (Vollbild-Trenner) ────────────────────────── */
.krume-moment {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 560px);   /* Fallback für Safari < 16 */
  min-height: min(70svh, 560px);  /* Safari 16+, Chrome 108+ */
  padding: clamp(3rem, 10vw, 7rem) var(--pad-x);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.krume-moment-bg {
  position: absolute;
  inset: 0;
  /* Fallback für Safari < 17.2 */
  background-image:
    linear-gradient(
      to right,
      rgba(10,8,6,0.92) 0%,
      rgba(10,8,6,0.78) 45%,
      rgba(10,8,6,0.45) 100%
    ),
    url('../img/photos/krume.png');
  /* Moderne Browser: WebP */
  background-image:
    linear-gradient(
      to right,
      rgba(10,8,6,0.92) 0%,
      rgba(10,8,6,0.78) 45%,
      rgba(10,8,6,0.45) 100%
    ),
    image-set(
      url('../img/photos/krume.webp') type('image/webp'),
      url('../img/photos/krume.png')  type('image/png')
    );
  background-size: cover;
  background-position: center 50%;
  z-index: 0;
}

.krume-moment-text {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
}

.dict-word {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-display);
  color: var(--fg);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.dict-gender {
  color: var(--amber);
  font-size: 0.5em;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.dict-def {
  font-family: var(--serif);
  font-size: var(--t-large);
  color: var(--fg2);
  max-width: 30ch;
  line-height: 1.55;
}

/* ─── Zeitplan-Timeline ──────────────────────────────────────── */
.zeitplan-lead {
  margin-top: 1.25rem;
  color: var(--fg2);
  font-size: 1rem;
  line-height: 1.6;
}
.zeitplan-lead strong { color: var(--amber); }

.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 380px;
}

.timeline li {
  position: relative;
  padding: 0 0 1.35rem 1.75rem;
  border-left: 1px solid var(--border);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }

.timeline li::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg3);
}
.timeline li.is-start::before { background: var(--green); }
.timeline li.is-finish::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(196,136,58,0.15);
}

.timeline .tl-phase {
  display: block;
  font-size: 1.05rem;
  color: var(--fg);
  line-height: 1.3;
}
.timeline .tl-time {
  display: block;
  font-size: 0.8rem;
  color: var(--fg3);
  letter-spacing: 0.03em;
  margin-top: 0.15rem;
}
.timeline li.is-finish .tl-phase { color: var(--amber); font-style: italic; }

/* ─── Rundgang — Scrollytelling ──────────────────────────────── */
.scrolly-intro {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.scrolly-inner {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.scrolly-phone {
  position: sticky;
  top: 14vh;
  align-self: start;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(280px, 80%);
  aspect-ratio: 1206 / 2622;
}

.scrolly-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 0 0 1px rgba(237,229,208,0.08),
    0 24px 80px rgba(0,0,0,0.6);
}
.scrolly-screen.is-active { opacity: 1; }

.scrolly-steps {
  display: flex;
  flex-direction: column;
}

.scrolly-step {
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transition: opacity 0.45s ease;
}
.scrolly-step.is-active { opacity: 1; }

.scrolly-step .step-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.scrolly-step h3 {
  color: var(--fg);
  margin-bottom: 1rem;
}
.scrolly-step p {
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 40ch;
}

@media (max-width: 760px) {
  .scrolly-inner { grid-template-columns: 1fr; gap: 0; }
  .scrolly-phone {
    top: 0;
    padding: 1rem 0;
    background: linear-gradient(to bottom, var(--bg) 70%, transparent);
    z-index: 2;
  }
  .phone-frame { width: min(200px, 55%); }
  .scrolly-step { min-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  .scrolly-screen { transition: none; }
  .scrolly-step { opacity: 1; transition: none; }
}

/* ─── Scroll-Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Legal-Seiten ───────────────────────────────────────────── */
.legal-header {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--pad-x) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.legal-header .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.legal-header .site-brand:hover { text-decoration: none; }
.legal-header .site-logo { height: 30px; width: 30px; border-radius: 22%; object-fit: cover; }
.legal-header .site-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--fg);
}
.legal-header .back-link {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg3);
}
.legal-header .back-link:hover { color: var(--amber); text-decoration: none; }

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad-x) clamp(3rem, 7vw, 5rem);
}

.legal-page h1 {
  font-size: var(--t-h2);
  margin-bottom: 0.5rem;
}

.legal-page .stand {
  font-size: var(--t-small);
  color: var(--fg3);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--fg);
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
}
.legal-page h2:first-of-type { margin-top: 0; }

.legal-page h3 {
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 400;
  color: var(--fg);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page li {
  font-size: var(--t-base);
  color: var(--fg2);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.legal-page li { margin-bottom: 0.4rem; }

.legal-page strong { color: var(--fg); font-weight: 600; }
.legal-page a { color: var(--amber); }

/* Adressblock / Kontaktdaten */
.legal-page address {
  font-style: normal;
  color: var(--fg);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Sichtbar markierte Platzhalter — dürfen nicht live gehen */
.ph {
  display: inline-block;
  background: rgba(196,136,58,0.16);
  border-bottom: 1px dashed var(--amber);
  color: var(--amber);
  padding: 0 0.3em;
  border-radius: 2px;
  font-style: normal;
  white-space: nowrap;
}

/* Hinweisbox (Entwurf / Ausfüll-Checkliste) */
.draft-notice {
  border: 1px solid var(--amber);
  border-radius: 6px;
  padding: 1.1rem 1.35rem;
  margin-bottom: 2.5rem;
  font-size: var(--t-small);
  color: var(--amber);
  line-height: 1.65;
}
.draft-notice strong { color: var(--amber); font-weight: 600; }

/* Legal-Footer mit Querverlinkung */
.legal-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem var(--pad-x) 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.legal-footer a {
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
}
.legal-footer a:hover { color: var(--amber); text-decoration: none; }
