@charset "UTF-8";

/* ==========================================================================
   dasAutovermietung: Gestaltung der ganzen Website, Version 6
   Wie Version 5, dazu Jahreszeiten und Wetter in der Landschaft, Motor
   starten im Startbild, Wegweiser beim Preisrechner, freie Tage beim
   Formular, ein Anhänger als Bestätigung und weiche Seitenwechsel (alles
   in Abschnitt 20) sowie eine Ortsende-Tafel in der Fusszeile (14).
   Version 5: Wie Version 4, dazu Kopfzeile und Anfrage-Leiste aus Glas (Abschnitt 19)
   und ein Auto im Startbild, das beim Scrollen mitrollt (Abschnitt 17).
   Version 4: Wie Version 3, dazu Navigation mit aktuellem Abschnitt (Abschnitt 6),
   Zusagen unter dem Startbild (7), Preis pro Tag und Preisrechner (8),
   Zahlen bei «Über uns» (12), Anfrage-Leiste auf dem Handy (13) und
   grosser Schriftzug in der Fusszeile (14).
   Wie Version 2, dazu eine dunkle Darstellung (Farben in Abschnitt 2,
   Schalter und Lichtschalter in Abschnitt 6, Landschaft und
   Taschenlampe in Abschnitt 7).

   Inhalt
   1.  Schrift
   2.  Gestaltungswerte: Farben, Schriftgrössen, Abstände
   3.  Grundlagen
   4.  Raster und Abschnitte
   5.  Bausteine: Schaltflächen, Links, Hinweisleiste
   6.  Kopfzeile und Navigation
   7.  Startbereich mit Landschaft
   8.  Preise mit Anhänger
   9.  Das Auto
   10. Ablauf an der Strasse
   11. Gut zu wissen
   12. Über uns mit Schlüsselbrett
   13. Anfrage und Kontakt
   14. Fusszeile
   15. Rechtliche Seiten und Fehlerseite
   16. Hilfsklassen
   17. Bewegung
   18. Druck
   19. Glas: Kopfzeile und Anfrage-Leiste
   20. Version 6: Jahreszeiten, Motor, Wegweiser, freie Tage, Anhänger,
       Seitenwechsel
   ========================================================================== */


/* 1. Schrift
   Archivo, lokal gespeichert (keine Verbindung zu Google).
   Eine Datei mit den Zeichen für Deutsch, Französisch und Italienisch,
   den Stärken 400 bis 800 und den Breiten 100 bis 125 %. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}


/* 2. Gestaltungswerte
   Alle Farben, Grössen und Abstände an einem Ort. Wer etwas ändern will,
   ändert es hier, nicht in den einzelnen Bausteinen. */

:root {
  /* Farben: Papier und Tinte wie auf einem Übergabeprotokoll,
     dazu ein kräftiges Blau wie Kugelschreiber und Werkstattkleidung.
     Dunkle Darstellung gleich nach diesem Block. */
  --color-bg: #F6F7F9;
  --color-bg-alt: #ECEFF4;
  --color-surface: #FCFDFE;
  --color-text: #131A2C;
  --color-text-muted: #4A5368;
  --color-line: #D2D8E2;
  --color-line-strong: #7F889C;
  --color-accent: #1F45B5;
  --color-accent-strong: #163591;
  --color-accent-soft: #E4EAF8;
  --color-error: #B42318;
  --color-dark: #131A2C;
  --color-on-dark: #DCE1EC;
  --color-on-dark-muted: #A3ACC2;
  --color-on-accent-muted: #D9E1F7;
  --color-on-accent-line: rgba(252, 253, 254, 0.55);
  --color-grid: #E9EDF3;

  /* Blaue Flächen mit heller Schrift (Schaltflächen, Anhänger,
     Ortstafel) und weitere Farben, die in der dunklen Darstellung
     anders sind als Papier und Tinte */
  --color-accent-fill: #1F45B5;
  --color-accent-fill-hover: #163591;
  --color-accent-fill-edge: #163591;
  --color-on-accent: #FCFDFE;
  --color-on-accent-hover: #E4EAF8;
  --color-accent-ink: #163591;
  --color-on-error: #FCFDFE;
  --color-on-dark-strong: #FCFDFE;
  --color-on-dark-line: rgba(220, 225, 236, 0.18);
  --color-dark-edge: transparent;
  --color-focus-ring: rgba(31, 69, 181, 0.25);
  --color-pulse: rgba(31, 69, 181, 0.45);
  --color-pulse-aus: rgba(31, 69, 181, 0);
  --color-tap: rgba(31, 69, 181, 0.15);
  --shadow-menu: 0 18px 30px -18px rgba(19, 26, 44, 0.28), 0 2px 6px -2px rgba(19, 26, 44, 0.08);
  --shadow-kopf: 0 10px 24px -18px rgba(19, 26, 44, 0.45);
  --shadow-leiste: 0 -10px 28px -18px rgba(19, 26, 44, 0.4);

  /* Das Auto ist in beiden Darstellungen ein helles Auto mit Linien in
     Tinte, auch im Ablauf und in der Zeichnung bei «Das Auto» */
  --car-body: #FCFDFE;
  --car-ink: #131A2C;
  --car-glass: #DCE4F5;
  --car-detail: #ECEFF4;
  --car-shadow: #131A2C;
  --car-light-front: #FFF1C9;
  --car-light-rear: #D64535;
  --car-tire-edge: transparent;

  /* Landschaft im Startbereich am Tag (Dämmerung und Nacht in
     Abschnitt 7), dazu die Strasse im Ablauf */
  --scene-sky: #E4EAF4;
  --scene-far: #DDE3EC;
  --scene-near: #D2D9E4;
  --scene-tree: #BAC4D3;
  --scene-tree-dark: #A9B4C5;
  --scene-trunk: #8E98AB;
  --scene-house: #E3E8EF;
  --scene-roof: #AEB8C8;
  --scene-road: #283046;
  --scene-dash: #E6EBF3;
  --scene-cloud: #FCFDFE;
  --scene-moon: #FBF3D9;
  --scene-light: #FFD27A;
  --road: #283046;
  --road-dash: #E6EBF3;

  /* Schrift: eine Familie, Stärke und Breite tragen die Hierarchie */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --weight-normal: 400;
  --weight-medium: 560;
  --weight-semibold: 640;
  --weight-bold: 710;
  --weight-heavy: 760;
  --stretch-normal: 100%;
  --stretch-semi: 106%;
  --stretch-wide: 112%;
  --stretch-display: 120%;

  /* Schriftgrössen, Verhältnis 1.333 */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.875rem, 1.35rem + 2.1vw, 2.875rem);
  --step-4: clamp(2.25rem, 1.2rem + 4.4vw, 4.25rem);
  --step-5: clamp(2.75rem, 1rem + 6vw, 5.75rem);

  /* Abstände, Grundeinheit 4px */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Raster */
  --max-width: 70rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-space: clamp(4rem, 2.75rem + 5.5vw, 7.5rem);
  --header-height: 4.5rem;

  /* Ecken: je grösser die Fläche, desto grösser der Radius */
  --radius-s: 6px;
  --radius-m: 8px;
  --radius-l: 14px;

  color-scheme: light;
}

/* Dunkle Darstellung. Ohne eigene Wahl folgt die Seite der Einstellung
   des Geräts (erster Block). Wer oben auf der Seite selbst wählt, setzt
   data-theme auf der Wurzel (darstellung.js und main.js): «dark» gilt
   auch auf einem hellen Gerät (zweiter Block), «light» auch auf einem
   dunklen. Beide Blöcke haben die gleichen Werte. Nachtblau statt
   Schwarz, damit Tinte und Blau zusammenpassen. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0E1322;
    --color-bg-alt: #131A2C;
    --color-surface: #182039;
    --color-text: #E6EAF2;
    --color-text-muted: #A6AFC4;
    --color-line: #2A3451;
    --color-line-strong: #6A7692;
    --color-accent: #9DB4FF;
    --color-accent-strong: #C6D3FF;
    --color-accent-soft: #1F2C57;
    --color-error: #FF8A7A;
    --color-dark: #090D18;
    --color-on-dark: #D0D6E3;
    --color-on-dark-muted: #98A1B8;
    --color-on-accent-muted: #DDE4F8;
    --color-grid: #202943;
    --color-accent-fill: #2C55D0;
    --color-accent-fill-hover: #3A63DD;
    --color-accent-fill-edge: #1C3C9C;
    --color-on-error: #0E1322;
    --color-on-dark-strong: #F4F6FA;
    --color-on-dark-line: rgba(208, 214, 227, 0.14);
    --color-dark-edge: #232C47;
    --color-focus-ring: rgba(157, 180, 255, 0.35);
    --color-pulse: rgba(157, 180, 255, 0.5);
    --color-pulse-aus: rgba(157, 180, 255, 0);
    --color-tap: rgba(157, 180, 255, 0.18);
    --shadow-menu: 0 18px 30px -18px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.45);
    --shadow-kopf: 0 10px 24px -14px rgba(0, 0, 0, 0.8);
    --shadow-leiste: 0 -10px 28px -14px rgba(0, 0, 0, 0.75);
    --car-body: #F1F4F9;
    --car-glass: #D3DCF0;
    --car-detail: #E3E7EE;
    --car-shadow: #000000;
    --car-light-rear: #E0503F;
    --scene-sky: #1B2643;
    --scene-far: #202C4A;
    --scene-near: #263353;
    --scene-tree: #304064;
    --scene-tree-dark: #36466C;
    --scene-trunk: #4B5B82;
    --scene-house: #2C3959;
    --scene-roof: #3C4A72;
    --scene-road: #10162A;
    --scene-dash: #C3CAD9;
    --scene-cloud: #2D3A5C;
    --road: #2A3450;
    --road-dash: #8F9AB5;
    --car-tire-edge: #4A5778;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --color-bg: #0E1322;
  --color-bg-alt: #131A2C;
  --color-surface: #182039;
  --color-text: #E6EAF2;
  --color-text-muted: #A6AFC4;
  --color-line: #2A3451;
  --color-line-strong: #6A7692;
  --color-accent: #9DB4FF;
  --color-accent-strong: #C6D3FF;
  --color-accent-soft: #1F2C57;
  --color-error: #FF8A7A;
  --color-dark: #090D18;
  --color-on-dark: #D0D6E3;
  --color-on-dark-muted: #98A1B8;
  --color-on-accent-muted: #DDE4F8;
  --color-grid: #202943;
  --color-accent-fill: #2C55D0;
  --color-accent-fill-hover: #3A63DD;
  --color-accent-fill-edge: #1C3C9C;
  --color-on-error: #0E1322;
  --color-on-dark-strong: #F4F6FA;
  --color-on-dark-line: rgba(208, 214, 227, 0.14);
  --color-dark-edge: #232C47;
  --color-focus-ring: rgba(157, 180, 255, 0.35);
  --color-pulse: rgba(157, 180, 255, 0.5);
  --color-pulse-aus: rgba(157, 180, 255, 0);
  --color-tap: rgba(157, 180, 255, 0.18);
  --shadow-menu: 0 18px 30px -18px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.45);
  --shadow-kopf: 0 10px 24px -14px rgba(0, 0, 0, 0.8);
  --shadow-leiste: 0 -10px 28px -14px rgba(0, 0, 0, 0.75);
  --car-body: #F1F4F9;
  --car-glass: #D3DCF0;
  --car-detail: #E3E7EE;
  --car-shadow: #000000;
  --car-light-rear: #E0503F;
  --scene-sky: #1B2643;
  --scene-far: #202C4A;
  --scene-near: #263353;
  --scene-tree: #304064;
  --scene-tree-dark: #36466C;
  --scene-trunk: #4B5B82;
  --scene-house: #2C3959;
  --scene-roof: #3C4A72;
  --scene-road: #10162A;
  --scene-dash: #C3CAD9;
  --scene-cloud: #2D3A5C;
  --road: #2A3450;
  --road-dash: #8F9AB5;
  --car-tire-edge: #4A5778;
  color-scheme: dark;
}


/* 3. Grundlagen */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: var(--weight-normal);
  font-stretch: var(--stretch-normal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: var(--color-tap);
}

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

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

address {
  font-style: normal;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Sicherung: Kein Bereich darf die Seite seitlich verbreitern.
   «clip» schneidet nur seitlich ab. Die Kopfzeile ist bewusst nicht dabei:
   Safari schneidet bei «overflow-x: clip» auf der klebenden Kopfzeile auch
   nach unten ab, dann bleibt das aufgeklappte Handy-Menü unsichtbar
   (WebKit-Fehler 271457). */
.notice,
main,
.site-footer {
  overflow-x: clip;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent-strong);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--color-accent-soft);
  color: var(--color-text);
}

strong {
  font-weight: var(--weight-semibold);
}


/* 4. Raster und Abschnitte */

.container {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.section__head {
  max-width: 42rem;
  margin-bottom: var(--space-7);
}

.section__title {
  font-size: var(--step-3);
  font-stretch: var(--stretch-display);
  font-weight: var(--weight-bold);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section__intro {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose p {
  max-width: 62ch;
}


/* 5. Bausteine */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--color-accent-fill);
  color: var(--color-on-accent);
  font: inherit;
  font-weight: var(--weight-semibold);
  font-stretch: var(--stretch-semi);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease-out, transform 0.15s ease-out;
}

.button:hover {
  background: var(--color-accent-fill-hover);
  color: var(--color-on-accent);
}

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

.button--small {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: var(--step--1);
}

.button--quiet {
  background: transparent;
  color: var(--color-accent);
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
}

.button--quiet:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

/* Helle Schaltfläche auf blauem Grund */
.button--light {
  background: var(--color-on-accent);
  color: var(--color-accent-ink);
}

.button--light:hover {
  background: var(--color-on-accent-hover);
  color: var(--color-accent-ink);
}

/* Textlink mit etwas mehr Gewicht, zum Beispiel neben einer Schaltfläche */
.link-strong {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: var(--weight-semibold);
}

.tag {
  display: inline-block;
  border: 1px solid transparent;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  line-height: 1.5;
  vertical-align: middle;
}

/* Hinweisleiste ganz oben */
.notice {
  background: var(--color-dark);
  color: var(--color-on-dark);
  font-size: var(--step--1);
  line-height: 1.45;
}

.notice p {
  padding-block: 0.625rem;
}


/* 6. Kopfzeile und Navigation */

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-m);
  background: var(--color-text);
  color: var(--color-surface);
  font-weight: var(--weight-semibold);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--color-text);
  text-decoration: none;
}

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

.brand__mark {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  /* Drehpunkt fürs Schwingen: oben am Ring */
  transform-origin: 29% 17%;
}

.brand__mark .tag-body {
  fill: var(--color-accent-fill);
}

.brand__mark .tag-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.brand__name {
  font-size: 1.1875rem;
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-heavy);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand__das {
  font-weight: var(--weight-normal);
}

.site-nav ul {
  display: flex;
  gap: var(--space-1);
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-s);
  color: var(--color-text);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-m);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  touch-action: manipulation;
}

.nav-toggle__icon {
  width: 1.125rem;
  height: 1.125rem;
}

.nav-toggle__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: transform 0.2s ease-out, opacity 0.15s ease-out;
  transform-origin: 8px 8px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon .bar-top {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon .bar-mid {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon .bar-bottom {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 56rem) {
  .nav-toggle:not([hidden]) {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    /* Der Container ist hier so breit wie der Bildschirm */
    left: 0;
    right: 0;
    padding: var(--space-2) var(--gutter) var(--space-5);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-menu);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding: 0.875rem 0.25rem;
    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
    font-size: var(--step-1);
  }

  .site-nav a:hover {
    background: transparent;
    color: var(--color-accent);
  }

  .site-nav .site-nav__cta {
    padding-top: var(--space-5);
  }

  .site-nav .site-nav__cta a {
    display: flex;
    padding: 0.75rem 1.375rem;
    border-bottom: 0;
    border-radius: var(--radius-m);
    color: var(--color-on-accent);
    font-size: var(--step-0);
  }

  .site-nav .site-nav__cta a:hover {
    background: var(--color-accent-fill-hover);
    color: var(--color-on-accent);
  }
}

/* Schalter für die helle und dunkle Darstellung. Breite Bildschirme: ein
   Symbol am Ende der Navigation, Mond für dunkel, Sonne für hell. Schmale:
   eine Zeile im Menü mit Schiebeschalter. Erscheint nur mit JavaScript. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-weight: var(--weight-medium);
  line-height: 1.3;
  cursor: pointer;
  touch-action: manipulation;
}

.theme-toggle:hover {
  background: var(--color-bg-alt);
}

.theme-toggle__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__sonne,
.theme-toggle[aria-pressed="true"] .theme-toggle__mond {
  display: none;
}

.theme-toggle[aria-pressed="true"] .theme-toggle__sonne {
  display: inline;
}

.theme-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.theme-toggle__schalter {
  display: none;
}

@media (max-width: 56rem) {
  .theme-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 0.875rem 0.25rem;
    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
    font-size: var(--step-1);
    text-align: left;
  }

  .theme-toggle:hover {
    background: transparent;
    color: var(--color-accent);
  }

  /* Im Menü immer der Mond, der Schalter zeigt, ob dunkel an ist */
  .theme-toggle[aria-pressed="true"] .theme-toggle__mond {
    display: inline;
  }

  .theme-toggle[aria-pressed="true"] .theme-toggle__sonne {
    display: none;
  }

  .theme-toggle__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .theme-toggle__schalter {
    position: relative;
    display: block;
    flex: none;
    width: 2.75rem;
    height: 1.625rem;
    margin-left: auto;
    border-radius: 999px;
    background: var(--color-line-strong);
    transition: background-color 0.2s ease-out;
  }

  .theme-toggle__schalter::after {
    content: "";
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--color-on-accent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease-out;
  }

  .theme-toggle[aria-pressed="true"] .theme-toggle__schalter {
    background: var(--color-accent-fill);
  }

  .theme-toggle[aria-pressed="true"] .theme-toggle__schalter::after {
    transform: translateX(1.125rem);
  }
}

/* Lichtschalter: Beim Umschalten macht der Browser ein Bild der alten und
   der neuen Darstellung (View Transitions). main.js lässt die helle als
   Kreis vom Schalter aus wachsen oder zieht sie dorthin zurück. Kann der
   Browser das nicht oder ist «Bewegung reduzieren» eingestellt, wechselt
   die Darstellung sofort. Seit Version 6 nutzen auch die Seitenwechsel
   diese Technik (Abschnitt 20), darum gilt das hier nur, solange main.js
   die Klasse ist-lichtschalter setzt. */
@media (prefers-reduced-motion: no-preference) {
  :root.ist-lichtschalter::view-transition-old(root),
  :root.ist-lichtschalter::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
  }

  /* Wird es dunkel, liegt das Bild der hellen Seite oben und schrumpft */
  :root.licht-aus::view-transition-old(root) {
    z-index: 1;
  }
}

/* Die Anfrage-Schaltfläche im Menü gibt es nur auf kleinen Bildschirmen */
@media (min-width: 56.0625rem) {
  .site-nav__cta {
    display: none;
  }
}

@media (max-width: 36rem) {
  .site-header__cta {
    display: none;
  }

  .site-header__inner {
    gap: var(--space-3);
  }

  .nav-toggle {
    padding-inline: 0.625rem;
  }

  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 22rem) {
  .brand__name {
    font-size: 1.0625rem;
  }

  .brand__mark {
    width: 2rem;
    height: 2rem;
  }
}


/* Die Navigation zeigt, in welchem Abschnitt man gerade liest (main.js,
   Abschnitt 6), und die Kopfzeile bekommt einen feinen Schatten, sobald
   die Seite darunter durchläuft. */
.site-nav a.is-aktuell {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.site-header.is-gescrollt {
  box-shadow: var(--shadow-kopf);
}

/* Merkpunkt direkt über der Kopfzeile, damit main.js weiss, wann sie oben
   anliegt. Nimmt keinen Platz ein. */
.kopf-marke {
  height: 1px;
  margin-bottom: -1px;
  pointer-events: none;
}

@media (max-width: 56rem) {
  .site-nav a.is-aktuell {
    text-decoration: none;
  }
}


/* 7. Startbereich mit Landschaft
   Die Landschaft ist eine Zeichnung (SVG) direkt in index.html.
   Beim Laden fährt das Auto einmal ins Bild. Scrollt man nach unten,
   fährt es nach links weg und kommt oben wieder (Abschnitt 17, main.js).
   Die Stile für das Auto gelten auch für die Zeichnung in «Das Auto». */

.hero {
  padding-top: clamp(2.25rem, 1rem + 3.5vw, 4rem);
  overflow: hidden;
  background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg) 30%, var(--scene-sky) 100%);
}

.hero__title {
  font-size: var(--step-5);
  font-stretch: var(--stretch-display);
  font-weight: var(--weight-heavy);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero__title span {
  display: block;
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 38rem) auto;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-5) var(--space-7);
  margin-top: var(--space-6);
}

.hero__lead {
  color: var(--color-text-muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero__lead strong {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}

@media (max-width: 52rem) {
  .hero__title {
    font-stretch: var(--stretch-semi);
  }

  .hero__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Die Landschaft. Auf schmalen Bildschirmen wird links und rechts
   abgeschnitten. Die Höhe ist so gewählt, dass das Auto immer ganz
   sichtbar bleibt (mindestens 680 von 1600 Einheiten Breite). */
.scene-wrap {
  position: relative;
  margin-top: clamp(1.5rem, 0.5rem + 3vw, 3rem);
}

.scene {
  display: block;
  width: 100%;
  height: min(max(min(48.5vw, 13rem), 20.6vw), 26rem);
}

/* Das Auto liegt als eigene Zeichnung genau über der Landschaft: gleiche
   Fläche, gleicher Ausschnitt. So kann der Browser es als eigene Ebene
   verschieben, ohne die Landschaft neu zu zeichnen. */
.scene__auto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scene__hill--far {
  fill: var(--scene-far);
}

.scene__hill--near,
.scene__verge {
  fill: var(--scene-near);
}

.scene__tree {
  fill: var(--scene-tree);
}

.scene__tree--dark {
  fill: var(--scene-tree-dark);
}

.scene__trunk,
.scene__post {
  fill: none;
  stroke: var(--scene-trunk);
}

.scene__trunk {
  stroke-width: 3;
  stroke-linecap: round;
}

.scene__post {
  stroke-width: 5;
}

.scene__house {
  fill: var(--scene-house);
}

.scene__roof,
.scene__window {
  fill: var(--scene-roof);
}

.scene__cloud {
  fill: var(--scene-cloud);
}

.scene__board {
  fill: var(--color-accent-fill);
}

.scene__board-edge {
  fill: none;
  stroke: var(--color-on-accent);
  stroke-width: 2.5;
}

.scene__sign-text {
  fill: var(--color-on-accent);
  font-family: var(--font);
  font-size: 30px;
  font-weight: var(--weight-semibold);
  font-stretch: var(--stretch-normal);
}

.scene__road {
  fill: var(--scene-road);
}

.scene__road-dash {
  fill: none;
  stroke: var(--scene-dash);
  stroke-width: 3;
  stroke-dasharray: 40 36;
}

/* Tageszeit: Die Landschaft zeigt, wie es gerade in Dulliken ist (main.js
   setzt data-tageszeit nach dem Sonnenstand). Am Tag bleibt alles wie
   gewohnt. In der Dämmerung wird der Himmel warm, in der Nacht blau, und in
   beiden brennt Licht in den Häusern, das Auto fährt mit Licht.
   Es bewegt sich nichts, nur die Farben ändern sich. */
.car__beam {
  fill: url(#scheinwerfer);
  opacity: 0;
}

/* Die Räder drehen beim Wegfahren um ihre Mitte */
.scene__rad {
  transform-box: fill-box;
  transform-origin: center;
}

.scene__moon {
  display: none;
  fill: var(--scene-moon);
}

.hero[data-tageszeit="nacht"] .scene__moon {
  display: inline;
}

.hero[data-tageszeit="daemmerung"] {
  --scene-sky: #EFDDD6;
  --scene-far: #DDD9E2;
  --scene-near: #CFCFDB;
  --scene-tree: #B6BACB;
  --scene-tree-dark: #A5AABE;
  --scene-house: #E6E3EA;
  --scene-cloud: #FBF0EB;
}

.hero[data-tageszeit="nacht"] {
  --scene-sky: #BAC5DB;
  --scene-far: #A8B4CC;
  --scene-near: #98A5C0;
  --scene-tree: #8794B0;
  --scene-tree-dark: #7987A3;
  --scene-trunk: #6C7994;
  --scene-house: #B9C3D7;
  --scene-roof: #7F8CA7;
  --scene-road: #1F2638;
  --scene-cloud: #D5DCE9;
}

.hero[data-tageszeit] .scene__window {
  fill: var(--scene-light);
}

.hero[data-tageszeit] .car__beam {
  opacity: 1;
}

.hero[data-tageszeit] .car__lamp--vorne {
  fill: var(--car-light-front);
}

.hero[data-tageszeit] .car__lamp--hinten {
  fill: var(--car-light-rear);
}

/* Dunkle Darstellung: Dämmerung und Nacht in dunklen Farben. Den Tag
   regeln die Gestaltungswerte in Abschnitt 2, die Lichter bleiben gleich. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero[data-tageszeit="daemmerung"] {
    --scene-sky: #3A2A40;
    --scene-far: #2C2843;
    --scene-near: #25243C;
    --scene-tree: #33304D;
    --scene-tree-dark: #393656;
    --scene-trunk: #504B6C;
    --scene-house: #2F2D49;
    --scene-roof: #423E60;
    --scene-road: #100F1C;
    --scene-dash: #C9C6D6;
    --scene-cloud: #4B3B52;
  }

  :root:not([data-theme="light"]) .hero[data-tageszeit="nacht"] {
    --scene-sky: #121B35;
    --scene-far: #16203C;
    --scene-near: #1B2646;
    --scene-tree: #233056;
    --scene-tree-dark: #28365E;
    --scene-trunk: #374675;
    --scene-house: #202B4C;
    --scene-roof: #2D3A62;
    --scene-road: #090C17;
    --scene-dash: #B7BFD1;
    --scene-cloud: #202C4B;
  }
}

:root[data-theme="dark"] .hero[data-tageszeit="daemmerung"] {
  --scene-sky: #3A2A40;
  --scene-far: #2C2843;
  --scene-near: #25243C;
  --scene-tree: #33304D;
  --scene-tree-dark: #393656;
  --scene-trunk: #504B6C;
  --scene-house: #2F2D49;
  --scene-roof: #423E60;
  --scene-road: #100F1C;
  --scene-dash: #C9C6D6;
  --scene-cloud: #4B3B52;
}

:root[data-theme="dark"] .hero[data-tageszeit="nacht"] {
  --scene-sky: #121B35;
  --scene-far: #16203C;
  --scene-near: #1B2646;
  --scene-tree: #233056;
  --scene-tree-dark: #28365E;
  --scene-trunk: #374675;
  --scene-house: #202B4C;
  --scene-roof: #2D3A62;
  --scene-road: #090C17;
  --scene-dash: #B7BFD1;
  --scene-cloud: #202C4B;
}

/* Taschenlampe (main.js, Abschnitt 5): Ist die Landschaft dunkel (dunkle
   Darstellung, Dämmerung oder Nacht), zeigt ein Lichtkreis die helle
   Tageslandschaft darunter. main.js legt dafür zwischen Landschaft und
   Auto ein rundes Fenster (.scene__lampe) mit einer Kopie der Landschaft
   in hellen Farben (.scene__lampe-bild). Das Fenster fährt dem Zeiger
   nach, die Kopie gleich weit zurück, so bleibt sie deckungsgleich. Der
   Browser verschiebt dafür nur zwei Ebenen und muss nichts neu zeichnen.
   Auf dem Handy bleibt senkrecht scrollen beim Browser, quer wischen
   führt die Lampe. */
.scene-wrap.hat-lampe {
  touch-action: pan-y;
  touch-action: pan-y pinch-zoom;
}

.scene__lampe {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  width: 15rem;
  height: 15rem;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 52%, rgba(0, 0, 0, 0.55) 76%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 52%, rgba(0, 0, 0, 0.55) 76%, transparent 100%);
  transition: opacity 0.45s ease-out, visibility 0s linear 0.45s;
  /* Farben der hellen Landschaft am Tag */
  --scene-sky: #E4EAF4;
  --scene-far: #DDE3EC;
  --scene-near: #D2D9E4;
  --scene-tree: #BAC4D3;
  --scene-tree-dark: #A9B4C5;
  --scene-trunk: #8E98AB;
  --scene-house: #E3E8EF;
  --scene-roof: #AEB8C8;
  --scene-road: #283046;
  --scene-dash: #E6EBF3;
  --scene-cloud: #FCFDFE;
  --color-accent-fill: #1F45B5;
  --color-on-accent: #FCFDFE;
}

.scene__lampe.is-an {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease-out, visibility 0s;
}

/* Die Kopie ist so gross wie die Landschaft. Oben im Himmel blendet sie
   aus, damit das Licht am oberen Rand der Landschaft nicht abbricht. */
.scene__lampe-bild {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 15%, #000 42%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 15%, #000 42%);
}

/* Heller Himmel hinter den Hügeln (in der Seite kommt er vom Hintergrund) */
.scene__himmel {
  fill: var(--scene-sky);
}

/* Im Lichtkreis ist Tag: kein Mond, kein Licht in den Häusern */
.hero[data-tageszeit] .scene__lampe .scene__window {
  fill: var(--scene-roof);
}

.hero[data-tageszeit="nacht"] .scene__lampe .scene__moon {
  display: none;
}

/* Die Lampe gibt es nur, wenn die Landschaft dunkel ist */
.hero[data-tageszeit] .scene__lampe,
:root[data-theme="dark"] .scene__lampe {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene__lampe {
    display: block;
  }
}

.scene__auto .car__shadow {
  fill-opacity: 0.3;
}

/* Das Auto: Linien in Tinte, Fenster leicht blau */
.car__body {
  fill: var(--car-body);
  stroke: var(--car-ink);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.car__glass {
  fill: var(--car-glass);
  stroke: var(--car-ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.car__trim,
.car__tire,
.car__hub {
  fill: var(--car-ink);
}

/* In der dunklen Darstellung ein feiner Rand, damit die Reifen auf
   dunklem Grund sichtbar bleiben */
.car__tire {
  stroke: var(--car-tire-edge);
  stroke-width: 2;
}

.car__well {
  fill: var(--car-ink);
  fill-opacity: 0.92;
}

.car__line {
  fill: none;
  stroke: var(--car-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.car__soft {
  fill: none;
  stroke: var(--car-ink);
  stroke-opacity: 0.45;
  stroke-width: 1.25;
  stroke-linecap: round;
}

.car__lamp {
  fill: var(--car-detail);
  stroke: var(--car-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.car__rim,
.car__hubcap {
  fill: var(--car-detail);
  stroke: var(--car-ink);
  stroke-width: 2;
}

.car__lip {
  fill: none;
  stroke: var(--car-ink);
  stroke-opacity: 0.35;
  stroke-width: 1;
}

.car__spoke {
  fill: none;
  stroke: var(--car-ink);
  stroke-width: 6;
  stroke-linecap: round;
}

.car__shine {
  fill: none;
  stroke: var(--car-body);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-opacity: 0.8;
}

.car__shadow {
  fill: var(--car-shadow);
  fill-opacity: 0.07;
}


/* Zusagen gleich unter dem Startbild: nur, was fest gilt */
.zusagen {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
}

.zusagen__liste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-7);
  padding-block: var(--space-4);
  list-style: none;
}

.zusagen__punkt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

.zusagen__haken {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0.125rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 46rem) {
  .zusagen__liste {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}


/* 8. Preise
   Der Monat ist der Schwerpunkt. Er steht auf einem grossen Anhänger
   in der Form des Logos: oben abgeschrägte Ecken, ein Loch und ein Ring. */

.prices {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: var(--space-7) clamp(2rem, 1rem + 4vw, 5rem);
}

.offer-wrap {
  position: relative;
  max-width: 34rem;
  padding-top: 2.5rem;
}

/* Der Ring geht durch das Loch des Anhängers. Der ganze Ring liegt hinter
   dem Anhänger (::before) und ist nur oben und im Loch zu sehen. Vorne liegt
   das Viertel rechts unten (::after): Dort kommt der Ring über die Oberkante
   und taucht ins Loch. */
.offer-wrap::before,
.offer-wrap::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin-left: -2.25rem;
  border: 4px solid var(--color-text);
  border-radius: 50%;
  pointer-events: none;
}

.offer-wrap::after {
  border-color: transparent var(--color-text) transparent transparent;
  transform: rotate(45deg);
}

.offer {
  --chamfer: 2.5rem;
  position: relative;
  /* Massstab für den Preis: Er richtet sich nach der Breite des Anhängers */
  container-type: inline-size;
  padding: 4.5rem var(--space-6) var(--space-6);
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  background: var(--color-accent-fill);
  color: var(--color-on-accent);
  clip-path: polygon(var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%, 0 var(--chamfer));
  /* Das Loch ist echt: Durch das Loch sieht man den Ring und den Hintergrund */
  -webkit-mask: radial-gradient(circle at 50% 2.125rem, transparent 0.75rem, #000 calc(0.75rem + 0.5px));
  mask: radial-gradient(circle at 50% 2.125rem, transparent 0.75rem, #000 calc(0.75rem + 0.5px));
}

/* Der Rand des Lochs */
.offer::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 50%;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: -0.875rem;
  border: 2px solid var(--color-accent-fill-edge);
  border-radius: 50%;
}

.offer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.offer__name {
  font-size: var(--step-2);
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-bold);
  line-height: 1.2;
}

.offer__badge {
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--color-on-accent-line);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  line-height: 1.5;
}

.offer__price {
  margin-top: var(--space-5);
  font-size: var(--step-4);
  /* «CHF 1’090» ist knapp 6 Schriftgrössen breit. Höchstens so gross,
     dass der Preis auf jeder Breite ganz auf den Anhänger passt. */
  font-size: min(var(--step-4), 16.6cqi);
  font-stretch: var(--stretch-display);
  font-weight: var(--weight-heavy);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.offer__km {
  margin-top: var(--space-3);
  font-weight: var(--weight-semibold);
}

.offer__text {
  max-width: 30rem;
  margin-top: var(--space-4);
  color: var(--color-on-accent-muted);
}

.offer .button {
  margin-top: var(--space-6);
}

.offer :focus-visible {
  outline-color: var(--color-on-accent);
}

/* Woche, Wochenende und Tag */
.price-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--color-text);
}

.price-table th,
.price-table td {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  padding-right: var(--space-5);
  font-weight: var(--weight-normal);
}

.price-table__name {
  display: block;
  font-size: var(--step-2);
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.price-table__km {
  display: block;
  margin-top: var(--space-1);
  font-weight: var(--weight-semibold);
}

.price-table__note {
  display: block;
  max-width: 34rem;
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

.price-table td {
  text-align: right;
}

.price-table__price {
  display: block;
  font-size: var(--step-2);
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-table__link {
  display: inline-block;
  margin-top: var(--space-2);
  padding-block: var(--space-1);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
}

/* Auf Touch-Geräten eine Tippfläche von gut 40 Pixeln Höhe */
@media (pointer: coarse) {
  .price-table__link {
    margin-top: 0;
    padding-block: 0.625rem;
  }
}

/* Zuschläge und Kaution in einer Reihe */
.extras {
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-6) var(--space-6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  background: var(--color-surface);
}

.extras__title {
  font-size: var(--step-1);
  font-stretch: var(--stretch-semi);
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.extras__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.extras__list div {
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
}

.extras__list dt {
  color: var(--color-text-muted);
  font-size: var(--step--1);
}

.extras__list dd {
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 64rem) {
  .extras__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 56rem) {
  .prices {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 30rem) {
  .offer {
    --chamfer: 1.75rem;
    padding: 4.25rem var(--space-5) var(--space-5);
  }

  .price-table th {
    padding-right: var(--space-3);
  }

  .extras {
    padding: var(--space-5);
  }

  .extras__list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }
}

@media (max-width: 24rem) {
  .price-table__name,
  .price-table__price {
    font-size: 1.25rem;
    font-stretch: 104%;
  }
}


/* Preis pro Tag */
.offer__pro-tag {
  margin-top: var(--space-1);
  color: var(--color-on-accent-muted);
  font-size: var(--step--1);
}

.price-table__pro-tag {
  display: block;
  margin-top: 0.125rem;
  color: var(--color-text-muted);
  font-size: var(--step--1);
  white-space: nowrap;
}

/* Preisrechner (main.js, Abschnitt 7): links die Angaben, rechts der
   Richtpreis. Auf schmalen Bildschirmen untereinander. */
.rechner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-6) var(--space-7);
  margin-top: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  background: var(--color-surface);
}

.rechner[hidden] {
  display: none;
}

.rechner__titel {
  font-size: var(--step-2);
  font-stretch: var(--stretch-semi);
  font-weight: var(--weight-bold);
  line-height: 1.2;
}

.rechner__gruppe {
  min-width: 0;
  margin: var(--space-5) 0 0;
  padding: 0;
  border: 0;
}

.rechner__legende,
.rechner__km-kopf {
  font-weight: var(--weight-semibold);
}

.rechner__legende {
  margin-bottom: var(--space-2);
}

.rechner__km {
  margin-top: var(--space-5);
}

.rechner__km-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
}

.rechner__km-wert {
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}

.rechner__schieber {
  display: block;
  width: 100%;
  height: 1.75rem;
  margin: var(--space-2) 0 0;
  accent-color: var(--color-accent-fill);
  cursor: pointer;
  touch-action: pan-y;
}

.rechner__km-hinweis,
.rechner__kaution,
.rechner__hinweis {
  color: var(--color-text-muted);
  font-size: var(--step--1);
  line-height: 1.45;
}

.rechner__km-hinweis {
  margin-top: var(--space-1);
}

.rechner__optionen {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.rechner__ergebnis {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: var(--space-5) var(--space-6) var(--space-6);
  border-radius: var(--radius-m);
  background: var(--color-bg-alt);
}

.rechner__vorspann {
  color: var(--color-text-muted);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
}

.rechner__total {
  margin-top: var(--space-1);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-heavy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rechner__pro-tag {
  margin-top: var(--space-1);
  font-weight: var(--weight-semibold);
}

.rechner__posten {
  width: 100%;
  margin: var(--space-4) 0 0;
  font-size: var(--step--1);
}

.rechner__posten div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-top: 1px solid var(--color-line);
}

.rechner__posten dt {
  color: var(--color-text-muted);
}

.rechner__posten dd {
  margin: 0;
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rechner__kaution {
  margin-top: var(--space-3);
}

.rechner__ergebnis .button {
  margin-top: var(--space-5);
}

.rechner__hinweis {
  margin-top: var(--space-3);
}

@media (max-width: 56rem) {
  .rechner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
    padding: var(--space-5);
  }
}

@media (max-width: 30rem) {
  .rechner {
    padding: var(--space-4);
  }

  .rechner__ergebnis {
    padding: var(--space-4);
  }
}


/* 9. Das Auto
   Oben die beschriftete Zeichnung auf Rasterpapier, darunter Text und
   Datenblatt im Stil eines Fahrzeugausweises. Ist das Auto oben im
   Startbild weggefahren, fährt es hier wieder ein (Abschnitt 17). */

.blueprint {
  margin-bottom: var(--space-7);
  padding: clamp(1.5rem, 0.5rem + 3vw, 3rem) clamp(0.75rem, 0.25rem + 2vw, 2.5rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  background-color: var(--color-surface);
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 1.5rem 1.5rem;
}

.car svg {
  width: 100%;
  max-width: 60rem;
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

.car__ground {
  stroke: var(--color-line-strong);
  stroke-width: 1.5;
}

.car__leader {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
}

.car__dot {
  fill: var(--color-accent);
  stroke: var(--color-surface);
  stroke-width: 2.5;
}

.car__label {
  fill: var(--color-accent);
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--weight-medium);
  font-stretch: var(--stretch-normal);
}

/* Auf mittleren Bildschirmen etwas grössere Beschriftungen */
@media (max-width: 64rem) {
  .car__label {
    font-size: 18px;
  }
}

/* Auf kleinen Bildschirmen wären die Beschriftungen zu klein.
   Dann zeigen wir nur das Auto und eine Liste darunter. */
.car__facts {
  display: none;
}

@media (max-width: 45rem) {
  .car__callouts {
    display: none;
  }

  .car svg {
    margin-block: -7% -8.5%;
  }

  .car__facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-5);
    padding: 0;
    list-style: none;
  }

  .car__facts li {
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-accent-strong);
    font-size: var(--step--1);
    font-weight: var(--weight-semibold);
  }
}

.vehicle {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: var(--space-7) clamp(2rem, 1rem + 4vw, 5rem);
}

.vehicle__text p {
  font-size: var(--step-1);
  line-height: 1.55;
}

/* Datenblatt im Stil eines Fahrzeugausweises: jedes Feld mit Bezeichnung */
.spec {
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius-l);
  background: var(--color-surface);
  overflow: hidden;
}

.spec__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1.5px solid var(--color-text);
}

.spec__title {
  font-size: var(--step-0);
  font-stretch: var(--stretch-semi);
  font-weight: var(--weight-bold);
}

.spec__number {
  color: var(--color-text-muted);
  font-size: var(--step--1);
}

.spec__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spec__field {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-line);
}

.spec__field:nth-child(odd):not(.spec__field--wide) {
  border-right: 1px solid var(--color-line);
}

.spec__field--wide {
  grid-column: 1 / -1;
}

.spec__field:last-child {
  border-bottom: 0;
}

.spec__field dt {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.spec__field dd {
  margin-top: 0.125rem;
  font-size: 1.125rem;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

@media (max-width: 56rem) {
  .vehicle {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 30rem) {
  .spec__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec__field:nth-child(odd):not(.spec__field--wide) {
    border-right: 0;
  }
}

/* Fotogalerie im Abschnitt «Das Auto»: vorbereitet für die ersten Fotos.
   Anleitung im Kommentar FOTOS in index.html und in LIESMICH.md. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.gallery figure:first-child {
  grid-column: 1 / -1;
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-l);
  background: var(--color-bg-alt);
}

.gallery figure:first-child img {
  aspect-ratio: 16 / 9;
}

@media (min-width: 56.0625rem) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery figure:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery figure:first-child img {
    height: 100%;
    aspect-ratio: auto;
  }
}


/* 10. Ablauf
   Die vier Schritte liegen an einer Strasse wie Haltestellen.
   Breite Bildschirme: Strasse waagrecht. Schmale: Strasse senkrecht. */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  padding: 0;
  list-style: none;
}

/* Die Strasse mit Mittellinie */
.steps::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  height: 1.75rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--road-dash) 0 50%, transparent 50% 100%) 0 50% / 2.75rem 2px repeat-x,
    var(--road);
}

.step {
  position: relative;
}

.step__number {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-accent);
  font-size: var(--step-1);
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}

.step__title {
  margin-top: var(--space-4);
  font-size: var(--step-1);
  font-stretch: var(--stretch-semi);
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.step p {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

/* Ein kleines Auto fährt beim Scrollen die Strasse entlang. Jede
   Haltestelle leuchtet, sobald das Auto sie erreicht hat. Breite
   Bildschirme: main.js setzt die Lage. Schmale: Das Auto bleibt auf
   Lesehöhe stehen, solange die Strasse durchs Bild läuft. Das erledigt
   der Browser selbst («sticky», weiter unten), darum ruckelt es nicht.
   Ohne JavaScript und bei «Bewegung reduzieren» bleibt es verborgen. */
.steps-wrap {
  position: relative;
}

.steps__bahn {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.steps__car {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 2.25rem;
  height: 1.125rem;
}

.steps__car svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mini__body,
.mini__mirror {
  fill: var(--car-body);
  stroke: var(--car-ink);
  stroke-width: 1.5;
}

.mini__glass {
  fill: var(--car-glass);
  stroke: var(--car-ink);
  stroke-width: 1;
  stroke-linejoin: round;
}

.step.is-erreicht .step__number {
  background: var(--color-accent-fill);
  color: var(--color-on-accent);
}

@media (max-width: 60rem) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    max-width: 40rem;
  }

  .steps::before {
    top: 0;
    bottom: 0;
    left: 0.5rem;
    right: auto;
    width: 1.75rem;
    height: auto;
    background:
      linear-gradient(180deg, var(--road-dash) 0 50%, transparent 50% 100%) 50% 0 / 2px 2.75rem repeat-y,
      var(--road);
  }

  .step {
    min-height: 2.75rem;
    padding-left: 4rem;
  }

  .step__number {
    position: absolute;
    top: 0;
    left: 0;
  }

  .step__title {
    margin-top: 0.4rem;
  }

  /* Die Bahn liegt auf der Mitte der Strasse, oben und unten um ein
     Viertel der Autolänge kürzer, weil das Auto gedreht ist. So bleibt
     es an beiden Enden ganz auf der Strasse. */
  .steps__bahn {
    top: 0.5625rem;
    bottom: 0.5625rem;
    left: 0.25rem;
    right: auto;
    width: 2.25rem;
  }

  /* Mitte des Autos auf 60 Prozent der Bildschirmhöhe */
  .steps__car {
    position: sticky;
    top: calc(60vh - 0.5625rem);
    top: calc(60svh - 0.5625rem);
    transform: rotate(90deg);
  }
}


/* 11. Gut zu wissen */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-7) var(--space-6);
}

.fact {
  padding-top: var(--space-4);
  border-top: 2px solid var(--color-text);
}

.fact__title {
  font-size: var(--step-1);
  font-stretch: var(--stretch-semi);
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.fact p {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

.facts__more {
  margin-top: var(--space-7);
}

@media (max-width: 60rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}


/* 12. Über uns
   Ein Schlüsselbrett mit einem Schlüssel und freien Haken.
   Fährt man mit der Maus darüber, schwingt der Anhänger. */

.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: var(--space-7) clamp(2rem, 1rem + 5vw, 6rem);
}

.about__text p {
  font-size: var(--step-1);
  line-height: 1.55;
}

.about__sign {
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-bold);
}

.about__visual svg {
  width: min(100%, 26rem);
  margin-inline: auto;
  overflow: visible;
}

.board__plank {
  fill: var(--color-surface);
  stroke: var(--color-text);
  stroke-width: 2.5;
}

.board__screw {
  fill: var(--color-bg-alt);
  stroke: var(--color-text);
  stroke-width: 1.5;
}

.board__hook {
  fill: none;
  stroke: var(--color-text);
  stroke-width: 4;
  stroke-linecap: round;
}

.board__number {
  fill: var(--color-text-muted);
  font-family: var(--font);
  font-size: 15px;
  font-weight: var(--weight-semibold);
}

.keytag {
  transform-box: view-box;
  transform-origin: 113px 131px;
}

.keytag__ring {
  fill: none;
  stroke: var(--color-text);
  stroke-width: 4;
}

.keytag__body {
  fill: var(--color-accent-fill);
}

/* Das Loch ist echt, durch das Loch sieht man den Ring */
.keytag__hole {
  fill: none;
  stroke: var(--color-accent-fill-edge);
  stroke-width: 2;
}

.keytag__edge {
  fill: none;
  stroke: var(--color-on-accent);
  stroke-opacity: 0.35;
  stroke-width: 2;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.keytag__small {
  fill: var(--color-on-accent);
  fill-opacity: 0.85;
  font-family: var(--font);
  font-size: 13px;
  font-weight: var(--weight-medium);
}

.keytag__text {
  fill: var(--color-on-accent);
  font-family: var(--font);
  font-size: 58px;
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-heavy);
}

@media (max-width: 52rem) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__visual {
    order: -1;
  }

  .about__visual svg {
    width: min(100%, 20rem);
    margin-inline: 0;
  }
}


/* Zahlen bei «Über uns»: klein und ehrlich */
.zahlen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 34rem;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--color-line);
  list-style: none;
}

.zahlen li {
  margin: 0;
}

.zahlen__wert {
  display: block;
  color: var(--color-accent);
  font-size: var(--step-4);
  font-stretch: var(--stretch-display);
  font-weight: var(--weight-heavy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.zahlen__text {
  display: block;
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--step--1);
  line-height: 1.4;
}


/* 13. Anfrage und Kontakt */

.request {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: start;
  gap: var(--space-7) clamp(2rem, 1rem + 5vw, 6rem);
}

.form {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.field {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.field label,
.form__legend {
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

.field__optional {
  color: var(--color-text-muted);
  font-weight: var(--weight-normal);
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: max(1rem, 16px);
  line-height: 1.4;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

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

.field input:hover,
.field textarea:hover {
  border-color: var(--color-text-muted);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

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

/* Auswahl der Mietdauer als Schalterreihe */
.form__group {
  min-width: 0;
  padding: 0;
  border: 0;
}

.form__legend {
  margin-bottom: var(--space-2);
  padding: 0;
}

.choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.choice {
  position: relative;
}

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

.choice label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  font-weight: var(--weight-semibold);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, transform 0.12s ease-out;
}

.choice input:hover + label {
  border-color: var(--color-text-muted);
}

.choice input:checked + label {
  border-color: var(--color-accent-fill);
  background: var(--color-accent-fill);
  color: var(--color-on-accent);
}

.choice input:focus-visible + label {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.form__group[aria-invalid="true"] .choice label {
  border-color: var(--color-error);
}

/* Kontrollkästchen */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.check input {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.1rem 0 0;
  accent-color: var(--color-accent-fill);
  cursor: pointer;
}

.check label {
  cursor: pointer;
}

.check__hint {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--step--1);
}

.form__error {
  display: flex;
  gap: var(--space-2);
  color: var(--color-error);
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
  line-height: 1.4;
}

.form__error::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--color-error);
  color: var(--color-on-error);
  font-size: 0.75rem;
  font-weight: var(--weight-heavy);
  line-height: 1;
}

.form__error[hidden] {
  display: none;
}

.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-2);
}

.form__hint {
  color: var(--color-text-muted);
  font-size: var(--step--1);
}

/* Rückmeldung nach dem Absenden */
.form__status {
  padding: var(--space-5);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-l);
  background: var(--color-surface);
}

.form__status[hidden] {
  display: none;
}

.form__status-title {
  font-size: var(--step-1);
  font-stretch: var(--stretch-semi);
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.form__status p {
  margin-top: var(--space-2);
}

.form__status > :first-child {
  margin-top: 0;
}

.form__status textarea {
  display: block;
  width: 100%;
  min-height: 12rem;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: var(--step--1);
  line-height: 1.5;
  resize: vertical;
}

.form__status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-4);
}

.form__copied {
  color: var(--color-text-muted);
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
}

.contact {
  padding: var(--space-6);
  border-radius: var(--radius-l);
  background: var(--color-dark);
  box-shadow: inset 0 0 0 1px var(--color-dark-edge);
  color: var(--color-on-dark);
}

.contact__title {
  color: var(--color-on-dark-strong);
  font-size: var(--step-1);
  font-stretch: var(--stretch-semi);
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.contact__list {
  margin-top: var(--space-4);
}

.contact__list div {
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-on-dark-line);
}

.contact__list dt {
  color: var(--color-on-dark-muted);
  font-size: var(--step--1);
}

.contact__list dd {
  color: var(--color-on-dark-strong);
  font-weight: var(--weight-medium);
}

.contact a {
  color: var(--color-on-dark-strong);
}

.contact a:hover {
  color: var(--color-on-dark-strong);
}

.contact :focus-visible {
  outline-color: var(--color-on-dark-strong);
}

.contact__route {
  margin-top: var(--space-3);
}

@media (max-width: 56rem) {
  .request {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* iOS: Datumsfelder gleich breit wie die anderen Felder. Sonst zeichnet
   iOS sie als Knopf, rechnet die Innenabstände zur Breite dazu und setzt
   eine Mindestbreite, dann ragen sie rechts über den Rand. Der Kalender zum
   Auswählen öffnet sich weiterhin. */
.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  max-width: 100%;
}

/* iOS: Datum linksbündig wie in den anderen Feldern, ein leeres Feld behält
   seine Höhe */
.field input::-webkit-date-and-time-value {
  margin: 0;
  min-height: 1.4em;
  text-align: left;
}

@media (max-width: 34rem) {
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact {
    padding: var(--space-5);
  }

  /* Auf dem Handy ist die Schaltfläche so breit wie das Formular */
  .form__submit .button {
    width: 100%;
  }
}


/* Rückmeldungen nach dem Absenden
   Der Fokus springt auf den Kasten, damit Screenreader ihn vorlesen.
   Ein Fokusrahmen ist dafür nicht nötig, der Kasten hat schon einen Rand. */
.form__status:focus {
  outline: none;
}

.form__status--ok {
  border-color: var(--color-accent);
}

.form__status--fail {
  border-color: var(--color-error);
}

.form__status--fail .form__status-title {
  color: var(--color-error);
}

/* Ohne JavaScript erscheint diese Meldung über die Adresse #anfrage-fehler */
#anfrage-fehler {
  display: none;
}

#anfrage-fehler:target {
  display: block;
}

/* Schaltfläche, während die Anfrage gesendet wird */
.button.is-loading {
  cursor: progress;
}

.button.is-loading::after {
  content: "";
  flex: none;
  width: 1em;
  height: 1em;
  margin-left: var(--space-3);
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button.is-loading::after {
    animation: none;
    border-right-color: currentColor;
    opacity: 0.6;
  }
}


/* Anfrage-Leiste auf dem Handy (main.js, Abschnitt 8): unten am Rand,
   mit Platz für den Balken des iPhones. Auf breiten Bildschirmen gibt es
   sie nicht, dort steht «Anfrage senden» immer oben. */
.leiste {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: var(--shadow-leiste);
  visibility: hidden;
  transform: translateY(110%);
}

.leiste[hidden] {
  display: none;
}

.leiste.is-sichtbar {
  visibility: visible;
  transform: none;
}

.leiste__preis {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0 var(--space-2);
  min-width: 0;
  line-height: 1.25;
}

.leiste__dauer {
  color: var(--color-text-muted);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
}

.leiste__betrag {
  font-size: var(--step-1);
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.leiste__km {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
  font-size: var(--step--1);
}

.leiste__knopf {
  flex: none;
}

/* Wer mit der Tastatur durch die Seite geht, soll das gewählte Feld nicht
   hinter der Leiste suchen müssen */
@media (max-width: 56rem) {
  html {
    scroll-padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

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


/* 14. Fusszeile */

.site-footer {
  padding-block: var(--space-8) var(--space-6);
  background: var(--color-dark);
  color: var(--color-on-dark);
  font-size: var(--step--1);
}

.site-footer a {
  color: var(--color-on-dark);
}

.site-footer a:hover {
  color: var(--color-on-dark-strong);
}

.site-footer a[aria-current="page"] {
  color: var(--color-on-dark-strong);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.site-footer :focus-visible {
  outline-color: var(--color-on-dark);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-6);
}

.site-footer .brand {
  color: var(--color-on-dark-strong);
}

.site-footer .brand__mark .tag-body {
  fill: var(--color-on-dark);
}

.site-footer .brand__mark .tag-ring {
  stroke: var(--color-on-dark-muted);
}

.site-footer__claim {
  margin-top: var(--space-3);
  color: var(--color-on-dark-muted);
}

.site-footer__nav ul {
  display: grid;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  display: inline-block;
  padding-block: 0.625rem;
}

.site-footer__base {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-on-dark-line);
  color: var(--color-on-dark-muted);
}

@media (max-width: 48rem) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Ortsende-Tafel am Ende jeder Seite (Version 6, statt des grossen
   Schriftzugs), nur zur Zierde: Wer bis hierher gelesen hat, verlässt
   Dulliken. Die gleiche Tafel wie im Startbild, mit dem roten Balken des
   Signals «Ende der Ortschaft», auf zwei Pfosten bis an den Rand der Seite.
   Der Name steht hier statt in der Seite, damit er nicht als Text gilt.
   Alle Masse sind Teile der Tafelbreite (cqw), so passen Rand, Balken und
   Schrift bei jeder Grösse zusammen: Die Tafel im Startbild ist 170
   Einheiten breit, 1 Einheit sind hier 0.588cqw. Kommt die Tafel ins
   Bild, zieht sich der Balken einmal über den Namen (main.js, Abschnitt 5a,
   Bewegung in Abschnitt 20). */
.site-footer__ortsende {
  margin-top: var(--space-7);
  margin-bottom: calc(-1 * var(--space-6));
  user-select: none;
}

.ortsende {
  position: relative;
  display: block;
  width: min(100%, clamp(12rem, 9rem + 12vw, 19rem));
  padding-bottom: clamp(2rem, 1rem + 3vw, 3.25rem);
  container-type: inline-size;
}

/* Die Pfosten stehen wie im Startbild bei 32 und 138 von 170 Einheiten */
.ortsende__pfosten {
  position: absolute;
  top: 28cqw;
  right: 0;
  bottom: 0;
  left: 0;
}

.ortsende__pfosten::before,
.ortsende__pfosten::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 17.35cqw;
  width: 2.95cqw;
  background: color-mix(in srgb, var(--color-on-dark-muted) 55%, transparent);
}

.ortsende__pfosten::after {
  right: 17.35cqw;
  left: auto;
}

.ortsende__tafel {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 170 / 56;
  border-radius: 2.35cqw;
  background: var(--color-accent-fill);
  outline: 1.47cqw solid var(--color-on-accent);
  outline-offset: -4.26cqw;
  color: var(--color-on-accent);
  font-size: 17.65cqw;
  font-stretch: var(--stretch-normal);
  font-weight: var(--weight-semibold);
  line-height: 1;
}

.ortsende__tafel::before {
  content: "Dulliken";
}

/* Roter Balken von links unten nach rechts oben, innerhalb des Randes */
.ortsende__tafel::after {
  content: "";
  position: absolute;
  inset: 4.26cqw;
  border-radius: 1.2cqw;
  background: linear-gradient(to bottom right, transparent calc(50% - 2cqw), var(--car-light-rear) calc(50% - 2cqw) calc(50% + 2cqw), transparent calc(50% + 2cqw));
}


/* 15. Rechtliche Seiten und Fehlerseite */

.page-head {
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.page-title {
  font-size: var(--step-3);
  font-stretch: var(--stretch-display);
  font-weight: var(--weight-heavy);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.legal {
  max-width: 46rem;
  padding-block: var(--space-6) var(--section-space);
}

.legal h2 {
  margin-top: var(--space-7);
  font-size: var(--step-2);
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-bold);
  line-height: 1.25;
}

.legal h3 {
  margin-top: var(--space-5);
  font-size: var(--step-1);
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.legal p,
.legal ul,
.legal address,
.legal dl {
  margin-top: var(--space-3);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: var(--space-1);
}

.legal__lead {
  color: var(--color-text-muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

.legal__data {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-2) var(--space-5);
}

.legal__data dt {
  color: var(--color-text-muted);
}

.legal__updated {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-size: var(--step--1);
}

@media (max-width: 30rem) {
  .legal__data {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .legal__data dd + dt {
    margin-top: var(--space-3);
  }
}

.error-page {
  padding-block: clamp(4rem, 2rem + 8vw, 9rem);
}

.error-page__code {
  color: var(--color-accent);
  font-size: var(--step-1);
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-bold);
}

.error-page .page-title {
  margin-top: var(--space-3);
}

.error-page__text {
  max-width: 40rem;
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
}


/* 16. Hilfsklassen */

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

.nowrap {
  white-space: nowrap;
}

.num {
  font-variant-numeric: tabular-nums;
}


/* 17. Bewegung
   Beim Laden fährt das Auto von rechts ins Bild, die Räder drehen mit,
   beim Bremsen nickt das Auto kurz ein. Dazu ein paar kleine Momente, die
   auch auf dem Handy wirken: Die Anhänger schwingen, im Ablauf fährt ein
   kleines Auto mit, die vorgewählte Mietdauer leuchtet kurz auf, und
   Schaltflächen geben beim Antippen nach. Scrollt man nach unten, fährt das
   Auto im Startbild nach links weg, erst langsam, dann schneller, und in
   der Zeichnung bei «Das Auto» wieder ein. Mit der Maus schwingt zusätzlich das Logo. Wer in den Systemeinstellungen weniger Bewegung wünscht, sieht
   alles ruhig. */

@media (prefers-reduced-motion: no-preference) {
  /* Anfrage-Leiste fährt von unten ein, Kopfzeile bekommt sanft Schatten */
  .leiste {
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), visibility 0s linear 0.3s;
  }

  .leiste.is-sichtbar {
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), visibility 0s;
  }

  .site-header {
    transition: box-shadow 0.2s ease-out;
  }

  .scene__drive {
    animation: scene-drive 2.2s cubic-bezier(0.16, 0.72, 0.22, 1) both;
  }

  .scene__spin {
    transform-box: fill-box;
    transform-origin: center;
    animation: scene-spin 2.2s cubic-bezier(0.16, 0.72, 0.22, 1) both;
  }

  .scene__chassis {
    transform-box: fill-box;
    transform-origin: 78% 80%;
    animation: scene-settle 0.7s 1.55s ease-out both;
  }

  /* Startbild: Scrollt man nach unten, fährt das Auto nach links weg,
     erst langsam, dann schneller. Der Browser verschiebt dafür nur die
     Ebene mit dem Auto, ohne Skript bei jedem Bild. main.js setzt die
     Klasse is-weg und rechnet aus, wie weit es fahren muss (--weg-x) und
     wie weit die Räder dabei drehen (--weg-rad). Ist man wieder oben,
     fährt es wie beim Laden von rechts ein, oder es rollt zurück, wenn
     es noch nicht ganz weg war. */
  .scene__auto {
    will-change: transform;
    transition: transform 1.4s cubic-bezier(0.16, 0.72, 0.22, 1);
  }

  .scene__auto .scene__rad {
    transition: transform 1.4s cubic-bezier(0.16, 0.72, 0.22, 1);
  }

  .hero.is-weg .scene__auto {
    transform: translateX(var(--weg-x, -120%));
    transition: transform 1.6s cubic-bezier(0.4, 0, 0.75, 0.25);
  }

  .hero.is-weg .scene__auto .scene__rad {
    transform: rotate(var(--weg-rad, -1600deg));
    transition: transform 1.6s cubic-bezier(0.4, 0, 0.75, 0.25);
  }

  /* Ohne Übergang, zum Beispiel wenn die Seite schon weiter unten
     geöffnet wird oder sich die Breite ändert */
  .hero.is-sofort .scene__auto,
  .hero.is-sofort .scene__auto .scene__rad {
    transition: none;
  }

  /* Die Einfahrt vom Laden beginnt noch einmal von vorne */
  .hero.is-neustart .scene__drive,
  .hero.is-neustart .scene__spin,
  .hero.is-neustart .scene__chassis {
    animation: none;
  }

  /* Anhänger am Schlüsselbrett: schwingt, wenn er ins Bild kommt und beim Antippen */
  .keytag.is-swinging {
    animation: keytag-swing 1.6s ease-out;
  }

  /* Monats-Anhänger: pendelt einmal kurz aus, wenn er ins Bild kommt */
  .offer-wrap.is-swinging {
    transform-origin: 50% 0.25rem;
    animation: offer-settle 1.5s ease-out;
  }

  /* Vorgewählte Mietdauer: zwei sanfte Ringe, damit man sie bemerkt */
  .choice label.is-hervorgehoben {
    animation: choice-pulse 1s ease-out 2;
  }

  /* «Das Auto»: Das Auto wartet rechts ausserhalb der Zeichnung und fährt
     ein, sobald sie ins Bild kommt (main.js). Danach erscheinen die
     Beschriftungen. */
  .blueprint.is-wartend,
  .blueprint.is-einfahrt {
    overflow: hidden;
  }

  .blueprint.is-wartend .car__fahrt {
    transform: translateX(1100px);
  }

  .blueprint.is-wartend .car__callouts {
    opacity: 0;
  }

  .blueprint.is-einfahrt .car__fahrt {
    animation: plan-drive 2.2s cubic-bezier(0.16, 0.72, 0.22, 1) both;
  }

  .blueprint.is-einfahrt .car__rad {
    transform-box: fill-box;
    transform-origin: center;
    animation: plan-spin 2.2s cubic-bezier(0.16, 0.72, 0.22, 1) both;
  }

  .blueprint.is-einfahrt .car__aufbau {
    transform-box: fill-box;
    transform-origin: 78% 80%;
    animation: scene-settle 0.7s 1.55s ease-out both;
  }

  .blueprint.is-einfahrt .car__callouts {
    animation: plan-labels 0.5s 1.9s ease-out both;
  }

  /* Schaltflächen und Auswahlfelder geben beim Antippen spürbar nach */
  .button:active {
    transform: translateY(1px) scale(0.98);
  }

  .choice label:active {
    transform: scale(0.97);
  }

  /* 1400 Einheiten Fahrweg; die Räder drehen genau so weit, wie das Auto rollt */
  @keyframes scene-drive {
    from {
      transform: translateX(1400px);
    }

    to {
      transform: none;
    }
  }

  @keyframes scene-spin {
    from {
      transform: rotate(2193deg);
    }

    to {
      transform: none;
    }
  }

  @keyframes scene-settle {
    0% {
      transform: none;
    }

    35% {
      transform: rotate(-1deg);
    }

    100% {
      transform: none;
    }
  }

  @keyframes keytag-swing {
    0% {
      transform: none;
    }

    18% {
      transform: rotate(8deg);
    }

    40% {
      transform: rotate(-5deg);
    }

    62% {
      transform: rotate(3deg);
    }

    82% {
      transform: rotate(-1deg);
    }

    100% {
      transform: none;
    }
  }

  @keyframes offer-settle {
    0% {
      transform: none;
    }

    18% {
      transform: rotate(1.2deg);
    }

    42% {
      transform: rotate(-0.8deg);
    }

    66% {
      transform: rotate(0.4deg);
    }

    85% {
      transform: rotate(-0.15deg);
    }

    100% {
      transform: none;
    }
  }

  /* 1100 Einheiten Fahrweg; die Räder (Radius 59) drehen genau so weit mit */
  @keyframes plan-drive {
    from {
      transform: translateX(1100px);
    }

    to {
      transform: none;
    }
  }

  @keyframes plan-spin {
    from {
      transform: rotate(1068deg);
    }

    to {
      transform: none;
    }
  }

  @keyframes plan-labels {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes choice-pulse {
    from {
      box-shadow: 0 0 0 0 var(--color-pulse);
    }

    to {
      box-shadow: 0 0 0 0.75rem var(--color-pulse-aus);
    }
  }

  @keyframes logo-swing {
    0% {
      transform: none;
    }

    20% {
      transform: rotate(9deg);
    }

    45% {
      transform: rotate(-5deg);
    }

    70% {
      transform: rotate(2deg);
    }

    100% {
      transform: none;
    }
  }
}

/* Nur mit Maus: Anhänger und Logo schwingen beim Darüberfahren */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .about__visual:hover .keytag {
    animation: keytag-swing 1.6s ease-out;
  }

  .brand:hover .brand__mark {
    animation: logo-swing 1.2s ease-out;
  }
}

/* Version 5: Kann der Browser Animationen ans Scrollen koppeln, rollt das
   Auto im Startbild genau so weit, wie man scrollt: ein Pixel Scrollen,
   ein Pixel Fahrt, und die Räder drehen passend zur Strecke. Scrollt man
   zurück, rollt es rückwärts an seinen Platz. main.js setzt dafür die
   Klasse ist-gekoppelt und rechnet Weg und Drehung aus (--weg-x und
   --weg-rad), die Bewegung selbst macht der Browser, auch beim schnellen
   Scrollen auf dem Handy. Ohne diese Fähigkeit gilt das Wegfahren von
   Version 4 weiter oben. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero.ist-gekoppelt .scene__auto {
      transition: none;
      animation: auto-rollt auto linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px calc(-1 * var(--weg-x, -400px));
    }

    .hero.ist-gekoppelt .scene__auto .scene__rad {
      transition: none;
      animation: rad-rollt auto linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px calc(-1 * var(--weg-x, -400px));
    }

    @keyframes auto-rollt {
      to {
        transform: translateX(var(--weg-x, -120%));
      }
    }

    @keyframes rad-rollt {
      to {
        transform: rotate(var(--weg-rad, -1600deg));
      }
    }
  }
}


/* 18. Druck: Preise und Bedingungen lassen sich sauber ausdrucken */

@media print {
  /* Gedruckt wird immer hell, auch wenn die Seite dunkel angezeigt wird */
  :root,
  :root:not([data-theme="light"]),
  :root[data-theme="dark"] {
    --color-bg: #F6F7F9;
    --color-bg-alt: #ECEFF4;
    --color-surface: #FCFDFE;
    --color-text: #131A2C;
    --color-text-muted: #4A5368;
    --color-line: #D2D8E2;
    --color-line-strong: #7F889C;
    --color-accent: #1F45B5;
    --color-accent-strong: #163591;
    --color-accent-soft: #E4EAF8;
    --color-error: #B42318;
    --color-dark: #131A2C;
    --color-on-dark: #DCE1EC;
    --color-on-dark-muted: #A3ACC2;
    --color-on-accent-muted: #D9E1F7;
    --color-on-accent-line: rgba(252, 253, 254, 0.55);
    --color-grid: #E9EDF3;
    --color-accent-fill: #1F45B5;
    --color-accent-fill-hover: #163591;
    --color-accent-fill-edge: #163591;
    --color-on-accent: #FCFDFE;
    --color-on-accent-hover: #E4EAF8;
    --color-accent-ink: #163591;
    --color-on-error: #FCFDFE;
    --color-on-dark-strong: #FCFDFE;
    --color-on-dark-line: rgba(220, 225, 236, 0.18);
    --color-dark-edge: transparent;
    --color-focus-ring: rgba(31, 69, 181, 0.25);
    --color-pulse: rgba(31, 69, 181, 0.45);
    --color-pulse-aus: rgba(31, 69, 181, 0);
    --color-tap: rgba(31, 69, 181, 0.15);
    --shadow-menu: 0 18px 30px -18px rgba(19, 26, 44, 0.28), 0 2px 6px -2px rgba(19, 26, 44, 0.08);
    --shadow-kopf: 0 10px 24px -18px rgba(19, 26, 44, 0.45);
    --shadow-leiste: 0 -10px 28px -18px rgba(19, 26, 44, 0.4);
    --car-body: #FCFDFE;
    --car-ink: #131A2C;
    --car-glass: #DCE4F5;
    --car-detail: #ECEFF4;
    --car-shadow: #131A2C;
    --car-light-front: #FFF1C9;
    --car-light-rear: #D64535;
    --scene-sky: #E4EAF4;
    --scene-far: #DDE3EC;
    --scene-near: #D2D9E4;
    --scene-tree: #BAC4D3;
    --scene-tree-dark: #A9B4C5;
    --scene-trunk: #8E98AB;
    --scene-house: #E3E8EF;
    --scene-roof: #AEB8C8;
    --scene-road: #283046;
    --scene-dash: #E6EBF3;
    --scene-cloud: #FCFDFE;
    --scene-moon: #FBF3D9;
    --scene-light: #FFD27A;
    --road: #283046;
    --road-dash: #E6EBF3;
    --car-tire-edge: transparent;
    color-scheme: light;
  }

  .notice,
  .site-header,
  .hero__actions,
  .scene-wrap,
  .blueprint,
  .about__visual,
  .steps__bahn,
  .theme-toggle,
  .request,
  .offer-wrap::before,
  .offer-wrap::after,
  .offer::before,
  .offer .button,
  .price-table__link,
  .site-footer__nav,
  .rechner,
  .leiste,
  .site-footer__ortsende,
  .hero__wetter {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    font-size: 11pt;
  }

  .hero,
  .section,
  .section--alt {
    padding-block: 1.5rem;
    background: none;
  }

  .offer-wrap {
    padding-top: 0;
  }

  .offer {
    padding: 1rem 0;
    border-top: 2px solid var(--color-text);
    border-radius: 0;
    background: none;
    color: var(--color-text);
    clip-path: none;
    -webkit-mask: none;
    mask: none;
  }

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

  .steps::before {
    display: none;
  }

  .extras,
  .spec {
    background: none;
  }

  .site-footer {
    padding-block: 1rem;
    background: none;
    color: var(--color-text);
  }

  .site-footer a,
  .site-footer .brand {
    color: var(--color-text);
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}


/* 19. Glas: Kopfzeile und Anfrage-Leiste (Version 5)
   Kopfzeile und Anfrage-Leiste sind die schwebende Bedienebene. Wie bei
   Apples Liquid Glass gleitet der Inhalt beim Scrollen darunter durch: Er
   wird unscharf, seine Farben schimmern durch, und am Rand läuft er weich
   aus, statt an einer Linie zu enden. Die Deckkraft ist so gewählt, dass
   die Schrift auch über dem dunkelsten Inhalt gut lesbar bleibt (Kopfzeile
   80 %, Leiste mit kleiner Schrift 86 %). Liegt eine dunkle Fläche unter
   der Kopfzeile (auf dem Handy die Kontaktbox, sonst die Fusszeile), wird
   ihr Glas dunkel (main.js, Abschnitt 6). Bei offenem
   Menü, «Kontrast erhöhen» und «Transparenz reduzieren» sind beide
   deckend. Kann der Browser keine Unschärfe, bleibt alles wie in Version 4.
   Glas gibt es nur hier, nie auf Inhalt wie Karten oder Anhängern. */

:root {
  --glas-kopf: 80%;
  --glas-leiste: 86%;
  --glas-rand: 60%;
  --glas-unschaerfe: blur(20px) saturate(1.5);
  /* Farben für das dunkle Glas, in beiden Darstellungen gleich */
  --glas-nacht-bg: #0E1322;
  --glas-nacht-bg-alt: #131A2C;
  --glas-nacht-surface: #182039;
  --glas-nacht-text: #E6EAF2;
  --glas-nacht-line: #2A3451;
  --glas-nacht-line-strong: #6A7692;
  --glas-nacht-accent: #9DB4FF;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: color-mix(in srgb, var(--color-bg) var(--glas-kopf), transparent);
    -webkit-backdrop-filter: var(--glas-unschaerfe);
    backdrop-filter: var(--glas-unschaerfe);
    border-bottom-color: color-mix(in srgb, var(--color-line) 70%, transparent);
  }

  /* Weicher Rand statt Schatten: Was unter der Kopfzeile verschwindet,
     wird auf den letzten Pixeln blass, statt an einer Linie zu enden. Nur
     sobald die Seite darunter durchläuft. Bewusst ohne eigene Unschärfe:
     Unter einem Glas sieht ein zweites Glas je nach Browser nichts. */
  .site-header::after {
    content: "";
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    height: var(--space-4);
    background: linear-gradient(to bottom, color-mix(in srgb, var(--color-bg) var(--glas-rand), transparent), transparent);
    opacity: 0;
    pointer-events: none;
  }

  .site-header.is-gescrollt {
    box-shadow: none;
  }

  .site-header.is-gescrollt::after {
    opacity: 1;
  }

  /* Dunkles Glas über Kontaktbox und Fusszeile, wie die Leisten in iOS */
  .site-header.ist-ueber-dunkel {
    --color-bg: var(--glas-nacht-bg);
    --color-bg-alt: var(--glas-nacht-bg-alt);
    --color-surface: var(--glas-nacht-surface);
    --color-text: var(--glas-nacht-text);
    --color-line: var(--glas-nacht-line);
    --color-line-strong: var(--glas-nacht-line-strong);
    --color-accent: var(--glas-nacht-accent);
    color-scheme: dark;
  }

  /* Offenes Menü: Kopfzeile und Menü sind eine deckende Fläche */
  .site-header:has(.site-nav.is-open) {
    background: var(--color-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header:has(.site-nav.is-open)::after {
    opacity: 0;
  }

  /* Anfrage-Leiste: gleiches Glas, etwas dichter wegen der kleinen Schrift,
     als durchgehendes Band, damit sie nicht wie die Leiste von Safari wirkt */
  .leiste {
    background: color-mix(in srgb, var(--color-surface) var(--glas-leiste), transparent);
    -webkit-backdrop-filter: var(--glas-unschaerfe);
    backdrop-filter: var(--glas-unschaerfe);
    border-top-color: color-mix(in srgb, var(--color-line) 70%, transparent);
    box-shadow: none;
  }

  .leiste::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: calc(100% + 1px);
    left: 0;
    height: var(--space-4);
    background: linear-gradient(to top, color-mix(in srgb, var(--color-surface) var(--glas-rand), transparent), transparent);
    pointer-events: none;
  }
}

/* Der Wechsel auf dunkles Glas und der weiche Rand blenden kurz über */
@media (prefers-reduced-motion: no-preference) {
  .site-header {
    transition: background-color 0.25s ease-out, border-color 0.25s ease-out, box-shadow 0.2s ease-out;
  }

  .site-header::after {
    transition: opacity 0.2s ease-out;
  }

  .site-header .brand,
  .site-header .nav-toggle,
  .site-header .site-nav a,
  .site-header .theme-toggle {
    transition: color 0.25s ease-out, background-color 0.25s ease-out, border-color 0.25s ease-out;
  }
}

/* «Kontrast erhöhen» und «Transparenz reduzieren»: deckend wie in Version 4.
   Safari meldet «Transparenz reduzieren» Websites nicht, darum gilt das
   deckende Glas dort bei «Kontrast erhöhen». */
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-header:has(.site-nav.is-open) {
    background: var(--color-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: var(--color-line);
  }

  .site-header.is-gescrollt {
    box-shadow: var(--shadow-kopf);
  }

  .leiste {
    background: var(--color-surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top-color: var(--color-line);
    box-shadow: var(--shadow-leiste);
  }

  .site-header::after,
  .leiste::before {
    display: none;
  }
}


/* 20. Version 6: Jahreszeiten, Motor, Wegweiser, freie Tage, Anhänger,
   Seitenwechsel
   Wie in Abschnitt 17 bewegt sich nur etwas, wenn im System nicht
   «Bewegung reduzieren» eingestellt ist. Alles bleibt in den Farben der
   Website: Jahreszeit und Wetter zeigen sich in der Form, nicht in neuen
   Farben. */

/* Jahreszeiten und Wetter in der Landschaft (main.js, Abschnitt 4).
   main.js setzt data-jahreszeit nach dem Monat und data-wetter, wenn eine
   aktuelle wetter.json Schnee oder Nebel meldet. Im Sommer und ohne
   Wetter sieht alles aus wie in Version 5. Winter: kahle Laubbäume und
   Schnee auf den Jurahöhen. Frühling: Blüten. Herbst: Laub und Hochnebel.
   Schnee: weisse Felder, Dächer, Tannen und Ortstafel, dazu Schneefall
   und der Hinweis auf den Allrad. Nebel: dichter Nebel vor dem Jura. */
:root {
  --scene-schnee: #FCFDFE;
  --scene-nebel: #FCFDFE;
  --scene-bluete: #FCFDFE;
  --schnee-anteil: 55%;
  --car-abgas: #E3E8EF;
  --frei-schraffur: rgba(19, 26, 44, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --scene-schnee: #C2CBDD;
    --scene-nebel: #3B4767;
    --scene-bluete: #A9B5CF;
    --schnee-anteil: 38%;
    --car-abgas: #8E99B3;
    --frei-schraffur: rgba(230, 234, 242, 0.16);
  }
}

:root[data-theme="dark"] {
  --scene-schnee: #C2CBDD;
  --scene-nebel: #3B4767;
  --scene-bluete: #A9B5CF;
  --schnee-anteil: 38%;
  --car-abgas: #8E99B3;
  --frei-schraffur: rgba(230, 234, 242, 0.16);
}

.hero[data-tageszeit="daemmerung"] {
  --scene-schnee: #FBF6F4;
  --scene-nebel: #F7EEEA;
}

.hero[data-tageszeit="nacht"] {
  --scene-schnee: #E4EAF4;
  --scene-nebel: #D3DAE8;
  --scene-bluete: #E4EAF4;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero[data-tageszeit="daemmerung"] {
    --scene-schnee: #C8BFCC;
    --scene-nebel: #4B4259;
  }

  :root:not([data-theme="light"]) .hero[data-tageszeit="nacht"] {
    --scene-schnee: #A9B5CD;
    --scene-nebel: #2F3B5E;
    --scene-bluete: #8F9CBB;
  }
}

:root[data-theme="dark"] .hero[data-tageszeit="daemmerung"] {
  --scene-schnee: #C8BFCC;
  --scene-nebel: #4B4259;
}

:root[data-theme="dark"] .hero[data-tageszeit="nacht"] {
  --scene-schnee: #A9B5CD;
  --scene-nebel: #2F3B5E;
  --scene-bluete: #8F9CBB;
}

/* Im Lichtkreis der Taschenlampe ist heller Tag, auch für Schnee und Nebel */
.scene__lampe {
  --scene-schnee: #FCFDFE;
  --scene-nebel: #FCFDFE;
  --scene-bluete: #FCFDFE;
  --schnee-anteil: 55%;
}

.scene__schneekappe,
.scene__schnee,
.scene__aeste,
.scene__blueten,
.scene__laub,
.scene__nebel,
.scene__flocken {
  display: none;
}

.scene__schneekappe,
.scene__schnee {
  fill: var(--scene-schnee);
}

.scene__aeste {
  fill: none;
  stroke: var(--scene-trunk);
  stroke-width: 2;
  stroke-linecap: round;
}

.scene__blueten {
  fill: var(--scene-bluete);
}

.scene__blatt {
  fill: var(--scene-tree-dark);
}

.scene__blatt--fallend {
  fill: var(--scene-tree);
}

.scene__nebel {
  fill: url(#nebelverlauf);
}

.scene__nebel-stop {
  stop-color: var(--scene-nebel);
}

.hero[data-jahreszeit="winter"] ellipse.scene__tree {
  display: none;
}

.hero[data-jahreszeit="winter"] .scene__aeste,
.hero[data-jahreszeit="winter"] .scene__schneekappe,
.hero[data-jahreszeit="fruehling"] .scene__blueten,
.hero[data-jahreszeit="herbst"] .scene__laub,
.hero[data-jahreszeit="herbst"] .scene__nebel--hoch,
.hero[data-wetter="nebel"] .scene__nebel,
.hero[data-wetter="schnee"] .scene__schneekappe,
.hero[data-wetter="schnee"] .scene__schnee {
  display: inline;
}

/* Schnee: Felder, Hügel und Dächer werden weiss, die Dächer behalten
   ihren Rand */
.hero[data-wetter="schnee"] .scene__hill--far {
  fill: color-mix(in srgb, var(--scene-schnee) var(--schnee-anteil), var(--scene-far));
}

.hero[data-wetter="schnee"] .scene__hill--near,
.hero[data-wetter="schnee"] .scene__verge {
  fill: color-mix(in srgb, var(--scene-schnee) var(--schnee-anteil), var(--scene-near));
}

.hero[data-wetter="schnee"] .scene__roof {
  fill: var(--scene-schnee);
  stroke: var(--scene-roof);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* Schneefall: zwei Ebenen mit Flocken, die der Browser nur verschiebt.
   Jede Ebene ist eine Kachel höher als die Landschaft und rückt um genau
   eine Kachel, so beginnt die Bewegung nahtlos von vorne. */
.scene__flocken {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero[data-wetter="schnee"] .scene__flocken {
  display: block;
}

.scene__flocken::before,
.scene__flocken::after {
  content: "";
  position: absolute;
  top: -240px;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    radial-gradient(circle at 22px 34px, var(--scene-schnee) 1.6px, transparent 2.3px),
    radial-gradient(circle at 96px 102px, var(--scene-schnee) 2.1px, transparent 2.8px),
    radial-gradient(circle at 150px 40px, var(--scene-schnee) 1.4px, transparent 2px),
    radial-gradient(circle at 60px 176px, var(--scene-schnee) 1.8px, transparent 2.5px),
    radial-gradient(circle at 168px 196px, var(--scene-schnee) 1.5px, transparent 2.1px);
  background-size: 200px 240px;
  opacity: 0.9;
}

.scene__flocken::after {
  top: -300px;
  background-position: 70px 0;
  background-size: 260px 300px;
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  .scene__flocken::before {
    animation: flocken-nah 10s linear infinite;
  }

  .scene__flocken::after {
    animation: flocken-fern 17s linear infinite;
  }

  @keyframes flocken-nah {
    to {
      transform: translateY(240px);
    }
  }

  @keyframes flocken-fern {
    to {
      transform: translateY(300px);
    }
  }
}

/* Ohne Bewegung kein Schneefall, die weisse Landschaft genügt */
@media (prefers-reduced-motion: reduce) {
  .hero[data-wetter="schnee"] .scene__flocken {
    display: none;
  }
}

/* Hinweis bei Schnee unter dem Text im Startbild */
.hero__wetter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

.hero__wetter[hidden] {
  display: none;
}

.hero__flocke {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Motor starten (main.js, Abschnitt 5a): Das Auto im Startbild lässt sich
   antippen. Dann gehen die Lichter an, das Auto zittert kurz, und hinten
   kommt ein Wölkchen. Nur das Auto selbst nimmt Klicks an, der Rest der
   Ebene bleibt durchlässig, damit die Taschenlampe weiter funktioniert. */
.scene__drive {
  pointer-events: auto;
  cursor: pointer;
}

.scene__auto .car__beam,
.scene__auto .car__shadow,
.scene__abgas {
  pointer-events: none;
}

.scene__abgas circle {
  fill: var(--car-abgas);
  opacity: 0;
}

.hero.motor-an .car__beam {
  opacity: 1;
}

.hero.motor-an .car__lamp--vorne {
  fill: var(--car-light-front);
}

.hero.motor-an .car__lamp--hinten {
  fill: var(--car-light-rear);
}

@media (prefers-reduced-motion: no-preference) {
  .scene__auto .car__beam {
    transition: opacity 0.35s ease-out;
  }

  .scene__auto .car__lamp {
    transition: fill 0.2s ease-out;
  }

  .scene__motor {
    transform-box: fill-box;
    transform-origin: 50% 100%;
  }

  .hero.motor-an .scene__motor {
    animation: motor-start 0.5s ease-out, motor-lauf 0.14s linear 0.5s 17;
  }

  .scene__abgas circle {
    transform-box: fill-box;
    transform-origin: center;
  }

  .hero.motor-an .scene__abgas circle {
    animation: abgas 1.4s ease-out both;
  }

  .hero.motor-an .scene__abgas circle:nth-child(1) {
    animation-delay: 0.3s;
  }

  .hero.motor-an .scene__abgas circle:nth-child(2) {
    animation-delay: 0.8s;
  }

  .hero.motor-an .scene__abgas circle:nth-child(3) {
    animation-delay: 1.35s;
  }

  @keyframes motor-start {
    0% {
      transform: none;
    }

    25% {
      transform: translateY(3px) rotate(0.6deg);
    }

    50% {
      transform: translateY(-2px) rotate(-0.4deg);
    }

    75% {
      transform: translateY(1px);
    }

    100% {
      transform: none;
    }
  }

  @keyframes motor-lauf {
    0%,
    100% {
      transform: none;
    }

    50% {
      transform: translateY(1.2px);
    }
  }

  @keyframes abgas {
    0% {
      opacity: 0;
      transform: scale(0.4);
    }

    15% {
      opacity: 0.85;
    }

    100% {
      opacity: 0;
      transform: translate(70px, -28px) scale(2.2);
    }
  }
}


/* Wegweiser beim Preisrechner (main.js, Abschnitt 7): Der Schieber ist
   eine Strasse, auf der ein kleines Auto fährt, bis zum Auto ist sie blau
   getönt. Darunter stehen Wegweiser wie an Schweizer Hauptstrassen.
   Reichen die geplanten Kilometer für ein Ziel hin und zurück, leuchtet
   sein Schild blau, sonst bleibt es grau. Für Vorleseprogramme steht der
   Zustand auch im Text. */
.rechner__schieber {
  --strasse-stand: calc(1.375rem + (100% - 2.75rem) * var(--anteil, 0.333));
  --strasse-gefahren: color-mix(in srgb, var(--color-accent-fill) 60%, var(--road));
  -webkit-appearance: none;
  appearance: none;
  height: 2.75rem;
  margin-top: var(--space-1);
  border-radius: 999px;
  background: transparent;
}

.rechner__schieber::-webkit-slider-runnable-track {
  height: 1.5rem;
  border-radius: 999px;
  background:
    repeating-linear-gradient(to right, var(--road-dash) 0 0.75rem, transparent 0.75rem 1.5rem) 0 50% / 100% 2px no-repeat,
    linear-gradient(to right, var(--strasse-gefahren) 0 var(--strasse-stand), var(--road) var(--strasse-stand));
}

.rechner__schieber::-moz-range-track {
  height: 1.5rem;
  border-radius: 999px;
  background:
    repeating-linear-gradient(to right, var(--road-dash) 0 0.75rem, transparent 0.75rem 1.5rem) 0 50% / 100% 2px no-repeat,
    linear-gradient(to right, var(--strasse-gefahren) 0 var(--strasse-stand), var(--road) var(--strasse-stand));
}

/* Das Auto von oben wie im Ablauf, 44 Pixel breit zum guten Greifen */
.rechner__schieber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: -0.625rem;
  border: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -11 44 44'%3E%3Crect x='24.5' y='0.75' width='3.5' height='2.5' rx='1' fill='%23FCFDFE' stroke='%23131A2C' stroke-width='1.5'/%3E%3Crect x='24.5' y='18.75' width='3.5' height='2.5' rx='1' fill='%23FCFDFE' stroke='%23131A2C' stroke-width='1.5'/%3E%3Crect x='1.5' y='2.5' width='41' height='17' rx='6' fill='%23FCFDFE' stroke='%23131A2C' stroke-width='1.5'/%3E%3Cpath d='M25.5 5.2H29.6Q31.4 11 29.6 16.8H25.5Z' fill='%23DCE4F5' stroke='%23131A2C' stroke-linejoin='round'/%3E%3Cpath d='M7.4 6H10.4V16H7.4Q6.2 11 7.4 6Z' fill='%23DCE4F5' stroke='%23131A2C' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% auto no-repeat;
  cursor: grab;
}

.rechner__schieber::-moz-range-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -11 44 44'%3E%3Crect x='24.5' y='0.75' width='3.5' height='2.5' rx='1' fill='%23FCFDFE' stroke='%23131A2C' stroke-width='1.5'/%3E%3Crect x='24.5' y='18.75' width='3.5' height='2.5' rx='1' fill='%23FCFDFE' stroke='%23131A2C' stroke-width='1.5'/%3E%3Crect x='1.5' y='2.5' width='41' height='17' rx='6' fill='%23FCFDFE' stroke='%23131A2C' stroke-width='1.5'/%3E%3Cpath d='M25.5 5.2H29.6Q31.4 11 29.6 16.8H25.5Z' fill='%23DCE4F5' stroke='%23131A2C' stroke-linejoin='round'/%3E%3Cpath d='M7.4 6H10.4V16H7.4Q6.2 11 7.4 6Z' fill='%23DCE4F5' stroke='%23131A2C' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% auto no-repeat;
  cursor: grab;
}

.rechner__schieber:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Hohe Kontraste von Windows: Strasse als einfache Linie */
@media (forced-colors: active) {
  .rechner__schieber::-webkit-slider-runnable-track {
    background: CanvasText;
  }

  .rechner__schieber::-moz-range-track {
    background: CanvasText;
  }
}

.ziele {
  margin-top: var(--space-4);
}

.ziele__titel {
  color: var(--color-text-muted);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}

.ziele__liste {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: 0;
  list-style: none;
}

/* Schild mit Spitze nach rechts wie ein Wegweiser */
.ziel {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  margin: 0;
  padding: 0.3125rem 1.125rem 0.3125rem 0.625rem;
  border-radius: 3px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 0.625rem) 0, 100% 50%, calc(100% - 0.625rem) 100%, 0 100%);
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.ziel__km {
  font-weight: var(--weight-normal);
  font-variant-numeric: tabular-nums;
}

.ziel.is-erreicht {
  background: var(--color-accent-fill);
  color: var(--color-on-accent);
}

.ziele__quelle {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--step--1);
  line-height: 1.4;
}

@media (prefers-reduced-motion: no-preference) {
  .ziel.is-erreicht {
    animation: ziel-an 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
  }

  @keyframes ziel-an {
    from {
      transform: scale(0.92);
    }
  }
}


/* Freie Tage beim Formular (main.js, Abschnitt 9a): Monatskalender aus
   verfuegbarkeit.json. Freie Tage haben einen Rand, vermietete Tage sind
   schraffiert und durchgestrichen, vergangene blass, die Wahl ist blau.
   Den Zustand zeigt nicht nur die Farbe: Schraffur und Strich zeigen ihn
   auch, und Vorleseprogramme lesen ihn mit dem Datum vor. */
.frei {
  min-width: 0;
  max-width: 27.5rem;
  padding: var(--space-4) var(--space-4) var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  background: var(--color-surface);
  container-type: inline-size;
}

.frei[hidden] {
  display: none;
}

.frei__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.frei__titel {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.frei__beispiel {
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}

.frei__beispiel[hidden] {
  display: none;
}

/* Der Monatsname hat festen Platz, damit die Pfeile beim Blättern nicht
   springen. Bei sehr grosser Schrift darf er schmaler werden. */
.frei__blaettern {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 9.5rem) 2.75rem;
  align-items: center;
  gap: var(--space-1);
}

.frei__monat-name {
  font-weight: var(--weight-semibold);
  text-align: center;
}

.frei__pfeil {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  touch-action: manipulation;
}

.frei__pfeil svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.frei__pfeil:hover {
  border-color: var(--color-text-muted);
}

.frei__pfeil[aria-disabled="true"] {
  border-color: var(--color-line);
  color: var(--color-line-strong);
  cursor: default;
}

.frei__pfeil:focus-visible,
.frei__tag:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.frei__monat {
  width: 100%;
  max-width: 25rem;
  margin-top: var(--space-3);
  border-collapse: separate;
  border-spacing: 0.25rem;
  table-layout: fixed;
}

.frei__monat th {
  padding: 0 0 var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  text-align: center;
}

.frei__monat td {
  padding: 0;
}

.frei__tag {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
}

.frei__tag:hover {
  border-color: var(--color-accent);
}

.frei__tag.ist-heute {
  font-weight: var(--weight-heavy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.frei__tag.ist-vorbei {
  border-color: transparent;
  background: transparent;
  color: var(--color-text-muted);
  opacity: 0.6;
  cursor: default;
}

.frei__tag.ist-belegt {
  border-color: transparent;
  background: repeating-linear-gradient(135deg, var(--frei-schraffur) 0 2px, transparent 2px 6px), var(--color-bg-alt);
  color: var(--color-text-muted);
  text-decoration: line-through;
  cursor: not-allowed;
}

.frei__tag.ist-dazwischen {
  border-color: var(--color-accent-soft);
  background: var(--color-accent-soft);
}

.frei__tag.ist-ab,
.frei__tag.ist-bis {
  border-color: var(--color-accent-fill);
  background: var(--color-accent-fill);
  color: var(--color-on-accent);
  font-weight: var(--weight-bold);
}

.frei__legende {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-3);
  padding: 0;
  color: var(--color-text-muted);
  font-size: var(--step--1);
  list-style: none;
}

.frei__legende li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.frei__muster {
  flex: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--color-line-strong);
  border-radius: 3px;
  background: var(--color-surface);
}

.frei__muster--belegt {
  border-color: transparent;
  background: repeating-linear-gradient(135deg, var(--frei-schraffur) 0 2px, transparent 2px 6px), var(--color-bg-alt);
}

.frei__muster--wahl {
  border-color: var(--color-accent-fill);
  background: var(--color-accent-fill);
}

.frei__hinweis {
  margin-top: var(--space-3);
  font-size: var(--step--1);
  line-height: 1.45;
}

.frei__stand {
  margin-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--step--1);
  line-height: 1.45;
}

/* Sehr grosse Schrift (gemessen an der Breite des Kalenders): Monatsname
   über den Pfeilen, Tage etwas kleiner geschrieben */
@container (max-width: 15em) {
  .frei__blaettern {
    grid-template-columns: 2.75rem 1fr 2.75rem;
    width: 100%;
  }

  .frei__monat-name {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  #frei-zurueck {
    grid-row: 2;
    grid-column: 1;
  }

  #frei-weiter {
    grid-row: 2;
    grid-column: 3;
  }

  .frei__tag {
    font-size: var(--step--1);
  }
}

/* Auf dem Handy etwas weniger Rand, damit jeder Tag 44 Pixel breit bleibt */
@media (max-width: 30rem) {
  .frei {
    padding: var(--space-3) var(--space-2) var(--space-4);
  }

  .frei__kopf,
  .frei__legende,
  .frei__hinweis,
  .frei__stand {
    padding-inline: var(--space-2);
  }

  .frei__monat {
    border-spacing: 2px;
  }
}


/* Anhänger als Bestätigung (main.js, Abschnitt 9): Nach dem Senden hängt
   ein heller Anhänger mit dem Vornamen am dritten Haken, im Kasten «Danke»
   und auf dem Schlüsselbrett bei «Über uns». Er fällt auf den Haken und
   pendelt aus. Hell, damit er sich vom blauen Schlüssel des Autos
   unterscheidet: Es ist eine Anfrage, noch keine Miete. */
.keytag.ist-leer {
  display: none;
}

.keytag--anfrage {
  transform-origin: 257px 131px;
}

.keytag--anfrage .keytag__body {
  fill: var(--color-surface);
  stroke: var(--color-text);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.keytag--anfrage .keytag__hole {
  stroke: none;
}

.keytag--anfrage .keytag__edge {
  stroke: var(--color-accent);
  stroke-opacity: 0.5;
}

.keytag--anfrage .keytag__small {
  fill: var(--color-text-muted);
  fill-opacity: 1;
}

.keytag__name {
  fill: var(--color-accent);
  font-family: var(--font);
  font-size: 30px;
  font-stretch: var(--stretch-semi);
  font-weight: var(--weight-heavy);
}

.form__status--ok {
  display: flow-root;
}

.erfolg__brett {
  float: right;
  width: 9rem;
  margin: 0 0 var(--space-2) var(--space-5);
  overflow: visible;
}

/* Auf dem Handy über dem Text, damit dieser die ganze Breite hat */
@media (max-width: 34rem) {
  .erfolg__brett {
    display: block;
    float: none;
    margin: 0 0 var(--space-4);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .keytag--anfrage.is-faellt {
    animation: anhaenger-faellt 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) both, keytag-swing 1.6s ease-out 0.9s;
  }

  @keyframes anhaenger-faellt {
    0% {
      opacity: 0;
      transform: translateY(-80px) rotate(-8deg);
    }

    30% {
      opacity: 1;
    }

    62% {
      transform: translateY(5px) rotate(4deg);
    }

    82% {
      transform: translateY(-2px) rotate(-2deg);
    }

    100% {
      transform: none;
    }
  }

  /* Ortsende-Tafel: Der Balken zieht sich einmal über den Namen
     (Abschnitt 14, main.js Abschnitt 5a) */
  .ortsende.ist-wartend .ortsende__tafel::after {
    clip-path: inset(0 100% 0 0);
  }

  .ortsende.ist-gesehen .ortsende__tafel::after {
    transition: clip-path 0.6s cubic-bezier(0.5, 0, 0.2, 1) 0.2s;
  }
}


/* Seitenwechsel: weich statt hart. Wechselt man zwischen Startseite,
   Mietbedingungen, Datenschutz und Impressum, blendet der Browser die alte
   Seite aus und die neue mit einer kleinen Bewegung ein, die Kopfzeile
   bleibt stehen (View Transitions zwischen Seiten, Safari ab 18.2, Chrome
   ab 126, sonst wie bisher sofort). Bei «Bewegung reduzieren» wechselt die
   Seite sofort. Der Lichtschalter nutzt die gleiche Technik, darum setzt
   main.js beim Umschalten die Klasse ist-lichtschalter: Dann ist die
   Kopfzeile keine eigene Ebene, und es gilt der Kreis aus Abschnitt 6. */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

.site-header {
  view-transition-name: kopf;
}

:root.ist-lichtschalter .site-header {
  view-transition-name: none;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: seite-weg 0.16s ease-in both;
  }

  ::view-transition-new(root) {
    animation: seite-her 0.34s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }

  ::view-transition-group(kopf) {
    animation-duration: 0.34s;
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  @keyframes seite-weg {
    to {
      opacity: 0;
    }
  }

  @keyframes seite-her {
    from {
      opacity: 0;
      transform: translateY(0.75rem);
    }
  }
}
