/* ==========================================================================
   FROSTFIX — Winterdienst Filderstadt
   Design-Tokens, Layout, Komponenten
   ========================================================================== */

/* --- 0. Schriften (selbst gehostet) --------------------------------------
   Inter liegt lokal unter assets/fonts. Kein Aufruf an fonts.gstatic.com:
   damit fliesst keine Besucher-IP an Google ab (LG Muenchen I, 3 O 17493/20)
   und es entfaellt eine einwilligungspflichtige Drittuebermittlung.
   Variable Font: eine Datei deckt 100-900 ab.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Marke: aus dem Logo abgeleitet (Eisblau #29ABE2) */
  --brand-500: #29abe2;
  --brand-600: #1b8fc2;
  --brand-700: #14719b; /* Weiß darauf: 5,43:1 – AA für Text */
  --brand-800: #0f5f83; /* Hover-Zustand */
  --brand-100: #e2f4fc;
  --brand-050: #f2fafd;

  /* Nacht-/Winterblau für dunkle Flächen */
  --ink-900: #0a1a2b;
  --ink-800: #0f2438;
  --ink-700: #17324b;
  --ink-600: #244461;

  /* Neutral */
  --grey-900: #111b25;
  --grey-700: #3c4d5d;
  --grey-500: #64798c;
  --grey-300: #cdd7e0;
  --grey-200: #e3eaf0;
  --grey-100: #f1f5f8;
  --white: #ffffff;

  /* Signal */
  --signal: #f5a623;
  --danger: #c62828;
  --ok: #1f8a4c;

  /* Semantisch */
  --bg: var(--white);
  --bg-alt: var(--grey-100);
  --text: var(--grey-900);
  --text-muted: var(--grey-700);
  --border: var(--grey-200);
  --card: var(--white);

  /* Typo */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;

  /* Fluid type scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  --fs-xl: clamp(1.25rem, 0.5vw + 1.1rem, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1vw + 1.25rem, 2rem);
  --fs-3xl: clamp(1.875rem, 2vw + 1.4rem, 2.75rem);
  --fs-4xl: clamp(2.25rem, 3.6vw + 1.4rem, 4rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radius / Schatten */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 43, 0.06),
    0 1px 3px rgba(10, 26, 43, 0.08);
  --shadow-md: 0 4px 12px rgba(10, 26, 43, 0.08),
    0 2px 4px rgba(10, 26, 43, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 26, 43, 0.12),
    0 4px 8px rgba(10, 26, 43, 0.06);

  --container: 1200px;
  --header-h: 97px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  /* Kein overflow-x auf html: das würde einen eigenen Scroll-Container
     erzeugen und das vertikale Scrollen des Dokuments blockieren.
     Nur das seitliche Gummiband am Rand unterbinden. */
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Seitliches Verschieben sperren, vertikal bleibt frei.
     clip schneidet ab, ohne einen Scroll-Container zu erzeugen;
     hidden davor als Fallback für ältere Browser. */
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100%;
  position: relative;
}

/* Sicherheitsnetz: kein Element darf breiter werden als der Viewport.
   Bilder, iframes und Tabellen sind die üblichen Verursacher. */
img,
video,
iframe,
table,
pre {
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--sp-4);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-4xl);
}
h2 {
  font-size: var(--fs-3xl);
}
h3 {
  font-size: var(--fs-xl);
}

p {
  margin: 0 0 var(--sp-4);
  text-wrap: pretty;
}

a {
  color: var(--brand-700);
  text-underline-offset: 3px;
}

ul,
ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.25rem;
}

/* Sichtbarer Fokus — nie entfernen */
:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Kein left:-9999px — das verbreitert auf Mobilgeräten das Layout
   und lässt die Seite seitlich verschieben. transform verschiebt
   nur die Darstellung, nicht den belegten Raum. */
.skip-link {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink-900);
  color: var(--white);
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) 0;
  transform: translateY(-120%);
  transition: transform 0.15s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

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

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

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

.section--tight {
  padding-block: var(--sp-8);
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto var(--sp-7);
  text-align: center;
}

.section-head p {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: var(--sp-3);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand-500);
}

.section-head .eyebrow::before {
  display: none;
}

/* --- 4. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-5);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

/* brand-700 statt brand-600: Weiß darauf erreicht 5,43:1 (WCAG AA) */
.btn--primary {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--brand-800);
  border-color: var(--brand-800);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  border-color: var(--grey-300);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
  background: var(--brand-050);
}

.btn--onDark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.btn--onDark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 56px;
  font-size: var(--fs-base);
  padding-inline: var(--sp-6);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- 5. Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s var(--ease);
}

.site-header.is-stuck {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--ink-900);
  flex-shrink: 0;
}

/* Beschnittene Marke (974×1048) — Höhe steuert die Größe */
.brand img {
  width: auto;
  height: 72px;
  object-fit: contain;
}

/* Steht neben dem Logo, das den Namen bereits trägt */
.brand__claim {
  padding-left: var(--sp-3);
  border-left: 1px solid var(--grey-300);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--grey-500);
  text-transform: uppercase;
  max-width: 6.5rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: var(--sp-3) 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover {
  color: var(--brand-700);
  background: var(--brand-050);
}

.nav__link[aria-current="page"] {
  color: var(--brand-700);
  box-shadow: inset 0 -3px 0 var(--brand-500);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.nav__cta {
  flex-shrink: 0;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--grey-300);
  border-radius: var(--r-sm);
  color: var(--ink-900);
  cursor: pointer;
}
.nav__toggle svg {
  width: 24px;
  height: 24px;
}
.nav__toggle .icon-close {
  display: none;
}
.nav__toggle[aria-expanded="true"] .icon-close {
  display: block;
}
.nav__toggle[aria-expanded="true"] .icon-open {
  display: none;
}

/* --- 6. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--white);
  overflow: hidden;
}

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

.hero__media img {
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
}

/* Linkes Bild füllt die Fläche und trägt den Text */
.hero__media img:first-child {
  left: 0;
  width: 100%;
  object-position: 55% center;
}

/* Rechtes Bild: schmaler Keil, oben schmal → unten breit,
   mit weißer Trennkante (wie in der Referenz) */
.hero__media img:last-child {
  right: 0;
  width: 42%;
  object-position: center;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

/* Weiße Trennkante entlang der Diagonale.
   Rechtes Bild: 42% breit, Keil von 20% → 0% seiner Breite.
   Auf die Hero-Breite gerechnet: 58% + 0.42*20% = 66.4% oben, 58% unten. */
.hero__wedge {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: var(--white);
  clip-path: polygon(66.4% 0, 67.6% 0, 59.2% 100%, 58% 100%);
}

/* Abdunklung nur links, wo der Text steht — rechtes Bild bleibt farbig */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(10, 26, 43, 0.92) 0%,
    rgba(10, 26, 43, 0.86) 28%,
    rgba(10, 26, 43, 0.72) 45%,
    rgba(10, 26, 43, 0.5) 58%,
    rgba(10, 26, 43, 0.18) 66%,
    rgba(10, 26, 43, 0) 72%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(5rem, 9vw, 8rem);
  max-width: 43rem;
}

/* Schlichte Zeile über der Headline — wie in der Referenz */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-base);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(6, 15, 25, 0.8);
}

.hero__eyebrow svg {
  width: 17px;
  height: 17px;
  color: var(--brand-500);
}

.hero h1 {
  margin-bottom: var(--sp-5);
  color: var(--white);
  max-width: 15ch;
}

/* Headline durchgehend weiß wie in der Referenz */
.hero h1 em {
  font-style: normal;
  color: inherit;
}

/* Kleiner und schmaler als die Headline — wie in der Referenz */
.hero__lead {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--sp-6);
  max-width: 34rem;
  /* Weicher Schatten sichert die Lesbarkeit über hellen Bildstellen */
  text-shadow: 0 1px 12px rgba(6, 15, 25, 0.85),
    0 1px 3px rgba(6, 15, 25, 0.6);
}

.hero h1 {
  text-shadow: 0 2px 16px rgba(6, 15, 25, 0.7);
}

.hero__trust li {
  text-shadow: 0 1px 10px rgba(6, 15, 25, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

/* Vertrauensleiste statt Sterne-Bewertungen */
.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: start;
  gap: var(--sp-3) var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.hero__trust svg {
  width: 20px;
  height: 20px;
  color: var(--brand-500);
  flex-shrink: 0;
}

/* --- 7. Angebots-Leiste (überlappend) ----------------------------------- */
.quotebar {
  position: relative;
  z-index: 5;
  margin-top: -3.5rem;
}

.quotebar__card {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) 2fr auto;
  /* end statt center: Button sitzt auf derselben Grundlinie wie die Felder,
     deren Labels darüber zusätzliche Höhe belegen */
  align-items: end;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.quotebar__title {
  display: flex;
  align-items: center;
  /* Der Titel hat kein Label über sich, deshalb mittig statt bündig unten */
  align-self: center;
  gap: var(--sp-3);
}

.quotebar__title svg {
  width: 40px;
  height: 40px;
  color: var(--brand-600);
  flex-shrink: 0;
}

.quotebar__title strong {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.quotebar__title span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.quotebar__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

/* Gleiche Höhe wie .input/.select, damit Feldreihe und Button exakt fluchten */
.quotebar__card .btn {
  min-height: 48px;
}

/* --- 8. Formular-Elemente ----------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}

.field .req {
  color: var(--danger);
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364798c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--grey-500);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.22);
  outline: none;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.input[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}

.field__error {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--danger);
}

.field__error.is-visible {
  display: flex;
}

.field__error svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Honeypot gegen Spam */
/* Für Menschen unsichtbar, für Bots weiterhin ausfüllbar.
   Ohne Negativ-Position, damit das Layout nicht verbreitert wird.
   Das Feld selbst muss mitschrumpfen — sonst ragt seine
   Standardbreite über den Viewport hinaus. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hp input,
.hp label {
  width: 1px;
  height: 1px;
  min-width: 0;
  padding: 0;
  border: 0;
  font-size: 1px;
}

/* --- 9. Vorteils-Kacheln ------------------------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--sp-6);
}

.pillar {
  text-align: center;
}

.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--sp-4);
  background: var(--brand-600);
  color: var(--white);
  border-radius: 50%;
}

.pillar__icon svg {
  width: 34px;
  height: 34px;
}

.pillar h3 {
  margin-bottom: var(--sp-3);
}

.pillar p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

/* --- 10. Leistungs-Karten ----------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--sp-6);
}

.service {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-500);
}

.service__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grey-200);
}

.service__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.service:hover .service__img img {
  transform: scale(1.05);
}

.service__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5);
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--sp-3);
  background: var(--brand-100);
  color: var(--brand-700);
  border-radius: var(--r-sm);
}

.service__icon svg {
  width: 24px;
  height: 24px;
}

.service h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
}

.service p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Beschreibung auf einheitliche Höhe, damit die Listen aller
   vier Karten auf derselben Linie beginnen */
@media (min-width: 641px) {
  .service p {
    min-height: 7.5em;
  }
}

.service__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.service__list {
  flex: 1;
}

.service__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding-block: var(--sp-1);
}

.service__list svg {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: var(--ok);
  flex-shrink: 0;
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand-700);
  text-decoration: none;
  margin-top: auto;
}

.service__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.service__link:hover {
  text-decoration: underline;
}

.service__link:hover svg {
  transform: translateX(4px);
}

/* --- 11. Ihre Sicherheit: Checkliste statt Karten ----------------------- */
/* Bewusst ohne Kacheln: nur Haarlinien zwischen den Punkten. Die Karten
   wirkten wie ein generisches Feature-Raster; eine Liste liest sich wie
   eine Vertragszusage. */
.assure {
  display: grid;
  grid-template-columns: minmax(18rem, 24rem) 1fr;
  gap: var(--sp-8) var(--sp-9);
  align-items: start;
}

.assure__intro {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

.assure__intro h2 {
  margin-bottom: var(--sp-4);
}

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

.assure__intro .btn {
  margin-top: var(--sp-2);
}

.assure__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.assure__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--border);
}

.assure__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.assure__item:last-child {
  padding-bottom: 0;
}

.assure__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  flex-shrink: 0;
  /* Der Haken zeichnet sich erst beim Einblenden */
  transition: transform 0.5s var(--ease) 0.1s;
  transform: scale(0.6);
}

.reveal.is-in .assure__check,
.assure__item.is-in .assure__check {
  transform: scale(1);
}

.assure__check svg {
  width: 17px;
  height: 17px;
}

.assure__item strong {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}

.assure__item p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --- 11b. Zwischen-Anfrage auf Bild ------------------------------------- */
/* Schmales Band statt volle Section: das Bild traegt hier nur den Kontrast
   fuer das Formular, es soll nicht mit der Hero konkurrieren. */
.cta-band {
  padding-block: 0 var(--sp-8);
}

.cta-band__inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  isolation: isolate;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  z-index: -2;
  /* Leichter Zoom beim Einblenden, gekoppelt an .reveal */
  transform: scale(1.08);
  transition: transform 1.2s var(--ease);
}

.cta-band__inner.is-in .cta-band__bg {
  transform: scale(1);
}

.cta-band__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(10, 26, 43, 0.9) 0%,
    rgba(10, 26, 43, 0.74) 42%,
    rgba(10, 26, 43, 0.4) 100%
  );
}

.cta-band__content {
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 26rem);
  align-items: center;
  gap: var(--sp-7);
  padding: var(--sp-7) var(--sp-8);
}

.cta-band__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-500);
}

.cta-band__text h2 {
  color: var(--white);
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-3);
}

.cta-band__text p {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
}

.cta-band__form {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

.cta-band__form .btn {
  width: 100%;
  margin-top: var(--sp-2);
}

/* --- 12. Ablauf (Prozess) ----------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--sp-6);
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
  padding-top: var(--sp-6);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-500);
  opacity: 0.32;
  letter-spacing: -0.04em;
}

.step h3 {
  position: relative;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
}

.step p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- 13. Über uns ------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about__media {
  position: relative;
}

/* Freigestelltes Portraet: es steht auf einer Markenflaeche statt in einem
   Rahmen und sitzt buendig auf der Unterkante. */
.about__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(
    165deg,
    var(--ink-800) 0%,
    var(--brand-700) 62%,
    var(--brand-600) 100%
  );
}

/* <picture> ist per Default inline – dann loeste die Prozenthoehe des
   Bildes gegen "auto" auf und das Portraet verschwand. */
.about__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* contain statt cover: das Portraet ist freigestellt und soll vollstaendig
   sichtbar auf der Unterkante stehen, nicht angeschnitten werden. */
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  display: block;
}

.about__photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
  background: linear-gradient(
    to top,
    rgba(10, 26, 43, 0.88) 0%,
    rgba(10, 26, 43, 0.6) 55%,
    rgba(10, 26, 43, 0) 100%
  );
  color: var(--white);
}

.about__photo figcaption strong {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about__photo figcaption span {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.82);
}

/* Oben rechts statt unten: unten liegt jetzt die Bildunterschrift mit dem
   Namen, die Badge wuerde sie sonst ueberdecken. */
.about__badge {
  position: absolute;
  right: -1rem;
  top: 1.5rem;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-width: 15rem;
}

.about__badge svg {
  width: 30px;
  height: 30px;
  color: var(--brand-500);
  flex-shrink: 0;
}

.about__badge strong {
  display: block;
  font-size: var(--fs-sm);
  line-height: 1.3;
}

.about__badge span {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.72);
}

.about__values {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 var(--sp-6);
  display: grid;
  gap: var(--sp-4);
}

.about__values li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
}

.about__values svg {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--brand-600);
  flex-shrink: 0;
}

.about__values strong {
  display: block;
  font-size: var(--fs-sm);
}

.about__values span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --- 14. Einsatzgebiet -------------------------------------------------- */
.area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.area__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: var(--sp-2) var(--sp-4);
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 0;
}

.area__list li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-block: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.area__list svg {
  width: 16px;
  height: 16px;
  color: var(--brand-600);
  flex-shrink: 0;
}

.area__map {
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  filter: saturate(0.9);
}

/* --- 15. Kontakt / CTA -------------------------------------------------- */
.contact {
  background: var(--ink-900);
  color: var(--white);
}

.contact h2 {
  color: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-lg);
}

.contact__methods {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0 0;
  display: grid;
  gap: var(--sp-4);
}

.contact__methods a,
.contact__methods > li > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact__methods a:hover {
  background: rgba(41, 171, 226, 0.14);
  border-color: var(--brand-500);
}

.contact__methods .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(41, 171, 226, 0.16);
  border-radius: var(--r-sm);
  color: var(--brand-500);
}

.contact__methods .ico svg {
  width: 22px;
  height: 22px;
}

.contact__methods strong {
  display: block;
  font-size: var(--fs-base);
  line-height: 1.3;
  word-break: break-word;
}

.contact__methods span {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.68);
}

.form-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.form-card h3 {
  margin-bottom: var(--sp-2);
}

.form-card__intro {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

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

.form__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.55;
}

.form__consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brand-600);
  cursor: pointer;
  flex-shrink: 0;
}

.form__error-summary {
  display: none;
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
  background: #fdecec;
  border: 1px solid var(--danger);
  border-left: 4px solid var(--danger);
  border-radius: var(--r-sm);
  color: #8c1d1d;
}

.form__error-summary.is-visible {
  display: block;
}

.form__error-summary h4 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-2);
  color: #8c1d1d;
}

.form__error-summary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form__error-summary ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: var(--fs-sm);
}

.form__error-summary a {
  color: #8c1d1d;
  font-weight: 600;
}

/* Versand fehlgeschlagen: gleiche Anmutung wie die Erfolgsmeldung, nur in
   der Fehlerfarbe – mit Telefonnummer als Ausweg. */
.form__failure {
  display: none;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  background: #fdecec;
  border: 1px solid var(--danger);
  border-radius: var(--r-md);
  color: #8c1d1d;
}

.form__failure.is-visible {
  display: grid;
  grid-template-columns: auto 1fr;
}

.form__failure svg {
  width: 26px;
  height: 26px;
  color: var(--danger);
}

.form__failure h4 {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-base);
}

.form__failure p {
  margin: 0;
  font-size: var(--fs-sm);
}

.form__failure a {
  color: #8c1d1d;
  font-weight: 700;
}

.form__success {
  display: none;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-5);
  background: #eaf6ee;
  border: 1px solid var(--ok);
  border-radius: var(--r-md);
  color: #14532d;
}

.form__success.is-visible {
  display: grid;
  grid-template-columns: auto 1fr;
}

.form__success svg {
  width: 26px;
  height: 26px;
  color: var(--ok);
  flex-shrink: 0;
}

.form__success h4 {
  margin-bottom: var(--sp-2);
  color: #14532d;
}

.form__success p {
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

/* --- 16. FAQ ------------------------------------------------------------ */
.faq {
  max-width: 52rem;
  margin-inline: auto;
}

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

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

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

.faq__item summary:hover {
  color: var(--brand-700);
}

.faq__item summary::after {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(180deg);
}

.faq__answer {
  padding-bottom: var(--sp-5);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 46rem;
}

.faq__answer p:last-child,
.faq__answer ul:last-child {
  margin-bottom: 0;
}

/* --- 17. Footer --------------------------------------------------------- */
.site-footer {
  background: #060f19;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm);
  padding-block: var(--sp-8) var(--sp-5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Nutzt die Variante mit weißer Schrift (logo-h180-light.png) */
.footer__brand img {
  width: auto;
  height: 76px;
  margin-bottom: var(--sp-4);
}

.footer__brand p {
  max-width: 24rem;
  font-size: var(--fs-sm);
}

.site-footer h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}

.footer__list a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer__list a:hover {
  color: var(--brand-500);
  text-decoration: underline;
}

.footer__contact {
  display: grid;
  gap: var(--sp-3);
  font-style: normal;
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.footer__contact a:hover {
  color: var(--brand-500);
}

.footer__contact svg {
  width: 17px;
  height: 17px;
  color: var(--brand-500);
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--brand-500);
  text-decoration: underline;
}

.footer__credit {
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(41, 171, 226, 0.5);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer__credit a:hover {
  color: var(--brand-500);
  border-color: var(--brand-500);
}

/* --- 18. Mobiler Sofort-Kontakt ----------------------------------------- */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 16px rgba(10, 26, 43, 0.18);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 56px;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  background: var(--ink-900);
}

.mobile-bar a.is-primary {
  background: var(--brand-700);
}

.mobile-bar svg {
  width: 19px;
  height: 19px;
}

/* --- 19. Rechtstexte ---------------------------------------------------- */
.legal-hero {
  background: var(--ink-900);
  color: var(--white);
  padding-block: var(--sp-8);
}

.legal-hero h1 {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-3xl);
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
  max-width: 44rem;
}

.legal {
  max-width: 52rem;
  margin-inline: auto;
}

.legal h2 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-7);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-5);
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal li {
  margin-bottom: var(--sp-2);
}

.legal address {
  font-style: normal;
  color: var(--text-muted);
}

.toc {
  padding: var(--sp-5);
  margin-bottom: var(--sp-7);
  background: var(--grey-100);
  border-radius: var(--r-md);
}

.toc h2 {
  margin: 0 0 var(--sp-3);
  padding: 0;
  border: 0;
  font-size: var(--fs-base);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: var(--sp-6);
  font-size: var(--fs-sm);
}

.toc li {
  margin-bottom: var(--sp-2);
  break-inside: avoid;
}

/* --- 20. Scroll-Animation ----------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  /* Elemente einer Liste koennen sich per --reveal-delay staffeln */
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- 20a. Fehlerseite 404 ----------------------------------------------- */
.notfound {
  max-width: 40rem;
  margin: 0 auto;
  padding-block: var(--sp-8);
  text-align: center;
}

.notfound h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-4);
}

.notfound p {
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.notfound__actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- 20b. Einwilligungsdialog ------------------------------------------- */
/* Modal statt Leiste am Rand: solange keine Entscheidung vorliegt, soll die
   Wahl auch wirklich getroffen werden. Ablehnen und Akzeptieren sind bewusst
   identisch gestaltet – ein hervorgehobener Zustimmen-Knopf gilt den
   Aufsichtsbehoerden als unzulaessige Beeinflussung. */
.consent {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}

.consent.is-open {
  display: flex;
}

/* Hintergrund sperren, solange der Dialog offen ist */
.has-consent-open,
.has-consent-open body {
  overflow: hidden;
}

.consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 27, 0.72);
  backdrop-filter: blur(2px);
}

.consent__dialog {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: calc(100vh - 2 * var(--sp-5));
  overflow-y: auto;
  padding: var(--sp-6);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(6, 16, 27, 0.45);
}

.consent__title {
  font-size: var(--fs-xl);
  margin: 0 0 var(--sp-3);
}

.consent__dialog p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.consent__meta {
  font-size: var(--fs-xs) !important;
}

.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* Gleiche Groesse, gleiche Farbe, gleicher Kontrast fuer beide Optionen */
.consent__btn {
  width: 100%;
  background: var(--brand-700);
  color: var(--white);
  border-color: var(--brand-700);
}

.consent__btn:hover {
  background: var(--brand-800);
  border-color: var(--brand-800);
}

/* Die Detaileinstellungen sind bewusst nachrangig, aber gut erreichbar */
.consent__link {
  display: block;
  width: 100%;
  margin-top: var(--sp-4);
  padding: var(--sp-2);
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: underline;
  cursor: pointer;
}

.consent__link:hover {
  color: var(--brand-800);
}

.consent__group {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border);
}

.consent__group p {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-xs);
}

.consent__group code {
  font-size: 0.95em;
  padding: 1px 5px;
  background: var(--grey-100);
  border-radius: 3px;
}

.consent__groupHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-base);
}

label.consent__groupHead {
  cursor: pointer;
}

.consent__fixed {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Schalter */
.switch {
  position: relative;
  flex-shrink: 0;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch__track {
  display: block;
  width: 48px;
  height: 28px;
  background: var(--grey-300);
  border-radius: 999px;
  transition: background-color 0.2s var(--ease);
}

.switch__track::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(10, 26, 43, 0.35);
  transition: transform 0.2s var(--ease);
}

.switch input:checked + .switch__track {
  background: var(--brand-600);
}

.switch input:checked + .switch__track::after {
  transform: translateX(20px);
}

.switch input:focus-visible + .switch__track {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
}

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

/* Kartenplatzhalter: gleiche Flaeche wie das spaetere iframe, damit beim
   Nachladen nichts springt (kein Layout-Shift). */
.map-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: var(--sp-6);
  text-align: center;
  background: var(--grey-100);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

/* Nach der Einwilligung traegt derselbe Container das iframe – dadurch
   bleibt der Platz erhalten und ein Widerruf kann den Platzhalter
   zurueckholen, ohne die Seite neu zu laden. */
.map-consent.is-loaded {
  display: block;
  padding: 0;
  background: none;
  border: 0;
}

.map-consent.is-loaded .area__map {
  aspect-ratio: auto;
  height: 100%;
  display: block;
}

.map-consent__box {
  max-width: 30rem;
}

.map-consent svg {
  width: 40px;
  height: 40px;
  color: var(--brand-600);
  margin-bottom: var(--sp-3);
}

.map-consent strong {
  display: block;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.map-consent p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.map-consent__remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  cursor: pointer;
}

/* --- 21. Responsive ----------------------------------------------------- */
/* Zwischen 960 und 1180px reicht der Platz nicht für Menü + Button */
@media (max-width: 1180px) and (min-width: 961px) {
  .nav__cta {
    display: none;
  }
}

@media (max-width: 1080px) {
  /* Intro rutscht ueber die Liste, Sticky waere hier nur noch stoerend */
  .assure {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }

  .assure__intro {
    position: static;
    max-width: 46rem;
  }

  .cta-band__content {
    grid-template-columns: 1fr;
    padding: var(--sp-6);
  }

  .quotebar__card {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--sp-7);
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 88px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__link {
    padding: var(--sp-4);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav__link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--brand-500);
  }

  .nav {
    position: relative;
  }

  .nav__cta {
    display: none;
  }

  .about,
  .area,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    max-width: 26rem;
    margin-inline: auto;
  }

  .about__badge {
    right: 0;
  }

  /* Mobil kippt die Zweiteilung von senkrecht auf waagerecht:
     Text oben auf dunklem Grund, darunter das zweite Bild
     diagonal angeschnitten — mit derselben weißen Kante. */
  .hero__media img:first-child {
    object-position: 58% center;
  }

  /* Höhe des Bildbands am unteren Rand, skaliert mit der Breite */
  .hero {
    --band: clamp(150px, 42vw, 230px);
  }

  /* Zweites Bild als eigenes Band unter dem Text */
  .hero__media img:last-child {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    height: var(--band);
    object-position: center 45%;
    clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%);
  }

  /* Weiße Kante auf derselben Diagonale wie der Bildanschnitt */
  .hero__wedge {
    top: auto;
    bottom: 0;
    height: var(--band);
    clip-path: polygon(
      0 calc(22% - 3px),
      100% -3px,
      100% 3px,
      0 calc(22% + 3px)
    );
  }

  /* Abdunklung läuft über dem Bildband aus */
  .hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(10, 26, 43, 0.94) 0%,
      rgba(10, 26, 43, 0.9) 40%,
      rgba(10, 26, 43, 0.78) 60%,
      rgba(10, 26, 43, 0.4) 78%,
      rgba(10, 26, 43, 0.15) 88%,
      rgba(10, 26, 43, 0.1) 100%
    );
  }

  /* Inhalt endet oberhalb des Bildbands */
  .hero__inner {
    padding-bottom: calc(var(--band) + var(--sp-5));
  }

  .mobile-bar {
    display: grid;
  }

  body {
    padding-bottom: 56px;
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: var(--sp-8);
  }

  /* Einspaltig, damit die Zusagen nicht mitten im Wort umbrechen */
  .hero__trust {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .quotebar__fields,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quotebar {
    margin-top: -2rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .toc ol {
    columns: 1;
  }

  .cta-band {
    padding-block: var(--sp-6);
  }

  .cta-band__content {
    padding: var(--sp-5);
  }

  .cta-band__form {
    padding: var(--sp-4);
  }

  .about__badge {
    position: static;
    margin-top: var(--sp-4);
    max-width: none;
  }
}

/* --- 22. Reduzierte Bewegung -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Ausgangszustaende zuruecksetzen: ohne Transition bliebe der Haken
     geschrumpft und das Bandbild dauerhaft herangezoomt. */
  .assure__check,
  .cta-band__bg {
    transform: none;
  }
}

/* --- 23. Druck ---------------------------------------------------------- */
@media print {
  .site-header,
  .mobile-bar,
  .consent,
  .hero__media,
  .quotebar,
  form {
    display: none !important;
  }

  body {
    padding-bottom: 0;
    color: #000;
  }

  .legal {
    max-width: none;
  }
}
