/* OPDPRO.CARE Landingpage – Scroll-Film und Inhalte (Schritt 2, docs/spec-schritt-2.md) */

/* Farben nur aus Branding.md (Vault) bzw. Bestand Film-Bühne. OPD Red nie als Fließtext (auf Weiß 4,13:1). */
:root {
  --red: #e3422d;          /* OPD Red: große Knöpfe, Marker, Fokus, Schlüsselwort ab 32 px */
  --ink: #000000;          /* Überschriften, Pille */
  --text: #403532;         /* Old Burgundy: Fließtext (11,8:1 auf Weiß) */
  --text-2: #706865;       /* Old Burgundy 75 %: Nebentext (5,44 auf Weiß, 4,90 auf --surface-2) */
  --surface: #ffffff;
  --surface-2: #f3f3f2;    /* Salinger 25 % */
  --line: #e8e7e4;         /* Salinger 50 % */
  --line-strong: #d1ceca;  /* Salinger */
  --dark: #0b0c0e;         /* nur Film-Bühne (Bestand) */
  --on-dark: #f5f5f3;
  /* Gestaltungsrunde 2 (02.10.): Zwischentöne nur als rgba() AUS Palettenfarben, keine neuen HEX-Werte. */
  --on-dark-2: rgba(245, 245, 243, 0.72);   /* Nebentext auf --dark: 9,4:1 (auf dem Burgundy-Ende 8,0:1) */
  --hairline: rgba(64, 53, 50, 0.1);         /* Old Burgundy 10 %: Kartenkante auf Weiß */
  --shadow-card: 0 1px 2px rgba(64, 53, 50, 0.06), 0 8px 24px rgba(64, 53, 50, 0.06), 0 32px 64px rgba(64, 53, 50, 0.08);
  /* Brandbook-Fläche (Seiten 14/16): Oakwood Brown #A5837F als Verlauf über Weiß, hell oben links → kräftiger unten rechts. */
  --flaeche-marke: linear-gradient(135deg, rgba(165, 131, 127, 0.28) 0%, rgba(165, 131, 127, 0.72) 100%);
  /* Bühne für die Einstiegspakete: Dunkel mit warmem Old-Burgundy-Auslauf nach unten. */
  --flaeche-dunkel: linear-gradient(180deg, rgba(64, 53, 50, 0) 0%, rgba(64, 53, 50, 0.55) 100%);
  --bg: var(--dark);
  --fg: var(--on-dark);
  --opd-red: var(--red);

  /* Logogröße: einziger Stellwert (Bennett gibt sie noch vor). Leiste = 3 × Logohöhe, Logo mittig darin,
     damit Abstand zu Rand und Nachbar ≥ Logohöhe (Brandbook: Schutzraum X). */
  --logo-h: 24px;
  /* Vergrößerung des Logos beim Öffnen (setzt sequence.js aus dem Scrollweg; 1 = kleine Fassung). */
  --logo-scale: 1;
  --logo-k: 0;
  --logo-dx: calc((var(--logo-scale) - 1) * var(--logo-h));   /* Startwert vor JS: Lage „ecke“ */
  --logo-dy: calc((var(--logo-scale) - 1) * var(--logo-h));
  --header-h: calc(3 * var(--logo-h));
  --gutter: 24px;
  --section-pad: clamp(72px, 10vw, 160px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Scrollweg des Films (zusätzlich zur Bildschirmhöhe, in der er steht) */
  --scroll-length: 600vh;
  color-scheme: dark;
}

@media (max-width: 600px) {
  :root {
    --logo-h: 20px;
    --gutter: 20px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  /* Ankersprünge und Fokus-Scrollen landen unter der festen Leiste, nicht dahinter (statt scroll-margin
     an jedem Block – beides zusammen würde sich addieren). */
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  /* Systemschrift (Apple: SF Pro). Die Hausschrift aus dem Brandbook bewusst nicht im Stack, bis ein lizenzierter Webfont da ist (Spec E4). */
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Kopfzeile ---------- */

/* Wortmarke oben links, bleibt beim Scrollen stehen, direkt auf dem Film (Bennett 02.10.: ohne weiße
   Platte). Ohne Claim. Die Kopfzeile ist eine Leiste über die volle Breite (Höhe 3 × Logohöhe, Logo mittig
   = Abstand zum Rand genau Logohöhe wie bisher); über dem Film ohne Hintergrund. Unter dem Film
   (film-passed, sections.js) weiße Leiste mit Haarlinie, ohne Weichzeichner. Bleibt position: fixed –
   sequence.js misst den Filmstart, nichts im Fluss darf sich verschieben. */
/* Startwert vor dem ersten Scroll-Tick = LOGO_SCALE_MAX in sequence.js (heute 1: Logo bleibt klein). */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--logo-h);
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) calc(max(var(--gutter), var(--logo-h)) + env(safe-area-inset-right, 0px)) 0
    calc(max(var(--gutter), var(--logo-h)) + env(safe-area-inset-left, 0px));
  transition: background-color 0.25s ease;
}

/* Ohne JS weiß niemand, wann der Film vorbei ist: Dann scrollt die Kopfzeile mit dem Seitenanfang weg,
   statt durchsichtig über den Texten zu stehen. Wie fixed außerhalb des Flusses – der Film misst gleich. */
html:not(.js) .site-header {
  position: absolute;
}

html.film-passed .site-header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 -1px 0 var(--line);
}

.site-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  /* Trefferfläche 44 px hoch, ohne das Logo zu verschieben. */
  padding-block: calc((44px - var(--logo-h)) / 2);
  margin-block: calc((44px - var(--logo-h)) / -2);
  line-height: 0;
  /* Schriftzug „PRO.CARE“: positiv schwarz, über dunklen Filmbildern die Negativ-Fassung weiß
     (Brandbook: Primär positiv/negativ). „OPD“ bleibt immer OPD Red. */
  color: var(--ink);
  transition: color 0.35s ease;
}

.film-dark .site-logo {
  color: var(--surface);
}

html.film-passed .site-logo {
  color: var(--ink);
}

.site-logo:focus-visible {
  outline: 2px solid var(--opd-red);
  outline-offset: 3px;
}

.site-logo svg {
  display: block;
  height: var(--logo-h);
  width: auto;
  /* Groß beim Öffnen: Skalierung aus der linken oberen Ecke, dazu verschoben, damit der Abstand zum Rand
     mitwächst (bei 5-fach: 120 px Abstand, 120 px hoch – Bennett 02.10.). Nur das Logo, nicht die Links. */
  transform-origin: 0 0;
  transform: translate(calc(var(--logo-k) * var(--logo-dx)), calc(var(--logo-k) * var(--logo-dy))) scale(var(--logo-scale));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Anker nur ab 900 px. Über dem Film stehen sie nur, solange der Film oben hell ist: film-dark misst oben
   links (Logo), oben rechts ist der Film in Bild ~98–282 mittelhell (gemessen 02.10.) – weiße Schrift käme
   dort nur auf 2,2–2,8:1. Deshalb blenden die Anker mit film-dark aus und unter dem Film wieder ein. */
.site-nav__link {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.film-dark .site-nav__link {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

html.film-passed .site-nav__link {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.site-nav__link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

@media (min-width: 900px) {
  .site-nav__link {
    display: inline-flex;
  }
}

/* Kompakte Pille: schwarz mit weißer Schrift, über dunklen Filmbildern umgekehrt (gleiche Umschaltung wie
   das Logo). Sie trägt ihren Hintergrund selbst und bleibt deshalb über jedem Filmbild lesbar. */
.site-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.35s ease, color 0.35s ease, opacity 0.2s ease;
}

.film-dark .site-nav__cta {
  background: var(--surface);
  color: var(--ink);
}

html.film-passed .site-nav__cta {
  background: var(--ink);
  color: var(--surface);
}

.site-nav__cta:hover {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .site-nav__cta {
    padding: 0 16px;
  }
}

/* Unter 360 px (außerhalb der geprüften Breiten) passt der Knopf nicht neben das Logo – er steht im Hero. */
@media (max-width: 359px) {
  .site-nav__cta {
    display: none;
  }
}

.site-nav a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Skip-Link: erst bei Tastaturfokus sichtbar. */
.skip-link {
  position: fixed;
  top: 12px;
  left: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Scroll-Film ---------- */

.sequence {
  position: relative;
  height: calc(100vh + var(--scroll-length));
}

.sequence__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.sequence__poster,
.sequence__video,
.sequence__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* Füllt das Fenster auf jeder Bildschirmgröße randlos; hochkant am Handy bleibt die Bildmitte
     (Bennett, 01.10.2026). */
  object-fit: cover;
  background: var(--bg);
}

/* Das Poster (erstes Bild, eigenes <img> unter dem Video) steht sofort; das Video blendet weich
   darüber ein, sobald es das erste Bild zeigt. Bleibt der Film stehen (is-failed), bleibt das Poster. */
.sequence__video {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sequence__stage.is-ready .sequence__video {
  opacity: 1;
}

/* Endfehler nach dem ersten Bild: Video weg, Poster bleibt. */
.sequence__stage.is-failed .sequence__video {
  opacity: 0;
}

/* Bedienhinweise sitzen in der kleinsten Bildschirmhöhe, damit die Browserleiste
   auf dem iPhone sie nicht verdeckt. */
/* Scharfe Wertstrom-Ansicht auf dem Laptop-Bildschirm im Schlussbild: Lage per Variablen aus sequence.js,
   blendet über dem Videobild ein, sobald der Laptop steht (is-screen am Stage). */
.sequence__screen {
  position: absolute;
  left: var(--screen-x, 0px);
  top: var(--screen-y, 0px);
  width: var(--screen-w, 0px);
  height: var(--screen-h, 0px);
  object-fit: fill;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.sequence__stage.is-screen .sequence__screen {
  opacity: 1;
}

/* Störung am Dosierer: Rahmen in OPD Red mit pulsierendem Leuchtring, Lage als Anteil des Bildschirmfotos. */
.sequence__alert {
  position: absolute;
  left: calc(var(--screen-x, 0px) + var(--ax) * var(--screen-w, 0px));
  top: calc(var(--screen-y, 0px) + var(--ay) * var(--screen-h, 0px));
  width: calc(var(--aw) * var(--screen-w, 0px));
  height: calc(var(--ah) * var(--screen-h, 0px));
  /* Kein Rahmen (Bennett 02.10.) – nur der pulsierende Leuchtring. */
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
  pointer-events: none;
}

.sequence__stage.is-screen .sequence__alert {
  opacity: 1;
  animation: alert-pulse 1.8s ease-out infinite;
}

@keyframes alert-pulse {
  0% { box-shadow: 0 0 2px 1px rgba(227, 66, 45, 0.75); }
  70% { box-shadow: 0 0 22px 16px rgba(227, 66, 45, 0); }
  100% { box-shadow: 0 0 2px 1px rgba(227, 66, 45, 0); }
}

/* ---------- Kunden und Partner (Logoleiste) ---------- */

.block--referenzen {
  padding-block: clamp(32px, 4vw, 64px);
  border-top: 1px solid var(--line);
}

.logos {
  display: grid;
  gap: 20px 32px;
  align-items: center;
  padding-block: 24px;
}

.logos + .logos {
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .logos {
    grid-template-columns: 160px 1fr;
  }
}

.logos__label {
  margin: 0;
}

.logos__reihe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos__reihe li {
  display: flex;
  align-items: center;
}

/* Fremdlogos einheitlich ruhig: einfarbig grau, beim Überfahren in ihrer Farbe. */
.logos__reihe img {
  display: block;
  width: auto;
  height: 40px;
  max-width: 150px;   /* sehr breite Marken (Steuler) schrumpfen, sehr schmale (Fuchs) bleiben in der Höhe */
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.logos__reihe--partner img {
  height: 40px;
  max-width: 140px;
}

.logos__reihe li:hover img {
  filter: none;
  opacity: 1;
}

@media (max-width: 600px) {
  .logos__reihe img {
    height: 34px;
  }

  .logos__reihe--partner img {
    height: 28px;
  }
}

/* ---------- Story über dem Film ---------- */

.story {
  position: absolute;
  inset: 0;
}

/* Abdunklung des unteren Drittels, nur solange ein Kapitel unten steht – Schrift bleibt überall lesbar. */
.story__scrim {
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  /* iPhone (Bennett 02.10.): Die Story-Ebene ist 100svh hoch (Safari-Leiste sichtbar). Fährt die Leiste beim
     Scrollen ein, wächst der sichtbare Film auf 100vh und unter der Ebene blieb ein heller Streifen. Der Verlauf
     reicht deshalb bis zum Bühnenboden; am Desktop ist svh = vh und der Zusatz null. */
  bottom: calc(100svh - 100vh);
  height: calc(62% + (100vh - 100svh));
  /* Dreistufig: unten kräftig, dann weich auslaufend – wie der Verlauf unter Apples Film-Texten. */
  background: linear-gradient(to top, rgba(11, 12, 14, 0.82) 0%, rgba(11, 12, 14, 0.55) 40%, rgba(11, 12, 14, 0) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.story.has-unten .story__scrim {
  opacity: 1;
}

.story__cap {
  position: absolute;
  left: 50%;
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  width: min(880px, 100% - 2 * var(--gutter));
  margin: 0;
  transform: translate(-50%, 18px);
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  text-wrap: balance;
  /* Weicher Schatten hebt die Schrift von hellen Flächen (Edelstahl, Himmel) ab – ohne Kasten. */
  text-shadow: 0 2px 6px rgba(11, 12, 14, 0.45), 0 8px 32px rgba(11, 12, 14, 0.35);
}

/* Weiche Abdunklung direkt hinter dem Text (Ellipse, nach außen auslaufend). */
.story__cap::before {
  content: "";
  position: absolute;
  inset: -40% -18%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(11, 12, 14, 0.5) 0%, rgba(11, 12, 14, 0.25) 45%, rgba(11, 12, 14, 0) 72%);
  pointer-events: none;
}

.story__cap--dunkel {
  text-shadow: none;
}

.story__cap--dunkel::before {
  display: none;
}

/* Schlussbild: Laptop-Bildschirm ist weiß – dunkle Schrift, ein Stück tiefer (unter die Kopfzeile der Ansicht). */
.story__cap--dunkel {
  color: var(--dark);
}

.story__cap--oben.story__cap--dunkel {
  margin-top: 72px;
}

.story__cap--oben {
  top: calc(var(--header-h) + 40px + env(safe-area-inset-top, 0px));
  bottom: auto;
}

.story__cap.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.story__cap strong {
  display: block;
  font-size: clamp(28px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.story__cap span {
  display: block;
  margin-top: 0.6em;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.86;
}

@media (max-width: 600px) {
  .story__cap {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

.sequence__ui {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
}

.sequence__cue {
  position: absolute;
  left: 50%;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sequence__stage.is-ready .sequence__cue {
  opacity: 1;
}

.sequence__stage.is-ready.is-scrolled .sequence__cue {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.sequence__cue-line {
  position: relative;
  width: 2px;
  height: 18px;
  overflow: hidden;
  border-radius: 1px;
  background: rgba(245, 245, 243, 0.25);
}

.sequence__cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 8px;
  border-radius: 1px;
  background: var(--opd-red);
  animation: cue-drop 1.6s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

@keyframes cue-drop {
  0% { transform: translateY(-8px); }
  70%, 100% { transform: translateY(18px); }
}

/* Ladefortschritt: feine Linie am unteren Rand, verschwindet nach dem Laden. */
.sequence__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(245, 245, 243, 0.12);
  transition: opacity 0.6s ease 0.3s;
}

.sequence__progress span {
  display: block;
  height: 100%;
  background: var(--opd-red);
  transform: scaleX(var(--loaded, 0));
  transform-origin: left center;
  transition: transform 0.2s linear;
}

.sequence__stage.is-loaded .sequence__progress {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .sequence__stage.is-screen .sequence__alert {
    animation: none;
    box-shadow: 0 0 14px 6px rgba(227, 66, 45, 0.4);
  }

  .story__cap,
  .story__scrim,
  .site-header,
  .site-logo,
  .site-nav__link,
  .film-dark .site-nav__link,
  html.film-passed .site-nav__link,
  .site-nav__cta,
  .sequence__video,

  .sequence__cue,
  .sequence__progress span {
    transition: none;
  }

  .sequence__cue-line::after {
    animation: none;
    transform: translateY(5px);
  }
}

/* ---------- Inhalte unter dem Film (Schritt 2) ---------- */

/* Abschnitte: hell, Systemschrift, 8-px-Raster. Jeder Block ist ein eigener <section data-block>. */
.block,
.site-footer {
  color-scheme: light;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  hyphens: auto;
  -webkit-hyphens: auto;
  /* Trennen nur bei langen Wörtern und mit sinnvollen Resten („Wertstrommo-delle“, „Preisemp-fehlungen“ nicht). */
  hyphenate-limit-chars: 10 5 6;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 6;
  overflow-wrap: break-word;
}

.nobr {
  white-space: nowrap;
}

.block {
  padding-block: var(--section-pad);
  background: var(--surface);
}

.block--alt {
  background: var(--surface-2);
}

/* Zwei weiße Blöcke hintereinander: halber Abstand statt doppeltem (gilt auch, wenn Bennett Blöcke streicht).
   Farbige Flächen (Hellgrau, Dunkel, Marke) behalten ihren vollen Abstand. */
.block:not(.block--alt, .block--dunkel, .block--marke) + .block:not(.block--alt, .block--dunkel, .block--marke) {
  padding-top: calc(var(--section-pad) / 2);
}

/* Rhythmus (Runde 2): weiß → warmes Hellgrau (Anwendungen läuft von Weiß in #F3F3F2 aus, Wertstrom bleibt dort)
   → weiß → dunkle Bühne (Pakete) → weiß → Markenfläche (Kontakt) → Hellgrau (Footer). */
.block--anwendungen {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.block--anwendungen + .block--alt {
  padding-top: calc(var(--section-pad) / 2);
}

.block--dunkel {
  background-color: var(--dark);
  background-image: var(--flaeche-dunkel);
  color: var(--on-dark-2);
}

.block--marke {
  background-color: var(--surface);
  background-image: var(--flaeche-marke);
}

/* Große Schrift trennt nur sehr lange Wörter, und nur in der Mitte (sonst „typi-sche“, „Roh-stoff“). */
.display,
.h2,
.h3,
.statement,
.lead,
.card__text,
.triad__item,
.paket__titel,
.pakete-intro__lead,
.faq__item summary {
  /* Rest nach der Trennung ≥ 7 – Chrome zählt das Satzzeichen mit („Produktionsauf-träge,“ sonst erlaubt). */
  hyphenate-limit-chars: 14 6 7;
  -webkit-hyphenate-limit-before: 6;
  -webkit-hyphenate-limit-after: 7;
}

/* Rücksetzer ohne Gewicht (:where), damit die Bausteine ihre Abstände ohne !important setzen. */
:where(.block, .site-footer) :where(p, ul, h2, h3) {
  margin: 0;
}

:where(.block, .site-footer) ul {
  padding: 0;
  list-style: none;
}

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

.wrap--text {
  max-width: calc(980px + 2 * var(--gutter));
}

.wrap--faq {
  max-width: calc(800px + 2 * var(--gutter));
}

/* Schriftgrade (Spec): Display, H2, H3/Karten, Lead, Fließtext 17, Kleingedrucktes 14, Label 13. */
.display,
.h2,
.h3,
.statement {
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}

.display {
  font-size: clamp(32px, 6.5vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(30px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.45;
  color: var(--text);
}

.muted {
  color: var(--text-2);
}

/* Markennamen nie trennen („OPD-PRO.CARE“ stand sonst am Zeilenende). */
.marke {
  hyphens: manual;
  -webkit-hyphens: manual;
  white-space: nowrap;
}

/* Label mit Brandbook-Marker →| (Seite 17). Marker in OPD Red, Text schwarz (rot erst ab 24 px). */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.marker {
  flex: none;
  width: 20px;
  height: 14px;
  color: var(--red);
}

.block__title {
  max-width: 980px;
}

.block__intro {
  display: grid;
  gap: 24px;
  max-width: 980px;
}

.cta {
  margin-top: 48px;
}

/* Großer Knopf in OPD Red: weiße Schrift 19 px fett = „großer Text“ (4,13:1 ≥ 3:1). Hover schwarz. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--red);
  color: var(--surface);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  hyphens: manual;
  -webkit-hyphens: manual;
  transition: background-color 0.2s ease;
  /* Langer Knopftext darf nie über die Bildschirmkante quellen – sonst entsteht am Handy ein
     seitlicher Schiebearch. */
  max-width: 100%;
}

.button:hover {
  background: var(--ink);
}

.button--gross {
  min-height: 64px;
  padding: 0 40px;
  font-size: 21px;
}

.block a:focus-visible,
.block summary:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* 1 Hero: weiß, zentriert, Text ≤ 980 px. */
.hero {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.hero .label {
  justify-content: center;
}

.hero__lead {
  max-width: 760px;
  text-wrap: balance;
}

/* Dreiklang: ab 900 px drei Spalten mit roter 2-px-Linie oben, darunter untereinander. */
.triad {
  display: grid;
  gap: 24px;
  max-width: 980px;
  margin: 64px auto 0;
}

.triad__item {
  padding-top: 16px;
  border-top: 2px solid var(--red);
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}

.hero__fuer {
  margin-top: 32px;
  color: var(--text-2);
  text-align: center;
}

.block--hero .cta {
  text-align: center;
}

/* 2 Anwendungen: drei weiße Karten mit Haarlinie und weicher Tiefe auf dem Hellgrau-Verlauf (Radius 24),
   Ordnungszahl 01–03 in OPD Red (≥ 24 px, Zier: per CSS, für Vorlesehilfen leer). */
.cards,
.pakete {
  display: grid;
  gap: 24px;
  margin-top: 64px;
}

.pakete {
  gap: clamp(16px, 1.8vw, 24px);
}

.cards {
  counter-reset: karte;
}

.card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card::before {
  counter-increment: karte;
  content: counter(karte, decimal-leading-zero);
  content: counter(karte, decimal-leading-zero) / "";
  margin-bottom: 16px;
  color: var(--red);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
}

.card__text {
  color: var(--ink);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.35;
}

/* 3 Wertstrom: dunkle Chips (Radius 20) mit Marker →| in OPD Red auf dem Hellgrau, Schrift hell. */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 64px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-height: 96px;
  padding: 16px 12px 14px;
  border-radius: 20px;
  background-color: var(--dark);
  background-image: var(--flaeche-dunkel);
  box-shadow: var(--shadow-card);
  color: var(--on-dark);
  font-size: clamp(18px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.tiles__text {
  max-width: 760px;
  margin-top: 32px;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.45;
}

.unterzeile {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line-strong);
}

/* 4 Warum: große Aussagen linksbündig untereinander. Schlüsselwort rot erst ab 900 px – dort ist die
   Schrift ≥ 32 px (3,6vw), darunter bleibt es schwarz. */
.reasons {
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.reasons {
  counter-reset: grund;
}

.reason {
  display: grid;
  gap: 16px;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}

/* Große Ordnungszahl in Old Burgundy (Zier, per CSS, für Vorlesehilfen leer) – das Rot bleibt dem Schlüsselwort. */
.reason::before {
  counter-increment: grund;
  content: counter(grund, decimal-leading-zero);
  content: counter(grund, decimal-leading-zero) / "";
  color: rgba(64, 53, 50, 0.28);
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.statement {
  font-size: clamp(24px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.reason__text {
  max-width: 560px;
  color: var(--text-2);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.45;
}

/* 6 Einstiegspakete: dunkle Bühne, helle Karten heben sich ab. Kopf, Preisblock und Leistung stehen ab 900 px
   per Subgrid auf gleicher Höhe (Preise in einer Linie); ohne Subgrid bleibt es eine normale Karte. */
.block--dunkel .label,
.block--dunkel .h2,
.block--dunkel .pakete-intro__lead,
.block--dunkel .vorteile {
  color: var(--on-dark);
}

.block--dunkel .kleingedruckt {
  color: var(--on-dark-2);
}

/* Schwarzer Hover wäre auf der Bühne unsichtbar: dort wird der Knopf weiß. */
.block--dunkel .button:hover {
  background: var(--surface);
  color: var(--ink);
}

.pakete-intro {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

.pakete-intro__lead {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pakete-intro__text {
  display: grid;
  gap: 24px;
}

.vorteile {
  display: grid;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
}

.vorteile li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.vorteile .marker {
  position: relative;
  top: 1px;
}

/* Innenabstand wächst mit (Spec legt ihn für Pakete nicht fest): bei 900 px passt „ab 12.500 €“ sonst nicht
   in eine Spalte (gemessen 7 px Überlauf). */
.paket {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 2.8vw, 40px);
  border-radius: 24px;
  /* Weiß, unten ganz leicht ins warme Hellgrau (Tiefe ohne Glas); Nebentext bleibt dort ≥ 4,9:1. */
  background: linear-gradient(180deg, var(--surface) 55%, var(--surface-2) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 64px rgba(0, 0, 0, 0.45);
  color: var(--text);
}

.paket__name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.paket__titel {
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Preisblock: Haarlinie mit kurzer roter Linie (Brandbook-Rot als Akzent), darunter Hinweis, Preis, Zusatz. */
.paket__preisblock {
  position: relative;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.paket__preisblock::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--red);
}

.paket__hinweis {
  color: var(--text-2);
  font-size: 14px;
}

/* Preis groß: „ab“ und Einheit klein, Zahl groß, Ziffern gleich breit. Wird nicht hochgezählt. */
.preis {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.preis__ab,
.preis__einheit {
  font-size: 17px;
  white-space: nowrap;
}

.preis__ab {
  font-weight: 600;
}

.preis__einheit {
  color: var(--text);
  font-weight: 400;
}

.preis__zahl {
  font-size: clamp(44px, 4.6vw, 64px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.paket__zusatz {
  margin-top: 12px;
  color: var(--text);
  font-size: 15px;
}

.paket__leistung {
  margin-top: 32px;
}

.paket__text {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 15px;
}

.paket__liste {
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.paket__liste li {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.kleingedruckt {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin-top: 48px;
  color: var(--text-2);
  font-size: 14px;
}

/* 8 Häufige Fragen: natives <details>, Plus/Minus per CSS, keine Höhen-Animation. */
.faq {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding-block: 24px;
  color: var(--ink);
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

/* Plus aus zwei Balken; offen bleibt nur der waagerechte (Minus). */
.faq__item summary::after {
  content: "";
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.faq__item summary:hover::after {
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* Offen: schwarzer Kreis mit weißem Minus. */
.faq__item[open] summary::after {
  background: linear-gradient(var(--surface), var(--surface)) center / 14px 2px no-repeat var(--ink);
  box-shadow: none;
}

.faq__answer {
  display: grid;
  gap: 16px;
  max-width: 720px;
  padding-bottom: 32px;
}

/* 9 Kontakt */
.kontakt {
  display: grid;
  justify-items: center;
  gap: 40px;
  text-align: center;
}

.kontakt .cta {
  margin-top: 0;
}

.kontakt__telefon {
  color: var(--text);
  font-size: 19px;
}

/* Auf der Markenfläche steht Nebentext schwarz: 9,2:1 am dunklen Ende (Old Burgundy käme dort nur auf 5,2:1). */
.block--marke .kontakt__telefon {
  color: var(--ink);
}

.kontakt__telefon a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Footer: OPDENHOFF-Wortmarke rot auf Hell, Schutzraum ≥ Logohöhe (20 px). */
.site-footer {
  padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px));
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
}

.site-footer__inner {
  display: grid;
  gap: 24px;
  justify-items: start;
}

/* Maße stehen als Attribute (116 × 20, Seitenverhältnis der Datei 5,78) – mit width:auto im CSS meldet Chrome
   „Lazy-loaded images should have explicit dimensions“. Die SVG skaliert proportional (keine Verzerrung). */
.site-footer__logo {
  display: block;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mehrspaltig ab 900 px */
@media (min-width: 900px) {
  .triad,
  .cards,
  .pakete {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tiles {
    gap: 24px;
  }

  .tile {
    min-height: 200px;
    padding: 24px 28px 28px;
  }

  .tile .marker {
    width: 28px;
    height: 20px;
  }

  .statement__key {
    color: var(--red);
  }

  .reason {
    grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 4fr);
    gap: 40px;
    align-items: baseline;
    padding-block: 48px;
  }

  .pakete-intro {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
  }

  /* Drei Zeilen je Karte (Kopf, Preisblock, Leistung) über alle Karten ausgerichtet. */
  .pakete {
    grid-template-rows: auto auto auto;
    row-gap: 0;
  }

  .paket {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }

  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 40px;
  }
}

/* Einblenden: opacity + 24 px, einmalig (sections.js setzt html.js und .is-visible). Ohne JS und bei
   „Bewegung reduzieren“ steht alles sofort da – versteckt wird nur in diesem Block. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }

  /* :focus-within: Ein per Tab erreichter Knopf darf nie in einem noch unsichtbaren Block liegen. */
  html.js [data-reveal]:not(.is-visible):not(:focus-within) {
    opacity: 0;
    transform: translateY(24px);
  }
}

@media print {
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Film und Skip-Link nicht drucken, Kopfzeile nicht auf jeder Seite über den Text (code-reviewer 02.10.). */
  .sequence,
  .skip-link {
    display: none;
  }

  .site-header {
    position: absolute;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  html.js .triad > [data-reveal]:nth-child(2),
  html.js .cards > [data-reveal]:nth-child(2),
  html.js .tiles > [data-reveal]:nth-child(2),
  html.js .pakete > [data-reveal]:nth-child(2) {
    transition-delay: 80ms;
  }

  html.js .triad > [data-reveal]:nth-child(3),
  html.js .cards > [data-reveal]:nth-child(3),
  html.js .tiles > [data-reveal]:nth-child(3),
  html.js .pakete > [data-reveal]:nth-child(3) {
    transition-delay: 160ms;
  }
}

/* Paketkarten heben sich auf dem Desktop beim Überfahren leicht an. Eigene Eigenschaft translate (nicht transform),
   damit Einblenden und Anheben sich nicht überschreiben; die Staffelung gilt nur fürs Einblenden. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (min-width: 900px) {
  .paket {
    transition: translate 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  }

  html.js .pakete > .paket {
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), translate 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  }

  html.js .pakete > .paket:nth-child(2) {
    transition-delay: 80ms, 80ms, 0s, 0s;
  }

  html.js .pakete > .paket:nth-child(3) {
    transition-delay: 160ms, 160ms, 0s, 0s;
  }

  .paket:hover {
    translate: 0 -6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 96px rgba(0, 0, 0, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .site-footer__links a {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------------------------
   Icons und Handy (Bennett 02.10. nachmittags, als Fassung 2 verglichen und übernommen): Linien-Icons im Stil von
   OPD_ICON-01.svg (120er Raster, runde Enden, OPD Red) und das App-Mockup als Handy-Block.
   Icons ersetzen die Ordnungszahlen der Karten und Gründe. Gezeichnet werden sie beim Einblenden
   (Strich läuft nach, pathLength=1); ohne JS, bei „Bewegung reduzieren“ und im Druck stehen sie fertig da. */
.icon {
  display: block;
  width: 64px;
  height: 64px;
  color: var(--red);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card::before,
.reason::before {
  content: none;
}

.card .icon {
  margin-bottom: 8px;
}

.reason .icon {
  width: 56px;
  height: 56px;
}

/* Wertstrom-Kette: vier weiße Chips, Begriffe aus dem Lead-Text, ab 900 px mit rotem Verbindungsstrich. */
.kette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 56px;
}

.kette__schritt {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 20px 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.kette__schritt .icon {
  width: 56px;
  height: 56px;
}

.kette__name {
  color: var(--ink);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (min-width: 900px) {
  .kette {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .kette__schritt + .kette__schritt::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -24px;
    width: 24px;
    height: 1px;
    background: var(--red);
  }
}

/* Handy-Block: Text links, Mockup rechts (ab 900 px); darunter untereinander. */
.unterzeile--handy {
  max-width: none;
  gap: 32px;
  align-items: center;
}

.unterzeile__text {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.handy {
  width: min(100%, 360px);
  margin: 0;
  justify-self: center;
}

.handy__bild {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .unterzeile--handy {
    grid-template-columns: minmax(0, 560px) minmax(280px, 360px);
    justify-content: space-between;
    gap: 48px;
  }

  .handy {
    justify-self: end;
  }
}

/* Zeichnen beim Einblenden: jede Linie läuft nach, Teile eines Icons gestaffelt. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] .icon > * {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1s var(--ease-out);
    transition-delay: 0.15s;
  }

  html.js [data-reveal].is-visible .icon > * {
    stroke-dashoffset: 0;
  }

  html.js [data-reveal] .icon > :nth-child(2) { transition-delay: 0.24s; }
  html.js [data-reveal] .icon > :nth-child(3) { transition-delay: 0.33s; }
  html.js [data-reveal] .icon > :nth-child(4) { transition-delay: 0.42s; }
  html.js [data-reveal] .icon > :nth-child(5) { transition-delay: 0.51s; }
  html.js [data-reveal] .icon > :nth-child(6) { transition-delay: 0.6s; }
  html.js [data-reveal] .icon > :nth-child(7) { transition-delay: 0.69s; }
  html.js [data-reveal] .icon > :nth-child(8) { transition-delay: 0.78s; }
  html.js [data-reveal] .icon > :nth-child(9) { transition-delay: 0.87s; }
  html.js [data-reveal] .icon > :nth-child(10) { transition-delay: 0.96s; }

  html.js .kette > [data-reveal]:nth-child(2) { transition-delay: 80ms; }
  html.js .kette > [data-reveal]:nth-child(3) { transition-delay: 160ms; }
  html.js .kette > [data-reveal]:nth-child(4) { transition-delay: 240ms; }
}

/* Beim Überfahren hebt sich das Icon leicht, das Handy schwebt (nur mit Maus, ab 900 px). */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (min-width: 900px) {
  .icon {
    transition: transform 0.35s var(--ease-out);
  }

  .card:hover .icon,
  .kette__schritt:hover .icon,
  .reason:hover .icon {
    transform: translateY(-3px) scale(1.06);
  }

  .handy__bild {
    transition: translate 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  }

  .handy:hover .handy__bild {
    translate: 0 -6px;
    box-shadow: 0 1px 2px rgba(64, 53, 50, 0.06), 0 16px 32px rgba(64, 53, 50, 0.1), 0 48px 96px rgba(64, 53, 50, 0.14);
  }
}

@media print {
  .icon > * {
    stroke-dashoffset: 0 !important;
  }
}

/* ---------------------------------------------------------------------------------------------
   Inhalte aus dem Content-Pool (Bennett 05.10., als Fassung 2 verglichen und am 08.10. übernommen): Zweier- und
   Vierer-Karten, Listen in Karten, Wertstrom-Kette mit sieben Schritten, Einstiegsschritte auf Dunkel. */
.card__liste {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  color: var(--text-2);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.45;
}

.card__liste li {
  position: relative;
  padding-left: 22px;
}

.card__liste li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--red);
}

.card__text--leicht {
  color: var(--text-2);
  font-weight: 500;
}

.card--branche {
  gap: 10px;
}

.cards--dunkel {
  margin-top: 56px;
}

.kette--sieben .kette__name {
  font-size: clamp(14px, 1.1vw, 16px);
  overflow-wrap: anywhere;
}

/* Einstiegsschritte: Ordnungszahl in OPD Red, Titel hell, Text gedämpft – auf der dunklen Bühne. */
.schritte {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin: 56px 0 0;
  padding: 0;
  counter-reset: schritt;
}

.schritt {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid rgba(245, 245, 243, 0.14);
}

.schritt:last-child {
  border-bottom: 1px solid rgba(245, 245, 243, 0.14);
}

.schritt__nr {
  color: var(--red);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
}

.schritt__titel {
  margin: 0 0 6px;
  color: var(--on-dark);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.schritt__text {
  margin: 0;
  color: rgba(245, 245, 243, 0.72);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.45;
}

@media (min-width: 900px) {
  .cards--zwei {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards--vier {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kette--sieben {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .cards--vier {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .kette--sieben {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
  }

  .kette--sieben .kette__schritt + .kette__schritt::before {
    left: -16px;
    width: 16px;
  }
}

/* Dritte Schnittstellen-Kachel darf umbrechen (am Handy sonst 4 px Überlauf). */
.tile--umbruch {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.02;
}

/* Abstände Fassung 2 (Bennett 05.10.): Icon-Spalte der Gründe schmal und oben ausgerichtet, Karten-Listen enger,
   gleichmäßige Abstände zwischen Kette, Karten und Kacheln. */
@media (min-width: 900px) {
  .reason {
    grid-template-columns: 72px minmax(0, 6fr) minmax(0, 4fr);
    gap: 32px;
    align-items: start;
  }

  .reason .icon {
    margin-top: 4px;
  }
}

.card__liste {
  gap: 8px;
}

.kette + .cards {
  margin-top: 48px;
}

.cards + .tiles__text {
  margin-top: 48px;
}

.tiles__text {
  margin-top: 28px;
}

.tiles__text + .tiles {
  margin-top: 24px;
}

.unterzeile--handy {
  margin-top: 56px;
  padding-top: 40px;
}

.cards--dunkel {
  margin-top: 48px;
}

.schritte {
  margin-top: 48px;
}

.schritt {
  padding: 20px 0;
}

.block--dunkel .cta {
  margin-top: 48px;
}

/* FAQ: Fragetext als ein Flex-Kind, sonst zieht der Markenname (eigener span) die Frage auseinander (Bennett 05.10.). */
.faq__frage {
  flex: 1 1 auto;
  min-width: 0;
}

/* Kunden- und Partnerlogos verlinken auf die jeweilige Website (Bennett 05.10.), neuer Tab. */
.logos__reihe a {
  display: flex;
  align-items: center;
  border-radius: 8px;
}

.logos__reihe a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 6px;
}

.logos__reihe a:hover img,
.logos__reihe a:focus-visible img {
  filter: none;
  opacity: 1;
}

/* Kundenstimmen (Bennett 05.10.): waagerechte Reihe mit Einrasten, Zitat oben, Person unten. Rundes Bild,
   Name in Ink, Rolle gedämpft. Scrollt am Handy mit dem Finger, am Desktop mit Trackpad oder Shift+Rad. */
.block--stimmen {
  background: var(--surface-2);
  overflow: hidden;
}

.wrap--stimmen {
  max-width: none;
  padding-inline: 0;
}

.stimmen {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(420px, 82vw);
  gap: 16px;
  margin: 48px 0 0;
  padding: 0 var(--gutter) 24px;
  overflow-x: auto;
  align-items: start; /* jede Karte so hoch wie ihr Zitat, keine Leerräume unter kurzen Stimmen */
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.stimmen:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.stimmen.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.stimmen::-webkit-scrollbar {
  display: none;
}

.stimme {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 28px;
  padding: clamp(28px, 2.8vw, 36px);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
}

.stimme__zitat {
  margin: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.5;
}

.stimme__zitat p::before {
  content: "„";
}

.stimme__zitat p::after {
  content: "“";
}

.stimme__wer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.stimme__bild {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}

.stimme__wer figcaption {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.stimme__name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.stimme__rolle {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .stimmen {
    padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2));
    scroll-padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2));
    gap: 24px;
  }
}


/* ---------------------------------------------------------------------------------------------
   Praxisworkshop (Bennett 09.10.2026): Hinweis-Abschnitt #workshop auf der Startseite (Text links, Teamfoto rechts) und
   die Fakten-Reihe, die sich Startseite und workshop.html teilen. Alles Weitere der Workshop-Seite in workshop.css. */
.ws-teaser {
  display: grid;
  gap: 48px;
}

.ws-teaser__text {
  display: grid;
  gap: 24px;
  align-content: start;
}

/* Drei kurze Sätze, je eine Zeile (wie im Hero der Workshop-Seite) – sonst bricht „Ihre / Wertschöpfung“ mitten durch. */
.ws-teaser__zeile {
  display: block;
}

.ws-teaser__text .cta {
  margin-top: 8px;
}

.ws-teaser__bild {
  margin: 0;
}

.ws-teaser__bild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.ws-fakten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
  margin-top: 48px;
}

.ws-fakt {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--red);
}

.ws-fakt__titel {
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.2;
}

.ws-fakt__text {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.4;
}

.ws-teaser .ws-fakten {
  margin-top: 8px;
}

@media (min-width: 900px) {
  .ws-teaser {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 64px;
    align-items: center;
  }

  .ws-fakten:not(.ws-teaser .ws-fakten) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ---------- Handy: keine sichtbaren Schiebeleisten ----------
   Am Smartphone wird mit dem Finger geschoben, eine Leiste braucht dort niemand.
   Gescrollt wird weiter wie bisher – nur die Balken (senkrecht wie waagerecht) verschwinden.
   Ab 900 px Breite (Desktop/Tablet-Querformat) bleiben die Balken, wie sie sind. */
@media (max-width: 900px), (pointer: coarse) {
  html,
  body {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  main::-webkit-scrollbar,
  *::-webkit-scrollbar,
  *::-webkit-scrollbar-thumb,
  *::-webkit-scrollbar-track,
  *::-webkit-scrollbar-corner {
    width: 0;
    height: 0;
    display: none;
    background: transparent;
  }

  /* Der lange rote Knopf passt am Handy nur in einer Zeile, wenn er etwas kleiner steht. */
  .button {
    font-size: 17px;
    padding: 0 24px;
  }

  .button--gross {
    font-size: 18px;
    padding: 0 28px;
  }
}
