/* Signal C "Lichtspur": Langzeitbelichtung. Lichtspuren eines vorbeifahrenden Zuges,
   schraege Bildausschnitte, Diagonale und Bewegung. Laedt /signal/style.css mit und
   ueberschreibt, was das Konzept anders braucht. */
:root {
  --nacht: #0d0d0c;
  --licht: #fff1cf;
  --glut: rgba(247,166,0,.45);
}
html, body { background: var(--nacht); }
body { overflow-x: clip; }

/* Schraege Ausschnitte als wiederkehrendes Motiv */
.schraeg-rechts { clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
.schraeg-oben { clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); }
@media (min-width: 960px) {
  .schraeg-rechts { clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
}

/* ---------------- Hero ---------------- */
.lh-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 78% 30%, #1d1a14 0%, var(--nacht) 60%); border-bottom: 1px solid var(--linie); }
.lh-schlitz { position: relative; z-index: 0; height: clamp(250px, 62vw, 520px); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%); background: #10131a; }
.lh-schlitz img, .lh-schlitz video, .lh-band-schlitz img, .lh-band-schlitz video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lh-schlitz img { object-position: 30% 50%; }
.lh-schlitz video { object-position: 30% 50%; opacity: 0; transition: opacity .8s ease; }
.lh-video.laeuft { opacity: 1; }
.lh-schlitz::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,12,0) 45%, rgba(13,13,12,.7) 100%); pointer-events: none; }
.lh-spuren { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lh-hero-innen { position: relative; z-index: 2; padding: 0 var(--rand) 40px; margin-top: -54px; }
.lh-titel { font-weight: 800; letter-spacing: -0.035em; line-height: .86; margin: 0 0 24px; }
.lh-titel-vor { display: block; font-size: clamp(1.6rem, 7.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; margin-bottom: .14em; text-shadow: 0 2px 18px rgba(0,0,0,.65); }
.lh-titel-haupt { display: inline-block; white-space: nowrap; font-size: clamp(3.1rem, 15vw, 10.6rem); color: var(--orange); padding-right: .04em; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .lh-titel-haupt {
    background: linear-gradient(100deg, #f7a600 0%, #f7a600 38%, #fff4d8 47%, #ffc83d 52%, #f7a600 60%, #f7a600 100%);
    background-size: 280% 100%; background-position: 0% 0;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 26px rgba(247,166,0,.28));
  }
  .bewegt .lh-titel-haupt { animation: lh-glanz 8s cubic-bezier(.5,0,.3,1) 1.2s infinite; }
}
@keyframes lh-glanz { 0% { background-position: 100% 0; } 26%, 100% { background-position: 0% 0; } }
.lh-unterzeile { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.45; max-width: 31em; margin-bottom: 28px; text-shadow: 0 0 3px rgba(13,13,12,.95), 0 1px 14px rgba(13,13,12,.95), 0 0 30px rgba(13,13,12,.8); }

/* Info-Karte im Hero */
.lh-info { position: relative; margin-top: 32px; padding: 20px 22px 18px; background: rgba(16,16,15,.9); border: 1px solid #3b3b38; border-left: 3px solid var(--orange); box-shadow: 0 30px 60px -28px rgba(0,0,0,.9); max-width: 420px; }
@supports (backdrop-filter: blur(8px)) { .lh-info { background: rgba(16,16,15,.72); backdrop-filter: blur(14px); } }
.lh-info p { margin: 0; }
.lh-info-kopf { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; color: var(--text-2); }
.lh-info-licht { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px 2px rgba(247,166,0,.7); }
.lh-info-zeit { display: grid; margin: 10px 0 8px !important; line-height: 1; }
.lh-info-tag { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 700; line-height: 1.15; color: var(--text); }
.lh-info-uhr { font-size: clamp(2.4rem, 2rem + 1.6vw, 3.2rem); font-weight: 800; line-height: 1; margin-top: 4px; color: var(--orange); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(247,166,0,.4); }
.lh-info-orte { color: var(--text-2); font-size: 17px; line-height: 1.4; }
.lh-info-start { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid #3b3b38; font-size: 17px; color: var(--text-2); line-height: 1.4; }
.lh-info-start strong { color: var(--text); font-weight: 600; }

@media (max-width: 599px) {
  .lh-info { max-width: none; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .lh-hero-innen { margin-top: -80px; }
}
@media (min-width: 960px) {
  .lh-hero { min-height: min(calc(100svh - var(--kopf-h)), 900px); display: flex; align-items: center; }
  .lh-schlitz { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; height: auto; clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%); }
  .lh-schlitz img, .lh-schlitz video { object-position: 40% 50%; }
  .lh-schlitz::after { background: linear-gradient(90deg, rgba(13,13,12,.75) 0%, rgba(13,13,12,.25) 32%, rgba(13,13,12,0) 55%), linear-gradient(0deg, rgba(13,13,12,.55) 0%, rgba(13,13,12,0) 35%); }
  .lh-hero-innen { width: 100%; max-width: 1440px; margin: 0 auto; padding: clamp(40px, 6vh, 80px) var(--rand) clamp(40px, 6vh, 72px); }
  .lh-hero-text { max-width: 60%; }
  .lh-titel-vor { font-size: clamp(2.4rem, 3.6vw, 3.6rem); }
  .lh-titel-haupt { font-size: clamp(5.4rem, 10.4vw, 10.6rem); }
  .lh-info { position: absolute; right: var(--rand); bottom: clamp(28px, 5vh, 56px); margin: 0; width: min(380px, 30%); }
}
@media (min-width: 1500px) { .lh-hero-innen { padding-left: max(var(--rand), calc((100vw - 1440px) / 2 + var(--rand))); } }

/* Animationen Hero-Karte */
.bewegt .lh-info:not(.los) { opacity: 0; transform: translateY(24px); }
.bewegt .lh-info.los { transition: opacity .7s ease .5s, transform .9s cubic-bezier(.2,.7,.2,1) .5s; }
.lh-info-licht::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); opacity: 0; }
.bewegt .lh-info.los .lh-info-licht::after { animation: lh-puls 2.2s ease-out 1.4s infinite; }
@keyframes lh-puls { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }

/* ---------------- Lichtlinie als Trenner ---------------- */
.lichtlinie { position: relative; height: 2px; overflow: hidden; }
.lichtlinie::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,166,0,0) 0%, rgba(247,166,0,.6) 55%, #f7a600 92%, #fff1cf 100%); transform-origin: 0 50%; }
.lichtlinie::after { content: ""; position: absolute; top: -10px; right: 0; width: 160px; height: 22px; background: radial-gradient(closest-side, rgba(255,241,207,.95), rgba(247,166,0,.5) 45%, rgba(247,166,0,0)); opacity: 0; }
.bewegt .lichtlinie:not(.los)::before { transform: scaleX(0); }
.bewegt .lichtlinie.los::before { transition: transform 1.6s cubic-bezier(.6,0,.2,1); }
.bewegt .lichtlinie.los::after { animation: lh-kopf 1.6s cubic-bezier(.6,0,.2,1) both; }
@keyframes lh-kopf { 0% { opacity: 0; transform: translateX(-100vw); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(0); } }

/* ---------------- Kennzahlen ---------------- */
.lh-zahlen { background: #121211; }
.lh-zahlen .zahl-wert { text-shadow: 0 0 34px rgba(247,166,0,.35); }
.lh-zahlen .zahl { position: relative; }
.bewegt .lh-zahlen .zahlen-raster:not(.los) .zahl { opacity: 0; transform: translateX(-28px) skewX(-8deg); }
.bewegt .lh-zahlen .zahlen-raster.los .zahl { transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.bewegt .lh-zahlen .zahlen-raster.los .zahl:nth-child(2) { transition-delay: .12s; }
.bewegt .lh-zahlen .zahlen-raster.los .zahl:nth-child(3) { transition-delay: .24s; }
.bewegt .lh-zahlen .zahlen-raster.los .zahl:nth-child(4) { transition-delay: .36s; }

/* ---------------- Bloecke ---------------- */
.lh-block { position: relative; }
.lh-block .titel-gross .akzent { white-space: nowrap; }

/* Weiterbildungen */
.lh-wb-haupt { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--grund-2); border: 1px solid var(--linie); }
.lh-wb-bild { aspect-ratio: 4 / 3; overflow: hidden; margin: 0; }
.lh-wb-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.lh-wb-text { padding: clamp(24px, 4vw, 56px); border-top: 4px solid var(--orange); }
@media (min-width: 960px) {
  .lh-wb-haupt { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .lh-wb-bild { aspect-ratio: auto; min-height: 100%; position: relative; }
  .lh-wb-bild img { position: absolute; inset: 0; }
  .lh-wb-text { border-top: 0; border-left: 0; position: relative; }
  .lh-wb-text::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, rgba(247,166,0,0), var(--orange) 40%); }
  .lh-wb-text .wb-fakten div { grid-template-columns: 11em minmax(0, 1fr); }
}
@media (max-width: 480px) { .lh-wb-text .wb-fakten div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.lh-wb-weitere { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(20px, 3vw, 32px); }
.lh-wb-weitere li { position: relative; padding: 30px clamp(22px, 2.6vw, 34px) 28px; background: var(--grund-2); border: 1px solid var(--linie); overflow: hidden; }
.lh-wb-weitere li::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, rgba(247,166,0,0), var(--orange) 60%, var(--licht)); transform-origin: 0 50%; }
.lh-wb-weitere h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.1; margin-bottom: 8px; }
.lh-wb-zusatz { color: var(--orange); font-weight: 500; margin-bottom: 14px !important; }
.lh-wb-weitere p:last-child { color: var(--text-2); margin: 0; }
@media (min-width: 900px) { .lh-wb-weitere { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.bewegt .lh-wb-weitere:not(.los) li::before { transform: scaleX(0); }
.bewegt .lh-wb-weitere.los li::before { transition: transform 1.1s cubic-bezier(.6,0,.2,1); transition-delay: calc(var(--i, 0) * 140ms + .25s); }

/* Foerderung mit Bildungsgutschein */
#foerderung { overflow: hidden; overflow: clip; }
.lh-fd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: stretch; }
.lh-fd-text .block-lead { margin-top: 20px; }
.lh-traeger { margin-top: 32px; border-top: 1px solid var(--linie-hell); }
.lh-traeger li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--linie); font-size: 20px; font-weight: 500; }
.lh-traeger li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 2px; background: linear-gradient(90deg, rgba(247,166,0,.2), var(--orange)); box-shadow: 0 0 8px rgba(247,166,0,.7); }
.lh-fd-hinweis { margin: 18px 0 0; color: var(--text-2); }
@media (min-width: 960px) { .lh-fd { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 104px); } }

.lh-gutschein { position: relative; align-self: center; width: 100%; max-width: 520px; justify-self: center; padding: clamp(24px, 3vw, 36px); background: linear-gradient(160deg, #22211e 0%, #171715 70%); border: 1px solid #47463f; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(247,166,0,.08) inset; overflow: hidden; transform: rotate(-2deg); }
.lh-gutschein::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(180deg, var(--orange) 0 14px, transparent 14px 22px); opacity: .85; }
.lh-gs-kopf { padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px dashed #55554f; }
.lh-gs-kopf p { margin: 0; }
.lh-gs-titel { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.lh-gs-von { color: var(--text-2); font-size: 17px; margin-top: 4px !important; }
.lh-gs-zeilen { margin: 0; }
.lh-gs-zeilen div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-bottom: 1px solid #34332f; }
.lh-gs-zeilen dt { color: var(--text-2); font-size: 17px; }
.lh-gs-zeilen dd { margin: 0; font-weight: 600; font-size: 19px; }
@media (min-width: 480px) { .lh-gs-zeilen div { grid-template-columns: 10em minmax(0, 1fr); gap: 16px; align-items: baseline; } }
.lh-gs-summe { border-bottom: 0 !important; }
.lh-gs-summe dd { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); font-weight: 800; color: var(--orange); line-height: 1; text-shadow: 0 0 24px rgba(247,166,0,.4); }
.lh-gs-stempel { position: absolute; right: 18px; bottom: 22px; margin: 0; transform: rotate(-14deg); pointer-events: none; }
.lh-gs-stempel span { display: inline-block; padding: 6px 14px; border: 3px solid var(--orange); border-radius: 8px; color: var(--orange); font-weight: 800; font-size: 20px; letter-spacing: .02em; opacity: .9; }
.lh-gs-glanz { position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; background: linear-gradient(100deg, rgba(255,241,207,0), rgba(255,241,207,.16), rgba(255,241,207,0)); transform: translateX(-150%) skewX(-18deg); pointer-events: none; }
@media (max-width: 599px) { .lh-gutschein { transform: rotate(-1deg); width: calc(100% - 6px); } .bewegt .lh-gutschein:not(.los) { transform: rotate(-4deg) translateY(40px); } }
@media (max-width: 479px) { .lh-gs-stempel { right: 12px; bottom: 18px; } .lh-gs-stempel span { font-size: 17px; padding: 5px 10px; } }

.bewegt .lh-gutschein:not(.los) { opacity: 0; transform: rotate(-7deg) translateY(40px); }
.bewegt .lh-gutschein.los { transition: opacity .7s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.bewegt .lh-gutschein:not(.los) .lh-gs-zeilen div { opacity: 0; transform: translateX(-16px); }
.bewegt .lh-gutschein.los .lh-gs-zeilen div { transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(.6s + var(--n) * .28s); }
.bewegt .lh-gutschein:not(.los) .lh-gs-stempel { opacity: 0; transform: rotate(-14deg) scale(2.2); }
.bewegt .lh-gutschein.los .lh-gs-stempel { transition: opacity .2s ease 2.25s, transform .35s cubic-bezier(.5,1.8,.6,1) 2.25s; }
.bewegt .lh-gutschein.los .lh-gs-glanz { animation: lh-wisch 1.4s cubic-bezier(.6,0,.3,1) 2.7s both; }
@keyframes lh-wisch { from { transform: translateX(-150%) skewX(-18deg); } to { transform: translateX(420%) skewX(-18deg); } }

/* Band mit Fuehrerstandsfahrt */
.lh-band { position: relative; background: var(--nacht); border-bottom: 1px solid var(--linie); overflow: hidden; }
.lh-band-schlitz { position: relative; height: clamp(240px, 60vw, 460px); overflow: hidden; clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%); background: #2a1a10; }
.lh-band-schlitz img { object-position: 50% 40%; }
.lh-band-schlitz video { object-position: 50% 40%; opacity: 0; transition: opacity .8s ease; }
.lh-band-text { padding: 28px var(--rand) 48px; }
.lh-band-text p { margin: 0; font-size: clamp(2.2rem, 1rem + 5vw, 5.4rem); font-weight: 800; line-height: .98; letter-spacing: -0.025em; }
@media (min-width: 900px) {
  .lh-band { min-height: clamp(520px, 52vw, 720px); display: flex; align-items: center; }
  .lh-band-schlitz { position: absolute; top: 0; bottom: 0; right: 0; width: 66%; height: auto; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
  .lh-band-schlitz::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,13,12,.55), rgba(13,13,12,0) 40%); }
  .lh-band-text { position: relative; z-index: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 64px var(--rand); }
  .lh-band-text p { max-width: 8.6em; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
}
.lh-band-text p > * { display: inline; }
.bewegt .lh-band:not(.los) .lh-band-text p { opacity: 0; transform: translateX(-40px); }
.bewegt .lh-band.los .lh-band-text p { transition: opacity .8s ease .2s, transform 1s cubic-bezier(.2,.7,.2,1) .2s; }

/* Vorteile */
.lh-vt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.lh-vt-seite .block-lead { margin-top: 18px; }
.lh-vt-bild { margin: 32px 0 0; aspect-ratio: 4 / 3; overflow: hidden; }
.lh-vt-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.lh-vt-liste { border-top: 1px solid var(--linie-hell); }
.lh-vt-liste li { position: relative; padding: 26px 0 24px 34px; border-bottom: 1px solid var(--linie); }
.lh-vt-liste li::before { content: ""; position: absolute; left: 0; top: 36px; width: 18px; height: 2px; background: var(--orange); box-shadow: 0 0 10px rgba(247,166,0,.8); }
.lh-vt-liste h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.1; margin-bottom: 10px; }
.lh-vt-liste li:first-child h3, .lh-vt-liste li:nth-child(2) h3 { color: var(--orange); }
.lh-vt-liste p { color: var(--text-2); margin: 0; max-width: 34em; }
@media (min-width: 960px) {
  .lh-vt { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 104px); align-items: stretch; }
  .lh-vt-seite { display: flex; flex-direction: column; }
  .lh-vt-bild { flex: 1 1 auto; aspect-ratio: auto; min-height: 320px; position: relative; }
  .lh-vt-bild img { position: absolute; inset: 0; }
  .lh-vt-liste li { padding: 30px 0 28px 40px; }
  .lh-vt-liste li::before { top: 44px; width: 22px; }
}

/* Ablauf als ansteigende Diagonale */
.lh-ab { position: relative; }
.lh-ab-strahl { display: none; }
.lh-ab-schritte { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
.lh-ab-schritte li { position: relative; padding: 0 0 36px 66px; }
.lh-ab-schritte li::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: linear-gradient(180deg, var(--orange), rgba(247,166,0,.15)); }
.lh-ab-schritte li:last-child::after { display: none; }
.lh-ab-punkt { position: absolute; left: 0; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--orange); background: #121211; color: var(--orange); font-weight: 700; font-size: 20px; z-index: 1; }
.lh-ab-schritte li:last-child .lh-ab-punkt { background: var(--orange); color: #161615; box-shadow: 0 0 24px rgba(247,166,0,.6); }
.lh-ab-schritte h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); line-height: 1.1; margin-bottom: 10px; }
.lh-ab-schritte p { color: var(--text-2); margin: 0; }
.bewegt .lh-ab:not(.los) .lh-ab-schritte li { opacity: 0; transform: translateY(26px); }
.bewegt .lh-ab.los .lh-ab-schritte li { transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--n) * .35s + .15s); }
.bewegt .lh-ab:not(.los) .lh-ab-schritte li::after { transform: scaleY(0); }
.bewegt .lh-ab.los .lh-ab-schritte li::after { transform-origin: 50% 0; transition: transform .6s ease; transition-delay: calc(var(--n) * .35s + .5s); }
@media (min-width: 960px) {
  .lh-ab { --stufe: 64px; padding-top: calc(var(--stufe) * 3); }
  .lh-ab-strahl { display: block; position: absolute; z-index: 0; height: 2px; transform-origin: 0 50%; transform: rotate(var(--winkel, 0deg)); }
  .lh-ab-strahl::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,166,0,.35), var(--orange) 70%, #fff1cf); box-shadow: 0 0 12px rgba(247,166,0,.55); transform-origin: 0 50%; }
  .lh-ab-puls { position: absolute; top: -7px; left: -120px; width: 120px; height: 16px; background: radial-gradient(closest-side at 90% 50%, #fff8e6, rgba(247,166,0,.6) 45%, rgba(247,166,0,0)), linear-gradient(90deg, rgba(255,241,207,0), rgba(255,241,207,.7) 90%, rgba(255,241,207,0)); background-size: 100% 100%, 100% 3px; background-position: 0 0, 0 6.5px; background-repeat: no-repeat; opacity: 0; }
  .bewegt .lh-ab:not(.los) .lh-ab-strahl::before { transform: scaleX(0); }
  .bewegt .lh-ab.los .lh-ab-strahl::before { transition: transform 1.6s cubic-bezier(.5,0,.3,1) .2s; }
  .bewegt .lh-ab.los .lh-ab-puls { animation: lh-ab-puls 4.5s cubic-bezier(.5,0,.4,1) 2.2s infinite; }
  .lh-ab-schritte { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
  .lh-ab-schritte li { padding: 66px 0 0; margin-top: calc(var(--stufe) * (var(--n) * -1)); }
  .lh-ab-schritte li::after { display: none; }
  .lh-ab-punkt { top: 0; width: 46px; height: 46px; }
}
@keyframes lh-ab-puls { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 62% { opacity: 1; } 70%, 100% { transform: translateX(calc(var(--laenge, 900px) + 120px)); opacity: 0; } }

/* Kursstarts: Zeitstrahl mit Lichtpuls */
.lh-ks-kopf { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 18px; }
.lh-ks-kopf > div { display: grid; gap: 18px; }
@media (min-width: 900px) { .lh-ks-kopf { grid-template-columns: minmax(0, 1fr) auto; } }
.lh-zeitstrahl { display: none; }
.lh-zeitstrahl:empty { display: none !important; }
@media (min-width: 1000px) {
  .lh-zeitstrahl { display: block; position: relative; height: 230px; margin: 0 0 40px; overflow: hidden; overflow: clip; overflow-clip-margin: 0; }
  .zs-achse { position: absolute; left: 0; right: 0; top: 115px; height: 2px; background: #3b3b38; }
  .zs-licht { position: absolute; left: 0; right: 0; top: 115px; height: 2px; background: linear-gradient(90deg, rgba(247,166,0,.2), var(--orange)); transform-origin: 0 50%; box-shadow: 0 0 10px rgba(247,166,0,.6); }
  .zs-komet { position: absolute; top: 108px; left: 0; width: 220px; height: 16px; margin-left: -220px; background: radial-gradient(closest-side at 92% 50%, #fff6dc, rgba(247,166,0,.7) 40%, rgba(247,166,0,0)), linear-gradient(90deg, rgba(247,166,0,0), rgba(247,166,0,.55) 85%, rgba(255,241,207,0)); background-size: 100% 100%, 100% 4px; background-repeat: no-repeat; background-position: 0 0, 0 6px; opacity: 0; }
  .zs-monat { position: absolute; top: 122px; padding-left: 8px; font-size: 15px; color: #a3a29b; font-weight: 500; white-space: nowrap; }
  .zs-monat::before { content: ""; position: absolute; left: 0; top: -12px; width: 1px; height: 26px; background: #55554f; }
  .zs-halt { position: absolute; top: 0; height: 230px; width: 0; }
  .zs-punkt { position: absolute; left: -9px; top: 107px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(247,166,0,.2), 0 0 22px rgba(247,166,0,.9); }
  .zs-stiel { position: absolute; left: 0; width: 1px; background: linear-gradient(180deg, rgba(247,166,0,.7), rgba(247,166,0,.1)); }
  .zs-oben .zs-stiel { top: 46px; height: 60px; background: linear-gradient(0deg, rgba(247,166,0,.8), rgba(247,166,0,.1)); }
  .zs-unten .zs-stiel { top: 126px; height: 50px; }
  .zs-schild { position: absolute; left: 0; transform: translateX(-12px); white-space: nowrap; line-height: 1.1; }
  .zs-oben .zs-schild { top: 0; }
  .zs-unten .zs-schild { top: 176px; }
  .zs-schild b { display: block; font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
  .zs-schild span { display: block; font-size: 17px; color: var(--orange); font-weight: 600; margin-top: 2px; }
  .zs-rechtsbuendig .zs-schild { transform: translateX(calc(-100% + 12px)); text-align: right; }

  .bewegt .lh-zeitstrahl:not(.los) .zs-licht { transform: scaleX(0); }
  .bewegt .lh-zeitstrahl.los .zs-licht { transition: transform 3.2s cubic-bezier(.45,0,.35,1) .2s; }
  .bewegt .lh-zeitstrahl:not(.los) .zs-halt > * { opacity: 0; }
  .bewegt .lh-zeitstrahl:not(.los) .zs-punkt { transform: scale(.3); }
  .bewegt .lh-zeitstrahl.los .zs-halt > * { transition: opacity .45s ease, transform .5s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(.2s + var(--t) * 3.2s); }
  .bewegt .lh-zeitstrahl.los .zs-komet { animation: lh-komet 6s cubic-bezier(.45,0,.35,1) 3.8s infinite; }
}
@keyframes lh-komet { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 60% { opacity: 1; } 66% { transform: translateX(var(--zs-breite, 1200px)); opacity: 0; } 100% { transform: translateX(var(--zs-breite, 1200px)); opacity: 0; } }

.lh-tafel { border-top: 0; position: relative; }
.lh-tafel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, rgba(247,166,0,.1), var(--orange) 50%, var(--licht)); }
.lh-tafel .ks-zeile { position: relative; }
@media (max-width: 759px) {
  .lh-tafel .ks-liste { position: relative; }
  .lh-tafel .ks-zeile { padding-left: 30px; }
  .lh-tafel .ks-zeile::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: rgba(247,166,0,.35); }
  .lh-tafel .ks-zeile::after { content: ""; position: absolute; left: 7px; top: 28px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px rgba(247,166,0,.9); }
  .lh-tafel .ks-zeile { grid-template-columns: 84px minmax(0, 1fr); }
  .lh-tafel .ks-liste { overflow: hidden; }
  .lh-tafel .ks-liste::after { content: ""; position: absolute; z-index: 1; left: 4px; top: -60px; width: 18px; height: 100%; background: radial-gradient(circle at 9px 54px, #fff8e6 0 3px, rgba(247,166,0,.9) 4px, rgba(247,166,0,0) 9px), linear-gradient(180deg, rgba(247,166,0,0), rgba(255,241,207,.8)) 8px 0 / 2px 54px no-repeat; opacity: 0; pointer-events: none; }
  .bewegt .lh-tafel.los .ks-liste::after { animation: lh-fall 5s cubic-bezier(.45,0,.4,1) 1.2s infinite; }
}
@keyframes lh-fall { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: 1; } 64% { opacity: 1; } 72%, 100% { transform: translateY(calc(100% + 60px)); opacity: 0; } }

/* Standorte mit Nordkarte */
#standorte { padding-top: clamp(64px, 10vw, 140px); }
.lh-so { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: stretch; }
.lh-nord { position: relative; background: #0b0b0a radial-gradient(circle, #3b3b38 1.1px, transparent 1.7px) 0 0 / 20px 20px; border: 1px solid var(--linie); aspect-ratio: 1 / 1; overflow: hidden; }
.lh-nord svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lh-nord text { font: 700 26px "Jost", system-ui, sans-serif; fill: #edece8; }
.lh-spur { stroke: #f7a600; stroke-width: 3; opacity: .75; }
.lh-komet { stroke: #fff1cf; stroke-width: 5; stroke-dasharray: 10 90; stroke-dashoffset: 10; opacity: 0; filter: drop-shadow(0 0 6px #f7a600); }
.lh-ort-ring { transform-box: fill-box; transform-origin: center; }
.bewegt .lh-nord:not(.los) .lh-spur { stroke-dasharray: 100 100; stroke-dashoffset: 100; }
.bewegt .lh-nord.los .lh-spur { stroke-dasharray: 100 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.5,0,.3,1); }
.bewegt .lh-nord.los .lh-spur:nth-child(2) { transition-delay: .9s; }
.bewegt .lh-nord.los .lh-spur:nth-child(3) { transition-delay: 1.8s; }
.bewegt .lh-nord:not(.los) .lh-ort { opacity: 0; }
.bewegt .lh-nord.los .lh-ort { transition: opacity .6s ease; }
.bewegt .lh-nord.los .lh-ort:nth-child(2) { transition-delay: .9s; }
.bewegt .lh-nord.los .lh-ort:nth-child(3) { transition-delay: 1.8s; }
.bewegt .lh-nord.los .lh-komet { animation: lh-nord-komet 5.4s linear 3.4s infinite; }
.bewegt .lh-nord.los .lh-komet:nth-of-type(5) { animation-delay: 5.2s; }
.bewegt .lh-nord.los .lh-komet:nth-of-type(6) { animation-delay: 7s; }
.bewegt .lh-nord.los .lh-ort-ring { animation: lh-ring 3s ease-out 2.6s infinite; }
@keyframes lh-nord-komet { 0% { stroke-dashoffset: 10; opacity: 0; } 4% { opacity: 1; } 30% { stroke-dashoffset: -90; opacity: 1; } 33%, 100% { stroke-dashoffset: -90; opacity: 0; } }
@keyframes lh-ring { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

.lh-so .so-raster { border-top: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lh-so .so-karte { position: relative; padding: 26px 26px 24px; background: var(--grund-2); border: 1px solid var(--linie); border-left: 3px solid var(--orange); }
.lh-so .so-name { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: 12px; }
.lh-so .so-adresse { font-size: 18px; margin-bottom: 6px; }
.lh-so .so-kontakt { margin-bottom: 6px; }
.lh-so .so-zeiten { margin-bottom: 8px; font-size: 17px; }
@media (min-width: 700px) and (max-width: 959px) {
  .lh-so .so-karte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: 24px; }
  .lh-so .so-karte > * { grid-column: 2; }
  .lh-so .so-karte > .so-name { grid-column: 1; grid-row: 1 / span 4; }
  .lh-nord { aspect-ratio: 16 / 10; }
}
@media (min-width: 960px) and (max-width: 1279px) {
  .lh-nord { aspect-ratio: 16 / 8; }
  .lh-so .so-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .lh-so { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px; }
  .lh-nord { aspect-ratio: auto; min-height: 560px; }
  .lh-so .so-raster { grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .lh-so .so-karte { align-content: center; padding: 22px 26px; }
  .lh-so .so-karte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 20px; }
  .lh-so .so-karte > * { grid-column: 2; }
  .lh-so .so-karte > .so-name { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
}

/* Zweispalter mit gleich hohen Spalten */
.lh-zweispalt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.lh-spalte { display: flex; flex-direction: column; }
.lh-spalte > p { color: var(--text-2); max-width: 34em; }
.lh-spalte .link-pfeil { margin-top: auto; align-self: flex-start; }
.lh-spalte > p + .link-pfeil { margin-top: auto; }
.lh-kachelbild { aspect-ratio: 16 / 10; overflow: hidden; margin: 0 0 28px; }
.lh-kachelbild img { width: 100%; height: 100%; object-fit: cover; }
.lh-fb-liste { margin-top: 12px; border-top: 1px solid var(--linie-hell); }
.lh-fb-liste li { position: relative; padding: 15px 0 15px 30px; border-bottom: 1px solid var(--linie); font-size: 20px; font-weight: 500; }
.lh-fb-liste li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 2px; background: var(--orange); }
@media (min-width: 900px) {
  .lh-zweispalt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: stretch; }
}

/* FAQ */
.lh-block .faq-eintrag summary::after { box-shadow: 2px 2px 8px -2px rgba(247,166,0,.6); }

/* Anmeldung */
.lh-anmelden { background: #151514; }
.lh-anmelden .an-bild { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%); }
@media (min-width: 960px) {
  .lh-anmelden .an-bild { clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); position: relative; }
  .lh-anmelden .an-bild img { position: absolute; inset: 0; }
}
@media (max-width: 959px) { .lh-anmelden .an-bild { clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); } }

/* Fuss: Platz fuer die Umschaltleiste */
.fuss { padding-bottom: 150px; }

/* ---------------- Kopfleiste mit Untermenues (Startseite und Unterseiten) ---------------- */
.lh-kopfleiste { border-bottom-color: #2c2b28; }
.lh-kopfleiste::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, rgba(247,166,0,0) 0%, rgba(247,166,0,.18) 40%, rgba(247,166,0,.75) 86%, #fff1cf 100%); pointer-events: none; }
.lh-nav-liste > li { position: relative; }
.lh-gruppe-kopf { display: flex; align-items: center; }
.lh-auf { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; min-height: 44px; margin-left: -8px; padding: 0; background: none; border: 0; color: var(--text-2); cursor: pointer; }
.lh-auf::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.lh-auf:hover, .lh-gruppe.offen .lh-auf { color: var(--orange); }
.lh-gruppe.offen .lh-auf::before { transform: translateY(2px) rotate(-135deg); }
.lh-unter ul { display: grid; }
.lh-unter a { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; text-decoration: none; }
.lh-unter a span { display: block; color: var(--text-2); font-size: 15px; font-weight: 400; line-height: 1.3; margin-top: 2px; }
.lh-unter a[aria-current="page"] { color: var(--orange); }
.lh-unter-alle { color: var(--orange) !important; }
.lh-unter-alle::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.lh-unter-alle, .lh-unter a.lh-unter-alle { flex-direction: row !important; justify-content: flex-start !important; align-items: center; }

@media (min-width: 960px) {
  .lh-nav .lh-gruppe-kopf > a { padding-right: 10px; }
  .lh-unter {
    position: absolute; top: calc(100% + 14px); left: 0; z-index: 60; width: 380px; padding: 10px 0;
    background: rgba(16,16,15,.97); border: 1px solid #34332f; box-shadow: 0 34px 70px -24px rgba(0,0,0,.95), 0 0 40px -12px rgba(247,166,0,.16);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s linear .22s;
  }
  @supports (backdrop-filter: blur(8px)) { .lh-unter { background: rgba(16,16,15,.9); backdrop-filter: blur(14px); } }
  .lh-unter::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .lh-unter::after { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: linear-gradient(90deg, rgba(247,166,0,0), var(--orange) 55%, var(--licht)); box-shadow: 0 0 12px rgba(247,166,0,.6); transform-origin: 0 50%; transform: scaleX(.2); transition: transform .5s cubic-bezier(.5,0,.2,1); }
  .lh-gruppe.offen .lh-unter, .lh-kopfleiste:not(.lh-js) .lh-gruppe:hover .lh-unter, .lh-kopfleiste:not(.lh-js) .lh-gruppe:focus-within .lh-unter { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .lh-gruppe.offen .lh-unter::after, .lh-kopfleiste:not(.lh-js) .lh-gruppe:hover .lh-unter::after { transform: none; }
  .lh-unter-breit { width: 540px; }
  .lh-unter-breit ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lh-unter-ganz { grid-column: 1 / -1; }
  .kopf-nav .lh-unter a { position: relative; min-height: 48px; padding: 9px 22px 9px 24px; color: var(--text); font-size: 17px; font-weight: 600; line-height: 1.25; }
  .kopf-nav .lh-unter-breit a { font-weight: 500; }
  .kopf-nav .lh-unter a::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--orange); box-shadow: 0 0 10px rgba(247,166,0,.9); opacity: 0; transform: scaleY(.3); transition: opacity .15s, transform .2s; }
  .kopf-nav .lh-unter a:hover, .kopf-nav .lh-unter a:focus-visible { background: linear-gradient(90deg, rgba(247,166,0,.1), rgba(247,166,0,0) 70%); }
  .kopf-nav .lh-unter a:hover::before, .kopf-nav .lh-unter a:focus-visible::before, .kopf-nav .lh-unter a[aria-current="page"]::before { opacity: 1; transform: none; }
  .kopf-nav .lh-unter .lh-unter-alle { min-height: 44px; margin-bottom: 4px; font-size: 16px; }
  .lh-unter-ganz, .lh-unter li:first-child { border-bottom: 1px solid #2c2b28; margin-bottom: 4px; }
}
@media (min-width: 960px) and (max-width: 1180px) {
  .lh-nav .lh-gruppe-kopf > a { padding-right: 8px; }
  .lh-auf { margin-left: -6px; width: 22px; }
}

@media (max-width: 959px) {
  .lh-nav { padding-bottom: 150px; border-bottom: 0; box-shadow: 0 30px 40px -20px rgba(0,0,0,.8); }
  .lh-nav::before { content: ""; position: sticky; top: -8px; display: block; height: 2px; margin: -8px calc(-1 * var(--rand)) 6px; background: linear-gradient(90deg, rgba(247,166,0,0), var(--orange) 60%, var(--licht)); box-shadow: 0 0 12px rgba(247,166,0,.5); }
  .lh-gruppe-kopf > a { flex: 1 1 auto; }
  .lh-auf { width: 56px; min-height: 56px; margin: 0 -12px 0 0; color: var(--text); }
  .lh-auf::before { width: 10px; height: 10px; }
  .lh-unter { display: none; padding: 0 0 12px 18px; border-left: 2px solid rgba(247,166,0,.5); margin: 0 0 14px 2px; }
  .lh-gruppe.offen .lh-unter { display: block; }
  .kopf-nav .lh-unter li { border-bottom: 0; }
  .kopf-nav .lh-unter a { min-height: 48px; padding: 8px 0; font-size: 18px; font-weight: 500; color: var(--text); }
  .kopf-nav .lh-unter a span { font-size: 15px; }
  .kopf-nav .lh-unter .lh-unter-alle { font-weight: 600; }
}

/* ---------------- Fuss mit vier Spalten ---------------- */
.lh-fuss { position: relative; }
.lh-fuss::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, #fff1cf 0%, var(--orange) 14%, rgba(247,166,0,.2) 60%, rgba(247,166,0,0) 100%); }
@media (min-width: 760px) { .lh-fuss-oben { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 759px) { .lh-fuss-oben { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .lh-fuss-oben .fuss-orte { grid-column: auto; } }
.lh-fuss-tel a { font-weight: 600; }
.lh-fuss .fuss-orte p { margin-top: 4px; font-size: 16px; line-height: 1.45; }
.lh-fuss a[aria-current="page"] { color: var(--orange); }

/* ---------------- Verweise der Startseite auf die Unterseiten ---------------- */
.lh-wb-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.wb-name a { color: inherit; text-decoration: none; }
.wb-name a:hover { color: var(--orange); }
.lh-wb-weitere li { display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s, transform .25s cubic-bezier(.2,.7,.2,1); }
.lh-wb-weitere h3 a { color: inherit; text-decoration: none; }
.lh-wb-weitere h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lh-wb-weitere h3 a:focus-visible { outline: none; }
.lh-wb-weitere li:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.lh-wb-weitere p:last-of-type { color: var(--text-2); margin: 0; }
.lh-wb-mehr { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 20px; color: var(--orange); font-weight: 600; }
.lh-wb-mehr::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s; }
.lh-wb-weitere li:hover { border-color: rgba(247,166,0,.5); box-shadow: 0 0 0 1px rgba(247,166,0,.18), 0 30px 60px -30px rgba(247,166,0,.4); transform: translateY(-4px); }
.lh-wb-weitere li:hover h3 { color: var(--orange); }
.lh-wb-weitere li:hover .lh-wb-mehr::after { transform: translateX(4px) rotate(45deg); }
.lh-alle { margin-top: 8px; }
.lh-so-links { display: flex; flex-wrap: wrap; gap: 4px 36px; margin-top: 28px; }
.lh-fb-liste { margin-bottom: 28px; }
.lh-fb-liste li { padding: 0; }
.lh-fb-liste a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 4px 10px 30px; margin-left: -30px; color: var(--text); text-decoration: none; }
.lh-fb-liste li::before { pointer-events: none; }
.lh-fb-liste a::after { content: ""; flex: none; width: 8px; height: 8px; border: solid var(--orange); border-width: 2px 2px 0 0; transform: rotate(45deg); opacity: .55; transition: transform .2s, opacity .2s; }
.lh-fb-liste a:hover { color: var(--orange); }
.lh-fb-liste a:hover::after { opacity: 1; transform: translateX(4px) rotate(45deg); }
.lh-fb-liste li { padding-left: 30px; }
.lh-spalte .lh-unten { margin-top: auto; }
.lh-links { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.lh-spalte .lh-links .link-pfeil { margin-top: 0; }
.lh-vt-link { align-self: flex-start; margin-top: 22px; }
