/* ==========================================================================
   Westerbock Gebäudeservice – Konzept „Schwebebahn“
   Die Seite ist eine Schwebebahnlinie: Jeder Abschnitt ist eine Haltestelle,
   ein Wagen hängt am Stahlgerüst im Kopf und fährt zur aktuellen Haltestelle.
   Aufbau: Schriften → Tokens → Basis → Komponenten → Kopf → Abschnitte →
   Rechtstexte → Fuß → Einwilligung → Hilfsklassen → Bewegung → Druck
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, SIL OFL) ---------- */
@font-face {
  font-family: 'Brygada 1918';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/brygada1918-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Brygada 1918';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/brygada1918-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inria Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inriasans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inria Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inriasans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inria Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inriasans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inria Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inriasans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Farben: Morgendämmerung über dem Tal, Stahlgerüst, Bergischer Schiefer */
  --ink: #142030;
  --muted: #4b5866;
  --snow: #f5f7f8;
  --frost: #e6edf0;
  --white: #ffffff;
  --night: #18283f;
  --night-deep: #0f1d2e;
  --mist: #c9d3df;
  --girder: #3b5a54;
  --girder-light: #8fa8a1;
  --slate: #2b3542;
  --sign: #1f3f6e;
  --signal: #b83c16;
  --signal-dark: #962f10;
  --dawn: #f3b77a;
  --dawn-pale: #fbe6cf;
  --amber: #ffb547;
  --shutter: #2f6b4f;
  --line: #c3cdd6;

  /* Schrift */
  --font-display: 'Brygada 1918', Georgia, 'Times New Roman', serif;
  --font-text: 'Inria Sans', 'Segoe UI', system-ui, sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);

  /* Raum und Form */
  --gutter: clamp(16px, 3vw, 32px);
  --wrap: 1240px;
  --section-y: clamp(64px, 8vw, 120px);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 10px 30px rgb(15 29 46 / 0.12);
  --header-h: 64px;
  --truss: repeating-linear-gradient(60deg, transparent 0 6px, var(--girder) 6px 7.5px, transparent 7.5px 13px),
    repeating-linear-gradient(-60deg, transparent 0 6px, var(--girder) 6px 7.5px, transparent 7.5px 13px);
}

@media (min-width: 1180px) {
  :root { --header-h: 84px; }
}

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

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

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
}

body.nav-open { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

p, li, dd { text-wrap: pretty; }

a {
  color: var(--sign);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--signal); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

[tabindex="-1"]:focus { outline: none; }

[hidden] { display: none; }

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

address { font-style: normal; }

code {
  font-size: 0.92em;
  background: var(--frost);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--night);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus { top: 12px; }

/* ---------- Komponenten: Schaltflächen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 700 var(--step-0) / 1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

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

.btn-signal {
  background: var(--signal);
  color: var(--white);
}

.btn-signal:hover {
  background: var(--signal-dark);
  color: var(--white);
}

.btn-ghost {
  border-color: var(--mist);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgb(255 255 255 / 0.08);
  color: var(--white);
}

.nobr { white-space: nowrap; }

/* ---------- Kopf: die Linie ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--snow);
  border-bottom: 1px solid var(--line);
}

/* Unter 1180 px verläuft ein schmales Gerüst an der Oberkante des Kopfes. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  border-bottom: 2px solid var(--girder);
  background: var(--truss);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  max-width: 1400px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 6px var(--gutter) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

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

.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font: 700 1.3rem / 1 var(--font-display);
  letter-spacing: 0.01em;
}

.brand-sub {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-cta { flex: none; }

.cta-short { display: none; }

/* Der Wagen als Menüknopf (unter 1180 px). */
.car-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 14px 0 8px;
  border: 2px solid var(--girder);
  border-radius: 22px;
  background: var(--white);
  color: var(--girder);
  font: 700 var(--step--1) / 1 var(--font-text);
  white-space: nowrap;
  cursor: pointer;
}

.car-toggle:hover { background: var(--frost); }

.car-toggle[aria-expanded="true"] {
  background: var(--night-deep);
  border-color: var(--night-deep);
  color: var(--amber);
}

.car-toggle-icon {
  width: 40px;
  height: 19px;
}

.car-toggle-label { color: var(--ink); }

.car-toggle[aria-expanded="true"] .car-toggle-label { color: var(--amber); }

.car-body { fill: var(--signal); }

.car-glass { fill: var(--dawn-pale); }

/* Haltestellenliste als Fahrgastanzeige (unter 1180 px). */
.line {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 24px var(--gutter) 32px;
  background: var(--night-deep);
  color: var(--mist);
  box-shadow: 0 24px 40px rgb(15 29 46 / 0.35);
}

.line.is-open { display: block; }

.line-title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.line-stations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.station {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid rgb(255 181 71 / 0.35);
  border-radius: var(--radius);
  color: var(--amber);
  font-weight: 700;
  font-size: var(--step-1);
  text-decoration: none;
  white-space: nowrap;
}

.station:hover {
  background: rgb(255 181 71 / 0.1);
  color: var(--amber);
}

.station-no {
  font-family: var(--font-display);
  font-size: var(--step--1);
  color: var(--mist);
}

.line-car { display: none; }

.line-info {
  margin: 20px 0 0;
  font-size: var(--step--1);
}

.line-info a { color: var(--white); }

@media (min-width: 1180px) {
  .site-header::before { display: none; }

  .header-inner { padding-top: 0; }

  .car-toggle { display: none; }

  .line {
    display: block;
    position: static;
    flex: 1;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .line-title,
  .line-info,
  .station-no { display: none; }

  /* Das Stahlgerüst mit den Haltestellen darüber. */
  .line-track {
    position: relative;
    height: var(--header-h);
  }

  .line-track::before {
    content: '';
    position: absolute;
    inset: 44px 0 auto;
    height: 12px;
    border-block: 2px solid var(--girder);
    background: var(--truss);
  }

  .line-stations {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    height: 100%;
    padding: 0 18px;
  }

  .station {
    position: relative;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    height: 56px;
    padding: 12px 6px 0;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    font-size: 0.98rem;
  }

  /* Bahnsteigmarke auf dem Gerüst */
  .station::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 41px;
    width: 18px;
    height: 18px;
    border: 3px solid var(--girder);
    border-radius: 50%;
    background: var(--snow);
    transform: translateX(-50%);
    transition: background-color 0.3s, border-color 0.3s;
  }

  .station:hover {
    background: none;
    color: var(--signal);
  }

  .station[aria-current] { color: var(--signal); }

  .station[aria-current]::after {
    border-color: var(--signal);
    background: var(--signal);
  }

  .line-car {
    display: block;
    position: absolute;
    left: 0;
    top: 55px;
    width: 52px;
    height: 25px;
    color: var(--slate);
    transform: translateX(calc(var(--car-x, 0px) - 50%));
    transition: transform 0.7s cubic-bezier(0.55, 0, 0.25, 1);
    pointer-events: none;
  }

  .car-svg {
    display: block;
    width: 52px;
    height: 25px;
  }
}

@media (max-width: 520px) {
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .brand-sub { display: none; }
  .header-cta { padding: 0 16px; }
}

@media (max-width: 430px) {
  .car-toggle { padding: 0 8px; }
  .car-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 359px) {
  .brand-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* ---------- Abschnitte: gemeinsame Haltestellen-Köpfe ---------- */
.stop {
  padding: var(--section-y) var(--gutter);
}

.stop > * {
  max-width: var(--wrap);
  margin-inline: auto;
}

.stop-head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* Ein Stück Gerüst, darunter hängt das Haltestellenschild. */
.stop-head::before {
  content: '';
  display: block;
  height: 12px;
  margin-bottom: 18px;
  border-block: 2px solid var(--girder);
  background: var(--truss);
}

.stop-sign {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  margin: 0 0 22px 24px;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  outline: 2px solid var(--sign);
  background: var(--sign);
  color: var(--white);
  font-weight: 700;
}

.stop-sign::before,
.stop-sign::after {
  content: '';
  position: absolute;
  top: -22px;
  width: 3px;
  height: 20px;
  background: var(--girder);
}

.stop-sign::before { left: 16px; }

.stop-sign::after { right: 16px; }

.stop-no {
  padding: 6px 12px;
  background: var(--white);
  color: var(--sign);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stop-name {
  padding: 6px 16px;
  font-size: var(--step-0);
  letter-spacing: 0.04em;
}

.stop-head h2 {
  max-width: 22ch;
  font-size: var(--step-3);
}

.stop-intro {
  max-width: 62ch;
  margin: 16px 0 0;
  font-size: var(--step-1);
  color: var(--muted);
}

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

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) var(--gutter) 0;
}

/* Die Überschrift steigt wie eine verschneite Treppe ab. */
.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem);
  line-height: 1.04;
}

.step {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin-left: calc(var(--i, 0) * 1.15em);
  padding: 0.16em 0.42em 0.2em;
  background: var(--slate);
  border-top: 0.12em solid var(--snow);
  border-radius: 0.08em 0.08em 0 0;
  box-shadow: inset 0 -0.14em 0 rgb(0 0 0 / 0.28);
}

.hero-side {
  padding-bottom: 6px;
}

.hero-lead {
  margin: 0;
  font-size: var(--step-1);
  color: var(--mist);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-call {
  margin: 18px 0 0;
  font-size: var(--step--1);
  color: var(--mist);
}

.hero-call a { color: var(--white); }

.hero-scene {
  position: relative;
  margin-top: clamp(28px, 4vw, 56px);
}

.scene {
  display: block;
  width: 100%;
  height: clamp(260px, 38vw, 560px);
}

.scene-car { animation: ride 46s linear infinite; }

@keyframes ride {
  from { transform: translateX(-300px); }
  to { transform: translateX(1480px); }
}

/* Das Haltestellenschild mit der Geschäftsanschrift steht auf dem Stationsdach. */
.station-sign {
  position: absolute;
  left: 67.4%;
  bottom: 71.4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 10px;
  padding: 8px 20px 10px;
  border: 3px solid var(--white);
  border-radius: var(--radius);
  outline: 3px solid var(--sign);
  background: var(--sign);
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 24px rgb(15 29 46 / 0.4);
}

.station-sign::before,
.station-sign::after {
  content: '';
  position: absolute;
  top: 100%;
  width: 4px;
  height: 16px;
  margin-top: 3px;
  background: var(--slate);
}

.station-sign::before { left: 22%; }

.station-sign::after { right: 22%; }

.station-sign-street {
  font: 700 clamp(1.1rem, 0.8rem + 1vw, 1.6rem) / 1.15 var(--font-text);
  letter-spacing: 0.02em;
}

.station-sign-sep { display: none; }

.station-sign-city {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 899px) {
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 699px) {
  .hero-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 28px;
  }

  .station-sign {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -8px var(--gutter) 0;
    max-width: calc(100% - 2 * var(--gutter));
    white-space: normal;
    transform: none;
  }

  .station-sign::before,
  .station-sign::after { display: none; }

  .step {
    max-width: calc(100% - var(--i, 0) * 0.55em);
    margin-left: calc(var(--i, 0) * 0.55em);
  }
}

/* ---------- Halt 1: Winterdienst ---------- */
.winter-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.profile { margin: 0; }

.profile-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #d4e0ea, var(--snow));
}

.profile-pins circle {
  fill: var(--signal);
  stroke: var(--white);
  stroke-width: 3;
}

.profile-pins text {
  fill: var(--white);
  font: 700 18px var(--font-text);
  text-anchor: middle;
}

.profile figcaption {
  margin-top: 10px;
  font-size: var(--step--1);
  color: var(--muted);
}

.profile-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pin;
}

.profile-list li {
  position: relative;
  padding: 0 0 18px 52px;
  counter-increment: pin;
}

.profile-list li + li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-list li::before {
  content: counter(pin);
  position: absolute;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--white);
  font-weight: 700;
}

.profile-list h3 {
  font-size: var(--step-1);
}

.profile-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

.winter-rules {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 72px);
}

.winter-facts {
  margin: 0;
  border-top: 3px solid var(--night);
}

.winter-facts div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.winter-facts dt { font-weight: 700; }

.winter-facts dd { margin: 0; }

.protocol {
  padding: 22px clamp(16px, 2.4vw, 28px) 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.duty-note {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 20px 24px;
  border-left: 6px solid var(--dawn);
  background: var(--dawn-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Tabellen lösen sich auf schmalen Bildschirmen in Einträge auf. */
.stack-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.stack-table caption {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  text-align: left;
}

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

.stack-table thead th {
  border-bottom: 2px solid var(--night);
  font-weight: 700;
}

@media (max-width: 760px) {
  .stack-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .stack-table tr {
    display: block;
    padding: 10px 0;
    border-bottom: 2px solid var(--line);
  }

  .stack-table td {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 10px;
    padding: 4px 0;
    border: 0;
  }

  .stack-table td::before {
    content: attr(data-label);
    font-weight: 700;
  }
}

@media (max-width: 899px) {
  .winter-grid,
  .winter-rules { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .winter-facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Halt 2: Reinigung als Wagenreihung ---------- */
.stop-clean { background: var(--frost); }

.train {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
  padding: 26px 0 0;
  list-style: none;
  position: relative;
}

/* Der Fahrdraht, an dem alle Wagen hängen. */
.train::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  border-block: 2px solid var(--girder);
  background: var(--truss);
}

.wagon {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 26px;
  border-radius: 18px 18px var(--radius) var(--radius);
  background: var(--white);
  border-top: 8px solid var(--signal);
  box-shadow: var(--shadow);
}

/* Aufhängung jedes Wagens */
.wagon::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  width: 4px;
  height: 16px;
  background: var(--girder);
  transform: translateX(-50%);
}

/* Kupplung zum nächsten Wagen */
.wagon + .wagon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -14px;
  width: 14px;
  height: 6px;
  background: var(--slate);
}

.wagon-letter {
  margin: 0 0 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--night);
  color: var(--white);
  font: 700 1.1rem / 1 var(--font-display);
}

.wagon h3 {
  font-size: var(--step-1);
  hyphens: manual;
}

.wagon p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--step--1);
}

.clean-note {
  margin-top: clamp(28px, 3vw, 40px);
  color: var(--muted);
}

@media (max-width: 1060px) {
  .train { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .wagon:nth-child(4)::after { display: none; }
}

@media (max-width: 680px) {
  .train {
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding: 0 0 0 26px;
  }

  .train::before {
    inset: 0 auto 0 0;
    width: 10px;
    height: auto;
    border-block: 0;
    border-inline: 2px solid var(--girder);
  }

  .wagon::before {
    top: 50%;
    left: -16px;
    width: 16px;
    height: 4px;
    transform: translateY(-50%);
  }

  .wagon + .wagon::after { display: none; }
}

/* ---------- Halt 3: Hausmeister-Rundgang ---------- */
.round {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: round;
}

.round li {
  position: relative;
  padding-top: 56px;
  counter-increment: round;
}

/* Die Linie läuft durch alle Stationen des Rundgangs. */
.round li::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 0;
  right: -18px;
  height: 6px;
  background: var(--shutter);
}

.round li:last-child::before { right: auto; width: 20px; }

.round li::after {
  content: counter(round);
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 4px solid var(--shutter);
  border-radius: 50%;
  background: var(--snow);
  color: var(--shutter);
  font-weight: 700;
}

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

.round p {
  margin: 6px 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}

.care-note {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

@media (max-width: 1060px) {
  .round { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .round li:nth-child(3n)::before { right: auto; width: 20px; }
}

@media (max-width: 640px) {
  .round { grid-template-columns: 1fr; row-gap: 0; }

  .round li {
    padding: 4px 0 24px 60px;
  }

  .round li::before,
  .round li:nth-child(3n)::before,
  .round li:last-child::before {
    top: 0;
    bottom: 0;
    left: 17px;
    right: auto;
    width: 6px;
    height: auto;
  }

  .round li:last-child::before { bottom: auto; height: 20px; }
}

/* ---------- Halt 4: Entrümpelung ---------- */
.stop-clear {
  background: var(--night);
  color: var(--white);
}

.stop-clear .stop-intro { color: var(--mist); }

.stop-clear .stop-head::before { border-color: var(--girder-light); background: repeating-linear-gradient(60deg, transparent 0 6px, var(--girder-light) 6px 7.5px, transparent 7.5px 13px), repeating-linear-gradient(-60deg, transparent 0 6px, var(--girder-light) 6px 7.5px, transparent 7.5px 13px); }

.carriage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.carriage-col {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--night-deep);
  border: 1px solid rgb(201 211 223 / 0.25);
}

.carriage-col h3 {
  font-size: var(--step-2);
}

.carriage-kicker {
  display: block;
  margin-bottom: 6px;
  font: 700 var(--step--1) / 1.3 var(--font-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.carriage-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.carriage-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-top: 1px solid rgb(201 211 223 / 0.2);
  color: var(--mist);
}

.carriage-list li::before {
  position: absolute;
  left: 0;
  top: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}

.carriage-yes li::before {
  content: '+';
  background: var(--girder-light);
  color: var(--night-deep);
}

.carriage-no li::before {
  content: '–';
  background: var(--dawn);
  color: var(--night-deep);
}

.clear-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(28px, 3vw, 40px) auto 0;
  padding: 0;
  list-style: none;
}

.clear-facts li {
  padding-top: 14px;
  border-top: 3px solid var(--dawn);
  color: var(--mist);
}

.clear-facts strong { color: var(--white); }

@media (max-width: 760px) {
  .carriage,
  .clear-facts { grid-template-columns: 1fr; }
}

/* ---------- Halt 5: Ablauf als Treppe ---------- */
.stop-steps { background: var(--frost); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.step-block {
  position: relative;
  padding: 22px 20px 24px;
  background: var(--slate);
  color: var(--mist);
  border-top: 8px solid var(--white);
}

/* Jede Stufe liegt höher als die vorige. */
.step-block:nth-child(1) { min-height: 230px; }
.step-block:nth-child(2) { min-height: 280px; }
.step-block:nth-child(3) { min-height: 330px; }
.step-block:nth-child(4) { min-height: 380px; }

.step-block + .step-block { border-left: 2px solid var(--night-deep); }

.step-no {
  display: block;
  font: 700 2.4rem / 1 var(--font-display);
  color: var(--dawn);
}

.step-block h3 {
  margin-top: 8px;
  font-size: var(--step-1);
  color: var(--white);
}

.step-block p {
  margin: 8px 0 0;
  font-size: var(--step--1);
}

.area {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
}

.area h3 { font-size: var(--step-2); }

.area-text p { margin: 12px 0 0; }

.valley { margin: 0; }

.valley-art {
  display: block;
  width: 100%;
  height: auto;
}

.valley-stops circle {
  fill: var(--white);
  stroke: var(--girder);
  stroke-width: 4;
}

.valley-labels text,
.valley-hills text,
.valley-edges text,
.valley-home text {
  font: 700 19px var(--font-text);
  fill: var(--ink);
  text-anchor: middle;
}

.valley-hills text { fill: var(--muted); font-weight: 400; }

.valley-edges text {
  font-weight: 400;
  fill: var(--muted);
  text-anchor: start;
}

.valley-edges text:last-child { text-anchor: end; }

.valley-home circle { fill: var(--signal); }

.valley-home path { stroke: var(--signal); }

.valley-home text {
  fill: var(--signal);
  text-anchor: start;
}

@media (max-width: 899px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-block:nth-child(n) { min-height: 0; }
  .step-block:nth-child(3) { border-left: 0; }
  .area { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .valley { display: none; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step-block:nth-child(n) { border-left: 0; }
  .step-block:nth-child(2) { margin-left: 16px; }
  .step-block:nth-child(3) { margin-left: 32px; }
  .step-block:nth-child(4) { margin-left: 48px; }
}

/* ---------- Halt 6: Auskunft ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.info { margin: 0; }

/* Schalter mit Kontakt, bleibt beim Lesen im Blick. */
.desk {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 22px;
  border-radius: var(--radius-lg);
  border-top: 6px solid var(--amber);
  background: var(--night);
  color: var(--mist);
}

.desk p { margin: 0 0 12px; }

.desk p:last-child { margin: 0; }

.desk a { color: var(--white); }

.desk-title {
  font: 700 var(--step-1) / 1.2 var(--font-display);
  color: var(--white);
}

.desk-phone a {
  font: 700 var(--step-2) / 1.2 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .faq { grid-template-columns: 1fr; }
  .desk { position: static; }
}

.info-item + .info-item { margin-top: 18px; }

/* Die Frage erscheint wie auf einer Fahrgastanzeige. */
.info dt {
  padding: 14px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--night-deep);
  color: var(--amber);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.35;
}

.info dd {
  margin: 0;
  padding: 16px 20px 18px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
}

/* ---------- Halt 7: Objekt-Anfrage ---------- */
.stop-form { background: var(--frost); }

.request {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.request-form {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.field-group {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field-group legend {
  margin-bottom: 12px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
}

.req,
.opt {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--muted);
}

.req { color: var(--signal); }

.choice-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice,
.chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

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

.choice span,
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--snow);
  font-weight: 700;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.chip span { border-radius: 23px; }

.choice span::before,
.chip span::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.chip span::before { border-radius: 3px; }

.choice:hover span,
.chip:hover span { border-color: var(--girder); }

.choice input:checked + span,
.chip input:checked + span {
  border-color: var(--night);
  background: var(--night);
  color: var(--white);
}

.choice input:checked + span::before,
.chip input:checked + span::before {
  border-color: var(--amber);
  background: var(--amber);
}

.choice input:focus-visible + span,
.chip input:focus-visible + span {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.choice input[aria-invalid="true"] + span,
.chip input[aria-invalid="true"] + span { border-color: var(--signal); }

.measure-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid #7d8a98;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea { resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 1px;
  border-color: var(--night);
}

.field [aria-invalid="true"] { border-color: var(--signal); }

.unit-input {
  display: flex;
  align-items: stretch;
}

.unit-input input {
  border-radius: var(--radius) 0 0 var(--radius);
  min-width: 0;
}

.unit-input span {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 2px solid #7d8a98;
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--frost);
  font-size: var(--step--1);
  font-weight: 700;
}

.field-error {
  margin: 6px 0 0;
  color: var(--signal);
  font-size: var(--step--1);
  font-weight: 700;
}

.field-error:empty,
.form-status:empty { display: none; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-hint {
  margin: 4px 0 20px;
  font-size: var(--step--1);
  color: var(--muted);
}

.btn-submit { width: 100%; }

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 700;
}

.form-status.is-success {
  background: #e3f0e9;
  color: #1d4a35;
}

.form-status.is-error {
  background: #f9e3dc;
  color: #7c2408;
}

/* Fahrschein mit Abriss */
.ticket {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border-radius: var(--radius-lg);
  background: var(--dawn-pale);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ticket-main { padding: 22px 22px 18px; }

.ticket-title {
  margin: 0 0 12px;
  font: 700 var(--step-1) / 1.2 var(--font-display);
}

.ticket-rows { margin: 0; }

.ticket-rows div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px dashed #c99b6b;
  font-size: var(--step--1);
}

.ticket-rows dt { font-weight: 700; }

.ticket-rows dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.ticket-stub {
  position: relative;
  padding: 22px;
  border-top: 2px dashed var(--ink);
  background: var(--night);
  color: var(--mist);
  font-size: var(--step--1);
}

/* Lochung an der Abrisskante */
.ticket-stub::before,
.ticket-stub::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--frost);
}

.ticket-stub::before { left: -11px; }

.ticket-stub::after { right: -11px; }

.ticket-stub p { margin: 0 0 12px; }

.ticket-stub p:last-child { margin: 0; }

.ticket-stub a { color: var(--white); }

.ticket-stub-title {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

@media (max-width: 980px) {
  .request { grid-template-columns: 1fr; }
  .ticket { position: static; }
}

@media (max-width: 600px) {
  .measure-row,
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .measure-row .field { margin-bottom: 14px; }
}

/* ---------- Rechtstexte: Aushangkasten ---------- */
.notice {
  padding: clamp(32px, 6vw, 80px) var(--gutter);
  background: var(--frost);
}

.notice-case {
  max-width: 920px;
  margin: 0 auto;
  border: 10px solid var(--slate);
  border-radius: var(--radius-lg);
  background: var(--slate);
  box-shadow: var(--shadow);
}

.notice-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 6px 12px 14px;
  color: var(--mist);
  font-size: var(--step--1);
}

.notice-bar-label {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.notice-sheet {
  padding: clamp(22px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--white);
}

.notice-sheet h1 {
  font-size: var(--step-3);
  hyphens: manual;
}

.prose { margin-top: 24px; }

.prose h2 {
  margin: 40px 0 12px;
  font-size: var(--step-2);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: var(--step-1);
}

.prose p,
.prose ul,
.prose ol,
.prose address,
.prose dl { margin: 0 0 14px; }

.prose li + li { margin-top: 4px; }

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

.toc {
  margin: 24px 0 8px;
  padding: 18px 22px;
  border-left: 6px solid var(--girder);
  background: var(--snow);
}

.toc h2 {
  margin: 0 0 8px;
  font-size: var(--step-1);
}

.toc ol {
  columns: 2 16em;
  column-gap: 32px;
  margin: 0;
  padding-left: 1.4em;
}

.toc li { break-inside: avoid; }

.facts div {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 12px;
}

.facts dt { font-weight: 700; }

.facts dd { margin: 0; }

.highlight {
  margin: 20px 0;
  padding: 18px 22px;
  border-left: 6px solid var(--signal);
  background: var(--dawn-pale);
}

.highlight h3 { margin-top: 0; }

.form-sample {
  padding: 18px 22px;
  border: 2px dashed var(--muted);
  border-radius: var(--radius);
}

.form-sample ul { padding-left: 1.2em; }

@media (max-width: 520px) {
  .facts div { grid-template-columns: 1fr; gap: 0; }
  .notice-case { border-width: 6px; }
}

/* ---------- 404 ---------- */
.lost {
  padding: clamp(48px, 8vw, 120px) var(--gutter);
  background: var(--night);
  color: var(--mist);
}

.lost-board {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--night-deep);
}

.lost-code {
  margin: 0;
  font: 700 clamp(3rem, 2rem + 4vw, 5rem) / 1 var(--font-display);
  color: var(--amber);
}

.lost h1 {
  margin-top: 12px;
  font-size: var(--step-3);
  color: var(--white);
}

.lost a { color: var(--white); }

.lost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.lost-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgb(255 181 71 / 0.5);
  border-radius: var(--radius);
  color: var(--amber);
  text-decoration: none;
  font-weight: 700;
}

.lost-links a:hover { background: rgb(255 181 71 / 0.1); color: var(--amber); }

/* ---------- Fuß: Endstation ---------- */
.site-footer {
  background: var(--night-deep);
  color: var(--mist);
  padding: clamp(40px, 6vw, 72px) var(--gutter) 28px;
}

.terminus {
  max-width: var(--wrap);
  margin: 0 auto;
}

.terminus-title {
  margin: 0 0 24px;
  font: 700 var(--step-2) / 1.2 var(--font-display);
  color: var(--white);
}

.terminus-kicker {
  display: block;
  font: 700 var(--step--1) / 1.4 var(--font-text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

/* Die Rechtslinks sind die letzten Halte; am Ende steht ein Prellbock. */
.terminus-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0 40px 0 0;
  list-style: none;
}

.terminus-line::before {
  content: '';
  position: absolute;
  inset: 21px 26px auto 0;
  height: 6px;
  background: var(--girder-light);
}

.terminus-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  width: 26px;
  height: 32px;
  border-radius: 4px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 6px, var(--night-deep) 6px 12px);
}

.terminus-line li { position: relative; }

.terminus-line a,
.terminus-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px 0 0;
  border: 0;
  background: var(--night-deep);
  color: var(--white);
  font: 700 var(--step--1) / 1.2 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.terminus-line a::before,
.terminus-button::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border: 4px solid var(--girder-light);
  border-radius: 50%;
  background: var(--night-deep);
}

.terminus-line a:hover,
.terminus-button:hover { color: var(--amber); }

.terminus-line a:hover::before,
.terminus-button:hover::before { border-color: var(--amber); }

.footer-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgb(201 211 223 / 0.2);
  font-size: var(--step--1);
}

.footer-facts p { margin: 0; }

.footer-facts strong { color: var(--white); }

.footer-facts a { color: var(--white); }

.footer-copy {
  margin: 32px 0 0;
  font-size: var(--step--1);
  color: var(--girder-light);
}

@media (max-width: 860px) {
  .terminus-line {
    flex-direction: column;
    gap: 2px;
    padding: 0 0 40px;
  }

  .terminus-line::before {
    inset: 0 auto 26px 7px;
    width: 6px;
    height: auto;
  }

  .terminus-line::after {
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    width: 20px;
    height: 26px;
  }

  .footer-facts { grid-template-columns: 1fr; }
}

/* ---------- Cookie-Einwilligung ---------- */
.consent-banner {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 22px;
  border-top: 6px solid var(--amber);
  border-radius: var(--radius-lg);
  background: var(--night-deep);
  color: var(--mist);
  box-shadow: 0 20px 50px rgb(15 29 46 / 0.45);
}

.consent-title {
  font-size: var(--step-1);
  color: var(--white);
}

.consent-text {
  margin: 8px 0 0;
  font-size: var(--step--1);
}

.consent-banner a { color: var(--white); }

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.consent-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--night-deep);
  font: 700 var(--step--1) / 1 var(--font-text);
  cursor: pointer;
}

.consent-btn:hover { background: #ffc875; }

.consent-link {
  min-height: 46px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--white);
  font: 700 var(--step--1) / 1 var(--font-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
}

.consent-dialog::backdrop { background: rgb(15 29 46 / 0.6); }

.consent-dialog-inner { padding: 24px; }

.consent-dialog .consent-title { color: var(--ink); }

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

.consent-categories {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.consent-category {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.consent-category p {
  margin: 6px 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}

.consent-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.consent-category-head h3 { font-size: var(--step-0); }

.consent-always {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--shutter);
}

.consent-switch {
  position: relative;
  display: inline-flex;
  width: 56px;
  height: 44px;
  align-items: center;
  cursor: pointer;
}

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

.consent-switch-track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: #7d8a98;
  transition: background-color 0.2s;
}

.consent-switch-track::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s;
}

.consent-switch input:checked + .consent-switch-track { background: var(--shutter); }

.consent-switch input:checked + .consent-switch-track::after { transform: translateX(24px); }

.consent-switch input:focus-visible + .consent-switch-track {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

.consent-dialog .consent-btn {
  border-color: var(--night);
  background: var(--white);
  color: var(--night);
}

.consent-dialog .consent-btn:hover { background: var(--frost); }

.consent-dialog .consent-btn-save {
  background: var(--night);
  color: var(--white);
}

.consent-dialog .consent-btn-save:hover { background: var(--night-deep); }

/* ---------- Hilfsklassen ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

  .scene-car {
    animation: none !important;
    transform: translateX(420px);
  }
}

/* ---------- Druck ---------- */
@media print {
  .site-header,
  .site-footer,
  .consent-banner,
  .hero-scene,
  .request-form { display: none; }

  body { background: var(--white); }

  .notice-case { border: 0; box-shadow: none; }
}
