/* Unterseiten: Automaten, Automaten-Wagen, Anfrage */

/* Inhaltsbreite: jeder Text in Szenen richtet sich daran aus, nie am Bildschirmrand */
:root { --c: min(100vw - 48px, max(1160px, 64vw)); --cl: calc((100vw - var(--c)) / 2); }

/* ---------- Kopf der Unterseiten (Text mittig, sofort sichtbar) ---------- */
.seiten-kopf { padding: calc(var(--kopf-h) + clamp(56px, 8vw, 110px)) 0 clamp(40px, 5vw, 64px); text-align: center; }
.seiten-kopf h1 { font-size: clamp(32px, 4.2vw, 58px); max-width: 18em; margin: 0 auto; }
.seiten-kopf .text { margin: 22px auto 0; max-width: 36em; }
.seiten-kopf .knopf-reihe { justify-content: center; }

/* ---------- Variante Nachtfahrt: Bildfolge füllt den ganzen Bildschirm ---------- */
.film-szene { position: relative; height: 280vh; }
.film-buehne.bild-hero { position: sticky; top: 0; }
.film-voll { position: absolute; inset: 0; }
.film-schleier { background: linear-gradient(90deg, rgba(7, 7, 11, 0.85) 0%, rgba(7, 7, 11, 0.5) 32%, rgba(7, 7, 11, 0) 52%), linear-gradient(180deg, rgba(7, 7, 11, 0.5), transparent 20%, transparent 85%, var(--grund)); }

/* ---------- Unsere Automaten: Nachtkarte als Hero ---------- */
.karten-szene { position: relative; height: 280vh; }
.karten-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--grund); }
/* Box in Kartenmaßen, Größe und Lage setzt das JS (Fritzlar und Wabern immer rechts der Textspalte) */
.karten-rahmen { position: absolute; inset: 0; overflow: hidden; }
.karten-box { position: absolute; left: 0; top: 0; width: 2934px; height: 1779px; }
.karte-bild, .karte-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.karte-route { overflow: visible; }
.route-schein { fill: none; stroke: rgba(46, 200, 255, 0.35); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; filter: blur(6px); }
.route-linie { fill: none; stroke: #c9f3ff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.route-kopf { fill: #fff; filter: drop-shadow(0 0 6px var(--eis)) drop-shadow(0 0 14px var(--eis)); }
.ort-label { position: absolute; transform: translate(-50%, -50%); font: 500 12px/1 "Inter", sans-serif; color: rgba(214, 205, 255, 0.55); white-space: nowrap; pointer-events: none; }
.ort-label-gross { font-size: 14px; font-weight: 600; color: rgba(225, 218, 255, 0.75); }
.ort-pin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #2a3846; box-shadow: 0 0 0 2px rgba(46, 200, 255, 0.35); transition: background 0.3s, box-shadow 0.3s; }
.ort-pin.an { background: #f2fbff; box-shadow: 0 0 0 3px rgba(46, 200, 255, 0.5), 0 0 16px var(--eis), 0 0 40px rgba(46, 200, 255, 0.6); }
.ort-pin.an::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(46, 200, 255, 0.6); animation: pin-puls 2.2s ease-out infinite; }
@keyframes pin-puls { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
/* Ortsschild links neben dem Pin, rechts davon hängt die Infokarte */
.karten-roehre { position: absolute; transform: translate(calc(-100% - 24px), -50%); font-size: 40px; }

.karten-schleier { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 52% 32% at 50% 20%, rgba(7, 7, 11, 0.92), rgba(7, 7, 11, 0.6) 55%, transparent 100%), linear-gradient(180deg, rgba(7, 7, 11, 0.7), transparent 30%, transparent 85%, rgba(7, 7, 11, 0.8)); }
.karten-text { position: absolute; left: 50%; top: calc(var(--kopf-h) + 3.5vh); transform: translateX(-50%); width: min(920px, var(--c)); text-align: center; z-index: 2; }
.karten-text h1 { font-size: clamp(30px, 3.1vw, 52px); }
.karten-text .einleitung { margin: 14px auto 0; }

/* Infokarten der beiden Orte, rechte Spalte */
.ort-info {
  position: absolute; left: 0; top: 0; width: min(430px, 32vw); z-index: 2;
  display: grid; grid-template-columns: 0.8fr 1fr; gap: 18px; padding: 14px;
  background: rgba(10, 9, 18, 0.9); border: 1px solid rgba(46, 200, 255, 0.35); border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(46, 200, 255, 0.12), 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(18px); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); pointer-events: none;
}
.ort-info.ist-da { opacity: 1; transform: none; pointer-events: auto; }
.ort-info img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; border-radius: 2px; }
.ort-info[data-ort="fritzlar"] img { object-position: 40% 50%; }
.ort-info h2 { font-size: clamp(22px, 1.9vw, 28px); }
.ort-info .adresse { font-size: 16px; margin-top: 8px; }
.ort-info .status { margin-top: 10px; font-size: 14px; }
.ort-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.karten-quelle { position: absolute; right: var(--cl); bottom: 12px; margin: 0; font-size: 12px; color: rgba(246, 244, 255, 0.6); }

/* ---------- Zeitraffer: dieselbe Stelle von 18 bis 6 Uhr ---------- */
.zeit-szene { position: relative; height: 200vh; }
.zeit-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.zeit-bild, .zeit-bild img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Ausschnitt eher oben, damit die Oberkante des Automaten nicht unter der Kopfleiste verschwindet */
.zeit-bild img { object-fit: cover; object-position: 62% 15%; }
.zeit-bild[data-zeit-bild="nacht"], .zeit-bild[data-zeit-bild="morgen"] { opacity: 0; }
.zeit-schleier { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 7, 11, 0.92) 0%, rgba(7, 7, 11, 0.75) calc(var(--cl) + var(--c) * 0.36), transparent calc(var(--cl) + var(--c) * 0.52)), linear-gradient(180deg, var(--grund), transparent 14%, transparent 86%, var(--grund)); }
.zeit-text { position: absolute; left: var(--cl); top: 50%; transform: translateY(-50%); width: min(520px, var(--c) * 0.44); }
.zeit-text .titel { font-size: clamp(28px, 2.6vw, 40px); }
.zeit-uhr { display: flex; align-items: center; gap: 18px; margin: 0 0 26px; font: 800 clamp(48px, 6vw, 92px)/1 "Unbounded", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.zeit-offen { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font: 600 15px/1 "Inter", sans-serif; color: #fff; background: rgba(7, 7, 11, 0.6); border: 1px solid rgba(61, 255, 154, 0.5); border-radius: 999px; letter-spacing: 0; }

.hinweis-klaeren { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: #ffd166; }

/* ---------- Großer Bild-Hero (Prinzip wie Startseite: Motiv rechts, Text links) ---------- */
.bild-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--grund); }
.bild-hero .hero-text { width: min(580px, 38vw); }
.bild-hero h1 { font-size: clamp(30px, 2.9vw, 48px); }

/* Unsere Automaten: Foto füllt rechts den Bildschirm, links läuft es ins Schwarz */
.automat-foto { position: absolute; inset: 0 0 0 16vw; }
.automat-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.automat-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--grund) 0%, rgba(7, 7, 11, 0) 28%), linear-gradient(180deg, rgba(7, 7, 11, 0.5), transparent 22%, transparent 80%, var(--grund)); }
.sprung-reihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Automaten-Wagen: Klappe öffnet sich beim Scrollen ---------- */
.klappe-szene { position: relative; height: 260vh; }
.klappe-buehne { position: sticky; top: 0; }
/* Bild hängt an der Inhaltsbreite: der Wagen (20–78 % der Bildbreite) steht rechts neben dem Text,
   die Ränder laufen weich in die unscharfe Kopie dahinter */
.wagen-bild, .orte-bild {
  --bw: min(var(--c) * 1.1, 100svh * 16 / 9 * 0.92);
  position: absolute; top: 52%; width: var(--bw); height: calc(var(--bw) * 9 / 16); left: calc(var(--cl) + var(--c) * 0.43 - 0.2 * var(--bw)); transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
/* Unscharfe Kopie füllt den ganzen Bildschirm, damit um das Bild herum kein Schwarz bleibt */
.buehne-grund { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(28px) brightness(0.42) saturate(1.2); transition: opacity 0.7s ease; }
.film-bild img, .film-bild canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.klappe-buehne .schleier { background: linear-gradient(90deg, rgba(7, 7, 11, 0.9) 0%, rgba(7, 7, 11, 0.75) calc(var(--cl) + var(--c) * 0.3), rgba(7, 7, 11, 0) calc(var(--cl) + var(--c) * 0.46)), linear-gradient(180deg, rgba(7, 7, 11, 0.55), transparent 20%, transparent 92%, rgba(7, 7, 11, 0.25)); }
@media (min-width: 861px) {
  /* Wagen-Hero: das Video füllt den ganzen Bildschirm, der Wagen steht rechts im Bild neben dem Text */
  .klappe-buehne .buehne-grund { display: none; }
  .klappe-buehne .wagen-bild { inset: 0; left: 0; top: 0; width: 100%; height: 100%; transform: none; -webkit-mask-image: none; mask-image: none; }
  .klappe-buehne .wagen-bild .film-start { object-position: 80% 50%; }
}

/* Text am Container, schmal genug, dass er vor dem Wagen endet */
.bild-hero .klappe-text { left: var(--cl); width: calc(var(--c) * 0.38); }
.film-buehne .hero-text { left: var(--cl); width: min(560px, var(--c) * 0.46); }
.bild-hero .klappe-text h1 { font-size: clamp(28px, 2.5vw, 42px); }

/* ---------- Wo der Wagen stehen kann: Wagen bleibt, der Ort wechselt beim Scrollen ---------- */
.orte-szene { position: relative; height: 420vh; }
.orte-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* Bilder 16:9, der Wagen liegt bei 20–78 % der Breite: gleiche Lage wie im Hero */
.orte-bild { opacity: 0; transition: opacity 0.7s ease; }
.orte-bild.ist-da { opacity: 1; }
.orte-bild img { width: 100%; height: 100%; object-fit: cover; }
.orte-schleier { pointer-events: none; }
.orte-schleier { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 7, 11, 0.9) 0%, rgba(7, 7, 11, 0.8) calc(var(--cl) + var(--c) * 0.3), rgba(7, 7, 11, 0) calc(var(--cl) + var(--c) * 0.46)), linear-gradient(180deg, var(--grund), transparent 16%, transparent 84%, var(--grund)); }
.orte-text { position: absolute; left: var(--cl); top: 50%; transform: translateY(-50%); width: calc(var(--c) * 0.38); }
.orte-grund { opacity: 0; }
.orte-grund.ist-da { opacity: 1; }
.orte-schritte { list-style: none; padding: 0; margin: 28px 0 0; }
.orte-schritte li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 17px; font-weight: 600; transition: color 0.3s; }
.orte-schritte li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.orte-schritte li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #3a3550; transform: translateY(-50%); transition: background 0.3s, box-shadow 0.3s; }
.orte-schritte li.ist-da { color: #fff; }
.orte-schritte li.ist-da::before { background: var(--eis); box-shadow: 0 0 10px var(--eis), 0 0 20px var(--eis); }
.orte-punkte { display: none; }
/* Ortsname als Neon-Röhre unten rechts im Bild */
.orte-schild { position: absolute; right: var(--cl); bottom: clamp(28px, 7vh, 72px); margin: 0; opacity: 0; transition: opacity 0.3s; }
.orte-schild.ist-da { opacity: 1; }
.orte-schild .roehre { font-size: clamp(36px, 4.4vw, 68px); }

/* Zwei Argumente nebeneinander */
/* Subgrid: Überschriften und Texte beider Kästen liegen auf derselben Höhe */
.argumente { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; column-gap: 20px; }
.argument { position: relative; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; padding: clamp(28px, 4vw, 44px); background: linear-gradient(160deg, #17132a, var(--grund-2)); border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; }
.argument h2 { align-self: end; }
.argument::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--eis), var(--violett)); box-shadow: var(--led-glanz); }
.argument h2 { font-size: clamp(21px, 1.9vw, 27px); }
.argument p { margin: 16px 0 0; font-size: 18px; font-weight: 500; color: #fff; }

/* Was der Wagen vor Ort braucht */
.vor-ort { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vor-ort div { padding: 22px 24px; border-left: 2px solid var(--eis); background: rgba(19, 17, 31, 0.7); border-radius: 0 var(--radius) var(--radius) 0; }
.vor-ort strong { display: block; font: 800 20px/1.25 "Unbounded", sans-serif; }
.vor-ort span { display: block; margin-top: 6px; font-weight: 500; }

/* Ablauf: vier Schritte auf einer LED-Linie */
.ablauf { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.ablauf::before, .ablauf::after { content: ""; position: absolute; left: 24px; right: calc((100% - 84px) / 4 - 24px); top: 23px; height: 2px; }
.ablauf::before { background: rgba(139, 61, 255, 0.25); }
.ablauf::after { background: linear-gradient(90deg, var(--violett), var(--eis)); box-shadow: var(--led-glanz); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(0.3, 0.7, 0.2, 1); }
.ablauf.ist-sichtbar::after { transform: scaleX(1); }
.ablauf li { position: relative; }
.ablauf-drei { grid-template-columns: repeat(3, 1fr); }
.ablauf-drei::before, .ablauf-drei::after { right: calc((100% - 56px) / 3 - 24px); }
.ablauf p { margin: 22px 0 0; font-size: 18px; font-weight: 600; color: #fff; }
/* Fotos unter den Schritten stehen auf einer Linie, egal wie lang der Text ist */
.ablauf-drei li { display: flex; flex-direction: column; }
.ablauf-drei p { margin-bottom: 18px; }
.ablauf-foto { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: auto; border-radius: var(--radius); border: 1px solid var(--rand); }

/* Wagen-Aufbau: echtes Foto, die Beschriftungen leuchten nacheinander auf */
.aufbau-bild { position: relative; }
.aufbau-bild img { aspect-ratio: 4 / 3; }
.aufbau-marke {
  position: absolute; transform: translate(-50%, -50%) scale(0.9); opacity: 0;
  padding: 7px 12px; border-radius: 4px; white-space: nowrap;
  font: 700 14px/1 "Unbounded", sans-serif; color: #fff;
  background: rgba(8, 7, 13, 0.82); border: 1px solid var(--eis); box-shadow: 0 0 12px rgba(46, 200, 255, 0.45);
  transition: opacity 0.45s, transform 0.45s;
}
.aufbau-bild.ist-sichtbar .aufbau-marke { opacity: 1; transform: translate(-50%, -50%); }
.aufbau-bild.ist-sichtbar .aufbau-marke:nth-of-type(2) { transition-delay: 0.35s; }
.aufbau-bild.ist-sichtbar .aufbau-marke:nth-of-type(3) { transition-delay: 0.7s; }
.aufbau-bild.ist-sichtbar .aufbau-marke:nth-of-type(4) { transition-delay: 1.05s; }
.nr { position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; font: 800 18px "Unbounded", sans-serif; background: var(--flaeche); box-shadow: 0 0 0 2px var(--violett) inset, 0 0 12px rgba(139, 61, 255, 0.4); transition: box-shadow 0.4s, background 0.4s; }
.ablauf.ist-sichtbar .nr { background: #1d1636; box-shadow: 0 0 0 2px var(--eis) inset, var(--led-glanz); }
.ablauf.ist-sichtbar li:nth-child(2) .nr { transition-delay: 0.4s; }
.ablauf.ist-sichtbar li:nth-child(3) .nr { transition-delay: 0.8s; }
.ablauf.ist-sichtbar li:nth-child(4) .nr { transition-delay: 1.2s; }

/* Vertrauen: Bild + Text */
.vertrauen-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vertrauen-bilder img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--rand); }

/* ---------- Anfrage ---------- */
.anfrage-seite { position: relative; padding: calc(var(--kopf-h) + clamp(48px, 7vw, 96px)) 16px clamp(80px, 10vw, 130px); min-height: 100vh; }
.anfrage-raster { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.anfrage-intro h1 { font-size: clamp(30px, 3.6vw, 50px); }
.anfrage-intro .text { margin-top: 18px; }
.kontakt-direkt { margin-top: 32px; padding: 24px; border: 1px solid var(--rand); border-radius: var(--radius); background: rgba(19, 17, 31, 0.6); }
.kontakt-direkt p { margin: 0; font-weight: 600; }
.kontakt-direkt a { display: block; margin-top: 10px; font-weight: 700; font-size: 20px; text-decoration: none; }
.kontakt-direkt a:hover { color: var(--eis); }
.kontakt-direkt .platzhalter { color: #ffd166; font-size: 15px; font-weight: 600; margin-top: 10px; }

.formular, .danke {
  padding: clamp(24px, 4vw, 44px);
  background: rgba(19, 17, 31, 0.92); border: 1px solid var(--rand); border-radius: 6px;
  box-shadow: 0 0 30px rgba(139, 61, 255, 0.1);
}
.formular { display: grid; gap: 18px; }
.formular fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.formular legend, .feld-titel { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.optional { font-weight: 400; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.felder label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.feld-breit { grid-column: 1 / -1; }
.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"], .formular input[type="number"], .formular textarea {
  width: 100%; min-height: 50px; padding: 0 14px;
  font: 400 16px "Inter", sans-serif; color: #fff;
  background: var(--grund); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius);
}
.formular textarea { padding: 12px 14px; resize: vertical; }
.formular input::placeholder, .formular textarea::placeholder { color: rgba(246, 244, 255, 0.6); }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--eis); box-shadow: 0 0 0 3px rgba(46, 200, 255, 0.25); }

/* Auswahl-Kacheln */
.wahl-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wahl { position: relative; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl span { display: grid; gap: 4px; height: 100%; padding: 16px 16px; border-radius: var(--radius); background: var(--grund); border: 1px solid rgba(255, 255, 255, 0.16); font-weight: 500; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.wahl strong { font: 800 16px/1.25 "Unbounded", sans-serif; }
.wahl:hover span { border-color: rgba(46, 200, 255, 0.6); }
.wahl input:checked + span { border-color: var(--eis); background: #161230; box-shadow: 0 0 0 1px var(--eis) inset, 0 0 16px rgba(46, 200, 255, 0.25); }
.wahl input:focus-visible + span { outline: 2px solid var(--eis); outline-offset: 2px; }

.haken-liste { display: grid; gap: 10px; }
.haken-feld { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: 15px; cursor: pointer; }
.haken-feld input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--eis); }
.fehler { margin: 0; font-weight: 600; color: #ff8fb0; }
.formular .knopf { justify-self: start; }

.danke { text-align: center; }
.danke h2 { font-size: clamp(26px, 3vw, 38px); }
.danke .text { margin: 16px auto 28px; }
.danke-ring { display: block; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; border: 3px solid var(--eis); box-shadow: var(--led-glanz), inset 0 0 18px rgba(46, 200, 255, 0.5); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .ablauf { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .ablauf::before, .ablauf::after { display: none; }
}

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  /* Wagen-Hero: im weiten Video steht der Wagen rechts, deshalb breiter und weiter links ansetzen */
  .klappe-buehne .wagen-bild { left: -50vw; width: 150vw; height: 84.4vw; }
  .aufbau-marke { font-size: 11px; padding: 5px 8px; }
  .seiten-kopf h1 { font-size: 30px; }
  .standort-info, .argumente, .anfrage-raster { grid-template-columns: 1fr; }
  .vor-ort { grid-template-columns: 1fr; }
  .wahl-raster { grid-template-columns: 1fr; }
  .felder { grid-template-columns: 1fr; }
  .ablauf { grid-template-columns: 1fr; gap: 26px; }
  .ablauf::before, .ablauf::after { display: block; left: 23px; right: auto; width: 2px; top: 24px; bottom: 24px; height: auto; }
  .ablauf::after { transform: scaleY(0); transform-origin: top; }
  .ablauf.ist-sichtbar::after { transform: scaleY(1); }
  .ablauf li { padding-left: 68px; min-height: 48px; }
  .ablauf .nr { position: absolute; left: 0; top: 0; }
  .ablauf p { margin-top: 10px; }
  /* Karte am Handy: nicht festgeheftet, Route zeichnet sich beim Reinscrollen. Text und Orte darunter */
  .karten-szene { height: auto; }
  .karten-buehne { position: relative; height: auto; overflow: visible; padding-top: var(--kopf-h); }
  .karten-rahmen { position: relative; inset: auto; height: 112vw; }
  .karten-schleier { background: linear-gradient(180deg, rgba(7, 7, 11, 0.5), transparent 16%, transparent 78%, var(--grund)); }
  .karten-roehre { font-size: 26px; transform: translate(-50%, calc(-100% - 14px)); }
  .karten-roehre-links { transform: translate(-50%, 14px); }
  .ort-label { font-size: 11px; }
  .ort-label-gross { font-size: 12px; }
  .karten-text { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 4px 16px 28px; margin-top: -20px; }
  .ort-info { left: auto !important; top: auto !important; }
  .buehne-grund { display: none; }
  .karten-text h1 { font-size: 28px; }
  .ort-info { position: relative; right: auto; top: auto !important; bottom: auto !important; width: auto; margin: 0 16px 14px; grid-template-columns: 0.75fr 1fr; gap: 14px; opacity: 1; transform: none; pointer-events: auto; }
  .ort-info img { min-height: 150px; }
  .karten-quelle { position: relative; left: auto; right: auto; bottom: auto; padding: 0 16px 24px; }
  .zeit-szene { height: 220vh; }
  .zeit-bild img { object-position: 58% 50%; }
  .zeit-schleier { background: linear-gradient(180deg, var(--grund) 0%, transparent 16%, transparent 45%, rgba(7, 7, 11, 0.92) 72%); }
  .zeit-text { left: 16px; right: 16px; top: auto; bottom: 28px; transform: none; width: auto; }
  .zeit-uhr { font-size: 44px; margin-bottom: 16px; }
  /* Große Heros am Handy: Bild oben, Text darunter mittig */
  .bild-hero { height: auto; min-height: 0; padding-top: var(--kopf-h); }
  .bild-hero .schleier { display: none; }
  .bild-hero .hero-text { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 0 16px 48px; margin-top: -24px; text-align: center; }
  .bild-hero h1 { font-size: 28px; }
  .bild-hero .knopf-reihe, .sprung-reihe { justify-content: center; }
  .automat-foto { position: relative; inset: auto; height: 92vw; }
  .automat-foto::after { background: linear-gradient(180deg, transparent 70%, var(--grund)); }
  .klappe-szene, .film-szene { height: 200vh; }
  .film-buehne { height: 100svh; }
  .film-voll { position: relative; inset: auto; height: 72vw; }
  .film-schleier { display: block; background: linear-gradient(180deg, transparent calc(var(--kopf-h) + 52vw), var(--grund) calc(var(--kopf-h) + 72vw)); }
  .klappe-buehne { height: 100svh; }
  .wagen-bild { position: relative; left: -12vw; top: auto; width: 124vw; height: 70vw; transform: none; -webkit-mask-image: none; mask-image: none; }
  .klappe-buehne .schleier { display: block; background: linear-gradient(180deg, transparent calc(var(--kopf-h) + 50vw), var(--grund) calc(var(--kopf-h) + 70vw)); }
  .bild-hero .klappe-text { margin-top: 0; padding-top: 4px; }
  .orte-szene { height: 380vh; }
  .orte-bild { top: var(--kopf-h); left: -12vw; width: 124vw; height: 70vw; transform: none; -webkit-mask-image: none; mask-image: none; }
  .orte-schleier { background: linear-gradient(180deg, var(--grund) var(--kopf-h), transparent calc(var(--kopf-h) + 8vw), transparent calc(var(--kopf-h) + 52vw), var(--grund) calc(var(--kopf-h) + 70vw)); }
  .orte-text { left: 16px; right: 16px; top: calc(var(--kopf-h) + 70vw); transform: none; width: auto; }
  .orte-text .titel { font-size: 24px; }
  .orte-schritte { margin-top: 14px; }
  .orte-schritte li { padding: 9px 0 9px 24px; font-size: 15px; }
  .orte-schild { right: 16px; bottom: auto; top: calc(var(--kopf-h) + 70vw - 52px); }
  .orte-schild .roehre { font-size: 30px; }
  .bild-hero .klappe-text .text { font-size: 16px; }
  .formular .knopf { justify-self: stretch; }
}

/* Weniger Bewegung: Klappe offen, Schilder an */
@media (prefers-reduced-motion: reduce) {
  .klappe-szene, .orte-szene, .film-szene { height: auto; }
  .klappe-buehne, .orte-buehne, .film-buehne { position: relative; }
  .roehre.an > span { animation: none; }
  .karten-szene, .zeit-szene { height: auto; }
  .karten-buehne { position: relative; }
  .zeit-buehne { position: relative; }
}

/* ---------- Rechtstexte (Impressum, Datenschutz) und Fehlerseite ---------- */
.rechtstext { width: min(780px, 100% - 32px); margin: 0 auto; padding: calc(var(--kopf-h) + clamp(48px, 7vw, 96px)) 0 clamp(72px, 9vw, 120px); }
.rechtstext h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 28px; }
.rechtstext h2 { font-size: 19px; margin: 40px 0 10px; }
.rechtstext h3 { font-size: 16px; margin: 24px 0 8px; }
.rechtstext p, .rechtstext address, .rechtstext li { font-size: 16px; line-height: 1.7; font-style: normal; color: #fff; }
.rechtstext p, .rechtstext address { margin: 0 0 12px; }
.rechtstext ul { margin: 0 0 12px; padding-left: 20px; }
.rechtstext a { color: var(--eis); }
.rechtstext .stand { margin-top: 40px; font-size: 14px; color: var(--text-2); }
.fehlerseite { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--kopf-h) + 40px) 16px 60px; }
.fehlerseite h1 { font-size: clamp(30px, 4vw, 50px); }
.fehlerseite .text { margin: 18px auto 0; }
.fehlerseite .knopf-reihe { justify-content: center; }

/* Spam-Schutzfeld: aus dem sichtbaren Bereich geschoben (nicht display:none, das erkennen manche Bots) */
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 861px) {
  /* Einsatzorte: anders als der Hero. Bild über die ganze Fläche, oben mittig Ortsname, Überschrift und die Orte, darunter der Wagen */
  .orte-buehne .orte-grund { display: none; }
  .orte-buehne .orte-bild { inset: 0; left: 0; top: 0; width: 100%; height: 100%; transform: none; -webkit-mask-image: none; mask-image: none; }
  .orte-buehne .orte-bild img { object-position: 50% 0%; }
  .orte-schleier { background: linear-gradient(180deg, rgba(7, 7, 11, 0.88) 0%, rgba(7, 7, 11, 0.6) calc(var(--kopf-h) + 230px), transparent calc(var(--kopf-h) + 300px)); }
  .orte-text { left: var(--cl); right: var(--cl); top: calc(var(--kopf-h) + 112px); width: auto; transform: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .orte-text .kicker { display: none; }
  .orte-text .titel { margin: 0 auto; max-width: none; font-size: clamp(26px, 2.35vw, 40px); white-space: nowrap; }
  /* Orte als ruhige Textreihe ohne Trenner, der aktuelle Ort leuchtet mit Unterstrich an der Schriftlinie */
  .orte-schritte { margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; max-width: min(1400px, 68vw); }
  .orte-schritte li, .orte-schritte li:first-child { padding: 0; border: 0; font-size: clamp(15px, 1.05vw, 21px); color: rgba(255, 255, 255, 0.6); }
  .orte-schritte li::before { display: none; }
  .orte-schritte li.ist-da { color: #fff; text-decoration: underline; text-decoration-color: var(--eis); text-decoration-thickness: 2px; text-underline-offset: 7px; }
  /* Die Neon-Röhre mit dem Ortsnamen sitzt ganz oben */
  .orte-schild { right: auto; left: 50%; top: calc(var(--kopf-h) + 36px); bottom: auto; transform: translateX(-50%); white-space: nowrap; }
  .orte-schild .roehre { font-size: clamp(32px, 3.2vw, 52px); }
}
@media (min-width: 861px) and (min-aspect-ratio: 17/10) {
  /* Breite Bildschirme (16:9): Bild ist höher als der Ausschnitt, deshalb mittig beschneiden, sonst fehlen unten die Räder */
  .orte-buehne .orte-bild img { object-position: 50% 50%; }
}
@media (min-width: 861px) and (max-height: 820px) {
  /* Niedrige Bildschirme: ohne Neon-Ortsnamen, damit Überschrift und Orte nicht auf den Wagen rutschen */
  .orte-schild { display: none; }
  .orte-text { top: calc(var(--kopf-h) + 28px); }
  .orte-schleier { background: linear-gradient(180deg, rgba(7, 7, 11, 0.88) 0%, rgba(7, 7, 11, 0.6) calc(var(--kopf-h) + 140px), transparent calc(var(--kopf-h) + 200px)); }
}
