@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-wdth-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 100% 125%;
  font-display: swap;
}

/* Farbkapitel: jeder Abschnitt eine Fläche.
   Dunkel → Hell → Papier → Akzent → Papier → Hell → Papier → Dunkel
   Die fünf Grundfarben lassen sich im Admin ändern (lib/app.php, THEME_COLORS);
   die Werte hier sind die Standardfarben und müssen dort gleich lauten. */
:root {
  --paper: #ffffff;
  --dark: #1b3a2d;
  --dark-deep: #11271d;
  --accent: #2d6a4f;
  --light: #d3e6d8;
  --ink: #13281e;
  --mist: color-mix(in srgb, var(--light) 40%, #ffffff);
  --on-dark: #ffffff;
  --on-dark-soft: color-mix(in srgb, var(--light) 85%, var(--dark));
  /* Archivo, für Überschriften und Zahlen breit geschnitten */
  --face: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 116%;
  --gutter: clamp(20px, 4vw, 56px);
  --chapter: clamp(88px, 12vw, 200px);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--face);
  font-size: clamp(1.0625rem, 1.1vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--face); margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
.nowrap { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Kopf: Farbe des ersten Kapitels */
.top { background: var(--dark); color: var(--on-dark); }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; }
.logo { font-size: 1.3rem; font-weight: 400; font-stretch: var(--wide); text-decoration: none; white-space: nowrap; }
.logo b { font-weight: 600; }
.logo img { display: block; height: 44px; width: auto; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 28px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--on-dark-soft); transition: color .2s ease; }
.top nav a:hover { color: var(--on-dark); }

/* Kapitel */
.chapter { padding-block: var(--chapter); }
.ch-navy { background: var(--dark); color: var(--on-dark); }
.ch-petrol { background: var(--accent); color: var(--on-dark); }
.ch-sky { background: var(--light); color: var(--ink); }
.ch-paper { background: var(--paper); color: var(--ink); }

.chapter h2 {
  font-size: clamp(1.9rem, 4.4vw, 4.2rem);
  font-weight: 500;
  font-stretch: var(--wide);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: clamp(32px, 4vw, 64px);
}
.ch-paper h2, .ch-sky h2 { color: var(--dark); }

.statement { font-size: clamp(1.2rem, 1.8vw, 1.7rem); line-height: 1.38; font-weight: 400; letter-spacing: -.01em; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Einstieg */
.hero { padding-top: clamp(32px, 6vw, 96px); padding-bottom: var(--chapter); }
/* folgt direkt ein dunkles Kapitel, gehen beide ohne doppelten Abstand ineinander über */
.hero + .ch-navy { padding-top: 0; }
.hero h1 {
  max-width: 19ch;
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  font-weight: 500;
  font-stretch: 118%;
  line-height: 1;
  letter-spacing: -.045em;
  margin-left: -.04em;
}
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(28px, 3vw, 44px); }
.hero-row .statement { max-width: 40ch; color: var(--on-dark); }
.btn {
  display: inline-flex; align-items: center; gap: 12px; flex: none;
  padding: 14px 18px; border: 1px solid var(--light); border-radius: 0;
  background: transparent; color: var(--on-dark);
  font-size: .8125rem; font-weight: 600; font-stretch: 110%; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn::after {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.btn:hover { background: var(--light); color: var(--dark); }
.btn:hover::after { transform: translateX(3px); }

.film { margin: clamp(40px, 5vw, 72px) 0 0; }
.film video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.film figcaption { margin-top: 14px; color: var(--on-dark-soft); font-size: .95rem; }

/* Zahlen: groß, in zwei Spalten */
.figures { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(28px, 4vw, 64px); }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.figures dd {
  margin: 0; font-weight: 400; font-stretch: 112%; color: var(--dark);
  font-size: clamp(2.1rem, 5vw, 5rem); line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.figures dt { font-weight: 500; max-width: 26ch; }


/* Ausgangslage auf Petrol */
.ch-petrol .split > div { display: grid; gap: 1.1em; }
.ch-petrol .split > div p { max-width: 60ch; }
.aside-stack { display: grid; gap: clamp(28px, 3vw, 44px); align-content: start; }
.statement-boxed { background: var(--dark); color: var(--on-dark); padding: clamp(28px, 3vw, 44px); border-radius: var(--radius); }
.fig-dark figcaption { color: var(--on-dark); }

/* Fünf Verbesserungen: Grafik bleibt stehen, Liste läuft */
.split-sticky { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.split-sticky .aside-stack { position: sticky; top: 32px; }
.fig { margin: 0; }
.fig img { display: block; width: 100%; border-radius: var(--radius); background: var(--mist); }
.fig figcaption { margin-top: 12px; font-size: .95rem; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { background: var(--mist); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 34px); }
.points h3 { font-size: clamp(1.3rem, 1.8vw, 1.65rem); font-weight: 500; font-stretch: 110%; color: var(--dark); margin-bottom: 8px; letter-spacing: -.02em; }

/* 3D-Modell der Schnecke */
.screw-head { align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.screw-head h2 { margin-bottom: 0; }
.screw-head p { max-width: 52ch; color: var(--on-dark-soft); }
.screw3d { background: var(--mist); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.scene-views { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px clamp(14px, 2vw, 24px); background: var(--light); }
.view-btn { font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: 2px; border: 0; cursor: pointer; background: var(--paper); color: var(--dark); transition: background-color .2s ease, color .2s ease; }
.view-btn:hover { background: var(--mist); }
.view-btn[aria-pressed="true"] { background: var(--dark); color: var(--on-dark); }
.view-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.scene-follow { position: absolute; left: 16px; bottom: 16px; right: 16px; margin: 0; pointer-events: none; }
.scene-follow:not(:empty) { display: inline-block; width: fit-content; max-width: calc(100% - 32px); padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--dark-deep) 85%, transparent); color: var(--on-dark); font-weight: 500; font-size: .95rem; }
.screw-stage { position: relative; aspect-ratio: 16 / 8; max-height: 78svh; width: 100%; touch-action: pan-y; cursor: grab; }
.screw-stage:active { cursor: grabbing; }
.screw-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.screw-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--dark); font-weight: 500; }
.screw3d.is-ready .screw-status:empty { display: none; }
.screw-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 20px clamp(20px, 2.5vw, 32px); background: var(--light); }
.screw-readout { flex: 1 1 260px; margin: 0; max-width: 70ch; }
.screw-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost { padding: 10px 16px; background: var(--dark); color: var(--on-dark); border: 0; cursor: pointer; font-family: inherit; }
.btn-ghost:hover { background: var(--accent); color: var(--on-dark); }
.btn-ghost:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.screw-facts { margin: clamp(36px, 4vw, 56px) 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.screw-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.screw-facts dd { margin: 0; font-weight: 400; font-stretch: 112%; font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1; letter-spacing: -.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.screw-facts dt { color: var(--on-dark-soft); font-weight: 600; }
.screw-note { margin-top: 28px; max-width: 70ch; color: var(--on-dark-soft); font-size: .95rem; }

/* Bild in voller Breite zwischen zwei Kapiteln */
.band { margin: 0; background: var(--dark); }
.band img { display: block; width: 100%; height: clamp(280px, 52vw, 760px); object-fit: cover; }

/* Fachstellen */
.ratings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.ratings figure { margin: 0; background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 3vw, 44px); display: grid; gap: 22px; align-content: space-between; }
.ratings blockquote { margin: 0; }
.ratings blockquote p { font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.38; font-weight: 400; color: var(--dark); }
.ratings figcaption strong { display: block; font-weight: 600; }
.approach { margin-top: clamp(48px, 6vw, 96px); align-items: end; }
.approach .statement { color: var(--dark); }

/* Fragen: Überschrift links, Antworten rechts */
.split-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.faq-head { position: sticky; top: 32px; display: grid; gap: 20px; }
.faq-head h2 { margin-bottom: 0; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--mist); border-radius: var(--radius); transition: background-color .2s ease; }
.faq details[open] { background: var(--light); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px; cursor: pointer; list-style: none;
  font-weight: 500; font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--dark); color: var(--on-dark); font-size: 1.35rem; font-weight: 400; line-height: 1;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover::after { transform: scale(1.1); }
.faq details[open] summary:hover::after { transform: rotate(45deg) scale(1.1); }
.faq details > p { padding: 0 26px 26px; max-width: 64ch; }
.faq-fig { padding: 0 26px 26px; }

/* Kontakt */
#kontakt address { font-style: normal; font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.6; }
.mail { display: inline-block; margin-top: 10px; font-weight: 500; font-stretch: 112%; font-size: clamp(1.3rem, 2.4vw, 2.2rem); color: var(--light); text-decoration: none; letter-spacing: -.03em; transition: color .2s ease; }
.mail:hover { color: var(--on-dark); }
.sources { background: var(--dark-deep); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); color: var(--on-dark-soft); font-size: .95rem; display: grid; gap: 12px; }
.sources h3 { color: var(--on-dark); font-size: 1.1rem; font-weight: 600; }

/* Fuß: der Name kommt in voller Breite zurück */
.foot { background: var(--dark-deep); color: var(--on-dark-soft); overflow: hidden; }
.foot-name {
  margin: 0; padding-top: clamp(40px, 5vw, 72px);
  font-weight: 500; font-stretch: 120%; color: var(--on-dark); white-space: nowrap;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; margin-left: -.03em;
}
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 36px 40px; font-size: .95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot a { text-decoration: none; transition: color .2s ease; }
.foot a:hover { color: var(--on-dark); }

/* Rechtstexte */
.legal { max-width: 860px; padding-block: clamp(56px, 8vw, 120px); }
.legal h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 500; font-stretch: var(--wide); letter-spacing: -.035em; color: var(--dark); margin-bottom: 12px; }
.legal h2 { font-size: 1.25rem; font-weight: 600; color: var(--dark); margin: 1.8em 0 .4em; }
.legal p { margin: 0 0 1em; }
.legal a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

a:focus-visible, video:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ch-navy a:focus-visible, .ch-petrol a:focus-visible, .top a:focus-visible, .foot a:focus-visible { outline-color: var(--light); }

/* Bewegung: nur mit Skript, nur ohne „weniger Bewegung“ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .split, .split-even, .split-sticky, .split-faq, .ratings { grid-template-columns: minmax(0, 1fr); }
  .split-sticky .aside-stack, .faq-head { position: static; }
  .top nav a[href^="#"]:nth-child(-n+2) { display: none; }
}
@media (max-width: 960px) {
  .screw-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .screw-stage { aspect-ratio: 1 / 1; }
  .screw-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .top nav a[href^="#"]:nth-child(-n+3) { display: none; }
  .hero-row .btn { width: 100%; text-align: center; }
}
