/* Marko Fahrzeugüberführung
   Leitidee: die rote Linie von Abholung bis Ankunft.
   Aufbau: Schrift, Tokens, Grundlagen, Bausteine, Abschnitte, Anfrage, Fuß. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;

  --nacht: #0B0B0D;
  --anthrazit: #171719;
  --graphit: #232327;
  --feld: #0E0E10;
  --papier: #F5F4F1;
  --papier-leise: #B9B7B2;
  --papier-fern: #94928E;
  --weiss: #FFFFFF;
  --rot: #E3262E;
  --rot-tief: #C41C24;
  --rot-fern: rgba(227, 38, 46, .36);
  --kante: rgba(245, 244, 241, .13);
  --kante-feld: #7A7A82;

  --schrift: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --breit: 125%;
  --halbbreit: 112%;

  --t-h2: clamp(1.5rem, 1rem + 2.4vw, 2.875rem);
  --t-titel: clamp(1.25rem, 1.05rem + .9vw, 1.75rem);
  --t-h3: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
  --t-text: clamp(1.0625rem, 1rem + .22vw, 1.125rem);
  --t-vorspann: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem);
  --t-klein: .9375rem;
  --t-mini: .8125rem;

  --rand: max(clamp(1rem, 4.4vw, 2.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --rahmen: 75rem;
  --einzug: clamp(1.25rem, 5.4vw, 4.5rem);
  --polster: clamp(4rem, 7.5vw, 5.75rem);
  --hero-fuss: clamp(2.5rem, 6vh, 4rem);
  --kopf-hoehe: 3.75rem;

  --radius: 4px;
  --radius-flaeche: 6px;
  --linie: 2px;
  --knoten: .875rem;

  --fokus-farbe: var(--papier);
  --fokus-breite: 2px;
  --fokus-abstand: 3px;

  --kurz: 160ms;
  --weich: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 21.25rem) {
  :root {
    --t-h2: 1.375rem;
  }
}

@media (min-width: 62rem) {
  :root {
    --kopf-hoehe: 4.5rem;
  }
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--kopf-hoehe) + 1.25rem);
  background: var(--nacht);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--nacht) url("../assets/textur/korn.png");
  color: var(--papier);
  font: 400 var(--t-text) / 1.55 var(--schrift);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.menue-offen {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--rot);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  transition: text-decoration-color var(--kurz);
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: var(--fokus-breite) solid var(--fokus-farbe);
  outline-offset: var(--fokus-abstand);
}

::selection {
  background: var(--rot);
  color: var(--weiss);
}

h1,
h2 {
  font-stretch: var(--breit);
  font-weight: 620;
  letter-spacing: -.012em;
  text-wrap: balance;
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
}

h3 {
  font-size: var(--t-h3);
  font-stretch: var(--halbbreit);
  font-weight: 620;
  line-height: 1.25;
}

.zeile {
  display: block;
}

.zusammen {
  white-space: nowrap;
}

.sprite {
  position: absolute;
}

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprung {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  background: var(--papier);
  color: var(--nacht);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.sprung:focus-visible {
  transform: none;
  outline-color: var(--rot);
}

.rahmen {
  width: min(100% - 2 * var(--rand), var(--rahmen));
  margin-inline: auto;
}

/* ---------- Vorschauhinweis ---------- */

.vorschau {
  padding: .5rem var(--rand);
  border-bottom: 1px solid var(--kante);
  background: var(--anthrazit);
  color: var(--papier-leise);
  font-size: var(--t-mini);
  line-height: 1.4;
  text-align: center;
}

/* ---------- Knöpfe und Links ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-stretch: var(--halbbreit);
  font-weight: 620;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--kurz), border-color var(--kurz), color var(--kurz);
}

.knopf--rot {
  background: var(--rot);
  color: var(--weiss);
}

.knopf--rot:hover {
  background: var(--rot-tief);
}

.knopf--linie {
  border-color: var(--kante-feld);
  background: transparent;
  color: var(--papier);
}

.knopf--linie:hover {
  border-color: var(--papier);
}

.knopf--voll {
  width: 100%;
}

.knopf[aria-disabled="true"],
.knopf:disabled {
  cursor: progress;
  opacity: .7;
}

.textlink {
  font-weight: 500;
}

.textknopf {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--papier);
  font-size: var(--t-klein);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--rot);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}

.textknopf:hover {
  text-decoration-color: currentColor;
}

.textknopf svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- Kopf ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--kopf-hoehe);
  margin-bottom: calc(-1 * var(--kopf-hoehe));
  border-bottom: 1px solid transparent;
  transition: background-color 240ms, border-color 240ms;
}

.kopf--fest,
.menue-offen .kopf {
  border-bottom-color: var(--kante);
  background: rgba(11, 11, 13, .95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.kopf__innen {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  height: 100%;
}

.kopf__marke {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  margin-right: auto;
  color: var(--papier);
  text-decoration: none;
}

.wortmarke {
  width: auto;
  height: 1.125rem;
  color: var(--papier);
}

.kopf__nav,
.kopf__aktion {
  display: none;
}

.kopf__nav ul {
  display: flex;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
}

.kopf__nav a {
  position: relative;
  display: block;
  padding-block: .75rem;
  font-size: var(--t-klein);
  font-weight: 500;
  text-decoration: none;
}

.kopf__nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 .45rem;
  height: var(--linie);
  background: var(--rot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--weich);
}

.kopf__nav a:hover::after,
.kopf__nav a:focus-visible::after {
  transform: scaleX(1);
}

.kopf__aktion {
  min-height: 2.75rem;
  padding: .5rem 1.125rem;
  font-size: var(--t-klein);
}

.kopf__aktion--immer {
  display: inline-flex;
}

.kopf__schalter {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  margin-right: -.25rem;
  padding: 0 .25rem;
  border: 0;
  background: none;
  color: var(--papier);
  font-size: var(--t-klein);
  font-weight: 600;
}

.kopf__schalter-zeichen {
  position: relative;
  width: 1.5rem;
  height: .75rem;
}

.kopf__schalter-zeichen span {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--linie);
  background: currentColor;
  transition: transform 220ms var(--weich), background-color var(--kurz);
}

.kopf__schalter-zeichen span:first-child {
  top: 0;
}

.kopf__schalter-zeichen span:last-child {
  bottom: 0;
  background: var(--rot);
}

.kopf__schalter[aria-expanded="true"] .kopf__schalter-zeichen span:first-child {
  transform: translateY(.3125rem) rotate(45deg);
}

.kopf__schalter[aria-expanded="true"] .kopf__schalter-zeichen span:last-child {
  transform: translateY(-.3125rem) rotate(-45deg);
}

.menue {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow-y: auto;
  background: var(--nacht);
}

.menue__innen {
  display: flex;
  flex-direction: column;
  min-height: inherit;
  padding-block: 1rem calc(1.5rem + env(safe-area-inset-bottom));
}

.menue__innen ul {
  margin-bottom: auto;
}

.menue__innen li {
  border-bottom: 1px solid var(--kante);
}

.menue__innen li a {
  display: block;
  padding-block: 1.125rem;
  font-size: 1.5rem;
  font-stretch: var(--breit);
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
}

.menue__innen .knopf {
  margin-top: 2rem;
}

@media (min-width: 62rem) {
  .kopf__nav {
    display: block;
  }

  .kopf__aktion {
    display: inline-flex;
  }

  .kopf__schalter,
  .menue {
    display: none;
  }

  .wortmarke {
    height: 1.25rem;
  }
}

/* ---------- Hero ---------- */

/* Die Headline füllt ihre Spalte: Zeile 1 läuft auf 97 % der Spaltenbreite, Zeile 2 ist genauso breit gesetzt,
   wie die Unterzeile unter der Wortmarke auf der Karte. Die Faktoren stammen aus der Messung in Archivo (DESIGN.md). */
.hero {
  --h1-breite: 112%;
  --h1-faktor: .0855;
  --h1-zeile2: .819;
  --h1-spalte: calc(100vw - 2 * var(--rand) - var(--einzug));
  --h1: min(var(--h1-spalte) * var(--h1-faktor), 4.5rem);
  /* Mobil: niedriges Bildband unter der Kopfzeile. Auf kurzen Fenstern schrumpft es zuerst. */
  --band: clamp(1.5rem, 24vh - 7.5rem, 6rem);
  --band: clamp(1.5rem, 24svh - 7.5rem, 6rem);
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--kopf-hoehe) + var(--band));
  padding-bottom: var(--hero-fuss);
}

.hero__innen {
  position: relative;
  display: grid;
  gap: 1.375rem;
}

/* Die rote Linie beginnt als Ring an der Headline und läuft links durch den Hero in die Seite */
.hero__innen::before {
  content: "";
  position: absolute;
  top: calc(var(--h1) * .53);
  bottom: calc(-1 * var(--hero-fuss) - 1px);
  left: 0;
  width: var(--linie);
  background: var(--rot);
}

.hero__text {
  padding-left: var(--einzug);
}

.hero h1 {
  position: relative;
  font-size: var(--h1);
  line-height: 1.06;
  hyphens: manual;
}

.hero h1::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(var(--h1) * .53 - var(--knoten) / 2);
  left: calc(-1 * var(--einzug) - var(--knoten) / 2 + 1px);
  width: var(--knoten);
  height: var(--knoten);
  border: var(--linie) solid var(--rot);
  border-radius: 50%;
  background: var(--nacht);
}

.hero__zeile {
  display: block;
  font-stretch: var(--h1-breite);
}

.hero__zeile--gebiet {
  margin-top: .08em;
  font-size: calc(var(--h1-zeile2) * 1em);
  font-stretch: 100%;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}

.hero__unterzeile {
  max-width: 34rem;
  margin-top: clamp(.75rem, 2vh, 1.375rem);
  color: var(--papier-leise);
  font-size: var(--t-text);
  line-height: 1.5;
}

/* Mobil: das Motiv liegt als niedriges Band unter der Kopfzeile und läuft vor der Headline aus */
.hero__motiv {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--kopf-hoehe) + var(--band));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.25rem), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 2.25rem), transparent);
}

.hero__motiv picture,
.hero__motiv img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__motiv img {
  max-width: none;
  object-fit: cover;
  object-position: 70% 72%;
}

.hero__motiv video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 100%;
  opacity: 0;
}

.hero__motiv .hero__video--ready { opacity: 1; }

.hero__bewegung {
  position: absolute;
  right: var(--rand);
  bottom: 1.25rem;
  min-height: 2.75rem;
  padding: .5rem .875rem;
  border: 1px solid var(--kante-feld);
  border-radius: var(--radius);
  background: var(--nacht);
  color: var(--papier-leise);
  font-size: var(--t-mini);
  cursor: pointer;
}

/* Dieselbe feine Körnung wie auf dem Seitengrund, damit Motiv und Seite nahtlos ineinander übergehen */
.hero__motiv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../assets/textur/korn.png");
}

/* Routenmodul: Abholort und Zielort als kleine Strecke von Ring zu Punkt, darunter die Hauptaktion */
.route {
  --feldhoehe: 3.25rem;
  display: grid;
  gap: .875rem;
  margin-left: var(--einzug);
  padding: 1.125rem 1.125rem 1rem;
  border: 1px solid var(--kante);
  border-radius: var(--radius-flaeche);
  background: rgba(23, 23, 25, .94);
}

.route__orte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .625rem;
  padding-left: 1.625rem;
}

.route__feld {
  position: relative;
  display: grid;
  gap: .3125rem;
}

.route__feld--start {
  grid-area: 1 / 1;
}

.route__feld--ziel {
  grid-area: 2 / 1;
}

.route__feld label {
  color: var(--papier-leise);
  font-size: var(--t-mini);
  font-weight: 600;
  line-height: 1.35;
}

.route .route__feld input {
  min-height: var(--feldhoehe);
}

.route__feld::before {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: calc(var(--feldhoehe) / 2 - .375rem);
  left: -1.625rem;
  width: .75rem;
  height: .75rem;
  border: var(--linie) solid var(--rot);
  border-radius: 50%;
  background: var(--anthrazit);
}

.route__feld--ziel::before {
  background: var(--rot);
}

.route__feld--ziel::after {
  content: "";
  position: absolute;
  top: calc(-.625rem - var(--feldhoehe) / 2 + .375rem);
  bottom: calc(var(--feldhoehe) / 2 + .375rem);
  left: calc(-1.625rem + .375rem - 1px);
  width: var(--linie);
  background: var(--rot-fern);
}

.route__tausch {
  grid-area: 1 / 2 / 3 / 3;
  align-self: center;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 1.25rem;
  border: 1px solid var(--kante-feld);
  border-radius: var(--radius);
  background: transparent;
  color: var(--papier);
  transition: border-color var(--kurz), transform 260ms var(--weich);
}

.route__tausch:hover {
  border-color: var(--papier);
}

.route__tausch svg {
  width: 1.375rem;
  height: 1.375rem;
  transform: rotate(90deg);
}

.route__tausch--gedreht {
  transform: rotate(180deg);
}

.route__senden {
  width: 100%;
  margin-top: .125rem;
  padding-inline: .5rem;
}

.route__hinweis {
  margin-top: -.25rem;
  color: var(--papier-leise);
  font-size: var(--t-klein);
  line-height: 1.45;
}

.route__neben {
  justify-self: start;
  margin-block: -.5rem -.25rem;
}

/* Niedrige Handyfenster (iPhone SE mit eingeblendeten Browserleisten): enger setzen, damit die Hauptaktion sichtbar bleibt */
@media (max-height: 40rem) and (max-width: 47.99rem) {
  .hero__innen {
    gap: 1rem;
  }

  .hero__unterzeile {
    margin-top: .5rem;
    line-height: 1.45;
  }

  .route {
    --feldhoehe: 2.875rem;
    gap: .625rem;
    padding-block: .875rem .75rem;
  }

  .route__feld input {
    padding-block: .5rem;
  }
}

/* Ab großen Handys im Querformat bleibt das Routenmodul kompakt statt über die ganze Breite zu laufen */
@media (min-width: 36rem) {
  .route {
    width: min(100% - var(--einzug), 27rem);
  }
}

/* Tablet: Botschaft oben im dunklen Himmel, Routenmodul darunter, Kurve und Lichtspuren rechts unten im Bild */
@media (min-width: 48rem) {
  .hero {
    --h1-breite: 125%;
    --h1-faktor: .0766;
    --h1-zeile2: .914;
    --h1-spalte: calc(min(100vw - 2 * var(--rand), var(--rahmen)) - var(--einzug));
    display: grid;
    min-height: min(100vh, 50rem);
    min-height: min(100svh, 50rem);
    padding-top: calc(var(--kopf-hoehe) + clamp(2.5rem, 9vh, 5.5rem));
  }

  .hero__innen {
    align-content: start;
    gap: 2rem;
  }

  .hero__unterzeile {
    font-size: var(--t-vorspann);
  }

  .hero__motiv {
    inset: 0;
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__motiv img {
    object-position: 100% 100%;
  }

  /* Ruhezone für Text links, weicher Auslauf nach unten in die Seite */
  .hero__motiv::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(11, 11, 13, 0) 68%, var(--nacht) 100%),
      linear-gradient(to right, rgba(11, 11, 13, .8) 0, rgba(11, 11, 13, .45) 38%, rgba(11, 11, 13, 0) 62%);
  }
}

/* Desktop: Botschaft links, Routenmodul daneben. Darunter öffnet sich die Straße. */
@media (min-width: 68.75rem) {
  .hero {
    --karte: 22.5rem;
    --hero-luecke: clamp(2.5rem, 5vw, 5rem);
    --h1-spalte: calc(min(100vw - 2 * var(--rand), var(--rahmen)) - var(--einzug) - var(--karte) - var(--hero-luecke));
    min-height: min(100vh, 54rem);
    min-height: min(100svh, 54rem);
  }

  .hero__innen {
    grid-template-columns: minmax(0, 1fr) var(--karte);
    column-gap: var(--hero-luecke);
    align-items: start;
  }

  .route {
    width: auto;
    margin-left: 0;
  }

  .hero__motiv img {
    object-position: 85% 100%;
  }
}

/* ---------- Felder ---------- */

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem .9375rem;
  border: 1px solid var(--kante-feld);
  border-radius: var(--radius);
  background: var(--feld);
  color: var(--papier);
  font-size: 1.0625rem;
  line-height: 1.35;
  transition: border-color var(--kurz), box-shadow var(--kurz);
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--papier) 50%), linear-gradient(135deg, var(--papier) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 50%, calc(100% - .95rem) 50%;
  background-size: .35rem .35rem;
  background-repeat: no-repeat;
}

::placeholder {
  color: var(--papier-fern);
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--papier-leise);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 2px;
  border-color: var(--papier);
}

[aria-invalid="true"] {
  border-color: var(--rot);
  box-shadow: inset 0 -2px 0 var(--rot);
}

.felder {
  display: grid;
  gap: 0 1rem;
}

.feld {
  display: grid;
  gap: .4375rem;
  align-content: start;
  margin-bottom: 1.375rem;
}

.feld label {
  font-size: var(--t-klein);
  font-weight: 600;
  line-height: 1.35;
}

.feld__optional {
  margin-left: .25rem;
  color: var(--papier-fern);
  font-weight: 400;
}

.feld__stand {
  color: var(--papier-leise);
  font-size: var(--t-klein);
  line-height: 1.4;
}

/* Hinweis direkt unter einem Feld oder Häkchen, das selbst schon Abstand nach unten hat */
.feld__stand--unter {
  margin: -.75rem 0 1.375rem;
}

@media (min-width: 40rem) {
  .feld--schmal {
    max-width: 16rem;
  }
}

.feld__fehler {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: var(--t-klein);
  font-weight: 500;
  line-height: 1.4;
}

.feld__fehler::before {
  content: "!";
  content: "!" / "";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .05rem;
  border-radius: 50%;
  background: var(--rot);
  color: var(--weiss);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1;
}

.feld__hinweis {
  margin-bottom: 1.375rem;
  color: var(--papier-leise);
  font-size: var(--t-klein);
  line-height: 1.5;
}

.feld__hinweis--wichtig {
  display: flex;
  gap: .625rem;
  margin: .25rem 0 0;
  padding: .75rem .875rem;
  border-radius: var(--radius);
  background: var(--graphit);
  color: var(--papier);
}

.feld__hinweis--wichtig svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .1rem;
  color: var(--rot);
}

@media (min-width: 40rem) {
  .felder--zwei {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Kurze Paare (Fahrzeugtyp und Modell) stehen schon auf dem Handy nebeneinander */
@media (min-width: 22.5rem) {
  .felder--paar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .felder--paar select {
    padding-right: 2.25rem;
  }
}

/* Segmente: kurze Entscheidungen als eine Zeile nativer Radios. Gewählt: dunklere Fläche, kräftigere Schrift, roter Strich unten. */
.segmente {
  margin-bottom: 1.5rem;
}

.segmente legend,
.chips legend {
  margin-bottom: .5rem;
  font-size: var(--t-klein);
  font-weight: 600;
  line-height: 1.35;
}

.segmente__optionen {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  border: 1px solid var(--kante-feld);
  border-radius: var(--radius);
  background: var(--feld);
}

.segmente__optionen label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 3rem;
  padding: .5rem .25rem;
  color: var(--papier-leise);
  font-size: var(--t-klein);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  hyphens: manual;
  cursor: pointer;
  transition: background-color var(--kurz), color var(--kurz);
}

.segmente__optionen label + label {
  border-left: 1px solid var(--kante-feld);
}

.segmente__optionen label:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.segmente__optionen label:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

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

.segmente__optionen label:hover {
  color: var(--papier);
  background: var(--anthrazit);
}

.segmente__optionen label:has(input:checked) {
  color: var(--papier);
  background: var(--graphit);
  box-shadow: inset 0 -3px 0 var(--rot);
}

.segmente__optionen label:has(input:focus-visible) {
  z-index: 1;
  outline: var(--fokus-breite) solid var(--fokus-farbe);
  outline-offset: 2px;
}

.segmente:has([aria-invalid="true"]) .segmente__optionen {
  border-color: var(--rot);
  box-shadow: inset 0 0 0 1px var(--rot);
}

.segmente .feld__fehler,
.segmente .feld__hinweis {
  margin-top: .625rem;
}

@media (max-width: 29.99rem) {
  .segmente__optionen label {
    font-size: .875rem;
  }
}

/* Sehr schmale Fenster: untereinander statt abgeschnittener Wörter */
@media (max-width: 22.49rem) {
  .segmente__optionen {
    grid-auto-flow: row;
  }

  .segmente__optionen label + label {
    border-top: 1px solid var(--kante-feld);
    border-left: 0;
  }

  .segmente__optionen label:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .segmente__optionen label:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

/* Besonderheiten: mehrere ankreuzbar, keine eigenen Fahrzeugtypen */
.chips {
  margin-bottom: 1.5rem;
}

.chips__optionen {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  position: relative;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  min-height: 2.75rem;
  padding: .375rem .75rem .375rem .5625rem;
  border: 1px solid var(--kante-feld);
  border-radius: var(--radius);
  background: var(--feld);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--kurz), background-color var(--kurz);
}

.chip:hover {
  border-color: var(--papier-leise);
}

.chip input {
  flex: none;
  display: grid;
  place-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  border: 1px solid var(--kante-feld);
  border-radius: 3px;
  background: var(--feld);
  appearance: none;
  cursor: pointer;
}

.chip input::before {
  content: "";
  width: .625rem;
  height: .625rem;
  background: var(--weiss);
  clip-path: polygon(13% 47%, 0 62%, 40% 100%, 100% 22%, 85% 9%, 38% 70%);
  transform: scale(0);
  transition: transform var(--kurz) var(--weich);
}

.chip:has(input:checked) {
  border-color: var(--rot);
  background: var(--graphit);
}

.chip input:checked {
  border-color: var(--rot);
  background: var(--rot);
}

.chip input:checked::before {
  transform: scale(1);
}

.chip:has(input:focus-visible) {
  outline: var(--fokus-breite) solid var(--fokus-farbe);
  outline-offset: 2px;
}

.chip input:focus-visible {
  outline: 0;
}

.haken {
  position: relative;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  min-height: 2.75rem;
  margin-bottom: 1.375rem;
  padding-block: .5rem;
  font-size: var(--t-klein);
  font-weight: 500;
  cursor: pointer;
}

.haken input {
  flex: none;
  display: grid;
  place-content: center;
  width: 1.375rem;
  height: 1.375rem;
  margin: .05rem 0 0;
  border: 1px solid var(--kante-feld);
  border-radius: 3px;
  background: var(--feld);
  appearance: none;
  cursor: pointer;
  transition: border-color var(--kurz), background-color var(--kurz);
}

.haken input::before {
  content: "";
  width: .75rem;
  height: .75rem;
  background: var(--weiss);
  clip-path: polygon(13% 47%, 0 62%, 40% 100%, 100% 22%, 85% 9%, 38% 70%);
  transform: scale(0);
  transition: transform var(--kurz) var(--weich);
}

.haken input:checked {
  border-color: var(--rot);
  background: var(--rot);
}

.haken input:checked::before {
  transform: scale(1);
}

/* ---------- Strecke: die Linie durch die Seite ---------- */

.strecke {
  position: relative;
  z-index: 1;
}

.spur {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: calc(-1 * var(--polster));
  left: max(var(--rand), calc((100% - var(--rahmen)) / 2));
  width: var(--linie);
  background: var(--rot-fern);
  overflow-x: visible;
  overflow-y: clip;
  pointer-events: none;
}

/* Der Lichtpunkt bleibt beim Scrollen auf Augenhöhe stehen. Darüber ist die Linie hell, darunter liegt die Strecke noch vor einem. */
.spur__licht {
  position: sticky;
  top: 56vh;
  display: block;
  height: 0;
}

.spur__licht::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--linie);
  height: 9999rem;
  background: var(--rot);
}

.spur__licht::after {
  content: "";
  position: absolute;
  top: -.125rem;
  left: calc(var(--linie) / 2 - .4375rem);
  width: .875rem;
  height: .75rem;
  background: var(--rot);
  clip-path: polygon(0 0, 50% 34%, 100% 0, 50% 100%);
  filter: drop-shadow(0 0 6px rgba(227, 38, 46, .9));
}

.abschnitt {
  --flaeche: var(--nacht);
  padding-block: var(--polster);
}

.abschnitt--flaeche {
  --flaeche: var(--anthrazit);
  background: var(--anthrazit) url("../assets/textur/korn.png");
}

.abschnitt__innen {
  padding-left: var(--einzug);
}

.abschnitt__kopf {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4.5vw, 3.75rem);
}

.vorspann {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--papier-leise);
  font-size: var(--t-vorspann);
  line-height: 1.5;
}

/* Station: Knoten auf der Linie neben der Überschrift */
.station {
  position: relative;
}

.station::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: .3em;
  top: calc(.5lh - var(--knoten) / 2);
  left: calc(-1 * var(--einzug) - var(--knoten) / 2 + 1px);
  width: var(--knoten);
  height: var(--knoten);
  border: var(--linie) solid var(--rot);
  border-radius: 50%;
  background: var(--flaeche);
}

/* ---------- Transportwahl: drei Wege im Vergleich ---------- */

.vergleich {
  display: grid;
  gap: 3rem;
}

.vergleich__art {
  display: grid;
  align-content: start;
  justify-items: start;
}

.schema {
  width: 100%;
  max-width: 13rem;
  height: auto;
  margin-bottom: 1rem;
}

.bild__strasse {
  fill: none;
  stroke: var(--rot);
  stroke-width: 2;
}

.bild__linie {
  fill: none;
  stroke: var(--papier);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bild__linie--fein {
  stroke-width: 1.25;
  opacity: .55;
}

.bild__rad {
  fill: var(--nacht);
  stroke: var(--papier);
  stroke-width: 2;
}

.bild__achse {
  fill: var(--rot);
}

/* Beratung: Die Strecke teilt sich, die möglichen Wege sind gepunktet */
.bild__weg {
  fill: none;
  stroke: var(--papier-leise);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: .1 8;
}

.bild__ende {
  fill: var(--nacht);
  stroke: var(--papier);
  stroke-width: 2;
}

.bild__knoten {
  fill: var(--rot);
  stroke: var(--nacht);
  stroke-width: 3;
}

.vergleich h3 {
  font-size: var(--t-titel);
  font-stretch: var(--breit);
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.vergleich__begriff {
  margin-top: .375rem;
  color: var(--papier-fern);
  font-size: var(--t-klein);
}

.vergleich__punkte {
  justify-self: stretch;
  margin-top: 1.25rem;
}

.vergleich__punkte div {
  display: grid;
  gap: .25rem;
  align-content: start;
  padding-block: .875rem 1rem;
  border-top: 1px solid var(--kante);
}

.vergleich__punkte div:last-child {
  border-bottom: 1px solid var(--kante);
}

.vergleich__punkte dt {
  color: var(--papier-fern);
  font-size: var(--t-mini);
  font-weight: 500;
  line-height: 1.4;
}

.vergleich__punkte dd {
  color: var(--papier-leise);
}

.vergleich__wahl {
  margin-top: 1.25rem;
}

@media (min-width: 56rem) {
  .schema {
    max-width: 15rem;
    margin-bottom: 1.25rem;
  }

  .vergleich {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(1.75rem, 3.4vw, 3.5rem);
  }

  /* Die drei Spalten teilen sich die Zeilen, so steht jede Frage auf einer Höhe */
  .vergleich__art {
    grid-row: span 7;
    grid-template-rows: subgrid;
  }

  .vergleich__punkte {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
  }

  .vergleich__wahl {
    align-self: start;
    margin-top: 1.5rem;
  }
}

.direkt--frueh {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* ---------- Ablauf: vier Stationen auf der roten Linie ---------- */

.ablauf {
  --ziffer: clamp(2.75rem, 1.5rem + 4.2vw, 5.25rem);
  --abstand: clamp(2.25rem, 6vw, 3rem);
  --spalten-abstand: clamp(1.5rem, 2.6vw, 2.75rem);
  display: grid;
  gap: var(--abstand);
}

.ablauf li {
  position: relative;
  display: grid;
  gap: .625rem;
  align-content: start;
}

.ablauf__nummer {
  display: flex;
  align-items: center;
  color: var(--papier);
  font-size: var(--ziffer);
  font-stretch: var(--breit);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.03em;
}

.ablauf h3 {
  margin-top: .375rem;
  font-size: var(--t-titel);
  font-stretch: var(--breit);
  line-height: 1.15;
}

.ablauf p {
  max-width: 34rem;
  color: var(--papier-leise);
}

/* Schmal senkrecht: Die Linie läuft links in derselben Spur wie oben, von Ziffer zu Ziffer */
.ablauf li::before {
  content: "";
  position: absolute;
  top: calc(var(--ziffer) / 2);
  left: calc(-1 * var(--einzug));
  width: var(--linie);
  height: calc(100% + var(--abstand));
  background: var(--rot);
}

.ablauf li:last-child::before {
  display: none;
}

.ablauf li::after {
  content: "";
  position: absolute;
  top: calc(var(--ziffer) / 2 - var(--knoten) / 2);
  left: calc(-1 * var(--einzug) - var(--knoten) / 2 + var(--linie) / 2);
  width: var(--knoten);
  height: var(--knoten);
  border: var(--linie) solid var(--rot);
  border-radius: 50%;
  background: var(--nacht);
}

/* Das Ziel ist ausgefüllt */
.ablauf li:last-child::after {
  background: var(--rot);
}

@media (min-width: 62rem) {
  .ablauf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--spalten-abstand);
  }

  .ablauf li::before,
  .ablauf li::after {
    display: none;
  }

  /* Breit waagerecht: Die Linie verbindet die Ziffern und endet als Punkt am Ziel */
  .ablauf__nummer::after {
    content: "";
    flex: 1;
    height: var(--linie);
    margin-inline: clamp(.75rem, 1.3vw, 1.25rem) calc(.875rem - var(--spalten-abstand));
    background: var(--rot);
  }

  .ablauf li:last-child .ablauf__nummer::after {
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0;
    border: 4px solid var(--nacht);
    border-radius: 50%;
    box-shadow: 0 0 0 var(--linie) var(--rot);
  }
}

/* ---------- Geschäftskunden ---------- */

.b2b {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.b2b__kopf {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  justify-items: start;
}

.b2b__kopf .vorspann {
  margin-top: 0;
}

.b2b__kopf .knopf {
  margin-top: .5rem;
}

.fall {
  display: grid;
  gap: .75rem;
  padding-block: clamp(1.25rem, 2.6vw, 1.75rem);
  border-top: 1px solid var(--kante);
}

.fall:last-child {
  border-bottom: 1px solid var(--kante);
}

.fall h3 {
  font-size: var(--t-titel);
  font-stretch: var(--breit);
  line-height: 1.15;
  letter-spacing: -.01em;
}

/* Jeder Fall ist eine Strecke: Start als Ring, Ziel als Punkt */
.fall__route {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--papier-leise);
  font-size: var(--t-klein);
  white-space: nowrap;
}

.fall__linie {
  position: relative;
  flex: none;
  width: clamp(4rem, 14vw, 7.5rem);
  height: var(--linie);
  margin-inline: .375rem;
  background: var(--rot);
}

.fall__linie::before,
.fall__linie::after {
  content: "";
  position: absolute;
  top: 50%;
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.fall__linie::before {
  left: 0;
  border: var(--linie) solid var(--rot);
  background: var(--anthrazit);
}

.fall__linie::after {
  left: 100%;
  background: var(--rot);
}

@media (min-width: 56rem) {
  .b2b {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
  }

}

/* ---------- Fahrzeuge ---------- */

.fahrzeuge {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.fahrzeuge__zeile {
  display: grid;
  gap: .375rem;
  padding-block: clamp(1.125rem, 2.4vw, 1.875rem);
  border-top: 1px solid var(--kante);
}

.fahrzeuge__zeile:last-child {
  border-bottom: 1px solid var(--kante);
}

.fahrzeuge dt {
  color: var(--papier-leise);
  font-size: var(--t-klein);
  font-weight: 500;
}

.fahrzeuge dd {
  font-size: clamp(1.25rem, .55rem + 2.7vw, 2.25rem);
  font-stretch: var(--breit);
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.fahrzeuge__zeile--klein dd {
  font-size: var(--t-titel);
}

.fahrzeuge__notiz {
  display: block;
  text-wrap: wrap;
  max-width: 38rem;
  margin-top: .875rem;
  color: var(--papier-leise);
  font-size: var(--t-text);
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.fahrzeuge__notiz a {
  color: var(--papier);
  font-weight: 500;
}

@media (min-width: 56rem) {
  .fahrzeuge__zeile {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: baseline;
  }
}

/* ---------- Fragen ---------- */

.fragen {
  max-width: 52rem;
}

.fragen details {
  border-top: 1px solid var(--kante);
}

.fragen details:last-child {
  border-bottom: 1px solid var(--kante);
}

.fragen summary {
  position: relative;
  display: block;
  padding: 1.25rem 3rem 1.25rem 0;
  font-size: var(--t-h3);
  font-stretch: var(--halbbreit);
  font-weight: 620;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

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

.fragen summary::before,
.fragen summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .25rem;
  width: 1rem;
  height: var(--linie);
  background: var(--rot);
  transition: transform 220ms var(--weich);
}

.fragen summary::after {
  transform: rotate(90deg);
}

.fragen details[open] summary::after {
  transform: rotate(0deg);
}

.fragen details p {
  max-width: 42rem;
  padding-bottom: 1.5rem;
  color: var(--papier-leise);
}

/* ---------- Anfrage: hier kommt die Linie an ---------- */

.abschnitt--ziel {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.anfrage {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(1.25rem, 4.2vw, 3.25rem);
  padding-top: clamp(1.75rem, 4.2vw, 3.25rem);
  border: 1px solid var(--kante);
  border-radius: 0 var(--radius-flaeche) var(--radius-flaeche) var(--radius-flaeche);
  background: var(--anthrazit) url("../assets/textur/korn.png");
}

.anfrage__knoten {
  position: absolute;
  z-index: 2;
  top: -.5625rem;
  left: -.5625rem;
  width: 1.125rem;
  height: 1.125rem;
  border: 4px solid var(--nacht);
  border-radius: 50%;
  background: var(--rot);
  box-shadow: 0 0 0 var(--linie) var(--rot);
}

.anfrage__kopf p {
  margin-top: .75rem;
  color: var(--papier-leise);
  font-size: var(--t-vorspann);
}

/* Geschäftliche Anfrage: sichtbar in jedem Schritt, solange „Geschäftlich“ gewählt ist */
.modus {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding: .5rem 1rem .5rem .875rem;
  border: 1px solid var(--kante);
  border-left: var(--linie) solid var(--rot);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--papier-leise);
  font-size: var(--t-klein);
  line-height: 1.45;
}

.modus__text {
  flex: 1 1 18rem;
  padding-block: .375rem;
}

.modus strong {
  color: var(--papier);
  font-weight: 600;
}

.fortschritt {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  margin-bottom: 1.75rem;
}

.fortschritt li {
  position: relative;
  padding-top: 1.5rem;
  padding-right: .75rem;
  color: var(--papier-fern);
  font-size: var(--t-mini);
  font-weight: 500;
  line-height: 1.3;
}

.fortschritt li::before {
  content: "";
  position: absolute;
  top: calc(var(--knoten) / 2 - 1px);
  left: 0;
  right: 0;
  height: var(--linie);
  background: var(--kante-feld);
}

.fortschritt li:last-child::before {
  display: none;
}

.fortschritt li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--knoten);
  height: var(--knoten);
  border: var(--linie) solid var(--kante-feld);
  border-radius: 50%;
  background: var(--anthrazit);
}

.fortschritt li[data-zustand="erledigt"]::before {
  background: var(--rot);
}

.fortschritt li[data-zustand="erledigt"]::after {
  border-color: var(--rot);
  background: var(--rot);
}

.fortschritt li[data-zustand="aktuell"] {
  color: var(--papier);
  font-weight: 600;
}

.fortschritt li[data-zustand="aktuell"]::after {
  border-color: var(--rot);
}

/* Ein neuer Schritt oder ein Ergebnis kommt mit einer kurzen Bewegung, damit der Wechsel sichtbar ist */
.schritt,
.ergebnis {
  animation: schritt-ein 240ms var(--weich);
}

@keyframes schritt-ein {
  from {
    opacity: 0;
    transform: translateY(.5rem);
  }
}

.schritt__titel {
  margin-bottom: 1.5rem;
}

.schritt__titel:focus-visible {
  outline-offset: 6px;
}

.schritt [data-tausch] {
  margin: -.75rem 0 1rem;
}

.schritt__aktionen {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: .5rem;
}

.schritt__aktionen .knopf {
  flex: 3 1 auto;
  padding-inline: 1.125rem;
}

.schritt__aktionen .knopf--linie {
  flex-grow: 1;
}

.formular__datenschutz {
  margin-bottom: 1.375rem;
  color: var(--papier-leise);
  font-size: var(--t-klein);
  line-height: 1.5;
}

.formular__datenschutz strong {
  color: var(--papier);
  font-weight: 600;
}

/* Stand: was schon feststeht, mit Weg zurück zum Ändern. Ersetzt die doppelte Zusammenfassung. */
.stand {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  align-items: baseline;
  margin: -.25rem 0 1.75rem;
  padding: .625rem .875rem;
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  background: var(--feld);
}

.stand__route {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0 .5rem;
  align-items: center;
  font-stretch: var(--halbbreit);
  font-weight: 620;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.stand__pfeil {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--rot);
}

.stand__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.stand .textknopf {
  min-height: 2.25rem;
}

.stand__liste {
  order: 1;
  flex: 1 1 100%;
  display: grid;
  gap: .125rem;
}

.stand__liste div {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: .75rem;
  font-size: var(--t-klein);
  line-height: 1.45;
}

.stand__liste dt {
  color: var(--papier-leise);
}

.stand__liste dd {
  overflow-wrap: anywhere;
}

.geschaeft {
  margin-bottom: .25rem;
  padding-left: 1rem;
  border-left: 1px solid var(--kante-feld);
}

/* Weitere Kontaktmöglichkeit: aufklappbar, damit nur das gewählte Pflichtfeld im Blick ist.
   Ein echter Knopf statt details/summary: Safari auf dem iPhone verschluckt sonst den ersten Tipp, solange die Tastatur offen ist. */
.zusatz {
  margin: -.75rem 0 1.25rem;
}

.zusatz__schalter {
  display: inline-flex;
  gap: .625rem;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--papier);
  font-size: var(--t-klein);
  font-weight: 500;
  text-align: left;
}

.zusatz__schalter::before {
  content: "";
  flex: none;
  width: .75rem;
  height: .75rem;
  background:
    linear-gradient(var(--rot), var(--rot)) center / 100% var(--linie) no-repeat,
    linear-gradient(var(--rot), var(--rot)) center / var(--linie) 100% no-repeat;
  transition: background-size 220ms var(--weich);
}

.zusatz__schalter[aria-expanded="true"]::before {
  background-size: 100% var(--linie), var(--linie) 0;
}

.zusatz__schalter [data-zusatz-titel] {
  text-decoration: underline;
  text-decoration-color: var(--rot);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}

.zusatz__schalter:hover [data-zusatz-titel] {
  text-decoration-color: currentColor;
}

.zusatz__schalter .feld__optional {
  margin-left: 0;
}

.zusatz__inhalt {
  padding-top: .5rem;
}

/* Vorschau: direkt vor dem Senden wiederholt */
.vorschau-hinweis {
  display: flex;
  gap: .625rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: .75rem .875rem;
  border: 1px dashed var(--kante-feld);
  border-radius: var(--radius);
  font-size: var(--t-klein);
  font-weight: 500;
  line-height: 1.4;
}

.vorschau-hinweis svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--rot);
}

/* Ergebnis: Vorschau, Versand, Fehler, WhatsApp */
.ergebnis {
  padding: 1.5rem;
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  background: var(--graphit);
}

.ergebnis:focus-visible {
  outline-offset: 4px;
}

.ergebnis__inhalt {
  display: grid;
  gap: .875rem;
  justify-items: start;
}

.ergebnis__inhalt p {
  max-width: 36rem;
  color: var(--papier-leise);
}

.ergebnis__nummer {
  color: var(--papier);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.ergebnis__zeichen {
  width: 2.25rem;
  height: 2.25rem;
  padding: .375rem;
  border-radius: 50%;
  background: var(--rot);
  color: var(--weiss);
}

.ergebnis__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}

.ergebnis__aktionen {
  padding-top: .5rem;
}

.ergebnis__aktionen .knopf {
  position: relative;
}

@media (max-width: 30rem) {
  .ergebnis__aktionen .knopf {
    flex: 1 1 100%;
  }
}

.ergebnis__tipp {
  position: absolute;
  top: -.7rem;
  right: .75rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--papier, #fff);
  color: var(--rot);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ergebnis__zurueck {
  margin-top: 1rem;
  padding: .5rem 0;
  border: 0;
  background: none;
  color: var(--papier-leise);
  font: inherit;
  font-size: .9375rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

/* Neben dem Formular: was nach dem Absenden passiert und der direkte Kontakt */
.anfrage__neben {
  display: grid;
  gap: .875rem;
  align-content: start;
  padding-top: 1.75rem;
  border-top: 1px solid var(--kante);
}

.anfrage__neben > h3 {
  font-size: var(--t-h3);
}

.anfrage__neben > p {
  max-width: 34rem;
  color: var(--papier-leise);
}

.anfrage__neben .direkt {
  margin-top: .75rem;
}

@media (min-width: 56rem) {
  .anfrage {
    padding-left: calc(var(--einzug) - 1px);
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    grid-template-areas:
      "kopf kopf"
      "formular neben";
    column-gap: clamp(2rem, 5vw, 5rem);
    row-gap: 2.5rem;
  }

  .anfrage__kopf {
    grid-area: kopf;
  }

  .formular {
    grid-area: formular;
  }

  .anfrage__neben {
    grid-area: neben;
    position: sticky;
    top: calc(var(--kopf-hoehe) + 1.5rem);
    align-self: start;
    padding-top: 0;
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 0;
    border-left: 1px solid var(--kante);
  }

  .schritt__aktionen .knopf {
    flex: 0 0 auto;
    min-width: 10rem;
    padding-inline: 1.5rem;
  }
}

/* Direkter Kontakt: früh im Ablauf und neben dem Formular, gefüllt aus config.js */
.direkt {
  display: grid;
  gap: .5rem;
  margin-top: 1.75rem;
}

.direkt__titel {
  color: var(--papier-leise);
  font-size: var(--t-klein);
  font-stretch: 100%;
  font-weight: 500;
}

.direkt__liste {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 2rem;
}

.direkt__liste li {
  display: flex;
  gap: .625rem;
  align-items: center;
  min-height: 2.75rem;
}

.direkt__liste svg {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--rot);
}

.direkt__liste a {
  font-stretch: var(--halbbreit);
  font-weight: 600;
}

/* Lange Mailadressen dürfen auf schmalen Handys umbrechen statt die Seite zu verbreitern */
.direkt__liste li {
  min-width: 0;
  max-width: 100%;
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
  min-width: 0;
}


/* ---------- Abschluss: die Strecke kommt an ---------- */

.abschluss {
  --gross: clamp(2.125rem, 1rem + 4.6vw, 4.5rem);
  --abschluss-polster: clamp(4.5rem, 10vw, 8rem);
  padding-block: var(--abschluss-polster);
  border-top: 1px solid var(--kante);
}

.abschluss__innen {
  position: relative;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding-left: var(--einzug);
}

.abschluss h2 {
  max-width: 15ch;
  font-size: var(--gross);
  line-height: 1.02;
  letter-spacing: -.025em;
}

.abschluss p {
  max-width: 36rem;
  color: var(--papier-leise);
  font-size: var(--t-vorspann);
  line-height: 1.5;
}

.abschluss .knopf {
  margin-top: .75rem;
}

.abschluss__kontakt {
  margin-top: 1.25rem;
}

/* Die Linie kommt von oben in den Abschnitt und endet als Punkt auf Höhe der Überschrift */
.abschluss__innen::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--abschluss-polster));
  left: 0;
  width: var(--linie);
  height: calc(var(--abschluss-polster) + var(--gross) * .51);
  background: linear-gradient(to bottom, transparent, var(--rot) 55%);
}

.abschluss__innen::after {
  content: "";
  position: absolute;
  top: calc(var(--gross) * .51 - .5625rem);
  left: calc(var(--linie) / 2 - .5625rem);
  width: 1.125rem;
  height: 1.125rem;
  border: 4px solid var(--nacht);
  border-radius: 50%;
  background: var(--rot);
  box-shadow: 0 0 0 var(--linie) var(--rot);
}

/* ---------- Fuß ---------- */

.fuss {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) calc(6.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--kante);
  color: var(--papier-leise);
  font-size: var(--t-klein);
}

.fuss__innen {
  display: grid;
  gap: 2.25rem;
}

.fuss__marke {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
}

/* Wortmarke mit Unterzeile wie auf der Karte: die Unterzeile ist auf die Breite der Wortmarke gesperrt */
.fuss__zeichen {
  display: grid;
  gap: .625rem;
  justify-items: start;
  width: min(100%, 13.5rem);
}

.wortmarke--gross {
  width: 100%;
  height: auto;
}

.fuss__unterzeile {
  width: 100%;
  color: var(--papier);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .34em;
  line-height: 1;
  text-align: justify;
  text-align-last: justify;
  text-transform: uppercase;
}

.fuss__gebiet {
  position: relative;
  width: 100%;
  margin-top: .5rem;
  padding-top: .875rem;
  font-size: var(--t-mini);
  letter-spacing: .08em;
}

.fuss__gebiet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: var(--linie);
  background: var(--rot);
}

.fuss ul {
  display: grid;
  gap: .25rem;
}

.fuss li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--papier);
  text-decoration-color: transparent;
}

.fuss li a:hover {
  text-decoration-color: var(--rot);
}

.fuss__zeile {
  padding-top: 1.5rem;
  border-top: 1px solid var(--kante);
}

@media (min-width: 48rem) {
  .fuss {
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  }

  .fuss__innen {
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr);
    column-gap: clamp(2rem, 4vw, 4rem);
  }

  .fuss__zeile {
    grid-column: 1 / -1;
  }
}

/* ---------- Mobile Anfrageleiste ---------- */

.leiste {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  padding: .625rem var(--rand) calc(.625rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--kante);
  background: rgba(11, 11, 13, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 260ms var(--weich), visibility 0s 260ms;
}

.leiste--sichtbar {
  transform: none;
  visibility: visible;
  transition: transform 260ms var(--weich), visibility 0s;
}

@media (min-width: 48rem) {
  .leiste {
    display: none;
  }
}

/* ---------- Unterseiten ---------- */

.unterseite {
  padding-top: calc(var(--kopf-hoehe) + clamp(2.5rem, 8vw, 6rem));
  padding-bottom: var(--polster);
}

.unterseite__innen {
  max-width: 44rem;
  padding-left: var(--einzug);
  border-left: var(--linie) solid var(--rot);
}

.unterseite h1 {
  font-size: var(--t-h2);
  line-height: 1.1;
}

.unterseite h2 {
  margin-top: 2.25rem;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.unterseite h2 + p {
  margin-top: 0.5rem;
}

.unterseite p {
  margin-top: 1.25rem;
  color: var(--papier-leise);
}

.unterseite .knopf {
  margin-top: 2rem;
}

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .spur,
  .hero__innen::before,
  .route__feld--ziel::after,
  .ablauf li::before,
  .ablauf__nummer::after,
  .fall__linie,
  .abschluss__innen::before {
    background: CanvasText;
  }

  .segmente__optionen label:has(input:checked) {
    outline: 2px solid Highlight;
    outline-offset: -4px;
  }
}
