/* Ordnungswerk – Stylesheet
   Aufbau: Tokens · Basis · Layout · Kopf · Hero · Abschnitte · Komponenten ·
   Formular · Fußbereich · Bewegung. Kontrastwerte der Farbpaare stehen in
   docs/DESIGNSYSTEM.md und sind dort nachgerechnet. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- Tokens */
:root {
  /* Marke: Grün als Hauptfarbe, Champagner aus dem Logo als Akzent auf Grün */
  --green-950: #0f231a;
  --green-900: #143426;
  --green-800: #1d4636;
  --green-700: #285a45;
  --sage-300:  #a9bcae;
  --sage-100:  #e5ebe4;
  --gold:      #d8caa0;
  --gold-soft: #e9dfc2;
  --bronze:    #6b5a2e;

  --bg:        #f6f7f4;
  --surface:   #ffffff;
  --ink:       #151715;
  --ink-2:     #3c433e;
  --line:      #d6dbd3;
  --field:     #6f7a72;
  --on-dark:   #f3f5f1;
  --on-dark-2: #d5dfd8;
  --error:     #a4241b;
  --success:   #1d5a36;

  --focus: var(--green-800);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.125rem;
  --fs-small: 1rem;
  --fs-lead: clamp(1.1875rem, 0.4vw + 1.1rem, 1.375rem);
  --fs-h3: clamp(1.3125rem, 0.6vw + 1.15rem, 1.625rem);
  --fs-h2: clamp(2rem, 2.6vw + 1.1rem, 3.25rem);
  --fs-h1: clamp(2.75rem, 5.2vw + 1rem, 5.5rem);

  --space-section: clamp(4.5rem, 8vw, 8.5rem);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 78rem;
  --radius: 14px;
  --radius-lg: 22px;

  --header-h: 5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 30;
  --z-skip: 50;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sprungziele und fokussierte Elemente nicht unter dem Kopf verstecken */
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 450;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
:where(img[width][height]) { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-800); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; } /* nur Sprungziel des Skip-Links, nicht bedienbar */

address { font-style: normal; }

.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;
}

.skip-link {
  position: absolute;
  left: 1rem; top: 1rem;
  z-index: var(--z-skip);
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--lg { width: 2rem; height: 2rem; }

/* ---------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--tint { background: var(--sage-100); }
.section--green {
  --focus: var(--gold);
  background: var(--green-800);
  color: var(--on-dark);
  line-height: 1.72;
}
.section--green a { color: var(--gold-soft); }

.section-title { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 38rem; line-height: 1.55; }
.section--green .lead { color: var(--on-dark-2); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 46rem; }
.section-head .lead, .section-title + .lead { margin-top: 1rem; }

.split-head {
  display: grid;
  gap: 1rem 4rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.split-head .section-head { margin-bottom: 0; }
@media (min-width: 960px) {
  .split-head { grid-template-columns: 1.1fr 1fr; }
}

.section-link { margin-top: 2rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; text-decoration: none;
  min-height: 44px;
}
.link-arrow .icon { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.btn .icon { transition: transform 0.3s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 0.9rem 1.9rem; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--green-800); color: #fff; }
.btn--primary:hover { background: var(--green-950); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn--ghost { border-color: var(--field); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--green-800); color: var(--green-800); }

/* ------------------------------------------------------------ Demo-Hinweise */
.demo-bar {
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 0.55rem var(--gutter);
  text-align: center;
}
.dev-note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--bronze);
  border-radius: var(--radius);
  background: #fbf8ef;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 50rem;
}
.dev-note strong { color: var(--bronze); }

/* ------------------------------------------------------------------ Kopf */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(246, 247, 244, 0.94);
  border-bottom: 1px solid var(--line);
  transition: height 0.3s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: blur(8px) saturate(1.2); }
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: block; flex: none; margin-right: auto; border-radius: 6px; }
.brand__logo { height: 2.75rem; width: auto; transition: height 0.3s var(--ease-out); }
.brand__logo--light { display: none; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.9rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
}
.main-nav a:hover { background: rgba(21, 23, 21, 0.06); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

.site-header__cta { display: none; }

.menu-toggle, .menu-close {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-toggle .icon, .menu-close .icon { width: 28px; height: 28px; }
.menu-toggle:hover { background: rgba(21, 23, 21, 0.06); }

@media (min-width: 720px) {
  .site-header__cta { display: inline-flex; min-height: 44px; padding-block: 0.5rem; }
}
@media (min-width: 1000px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .brand { margin-right: 1rem; }
  .main-nav { margin-right: auto; }
}

/* Kopf über dem Hero: transparent, helle Schrift, Gold-Logo */
.site-header.is-overlay:not(.is-scrolled) {
  --focus: var(--gold);
  background: transparent;
  border-color: transparent;
  color: #fff;
  backdrop-filter: none;
}
.site-header.is-overlay:not(.is-scrolled) .brand__logo--light { display: block; }
.site-header.is-overlay:not(.is-scrolled) .brand__logo--dark { display: none; }
.site-header.is-overlay:not(.is-scrolled) .main-nav a { color: #fff; }
.site-header.is-overlay:not(.is-scrolled) .main-nav a:hover,
.site-header.is-overlay:not(.is-scrolled) .menu-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.site-header.is-overlay:not(.is-scrolled) .site-header__cta { background: var(--gold); color: var(--ink); }

.site-header.is-scrolled { --header-h: 4.25rem; box-shadow: 0 6px 24px -18px rgba(15, 35, 26, 0.5); }
.site-header.is-scrolled .brand__logo { height: 2.35rem; }

/* Mobiles Menü als nativer Dialog: Fokusfalle, Esc und inerter Hintergrund
   kommen vom Browser. */
.mobile-menu {
  --focus: var(--gold);
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1rem var(--gutter) 2rem;
  border: 0;
  background: var(--green-900);
  color: var(--on-dark);
  overflow-y: auto;
}
.mobile-menu[open] { display: flex; flex-direction: column; }
.mobile-menu::backdrop { background: rgba(15, 35, 26, 0.6); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; }
.mobile-menu__logo { height: 2.5rem; width: auto; }
.mobile-menu__list { margin: 2rem 0; padding: 0; list-style: none; }
.mobile-menu__list a {
  display: flex; align-items: center;
  min-height: 3.75rem;
  color: #fff;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.mobile-menu__list a[aria-current="page"] { color: var(--gold); }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 0.75rem; }
.mobile-menu__contact {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 44px;
  color: var(--on-dark) !important;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu[open] { animation: menu-in 0.35s var(--ease-out); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(12px); } }
}

/* ------------------------------------------------------------------ Hero */
.hero {
  --focus: var(--gold);
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 58rem);
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3.5rem, 9vh, 7rem);
  color: #fff;
  background: var(--green-950);
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  /* Dekoratives Video: keine Mausereignisse. Sonst blenden Opera/Edge beim
     Überfahren eigene Knöpfe ein (z. B. „Video herauslösen“ oben mittig). */
  pointer-events: none;
}
.hero__poster, .hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
/* Das Video selbst bleibt winzig und unsichtbar, site.js zeichnet es auf die
   Canvas. Opera legt über sichtbare Videos einen „Video herauslösen“-Knopf,
   den keine Website abschalten kann. */
.hero__video { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hero__canvas { opacity: 0; transition: opacity 0.8s; }
.hero__video.is-playing + .hero__canvas { opacity: 1; }
/* Verlauf sorgt für Lesbarkeit unabhängig vom Videobild */
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 35, 26, 0.55) 0%, rgba(15, 35, 26, 0.25) 30%, rgba(15, 35, 26, 0.7) 62%, rgba(15, 35, 26, 0.94) 100%),
    linear-gradient(90deg, rgba(15, 35, 26, 0.75) 0%, rgba(15, 35, 26, 0.45) 45%, rgba(15, 35, 26, 0) 80%);
}
.hero__content { max-width: var(--maxw); }
.hero__kicker {
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__title { font-size: var(--fs-h1); font-weight: 750; letter-spacing: -0.035em; max-width: 12ch; }
.hero__sub { margin-top: 1rem; font-size: clamp(1.375rem, 1.4vw + 1rem, 2rem); font-weight: 600; letter-spacing: -0.015em; color: var(--gold-soft); }
.hero__text { max-width: 36rem; margin-top: 1rem; font-size: var(--fs-lead); color: var(--on-dark); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}
.hero__toggle {
  position: absolute;
  right: var(--gutter); bottom: 1.25rem;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(15, 35, 26, 0.55);
  color: #fff;
  cursor: pointer;
}
.hero__toggle .icon { width: 20px; height: 20px; }
.hero__toggle[aria-pressed="true"] .hero__toggle-pause,
.hero__toggle[aria-pressed="false"] .hero__toggle-play { display: none; }
.hero__toggle > span { display: contents; }

/* -------------------------------------------------------------- Vertrauen */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats {
  display: grid;
  gap: 0;
  margin: 0; padding: 0;
  list-style: none;
}
.stats li {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.stats li:last-child { border-bottom: 0; }
.stats__value { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); font-weight: 750; letter-spacing: -0.03em; color: var(--green-800); line-height: 1; }
.stats__label { color: var(--ink-2); font-weight: 550; }
@media (min-width: 800px) {
  .stats { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .stats li { padding: 2rem 0; border: 0; }
}
.stats--dark .stats__value { color: var(--gold); }
.stats--dark .stats__label { color: var(--on-dark-2); }
.stats--dark li { border-color: rgba(255, 255, 255, 0.14); }

/* -------------------------------------------------------- Leistungen Bento */
.bento { display: grid; gap: 1rem; }
.service-card {
  --focus: var(--gold);
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 22rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green-900);
  color: #fff;
  isolation: isolate;
}
.service-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.service-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 35, 26, 0) 25%, rgba(15, 35, 26, 0.72) 58%, rgba(15, 35, 26, 0.95) 100%);
}
.service-card__body { padding: clamp(1.5rem, 3vw, 2.25rem); max-width: 34rem; }
.service-card__title { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.service-card__title a { color: #fff; text-decoration: none; }
/* Gesamte Karte klickbar, ohne verschachtelte Links */
.service-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card__title a:focus-visible { outline: none; }
.service-card:has(a:focus-visible) { outline: 3px solid var(--green-800); outline-offset: 4px; }
.service-card p { color: var(--on-dark); font-size: 1rem; }
.service-card__more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9375rem;
}
.service-card__more .icon { transition: transform 0.35s var(--ease-out); }
.service-card:hover img { transform: scale(1.04); }
.service-card:hover .service-card__more .icon { transform: translateX(5px); }
.service-card:hover .service-card__title a { text-decoration: underline; text-decoration-thickness: 2px; }

@media (min-width: 960px) {
  .bento {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: 18rem 18rem 20rem;
    gap: 1.25rem;
  }
  .service-card { min-height: 0; }
  .service-card--large { grid-row: 1 / 3; }
  .service-card--large .service-card__title { font-size: clamp(1.75rem, 1.5vw + 1rem, 2.5rem); }
  .service-card--wide { grid-column: 1 / -1; }
  .service-card--wide img { object-position: 50% 55%; }
}

/* ------------------------------------------------------------- Warum wir */
.why { display: grid; gap: 3rem; }
.why__intro .lead { margin-top: 1.25rem; }
.why__list { display: grid; gap: 2.25rem 3rem; margin: 0; }
.why__list dt { font-size: var(--fs-h3); font-weight: 700; color: var(--gold); letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.why__list dd { margin: 0; color: var(--on-dark-2); }
.why__list > div { padding-top: 1.5rem; border-top: 1px solid rgba(216, 202, 160, 0.35); }
@media (min-width: 700px) { .why__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .why { grid-template-columns: 0.85fr 1.4fr; gap: 5rem; }
  .why__intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* -------------------------------------------------------- Vorher/Nachher */
.ba-list { display: grid; gap: 2rem; }
.ba { position: relative; margin: 0; max-width: 60rem; }
.ba__badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 0.8125rem; font-weight: 700;
}
.ba__stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sage-100);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
}
.ba__img, .ba__before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Bilder nehmen keine Zeigerereignisse an: sonst startet der Browser sein
   natives Bild-Drag&Drop und bricht das Ziehen des Reglers ab. */
.ba__stage img { pointer-events: none; -webkit-user-drag: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__before .ba__img { position: static; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 35, 26, 0.25);
  pointer-events: none;
}
.ba__handle::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 999px; background: #fff;
  box-shadow: 0 4px 16px rgba(15, 35, 26, 0.3);
}
.ba__handle .icon { position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--green-800); z-index: 1; }
.ba__handle .icon:first-child { left: -17px; }
.ba__handle .icon:last-child { left: 0; }
.ba__tag {
  position: absolute; bottom: 1rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(15, 35, 26, 0.8); color: #fff;
  font-size: 0.8125rem; font-weight: 700;
}
.ba__tag--before { left: 1rem; }
.ba__tag--after { right: 1rem; }
.ba__controls { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.ba__label { font-weight: 700; font-size: 0.9375rem; }
.ba__controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.ba__controls input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--sage-300); }
.ba__controls input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--sage-300); }
.ba__controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px; margin-top: -11px;
  border: 3px solid #fff; border-radius: 50%;
  background: var(--green-800);
  box-shadow: 0 1px 6px rgba(15, 35, 26, 0.35);
}
.ba__controls input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border: 3px solid #fff; border-radius: 50%;
  background: var(--green-800);
  box-shadow: 0 1px 6px rgba(15, 35, 26, 0.35);
}
.ba__controls input[type="range"]:focus-visible { outline-offset: 2px; }
.ba__buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ba figcaption { margin-top: 1rem; color: var(--ink-2); font-size: var(--fs-small); }

/* ------------------------------------------------------------------ Ablauf */
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; padding: 0 0 2.25rem 4.5rem; }
.steps li::before {
  /* Verbindungslinie zwischen den Schritten */
  content: ""; position: absolute; left: 1.5rem; top: 3rem; bottom: 0.25rem;
  width: 1px; background: var(--sage-300);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }
.steps__num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  background: var(--green-800); color: var(--gold);
  font-weight: 750; font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: var(--fs-h3); margin: 0.55rem 0 0.4rem; }
.steps p { color: var(--ink-2); max-width: 22rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps li { padding: 4.5rem 0 0; }
  .steps li::before { left: 3.75rem; right: -1.25rem; top: 1.5rem; bottom: auto; width: auto; height: 1px; }
  .steps h3 { margin-top: 0; }
}

/* --------------------------------------------------------- Über-uns-Teaser */
.about-teaser { display: grid; gap: 2.5rem; align-items: center; }
.about-teaser__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.about-teaser__text .section-title { margin-bottom: 1.25rem; }
.about-teaser__text p { color: var(--ink-2); max-width: 36rem; }
.about-teaser__text .btn { margin-top: 1.25rem; }
@media (min-width: 960px) {
  .about-teaser { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

/* ------------------------------------------------------------ Einsatzgebiet */
.area { display: grid; gap: 2rem; align-items: center; }
.area__card {
  display: grid; gap: 0.15rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  line-height: 1.6;
}
.area__card .icon { color: var(--green-800); margin-bottom: 0.75rem; }
.area__name { font-weight: 750; font-size: 1.25rem; }
@media (min-width: 900px) { .area { grid-template-columns: 1.4fr 1fr; gap: 5rem; } }

/* ---------------------------------------------------------------- CTA-Band */
.cta-band {
  --focus: var(--gold);
  background: var(--green-900);
  color: var(--on-dark);
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
/* Logo-Zeichen als ruhiges, großes Wasserzeichen */
.cta-band::after {
  content: "";
  position: absolute;
  right: -6rem; top: 50%;
  width: 26rem; height: 26rem;
  transform: translateY(-50%);
  background: url("../img/favicon-mark.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; }
.cta-band__title { font-size: var(--fs-h2); color: #fff; max-width: 18ch; }
.cta-band p { margin-top: 1rem; max-width: 34rem; font-size: var(--fs-lead); color: var(--on-dark-2); }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.cta-band__phone {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px;
  color: #fff; font-weight: 600; text-decoration: none;
}
.cta-band__phone:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Unterseiten */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero__title { font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem); letter-spacing: -0.035em; max-width: 16ch; }
.page-hero .lead { margin-top: 1.25rem; }
.page-hero--media { display: grid; gap: 2.5rem; align-items: end; }
.page-hero--media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 960px) { .page-hero--media { grid-template-columns: 1.15fr 1fr; gap: 4rem; } }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: 0.9375rem; color: var(--ink-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--field); }

.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.toc a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--field); border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  background: var(--surface);
}
.toc a:hover { border-color: var(--green-800); color: var(--green-800); }

/* Leistungsdetail */
.service-detail { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 6vw, 5.5rem); border-top: 1px solid var(--line); }
.service-detail__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.service-detail h2 { font-size: clamp(1.875rem, 2vw + 1rem, 2.75rem); margin-bottom: 1.25rem; }
.service-detail__intro { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.6; }
.facts { display: grid; gap: 1.5rem; margin: 2rem 0; }
.facts h3 { font-size: 0.9375rem; font-weight: 750; letter-spacing: 0.02em; color: var(--bronze); margin-bottom: 0.5rem; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; }
.checklist .icon { color: var(--green-800); margin-top: 0.25em; }
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .service-detail { grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
  .service-detail:nth-of-type(even) .service-detail__media { order: 2; }
  .service-detail__media { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Über uns */
.prose { max-width: 42rem; }
.prose p { color: var(--ink-2); }
.prose h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.two-col { display: grid; gap: 3rem; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.values { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.values li { padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.values h3 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.values p { color: var(--ink-2); }
@media (min-width: 700px) { .values { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.person {
  display: grid; gap: 1.75rem; align-items: center;
  width: fit-content; max-width: 100%;
  padding: 1.75rem 2.75rem 1.75rem 1.75rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.person__photo { width: 8rem; height: 8rem; border-radius: 999px; object-fit: cover; }
.person h3 { font-size: var(--fs-h3); }
.person p { color: var(--ink-2); margin-top: 0.25rem; }
@media (min-width: 600px) { .person { grid-template-columns: auto 1fr; } }

/* Rechtstexte */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; margin: 2.75rem 0 0.75rem; }
.legal h3 { font-size: 1.1875rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.25rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 1rem 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------- Formular */
.contact { display: grid; gap: 3rem; padding-bottom: var(--space-section); }
.contact__info { display: grid; gap: 2.5rem; }
@media (min-width: 800px) {
  .contact__info { grid-template-columns: 1fr 1fr; gap: 2rem 4rem; }
  .contact__info .dev-note { grid-column: 1 / -1; }
}
.contact__info h2 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.contact__list { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.contact__list a, .contact__list span { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact__list a:hover { color: var(--green-800); text-decoration: underline; }
.contact__list .icon { color: var(--green-800); }

.form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.form-card h2 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.form-intro { color: var(--ink-2); font-size: var(--fs-small); margin-bottom: 1.75rem; }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .field legend { font-weight: 700; font-size: 0.9375rem; }
.field .req { color: var(--error); }
.field .opt { font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--green-800); }
.field .hint { color: var(--ink-2); font-size: 0.875rem; }
.field [aria-invalid="true"] { border: 2px solid var(--error); }
.field-error { display: none; align-items: flex-start; gap: 0.4rem; color: var(--error); font-size: 0.9375rem; font-weight: 600; }
.field-error:not(:empty) { display: flex; }
.field-error .icon { margin-top: 0.1em; }
.field input[type="file"] { padding: 0.6rem; background: var(--bg); }
.field--choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.field--choices legend { padding: 0; margin-bottom: 0.4rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0.55rem 1rem;
  border: 1px solid var(--field); border-radius: 10px; background: #fff;
  cursor: pointer;
}
.field .choice { font-weight: 500; }
.choice:hover { border-color: var(--green-800); }
.choice:has(input:checked) { border-color: var(--green-800); background: var(--sage-100); }
.field .choice input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--green-800); }
.field--choices[aria-invalid="true"] .choice { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.privacy-note { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--ink-2); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form-status {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.form-status.is-visible { display: flex; gap: 0.6rem; align-items: flex-start; }
.form-status--ok { background: #e3efe6; color: var(--success); border: 1px solid #9cc2a6; }
.form-status--error { background: #f9e7e5; color: var(--error); border: 1px solid #e0a8a2; }
.form-status .icon { margin-top: 0.15em; }
button[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* ------------------------------------------------------------ Fußbereich */
.site-footer {
  --focus: var(--gold);
  background: var(--green-950);
  color: var(--on-dark-2);
  font-size: 1rem;
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer__brand img { width: 9rem; margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 20rem; }
.site-footer__title { font-size: 0.9375rem; font-weight: 750; color: var(--gold); letter-spacing: 0.02em; margin-bottom: 1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__col li a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; }
.site-footer__contact { margin-top: 0.75rem !important; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.3fr 0.8fr 1.2fr; gap: 3rem; } }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9375rem;
}
.site-footer__legal ul { display: flex; gap: 1.5rem; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__legal p { display: flex; align-items: center; }

/* --------------------------------------------------------------- Bewegung */
/* Inhalte sind immer sichtbar; die Einblendung ist nur Zugabe und läuft nur,
   wenn JavaScript die Klasse setzt und keine reduzierte Bewegung gewünscht ist. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .service-card:hover img { transform: none; }
}

@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .service-card::before, .hero__media::after { display: none; }
}
