/* byphilfrei · Design-System v3.1 · gilt für alle Seiten · siehe DESIGN.md
 * Ruhige, professionelle Skala: Headline-Deckel 2.75rem, keine Uppercase-Poster-Typo.
 * Farbstrategie: Schwarz trägt, Logo-Orange trägt einzelne Sektionen (Drench) und Aktionen.
 * Typo: Archivo (eine Familie, Gewichts-Kontrast 400/700/800/900)
 */

:root {
  --bg:        oklch(14% 0.008 60);
  --surface:   oklch(18% 0.010 60);
  --ink:       oklch(97% 0.005 80);
  --ink-dim:   oklch(78% 0.008 70);
  --line:      oklch(30% 0.010 60);
  --orange:    oklch(72% 0.168 55);
  --orange-hi: oklch(77% 0.165 60);
  --on-orange: oklch(15% 0.020 60);

  --font: "Archivo", ui-sans-serif, sans-serif;

  --s1: 0.5rem;
  --s2: 0.875rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: 6.5rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --shell: 72rem;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/archivo-var.woff2") format("woff2");
}

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

html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--ink); }

::selection { background: var(--orange); color: var(--on-orange); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.drench :focus-visible { outline-color: var(--on-orange); }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Masthead (identisch auf jeder Seite) ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 3.5rem;
}
.masthead .brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.masthead .brand svg { height: 1.6rem; width: auto; display: block; }
.masthead nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); white-space: nowrap; }
.masthead nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  padding-block: 1rem;
  border-bottom: 3px solid transparent;
  transition: color 180ms var(--ease);
}
.masthead nav a:hover { color: var(--ink); }
.masthead nav a:active { color: var(--orange); }
.masthead nav a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }

/* ---------- Hero: Logo-Anker, ruhige Headline ---------- */
.hero { padding-block: clamp(3rem, 9vh, 6rem) var(--s6); }
.hero-lockup {
  display: flex;
  align-items: center;
  gap: 0.16em;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.015em;
}
.hero-lockup svg { height: 1.62em; width: auto; flex-shrink: 0; }
.hero h1 {
  margin-top: var(--s4);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.hero .sub {
  margin-top: var(--s3);
  max-width: 52ch;
  font-size: 1.125rem;
  color: var(--ink-dim);
}
.hero .sub strong { color: var(--ink); font-weight: 700; }
.hero .aktionen {
  margin-top: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}

/* Hero-Entrance: eine dezente Sequenz */
.rise { opacity: 0; transform: translateY(14px); animation: rise 560ms var(--ease) forwards; }
.rise-2 { animation-delay: 70ms; }
.rise-3 { animation-delay: 140ms; }
.rise-4 { animation-delay: 220ms; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  color: var(--on-orange);
  background: var(--orange);
  transition: background-color 180ms var(--ease), transform 150ms var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--orange-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.drench .btn { background: var(--on-orange); color: var(--orange); }
.drench .btn:hover { background: oklch(22% 0.02 60); }

a.still {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 180ms var(--ease);
}
a.still:hover { color: var(--orange); }

/* ---------- Sektionen ---------- */
section { padding-block: var(--s6); }

h2 {
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Orange-Drench-Blöcke */
.drench { background: var(--orange); color: var(--on-orange); }
.drench blockquote p {
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 28ch;
}
.drench figcaption { margin-top: var(--s3); font-weight: 700; font-size: 1rem; }
.drench .cta-line {
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.drench .cta-sub { margin-top: var(--s3); max-width: 52ch; font-size: 1.0625rem; }
.drench .aktionen { margin-top: var(--s4); }

/* Firma hinter allem */
.firma .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.prose { color: var(--ink-dim); font-size: 1.125rem; max-width: 58ch; }
.prose p + p { margin-top: var(--s3); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { font-style: italic; }

@media (max-width: 760px) {
  .firma .shell { grid-template-columns: minmax(0, 1fr); }
}

/* Stationen — Größenrhythmus statt Linien */
.stationen ol { list-style: none; margin-top: var(--s5); display: grid; gap: var(--s4); }
.stationen li {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1.62fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}
.stationen .wann {
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--orange);
}
.stationen .was { color: var(--ink-dim); font-size: 1.0625rem; max-width: 58ch; }
.stationen .was strong { color: var(--ink); font-weight: 700; }

@media (max-width: 760px) {
  .stationen li { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
}

/* Archiv — 13 Folgen, fließend, ohne Boxen */
.archiv .einleitung { margin-top: var(--s3); max-width: 54ch; color: var(--ink-dim); font-size: 1.0625rem; }
.archiv ol {
  list-style: none;
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: var(--s4) clamp(2rem, 5vw, 5rem);
}
.archiv li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: var(--s2); align-items: start; }
.archiv .nr {
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--orange);
}
.archiv h3 {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
}
.archiv .zitat { margin-top: var(--s1); color: var(--ink-dim); max-width: 48ch; }

/* Über mich — Foto + Text */
.ueber-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.portrait { min-width: 0; }
.portrait img {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  border-radius: 10px;
}
.ueber h2 { margin-bottom: var(--s3); }
.eigenzitat {
  margin-top: var(--s4);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ink);
  max-width: 30ch;
}
@media (max-width: 760px) {
  .ueber-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait img { max-width: 20rem; }
}

/* Meine Gedanken — Zitate */
.zitate {
  list-style: none;
  margin-top: var(--s4);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--s3) clamp(2rem, 4vw, 4rem);
}
.zitate li {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
  padding-left: 1.1rem;
  position: relative;
}
.zitate li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
}

/* Roadmap — echte Sequenz */
.roadmap .einleitung, .archiv .einleitung, .rules .einleitung, .stimmen .einleitung, .geschichten .einleitung {
  margin-top: var(--s3);
  max-width: 54ch;
  color: var(--ink-dim);
  font-size: 1.0625rem;
}
.phasen {
  list-style: none;
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: var(--s4) clamp(2rem, 5vw, 5rem);
}
.phasen li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: var(--s2); align-items: start; }
.phasen .nr { font-weight: 800; font-size: 1.25rem; line-height: 1.3; color: var(--orange); }
/* Werdegang — zwei Spuren, vertikale Zeitlinie mit Verlaufsrail */
.spuren {
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: var(--s5) clamp(2rem, 5vw, 4.5rem);
}
.spur-titel {
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orange);
  padding-bottom: var(--s2);
  border-bottom: 2px solid var(--line);
  margin-bottom: var(--s4);
}
.spur ol { list-style: none; display: grid; gap: var(--s4); }
.spur li { position: relative; padding-left: 1.75rem; }
.spur li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--orange);
  z-index: 1;
}
.spur li::after {
  content: "";
  position: absolute;
  left: calc(0.35rem - 1px);
  top: 1.2em;
  height: calc(100% + var(--s4) - 0.6em);
  width: 2px;
  background: var(--line);
}
.spur li:last-child::after { display: none; }
.spur .jahr {
  display: block;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 0.15rem;
}
.spur h4 { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.spur li p { margin-top: var(--s1); color: var(--ink-dim); }
.phasen h3 { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.phasen p { margin-top: var(--s1); color: var(--ink-dim); max-width: 46ch; }

/* Geschichten — volle Erzählungen */
.geschichten .story { margin-top: var(--s5); max-width: 66ch; }
.geschichten .story h3 {
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.25;
}
.geschichten .story p { margin-top: var(--s2); color: var(--ink-dim); font-size: 1.0625rem; }
.geschichten .story .story-cta {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
}

/* Golden Rules */
.regeln {
  list-style: none;
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: var(--s4) clamp(2rem, 5vw, 5rem);
  counter-reset: regel;
}
.regeln li { counter-increment: regel; }
.regeln h3 { font-weight: 800; font-size: 1.2rem; }
.regeln h3::before { content: counter(regel) " · "; color: var(--orange); }
.regeln p { margin-top: var(--s1); color: var(--ink-dim); max-width: 48ch; }

/* Stimmen — Auto-Scroll-Carousel, zentriert */
.stimmen .shell { text-align: center; }
.stimmen .einleitung { margin-inline: auto; }
.caro { margin: var(--s5) auto 0; max-width: 46rem; background: var(--surface); border-radius: 10px; padding: var(--s4); }
.caro-viewport { overflow: hidden; transition: height 320ms var(--ease); }
.caro-track {
  display: flex;
  align-items: flex-start;
  transition: transform 480ms var(--ease);
}
.caro-slide { flex: 0 0 100%; min-width: 0; padding-inline: 0.125rem; }
.caro-slide blockquote {
  font-weight: 600;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  max-width: 52ch;
  margin-inline: auto;
}
.caro-slide figcaption { margin-top: var(--s3); display: flex; align-items: baseline; justify-content: center; gap: var(--s2); flex-wrap: wrap; }
.caro-slide .wer { color: var(--orange); font-weight: 700; }
.caro-slide .rolle { color: var(--ink-dim); font-size: 0.9375rem; }
.caro-nav { margin-top: var(--s4); display: flex; align-items: center; justify-content: center; gap: var(--s3); }
.caro-btn {
  font-family: var(--font);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 2px solid var(--line);
  border-radius: 8px;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), transform 150ms var(--ease);
}
.caro-btn:hover { border-color: var(--orange); color: var(--orange); }
.caro-btn:active { transform: translateY(1px); }
.caro-count { color: var(--ink-dim); font-weight: 700; font-size: 0.9375rem; min-width: 4.5ch; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .caro-track { transition: none; }
}

/* Kontakt */
.kontakt-liste {
  list-style: none;
  margin-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  font-weight: 700;
  font-size: 1.0625rem;
}

/* ---------- Brief-Seite ---------- */
.brief-body { max-width: 62ch; margin: 0 auto; padding: var(--s5) var(--gutter) var(--s6); font-size: 1.125rem; line-height: 1.75; }
.brief-body .dateline { color: var(--ink-dim); font-weight: 700; }
.brief-body h1 { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.015em; margin-block: var(--s3) var(--s4); }
.brief-body p { margin-bottom: var(--s3); color: var(--ink-dim); }
.brief-body p strong, .brief-body li strong { color: var(--ink); font-weight: 700; }
.brief-body p em { font-style: italic; }

.trenner { display: flex; justify-content: center; margin-block: var(--s5); }
.trenner svg { height: 1.75rem; width: auto; color: var(--orange); }

.mitgabe { list-style: none; margin-bottom: var(--s3); display: grid; gap: var(--s3); }
.mitgabe li { padding-left: 1.4rem; position: relative; color: var(--ink-dim); }
.mitgabe li::before { content: "—"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

.gruss { margin-top: var(--s4); }
.gruss .unterschrift { display: block; margin-top: var(--s1); font-weight: 800; font-size: 1.4rem; color: var(--ink); }

.ps { margin-top: var(--s5); background: var(--surface); padding: var(--s4); border-radius: 8px; }
.ps .ps-kuerzel { font-weight: 800; color: var(--orange); }
.ps-form { display: flex; gap: var(--s2); flex-wrap: wrap; margin-block: var(--s3) var(--s2); }
.ps-row input {
  flex: 1;
  min-width: 200px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  transition: border-color 180ms var(--ease);
}
.ps-row input:hover { border-color: var(--ink-dim); }
.ps-row input:focus { outline: none; border-color: var(--orange); }
.ps-row input::placeholder { color: oklch(60% 0.01 60); }
.ps-form .btn:disabled { background: var(--line); color: var(--ink-dim); cursor: not-allowed; transform: none; }
.hinweis { font-size: 0.9375rem; color: var(--ink-dim); }
.ps-form { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.ps-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.ps-row input { flex: 1; min-width: 200px; }
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: var(--s3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-dim);
  cursor: pointer;
}
.consent input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; min-width: 0; flex: 0 0 auto; accent-color: var(--orange); }
.consent span { flex: 1; min-width: 0; }
.form-msg { margin-top: var(--s2); font-weight: 700; font-size: 0.9375rem; min-height: 1.2em; }
.form-msg.ok { color: var(--orange); }
.form-msg.err { color: oklch(70% 0.15 25); }

/* ---------- Legal-Seiten (Impressum / Datenschutz) ---------- */
.legal { max-width: 60ch; margin: 0 auto; padding: var(--s5) var(--gutter) var(--s6); }
.legal section { padding-block: 0; }
.legal h1 { font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.015em; margin-bottom: var(--s4); }
.legal section { margin-bottom: var(--s4); }
.legal h2 { font-weight: 800; font-size: 1.2rem; margin-bottom: var(--s2); }
.legal p { color: var(--ink-dim); margin-bottom: var(--s2); line-height: 1.7; }
.legal p strong { color: var(--ink); font-weight: 700; }
.legal-back { margin-top: var(--s4); }

.kol-link { color: var(--ink-dim); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color 180ms var(--ease); }
.kol-link:hover { color: var(--orange); text-decoration-color: var(--orange); }

/* ---------- Footer (identisch auf jeder Seite) ---------- */
footer { border-top: 1px solid var(--line); padding-block: var(--s5); }
.foot-lockup {
  display: flex;
  align-items: center;
  gap: 0.16em;
  font-weight: 900;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1;
  letter-spacing: 0.015em;
}
.foot-lockup svg { height: 1.62em; width: auto; flex-shrink: 0; }
.foot-statement { margin-top: var(--s3); font-weight: 700; font-size: 1.125rem; max-width: 36ch; }
.kolophon { margin-top: var(--s4); font-size: 0.875rem; color: var(--ink-dim); }

/* ---------- Mobile-Feinschliff (Smartphone) ---------- */
@media (max-width: 640px) {
  section { padding-block: 3rem; }
  .hero { padding-block: 1.5rem 3rem; }
  footer { padding-block: var(--s4); }

  /* Newsletter-Form schlanker, Button volle Breite */
  .ps { padding: var(--s3); }
  .ps-row { flex-direction: column; }
  .ps-row input { min-width: 0; width: 100%; }
  .ps-row .btn { width: 100%; }

  /* Legal + Brief kompakter */
  .legal { padding-top: var(--s4); }
  .brief-body { padding-block: var(--s4) var(--s5); font-size: 1.0625rem; }

  /* etwas mehr Luft zwischen Listen-Elementen sparen */
  .stationen ol, .archiv ol, .phasen, .regeln, .zitate { margin-top: var(--s4); }
  .spuren { margin-top: var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; }
}
