/* ==========================================================================
   VZRD – Stylesheet
   Design-Tokens, Basis, Komponenten, Seitenbereiche
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben */
  --color-navy: #0B2239;        /* Hauptfarbe, dunkles Blau */
  --color-navy-800: #102E4A;
  --color-blue: #174A73;        /* mittleres Blau */
  --color-blue-strong: #12405F; /* Buttons/Links auf hellem Grund (AA) */
  --color-yellow: #F4C430;      /* Sicherheitsgelb, Akzent */
  --color-yellow-dark: #C79508; /* dunkleres Gelb für Linien auf Weiß */
  --color-bg: #F6F8FA;          /* Seitenhintergrund */
  --color-surface: #FFFFFF;
  --color-text: #17212B;        /* Anthrazit */
  --color-text-muted: #46535F;  /* AA auf Weiß und #F6F8FA */
  --color-text-inverse: #F6F8FA;
  --color-border: #D9E0E6;
  --color-green: #2F6B50;       /* sehr sparsam, Umweltaspekt */
  --color-error: #B3261E;
  --color-success: #1E6B41;

  /* Logo-Farben (im Header auf hellem Grund) */
  --logo-sign: var(--color-navy);
  --logo-sign-light: var(--color-blue);
  --logo-accent: var(--color-yellow);

  /* Typografie: seriöse, sehr gut lesbare Systemschrift */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Layout */
  --container-max: 1240px;
  --container-pad: 1.25rem;
  --radius: 8px;
  --radius-small: 6px;
  --shadow-soft: 0 1px 2px rgba(11, 34, 57, 0.06), 0 4px 16px rgba(11, 34, 57, 0.07);
  --shadow-lift: 0 2px 4px rgba(11, 34, 57, 0.07), 0 10px 28px rgba(11, 34, 57, 0.12);

  /* Abstände */
  --section-gap: clamp(3.25rem, 7vw, 5.5rem);

  /* Bewegungssystem */
  --motion-fast: 200ms;
  --motion-standard: 380ms;
  --motion-reveal: 550ms;
  --motion-hero: 720ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.75em;
  color: var(--color-navy);
  font-weight: 750;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.7rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-blue-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-navy);
}

ul, ol {
  padding-left: 1.3em;
}

/* Sichtbare Fokuszustände */
:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-small) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-gap);
}

.section-intro {
  max-width: 46rem;
}

.section-intro .lead,
.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 44rem;
}

.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue-strong);
  margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-small);
  border: 2px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.button-primary {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-navy);
}

.button-primary:hover {
  background: #E5B41F;
  border-color: #E5B41F;
  color: var(--color-navy);
  box-shadow: 0 4px 14px rgba(244, 196, 48, 0.35);
}

/* Dezente Lichtkante beim Hover – einmalig, nicht pulsierend */
.button-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.button-primary:hover::after,
.button-primary:focus-visible::after {
  animation: button-shine 0.6s ease forwards;
}

@keyframes button-shine {
  from { left: -80%; opacity: 1; }
  to   { left: 130%; opacity: 0; }
}

.button-secondary {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.button-secondary:hover {
  background: var(--color-navy);
  color: #fff;
}

.button-inverse {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.button-inverse:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.button.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  transition: min-height 0.25s ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 64px;
}

.brand {
  display: inline-flex;
  color: var(--color-navy);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
  transition: height 0.25s ease;
}

.site-header.is-scrolled .brand-logo {
  height: 42px;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-small);
  color: var(--color-text);
  font-weight: 550;
  text-decoration: none;
}

/* Animierte Unterstreichung */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--color-yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--color-navy);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: var(--color-navy);
  font-weight: 700;
}

.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  height: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: var(--color-navy);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-blue-strong);
}

.header-cta {
  padding: 0.6rem 1.1rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-backdrop {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, var(--color-navy) 0%, var(--color-navy) 55%, var(--color-navy-800) 100%);
  color: var(--color-text-inverse);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2rem, 4vw, 3.25rem);
}

/* Auf typischen Notebook-Displays kompakt halten */
@media (min-width: 1000px) and (max-height: 820px) {
  .hero-inner {
    padding-block: 2.25rem 1.75rem;
  }
  .hero h1 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  }
}

.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero .hero-sub {
  font-size: 1.15rem;
  color: rgba(246, 248, 250, 0.88);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

/* Gemeinsame Kennzahlenleiste unterhalb der Hero-Spalten */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  margin-bottom: -2.75rem;
  position: relative;
  z-index: 2;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.hero-stats > div {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.15rem;
  padding: 1.25rem 1.5rem 1.15rem;
}

.hero-stats > div + div {
  border-left: 1px solid var(--color-border);
}

.hero-stats strong {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Gelber Akzentstrich, der beim Einblenden in die Breite wächst */
.hero-stats > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 44px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--color-yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-reveal) var(--ease-out);
}

html.js .hero-stats.is-visible > div:nth-child(1)::before { transition-delay: 150ms; }
html.js .hero-stats.is-visible > div:nth-child(2)::before { transition-delay: 300ms; }
html.js .hero-stats.is-visible > div:nth-child(3)::before { transition-delay: 450ms; }

.hero-stats.is-visible > div::before,
html:not(.js) .hero-stats > div::before {
  transform: scaleX(1);
}

/* Folgeabschnitt bekommt Luft für die überlappende Leiste */
.section--after-hero {
  padding-top: calc(var(--section-gap) + 2.75rem);
}

.hero-media {
  position: relative;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(246, 248, 250, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

/* Dezenter Verlauf zur Einbindung in die dunkle Herofläche */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(115deg, rgba(11, 34, 57, 0.28) 0%, rgba(11, 34, 57, 0) 45%);
  pointer-events: none;
}

/* ---------- Karten & Raster ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-grid .card:hover,
.focus-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #E3CE84;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: var(--radius-small);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-blue-strong);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.card:hover .card-icon {
  transform: translateY(-2px) rotate(-2deg);
  background: #FDF6DC;
  border-color: #E3CE84;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* Fokus-Karten: konsequentes 2x2-Raster */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.focus-grid .card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.focus-grid .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.focus-grid .check svg {
  width: 15px;
  height: 15px;
}

.focus-grid h3 {
  margin-bottom: 0.35rem;
}

@media (max-width: 640px) {
  .focus-grid {
    grid-template-columns: 1fr;
  }
}

/* Vorteilsliste (Gründe für VZRD) */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.9rem 2rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.feature-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-list .check svg {
  width: 13px;
  height: 13px;
}

.feature-list strong {
  display: block;
  color: var(--color-navy);
}

.feature-list span {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Zweispaltige Bild-/Text-Komposition */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--why {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

/* Nutzenpunkte im Warum-Abschnitt */
.benefit-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--color-navy);
}

.benefit-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.benefit-list .check svg {
  width: 13px;
  height: 13px;
}

/* Reinigungs-Demonstration: Schild wird per Wipe sauber */
.clean-demo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #E8EDF2;
  box-shadow: var(--shadow-soft);
}

.clean-demo svg {
  display: block;
  width: 100%;
  height: auto;
}

.clean-demo .cd-clean-layer {
  clip-path: inset(0 100% 0 0);
}

.clean-demo.wipe-run .cd-clean-layer {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.3s var(--ease-out) 0.15s;
}

.clean-demo.wipe-done .cd-clean-layer {
  clip-path: inset(0 0 0 0);
}

.clean-demo .cd-wipe-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--color-yellow);
  box-shadow: 0 0 12px rgba(244, 196, 48, 0.55);
  opacity: 0;
  pointer-events: none;
}

.clean-demo.wipe-run .cd-wipe-line {
  animation: wipe-line 1.3s var(--ease-out) 0.15s forwards;
}

@keyframes wipe-line {
  0%   { left: 0; opacity: 1; }
  92%  { opacity: 1; }
  100% { left: calc(100% - 4px); opacity: 0; }
}

/* Vorher-Nachher-Slider */
.ba-slider {
  --pos: 50%;
  position: relative;
  margin-top: 2.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  background: var(--color-bg);
}

.ba-slider img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ba-slider .ba-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-slider .ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--color-yellow);
  box-shadow: 0 0 10px rgba(11, 34, 57, 0.35);
  pointer-events: none;
}

.ba-slider .ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  pointer-events: none;
}

.ba-slider .ba-handle svg {
  width: 22px;
  height: 22px;
}

/* Der unsichtbare Range-Regler liegt über dem gesamten Bild */
.ba-slider .ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba-slider .ba-range:focus-visible ~ .ba-handle {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

.ba-slider .ba-tag {
  position: absolute;
  bottom: 0.9rem;
  z-index: 2;
  pointer-events: none;
}

.ba-slider .ba-tag--before { left: 0.9rem; }
.ba-slider .ba-tag--after  { right: 0.9rem; }

.split-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* Breites Fotoband – exakt am Inhaltsraster ausgerichtet */
.photo-band {
  position: relative;
  margin: 2.5rem 0 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.photo-band img {
  display: block;
  width: 100%;
  height: clamp(200px, 28vw, 340px);
  object-fit: cover;
  will-change: transform;
}

.photo-band figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.25rem 0.75rem;
  background: linear-gradient(0deg, rgba(11, 34, 57, 0.72), rgba(11, 34, 57, 0));
  color: rgba(246, 248, 250, 0.92);
  font-size: 0.92rem;
  font-weight: 500;
}

/* Bild im Umweltabschnitt: dezente Maskenöffnung beim Einblenden */
html.js .split-media.reveal:not(.is-visible) img {
  clip-path: inset(8% 10% 8% 10% round 8px);
}

html.js .split-media.reveal img {
  transition: clip-path 0.7s var(--ease-out);
  clip-path: inset(0 0 0 0 round 8px);
}

/* ---------- Vorher / Nachher ---------- */
.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.before-after figure {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.before-after figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.before-after .ba-media {
  overflow: hidden;
}

.before-after img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.before-after figure:hover img {
  transform: scale(1.03);
}

.before-after figcaption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  font-weight: 650;
  color: var(--color-navy);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-before {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.tag-after {
  background: var(--color-navy);
  color: var(--color-yellow);
}

/* ---------- Ablauf ---------- */
.steps {
  counter-reset: schritt;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

/* Prozesslinie: füllt sich scrollabhängig von Schritt zu Schritt */
.steps {
  --line-progress: 0;
}

.steps::before {
  content: "";
  position: absolute;
  top: 2.35rem;
  left: 2%;
  width: 96%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-yellow), var(--color-blue));
  transform: scaleX(var(--line-progress));
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
  z-index: 0;
}

html:not(.js) .steps::before {
  transform: scaleX(1);
}

.steps li {
  counter-increment: schritt;
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, border-color 0.4s ease;
}

.steps li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* Aktiver Schritt erhält einen gelben Akzent */
.steps li.is-active,
html:not(.js) .steps li {
  border-top: 3px solid var(--color-yellow);
  padding-top: calc(1.5rem - 2px);
}

.steps li::before {
  content: counter(schritt, decimal-leading-zero);
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-blue-strong);
  margin-bottom: 0.6rem;
  transition: color 0.4s ease;
}

.steps li.is-active::before,
html:not(.js) .steps li::before {
  color: var(--color-navy);
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ---------- Zahlen / Erfahrung ---------- */
.stats-band {
  background: var(--color-navy);
  color: var(--color-text-inverse);
}

.stats-band h2 {
  color: #fff;
}

.stats-band .lead {
  color: rgba(246, 248, 250, 0.85);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  border-left: 3px solid var(--color-yellow);
  padding-left: 1.1rem;
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-yellow);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: rgba(246, 248, 250, 0.85);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 52rem;
  margin-top: 2rem;
}

.faq-list details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.faq-list summary {
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-weight: 650;
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

/* Plus-/Minus-Anzeige */
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--color-blue-strong);
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.faq-list summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-list .faq-content {
  overflow: hidden;
}

.faq-list .faq-content > div {
  padding: 0 1.25rem 1.15rem;
  color: var(--color-text-muted);
}

.faq-list .faq-content p:last-child {
  margin-bottom: 0;
}

/* ---------- Abschluss-CTA ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--color-navy), var(--color-blue));
  color: var(--color-text-inverse);
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(246, 248, 250, 0.88);
  max-width: 38rem;
  margin-inline: auto;
}

.cta-band .hero-buttons {
  justify-content: center;
  margin: 1.75rem 0 0;
}

/* ---------- Formular ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.form-field .hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.required-mark {
  color: var(--color-error);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font: inherit;
  font-size: 1rem; /* mindestens 16 px gegen iOS-Zoom */
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid #9AA7B2;
  border-radius: var(--radius-small);
  padding: 0.7rem 0.8rem;
  width: 100%;
  min-height: 44px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 1px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--color-error);
}

.field-error {
  color: var(--color-error);
  font-size: 0.88rem;
  font-weight: 550;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

fieldset legend {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--color-navy);
  padding: 0;
  margin-bottom: 0.4rem;
}

.radio-row {
  display: flex;
  gap: 1rem;
}

.radio-row label,
.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 450;
  color: var(--color-text);
  font-size: 0.97rem;
  padding: 0.35rem 0.4rem 0.35rem 0;
  border-radius: var(--radius-small);
  cursor: pointer;
  min-height: 44px;
  align-content: center;
}

input[type="radio"],
input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  accent-color: var(--color-navy);
  flex-shrink: 0;
  cursor: pointer;
}

/* Honeypot-Feld unsichtbar, aber nicht display:none (Bots erkennen das) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  border-radius: var(--radius-small);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 550;
}

.form-message--success {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: #E8F3EC;
  border: 1px solid var(--color-success);
  color: #14502F;
  padding: 1.4rem 1.5rem;
}

.form-message--success svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--color-success);
}

.form-message--error {
  background: #FBEAE9;
  border: 1px solid var(--color-error);
  color: #7F1D18;
}

.form-error-summary {
  background: #FBEAE9;
  border: 1px solid var(--color-error);
  border-radius: var(--radius-small);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  color: #7F1D18;
}

.form-error-summary:focus {
  outline: 3px solid var(--color-error);
  outline-offset: 2px;
}

.form-error-summary h2 {
  font-size: 1.05rem;
  color: #7F1D18;
  margin-bottom: 0.4rem;
}

.form-error-summary ul {
  margin: 0;
  padding-left: 1.2em;
}

.form-error-summary a {
  color: #7F1D18;
  font-weight: 600;
}

.contact-aside {
  position: sticky;
  top: 100px;
}

.contact-aside .card {
  margin-bottom: 1.25rem;
}

.contact-aside .card p:last-child {
  margin-bottom: 0;
}

.contact-aside a.big-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
}

/* ---------- Inhaltsseiten ---------- */
.page-header {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(246, 248, 250, 0.88);
  max-width: 44rem;
  margin: 0;
  font-size: 1.1rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.8em;
}

.placeholder-note {
  background: #FFF7DC;
  border: 1px dashed var(--color-yellow-dark);
  border-radius: var(--radius-small);
  padding: 1rem 1.2rem;
  color: #6B5406;
  font-weight: 550;
}

.legal-placeholder {
  background: #FFF7DC;
  border: 1px dashed var(--color-yellow-dark);
  border-radius: var(--radius-small);
  padding: 0.1rem 0.45rem;
  font-weight: 700;
  color: #6B5406;
  white-space: nowrap;
}

/* ---------- Einblendungen (progressiv, ausfallsicher) ----------
   Ohne JavaScript (kein html.js) ist ALLES sichtbar.
   Nur unter html.js werden noch nicht animierte Elemente ausgeblendet. */
html.js .reveal {
  transition:
    opacity var(--motion-reveal) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--motion-reveal) var(--ease-out) var(--reveal-delay, 0ms);
}

html.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

/* Hero-Entrance: gestaffelter Textaufbau, Bild fährt sanft von rechts ein */
html.js .hero-copy > * {
  animation: hero-fade-up var(--motion-hero) var(--ease-out) backwards;
}

html.js .hero-copy > *:nth-child(1) { animation-delay: 60ms; }
html.js .hero-copy > *:nth-child(2) { animation-delay: 160ms; }
html.js .hero-copy > *:nth-child(3) { animation-delay: 260ms; }

html.js .hero-media {
  animation: hero-image-in var(--motion-hero) var(--ease-out) 120ms backwards;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-image-in {
  from { opacity: 0; transform: translateX(20px) scale(1.025); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
  html.js .hero-copy > *,
  html.js .hero-media {
    animation: none;
  }
  .steps::before {
    transform: scaleX(1) !important;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1000px) {
  .header-phone span {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    max-width: 560px;
  }
  .hero-media img {
    max-height: 250px;
    width: 100%;
    object-fit: cover;
    object-position: 62% 38%;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    margin-bottom: -2.25rem;
  }
  .hero-stats > div:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--color-border);
    background: #FBFCFD;
  }
  .hero-stats > div:nth-child(2) {
    border-left: 0;
  }
  .section--after-hero {
    padding-top: calc(var(--section-gap) + 2.25rem);
  }
  .form-wrap {
    grid-template-columns: 1fr;
  }
  .contact-aside {
    position: static;
  }
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lift);
    z-index: 60;
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--container-pad) 1rem;
  }
  .main-nav a {
    padding: 0.9rem 0.85rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
  }
  .main-nav a::after {
    display: none;
  }
  .main-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--color-yellow);
    background: var(--color-bg);
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .header-cta {
    display: none;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(11, 34, 57, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 40;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .site-header {
    z-index: 50;
  }
}

@media (max-width: 700px) {
  .before-after {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .radio-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons .button,
  .cta-band .button {
    width: 100%;
  }
  .steps::before {
    top: 0;
    left: 1.45rem;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-yellow), var(--color-blue));
    transform: scaleY(var(--line-progress));
    transform-origin: top center;
  }
  html:not(.js) .steps::before {
    transform: scaleY(1);
  }
  h1 {
    line-height: 1.15;
  }
}

@media (max-width: 350px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .hero-stats > div + div {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }
}

/* Logo-Unterzeile auf sehr kleinen Geräten ausblenden */
@media (max-width: 420px) {
  .brand-logo .logo-subline {
    display: none;
  }
  .brand-logo {
    height: 42px;
  }
}

/* ---------- Fußzeile ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(246, 248, 250, 0.85);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 2rem;
  padding-block: 3.5rem 2rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 30rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.site-footer ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: rgba(246, 248, 250, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-yellow);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 248, 250, 0.18);
  padding-block: 1.25rem;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
