/* =========================================================================
   MN KFZ Technik – Designsystem
   Ruhige, technische Premium-Anmutung: kleine Radien, klare Kanten,
   feine Linien statt großer Schatten, Blau als Akzent statt als Fläche.
   ========================================================================= */

/* -------------------------------------------------------------- Tokens */
:root {
  /* Marke */
  --navy: #0a2540;
  --navy-deep: #071b2f;
  --navy-soft: #143a63;
  --ink: #0f1b2a;
  --ink-soft: #33445a;
  --muted: #5c6b7c;
  --muted-light: #8494a4;
  --blue: #0d6be8;
  --blue-strong: #0a55b8;
  --blue-light: #eaf2fd;
  --line: #e3e8ee;
  --line-strong: #cdd7e1;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --surface-sunk: #eef2f7;

  /* Status */
  --state-plan: #2f7d4f;
  --state-soon: #b57608;
  --state-urgent: #c1471b;
  --state-stop: #b3211a;

  /* Radien – bewusst klein */
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;

  /* Erhebung – sehr dezent */
  --shadow-xs: 0 1px 2px rgba(10, 37, 64, .05);
  --shadow-sm: 0 2px 6px rgba(10, 37, 64, .06);
  --shadow-md: 0 14px 32px -16px rgba(10, 37, 64, .28);
  --shadow-lg: 0 24px 56px -28px rgba(10, 37, 64, .35);

  /* Maße */
  --header-h: 74px;
  --header-h-compact: 60px;
  --topbar-h: 36px;
  --section-y: clamp(64px, 7.5vw, 108px);
  --gap: clamp(16px, 1.6vw, 24px);

  /* Typografie */
  --font: "Inter var", "Inter", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

/*
 * Muss vor allen Komponenten stehen: Autoren-Regeln wie `display: grid`
 * überschreiben sonst das UA-Verhalten von [hidden]. Ohne diese Zeile bliebe
 * etwa der Anfrage-Dialog nach dem Schließen als unsichtbare Ebene über der
 * Seite liegen und würde Klicks abfangen.
 */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: rgba(13, 107, 232, .16); }

/* ------------------------------------------------------------ Utilities */
.container { width: min(1280px, 100% - 48px); margin-inline: auto; }

.sr-only {
  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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 18px;
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.icon { flex: 0 0 auto; }

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-light { color: #6fb2ff; }

.lead {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.text-muted { color: var(--muted); }
.lead + .lead { margin-top: 14px; }

/* -------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--blue);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--btn-border);
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { --btn-border: var(--blue); }
.btn-primary { --btn-bg: var(--blue); --btn-fg: #fff; --btn-border: var(--blue); }
.btn-primary:hover { --btn-bg: var(--blue-strong); --btn-border: var(--blue-strong); }
.btn-quiet { --btn-fg: var(--ink); }
.btn-quiet:hover { --btn-fg: var(--blue); }
.btn-on-dark { --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .32); }
.btn-on-dark:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-border: rgba(255, 255, 255, .6); }
.btn-compact { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn-block { width: 100%; }
.field-wide.btn-block { justify-self: start; width: auto; min-width: 280px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}
.text-link .icon { transition: transform .18s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* --------------------------------------------------------------- Topbar */
.topbar {
  height: var(--topbar-h);
  background: var(--navy-deep);
  color: #c6d5e4;
  font-size: 12.5px;
}
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-claim { letter-spacing: .01em; }
.topbar-meta { display: flex; align-items: center; gap: 24px; }
.topbar-item { white-space: nowrap; }
.topbar-phone { color: #fff; font-weight: 600; }
.topbar-phone:hover { color: #7cb8ff; }

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: height .2s ease, box-shadow .2s ease;
}
.site-header.is-compact {
  height: var(--header-h-compact);
  box-shadow: 0 1px 0 rgba(10, 37, 64, .06), 0 10px 24px -20px rgba(10, 37, 64, .5);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand .site-logo {
  width: auto;
  height: 54px;
  max-width: 260px;
  object-fit: contain;
  object-position: left center;
  transition: height .2s ease;
}
.site-header.is-compact .brand .site-logo { height: 44px; }

.nav-desktop { display: flex; align-items: center; gap: 30px; margin-left: auto; height: 100%; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .07em;
  color: var(--ink-soft);
  transition: color .18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active,
.nav-link[aria-current="page"] { color: var(--blue); }
.nav-link.is-active::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-icon { display: grid; place-items: center; }
.nav-toggle-icon > * { grid-area: 1 / 1; }
.nav-toggle-icon > *:last-child { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon > *:first-child { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon > *:last-child { opacity: 1; }

/* Mobile Navigation */
.nav-scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(7, 27, 47, .48);
  backdrop-filter: blur(2px);
}
.nav-mobile {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 70;
  width: min(340px, 88vw);
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .24s ease;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile-inner { display: flex; flex-direction: column; padding: 18px 20px 28px; gap: 2px; }
.nav-mobile-close {
  align-self: flex-end;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-mobile-close:hover { border-color: var(--blue); color: var(--blue); }
.nav-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.nav-mobile-link .icon { color: var(--muted-light); }
.nav-mobile-link:hover { color: var(--blue); }
.nav-mobile-cta { margin-top: 24px; }

/* ----------------------------------------------------------------- Hero */
/* Kein eigener Stapelkontext: sonst würde die fixierte Fahrzeugebene
   (z-index: -1) mit dem gesamten Hero über den Footer gehoben. */
.hero { position: relative; }
.hero-media {
  position: fixed;
  top: calc(var(--topbar-h) + var(--header-h));
  right: 0;
  z-index: -1;
  width: 66vw;
  max-width: 1180px;
  height: 470px;
  pointer-events: none;
}
.hero-media img { width: 100%; height: 100%; object-fit: contain; object-position: 100% 50%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    #fff 0%,
    rgba(255, 255, 255, .92) 4%,
    rgba(255, 255, 255, .4) 10%,
    rgba(255, 255, 255, 0) 18%);
}
.hero-inner {
  min-height: 470px;
  display: flex;
  align-items: center;
  padding: 40px 0 56px;
}
.hero-copy { width: min(560px, 52%); }
.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 800;
}
.hero h1 .accent { display: block; color: var(--blue); }
.hero-text { max-width: 46ch; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 22px;
  list-style: none;
  font-size: 13.5px;
  font-weight: 550;
}
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-checks .icon { color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Inhalt liegt deckend über der fixierten Fahrzeugebene. */
.content-layer { position: relative; z-index: 2; background: var(--surface); }

/* -------------------------------------------------------------- Sektionen */
.section { padding: var(--section-y) 0; }
.section-tight { padding: clamp(48px, 5vw, 72px) 0; }
.section-alt { background: var(--surface-alt); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy .lead, .section-navy p { color: #c3d3e2; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(28px, 3vw, 44px); }
.section-head h2 { margin-top: 10px; font-size: clamp(26px, 2.4vw, 36px); }
.section-head .lead { margin-top: 14px; max-width: 62ch; }

/* ---------------------------------------------------------------- Team */
/* Greift den Kartenstil der Leistungen auf: gleicher Rahmen, gleicher Radius,
   gleiches Anheben beim Überfahren. */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.team-card {
  display: flex;
  gap: 22px;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.team-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.team-avatar {
  flex: none;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
}
.team-body { min-width: 0; }
.team-role {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.team-card h3 { margin: 8px 0 10px; font-size: clamp(19px, 1.5vw, 23px); }
.team-card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }

/* --------------------------------------------------------- Vertrauensband */
.trust-band { position: relative; z-index: 3; margin-top: -1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-item { display: flex; align-items: flex-start; gap: 14px; padding: 26px 26px 26px 0; }
.trust-item + .trust-item { padding-left: 26px; border-left: 1px solid var(--line); }
.trust-item .icon { color: var(--navy); margin-top: 2px; }
.trust-item h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.trust-item p { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ----------------------------------------------------------- Leistungen */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* Bildband im Seitenverhältnis der freigegebenen Motive – kein Beschnitt am Motiv. */
.service-media { position: relative; aspect-ratio: 3 / 2; background: var(--navy-deep); overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-badge {
  position: absolute;
  right: 12px; bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--r-sm);
  background: rgba(7, 27, 47, .72);
  backdrop-filter: blur(6px);
  color: #fff;
}
.service-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 22px 24px; }
.service-body h3 { font-size: 17px; }
.service-body p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.service-body .text-link { margin-top: auto; padding-top: 6px; }

/* Kompakte Zusatzleistungen */
.service-extra { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: var(--gap); }
.service-mini {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.service-mini:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.service-mini .icon { color: var(--blue); margin-top: 2px; }
.service-mini h3 { font-size: 15px; }
.service-mini p { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------- Warum MN */
.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.why-grid h2 { font-size: clamp(26px, 2.6vw, 38px); margin: 12px 0 18px; }
.why-grid p + p { margin-top: 14px; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proof {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .045);
}
.proof h3 { font-size: 13.5px; color: #fff; }
.proof p { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: #adc2d6; }

/* --------------------------------------------------------------- Frag MN */
.assist-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.assist-intro { padding: clamp(30px, 3vw, 46px); background: linear-gradient(160deg, var(--navy) 0%, #0c3f74 100%); color: #fff; }
.assist-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-sm);
  font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
}
.assist-intro h2 { margin: 22px 0 16px; font-size: clamp(24px, 2.3vw, 34px); }
.assist-intro h2 .accent { color: #6fb2ff; }
.assist-intro p { font-size: 14px; line-height: 1.7; color: #c3d5e6; }
.assist-points { margin-top: 26px; list-style: none; display: grid; gap: 11px; }
.assist-points li { display: flex; gap: 10px; font-size: 13px; color: #dbe7f2; }
.assist-points .icon { color: #6fb2ff; margin-top: 1px; }
.assist-form-wrap { padding: clamp(26px, 2.6vw, 40px); }

/* Formularelemente */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
/* Fieldsets werden wie normale Felder behandelt – ohne Browser-Rahmen. */
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field > legend { padding: 0; }
.field-wide { grid-column: 1 / -1; }
.field > label, .field-label { font-size: 12px; font-weight: 650; letter-spacing: .02em; color: var(--ink); }
.field-hint { font-size: 11.5px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 14.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235c6b7c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 107, 232, .12);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--state-stop); }
.field-error { font-size: 12px; color: var(--state-stop); font-weight: 550; }

/* Dynamische Zusatzfragen */
.followups { grid-column: 1 / -1; display: grid; gap: 16px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface-alt); }
.followups:empty { display: none; }
.followups-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 13px;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip input:checked + span { border-color: var(--blue); background: var(--blue-light); color: var(--blue-strong); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Ergebnisdarstellung */
.assist-result { grid-column: 1 / -1; margin-top: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface-alt); overflow: hidden; }
.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.urgency {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.urgency[data-level="planbar"] { color: var(--state-plan); }
.urgency[data-level="zeitnah"] { color: var(--state-soon); }
.urgency[data-level="dringend"] { color: var(--state-urgent); }
.urgency[data-level="kritisch"] { color: #fff; background: var(--state-stop); border-color: var(--state-stop); }
.result-source { font-size: 11.5px; color: var(--muted); }
.result-body { padding: 20px; display: grid; gap: 22px; }
.result-block h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.result-block > p, .result-block li { margin-top: 8px; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }
.result-block ul { list-style: none; display: grid; gap: 8px; }
.result-block li { display: flex; gap: 10px; }
.result-block li::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--blue); }
.result-block.is-critical { padding: 16px; border: 1px solid #f0c8c4; border-radius: var(--r-md); background: #fdf3f2; }
.result-block.is-critical h3 { color: var(--state-stop); }
.summary-box { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 16px; }
.summary-box pre { margin: 10px 0 14px; font: 12.5px/1.6 var(--font-mono); white-space: pre-wrap; word-break: break-word; color: var(--ink-soft); }
.result-note { font-size: 11.5px; line-height: 1.55; color: var(--muted); }

/* ------------------------------------------------------------------ FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-aside h2 { font-size: clamp(26px, 2.6vw, 38px); margin: 12px 0 16px; }
.faq-aside .lead { max-width: 40ch; }
.faq-aside-cta { margin-top: 24px; }

/* Suchfeld über alle Fragen und Antworten */
.faq-search { position: relative; display: flex; align-items: center; scroll-margin-top: calc(var(--header-h-compact) + 20px); }
.faq-search-icon { position: absolute; left: 14px; display: grid; place-items: center; color: var(--muted-light); pointer-events: none; }
.faq-search input {
  width: 100%;
  min-height: 52px;
  padding: 12px 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.faq-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13, 107, 232, .12); }
.faq-search input::-webkit-search-cancel-button { display: none; }
.faq-search-clear {
  position: absolute; right: 8px;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--muted); cursor: pointer;
}
.faq-search-clear:hover { background: var(--surface-alt); color: var(--ink); }
.faq-search-status { margin-top: 12px; font-size: 13px; color: var(--muted); }
.faq-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Themenkacheln */
.faq-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; list-style: none; }
.faq-tile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  min-height: 84px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.faq-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-tile.is-active { border-color: var(--blue); background: var(--blue-light); }
.faq-tile-icon { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-alt); color: var(--blue); }
.faq-tile.is-active .faq-tile-icon { border-color: rgba(13, 107, 232, .28); background: #fff; }
.faq-tile-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.faq-tile-title { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.faq-tile-teaser { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.faq-tile-count {
  margin-left: auto; flex: 0 0 auto;
  min-width: 26px; padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 650; text-align: center;
  color: var(--muted);
}
.faq-tile.is-active .faq-tile-count { border-color: rgba(13, 107, 232, .28); color: var(--blue-strong); }

/* Themenbereiche: standardmäßig geschlossen, per Kachel geöffnet */
.faq-panel { display: none; margin-top: 26px; scroll-margin-top: calc(var(--header-h-compact) + 20px); }
.faq-panel.is-active { display: block; }
.faq-page.is-searching .faq-panel { display: block; }
.faq-page.is-searching .faq-tiles,
.faq-page.is-searching .faq-hint,
.faq-page.is-searching .faq-back { display: none; }
.faq-page.is-searching .faq-panel-intro { display: none; }
.faq-page.is-searching .faq-panel:not(.has-match) { display: none; }
.faq-page.is-searching .faq-item[hidden] { display: none; }

.faq-panel-head { margin-bottom: 16px; }
.faq-back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px 0 4px;
  margin-bottom: 10px;
  border: 0; background: transparent;
  font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); cursor: pointer;
}
.faq-back .icon { transform: rotate(180deg); }
.faq-back:hover { color: var(--blue-strong); }
.faq-panel-title { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 1.9vw, 26px); }
.faq-panel-title .icon { color: var(--blue); }
.faq-panel-intro { margin-top: 12px; max-width: 74ch; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }

.faq-heading { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: normal; line-height: inherit; }
.faq-highlights { margin-top: 30px; }
.faq-highlights .text-link { margin-top: 16px; }
.faq-item.is-hit .faq-question > span:first-child { color: var(--blue-strong); }
.faq-group-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.faq-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.faq-list { display: grid; gap: 8px; list-style: none; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .18s ease; }
.faq-item:hover { border-color: var(--line-strong); }
.faq-item.is-open { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
}
.faq-marker {
  display: grid; place-items: center;
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--blue);
  transition: background-color .18s ease, border-color .18s ease;
}
.faq-marker > * { grid-area: 1 / 1; transition: opacity .18s ease; }
.faq-item.is-open .faq-marker { background: var(--blue-light); border-color: var(--blue); }
.faq-marker > *:last-child { opacity: 0; }
.faq-item.is-open .faq-marker > *:first-child { opacity: 0; }
.faq-item.is-open .faq-marker > *:last-child { opacity: 1; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 18px 18px; font-size: 13.5px; line-height: 1.72; color: var(--ink-soft); max-width: 78ch; }
.faq-empty { padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); font-size: 13.5px; color: var(--muted); }

/* -------------------------------------------------------------- Ratgeber */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.guide-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.guide-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 7;
  background:
    linear-gradient(150deg, var(--navy) 0%, #0d3a68 100%),
    var(--navy);
  color: #fff;
  overflow: hidden;
}
.guide-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
}
.guide-visual .icon { position: relative; width: 54px; height: 54px; stroke-width: 1.1; color: #7fbaff; }
.guide-tag {
  position: absolute; left: 14px; top: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-sm);
  font-size: 10.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: #cfe2f5;
}
.guide-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px; }
.guide-body h3 { font-size: 16.5px; line-height: 1.3; }
.guide-body p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.guide-body .text-link { margin-top: auto; padding-top: 6px; }

/* -------------------------------------------------------------- Regionen */
.region-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.region-layout h2 { font-size: clamp(26px, 2.6vw, 38px); margin: 12px 0 18px; }
.region-links { display: grid; gap: 10px; }
.region-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05);
  font-size: 14px; font-weight: 600; color: #fff;
  transition: background-color .18s ease, border-color .18s ease;
}
.region-links a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .34); }
.region-links .icon { color: #7fbaff; }

/* --------------------------------------------------------------- Kontakt */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-alt);
}
.contact-card h2 { font-size: clamp(22px, 2vw, 30px); }
.contact-card p { margin-top: 10px; font-size: 14.5px; color: var(--muted); max-width: 60ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: var(--gap); }
.channel {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.channel .icon { color: var(--blue); margin-top: 2px; }
.channel h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.channel p, .channel a { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.channel a { color: var(--blue); font-weight: 600; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--navy-deep); color: #b9cadb; padding: clamp(40px, 4.5vw, 64px) 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.footer-brand { max-width: 340px; }
.logo-plate {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  background: #fff;
}
.logo-plate .site-logo { width: auto; height: 52px; max-width: 240px; object-fit: contain; }
.footer-claim { margin-top: 18px; font-size: 13px; line-height: 1.7; color: #9fb3c6; }
.footer-contact { margin-top: 18px; list-style: none; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.footer-contact .icon { color: #6fb2ff; margin-top: 2px; }
.footer-contact a:hover { color: #fff; }
.footer-col h2 { font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 13px; color: #a8bccf; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 11.5px;
  color: #7b90a5;
}

/* ------------------------------------------------------------- Unterseiten */
.page-hero { padding: clamp(44px, 5vw, 76px) 0 clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-alt), #fff); }
.page-hero h1 { margin: 14px 0 18px; font-size: clamp(30px, 3.4vw, 46px); max-width: 20ch; }
.page-hero .lead { max-width: 68ch; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero-media { margin-top: clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1000 / 260; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumbs { margin-bottom: 22px; font-size: 12px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--blue); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 5vw, 72px) 0; align-items: start; }
.article { max-width: 74ch; }
.article h2 { font-size: clamp(21px, 1.9vw, 27px); margin: clamp(32px, 3.5vw, 48px) 0 14px; }
.article h2:first-child { margin-top: 0; }
.article p { font-size: 15px; line-height: 1.78; color: var(--ink-soft); }
.article p + p { margin-top: 14px; }
.article ul { margin: 16px 0 0; list-style: none; display: grid; gap: 10px; }
.article ul li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.article ul li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--blue); }

.symptom-box { margin: 8px 0 0; padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--surface-alt); }
.symptom-box h2 { margin: 0 0 14px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.symptom-box ul { margin: 0; }

.safety-box { margin: clamp(32px, 3.5vw, 44px) 0 0; padding: 22px 24px; border: 1px solid #f0c8c4; border-left: 3px solid var(--state-stop); border-radius: 0 var(--r-md) var(--r-md) 0; background: #fdf4f3; }
.safety-box h2 { margin: 0 0 12px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--state-stop); }
.safety-box ul li::before { background: var(--state-stop); }
.safety-box p { font-size: 14.5px; }

.notice { margin: clamp(28px, 3vw, 40px) 0 0; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--blue-light); font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); }

.sidebox { position: sticky; top: calc(var(--header-h-compact) + 20px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.sidebox + .sidebox { margin-top: 16px; position: static; }
.sidebox h2 { padding: 18px 20px 0; font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.sidebox-links { padding: 12px 20px 18px; display: grid; }
.sidebox-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); }
.sidebox-links a:last-child { border-bottom: 0; }
.sidebox-links a:hover { color: var(--blue); }
.sidebox-links .icon { color: var(--muted-light); }
.sidebox-cta { padding: 18px 20px 20px; }
.sidebox-cta p { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 14px; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: 26px; }
.info-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.info-card h3 { font-size: 15px; }
.info-card p { margin-top: 8px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

.legal-content { max-width: 78ch; padding: clamp(40px, 5vw, 72px) 0; }
.legal-content h2 { font-size: clamp(19px, 1.7vw, 24px); margin: 34px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 16px; margin: 22px 0 8px; }
.legal-content p, .legal-content li { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }
.legal-content p + p { margin-top: 12px; }
.legal-content ul { margin: 12px 0 0 0; list-style: none; display: grid; gap: 8px; }
.legal-content ul li { display: flex; gap: 12px; }
.legal-content ul li::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin-top: 10px; border-radius: 50%; background: var(--line-strong); }
.legal-content dl { margin: 12px 0 0; }
.legal-content dt { font-weight: 650; font-size: 14px; margin-top: 12px; }
.legal-content dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* --------------------------------------------------------- Anfrage-Wizard */
.wizard-scrim {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: end center;
  padding: 0;
  background: rgba(7, 27, 47, .55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .2s ease;
}
.wizard-scrim.is-open { opacity: 1; }
.wizard {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: 100dvh;
  background: #fff;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px);
  transition: transform .22s ease;
  overflow: hidden;
}
.wizard-scrim.is-open .wizard { transform: translateY(0); }
.wizard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.wizard-head h2 { font-size: 19px; }
.wizard-head p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.wizard-close {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
}
.wizard-close:hover { border-color: var(--blue); color: var(--blue); }
.wizard-progress { display: flex; gap: 4px; padding: 0 24px; margin-top: 14px; }
.wizard-progress span { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background-color .2s ease; }
.wizard-progress span.is-done { background: var(--blue); }
.wizard-progress span.is-current { background: var(--blue); opacity: .55; }
.wizard-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
.wizard-step-label { font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.wizard-body h3 { margin: 10px 0 4px; font-size: 21px; }
.wizard-body > .field-hint { margin-bottom: 20px; display: block; }
.wizard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-alt); }
.wizard-foot .btn { min-width: 120px; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.option:hover { border-color: var(--blue); }
.option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.option .icon { color: var(--blue); }
.option-text { font-size: 14px; font-weight: 600; }
.option input:checked ~ .option-text { color: var(--blue-strong); }
.option:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
.option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

.summary-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.summary-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--muted); font-size: 12.5px; }
.summary-row dd { margin: 0; color: var(--ink); white-space: pre-wrap; }
.summary-edit { border: 0; background: transparent; padding: 0; font-size: 12px; font-weight: 600; color: var(--blue); cursor: pointer; }
.summary-edit:hover { text-decoration: underline; }

.send-options { display: grid; gap: 10px; margin-top: 18px; }
.send-note { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------------- 404 */
.notfound { padding: clamp(60px, 9vw, 130px) 0; text-align: center; }
.notfound h1 { font-size: clamp(34px, 5vw, 60px); }
.notfound p { margin: 18px auto 30px; max-width: 52ch; color: var(--muted); font-size: 15.5px; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.nojs { padding: 12px 0; background: #fff6e0; border-bottom: 1px solid #f0dfb4; font-size: 13px; text-align: center; color: #7a5a0d; }

/* ---------------------------------------------------------- Breakpoints */
@media (max-width: 1180px) {
  .footer-top { grid-template-columns: 1.4fr repeat(2, 1fr); row-gap: 36px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .trust-item:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 1040px) {
  .team-grid { grid-template-columns: 1fr; }
  .container { width: min(1280px, 100% - 40px); }
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }

  /* Fahrzeug oben, Text darunter – kein Text über dem Fahrzeug. */
  .hero-media {
    position: absolute;
    top: 0; left: 0; right: 0;
    width: 100%;
    max-width: none;
    height: 330px;
  }
  .hero-media img { object-position: 50% 50%; }
  .hero-media::after {
    /* Das Fahrzeug ist freigestellt und steht ohnehin auf Weiß. Deshalb nur
       eine kurze Blende am unteren Rand zum Text hin - kein Schleier über
       dem Fahrzeug, sonst wird das Kennzeichen unleserlich. */
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 74%,
      rgba(255, 255, 255, .8) 92%,
      #fff 100%);
  }
  .hero-inner { min-height: 0; padding: 348px 0 52px; align-items: flex-start; }
  .hero-copy { width: 100%; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3n + 1) { padding-left: 26px; border-left: 1px solid var(--line); }
  .trust-item:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .trust-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .service-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .assist-card, .why-grid, .faq-layout, .region-layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebox { position: static; }
  .article { max-width: none; }
  .contact-channels { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; --header-h-compact: 56px; }
  .team-card { flex-direction: column; gap: 16px; }
  .team-avatar { width: 56px; height: 56px; }
  .container { width: min(100% - 32px, 1280px); }
  .header-cta { display: none; }
  /* Die Zeile bleibt nur bestehen, wenn tatsächlich Daten gepflegt sind. */
  .topbar[data-meta="true"] .topbar-claim { display: none; }
  .topbar[data-meta="false"] { display: none; }
  .topbar-meta { justify-content: flex-end; gap: 12px; }
  .brand .site-logo { height: 38px; max-width: 190px; }

  .hero-media { height: 236px; }
  /* Auf dem Telefon begrenzt die Bildschirmbreite das Fahrzeug. Deshalb hier
     auf die Front zoomen: Das Kennzeichen bleibt lesbar, das Heck darf
     angeschnitten sein. */
  .hero-media img { object-fit: cover; object-position: 24% 50%; }
  .hero-inner { padding: 252px 0 44px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item + .trust-item { padding: 18px 0; border-left: 0; padding-left: 0; }
  .trust-item + .trust-item { border-top: 1px solid var(--line); }
  .service-grid, .guide-grid, .service-extra, .proof-grid, .info-grid { grid-template-columns: 1fr; }
  .faq-tiles { grid-template-columns: 1fr; }
  .faq-tile { min-height: 76px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-actions .btn { width: 100%; }
  .summary-row { grid-template-columns: 1fr auto; }
  .summary-row dt { grid-column: 1 / -1; }
  .wizard { max-height: 92dvh; }
  .wizard-body { padding: 20px; }
  .wizard-foot { padding: 14px 20px; }
  .wizard-foot .btn { min-width: 0; flex: 1; }
  .option-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .page-hero-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 400px) {
  .topbar { font-size: 11.5px; }
  .hero-checks { gap: 6px 16px; font-size: 13px; }
}

/* --------------------------------------------------- Bewegungsreduktion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-media { position: absolute; top: 0; right: 0; }
}

/* ------------------------------------------------------------------ Druck */
@media print {
  .topbar, .site-header, .nav-mobile, .nav-scrim, .site-footer, .wizard-scrim, .hero-media { display: none !important; }
  body { color: #000; }
  .container { width: 100%; }
}

/* ------------------------------------------- Ergänzungen für Unterseiten */
.article h3 {
  margin: 26px 0 8px;
  font-size: 16px;
  letter-spacing: -.01em;
}
.article h3 + p { margin-top: 0; }

.sidebox-media { border-bottom: 1px solid var(--line); border-radius: var(--r-md) var(--r-md) 0 0; }
.sidebox-media img { width: 100%; height: 100%; object-fit: cover; }

/* ================================================================
   Layout-Varianten aus dem Admin-Bereich
   Inhalte, URLs und Anker bleiben identisch – nur Reihenfolge und
   Hero-Gewichtung ändern sich.
   ================================================================ */
.content-layer { display: flex; flex-direction: column; }
.trust-band { order: 1; }
#leistungen { order: 2; }
#warum { order: 3; }
#frag-mn { order: 4; }
#faq { order: 5; }
#ratgeber { order: 6; }
#regionen { order: 7; }
#kontakt { order: 8; }

body[data-layout="service-first"] #frag-mn { order: 3; }
body[data-layout="service-first"] #warum { order: 4; }

body[data-layout="assistant-first"] #frag-mn { order: 2; }
body[data-layout="assistant-first"] #leistungen { order: 3; }

body[data-layout="editorial"] #ratgeber { order: 2; }
body[data-layout="editorial"] #leistungen { order: 3; }
body[data-layout="editorial"] #frag-mn { order: 4; }
body[data-layout="editorial"] #warum { order: 5; }

/* Fahrzeug links, Text rechts */
body[data-layout="split-left"] .hero-media { right: auto; left: 0; }
body[data-layout="split-left"] .hero-media img { object-position: 56% 50%; }
body[data-layout="split-left"] .hero-media::after {
  background: linear-gradient(270deg,
    #fff 0%, rgba(255, 255, 255, .96) 6%, rgba(255, 255, 255, .55) 15%, rgba(255, 255, 255, 0) 30%);
}
body[data-layout="split-left"] .hero-copy { margin-left: auto; }

/* Zentrierter Hero mit ruhig zurückgenommenem Fahrzeug */
body[data-layout="centered"] .hero-media { width: 100%; max-width: none; }
body[data-layout="centered"] .hero-media img { object-position: 50% 50%; opacity: .28; }
body[data-layout="centered"] .hero-media::after { background: rgba(255, 255, 255, .42); }
body[data-layout="centered"] .hero-copy { width: min(720px, 100%); margin-inline: auto; text-align: center; }
body[data-layout="centered"] .hero-checks,
body[data-layout="centered"] .hero-actions { justify-content: center; }
body[data-layout="centered"] .hero-text { margin-inline: auto; }

@media (max-width: 760px) {
  body[data-layout="split-left"] .hero-media,
  body[data-layout="centered"] .hero-media { left: 0; right: 0; width: 100%; }
  body[data-layout="split-left"] .hero-media img,
  body[data-layout="centered"] .hero-media img { object-position: 50% 50%; opacity: 1; }
  body[data-layout="split-left"] .hero-media::after,
  body[data-layout="centered"] .hero-media::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .72) 58%, #fff 100%);
  }
  body[data-layout="centered"] .hero-copy { text-align: left; }
}

/* =========================================================================
   Warnleuchten-Check
   Vorgerendert und ohne JavaScript vollständig lesbar; JavaScript blendet
   jeweils nur die gewählte Leuchte ein.
   ========================================================================= */
.lamp-question { font-size: clamp(20px, 2vw, 26px); }
.lamp-hint { margin-top: 10px; max-width: 68ch; font-size: 14px; line-height: 1.65; color: var(--muted); }

.lamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  margin-top: 24px;
  list-style: none;
}
.lamp-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 116px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: center;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.lamp-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.lamp-tile.is-active { border-color: var(--blue); background: var(--blue-light); }
.lamp-tile-icon { display: grid; place-items: center; color: var(--ink); }
.lamp-tile[data-color="rot"] .lamp-tile-icon { color: var(--state-stop); }
.lamp-tile[data-color="gelb"] .lamp-tile-icon { color: #b57608; }
.lamp-tile-name { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.lamp-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; }
.lamp-dot[data-color="rot"] { background: var(--state-stop); }
.lamp-dot[data-color="gelb"] { background: #d99a12; }

.lamp-panel {
  display: none;
  margin-top: 26px;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h-compact) + 20px);
}
.lamp-panel.is-active { display: block; }
.lamp-check.has-selection .lamp-grid { display: none; }
.lamp-check.has-selection .lamp-question,
.lamp-check.has-selection .lamp-hint { display: none; }

.lamp-panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.lamp-panel-icon {
  display: grid; place-items: center;
  width: 62px; height: 62px; flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-alt);
}
.lamp-panel-icon[data-color="rot"] { color: var(--state-stop); }
.lamp-panel-icon[data-color="gelb"] { color: #b57608; }
.lamp-panel-head h2 { font-size: clamp(20px, 2vw, 26px); }
.lamp-color { margin-top: 6px; font-size: 13px; color: var(--muted); }
.lamp-level { margin-left: auto; }
.lamp-meaning { margin-top: 20px; max-width: 78ch; font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
fieldset.field.lamp-behaviour { margin-top: 24px; }
.lamp-note {
  margin-top: 10px; padding: 12px 14px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--blue-light);
  font-size: 13.5px; line-height: 1.6; color: var(--ink-soft);
}
.lamp-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 24px; }
.lamp-block h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lamp-block ul { margin-top: 10px; list-style: none; display: grid; gap: 9px; }
.lamp-block li { display: flex; gap: 10px; font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.lamp-block li::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--blue); }
.lamp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lamp-panel .result-note { margin-top: 18px; }

@media (max-width: 760px) {
  .lamp-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lamp-tile { min-height: 104px; padding: 14px 10px; }
  .lamp-columns { grid-template-columns: 1fr; }
  .lamp-level { margin-left: 0; }
  .lamp-actions .btn { width: 100%; }
}

/* ------------------------------------------------- HU/AU-Selbstprüfung */
.readiness {
  margin: clamp(32px, 3.5vw, 48px) 0 0;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-alt);
}
.readiness > h2 { margin: 0; font-size: clamp(19px, 1.8vw, 24px); }
.readiness-intro { margin-top: 12px; max-width: 74ch; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.readiness-groups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 24px; }
.readiness-group h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.readiness-group ul { margin-top: 10px; list-style: none; display: grid; gap: 4px; }
/* Innerhalb der Artikelspalte darf der Aufzählungspunkt nicht zusätzlich
   neben der Checkbox erscheinen. */
.article .readiness-group li::before, .readiness-group li::before { content: none; }
.article .readiness-group li, .readiness-group li { display: block; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color .15s ease;
}
.check:hover { background: #fff; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  display: grid; place-items: center;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: #fff;
  color: transparent;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.check input:checked + .check-box { border-color: var(--blue); background: var(--blue); color: #fff; }
.check input:focus-visible + .check-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.check-text { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.check input:checked ~ .check-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }

.readiness-bar { --progress: 0%; height: 4px; margin-top: 26px; border-radius: 2px; background: var(--line); overflow: hidden; }
.readiness-bar::before { content: ""; display: block; width: var(--progress); height: 100%; background: var(--blue); transition: width .25s ease; }
.readiness-count { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.readiness-result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.readiness-result h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--state-soon); }
.readiness-result[data-state="ready"] h3 { color: var(--state-plan); }
.readiness-openlist { margin-top: 12px; list-style: none; display: grid; gap: 8px; }
.readiness-openlist:empty::after { content: "Alle Punkte dieser Liste sind abgehakt."; font-size: 14px; color: var(--ink-soft); }
.readiness-openlist li { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.readiness-openlist li::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--state-soon); }

@media (max-width: 760px) {
  .readiness-groups { grid-template-columns: 1fr; }
}

/* ---------------------------------------------- Frag MN Schnelleinstieg */
.assist-quick { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.assist-quick-title { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chip-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip-button:hover { border-color: var(--blue); color: var(--blue-strong); }
.chip-button.is-used { border-color: var(--blue); background: var(--blue-light); color: var(--blue-strong); font-weight: 600; }
.assist-crosslink { margin-top: 22px; font-size: 13px; color: #c3d5e6; }
.assist-crosslink a { color: #8cc2ff; text-decoration: underline; text-underline-offset: 3px; }
.assist-crosslink a:hover { color: #fff; }
