/* =====================================================
   Movion – zentrales Stylesheet

   Designsystem in Kürze:
   - Papier statt dunklem Hero. Trenner sind Haarlinien, keine Karten.
   - Ein Akzent: gedecktes "Buchhaltungsgrün".
   - Serif fürs Display, Sans für Fließtext, Mono für Labels und Zahlen.

   Alle Farben laufen über die Variablen unten. Hier ändern = überall ändern.
   ===================================================== */

:root {
  /* Flächen und Schrift */
  --paper: #f5f7f4;          /* Grundfläche, Weiß mit leichtem Grünstich */
  --surface: #ffffff;
  --ink: #131a16;            /* Überschriften */
  --ink-2: #4a554e;          /* Fließtext */
  --ink-3: #7c877f;          /* Nebentexte, Captions */
  --rule: #dce2da;           /* Haarlinien */
  --rule-strong: #c3ccc0;

  /* Akzent */
  --accent: #1e6b48;
  --accent-hover: #124030;
  --accent-wash: #e6efe9;
  --on-accent: #ffffff;

  /* Semantik: nur für den No-Show-Fall, bewusst kein zweiter Akzent */
  --warn: #a8452b;
  --warn-wash: #f6e9e4;

  /* Dunkles Feld: nur das Abschluss-CTA und der Footer */
  --field: #0f1411;
  --field-ink: #eaefe9;
  --field-ink-2: #9faca3;
  --field-rule: #2a342d;

  /* Heller Button auf dunklem Feld – in beiden Themes gleich */
  --invert-bg: #f5f7f4;
  --invert-ink: #131a16;

  --header-bg: rgba(245, 247, 244, 0.85);

  --radius: 3px;
  --shell: 1180px;

  --font-display: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text",
                  Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono",
               "Roboto Mono", Consolas, monospace;
}

/* Dunkles Theme: nur die Variablen werden neu gesetzt, nie die Komponenten.
   Erst nach Systemeinstellung, dann nach explizitem Theme-Schalter. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1411;
    --surface: #161d18;
    --ink: #e9eee8;
    --ink-2: #a6b1a9;
    --ink-3: #78837b;
    --rule: #26302a;
    --rule-strong: #35413a;
    --accent: #57be89;
    --accent-hover: #7fd3a5;
    --accent-wash: #16261d;
    --on-accent: #08110c;
    --warn: #e08a6e;
    --warn-wash: #2b1a14;
    --field: #070a08;
    --field-rule: #212a24;
    --header-bg: rgba(15, 20, 17, 0.85);
  }
}

:root[data-theme="dark"] {
  --paper: #0f1411;
  --surface: #161d18;
  --ink: #e9eee8;
  --ink-2: #a6b1a9;
  --ink-3: #78837b;
  --rule: #26302a;
  --rule-strong: #35413a;
  --accent: #57be89;
  --accent-hover: #7fd3a5;
  --accent-wash: #16261d;
  --on-accent: #08110c;
  --warn: #e08a6e;
  --warn-wash: #2b1a14;
  --field: #070a08;
  --field-rule: #212a24;
  --header-bg: rgba(15, 20, 17, 0.85);
}

:root[data-theme="light"] {
  --paper: #f5f7f4;
  --surface: #ffffff;
  --ink: #131a16;
  --ink-2: #4a554e;
  --ink-3: #7c877f;
  --rule: #dce2da;
  --rule-strong: #c3ccc0;
  --accent: #1e6b48;
  --accent-hover: #124030;
  --accent-wash: #e6efe9;
  --on-accent: #ffffff;
  --warn: #a8452b;
  --warn-wash: #f6e9e4;
  --field: #0f1411;
  --field-rule: #2a342d;
  --header-bg: rgba(245, 247, 244, 0.85);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.25; }

p { max-width: 65ch; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Mono-Label: die Stimme der Präzision – Eyebrows, Status, Zahlen */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, transform 0.18s ease;
}
/* Der Button hebt sich beim Überfahren minimal an */
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: var(--accent-hover); }

.btn-line { border-color: var(--rule-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); background: var(--surface); }

.btn-invert { background: var(--invert-bg); color: var(--invert-ink); }
.btn-invert:hover { background: #ffffff; }

.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.25s ease;
}
/* Sobald gescrollt wird, löst sich der Header sichtbar von der Seite ab */
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(13, 26, 19, 0.07); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo-dot { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color 0.2s ease;
}
/* Die Unterstreichung fährt von links ein, statt einfach zu erscheinen */
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

/* Aktuelle Seite bleibt markiert */
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav .btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 18px;
  color: var(--on-accent);
}
.main-nav .btn:hover { color: var(--on-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

/* ===== Hero: These links, Beweis rechts ===== */
.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 72px;
  align-items: center;
}

.hero h1 { margin: 20px 0 24px; }
.hero h1 .accent { color: var(--accent); }

.hero-sub { font-size: 1.1rem; margin-bottom: 36px; }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Ruhiger Zweit-CTA: Textlink statt zweitem Button */
.link-arrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 3px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
/* Der Pfeil rückt beim Überfahren nach rechts */
.link-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  color: var(--accent);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.link-arrow:hover {
  text-decoration: none;
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.link-arrow:hover::after { transform: translateX(4px); }

.hero-trust {
  list-style: none;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  display: grid;
  gap: 8px;
}
.hero-trust li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  display: flex;
  gap: 12px;
}
.hero-trust li::before {
  content: "—";
  color: var(--accent);
}

/* ===== Agenda: der Kalender als Beweis ===== */
.agenda {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}

.agenda-head,
.agenda-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
}
.agenda-head { border-bottom: 1px solid var(--rule); }
/* Die linke Beschriftung ist die Überschrift der Tabelle, nicht nur ein Label */
.agenda-title { color: var(--ink); }
.agenda-foot {
  border-top: 1px solid var(--rule);
  background: var(--accent-wash);
}
.agenda-foot .mono-label { color: var(--accent); }

.agenda-list { list-style: none; }

/* Zellen werden explizit zugewiesen – automatische Platzierung
   ließ den Status-Chip sonst über den Text laufen. */
.agenda-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 8px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.2s ease;
}
.agenda-row:last-child { border-bottom: none; }
.agenda-row:hover { background: var(--paper); }

.agenda-when {
  grid-area: 1 / 1 / 3 / 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-2);
}
.agenda-when b { display: block; color: var(--ink); font-weight: 600; }

.agenda-who {
  grid-area: 1 / 2 / 2 / 3;
  font-size: 0.92rem;
  color: var(--ink);
  min-width: 0;
}
.agenda-who small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  margin-top: 2px;
}

.agenda-fee {
  grid-area: 1 / 3 / 2 / 4;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  text-align: right;
  white-space: nowrap;
}
.agenda-fee.is-free { color: var(--accent); font-weight: 600; }

.chip {
  grid-area: 2 / 2 / 3 / 4;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 2px;
}
.chip-done { background: var(--accent-wash); color: var(--accent); }
.chip-noshow { background: var(--warn-wash); color: var(--warn); }
.chip-open { background: var(--paper); color: var(--ink-3); border: 1px solid var(--rule); }

/* ===== Ladesequenz des Heros =====
   Eine Bewegung, von links nach rechts erzählt: erst die Zeile über der
   Überschrift, dann die Überschrift, dann der Rest — und zuletzt die
   Abrechnungstabelle mit ihren Zeilen. Nur CSS, damit sie auch dann läuft,
   wenn das Skript später kommt. Die .js-Klasse setzt ein Zeilen-Skript im
   <head>, sonst würde der Hero kurz sichtbar sein und dann wegblitzen. */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.js .hero-grid > div:first-child > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.js .hero-grid > div:first-child > *:nth-child(1) { animation-delay: 0.05s; }
.js .hero-grid > div:first-child > *:nth-child(2) { animation-delay: 0.14s; }
.js .hero-grid > div:first-child > *:nth-child(3) { animation-delay: 0.23s; }
.js .hero-grid > div:first-child > *:nth-child(4) { animation-delay: 0.32s; }
.js .hero-grid > div:first-child > *:nth-child(5) { animation-delay: 0.41s; }

.js .hero .agenda {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s backwards;
}

/* Die Zeilen laufen ein, nachdem die Tabelle steht */
.js .hero .agenda-row { animation: row-in 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.js .hero .agenda-row:nth-child(1) { animation-delay: 0.62s; }
.js .hero .agenda-row:nth-child(2) { animation-delay: 0.72s; }
.js .hero .agenda-row:nth-child(3) { animation-delay: 0.82s; }
.js .hero .agenda-row:nth-child(4) { animation-delay: 0.92s; }
.js .hero .agenda-foot { animation: rise 0.5s ease 1.05s backwards; }

@keyframes row-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Die Statuszeichen kommen einen Wimpernschlag nach ihrer Zeile */
.js .funnel-rate,
.js .agenda .chip {
  transition: opacity 0.45s ease 0.2s, transform 0.45s ease 0.2s;
}
.js .funnel-rate { opacity: 0; transform: translateX(6px); }
.js .funnel-stage.is-visible .funnel-rate { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-grid > div:first-child > *,
  .js .hero .agenda,
  .js .hero .agenda-row,
  .js .hero .agenda-foot { animation: none; }
  .js .funnel-rate { opacity: 1; transform: none; transition: none; }
  .site-header { transition: none; }
  .btn:hover { transform: none; }
  .link-arrow:hover::after { transform: none; }
}

/* ===== Sektionen mit linker Schiene ===== */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--rule);
}

.rail {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 56px;
}
.rail-head .mono-label { display: block; margin-bottom: 12px; }
.rail-note {
  font-size: 0.88rem;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-top: 16px;
}

.rail-body > h2 { margin-bottom: 16px; }
.rail-body > h2 .accent { color: var(--accent); }
.section-intro { font-size: 1.02rem; }

/* ===== Leistungen: zwei nackte Spalten, getrennt durch eine Linie ===== */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 56px;
}
.pillar {
  padding-right: 40px;
}
.pillar + .pillar {
  border-left: 1px solid var(--rule);
  padding-left: 40px;
  padding-right: 0;
}
.pillar h3 { margin: 16px 0 12px; }
.pillar > p { margin-bottom: 24px; }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 9px;
  border-radius: 2px;
  background: var(--accent-wash);
  color: var(--accent);
}

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  font-size: 0.95rem;
}
.check-list li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ===== Für wen: drei nackte Spalten ===== */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
}
.audience > div { padding: 0 32px; }
.audience > div:first-child { padding-left: 0; }
.audience > div:last-child { padding-right: 0; }
.audience > div + div { border-left: 1px solid var(--rule); }
.audience h3 { font-size: 1.1rem; margin-bottom: 10px; }
.audience p { font-size: 0.93rem; }

/* ===== Ablauf: echte Reihenfolge, deshalb nummeriert ===== */
.steps { margin-top: 40px; }
.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* ===== Referenzen ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat { padding: 28px 32px; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat .mono-label { display: block; margin-top: 8px; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
}
.testimonial { padding: 0 32px; }
.testimonial:first-child { padding-left: 0; }
.testimonial:last-child { padding-right: 0; }
.testimonial + .testimonial { border-left: 1px solid var(--rule); }
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 20px;
}
.testimonial footer strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}
.testimonial footer .mono-label { display: block; margin-top: 4px; }

/* ===== CTA: die einzige dunkle Fläche ===== */
.cta {
  background: var(--field);
  padding: 96px 0;
  border-bottom: 1px solid var(--field-rule);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.cta h2 { color: var(--field-ink); }
.cta p { color: var(--field-ink-2); margin-top: 16px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-alt { font-size: 0.9rem; color: var(--field-ink-2); }
.cta-alt a { color: var(--field-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--field);
  color: var(--field-ink-2);
  padding: 64px 0 32px;
  font-size: 0.92rem;
}
.site-footer .logo { color: var(--field-ink); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--field-rule);
}
.footer-tagline { margin-top: 12px; max-width: 30ch; }
.site-footer .mono-label { display: block; margin-bottom: 14px; color: var(--field-ink-2); }
.site-footer a { color: var(--field-ink); }
.footer-links { display: grid; gap: 6px; }
.footer-bottom {
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--field-ink-2);
}

/* ===== Unterseiten: Kopfbereich ===== */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.page-hero .mono-label { display: block; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-bottom: 20px; }
.page-hero .lead { font-size: 1.1rem; max-width: 58ch; }

/* ===== Fließtext (Über uns) ===== */
.prose { max-width: 66ch; }
.prose p { max-width: none; margin-bottom: 18px; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 14px; }

.pull-quote {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 40px 0;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-top: 12px;
}

/* ===== Fallstudien ===== */
.case { padding: 80px 0; border-bottom: 1px solid var(--rule); }

.case-result {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin: 24px 0 8px;
}

/* Ausgangslage / Umsetzung / Ergebnis */
.case-facts { margin-top: 36px; border-top: 1px solid var(--rule); }
.case-fact {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.case-fact dd { margin: 0; font-size: 0.97rem; }
.case-fact dt { padding-top: 2px; }

/* Kundenstimme innerhalb einer Fallstudie */
.case-quote {
  margin-top: 36px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.case-quote p {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.case-quote footer strong { display: block; font-size: 0.9rem; color: var(--ink); }
.case-quote footer .mono-label { display: block; margin-top: 4px; }

/* Zwischenüberschrift innerhalb einer Sektion */
.subhead {
  font-size: 1.15rem;
  margin: 48px 0 16px;
}
.subhead + .steps { margin-top: 24px; }

/* Kleiner Abstand nach oben, wo ein Element sonst klebt */
.mt { margin-top: 24px; }

/* Kennzahl in den Anreißern auf der Startseite */
.teaser-metric {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* Zwei statt drei Kennzahlen (Über uns) */
.stats-2 { grid-template-columns: 1fr 1fr; }

/* ===== Bilder ===== */
img { max-width: 100%; height: auto; display: block; }

/* Portrait in der linken Schiene (Über uns) */
.portrait {
  margin-bottom: 24px;
}
.portrait img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  filter: grayscale(1);
  transition: filter 0.4s ease;
}
.portrait:hover img { filter: grayscale(0); }
.portrait figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-top: 10px;
}

/* Gesicht zur Kundenstimme */
.quote-person {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  object-fit: cover;
  /* Wie das Portrait: erst grau, bei Zuwendung farbig */
  filter: grayscale(1);
  transition: filter 0.35s ease;
}
.quote-person:hover .avatar { filter: grayscale(0); }

/* ===== Datengrafik 1: Funnel als Stufen =====
   Bewusst KEINE proportionalen Balken: 589 zu 2 wäre unsichtbar,
   und eine geschätzte Breite wäre eine Lüge. Stufen plus echte Quoten. */
.funnel {
  margin-top: 36px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.funnel-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 24px 28px;
}
.funnel-stage + .funnel-stage { border-top: 1px solid var(--rule); }
.funnel-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.funnel-stage:last-child .funnel-num { color: var(--accent); }
.funnel-label { display: block; margin-top: 6px; }
.funnel-rate {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 5px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ===== Datengrafik 2: Vergleich zweier Quoten =====
   Hier sind die Balken echt proportional (12 zu 20). */
.compare {
  margin-top: 36px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
}
.compare-row + .compare-row { margin-top: 22px; }
.compare-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.compare-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.compare-row.is-after .compare-value { color: var(--accent); }
.compare-track {
  height: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.compare-bar {
  height: 100%;
  /* Ohne JavaScript stehen die Balken sofort richtig da. */
  width: var(--w);
  background: var(--rule-strong);
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.compare-row.is-after .compare-bar { background: var(--accent); }
/* Läuft JavaScript, starten sie bei null und wachsen beim Hereinscrollen. */
.js .compare-bar { width: 0; }
.js .compare.is-visible .compare-bar { width: var(--w); }
.compare-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

/* ===== Einblenden beim Scrollen =====
   Ein einziger Effekt, überall gleich. Kein Parallax, kein Zoom. */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Wer Bewegung reduziert haben will, bekommt gar keine. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .compare-bar { transition: none; }
  .portrait img, .avatar { transition: none; }
  .main-nav a:not(.btn)::after { transition: none; }
  .agenda-row { transition: none; }
}

/* ===== Rechtsseiten ===== */
.legal-page { padding: 72px 0 96px; }
.legal-page .legal-inner { max-width: 68ch; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 32px; }
.legal-page h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal-page p, .legal-page ul { margin-bottom: 14px; }
.legal-page ul { padding-left: 20px; }

/* ===== Mobil ===== */
@media (max-width: 900px) {
  .shell { padding: 0 20px; }

  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }

  .section { padding: 56px 0; }
  .rail { grid-template-columns: 1fr; gap: 20px; }
  /* Nicht ausblenden: auf den Fallstudien steht hier die Kategorie und der Kunde */
  .rail-note { font-size: 0.85rem; margin-top: 10px; }

  /* Nackte Spalten werden zu gestapelten Blöcken: Linien wandern nach oben */
  .pillars,
  .audience,
  .testimonials,
  .stats,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pillar,
  .pillar + .pillar,
  .audience > div,
  .testimonial {
    padding: 32px 0 0;
    border-left: none;
  }
  .pillar + .pillar,
  .audience > div + div,
  .testimonial + .testimonial {
    border-top: 1px solid var(--rule);
  }
  .pillars, .audience, .testimonials { margin-top: 32px; }

  .stat + .stat { border-left: none; border-top: 1px solid var(--rule); }
  .stats-2 { grid-template-columns: 1fr; }

  .step { grid-template-columns: 1fr; gap: 8px; }

  .page-hero { padding: 48px 0 40px; }
  .case { padding: 48px 0; }
  .case-fact { grid-template-columns: 1fr; gap: 6px; }
  .case-quote { padding: 24px; }
  .pull-quote { font-size: 1.25rem; padding-left: 18px; }

  /* Portrait auf Mobil nicht über die volle Breite ziehen */
  .portrait { max-width: 220px; }

  .funnel-stage { grid-template-columns: 1fr; gap: 12px; padding: 20px 22px; }
  .funnel-rate { justify-self: start; }
  .compare { padding: 22px; }

  .cta-grid { gap: 32px; }

  /* Mobil: Titel darf über die volle Breite, Chip und Betrag rücken darunter */
  .agenda-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .agenda-who { grid-area: 1 / 2 / 2 / 4; }
  .chip { grid-area: 2 / 2 / 3 / 3; }
  .agenda-fee { grid-area: 2 / 3 / 3 / 4; align-self: center; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 20px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .main-nav a:hover { border-bottom-color: var(--rule); }
  .main-nav .btn { margin-top: 16px; text-align: center; padding: 14px 18px; }
}
