/*
  Stylesheet der Landingpage. Farben, Schriften und Farbwerte kommen aus
  social/design/tokens.json (Werte hier als CSS-Variablen kopiert, nicht
  verlinkt). Groessen sind fuer eine scrollende Webseite responsiv gesetzt,
  nicht die festen Pixelwerte der Instagram-Vorlagen.
*/

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-VariableFont_opsz-wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --papier: #F4F0E8;
  --papier-tief: #EAE4D9;
  --tusche: #16130F;
  --tusche-gedaempft: #6E6860;
  --haarlinie: rgba(22, 19, 15, 0.16);
  --serife: "Playfair Display", Georgia, serif;
  --grotesk: "Inter", -apple-system, sans-serif;
  --seitenrand: clamp(20px, 6vw, 96px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--papier);
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tusche);
  font-family: var(--serife);
  line-height: 1.4;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--papier);
  color: var(--tusche);
  padding: 12px 20px;
  z-index: 100;
}

.skip-link:focus {
  left: var(--seitenrand);
  top: 12px;
}

/* Kopfzeile: Markenzeile links, Sprachschalter rechts. */
.kopf {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--seitenrand);
}

.marke {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tusche-gedaempft);
}

.sprachschalter {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.08em;
  background: none;
  border: none;
  color: var(--tusche);
  cursor: pointer;
  padding: 4px 0;
}

/* Knoepfe: Haarlinie oder gefuellt, Text immer Inter, keine Ecken, kein Schatten. */
.knopf {
  display: inline-block;
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(13px, 1.8vw, 15px);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  padding: 0.95em 1.9em;
  border: 1px solid var(--tusche);
}

.knopf-haarlinie {
  background: transparent;
  color: var(--tusche);
}

.knopf-gefuellt {
  background: var(--tusche);
  color: var(--papier);
}

.knoepfe {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: clamp(28px, 5vh, 44px);
}

/* Eins -- Einstieg */
.abschnitt-einstieg {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--seitenrand);
}

.eyebrow {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tusche-gedaempft);
  margin: 0 0 clamp(14px, 2.4vh, 22px);
}

.titel {
  font-family: var(--serife);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1.08;
  margin: 0;
  max-width: 18ch;
}

.untertitel {
  font-family: var(--serife);
  font-weight: 400;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  color: var(--tusche-gedaempft);
  margin: 0.7em 0 0;
  max-width: 34ch;
}

.tagline {
  font-family: var(--serife);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--tusche);
  margin: clamp(20px, 4vh, 32px) 0 0;
}

/* Zwei -- Leitfrage */
.abschnitt-leitfrage {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh var(--seitenrand);
}

.leitfrage-text {
  font-family: var(--serife);
  font-weight: 400;
  font-size: clamp(1.4rem, 4.4vw, 2.6rem);
  line-height: 1.35;
  text-align: center;
  max-width: 22ch;
  margin: 0 auto;
}

/* Markensatz -- zwischen Leitfrage und Weg, eine Stufe kleiner als die Leitfrage. */
.abschnitt-markensatz {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh var(--seitenrand);
}

.markensatz-text {
  font-family: var(--serife);
  font-weight: 400;
  font-size: clamp(1.1rem, 3.2vw, 1.9rem);
  line-height: 1.4;
  text-align: center;
  color: var(--tusche);
  max-width: 26ch;
  margin: 0 auto;
}

/* Drei -- der Weg */
.abschnitt-weg {
  position: relative;
  padding: 8vh var(--seitenrand);
  min-height: calc(9 * 78vh);
}

.weg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.weg-pfad {
  stroke: var(--tusche);
  stroke-opacity: 0.45;
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-dasharray: 10 8;
}

/* Maskenpfad: unsichtbar selbst, deckt im <mask> per stroke-dashoffset
   den bereits gescrollten Teil des Pfads auf -- das Strichmuster oben
   bleibt fest, nur der aufgedeckte Bereich waechst. */
.weg-maskenpfad {
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
}

.wanderfigur {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(28px, 5vw, 56px);
  height: auto;
  transform: translate(-50%, -50%);
  offset-rotate: 0deg;
  pointer-events: none;
}

.stationen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 10vh, 96px);
}

.station {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  min-height: 60vh;
  width: min(560px, 78%);
}

.station-rechts {
  margin-left: auto;
  flex-direction: row-reverse;
  text-align: right;
}

.station-links {
  margin-right: auto;
  text-align: left;
}

.station-text {
  flex: 1 1 auto;
  min-width: 0;
}

.station-nummer {
  font-family: var(--grotesk);
  font-weight: 400;
  font-size: clamp(12px, 1.6vw, 14px);
  letter-spacing: 0.1em;
  color: var(--tusche-gedaempft);
  margin: 0 0 0.4em;
}

.station-titel {
  font-family: var(--serife);
  font-weight: 400;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  line-height: 1.2;
  margin: 0;
}

.station-bild-rahmen {
  flex: 0 0 auto;
  width: clamp(96px, 22vw, 180px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--papier-tief);
}

.station-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(100% 0 0 0);
}

/* Vier -- Heute */
.abschnitt-heute {
  padding: 10vh var(--seitenrand) 8vh;
}

.heute-flaeche {
  border-top: 1px solid var(--haarlinie);
  border-bottom: 1px solid var(--haarlinie);
  padding: clamp(28px, 5vh, 48px) 0;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.heute-tag {
  font-family: var(--grotesk);
  font-weight: 400;
  font-size: clamp(12px, 1.8vw, 14px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tusche-gedaempft);
  margin: 0 0 0.8em;
}

.heute-nummer {
  font-family: var(--grotesk);
  font-size: clamp(12px, 1.6vw, 14px);
  letter-spacing: 0.08em;
  color: var(--tusche-gedaempft);
  margin: 0 0 0.4em;
}

.heute-titel {
  font-family: var(--serife);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 1em;
}

.kapitelliste {
  max-width: 720px;
  margin: clamp(40px, 7vh, 64px) auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 44px);
}

.teil-gruppe h3 {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tusche-gedaempft);
  margin: 0 0 0.9em;
}

.teil-kapitel-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.teil-kapitel-liste li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-family: var(--serife);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.teil-kapitel-liste .kap-nummer {
  font-family: var(--grotesk);
  font-size: 0.8em;
  color: var(--tusche-gedaempft);
  flex: 0 0 auto;
  width: 2.6em;
}

.teil-kapitel-liste .kap-titel {
  flex: 1 1 auto;
}

.teil-kapitel-liste .kap-bild {
  width: 34px;
  height: 34px;
  object-fit: cover;
  flex: 0 0 auto;
}

.teil-kapitel-liste li.kommend {
  color: var(--tusche-gedaempft);
}

/* Fuenf -- Fuss */
.fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vh, 40px) var(--seitenrand);
  font-family: var(--grotesk);
  font-size: clamp(11px, 1.6vw, 13px);
  letter-spacing: 0.06em;
  color: var(--tusche-gedaempft);
}

.fuss-link {
  color: var(--tusche-gedaempft);
  text-decoration: none;
}

.fuss-link:hover,
.fuss-link:focus {
  color: var(--tusche);
}

/* Referenzbreite 1280: Stationen etwas kompakter zueinander, breiterer Seitenrand bleibt clamp-gesteuert. */
@media (min-width: 1000px) {
  .station {
    width: min(560px, 46%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .weg-maskenpfad {
    stroke-dashoffset: 0 !important;
  }
  .wanderfigur {
    display: none;
  }
  .station-bild {
    clip-path: inset(0 0 0 0) !important;
  }
}
