/* SperrMann – Gestaltung
   Alles kommt aus dem Logo: Signalgelb, Tiefschwarz und Barlow Condensed im Wechsel von leicht und fett.
   Rot, Weiß und Blau tauchen nur an echter Absperrtechnik auf. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/barlowcondensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlowcondensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlowcondensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/barlowcondensed-800.woff2") format("woff2"); }

:root {
  --gelb: #FFC20E;
  --schwarz: #17191C;
  --weiss: #FFFFFF;
  --hell: #ECEEF1;
  --grau: #4A515B;
  --linie: #C9CED5;
  --schmal: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", "Segoe UI", system-ui, sans-serif;
  --rand: clamp(20px, 3.2vw, 64px);
  --breit: 1760px;
  --abstand: clamp(72px, 9vw, 152px);
  --ruhe: cubic-bezier(.2, .7, .2, 1);
  --streifen: repeating-linear-gradient(135deg, var(--schwarz) 0 7px, var(--gelb) 7px 14px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--weiss); color: var(--schwarz); font: 400 1.125rem/1.55 var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
img, svg { display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--schwarz); outline-offset: 3px; border-radius: 4px; }
.held[data-zeit="nacht"] :focus-visible, .ablauf :focus-visible, .fuss :focus-visible { outline-color: var(--gelb); }
.sprung { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 10px 16px; background: var(--schwarz); color: var(--weiss); border-radius: 6px; }
.sprung:focus { top: 12px; }

.spalte { max-width: var(--breit); margin-inline: auto; padding-inline: var(--rand); }

h2 { font: 800 clamp(2.75rem, 6vw, 6.5rem)/.9 var(--schmal); text-transform: uppercase; letter-spacing: -.008em; text-wrap: balance; }
h2 .leicht, h1 .leicht { font-weight: 500; }
h3 { font: 700 clamp(1.75rem, 2.3vw, 2.375rem)/1.06 var(--schmal); }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 54px; padding: 12px 24px; border: 2px solid var(--schwarz); border-radius: 7px; background: var(--schwarz); color: var(--weiss); font: 600 1.125rem/1.15 var(--text); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.knopf:hover { background: var(--weiss); color: var(--schwarz); }
.knopf.rand { background: transparent; color: var(--schwarz); }
.knopf.rand:hover { background: var(--schwarz); color: var(--weiss); }
.knopf svg { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Startansicht ---------- */
.held {
  --u: min(1vw, 1.64svh, 17.6px); /* eine Einheit trägt Schrift und Bild: die Ansicht bleibt auf jedem Bildschirm im Verhältnis */
  --m: calc(13 * var(--u));      /* 1 Meter Absperrung */
  --grund: var(--gelb); --auf: var(--schwarz);
  --logo-rahmen: #17191C; --logo-a: #17191C; --logo-b: #17191C;
  position: relative; isolation: isolate; overflow: hidden;
  height: 100svh; min-height: 560px; max-height: calc(66 * 1vw);
  padding-top: calc(2.3 * var(--u));
  background: var(--grund); color: var(--auf);
  transition: background-color .9s var(--ruhe), color .9s var(--ruhe);
}
.held[data-zeit="nacht"] { --grund: #17191C; --auf: #FFFFFF; --logo-rahmen: #FFC20E; --logo-a: #FFFFFF; --logo-b: #FFC20E; }

.kopf, .held-inhalt { max-width: var(--breit); margin-inline: auto; padding-inline: var(--rand); }
.kopf { position: relative; z-index: 3; display: flex; align-items: flex-end; gap: clamp(18px, 2.4vw, 44px); }
.marke { display: block; width: clamp(131px, calc(11.9 * var(--u)), 229px); margin-right: auto; }
.marke svg { width: 100%; height: auto; }
.marke svg * { transition: fill .9s var(--ruhe); }
.haupt { display: flex; gap: clamp(16px, 2vw, 36px); }
.haupt a, .telefon { padding-block: 6px; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ruhe); }
.haupt a:hover, .telefon:hover { background-size: 100% 2px; }
.telefon { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; white-space: nowrap; }
.telefon svg { width: 1.1em; height: 1.1em; }

.held-inhalt { position: relative; margin-top: calc(2.4 * var(--u)); }
.held h1 { font: 800 calc(15.1 * var(--u))/.84 var(--schmal); text-transform: uppercase; letter-spacing: -.012em; white-space: nowrap; margin-left: -.02em; }
.held h1 > span { display: block; transition: color .9s var(--ruhe); }
.held[data-zeit="nacht"] h1 .leicht { color: var(--gelb); }
.held-text { position: absolute; top: calc(1.9 * var(--u)); left: calc(var(--rand) + 59.5 * var(--u)); right: var(--rand); max-width: 33em; font-size: clamp(1rem, calc(1.38 * var(--u)), 1.5rem); line-height: 1.42; font-weight: 500; }
.held-text p { text-wrap: pretty; }
.ganz { white-space: nowrap; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: calc(1.5 * var(--u)); }
.held .knopf { min-height: clamp(46px, calc(3.8 * var(--u)), 60px); padding-block: 8px; font-size: clamp(1rem, calc(1.3 * var(--u)), 1.25rem); }
.held[data-zeit="nacht"] .knopf { background: var(--gelb); border-color: var(--gelb); color: var(--schwarz); }
.held[data-zeit="nacht"] .knopf:hover { background: var(--weiss); border-color: var(--weiss); }
.held[data-zeit="nacht"] .knopf.rand { background: transparent; border-color: var(--weiss); color: var(--weiss); }
.held[data-zeit="nacht"] .knopf.rand:hover { background: var(--weiss); color: var(--schwarz); }

.reihe { position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(.5 * var(--m)); height: 0; pointer-events: none; animation: anrollen 1.5s var(--ruhe) both; }
.reihe i { position: absolute; left: -10vw; right: -10vw; background-repeat: repeat-x; background-size: calc(6.6 * var(--m)) 100%; background-position-x: 50%; transition: opacity .9s var(--ruhe); }
.reihe .tag { top: calc(-1.75 * var(--m)); height: calc(2.5 * var(--m)); background-image: url("../img/reihe-tag.webp"); }
.reihe .nacht, .reihe .lampe { top: calc(-2.3 * var(--m)); height: calc(3.25 * var(--m)); opacity: 0; }
/* SperrMann sitzt auf der mittleren Schranke: Oberkante 0,97 m; im Bild liegt der Sitz 0,485 m unter dem oberen Rand, das Bild ist 0,4 m breit */
.sitzt { position: absolute; left: calc(50% - .25 * var(--m)); top: calc(-1.455 * var(--m)); width: calc(.4 * var(--m)); height: auto; transition: filter .9s var(--ruhe); }
.held[data-zeit="nacht"] .sitzt { filter: brightness(.6); }   /* nachts so dunkel wie die Schranken */
.nachtbilder .nacht { background-image: url("../img/reihe-nacht.webp"); }
.nachtbilder .l1 { background-image: url("../img/reihe-lampe1.webp"); }
.nachtbilder .l2 { background-image: url("../img/reihe-lampe2.webp"); }
.nachtbilder .l3 { background-image: url("../img/reihe-lampe3.webp"); }
@media (min-width: 1500px), (min-resolution: 1.5dppx) {
  .reihe .tag { background-image: url("../img/reihe-tag-gross.webp"); }
}
@media (min-width: 1500px), (min-width: 761px) and (min-resolution: 1.5dppx) {   /* am Handy reichen bei Nacht die kleinen Bilder, das spart Datenvolumen */
  .nachtbilder .nacht { background-image: url("../img/reihe-nacht-gross.webp"); }
  .nachtbilder .l1 { background-image: url("../img/reihe-lampe1-gross.webp"); }
  .nachtbilder .l2 { background-image: url("../img/reihe-lampe2-gross.webp"); }
  .nachtbilder .l3 { background-image: url("../img/reihe-lampe3-gross.webp"); }
}
.held[data-zeit="nacht"] .tag { opacity: 0; }
.held[data-zeit="nacht"] .nacht { opacity: 1; }
.held[data-zeit="nacht"] .lampe { animation: lauflicht 2.1s linear infinite; }
.held[data-zeit="nacht"] .l2 { animation-delay: -1.4s; }
.held[data-zeit="nacht"] .l3 { animation-delay: -.7s; }
@keyframes lauflicht { 0%, 100% { opacity: .07; } 5% { opacity: 1; } 27% { opacity: 1; } 42% { opacity: .07; } }
@keyframes anrollen { from { transform: translateX(9vw); } }

/* Der Schalter hängt wie ein Zusatzschild an der Schranke */
.schalter { position: absolute; z-index: 4; left: calc(50% + 2.2 * var(--m)); bottom: calc(1.375 * var(--m)); transform: translate(-50%, 50%); white-space: nowrap; display: inline-flex; align-items: center; gap: .5em; min-height: 52px; padding: 8px 20px 8px 14px; border: 0; border-radius: 8px; background: var(--weiss); color: var(--schwarz); box-shadow: inset 0 0 0 3px var(--weiss), inset 0 0 0 6px var(--schwarz), 0 6px 18px rgb(0 0 0 / .22); font: 600 clamp(1.35rem, calc(1.75 * var(--u)), 1.9rem)/1 var(--schmal); }
.schalter:hover { background: #F4F5F7; }
.birne { width: 1.15em; height: 1.15em; border-radius: 50%; border: .16em solid var(--schwarz); background: #E9731C; transition: box-shadow .3s, background-color .3s; }
.schalter:hover .birne, .held[data-zeit="nacht"] .birne { background: #FFC24A; box-shadow: 0 0 .5em .12em rgb(255 160 20 / .75); }
.schalter .w-nacht, .schalter[aria-pressed="true"] .w-tag { display: none; }
.schalter[aria-pressed="true"] .w-nacht { display: inline; }

/* ---------- Leistungen: die Modellstraße ---------- */
.leistungen { --p: min(4.35vw, 6.1svh); padding-block: var(--abstand) clamp(64px, 7vw, 112px); background: var(--hell); overflow: hidden; }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.kopfzeile > p { max-width: 27em; padding-bottom: .3em; font-size: 1.1875rem; line-height: 1.45; text-wrap: balance; }
.leistungen .kopfzeile > p { flex: 1 1 20em; }                    /* bleibt auch bei 1440 px mit Rollbalken neben der Überschrift */
.faelle { margin-top: clamp(28px, 3.4vw, 56px); }
.reiter { display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 2.8vw, 48px); }
.reiter button { position: relative; padding: 8px 0 18px; border: 0; background: none; font: 600 clamp(1.5rem, 2vw, 2rem)/1 var(--schmal); color: var(--grau); white-space: nowrap; transition: color .2s; }
.reiter button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 8px; border-radius: 2px; background: var(--streifen); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ruhe); }
.reiter button:hover { color: var(--schwarz); }
.reiter button[aria-selected="true"] { color: var(--schwarz); }
.reiter button[aria-selected="true"]::after { transform: none; }

.strasse { position: relative; margin-top: 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strasse::-webkit-scrollbar { display: none; }
.strasse:focus-visible { outline-offset: -3px; }
.strasse.zieht { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.band { position: relative; display: flex; width: max-content; }
.band img { flex: none; width: calc(14.129 * var(--p)); height: calc(11.15 * var(--p)); margin-right: calc(-.129 * var(--p)); user-select: none; }
.band img.kurz { width: calc(8.129 * var(--p)); }
.band img.ende { width: calc(8 * var(--p)); margin-right: 0; }
.halt { position: absolute; top: 0; left: calc(var(--x) * var(--p)); width: 1px; height: 1px; scroll-snap-align: center; }
@media (hover: hover) and (pointer: fine) { .js .strasse { cursor: grab; } .js .strasse.zieht { cursor: grabbing; } }

.fall { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) auto; gap: 24px clamp(32px, 5vw, 96px); align-items: start; padding-top: clamp(28px, 3vw, 48px); }
.fall p { max-width: 34em; margin-top: 12px; }
.fall h4 { padding-top: .55em; font: 600 1.0625rem/1.3 var(--text); }
.fall ul { margin-top: 12px; }
.fall li { position: relative; padding-left: 40px; }
.fall li + li { margin-top: 6px; }
.fall li::before { content: ""; position: absolute; left: 0; top: .52em; width: 26px; height: 9px; border-radius: 1px; background: linear-gradient(90deg, #C1121C 0 20%, #fff 20% 40%, #C1121C 40% 60%, #fff 60% 80%, #C1121C 80%); box-shadow: 0 0 0 1px rgb(23 25 28 / .12); }
.weiter { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 6px; }
.weiter .text { font-weight: 600; }
.js .fallstapel { display: grid; }
.js .fall { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; }
.js .fall.aktiv { visibility: visible; opacity: 1; transition: opacity .35s .08s; }

/* ---------- Haltverbot: Fristen am Schrankenbrett ---------- */
.haltverbot { padding-block: var(--abstand); background: var(--weiss); }
.rechner-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 64px; }
.rechner-kopf h2 { max-width: 9.5em; }
.eingabe label { display: block; margin-bottom: 8px; font-weight: 600; }
.eingabe input { width: 100%; min-width: 270px; min-height: 68px; padding: 8px 18px; border: 3px solid var(--schwarz); border-radius: 8px; background: var(--weiss); font: 700 2rem/1 var(--schmal); }

.lineal { --n: 15; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: clamp(40px, 4.5vw, 76px); }
.brett { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; height: clamp(84px, 8.4vw, 136px); border: clamp(5px, .5vw, 8px) solid var(--schwarz); border-radius: 12px; background: var(--schwarz); overflow: hidden; }
.brett li { position: relative; display: grid; place-items: center; align-content: center; color: var(--gelb); font: 700 clamp(1.25rem, 1.9vw, 2rem)/1 var(--schmal); }
.brett li::before { content: ""; position: absolute; inset: -1px; background: var(--schwarz); transform: skewX(-24deg); z-index: 0; }
.brett li:nth-child(odd)::before { background: var(--gelb); }
.brett li:nth-child(odd) { color: var(--schwarz); }
.brett li:first-child::before { left: -60%; }
.brett li:last-child::before { right: -60%; }
.brett li > * { position: relative; z-index: 1; }
.brett small { display: block; margin-bottom: 3px; font: 600 .875rem/1 var(--schmal); }
.pfosten { position: relative; padding: 0 0 4px 34px; margin-top: 0; }
.pfosten::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--schwarz); }
.pfosten::after { content: ""; position: absolute; left: -12px; bottom: 0; width: 34px; height: 9px; border-radius: 3px; background: var(--schwarz); }
.pfosten h3 { padding-top: 26px; font-size: 1.5rem; font-weight: 600; }
.pfosten time { display: block; margin-top: 2px; font: 800 clamp(2rem, 3vw, 3.25rem)/1 var(--schmal); white-space: nowrap; }
.pfosten p { margin-top: 10px; max-width: 17em; padding-bottom: 22px; font-size: 1.0625rem; line-height: 1.45; }
.p1 { grid-column: 1 / span 6; margin-left: calc(100% / 6 / 2 - 5px); }
.p2 { grid-column: 7 / span 5; }
.p3 { grid-column: 12 / span 4; }
.p2, .p3 { padding: 0 34px 4px 0; text-align: right; margin-right: calc(100% / 5 / 2 - 5px); }
.p3 { margin-right: calc(100% / 4 / 2 - 5px); }
.p2::before, .p3::before { left: auto; right: 0; }
.p2::after, .p3::after { left: auto; right: -12px; }
.p2 p, .p3 p { margin-left: auto; }
.befund { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; margin-top: clamp(32px, 3.4vw, 56px); padding: clamp(20px, 2vw, 32px) clamp(20px, 2.2vw, 36px); border-radius: 12px; background: var(--hell); }
.status { max-width: 34em; font-size: 1.25rem; font-weight: 500; line-height: 1.4; }
html:not(.js) .brett, html:not(.js) .eingabe, html:not(.js) .status { display: none; }
.quelle { max-width: 62em; margin-top: 24px; color: var(--grau); font-size: 1rem; line-height: 1.5; }

/* ---------- Ablauf: Asphalt mit Leitlinie, die Ziffern gestreckt wie auf die Fahrbahn gemalt.
   Gelb, weil Markierungen an Baustellen in Deutschland gelb sind. ---------- */
.ablauf { padding-block: var(--abstand); background: var(--schwarz); color: var(--weiss); overflow: hidden; }
.ablauf h2 .leicht { color: var(--gelb); }
.schritte { --luecke: clamp(28px, 3.4vw, 64px); --strich: clamp(10px, 1vw, 17px); position: relative; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px var(--luecke); margin-top: clamp(44px, 5vw, 84px); padding-top: var(--strich); }
.schritte::before { content: ""; position: absolute; top: 0; left: calc((100% + var(--luecke)) / -2); width: calc(2 * (100% + var(--luecke))); height: var(--strich); background: linear-gradient(90deg, var(--weiss) 0 40%, transparent 40%) 0 0 / 12.5% 100%; }
.schritte li { counter-increment: s; position: relative; }
.schritte h3::before { --z: clamp(7.5rem, 11.4vw, 13rem); content: counter(s); display: block; width: max-content; height: calc(1.36 * var(--z)); margin: clamp(30px, 3vw, 52px) 0 clamp(24px, 2.1vw, 36px) -.02em; font: 800 var(--z)/.72 var(--schmal); color: var(--gelb); transform: scaleY(1.89); transform-origin: 0 0; }
.schritte p { margin-top: 12px; color: #D5D8DD; max-width: 22em; }

/* ---------- Einsatzgebiet: Ortstafeln ---------- */
.gebiet { padding-block: var(--abstand); background: var(--hell); overflow: hidden; }
.tafeln { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 1.5vw, 26px); align-items: flex-end; margin-top: clamp(28px, 3vw, 52px); }
.tafeln li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 1 1 auto; margin: 22px 0 36px; padding: 20px 26px 18px; border-radius: 12px; background: var(--gelb); box-shadow: inset 0 0 0 4px var(--gelb), inset 0 0 0 7px var(--schwarz); text-align: center; line-height: 1; }
.tafeln li::before, .tafeln li::after { content: ""; position: absolute; top: 100%; width: 7px; height: 36px; background: linear-gradient(90deg, #8B929B, #C4C9CF 45%, #9BA2AB); }
.tafeln li::before { left: 18%; } .tafeln li::after { right: 18%; }
.tafeln b { font: 700 clamp(1.75rem, 2.5vw, 2.625rem)/1 var(--schmal); }
.tafeln span { font: 500 1.0625rem/1 var(--schmal); }
.tafeln::after { content: ""; flex: 7 1 0; }                    /* hält die Tafeln der letzten Reihe schmal */
/* Platz für den Ort, der noch fehlt */
.tafeln .frei { padding: 0; background: var(--weiss); box-shadow: inset 0 0 0 4px var(--weiss), inset 0 0 0 7px var(--schwarz); }
.tafeln .frei a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 20px 26px 18px; border-radius: 12px; text-decoration: none; transition: background-color .2s, color .2s; }
.tafeln .frei a:hover { background: var(--schwarz); color: var(--weiss); }
.tafeln .gross { padding: 30px 44px 26px; }
.tafeln .gross b { font-size: clamp(2.75rem, 5.2vw, 5.5rem); line-height: .95; }
.tafeln .gross span { font-size: clamp(1.125rem, 1.6vw, 1.625rem); }

/* ---------- Fragen ---------- */
.fragen { padding-block: var(--abstand); background: var(--weiss); }
.fragen > .spalte { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 120px); align-items: start; }
.fragen h2 { position: sticky; top: 112px; }
.liste { border-top: 3px solid var(--schwarz); }
details { border-bottom: 1px solid var(--linie); }
summary { position: relative; display: block; padding: 22px 60px 22px 0; font: 600 clamp(1.5rem, 1.9vw, 1.875rem)/1.15 var(--schmal); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 6px; top: calc(22px + .56em); width: 24px; height: 4px; background: var(--schwarz); transition: transform .3s var(--ruhe); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: none; }
summary:hover { color: #000; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
details p { max-width: 40em; padding: 0 60px 26px 0; }

/* ---------- Anfrage ---------- */
.anfrage { padding-block: var(--abstand); background: var(--gelb); }
.anfrage > .spalte { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(40px, 6vw, 120px); align-items: start; }
.direkt > p { max-width: 27em; margin-top: 24px; font-size: 1.1875rem; font-weight: 500; }
.nummer { display: block; width: fit-content; margin: 26px 0 22px; font: 800 clamp(3rem, 5vw, 5.25rem)/.9 var(--schmal); text-decoration: none; white-space: nowrap; }
.nummer:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: .12em; }
.direkt address { margin-top: 34px; font-weight: 500; }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.breit, .wahl { grid-column: 1 / -1; }
.formular label, .formular legend { display: block; padding: 0; margin-bottom: 7px; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.formular input:not([type="radio"]), .formular textarea { width: 100%; min-height: 56px; padding: 12px 15px; border: 2px solid var(--schwarz); border-radius: 7px; background: var(--weiss); font-size: 1.125rem; line-height: 1.4; }
.formular textarea { resize: vertical; min-height: 124px; }
.formular input:focus-visible, .formular textarea:focus-visible, .eingabe input:focus-visible { outline: 3px solid var(--schwarz); outline-offset: 2px; }
.wahl { display: flex; flex-wrap: wrap; gap: 9px; }
.wahl legend { float: left; width: 100%; margin-bottom: 0; }
.wahl label { position: relative; margin: 0; font-weight: 500; cursor: pointer; }
.wahl input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wahl span { display: block; padding: 11px 16px; border: 2px solid var(--schwarz); border-radius: 7px; transition: background-color .15s, color .15s; }
.wahl label:hover span { background: rgb(255 255 255 / .5); }
.wahl input:checked + span { background: var(--schwarz); color: var(--weiss); }
.wahl input:focus-visible + span { outline: 3px solid var(--schwarz); outline-offset: 3px; }
.fehler { display: none; margin-top: 6px; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.falsch .fehler { display: block; }
.falsch input { box-shadow: 0 0 0 3px #B3000C; border-color: #B3000C !important; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.senden { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.formular.sendet .senden { opacity: .55; pointer-events: none; }
.meldung:empty { display: none; }
.meldung { padding: 14px 18px; border-radius: 7px; background: var(--schwarz); color: var(--weiss); font-weight: 500; }
.klein { font-size: 1rem; line-height: 1.5; }
.danke { padding: clamp(28px, 3.4vw, 56px); border-radius: 12px; background: var(--weiss); }
.danke:focus { outline: none; }                                  /* bekommt den Fokus nur zum Vorlesen */
.danke h3 { font-size: clamp(2.25rem, 3.6vw, 3.5rem); font-weight: 800; }
.danke p { margin: 14px 0 26px; max-width: 30em; }

/* ---------- Fuß ---------- */
.fuss { padding-block: 52px 56px; background: var(--schwarz); color: var(--weiss); }
.fuss .spalte { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; }
.fuss img { width: 174px; height: auto; }
.fuss p { color: #C9CDD3; }
.fuss nav { display: flex; gap: 28px; margin-left: auto; }

/* ---------- Leiste ---------- */
.leiste { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); min-height: 68px; padding: 8px max(var(--rand), calc((100vw - var(--breit)) / 2 + var(--rand))); background: var(--weiss); box-shadow: 0 1px 0 var(--linie); transform: translateY(-110%); visibility: hidden; transition: transform .35s var(--ruhe), visibility 0s .35s; }
.leiste.da { transform: none; visibility: visible; transition: transform .35s var(--ruhe); }
.l-marke { margin-right: auto; }
.l-marke img { width: 111px; height: auto; }
.leiste nav { display: flex; gap: clamp(14px, 1.8vw, 32px); }
.leiste a { text-decoration: none; font-weight: 500; }
.leiste nav a:hover, .l-tel:hover { text-decoration: underline; }
.leiste svg { width: 1.2em; height: 1.2em; flex: none; }
.l-tel, .l-wa, .l-anfrage { display: inline-flex; align-items: center; justify-content: center; gap: .45em; white-space: nowrap; }
.leiste .l-tel, .leiste .l-anfrage { font-weight: 600; }
.l-wa, .nur-klein { display: none; }
.l-anfrage { min-height: 48px; padding: 8px 20px; border-radius: 7px; background: var(--gelb); }
.l-anfrage:hover { background: var(--schwarz); color: var(--weiss); }

/* ---------- Rechtsseiten ---------- */
.seite-kopf { padding: 28px 0; background: var(--gelb); }
.seite-kopf .spalte { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.seite-kopf img { width: clamp(131px, 11.9vw, 189px); height: auto; }
.schrift { padding-block: clamp(48px, 6vw, 96px); }
.schrift h1 { font: 800 clamp(2.75rem, 6vw, 5.5rem)/.92 var(--schmal); text-transform: uppercase; hyphens: auto; }
.schrift h2 { margin: 52px 0 12px; font: 700 clamp(1.75rem, 2.4vw, 2.25rem)/1.1 var(--schmal); text-transform: none; letter-spacing: 0; }
.schrift p, .schrift ul { max-width: 42em; }
.schrift p + p, .schrift ul { margin-top: 14px; }
.schrift ul { list-style: disc; padding-left: 1.2em; }
.schrift h1 + p { margin-top: 28px; }
.schrift .knopf { margin-top: 32px; }
.schrift .knopf + p { margin-top: 24px; }

/* ---------- Fehlerseite: hier steht die Schranke quer ---------- */
.gesperrt { --u: min(1vw, 1.64svh); --m: calc(13 * var(--u)); position: relative; min-height: 100svh; padding-bottom: calc(2.6 * var(--m)); background: var(--gelb); overflow: hidden; }
.gesperrt .schrift { padding-block: clamp(20px, 3vw, 56px) 40px; }

/* ---------- Mittlere Bildschirme ---------- */
@media (max-width: 1160px) and (min-aspect-ratio: 1/1) {
  /* Neben der Überschrift ist kein Platz mehr: Text und Knöpfe rücken darunter */
  .held { --u: min(1vw, 1.4svh); --m: calc(11 * var(--u)); max-height: 80vw; }
  .held-text { position: static; display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: none; margin-top: calc(2 * var(--u)); }
  .held-text p { max-width: 31em; }
  .knoepfe { flex: none; flex-wrap: nowrap; margin-top: 0; }
  .schalter { left: calc(50% + 2.38 * var(--m)); min-height: 44px; padding: 5px 14px 5px 11px; font-size: 1.2rem; }
}
@media (max-width: 1120px) {
  .haupt { display: none; }
  .leiste nav { display: none; }
  .fall { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .weiter { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .schritte { grid-template-columns: 1fr 1fr; }
  .schritte::before { width: calc(4 * (100% + var(--luecke))); left: calc(-1 * (100% + var(--luecke))); }
}
@media (max-width: 900px) {
  .fragen > .spalte, .anfrage > .spalte { grid-template-columns: minmax(0, 1fr); }
  .fragen h2 { position: static; }
  .rechner-kopf { grid-template-columns: minmax(0, 1fr); }
  .eingabe { max-width: 380px; }
}

/* ---------- Hochformat und Handy ---------- */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .held { --u: min(1vw, .6svh); --m: calc(31 * var(--u)); height: auto; max-height: none; min-height: min(100svh, 235vw); padding-top: 18px; padding-bottom: calc(2.02 * var(--m)); display: flex; flex-direction: column; }
  .kopf { align-items: center; width: 100%; }
  .marke { width: clamp(127px, calc(34 * var(--u)), 208px); }
  .held-inhalt { width: 100%; margin-top: clamp(20px, calc(6.5 * var(--u)), 60px); }
  .held h1 { font-size: calc((100vw - 2 * var(--rand)) / 4.72); line-height: .86; }
  .held h1 .umbruch { display: block; height: 0; overflow: hidden; }
  .held-text { position: static; margin-top: clamp(16px, calc(4.4 * var(--u)), 36px); max-width: 34em; font-size: clamp(1.0625rem, calc(4.4 * var(--u)), 1.5rem); }
  .knoepfe { margin-top: 18px; gap: 10px; }
  .held .knopf { min-height: 54px; font-size: 1.125rem; flex: 1 1 auto; }
  .reihe { bottom: calc(.46 * var(--m)); }
  .reihe i { background-position-x: calc(50% + .74 * var(--m)); }
  .sitzt { left: calc(50% - 1.16 * var(--m)); }                /* am Handy auf der linken Schranke, rechts hängt der Schalter */
  .schalter { left: auto; right: var(--rand); bottom: calc(1.335 * var(--m)); transform: translateY(50%); }
}
@media (max-width: 760px) {
  .gesperrt { --u: min(1vw, .6svh); --m: calc(31 * var(--u)); padding-bottom: calc(2.4 * var(--m)); }
  html { scroll-padding-top: 16px; }
  .mit-leiste { padding-bottom: 116px; }                        /* Platz für die Leiste, die am Handy unten steht */
  .leistungen { --p: clamp(40px, 11.6vw, 66px); }
  .kopfzeile > p { font-size: 1.125rem; }
  .faelle { padding-inline: 0; margin-top: 22px; }
  .reiter { flex-wrap: nowrap; gap: 26px; overflow-x: auto; padding-inline: var(--rand); scrollbar-width: none; scroll-padding-inline: var(--rand); }
  .reiter::-webkit-scrollbar { display: none; }
  .reiter button { font-size: 1.75rem; }
  .halt { left: calc(var(--xs) * var(--p)); }
  .strasse { scroll-snap-type: x mandatory; }
  .fall { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fall h4 { padding-top: 0; }
  .weiter { flex-direction: column; align-items: stretch; text-align: center; margin-top: 6px; }

  /* Das Brett steht am Handy senkrecht wie eine Leitbake */
  .lineal { grid-template-columns: 62px minmax(0, 1fr); grid-template-rows: repeat(15, 31px); column-gap: 0; margin-top: 34px; }
  .brett { grid-column: 1; grid-row: 1 / -1; grid-template-columns: none; grid-template-rows: subgrid; height: auto; }
  .brett li { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 1.125rem; }
  .brett li::before { transform: skewY(-18deg); }
  .brett li:first-child::before { left: -1px; top: -80%; }
  .brett li:last-child::before { right: -1px; bottom: -80%; }
  .brett small { margin: 0; font-size: .8125rem; }
  .pfosten, .p2, .p3 { grid-column: 2; margin: 0; padding: 0 0 0 54px; text-align: left; }
  .p1 { grid-row: 1 / span 9; } .p2 { grid-row: 11 / span 4; } .p3 { grid-row: 15 / span 6; }
  .pfosten::before, .p2::before, .p3::before { left: 0; right: auto; top: 11px; bottom: auto; width: 36px; height: 9px; }
  .pfosten::after, .p2::after, .p3::after { left: 36px; right: auto; top: 0; bottom: auto; width: 8px; height: 31px; }
  .pfosten h3 { padding-top: 0; font-size: 1.25rem; line-height: 1; }
  .pfosten time { font-size: 2rem; }
  .pfosten p, .p2 p, .p3 p { margin: 5px 0 0; padding: 0; max-width: 20em; font-size: 1rem; line-height: 1.35; }
  .befund { flex-direction: column; align-items: stretch; text-align: left; }
  /* Am Handy läuft die Leitlinie senkrecht neben den Schritten */
  .schritte { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 0; }
  .schritte::before { display: none; }
  .schritte li { min-height: 132px; padding: 0 0 0 98px; }
  .schritte li::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 64px; background: var(--weiss); }
  .schritte h3::before { --z: 5rem; position: absolute; left: 34px; top: 0; height: auto; margin: 0; }
  .tafeln { gap: 0 12px; }
  .tafeln li { padding: 17px 18px 15px; margin: 14px 0 26px; }
  .tafeln li::before, .tafeln li::after { height: 26px; }
  .tafeln .gross { flex-basis: 100%; padding: 26px 20px 22px; }
  .tafeln .gross b { font-size: 4rem; }
  .formular { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 12px; }
  .formular .feld:has(#name), .formular .feld:has(#telefon) { grid-column: 1 / -1; }
  .senden .knopf { flex: 1 1 100%; }
  .direkt .knopf { width: 100%; }
  .fuss .spalte { flex-direction: column; align-items: flex-start; }
  .fuss nav { margin-left: 0; }

  .leiste { inset: auto 0 0; gap: 0; min-height: 0; padding: 0 0 env(safe-area-inset-bottom); background: var(--schwarz); color: var(--weiss); box-shadow: none; transform: translateY(110%); }
  .l-marke { display: none; }
  .l-tel, .l-wa, .l-anfrage { flex: 1 1 33%; min-height: 60px; padding: 6px 4px; border-radius: 0; }
  .leiste a { font-weight: 600; font-size: 1.0625rem; }
  .l-wa { display: inline-flex; border-left: 1px solid #3A3F46; }
  .l-anfrage { color: var(--schwarz); }
  .nur-gross { display: none; } .nur-klein { display: inline; }
}
@media (max-width: 359px) { .telefon span { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .held[data-zeit="nacht"] .lampe { opacity: .8; }
}
@media print { .leiste, .schalter, .formular, .strasse { display: none; } }
