/* Signal 1a "Nachtfahrt": Kino-Look zur blauen Stunde. Laedt nach /signal/style.css
   und ueberschreibt Farben, Kopf, Hero und die Abschnitte. Orange bleibt das einzige
   Akzentlicht; Rot und Gruen kommen nur als Lampen des Streckensignals vor. */
:root {
  --grund: #0a0c10;
  --grund-2: #11141a;
  --grund-3: #181c24;
  --linie: #252a34;
  --linie-hell: #3b424f;
  --text: #eef0f3;
  --text-2: #bcc2cc;
  --nacht: #05070a;
  --lampe-rot: #ff4f40;
  --lampe-gelb: var(--ec-orange, #f7a600);
  --lampe-gruen: #3fe08a;
}
html { background: var(--nacht); }
body { background: var(--grund); }
.block { border-bottom: 0; }
.block-tief { background: var(--nacht); }

/* Kopf: liegt ueber dem Kino und wird beim Scrollen fest */
.kopf { position: fixed; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(5,7,10,.72), rgba(5,7,10,0)); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
@supports (backdrop-filter: blur(8px)) { .kopf { background: linear-gradient(180deg, rgba(5,7,10,.72), rgba(5,7,10,0)); backdrop-filter: none; } }
.kopf.fest { background: rgba(8,10,14,.94); border-bottom-color: var(--linie); }
@supports (backdrop-filter: blur(8px)) { .kopf.fest { background: rgba(8,10,14,.8); backdrop-filter: blur(12px); } }
.kopf-nav a { color: #d6dae1; }
@media (max-width: 959px) {
  .kopf-nav { background: var(--grund); }
  .kopf-knopf { margin-left: 0; }
  .mini-signal { margin-left: auto; }
}
main { display: block; }

/* Streckensignal: am Rand (breit) und klein im Kopf (schmal) */
.mini-signal { display: inline-flex; flex-direction: column; gap: 3px; padding: 4px; background: #000; border: 1px solid #333a45; border-radius: 9px; flex: none; }
.mini-signal i, .ss-schirm i, .gs-mastkopf i { display: block; border-radius: 50%; background: #1d2129; box-shadow: inset 0 1px 2px rgba(0,0,0,.7); transition: background-color .35s ease, box-shadow .35s ease; }
.mini-signal i { width: 7px; height: 7px; }
html[data-signal="rot"] .l-rot { background: var(--lampe-rot); box-shadow: 0 0 10px 1px rgba(255,79,64,.75); }
html[data-signal="gelb"] .l-gelb { background: var(--lampe-gelb); box-shadow: 0 0 10px 1px rgba(247,166,0,.8); }
html[data-signal="gruen"] .l-gruen { background: var(--lampe-gruen); box-shadow: 0 0 10px 1px rgba(63,224,138,.7); }

.strecken-signal { display: none; }
@media (min-width: 1200px) {
  .mini-signal { display: none; }
  .strecken-signal { display: flex; flex-direction: column; align-items: center; position: fixed; z-index: 40; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
  .ss-schirm { display: flex; flex-direction: column; gap: 6px; padding: 7px 6px; background: #000; border: 1px solid #343b47; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
  .ss-schirm i { width: 16px; height: 16px; }
  html[data-signal] .ss-schirm i.l-rot, html[data-signal] .ss-schirm i.l-gelb, html[data-signal] .ss-schirm i.l-gruen { transition: background-color .3s ease, box-shadow .3s ease; }
  html[data-signal="rot"] .ss-schirm .l-rot { box-shadow: 0 0 16px 3px rgba(255,79,64,.65); }
  html[data-signal="gelb"] .ss-schirm .l-gelb { box-shadow: 0 0 16px 3px rgba(247,166,0,.7); }
  html[data-signal="gruen"] .ss-schirm .l-gruen { box-shadow: 0 0 16px 3px rgba(63,224,138,.6); }
  .ss-mast { width: 3px; height: 44px; background: linear-gradient(#343b47, rgba(52,59,71,0)); }
  .ss-wort { display: grid; writing-mode: vertical-rl; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
  .ss-wort b { grid-area: 1 / 1; font-weight: 600; opacity: 0; transition: opacity .3s; }
  html[data-signal="rot"] .w-rot, html[data-signal="gelb"] .w-gelb, html[data-signal="gruen"] .w-gruen { opacity: 1; }
  html[data-signal="gruen"] .w-gruen { color: var(--lampe-gruen); }
}

/* ---------------- Kino-Hero ---------------- */
.kino { position: relative; min-height: min(100svh, 1100px); display: grid; grid-template-rows: var(--kopf-h) minmax(230px, 1fr) auto; background: var(--nacht); overflow: hidden; }
.kino-leinwand { grid-row: 2; position: relative; overflow: hidden; background: #0b1020; }
.kino-bild { position: absolute; inset: 0; transform-origin: 50% 62%; }
.kino-poster, .kino-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 58%; }
.kino-video { opacity: 0; transition: opacity .5s ease; }
.kino-video.laeuft { opacity: 1; }
.kino-leinwand::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,7,10,.35) 0%, rgba(5,7,10,0) 22%, rgba(5,7,10,0) 50%, rgba(5,7,10,.55) 86%, rgba(5,7,10,.7) 100%), linear-gradient(90deg, rgba(5,7,10,.45), rgba(5,7,10,0) 45%); pointer-events: none; }
.vorhang { position: absolute; left: 0; right: 0; z-index: 2; height: 50.5%; background: var(--nacht); transform: scaleY(0); pointer-events: none; }
.vorhang-oben { top: 0; transform-origin: 50% 0; }
.vorhang-unten { bottom: 0; transform-origin: 50% 100%; }
.bewegt .vorhang { animation: vorhang-auf 1.25s cubic-bezier(.6,0,.25,1) .1s both; }
@keyframes vorhang-auf { from { transform: scaleY(1); } to { transform: scaleY(0); } }

.kino-text { grid-row: 3; position: relative; z-index: 3; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--rand) clamp(26px, 4.5svh, 52px); }
@media (min-width: 1000px) { .kino-text { padding-bottom: clamp(40px, 9svh, 88px); } }
.kino-titel { font-size: clamp(3.4rem, 15.2vw, 12.2rem); font-weight: 800; line-height: .86; letter-spacing: -0.035em; margin: -0.74em 0 clamp(18px, 3svh, 30px); }
.kino-vor { display: block; font-size: .3em; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: .1em; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.kino-wort { display: block; white-space: nowrap; color: var(--ec-orange); text-shadow: 0 6px 40px rgba(0,0,0,.35); }
.bewegt .kino-wort { background: var(--ec-orange) linear-gradient(100deg, rgba(255,244,209,0) 0%, #fff4d1 50%, rgba(255,244,209,0) 100%) -60% 0 / 30% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; animation: titel-hoch 1.1s cubic-bezier(.2,.7,.2,1) .7s both, scheinwerfer 7s ease-in-out 1.7s infinite; }
@keyframes scheinwerfer { 0% { background-position: -60% 0; } 26%, 100% { background-position: 160% 0; } }
.bewegt .kino-vor { animation: titel-hoch 1s cubic-bezier(.2,.7,.2,1) .55s both; }
@keyframes titel-hoch { from { transform: translateY(.5em); } to { transform: translateY(0); } }
.bewegt .kino-unten { animation: unten-hoch 1s cubic-bezier(.2,.7,.2,1) 1s both; }
@keyframes unten-hoch { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.kino-unten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.kino-lead { font-size: clamp(1.12rem, 1rem + .55vw, 1.45rem); line-height: 1.45; max-width: 32em; margin: 0; color: var(--text); }
.kino-aktion .hero-knoepfe { margin-bottom: 18px; }
.kino .hero-termin { border-top: 0; padding-top: 0; font-size: 17px; max-width: 40em; }
@media (min-width: 1200px) {
  .kino-unten { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 88px); align-items: end; }
  .kino-aktion .hero-knoepfe { justify-content: flex-end; }
  .kino .hero-termin { margin-left: auto; text-align: left; }
}
@media (max-width: 599px) {
  .kino { grid-template-rows: var(--kopf-h) minmax(300px, 1fr) auto; }
  .kino-poster, .kino-video { object-position: 34% 60%; }
  .kino-titel { font-size: clamp(3rem, 15.6vw, 5rem); margin-top: -0.82em; }
  .kino-vor { font-size: .38em; }
  .kino-aktion .hero-knoepfe { gap: 10px; }
}

/* ---------------- Kennzahlen als Filmstreifen ---------------- */
.zahlen-band { position: relative; background: var(--nacht); padding: 18px 0; }
.zahlen-band::before, .zahlen-band::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(90deg, #1b1f27 0 14px, transparent 14px 30px); }
.zahlen-band::before { top: 4px; }
.zahlen-band::after { bottom: 4px; }
.zb-raster { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.zb-zahl { padding: 26px var(--rand) 28px; border-right: 1px solid var(--linie); }
.zb-zahl:nth-child(2n) { border-right: 0; }
.zb-zahl:nth-child(n+3) { border-top: 1px solid var(--linie); }
.zb-zahl dt { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; line-height: 1; }
.zb-wert { font-size: clamp(2.8rem, 12vw, 6.4rem); font-weight: 800; letter-spacing: -0.04em; color: var(--ec-orange); font-variant-numeric: tabular-nums; text-shadow: 0 0 34px rgba(247,166,0,.28); white-space: nowrap; }
.zb-prozent { font-size: .6em; margin-left: .06em; }
.zb-einheit { font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); font-weight: 600; color: var(--text); }
.zb-zahl dd { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.4; max-width: 17em; }
@media (min-width: 960px) {
  .zb-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zb-zahl { padding: 40px clamp(20px, 2.6vw, 44px); border-top: 0 !important; }
  .zb-zahl:nth-child(2n) { border-right: 1px solid var(--linie); }
  .zb-zahl:last-child { border-right: 0; }
  .zb-wert { font-size: clamp(3.8rem, 6vw, 6.6rem); }
}
@media (max-width: 380px) { .zb-zahl { padding-left: 16px; padding-right: 12px; } }

/* ---------------- Titelkarten ---------------- */
.titelkarte { text-align: center; max-width: 920px; margin: 0 auto clamp(40px, 5.5vw, 72px); }
.titelkarte .titel-gross { font-size: clamp(2.6rem, 1.3rem + 5vw, 5.8rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.titelkarte .block-lead { margin: 0 auto; max-width: 34em; }
@media (max-width: 599px) { .titelkarte { text-align: left; } }

/* ---------------- Weiterbildungen ---------------- */
.hauptrolle { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--grund-2); border: 1px solid var(--linie); border-top: 4px solid var(--ec-orange); }
.hr-bild { position: relative; display: grid; }
.hr-bild > img { grid-area: 1 / 1; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 18%; filter: saturate(.85) brightness(.9); }
.hr-text { padding: clamp(26px, 4vw, 60px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hr-name { font-size: clamp(2.8rem, 1.6rem + 4.4vw, 5rem); line-height: .95; letter-spacing: -0.03em; margin-bottom: 12px; }
.hr-lauf { max-width: 36em; color: var(--text); }
.hr-text .wb-fakten { width: 100%; margin: 22px 0 32px; }
.hr-text .knopf { margin-top: 0; }
.hr-text .wb-marke { margin-top: 0; }

.schein { position: relative; z-index: 2; margin: -96px 14px 0; padding: 18px 20px 20px; background: rgba(9,11,15,.95); border: 1px solid var(--linie-hell); border-top: 3px solid var(--ec-orange); box-shadow: 0 30px 60px -24px rgba(0,0,0,.85); }
@supports (backdrop-filter: blur(8px)) { .schein { background: rgba(9,11,15,.84); backdrop-filter: blur(12px); } }
.schein-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; font-weight: 700; font-size: 18px; }
.schein-zeit { color: var(--ec-orange); font-variant-numeric: tabular-nums; white-space: nowrap; }
.schein-balken { display: block; height: 4px; background: #262b35; margin-bottom: 14px; overflow: hidden; }
.schein-balken span { display: block; height: 100%; background: var(--ec-orange); transform-origin: 0 50%; box-shadow: 0 0 12px rgba(247,166,0,.7); }
.schein-liste { display: grid; gap: 10px; }
.schein-liste li, .gs-traeger li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.3; }
.haken { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ec-orange); }
.haken::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #11141a; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.bewegt .schein:not(.los) .schein-balken span { transform: scaleX(0); }
.bewegt .schein:not(.los) .haken { transform: scale(0); }
.bewegt .schein:not(.los) .schein-liste li { opacity: 0; }
.bewegt .schein.los .schein-balken span { animation: balken 2.2s cubic-bezier(.45,0,.2,1) .2s both; }
.bewegt .schein.los .haken { animation: haken-an .45s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(.8s + var(--n) * .42s); }
.bewegt .schein.los .schein-liste li { animation: zeile-an .4s ease both; animation-delay: calc(.8s + var(--n) * .42s); }
@keyframes balken { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes haken-an { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes zeile-an { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 600px) and (max-width: 959px) {
  .hr-bild > img { aspect-ratio: 16 / 11; object-position: 50% 22%; }
  .schein { position: absolute; right: 20px; bottom: 20px; margin: 0; width: min(380px, calc(100% - 40px)); }
}
@media (min-width: 960px) {
  .hauptrolle { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .hr-bild > img { aspect-ratio: auto; height: 100%; min-height: 600px; }
  .schein { position: absolute; left: 24px; right: 24px; bottom: 24px; margin: 0; max-width: 420px; }
}

.nebenrollen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.nr-karte { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); background: var(--grund-2); border: 1px solid var(--linie); transition: border-color .2s, background-color .2s; }
.nr-karte::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--ec-orange); transform-origin: 0 50%; transform: scaleX(.18); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.nr-karte:hover { border-color: var(--linie-hell); background: var(--grund-3); }
.nr-karte:hover::before { transform: scaleX(1); }
.nr-name { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); line-height: 1.1; margin-bottom: 10px; }
.nr-zusatz { color: var(--ec-orange); font-weight: 500; margin: 0 0 12px; }
.nr-text { color: var(--text-2); margin: 0; }
@media (min-width: 900px) { .nebenrollen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------- Zweites Video: Szene aus dem Fuehrerstand ---------------- */
.szene { position: relative; background: var(--nacht); overflow: hidden; }
.szene-bild { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.szene-poster, .szene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.szene-video { opacity: 0; transition: opacity 1.2s ease; }
.szene-video.laeuft { opacity: 1; }
.szene-text { position: relative; z-index: 2; padding: 28px var(--rand) 56px; }
.szene-text p { margin: 0; font-size: clamp(2.2rem, 1rem + 5vw, 5.6rem); font-weight: 800; line-height: .98; letter-spacing: -0.03em; }
@media (min-width: 900px) {
  .szene-bild { aspect-ratio: 2.39 / 1; min-height: 460px; }
  .szene-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,10,.88) 0%, rgba(5,7,10,.55) 38%, rgba(5,7,10,0) 62%), linear-gradient(0deg, rgba(5,7,10,.5), rgba(5,7,10,0) 40%); }
  .szene-text { position: absolute; inset: 0; display: flex; align-items: center; max-width: 1440px; margin: 0 auto; padding: 0 var(--rand); }
  .szene-text p { text-shadow: 0 4px 30px rgba(0,0,0,.5); }
}
@media (max-width: 899px) { .szene-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--nacht), rgba(5,7,10,0) 30%); } }
.bewegt .szene:not(.los) .szene-text p { transform: translateY(30px); opacity: 0; }
.bewegt .szene.los .szene-text p { transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .9s ease; }

/* ---------------- Foerderung mit Bildungsgutschein ---------------- */
.foerder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.foerder-text { display: flex; flex-direction: column; align-items: flex-start; }
.foerder-text .block-lead { margin: 20px 0 28px; }
.foerder-wege { width: 100%; margin: 0 0 28px; border-top: 1px solid var(--linie-hell); }
.foerder-wege div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.foerder-wege dt { font-weight: 700; }
.foerder-wege dd { margin: 0; color: var(--text-2); }
@media (min-width: 600px) { .foerder-wege div { grid-template-columns: 11em minmax(0, 1fr); gap: 16px; } }
.foerder-text .link-pfeil { margin-top: auto; }
.foerder-karte-rahmen { position: relative; overflow: hidden; display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px); background: radial-gradient(ellipse at 50% 40%, rgba(247,166,0,.16), rgba(247,166,0,0) 62%), var(--grund-2); border: 1px solid var(--linie); }
@media (min-width: 960px) {
  .foerder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: stretch; }
}

.gutschein { position: relative; width: min(100%, 440px); padding: 26px 26px 96px; background: #eef0f3; color: #14171d; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); transform: rotate(-1.2deg); }
.gutschein::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--ec-orange) 0 22px, #14171d 22px 44px); }
.gs-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 14px; padding-bottom: 12px; border-bottom: 1px dashed #9aa1ad; }
.gs-titel { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.gs-zert { font-size: 15px; font-weight: 700; padding: 3px 9px; border: 2px solid #14171d; border-radius: 4px; }
.gs-kurs { margin: 0 0 16px; font-weight: 700; font-size: 18px; line-height: 1.3; }
.gs-kurs span { font-weight: 500; color: #474e5a; font-size: 17px; }
.gs-traeger { display: grid; gap: 9px; }
.gs-traeger .haken::after { border-color: #14171d; }
.gs-stempel { position: absolute; right: 18px; bottom: 22px; margin: 0; transform: rotate(-12deg); pointer-events: none; }
.gs-stempel span { display: block; padding: 6px 14px 8px; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem); font-weight: 800; line-height: 1; letter-spacing: -0.01em; color: #c46f00; border: 4px solid #c46f00; border-radius: 10px; background: rgba(238,240,243,.75); }
@media (max-width: 420px) { .gs-stempel { right: 10px; bottom: 16px; } .gutschein { padding: 22px 18px 88px; } }
.bewegt .gutschein:not(.los) .haken { transform: scale(0); }
.bewegt .gutschein:not(.los) .gs-stempel { opacity: 0; transform: rotate(-12deg) scale(1.8); }
.bewegt .gutschein.los .haken { animation: haken-an .4s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(.3s + var(--n) * .3s); }
.bewegt .gutschein.los .gs-stempel { animation: stempel .45s cubic-bezier(.5,0,.6,1.4) 2s both; }
.bewegt .gutschein.los { animation: ruetteln .3s ease 2.4s; }
@keyframes stempel { from { opacity: 0; transform: rotate(-12deg) scale(1.8); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes ruetteln { 0%, 100% { transform: rotate(-1.2deg); } 40% { transform: rotate(-1.2deg) translateY(3px); } }

/* ---------------- Vorteile ---------------- */
.vorteile { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--linie-hell); }
.vorteile li { padding: 28px 0 26px; border-bottom: 1px solid var(--linie); }
.vorteile h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); line-height: 1.12; margin-bottom: 10px; }
.vorteile li:nth-child(-n+2) h3 { color: var(--ec-orange); }
.vorteile p { color: var(--text-2); margin: 0; }
@media (min-width: 760px) {
  .vorteile { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}
@media (min-width: 1100px) {
  .vorteile { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; border-top: 0; }
  .vorteile li { padding: 36px 40px 38px; border: 0; border-left: 1px solid var(--linie); border-top: 1px solid var(--linie-hell); }
  .vorteile li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .vorteile li:nth-child(n+4) { border-top-color: var(--linie); }
}

/* ---------------- Ablauf als Fahrt mit Spitzenlicht ---------------- */
.fahrt-halte { counter-reset: halt; display: grid; grid-template-columns: minmax(0, 1fr); }
.fahrt-halte li { position: relative; padding: 0 0 40px 68px; }
.fahrt-halte li::before, .fahrt-halte li::after { content: ""; position: absolute; left: 23px; top: 50px; bottom: 2px; width: 2px; background: #2c323d; }
.fahrt-halte li::after { background: linear-gradient(180deg, var(--ec-orange) 75%, #fff2c8); box-shadow: 0 0 14px rgba(247,166,0,.8); transform-origin: 50% 0; }
.fahrt-halte li:last-child::before, .fahrt-halte li:last-child::after { display: none; }
.fahrt-punkt { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ec-orange); background: var(--grund); display: grid; place-items: center; color: var(--ec-orange); font-weight: 800; font-size: 20px; counter-increment: halt; }
.fahrt-punkt::before { content: counter(halt); }
.fahrt-halte li:last-child .fahrt-punkt { background: var(--ec-orange); color: #11141a; box-shadow: 0 0 0 6px rgba(247,166,0,.18), 0 0 28px rgba(247,166,0,.6); }
.fahrt-halte h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); line-height: 1.12; margin: 8px 0 10px; }
.fahrt-halte p { color: var(--text-2); margin: 0; }
@media (min-width: 900px) {
  .fahrt-halte { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
  .fahrt-halte li { padding: 84px 0 0; }
  .fahrt-halte li::before, .fahrt-halte li::after { left: 60px; right: -32px; top: 26px; bottom: auto; width: auto; height: 3px; }
  .fahrt-halte li::after { background: linear-gradient(90deg, var(--ec-orange) 80%, #fff2c8); transform-origin: 0 50%; }
  .fahrt-punkt { width: 56px; height: 56px; font-size: 22px; }
}
.bewegt .fahrt:not(.los) .fahrt-halte li::after { transform: scale(0, 0); }
.bewegt .fahrt:not(.los) .fahrt-punkt { border-color: #3b424f; color: #6d7482; }
.bewegt .fahrt.los .fahrt-halte li::after { animation: strecke-y .9s cubic-bezier(.5,0,.3,1) both; animation-delay: calc(.5s + var(--n) * 1s); }
.bewegt .fahrt.los .fahrt-punkt { animation: halt-an .5s ease both; animation-delay: calc(.2s + var(--n) * 1s); }
.bewegt .fahrt.los .fahrt-halte li:last-child .fahrt-punkt { animation: halt-ziel .7s ease both; animation-delay: 3.2s; }
@media (min-width: 900px) { .bewegt .fahrt.los .fahrt-halte li::after { animation-name: strecke-x; } }
@keyframes strecke-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes strecke-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes halt-an { from { border-color: #3b424f; color: #6d7482; transform: scale(.9); } to { border-color: var(--ec-orange); color: var(--ec-orange); transform: scale(1); } }
@keyframes halt-ziel { from { background: var(--grund); color: #6d7482; border-color: #3b424f; box-shadow: none; } to { background: var(--ec-orange); color: #11141a; border-color: var(--ec-orange); box-shadow: 0 0 0 6px rgba(247,166,0,.18), 0 0 28px rgba(247,166,0,.6); } }

/* ---------------- Kursstarts als Programm ---------------- */
.ks-oben { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: clamp(32px, 4vw, 52px); align-items: end; }
.ks-titel-spalte .titel-gross { font-size: clamp(2.6rem, 1.3rem + 5vw, 5.8rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.countdown { padding: 22px 24px; background: var(--grund-2); border: 1px solid var(--linie); border-left: 4px solid var(--lampe-gruen); }
.cd-kopf { margin: 0 0 6px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.cd-kopf::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lampe-gruen); box-shadow: 0 0 10px rgba(63,224,138,.8); }
.cd-wert { margin: 0; display: grid; gap: 4px; }
.cd-zahl { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--ec-orange); font-variant-numeric: tabular-nums; }
.cd-datum { font-size: 19px; font-weight: 600; }
@media (min-width: 900px) { .ks-oben { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 48px; } }

.ks-programm { border-top: 2px solid var(--ec-orange); }
.ks-programm .ks-zeile { position: relative; padding: 20px 4px; border-bottom: 1px solid var(--linie); transition: background-color .2s; }
.ks-programm .ks-zeile:first-child { background: linear-gradient(90deg, rgba(247,166,0,.12), rgba(247,166,0,0) 70%); }
.ks-programm .ks-zeile:first-child::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ec-orange); }
.ks-programm .ks-zeile:hover { background-color: rgba(255,255,255,.03); }
.ks-programm .ks-tag { font-size: 46px; font-weight: 800; }
.ks-programm .ks-ort { font-size: 24px; }
@media (min-width: 760px) {
  .ks-programm .ks-tafel-kopf { padding: 14px 24px; border-bottom: 1px solid var(--linie-hell); }
  .ks-programm .ks-zeile { padding: 18px 24px; }
  .ks-programm .ks-tag { font-size: 56px; }
  .ks-programm .ks-ort { font-size: 28px; }
}
@media (max-width: 759px) { .ks-programm .ks-zeile { padding: 18px 14px; } .ks-programm .ks-tag { font-size: 38px; } }
.ks-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 28px; margin: 18px 0 0; color: var(--text-2); }
.ks-fuss a { color: var(--text); font-weight: 600; text-decoration-color: var(--ec-orange); text-decoration-thickness: 2px; display: inline-block; min-height: 44px; line-height: 44px; }
.ks-fuss .ks-stand { order: 2; }

/* ---------------- Standorte ---------------- */
.breitbild { position: relative; aspect-ratio: 2.39 / 1; overflow: hidden; margin-bottom: clamp(48px, 7vw, 96px); }
.breitbild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; filter: grayscale(.55) brightness(.6) contrast(1.1); }
.breitbild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,.6), rgba(10,12,16,0) 40%, rgba(10,12,16,0) 60%, var(--grund)), linear-gradient(90deg, rgba(20,40,90,.35), rgba(247,166,0,.12)); mix-blend-mode: normal; }
@media (max-width: 699px) { .breitbild { aspect-ratio: 16 / 9; } }
#standorte .so-raster { border-top: 0; gap: 16px; }
#standorte .so-karte { position: relative; padding: 28px 24px 26px; background: var(--grund-2); border: 1px solid var(--linie); }
#standorte .so-karte::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--ec-orange); transform-origin: 0 50%; }
#standorte .so-name { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); letter-spacing: -0.03em; }
@media (min-width: 900px) {
  #standorte .so-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 0; }
  #standorte .so-karte, #standorte .so-karte:first-child { padding: 34px clamp(22px, 2.6vw, 40px); border-left: 1px solid var(--linie); }
}
@media (min-width: 600px) and (max-width: 899px) {
  #standorte .so-karte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); column-gap: 28px; }
  #standorte .so-karte > * { grid-column: 2; }
  #standorte .so-karte > .so-name { grid-column: 1; grid-row: 1 / span 4; }
}
.bewegt .so-raster:not(.los) .so-karte::before { transform: scaleX(0); }
.bewegt .so-raster:not(.los) .so-karte { opacity: 0; transform: translateY(24px); }
.bewegt .so-raster.los .so-karte { transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 140ms); }
.bewegt .so-raster.los .so-karte::before { transition: transform 1s cubic-bezier(.6,0,.2,1); transition-delay: calc(.3s + var(--i, 0) * 140ms); }

/* ---------------- Paare: Fortbildungen, Unternehmen, Raeume, Karriere ---------------- */
.paar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.paar-feld { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3.4vw, 48px); background: var(--grund-2); border: 1px solid var(--linie); }
.paar-feld > p { color: var(--text-2); max-width: 34em; }
.paar-feld .fb-liste { width: 100%; margin-top: 12px; }
.paar-feld .link-pfeil { margin-top: auto; }
.paar-bild figure { align-self: stretch; margin: calc(-1 * clamp(24px, 3.4vw, 48px)) calc(-1 * clamp(24px, 3.4vw, 48px)) 28px; aspect-ratio: 16 / 9; overflow: hidden; }
.paar-bild figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.92); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.paar-bild:hover figure img { transform: scale(1.04); }
#karriere { padding-top: 0; }
@media (min-width: 960px) { .paar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------------- FAQ ---------------- */
.faq-rahmen .titel-gross { font-size: clamp(2.6rem, 1.3rem + 5vw, 5.4rem); letter-spacing: -0.03em; }

/* ---------------- Finale: Anmeldung mit grossem Signal ---------------- */
.finale { position: relative; overflow: hidden; background: var(--nacht); padding: clamp(64px, 9vw, 132px) 0; }
.finale-grund { position: absolute; inset: 0; }
.finale-grund img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; opacity: .32; }
.finale-grund::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--nacht) 0%, rgba(5,7,10,.72) 50%, rgba(5,7,10,.92) 100%), linear-gradient(0deg, var(--nacht), rgba(5,7,10,0) 40%); }
.finale-innen { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.finale-links { display: flex; flex-direction: column; align-items: flex-start; }
.finale-links .an-titel { font-size: clamp(2.3rem, 1rem + 3.2vw, 4rem); }
.finale-links .an-lead { color: var(--text); }
.finale-links .an-tel { margin-top: auto; padding-top: 28px; }
.finale-form { padding: clamp(22px, 3.4vw, 44px); background: rgba(14,17,22,.94); border: 1px solid var(--linie-hell); border-top: 4px solid var(--ec-orange); }
.finale .feld input, .finale .feld select { background: #07090c; }
@media (min-width: 960px) { .finale-innen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: stretch; } }

.gross-signal { display: flex; align-items: center; gap: 18px; margin: 4px 0 8px; }
.gs-mastkopf { display: flex; gap: 10px; padding: 10px 12px; background: #000; border: 1px solid #343b47; border-radius: 34px; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.gs-mastkopf i { width: 30px; height: 30px; }
.gross-signal .l-gruen { background: var(--lampe-gruen); box-shadow: 0 0 24px 4px rgba(63,224,138,.55); }
.gs-schrift { display: grid; line-height: 1.1; }
.gs-schrift b { grid-area: 1 / 1; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 800; }
.gs-schrift span { color: var(--text-2); font-size: 17px; }
.gw-halt { opacity: 0; color: var(--lampe-rot); }
.gw-frei { color: var(--lampe-gruen); }
.bewegt .gross-signal:not(.los) .l-rot { background: var(--lampe-rot); box-shadow: 0 0 24px 4px rgba(255,79,64,.6); }
.bewegt .gross-signal:not(.los) .l-gruen { background: #1d2129; box-shadow: inset 0 1px 2px rgba(0,0,0,.7); }
.bewegt .gross-signal:not(.los) .gw-halt { opacity: 1; }
.bewegt .gross-signal:not(.los) .gw-frei { opacity: 0; }
.bewegt .gross-signal.los .l-rot { animation: lampe-rot 2s linear both; }
.bewegt .gross-signal.los .l-gelb { animation: lampe-gelb 2s linear both; }
.bewegt .gross-signal.los .l-gruen { animation: lampe-gruen 2s linear both; }
.bewegt .gross-signal.los .gw-halt { animation: wort-weg 2s linear both; }
.bewegt .gross-signal.los .gw-frei { animation: wort-da 2s linear both; }
@keyframes lampe-rot { 0%, 35% { background: var(--lampe-rot); box-shadow: 0 0 24px 4px rgba(255,79,64,.6); } 40%, 100% { background: #1d2129; box-shadow: inset 0 1px 2px rgba(0,0,0,.7); } }
@keyframes lampe-gelb { 0%, 40% { background: #1d2129; box-shadow: inset 0 1px 2px rgba(0,0,0,.7); } 44%, 72% { background: var(--lampe-gelb); box-shadow: 0 0 24px 4px rgba(247,166,0,.6); } 76%, 100% { background: #1d2129; box-shadow: inset 0 1px 2px rgba(0,0,0,.7); } }
@keyframes lampe-gruen { 0%, 76% { background: #1d2129; box-shadow: inset 0 1px 2px rgba(0,0,0,.7); } 80%, 100% { background: var(--lampe-gruen); box-shadow: 0 0 24px 4px rgba(63,224,138,.55); } }
@keyframes wort-weg { 0%, 76% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes wort-da { 0%, 76% { opacity: 0; transform: translateX(-8px); } 84%, 100% { opacity: 1; transform: translateX(0); } }

/* ---------------- Fuss ---------------- */
.fuss { background: #040507; padding-bottom: 150px; }
.kino.aus .kino-wort { animation-play-state: paused; }

/* ---------------- Navigation mit Untermenues (Startseite und Unterseiten, seit 2026-11-30) ----------------
   Breit ab 1200 px: Untermenue als Tafel bei Hover, Fokus und per Knopf (menue.js).
   Darunter das Handymenue aus /signal/style.css, hier bis 1199 px verlaengert, Gruppen klappen auf. */
.kopf-nav .hat-unter { position: relative; }
.unter-knopf { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; background: none; border: 0; color: #d6dae1; cursor: pointer; }
.unter-knopf::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.unter-knopf[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.unter-knopf:hover, .unter-knopf[aria-expanded="true"] { color: var(--ec-orange); }
.unter-knopf:focus-visible { outline: 2px solid var(--ec-orange); outline-offset: -2px; }
.unter-name { font-weight: 600; }
.unter-info { font-size: 14px; font-weight: 400; color: var(--text-2); line-height: 1.3; }
.kopf-nav a[aria-current="page"] { color: #fff; }

@media (min-width: 1200px) {
  .kopf-innen { gap: 22px; }
  .kopf-nav a { padding: 0 9px; font-size: 16px; }
  .kopf-nav .hat-unter { display: flex; align-items: center; }
  .kopf-nav .hat-unter > a { padding-right: 4px; }
  .unter-knopf { width: 24px; height: 44px; margin-right: 2px; }
  .kopf-nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ec-orange); }
  .unter { position: absolute; left: -12px; top: 100%; z-index: 60; min-width: 340px; padding-top: 14px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s linear .22s; }
  .unter-breit { min-width: 640px; }
  .kopf-nav:not(.js-unter) .hat-unter:hover .unter, .kopf-nav:not(.js-unter) .hat-unter:focus-within .unter, .hat-unter.offen .unter { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .kopf-nav .unter-liste { display: grid; gap: 2px; padding: 10px; background: rgba(8,10,14,.97); border: 1px solid var(--linie-hell); border-top: 2px solid var(--ec-orange); box-shadow: 0 34px 70px -24px rgba(0,0,0,.95); }
  .unter-breit .unter-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unter-ganz { grid-column: 1 / -1; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--linie); }
  .kopf-nav .unter a { display: grid; gap: 3px; align-content: center; min-height: 58px; padding: 8px 14px 8px 16px; color: var(--text); font-size: 16px; line-height: 1.25; border-left: 2px solid transparent; transition: background-color .15s, border-color .15s; }
  .kopf-nav .unter a:hover, .kopf-nav .unter a:focus-visible { background: var(--grund-3); border-left-color: var(--ec-orange); }
  .kopf-nav .unter a[aria-current="page"] { border-left-color: var(--ec-orange); background: rgba(247,166,0,.08); }
  .kopf-innen > .kopf-tel { display: none; }
}
@media (min-width: 1360px) { .kopf-innen > .kopf-tel { display: inline-flex; } }
@media (min-width: 1500px) { .kopf-nav a { padding: 0 12px; font-size: 17px; } .kopf-nav .hat-unter > a { padding-right: 4px; } .kopf-innen { gap: 28px; } }

/* Handymenue bis 1199 px (die Grundfassung schaltet erst bei 959 px um) */
@media (min-width: 960px) and (max-width: 1199px) {
  .kopf-innen > .kopf-tel { display: none; }
  .mini-signal { margin-left: auto; }
  .menue-knopf { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px; background: none; border: 0; color: var(--text); cursor: pointer; }
  .menue-striche, .menue-striche::before, .menue-striche::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s; }
  .menue-striche::before, .menue-striche::after { content: ""; position: absolute; left: 0; }
  .menue-striche::before { top: -8px; }
  .menue-striche::after { top: 8px; }
  .menue-knopf[aria-expanded="true"] .menue-striche { background: transparent; }
  .menue-knopf[aria-expanded="true"] .menue-striche::before { transform: translateY(8px) rotate(45deg); }
  .menue-knopf[aria-expanded="true"] .menue-striche::after { transform: translateY(-8px) rotate(-45deg); }
  .kopf-nav { display: none; position: absolute; left: 0; right: 0; top: var(--kopf-h); margin: 0; padding: 8px var(--rand) 24px; border-bottom: 1px solid var(--linie); max-height: calc(100svh - var(--kopf-h)); overflow-y: auto; }
  .kopf-nav.offen { display: block; }
  .kopf-nav ul { flex-direction: column; gap: 0; }
  .kopf-nav li { border-bottom: 1px solid var(--linie); }
  .kopf-nav a { min-height: 56px; padding: 0; font-size: 22px; font-weight: 600; color: var(--text); width: 100%; }
  .kopf-nav .kopf-tel-mobil { display: inline-flex; margin-top: 16px; font-size: 20px; color: var(--ec-orange); }
}
@media (max-width: 1199px) {
  .kopf-nav { background: var(--grund); padding-bottom: 150px; overscroll-behavior: contain; }
  .kopf-nav .hat-unter { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: center; }
  .unter-knopf { width: 56px; height: 56px; border-left: 1px solid var(--linie); color: var(--text); }
  .unter { grid-column: 1 / -1; display: none; margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 2px solid var(--ec-orange); }
  .hat-unter.offen .unter, .kopf-nav:not(.js-unter) .hat-unter:focus-within .unter { display: block; }
  .kopf-nav .unter-liste li { border-bottom: 0; }
  .kopf-nav .unter a { display: flex; align-items: center; min-height: 46px; font-size: 18px; font-weight: 500; color: var(--text-2); }
  .kopf-nav .unter a[aria-current="page"] { color: var(--ec-orange); }
  .unter-name { font-weight: 500; }
  .unter-info { display: none; }
}

/* Fuss mit vier Spalten und Links auf die Unterseiten */
@media (min-width: 760px) {
  .fuss-oben-voll { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fuss-oben-voll .fuss-marke { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .fuss-oben-voll { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
  .fuss-oben-voll .fuss-marke { grid-column: auto; }
}
@media (max-width: 759px) { .fuss-oben-voll .fuss-orte { grid-column: 1 / -1; } }

/* Startseite: Karten und Listen verlinken auf die Unterseiten */
.hr-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 599px) { .hr-knoepfe .knopf { width: 100%; } }
.nr-karte .nr-name a { color: inherit; text-decoration: none; }
.nr-karte .nr-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nr-karte:focus-within { outline: 2px solid var(--ec-orange); outline-offset: 3px; }
.nr-karte .nr-name a:focus-visible { outline: none; }
.nr-mehr { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 20px; color: var(--text); font-weight: 600; }
.nr-mehr::after { content: ""; width: 8px; height: 8px; border: solid var(--ec-orange); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s; }
.nr-karte:hover .nr-mehr::after { transform: translateX(4px) rotate(45deg); }
.nr-karte:hover .nr-name { color: var(--ec-orange); }
.ks-fuss .ks-alle { margin-left: 18px; }
.so-mehr { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 32px 0 0; }
.paar-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: auto; }
.paar-feld .paar-links .link-pfeil { margin-top: 0; }
.paar-feld .fb-liste + .link-pfeil { margin-top: 24px; }
