/* ============================================================
   24MOBILITY – Stylesheet
   ------------------------------------------------------------
   WHITE-LABEL: Dieses Projekt ist als Basis für weitere
   Auto-Abo-Anbieter gedacht. Anpassen in 3 Schritten:
     1. Farben & Radius: die Custom Properties direkt hier unten
     2. Logo: assets/logo.png austauschen
     3. Inhalte: das SITE- und CARS-Objekt in assets/js/main.js
   ============================================================ */
:root {
  /* THEME – für andere Anbieter nur diese Werte tauschen */
  --brand: #f8951d; /* Akzentfarbe (Logo-Orange) */
  --brand-strong: #e07f00; /* Hover/aktive Akzentfläche */
  --on-brand: #131417; /* Text auf Akzentflächen */
  --night: #101114; /* dunkle Flächen (Hero, Footer) */
  --night-soft: #191b1f; /* Karten auf dunklem Grund */
  --ink: #17181b; /* Fließtext auf hellem Grund */
  --ink-soft: #4c4a45; /* Sekundärtext auf hellem Grund */
  --paper: #ffffff; /* heller Grund */
  --paper-soft: #f4f2ee; /* Panels, Bildflächen */
  --line: #e4e1da; /* Hairlines hell */
  --line-dark: #2b2d33; /* Hairlines dunkel */
  --on-night: #f7f6f3; /* Überschriften auf dunkel */
  --on-night-soft: #c9c6be; /* Sekundärtext auf dunkel */
  --radius: 12px;
  --shadow: 0 10px 30px -12px rgba(23, 24, 27, 0.22);
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", var(--font-body);
  --wrap: 1180px;
}
/* Schriften – selbst gehostet aus assets/fonts/ */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400.woff2")
    format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-600.woff2")
    format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2")
    format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700-italic.woff2")
    format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* Sprungziele nicht unter die sticky Kopfzeile (72px) schieben */
  scroll-padding-top: 88px;
}
@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;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.04;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: 0.005em;
}
h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.15;
}
p {
  margin: 0 0 1em;
  max-width: 68ch;
}
a {
  color: inherit;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  cursor: pointer;
}
strong {
  font-weight: 600;
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.dark .lede {
  color: var(--on-night-soft);
}

/* Skip-Link */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 200;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  /* Mittig unter der Oberkante: beide unteren Ecken gerundet */
  border-radius: 0 0 var(--radius) var(--radius);
  /* Liegt zentriert über dem Bildschirmrand und rutscht bei Fokus herein.
     Bleibt dabei fokussierbar und für Screenreader lesbar. */
  transform: translate(-50%, -100%);
}
.skip-link:focus {
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}
.dark :focus-visible,
.site-head :focus-visible {
  outline-color: var(--brand);
}

/* ---------- Buttons: leichte Schräge als Echo der Logo-Kursive ---------- */
.btn {
  display: inline-block;
  border: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  transform: skewX(-7deg);
  border-radius: 6px;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.btn > span {
  display: inline-block;
  transform: skewX(7deg);
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 6px 16px -10px rgba(16, 17, 20, 0.5);
}
.btn-primary:hover {
  background: var(--brand-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--on-night);
  box-shadow: inset 0 0 0 2px var(--line-dark);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 2px var(--brand);
  color: var(--brand);
}
.btn-quiet {
  background: var(--night);
  color: var(--on-night);
}
.btn-quiet:hover {
  background: #000;
}
.btn:active {
  transform: skewX(-7deg) translateY(1px);
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--night);
  border-bottom: 1px solid var(--line-dark);
}
.site-head .bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-link img {
  height: 44px;
  width: auto;
  /* assets/logo.png bringt einen schwarzen Hintergrund mit. "screen" lässt ihn
     auf den dunklen Flächen verschwinden, ohne die Datei zu bearbeiten. */
  mix-blend-mode: screen;
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  color: var(--on-night-soft);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 6px;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}
.site-nav a:hover {
  color: var(--on-night);
}
.site-nav a[aria-current="page"] {
  color: var(--brand);
}
.head-cta {
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid var(--line-dark);
  border-radius: 8px;
  width: 46px;
  height: 42px;
  position: relative;
  color: var(--on-night);
}
.nav-toggle .lines,
.nav-toggle .lines::before,
.nav-toggle .lines::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav-toggle .lines {
  top: 50%;
  margin-top: -1px;
}
.nav-toggle .lines::before {
  top: -7px;
  left: 0;
  right: 0;
}
.nav-toggle .lines::after {
  top: 7px;
  left: 0;
  right: 0;
}
.nav-toggle[aria-expanded="true"] .lines {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .lines::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .lines::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Umschaltpunkt zur Klappnavigation. Die Kopfzeile braucht mit sechs
   Menuepunkten, Anmelde-Knopf und CTA rund 1075px; darunter wird sie
   zum Burger-Menue. Beim Aendern der Menuepunkte hier mitziehen. */
@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }
  .head-cta {
    display: none;
  }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--night);
    border-bottom: 1px solid var(--line-dark);
    display: none;
    padding: 0.5rem 1rem 1rem;
  }
  .site-head.open .site-nav {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav a {
    padding: 0.8rem 0.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line-dark);
  }
}

/* ---------- Anmelde-Zugang: sekundärer Geist-Button im Header.
   Auf dem Desktop ein umrandeter Button, klar unter dem orangenen
   Primär-CTA; auf Mobil ein normaler Eintrag im aufklappbaren Menü. */
.nav-login a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-login .ic {
  width: 18px;
  height: 18px;
}
@media (min-width: 1101px) {
  .site-nav .nav-login {
    margin-left: 0.4rem;
  }
  .site-nav .nav-login a {
    color: var(--on-night);
    box-shadow: inset 0 0 0 2px var(--line-dark);
    padding: 0.5rem 1rem;
    /* gleiche Schräge wie die übrigen Buttons; Inhalt wird gegengeneigt */
    transform: skewX(-7deg);
  }
  .site-nav .nav-login a > * {
    transform: skewX(7deg);
  }
  .site-nav .nav-login a:hover {
    color: var(--brand);
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--brand);
  }
}

.page h1[tabindex="-1"] {
  outline: none;
}

/* ---------- Sektionen ---------- */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section-tight {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.dark {
  background: var(--night);
  color: var(--on-night-soft);
}
.dark h1,
.dark h2,
.dark h3 {
  color: var(--on-night);
}
.soft {
  background: var(--paper-soft);
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.section-head p {
  color: var(--ink-soft);
}
.dark .section-head p {
  color: var(--on-night-soft);
}
.accent-i {
  font-style: italic;
  color: var(--brand);
}

/* ---------- Seitenkopf: Fahrbahn-Motiv als Signatur ---------- */
.page-head {
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 3px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    var(--line-dark) 0 56px,
    transparent 56px 96px
  );
  opacity: 0.55;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
/* Stimmungsbild im Hero. Liegt unter .hero::after (Fahrbahn-Linie) und
   unter .hero .wrap, der Verlauf haelt Schlagzeile und Widget lesbar. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Das Auto sitzt in der rechten Bildhaelfte – hierhin ausrichten, damit
     es beim Beschnitt nicht aus dem Bild laeuft. */
  object-position: 44% 62%;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      var(--night) 0%,
      rgba(16, 17, 20, 0.93) 30%,
      rgba(16, 17, 20, 0.55) 56%,
      rgba(16, 17, 20, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(16, 17, 20, 0.5) 0%,
      rgba(16, 17, 20, 0) 42%,
      rgba(16, 17, 20, 0.95) 100%
    );
}
@media (max-width: 960px) {
  /* Ohne zweite Spalte steht der Text ueber dem ganzen Bild – hier darf
     das Foto deutlich weiter zuruecktreten. */
  .hero-photo::after {
    background: linear-gradient(
      180deg,
      rgba(16, 17, 20, 0.82) 0%,
      rgba(16, 17, 20, 0.88) 55%,
      var(--night) 100%
    );
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(5rem, 9vw, 7.5rem);
}
.hero h1 {
  color: var(--on-night);
  margin-bottom: 0.35em;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand);
}
.hero .sub {
  font-size: 1.2rem;
  max-width: 34rem;
}
.hero-points {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.65rem;
}
.hero-points li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  font-weight: 600;
  color: var(--on-night);
}
.hero-points .ic {
  flex-shrink: 0;
  color: var(--brand);
  transform: translateY(2px);
}

/* Kilometer-Tresor-Teaser im Hero */
.tresor-teaser {
  margin-top: 1.5rem;
  max-width: 34rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  align-items: center;
  background: var(--night-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.tresor-teaser:hover,
.tresor-teaser:focus-visible {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.tt-odo {
  display: flex;
  gap: 0.22rem;
  align-items: flex-end;
  flex-shrink: 0;
}
.tt-digit {
  background: var(--night);
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--on-night);
  padding: 0.3em 0.14em 0.24em;
  min-width: 1.1em;
  text-align: center;
}
.tt-digit.lit {
  color: var(--brand);
}
.tt-unit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--on-night-soft);
  padding-bottom: 0.15rem;
  margin-left: 0.2rem;
}
.tt-copy {
  flex: 1;
  min-width: 14rem;
}
.tt-copy strong {
  display: block;
  color: var(--on-night);
  line-height: 1.4;
  font-size: 0.98rem;
}
.tt-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}
.tresor-teaser:hover .tt-link,
.tresor-teaser:focus-visible .tt-link {
  text-decoration: underline;
}

/* Buchungs-Widget (externes kms-Suchwidget) */
.widget {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}
.widget kms-search-widget {
  display: block;
  /* Bewusst ohne min-height: die Höhe reserviert .widget-slot. Nur so ist die
     Höhe dieses Elements ein verlässliches Signal dafür, ob das Widget
     wirklich etwas gerendert hat (siehe assets/js/main.js). */
  /* Vererbte Schrift + Theme-Variablen reichen in den Shadow DOM hinein */
  font-family: var(--font-body);
  --kms-primary: var(--brand);
  --kms-secondary: var(--brand-strong);
}
#hero-widget {
  padding: clamp(0.7rem, 1.5vw, 1rem);
  padding-top: 2rem;
  padding-bottom: 2rem;
}
#hero-widget h2,
#hero-widget .hint {
  padding: 0 20px;
}
#hero-widget .hint {
  margin-bottom: 0.4rem;
}
.widget h2 {
  font-size: 1.6rem;
  margin-bottom: 0.2em;
  color: var(--ink);
}
.widget .hint {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
/* ---------- Platz des externen Widgets ----------
   Hält die Kartenhöhe konstant – ob das Widget lädt, rendert oder ausfällt.
   Der Hinweis liegt deckungsgleich darüber und wird darin zentriert. */
.widget-slot {
  position: relative;
  min-height: 350px;
}

/* ---------- Hinweis bei Ausfall der Widget-API ----------
   Standardmäßig unsichtbar: beim normalen Laden soll nichts aufblitzen.
   assets/js/main.js setzt .widget-failed erst, wenn ein Aufruf der
   Widget-API fehlschlägt UND nichts gerendert wurde. */
.widget-note {
  display: none;
}
.widget-failed .widget-note {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
}
.widget-note-icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  color: var(--brand);
  /* --brand mit 12 % Deckung als ruhige Fläche hinter dem Icon */
  background: rgba(248, 149, 29, 0.12);
}
.widget-note p {
  margin: 0;
  max-width: 20rem;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.widget .fields {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.field select,
.field input,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.8rem;
  font: inherit;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.field select {
  cursor: pointer;
}
.field select:hover,
.field input:hover,
.field textarea:hover {
  border-color: #c9c4ba;
}
.widget .btn {
  width: 100%;
  text-align: center;
}
.widget-footnote {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Inklusiv-Leiste ---------- */
.includes {
  position: relative;
  background: var(--night-soft);
}
.includes::before {
  /* Fahrbahn-Linie als stilles Markenmotiv, zugleich Trenner zum Hero.
     Der Abstand nach unten ist das padding-block der Leiste. */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    var(--line-dark) 0 56px,
    transparent 56px 96px
  );
  opacity: 0.55;
}
.includes .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  padding-block: 1.05rem;
  align-items: center;
}
.includes li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--on-night);
  font-weight: 600;
  font-size: 0.97rem;
}
.includes .ic {
  color: var(--brand);
}
.includes .fuel {
  color: var(--on-night-soft);
  font-weight: 400;
}

/* ---------- Schritte ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  padding-top: 1.9rem;
  border-top: 3px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1.35rem;
  left: 0;
  background: var(--paper);
  padding-right: 0.6rem;
  line-height: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--brand);
}
.step h3 {
  margin-bottom: 0.3em;
}
.step p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0;
}
.steps-cta {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  gap: 1rem 1.6rem;
  flex-wrap: wrap;
}
.steps-cta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 32rem;
}

/* ---------- Kilometer-Tresor ---------- */
.tresor .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.odometer {
  background: var(--night-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.odo-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}
.odo-digit {
  background: var(--night);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1;
  color: var(--on-night);
  padding: 0.35em 0.18em 0.28em;
  min-width: 1.15em;
  text-align: center;
}
.odo-digit.lit {
  color: var(--brand);
}
.odo-unit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--on-night-soft);
  align-self: flex-end;
  padding-bottom: 0.5rem;
}
.odo-label {
  color: var(--on-night-soft);
  font-size: 0.98rem;
  margin: 0 0 1.4rem;
}
.ledger {
  border-top: 1px solid var(--line-dark);
  font-size: 0.99rem;
}
.ledger li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.ledger .pos {
  color: var(--brand);
  font-weight: 600;
}
.ledger .sum {
  color: var(--on-night);
  font-weight: 600;
}
.tresor-points {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.tresor-points li {
  display: flex;
  gap: 0.9rem;
}
.tresor-points .ic {
  flex-shrink: 0;
  color: var(--brand);
  transform: translateY(3px);
}
.tresor-points strong {
  color: var(--on-night);
}

/* ---------- Kilometer-Rechner ---------- */
.km-tool {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow);
}
.km-tool .readout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.4rem;
  margin-bottom: 1.4rem;
}
.km-tool .km-val {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
}
.km-tool .km-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.km-tool input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
  height: 2.2rem;
}
.km-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}
.km-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 1.1rem 0 0;
}

/* ---------- Leistungs-Listen ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.check-list {
  display: grid;
  gap: 0.85rem;
}
.check-list li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.check-list .ic {
  flex-shrink: 0;
  color: var(--brand);
  transform: translateY(3px);
}
.check-list strong {
  display: block;
}
.check-list .note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.dark .check-list .note {
  color: var(--on-night-soft);
}

.price-table {
  border-top: 2px solid var(--night);
  width: 100%;
}
.price-table li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.price-table .val {
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Leistungsvergleich Abo gegen Leasing (Auto-Abo) ---------- */
/* Bewusst anders gebaut als die Tabelle auf der Gehaltsumwandlung: Dort
   liegt die bevorzugte Spalte auf einer hellen Markenflaeche, hier steht
   sie als dunkle Tafel vor dem hellen Abschnitt. */
.duell-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
}
.duell-scroll:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.duell {
  width: 100%;
  min-width: 46rem;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}
.duell th,
.duell td {
  padding: 0.85rem 1.15rem;
  vertical-align: top;
}
.duell thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--ink-soft);
  padding-bottom: 0.7rem;
}
.duell tbody th {
  width: 24%;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.duell tbody td {
  color: var(--ink-soft);
  font-size: 0.97rem;
  border-bottom: 1px solid var(--line);
}
/* Haken und Kreuz sitzen inline vor dem Text, damit die Tabellenzellen
   Tabellenzellen bleiben und die Spalten sauber ausgerichtet sind. */
.duell .mk {
  display: inline-block;
  vertical-align: -0.28em;
  margin-right: 0.45rem;
}
.duell .mk.ja {
  color: var(--brand);
}
.duell .mk.no {
  color: #9a968d;
}
/* Die Abo-Spalte als dunkle Tafel, die vor dem hellen Abschnitt steht. */
.duell .is-abo {
  background: var(--night);
  color: var(--on-night-soft);
  border-bottom-color: var(--line-dark);
}
.duell thead .is-abo {
  color: var(--on-night);
  border-radius: var(--radius) var(--radius) 0 0;
  padding-top: 1.1rem;
}
.duell tbody tr:last-child .is-abo {
  border-bottom: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding-bottom: 1.1rem;
}
/* Nur auf schmalen Viewports: dort liegt die Abo-Spalte anfangs rechts
   ausserhalb des sichtbaren Bereichs. */
.duell-wisch {
  display: none;
}
@media (max-width: 800px) {
  .duell-wisch {
    display: block;
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
  }
}

/* ---------- Vergleichstabelle (Gehaltsumwandlung) ---------- */
/* Schmale Viewports scrollen die Tabelle waagerecht. Der Bereich ist
   fokussierbar, damit man auch per Tastatur hineinscrollen kann. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.vergleich {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  text-align: left;
}
.vergleich th,
.vergleich td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.vergleich thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  border-bottom: 2px solid var(--night);
  color: var(--ink);
}
.vergleich tbody th {
  font-weight: 400;
  color: var(--ink-soft);
  width: 32%;
}
.vergleich td {
  font-weight: 600;
}
/* Die empfohlene Spalte liegt auf einer ruhigen Markenfläche, damit der
   Vergleich ohne zusätzliche Auszeichnung lesbar bleibt. */
.vergleich .is-pref {
  background: rgba(248, 149, 29, 0.07);
}
.vergleich thead .is-pref {
  border-bottom-color: var(--brand);
}
.vergleich tbody tr:last-child th,
.vergleich tbody tr:last-child td {
  border-bottom: 0;
}
.rechnung-summe {
  margin: 1.6rem 0 0;
  font-size: 1.15rem;
  max-width: 46rem;
}
.rechnung-summe strong {
  color: var(--brand-strong);
}
/* Kleingedrucktes zur Beispielrechnung und rechtlicher Hinweis. */
.annahmen,
.hinweis {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 52rem;
}
.annahmen {
  margin: 1.1rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.hinweis {
  margin: 0;
}
.price-table .muted {
  color: var(--ink-soft);
  font-weight: 400;
}
.tag-inkl {
  display: inline-block;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.14rem 0.55rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  transform: skewX(-7deg);
}
.tag-inkl > span {
  display: inline-block;
  transform: skewX(7deg);
}

/* Schutzbausteine */
.bausteine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.baustein {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  background: var(--paper);
}
.baustein h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25em;
}
.baustein .ic {
  color: var(--brand);
}
.baustein p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}
.baustein .ab {
  font-weight: 600;
}
/* Auf dunklem Grund: Karten als ruhige Flaeche, damit sie sich vom
   Hintergrundbild abheben. */
.dark .baustein {
  border-color: var(--line-dark);
  background: rgba(25, 27, 31, 0.82);
  backdrop-filter: blur(2px);
}
.dark .baustein p {
  color: var(--on-night-soft);
}
.dark .baustein .ab {
  color: var(--on-night);
}

/* ---------- Car-Bonus ---------- */
/* Car-Bonus vorerst ausgeblendet. Das Markup bleibt absichtlich im
   Dokument, damit der Abschnitt ohne Wiederaufbau zurueckkommen kann.
   Sein Stadtbild steht jetzt hinter dem Kilometer-Tresor. */
.carbonus {
  display: none;
}

/* Sektionen, die ein Foto als Hintergrund tragen. */
.photo-section {
  position: relative;
  overflow: hidden;
}
/* Diese Sektionen behalten ihre inhaltsbedingte Hoehe. Das Foto wird
   mittig ausgerichtet, oben und unten also gleichmaessig beschnitten. */
.philosophie .section-photo img,
.schutz .section-photo img,
.elektro .section-photo img {
  object-position: 50% 50%;
}
.section-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.section-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tresor .section-photo img {
  object-position: 62% 55%;
}
.section-photo::after {
  /* Kraeftiger Verlauf von links: die Ueberschrift steht auf fast
     voller Flaeche, rechts bleibt die Stadt als Textur erkennbar. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--night) 0%,
      rgba(16, 17, 20, 0.9) 28%,
      rgba(16, 17, 20, 0.66) 62%,
      rgba(16, 17, 20, 0.52) 100%
    ),
    linear-gradient(
      180deg,
      rgba(16, 17, 20, 0.55) 0%,
      rgba(16, 17, 20, 0.2) 45%,
      rgba(16, 17, 20, 0.65) 100%
    );
}
@media (max-width: 960px) {
  /* Einspaltig steht der Text ueber der ganzen Flaeche. */
  .section-photo::after {
    background: linear-gradient(
      180deg,
      rgba(16, 17, 20, 0.88) 0%,
      rgba(16, 17, 20, 0.82) 60%,
      rgba(16, 17, 20, 0.92) 100%
    );
  }
}
.photo-section .wrap {
  position: relative;
  z-index: 1;
}
.dark .check-list strong {
  color: var(--on-night);
}

/* ---------- Über uns ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.value {
  border-top: 3px solid var(--brand);
  padding-top: 1.1rem;
}
.value h3 {
  font-size: 1.6rem;
}
.value p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0;
}
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--on-night);
  border-top: 3px solid var(--brand);
  padding-top: clamp(1.2rem, 2.5vw, 1.8rem);
  margin: 0;
  max-width: 22ch;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  color: var(--on-night-soft);
  margin-top: 1rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 50rem;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 2px solid var(--night);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  text-align: left;
  padding: 1.05rem 0.2rem;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
}
.faq-q:hover {
  color: #000;
}
.faq-q .ind {
  flex-shrink: 0;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"] .ind {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 0.2rem 1.3rem;
  color: var(--ink-soft);
}
.faq-a p {
  margin: 0;
  max-width: 60ch;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-ways {
  display: grid;
  gap: 1rem;
}
.contact-way {
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.contact-way:hover {
  border-color: var(--night);
  transform: translateY(-2px);
}
.contact-way .ic {
  color: var(--brand);
  flex-shrink: 0;
}
.contact-way strong {
  display: block;
}
.contact-way span {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.contact-form .form-note {
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.contact-form .fields {
  display: grid;
  gap: 1.05rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.2rem;
}
.contact-form .field-full {
  grid-column: 1/-1;
}
.field .err {
  display: none;
  color: #b4231a;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.3rem;
}
.field.invalid .err {
  display: block;
}
.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: #b4231a;
}
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.consent input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand);
  flex-shrink: 0;
  transform: translateY(2px);
}
.form-ok {
  display: none;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
  font-weight: 600;
}
.form-ok.show {
  display: block;
}
.form-err {
  display: none;
  background: #fdeeec;
  border: 1px solid #eec3be;
  color: #8c1b13;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
  font-weight: 600;
}
.form-err.show {
  display: block;
}
/* Während des Sendens: Button sichtbar inaktiv */
.btn[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
}
/* Spam-Falle: aus dem Blickfeld, aber für Bots im DOM */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Abschluss-CTA ---------- */
.cta-band .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.cta-band h2 {
  margin-bottom: 0.2em;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}
.cta-band h2 em {
  font-style: italic;
  color: var(--brand-strong);
}
.cta-band .btn {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}
.cta-band .actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--night);
  color: var(--on-night-soft);
  border-top: 1px solid var(--line-dark);
}
.site-foot .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem 2rem;
}
.site-foot img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  mix-blend-mode: screen;
}
.site-foot h3 {
  font-size: 1.05rem;
  color: var(--on-night);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-foot ul {
  display: grid;
  gap: 0.45rem;
}
.site-foot a {
  color: var(--on-night-soft);
  text-decoration: none;
}
.site-foot a:hover {
  color: var(--brand);
}
.site-foot .blurb {
  font-size: 0.95rem;
  max-width: 30ch;
}
/* Kontaktdaten in der Markenspalte: heller und schwerer als die Link-Listen,
   damit Nummer und Adresse als Kontaktangabe lesbar sind und nicht als Menü.
   Steht nach ".site-foot a", sonst gewinnt bei gleicher Spezifität die
   frühere Regel und die Farbe bliebe gedämpft. */
.foot-contact {
  margin-top: 1.2rem;
  gap: 0.6rem;
}
.foot-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--on-night);
  font-weight: 600;
  /* Die E-Mail-Adresse ist ein Wort: in der einspaltigen Ansicht darf sie
     umbrechen, statt die Spalte zu sprengen. */
  overflow-wrap: anywhere;
}
.foot-contact .ic {
  flex-shrink: 0;
  color: var(--brand);
}
/* Profil-Knöpfe: ruhige Umriss-Kacheln, damit sie neben den Kontaktdaten
   nicht um Aufmerksamkeit konkurrieren. Der Selektor trägt ".site-foot", weil
   ".site-foot ul" ein Raster setzt und sonst gewinnen würde. */
.site-foot .foot-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.3rem;
}
.foot-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--on-night-soft);
  transition: color 0.15s, border-color 0.15s;
}
.foot-social a:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.foot-social a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.site-foot .legal {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.2rem;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

/* ---------- Live-Ratenrechner ---------- */
.rt-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.rt-controls {
  display: grid;
  gap: 1.05rem;
}
.rt-summary {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.rt-summary h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6em;
}
.rate-ledger {
  border-top: 2px solid var(--night);
}
.rate-ledger li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.rate-ledger li span:last-child {
  font-weight: 600;
  white-space: nowrap;
}
.rate-ledger .total span:last-child {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.9rem;
}
.rt-once {
  font-weight: 600;
  margin: 1rem 0 0.3rem;
}
.rt-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Responsiv ---------- */
/* ---------- Schwebender WhatsApp-Knopf ----------
   Liegt unter der Kopfzeile (z-index 100) und unter dem Skip-Link (200):
   ein geöffnetes Mobilmenü und der Tastatur-Einstieg behalten Vorrang.
   Wann er sichtbar wird, steuert assets/js/main.js — erst wenn der
   Kopfabschnitt durchgescrollt ist, und wieder weg, sobald ein Abschnitt
   mit denselben Kontaktwegen im Bild ist. */
.wa-fab {
  position: fixed;
  z-index: 90;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: calc(clamp(1rem, 3vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border-radius: 6px;
  /* Dieselbe Schräge wie .btn: der Knopf gehört zur Familie, er schwebt nur. */
  transform: skewX(-7deg) translateY(14px);
  box-shadow:
    0 14px 30px -12px rgba(16, 17, 20, 0.55),
    0 3px 8px -4px rgba(16, 17, 20, 0.35);
  opacity: 0;
  /* visibility, nicht nur opacity: sonst bliebe der unsichtbare Knopf
     mit der Tabulatortaste erreichbar. */
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.42s,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}
/* Inhalt gegenschrägen, damit Schrift und Marke gerade stehen. */
.wa-fab > * {
  transform: skewX(7deg);
}
.wa-fab .ic {
  flex-shrink: 0;
}
.wa-fab.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: skewX(-7deg) translateY(0);
  transition-delay: 0s;
}
.wa-fab.is-visible:hover {
  background: var(--brand-strong);
  transform: skewX(-7deg) translateY(-2px);
  box-shadow:
    0 18px 38px -12px rgba(16, 17, 20, 0.6),
    0 4px 10px -4px rgba(16, 17, 20, 0.4);
}
.wa-fab.is-visible:active {
  transform: skewX(-7deg) translateY(1px);
}
/* Der globale Fokusring ist orange und ginge auf der orangen Fläche unter.
   Ein einzelner dunkler Ring reicht aber nicht: Der Knopf schwebt über hellen
   und über dunklen Abschnitten. Deshalb dunkler Ring plus heller Hof – auf
   jedem Untergrund trägt mindestens einer der beiden. Der Hover-Zustand setzt
   den Schatten ebenfalls und ist spezifischer – deshalb beide Selektoren. */
.wa-fab:focus-visible,
.wa-fab.is-visible:hover:focus-visible {
  outline-color: var(--night);
  box-shadow:
    0 0 0 8px var(--paper-soft),
    0 14px 30px -12px rgba(16, 17, 20, 0.55),
    0 3px 8px -4px rgba(16, 17, 20, 0.35);
}

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-bottom: 4rem;
  }
  .tresor .wrap,
  .two-col,
  .contact-grid,
  .cta-band .wrap,
  .rt-grid {
    grid-template-columns: 1fr;
  }
  .cta-band .actions {
    justify-content: flex-start;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem 1.5rem;
  }

  .bausteine {
    grid-template-columns: 1fr 1fr;
  }
  .site-foot .top {
    grid-template-columns: 1fr 1fr;
  }
  .values {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  /* Nur noch die Marke – die Beschriftung bleibt im Baum, damit
     Screenreader und Sprachsteuerung den Knopf weiter benennen können. */
  .wa-fab {
    padding: 0.9rem 1rem;
    gap: 0;
  }
  /* Größer als auf dem Desktop: die Marke trägt hier die ganze Fläche. */
  .wa-fab .ic {
    width: 28px;
    height: 28px;
  }
  .wa-fab .wa-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .bausteine {
    grid-template-columns: 1fr;
  }
  .contact-form .fields {
    grid-template-columns: 1fr;
  }
  .site-foot .top {
    grid-template-columns: 1fr;
  }
}
    

/* ---------- Rechtstexte: Fließtext mit Zwischenebenen ---------- */
.legal-text > section + section {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.legal-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.legal-text h3 {
  margin-top: 2.2rem;
}
.legal-text h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.15;
  margin: 1.7rem 0 0.4rem;
}
.legal-text ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin: 0 0 1em;
  max-width: 68ch;
}
.legal-text ol {
  list-style: decimal;
  padding-left: 1.4rem;
  margin: 0 0 1em;
}
.legal-text li {
  margin-bottom: 0.35rem;
}
.legal-text a[href] {
  text-decoration: underline;
  text-underline-offset: 2px;
}
