/* Entwurf 1: Signal. Dunkler Grund, Orange als einziges Akzentlicht. */
:root {
  --grund: #161615;
  --grund-2: #1f1f1d;
  --grund-3: #2a2a28;
  --linie: #3b3b38;
  --linie-hell: #55554f;
  --text: #edece8;
  --text-2: #c2c1ba;
  --orange: var(--ec-orange, #f7a600);
  --rand: clamp(16px, 4.5vw, 56px);
  --breite: 1440px;
  --kopf-h: 72px;
  color-scheme: dark;
}

html { background: var(--grund); scroll-padding-top: calc(var(--kopf-h) + 12px); }
body { background: var(--grund); color: var(--text); font-size: 18px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.akzent { color: var(--orange); }

.sprung { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--orange); color: #161615; padding: 12px 16px; font-weight: 600; text-decoration: none; }
.sprung:focus { top: 12px; }

.innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

/* Knoepfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px;
  background: var(--orange); color: #161615; border: 2px solid var(--orange);
  font: 600 18px/1.2 "Jost", system-ui, sans-serif; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.knopf::after { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); flex: none; }
.knopf:hover { background: #ffb81f; border-color: #ffb81f; }
.knopf-linie { background: transparent; color: var(--text); border-color: var(--linie-hell); }
.knopf-linie:hover { background: transparent; border-color: var(--text); }
.knopf-klein { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.knopf-klein::after { display: none; }
.knopf-gross { min-height: 64px; font-size: 20px; width: 100%; }

.link-pfeil { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--orange); }
.link-pfeil::after { content: ""; width: 8px; height: 8px; border: solid var(--orange); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.link-pfeil:hover { color: var(--orange); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(22,22,21,.94); border-bottom: 1px solid var(--linie); }
@supports (backdrop-filter: blur(8px)) { .kopf { background: rgba(22,22,21,.82); backdrop-filter: blur(10px); } }
.kopf-innen { max-width: 1440px; margin: 0 auto; padding: 0 var(--rand); height: var(--kopf-h); display: flex; align-items: center; gap: 28px; }
.kopf-logo { flex: none; display: block; }
.kopf-logo img { height: 56px; width: auto; }
.kopf-nav { margin-left: auto; }
.kopf-nav ul { display: flex; gap: 4px; }
.kopf-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text-2); text-decoration: none; font-size: 17px; font-weight: 500; }
.kopf-nav a:hover { color: var(--text); }
.kopf-tel { color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.kopf-tel:hover { color: var(--orange); }
.kopf-nav .kopf-tel-mobil { display: none; }
.nw { white-space: nowrap; }
.menue-knopf { display: none; }

@media (max-width: 1180px) {
  .kopf-nav a { padding: 0 8px; font-size: 16px; }
  .kopf-innen > .kopf-tel { display: none; }
}
@media (max-width: 959px) {
  :root { --kopf-h: 64px; }
  .kopf-logo img { height: 42px; }
  .kopf-knopf { 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);
    background: var(--grund); border-bottom: 1px solid var(--linie); padding: 8px var(--rand) 24px;
    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(--orange); }
}
@media (max-width: 400px) {
  .kopf-innen { gap: 12px; }
  .kopf-logo img { height: 38px; }
  .kopf-knopf { padding: 8px 14px; }
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--grund); border-bottom: 1px solid var(--linie); }
.hero-text { padding: clamp(32px, 7vw, 96px) var(--rand) clamp(36px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.hero-titel { font-size: clamp(2.4rem, 15.8vw, 8.6rem); font-weight: 800; line-height: .9; letter-spacing: -0.03em; margin-bottom: 28px; }
.hero-vor { display: block; font-size: .44em; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; margin-bottom: .12em; }
.hero-titel .akzent { display: block; white-space: nowrap; }
.hero-unter { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.45; color: var(--text); max-width: 34em; margin-bottom: 32px; }
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-termin { display: flex; gap: 14px; align-items: baseline; color: var(--text-2); font-size: 17px; max-width: 36em; margin: 0; padding-top: 22px; border-top: 1px solid var(--linie); }
.signal-punkt { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(247,166,0,.18); transform: translateY(1px); }
.hero-bild { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 78svh; }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 30%; }

@media (max-width: 599px) {
  .hero-knoepfe .knopf { width: 100%; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: min(calc(100svh - var(--kopf-h)), 880px); }
  .hero-text { padding-left: max(var(--rand), calc((100vw - 1440px) / 2 + var(--rand))); padding-right: clamp(32px, 4vw, 72px); }
  .hero-titel { font-size: clamp(4.4rem, 8vw, 8rem); }
  .hero-bild { aspect-ratio: auto; max-height: none; }
}

/* Kennzahlen */
.zahlen { background: var(--grund-2); border-bottom: 1px solid var(--linie); }
.zahlen-raster { margin: 0 auto; max-width: 1440px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zahl { padding: 28px var(--rand) 30px; border-right: 1px solid var(--linie); border-top: 1px solid var(--linie); }
.zahl:nth-child(-n+2) { border-top: 0; }
.zahl:nth-child(2n) { border-right: 0; }
.zahl dt { line-height: 1; margin-bottom: 12px; white-space: nowrap; }
.zahl-wert { font-size: clamp(2.6rem, 11vw, 6rem); font-weight: 700; color: var(--orange); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.zahl-einheit { font-size: clamp(1.1rem, 1rem + .6vw, 1.6rem); font-weight: 600; color: var(--text); }
.zahl dd { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.4; max-width: 18em; hyphens: auto; -webkit-hyphens: auto; }
@media (min-width: 960px) {
  .zahlen-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zahl { padding: 44px clamp(20px, 2.6vw, 44px) 46px; border-top: 0; }
  .zahl:nth-child(2n) { border-right: 1px solid var(--linie); }
  .zahl:last-child { border-right: 0; }
  .zahl:first-child { padding-left: var(--rand); }
  .zahl-wert { font-size: clamp(3.6rem, 5.6vw, 6.2rem); }
}
@media (max-width: 380px) { .zahl { padding-left: 16px; padding-right: 12px; } }

/* Bloecke */
.block { padding: clamp(64px, 10vw, 140px) 0; border-bottom: 1px solid var(--linie); }
.block-dunkler { background: #121211; }
.block-kopf { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 980px; }
.titel-gross { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.2rem); font-weight: 700; line-height: .98; letter-spacing: -0.02em; }
.titel-mittel { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); line-height: 1.05; margin-bottom: 16px; }
.block-lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--text-2); max-width: 36em; margin: 0; }

/* Weiterbildungen */
.wb-haupt { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--grund-2); border: 1px solid var(--linie); border-top: 4px solid var(--orange); }
.wb-haupt-bild { aspect-ratio: 16 / 11; overflow: hidden; }
.wb-haupt-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.wb-haupt-text { padding: clamp(24px, 4vw, 56px); }
.wb-marke { display: inline-block; color: var(--orange); font-weight: 600; font-size: 17px; margin-bottom: 12px; }
.wb-name { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 1; margin-bottom: 10px; letter-spacing: -0.02em; }
.wb-zusatz { color: var(--text-2); font-size: 19px; margin-bottom: 22px; }
.wb-fakten { display: grid; grid-template-columns: minmax(0, 1fr); margin: 28px 0; border-top: 1px solid var(--linie); }
.wb-fakten div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.wb-fakten dt { color: var(--text-2); }
.wb-fakten dd { margin: 0; font-weight: 600; }
.wb-unter { font-size: 19px; margin-bottom: 12px; }
.wb-abschluesse { display: grid; gap: 8px; margin-bottom: 32px; }
.wb-abschluesse li { position: relative; padding-left: 26px; }
.wb-abschluesse li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--orange); }
@media (min-width: 960px) {
  .wb-haupt { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .wb-haupt-bild { aspect-ratio: auto; min-height: 100%; }
  .wb-fakten div { grid-template-columns: 11em minmax(0, 1fr); }
}
@media (max-width: 480px) { .wb-fakten div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.wb-liste { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--linie-hell); }
.wb-zeile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 48px; padding: 28px 0; border-bottom: 1px solid var(--linie); }
.wb-zeile-name { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.1; }
.wb-zeile-zusatz { color: var(--orange); font-weight: 500; margin: 0; }
.wb-zeile-text { color: var(--text-2); margin: 6px 0 0; max-width: 40em; }
@media (min-width: 960px) {
  .wb-zeile { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: 36px 0; }
  .wb-zeile-name { grid-column: 1; grid-row: 1; }
  .wb-zeile-zusatz { grid-column: 1; grid-row: 2; }
  .wb-zeile-text { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }
}

/* Bildband */
.band { position: relative; min-height: clamp(420px, 62vw, 760px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--linie); }
.band-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,13,.15) 0%, rgba(14,14,13,.55) 45%, rgba(14,14,13,.92) 100%), linear-gradient(0deg, rgba(14,14,13,.6), rgba(14,14,13,0) 50%); }
.band-text { position: relative; z-index: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 48px var(--rand); display: flex; justify-content: flex-end; }
.band-text p { margin: 0; font-size: clamp(2.2rem, 1rem + 5vw, 5.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; text-align: right; }
@media (max-width: 699px) {
  .band { min-height: 0; display: block; }
  .band-bild { position: static; aspect-ratio: 4 / 3; height: auto; }
  .band::after { display: none; }
  .band-text { justify-content: flex-start; padding: 32px var(--rand) 40px; }
  .band-text p { text-align: left; }
}

/* Vorteile */
.vt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.vt-seite .block-lead { margin-top: 18px; }
.vt-bild { margin-top: 36px; aspect-ratio: 4 / 5; overflow: hidden; }
.vt-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.vt-liste { border-top: 1px solid var(--linie-hell); }
.vt-liste li { padding: 26px 0 24px; border-bottom: 1px solid var(--linie); }
.vt-liste h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.1; margin-bottom: 10px; }
.vt-liste li:first-child h3, .vt-liste li:nth-child(2) h3 { color: var(--orange); }
.vt-liste p { color: var(--text-2); margin: 0; max-width: 34em; }
@media (min-width: 960px) {
  .vt { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 112px); align-items: start; }
  .vt-seite { position: sticky; top: calc(var(--kopf-h) + 32px); }
  .vt-bild { aspect-ratio: 1 / 1; }
  .vt-liste li { padding: 34px 0 32px; }
}

/* Ablauf als Strecke */
.ab-strecke { counter-reset: schritt; display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
.ab-strecke li { counter-increment: schritt; position: relative; padding: 0 0 36px 64px; }
.ab-strecke li::before { content: counter(schritt); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--orange); border-radius: 50%; color: var(--orange); font-weight: 700; font-size: 20px; background: #121211; z-index: 1; }
.ab-strecke li::after { content: ""; position: absolute; left: 21px; top: 40px; bottom: 0; width: 2px; background: var(--linie-hell); }
.ab-strecke li:last-child::after { display: none; }
.ab-strecke li:last-child::before { background: var(--orange); color: #161615; }
.ab-strecke h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); line-height: 1.1; margin-bottom: 10px; }
.ab-strecke p { color: var(--text-2); margin: 0; }
@media (min-width: 900px) {
  .ab-strecke { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
  .ab-strecke li { padding: 72px 0 0; }
  .ab-strecke li::before { top: 0; width: 52px; height: 52px; font-size: 22px; }
  .ab-strecke li::after { left: 52px; right: -40px; top: 25px; bottom: auto; width: auto; height: 2px; }
}

/* Kursstarts als Abfahrtstafel */
.ks-kopf { max-width: none; grid-template-columns: minmax(0, 1fr); align-items: end; }
.ks-stand { margin: 0; color: var(--text-2); font-size: 17px; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .ks-kopf { grid-template-columns: minmax(0, 1fr) auto; } }
.ks-tafel { background: var(--grund-2); border: 1px solid var(--linie); border-top: 4px solid var(--orange); }
.ks-tafel-kopf { display: none; }
.ks-liste { display: block; }
.ks-zeile { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 18px 16px; border-bottom: 1px solid var(--linie); }
.ks-zeile:last-child { border-bottom: 0; }
.ks-datum { grid-row: 1 / span 2; display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 6px; line-height: 1; font-variant-numeric: tabular-nums; }
.ks-tag { grid-row: 1 / span 2; font-size: 44px; font-weight: 700; color: var(--orange); letter-spacing: -0.02em; }
.ks-monat { font-weight: 600; font-size: 17px; align-self: end; }
.ks-jahr { font-size: 15px; color: var(--text-2); align-self: start; margin-top: 4px; }
.ks-ort { font-size: 22px; font-weight: 600; line-height: 1.15; }
.ks-kurse { color: var(--text-2); font-size: 17px; line-height: 1.35; }
.ks-zeile:first-child { background: rgba(247,166,0,.07); }
@media (min-width: 760px) {
  .ks-tafel-kopf { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; padding: 14px 32px; border-bottom: 1px solid var(--linie-hell); color: var(--text-2); font-size: 15px; font-weight: 500; }
  .ks-zeile { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; padding: 20px 32px; }
  .ks-datum { grid-row: auto; }
  .ks-ort { font-size: 26px; }
  .ks-kurse { font-size: 18px; }
}
.ks-hinweis { margin: 24px 0 0; color: var(--text-2); }
.ks-hinweis a { color: var(--text); font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 2px; display: inline-block; min-height: 44px; line-height: 44px; }

/* Standorte */
#standorte { padding-top: 0; }
.so-bild { aspect-ratio: 16 / 6; overflow: hidden; margin-bottom: clamp(48px, 7vw, 96px); }
.so-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 74%; filter: brightness(.88) saturate(.9); }
@media (max-width: 699px) { .so-bild { aspect-ratio: 4 / 3; } }
.so-raster { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--linie-hell); }
.so-karte { padding: 30px 0 28px; border-bottom: 1px solid var(--linie); }
.so-name { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1; margin-bottom: 18px; }
.so-adresse { font-size: 19px; margin-bottom: 14px; }
.so-kontakt { margin-bottom: 14px; }
.so-kontakt a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--linie-hell); overflow-wrap: anywhere; }
.so-kontakt a:hover { color: var(--orange); border-color: var(--orange); }
.so-zeiten { color: var(--text-2); margin-bottom: 14px; }
.so-start { margin: 0; color: var(--orange); font-weight: 600; }
@media (min-width: 900px) {
  .so-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--linie); }
  .so-karte { padding: 36px clamp(20px, 3vw, 44px) 36px; border-bottom: 0; border-left: 1px solid var(--linie); }
  .so-karte:first-child { border-left: 0; padding-left: 0; }
}

/* Fortbildungen und Unternehmen */
.fb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
.fb-spalte > p { color: var(--text-2); max-width: 34em; }
.fb-liste { margin-top: 28px; border-top: 1px solid var(--linie-hell); }
.fb-liste li { padding: 15px 0; border-bottom: 1px solid var(--linie); font-size: 20px; font-weight: 500; }
.fb-bild { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 32px; }
.fb-bild img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .fb { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); } }

/* Raeume und Karriere */
.zwei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
.kachel-bild figure { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 28px; }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; }
.kachel-bild p { color: var(--text-2); max-width: 32em; }
@media (min-width: 960px) { .zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); } }

/* FAQ */
.faq-rahmen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 960px) { .faq-rahmen { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; } }
.faq { border-top: 1px solid var(--linie-hell); }
.faq-eintrag { border-bottom: 1px solid var(--linie); }
.faq-eintrag summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; min-height: 44px; font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); font-weight: 600; line-height: 1.25; }
.faq-eintrag summary::-webkit-details-marker { display: none; }
.faq-eintrag summary::after { content: ""; flex: none; width: 14px; height: 14px; border: solid var(--orange); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq-eintrag[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-eintrag summary:hover { color: var(--orange); }
.faq-eintrag p { color: var(--text-2); margin: 0; padding: 0 40px 28px 0; max-width: 40em; }

/* Anmeldung */
.anmelden { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--grund-2); border-bottom: 1px solid var(--linie); }
.an-bild { aspect-ratio: 4 / 3; overflow: hidden; }
.an-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.an-inhalt { padding: clamp(40px, 7vw, 112px) var(--rand); max-width: 860px; }
.an-titel { font-size: clamp(2.3rem, 1.1rem + 4vw, 4.4rem); line-height: .98; letter-spacing: -0.02em; margin-bottom: 22px; }
.an-titel .akzent { display: block; white-space: nowrap; }
.an-lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--text-2); max-width: 32em; margin-bottom: 36px; }
@media (min-width: 960px) {
  .anmelden { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .an-bild { aspect-ratio: auto; }
  .an-inhalt { padding-left: clamp(40px, 6vw, 104px); }
}

.formular { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .formular { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .feld-breit { grid-column: 1 / -1; } }
.feld { display: grid; gap: 8px; }
.feld label { font-weight: 600; font-size: 17px; }
.feld input, .feld select {
  width: 100%; min-height: 58px; padding: 12px 16px;
  font: 400 18px/1.3 "Jost", system-ui, sans-serif; color: var(--text);
  background: var(--grund); border: 1px solid var(--linie-hell); border-radius: 0;
  appearance: none; -webkit-appearance: none;
}
.feld select { background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.feld input:focus, .feld select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.feld input[aria-invalid="true"], .feld select[aria-invalid="true"] { border-color: #ff8a65; }
.formular-hinweis { color: var(--text-2); font-size: 16px; margin: 0; }
.formular-hinweis a { color: var(--text); }
.formular-danke { margin: 0; padding: 18px 20px; border-left: 4px solid var(--orange); background: var(--grund); font-size: 19px; }
.formular-danke strong { color: var(--orange); }
.an-tel { margin: 28px 0 0; color: var(--text-2); }
.an-tel a { color: var(--text); font-weight: 700; font-size: 22px; text-decoration: none; display: inline-block; min-height: 44px; line-height: 44px; border-bottom: 2px solid var(--orange); }

/* Fuss */
.fuss { background: #0f0f0e; padding: clamp(56px, 7vw, 96px) 0 112px; color: var(--text-2); font-size: 17px; }
.fuss-oben { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--linie); }
@media (min-width: 760px) { .fuss-oben { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.fuss-marke img { width: 200px; height: auto; margin-bottom: 20px; }
.fuss-zert { font-size: 16px; }
.fuss h2 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: 0; }
.fuss a { color: var(--text); text-decoration: none; display: inline-block; min-height: 44px; line-height: 44px; }
.fuss a:hover { color: var(--orange); }
.fuss-orte ul, .fuss-nav ul { margin-bottom: 8px; }
.fuss-orte p { line-height: 1.5; }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-top: 20px; }
.fuss-unten p { margin: 0; font-size: 15px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 0 24px; }

/* Feinschliff mobil */
.ks-kopf > div { display: grid; gap: 18px; }
@media (max-width: 759px) {
  .ks-zeile { grid-template-columns: 78px minmax(0, 1fr); gap: 2px 14px; padding: 18px 14px; }
  .ks-tag { font-size: 38px; }
  .ks-monat { font-size: 16px; }
  .knopf { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 959px) {
  .an-bild { order: 2; aspect-ratio: 1 / 1; }
  .an-bild img { object-position: 50% 30%; }
}
@media (max-width: 759px) {
  .fuss-oben { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; }
  .fuss-marke { grid-column: 1 / -1; }
}
.faq-eintrag summary::after { margin-right: 6px; }
@media (max-width: 380px) { .zahl dt { white-space: normal; } .zahl-einheit { display: block; margin-top: 6px; } }

/* ---------------------------------------------------------------
   Animationstinger. Grundzustand ist immer der Endzustand: ohne JS
   und bei prefers-reduced-motion steht alles fertig da. Die Klasse
   .bewegt setzt ein kleines Skript im <head>, .los setzt skript.js,
   sobald das Element sichtbar ist. Animiert wird nur transform und
   opacity.
   --------------------------------------------------------------- */

/* Karte "Dein Weg in den Fuehrerstand" im Hero */
.hero-medien { position: relative; display: grid; }
.hero-medien .hero-bild { grid-area: 1 / 1; }
.weg-karte {
  position: relative; z-index: 2; margin: -88px 16px 0; padding: 20px 20px 18px;
  background: rgba(18,18,17,.95); border: 1px solid var(--linie); border-top: 3px solid var(--orange);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.7);
}
@supports (backdrop-filter: blur(8px)) { .weg-karte { background: rgba(18,18,17,.86); backdrop-filter: blur(12px); } }
.weg-titel { margin: 0 0 14px; font-size: 18px; font-weight: 700; color: var(--text); }
.weg-strecke { position: relative; }
.weg-halte { position: relative; z-index: 1; }
.weg-halte li { display: flex; align-items: center; gap: 16px; height: 56px; }
.weg-punkt { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #1d1d1b; box-shadow: inset 0 0 0 2px #77776f; }
.weg-an { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #161615; }
.weg-text { display: grid; line-height: 1.2; min-width: 0; }
.weg-text b { font-size: 17px; font-weight: 600; color: var(--text); }
.weg-text span { font-size: 16px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weg-halte li:last-child b { color: var(--orange); }
.weg-gleis, .weg-fortschritt { position: absolute; left: 10px; top: 28px; width: 2px; height: 224px; }
.weg-gleis { background: repeating-linear-gradient(180deg, #55554f 0 6px, transparent 6px 10px); }
.weg-fortschritt { background: var(--orange); transform-origin: 50% 0; }
.weg-zug { position: absolute; z-index: 0; left: 2px; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(247,166,0,.25), 0 0 18px rgba(247,166,0,.75); transform: translateY(224px); }

@media (min-width: 960px) {
  .weg-karte { position: absolute; right: 28px; bottom: 28px; margin: 0; width: min(372px, calc(100% - 56px)); }
}

.bewegt .weg-karte:not(.los) .weg-zug { transform: translateY(0); }
.bewegt .weg-karte:not(.los) .weg-fortschritt { transform: scaleY(0); }
.bewegt .weg-karte:not(.los) .weg-an { opacity: 0; transform: scale(.4); }
.bewegt .weg-karte.los .weg-zug { animation: weg-zug 7s cubic-bezier(.45,0,.25,1) .2s both; }
.bewegt .weg-karte.los .weg-fortschritt { animation: weg-linie 7s cubic-bezier(.45,0,.25,1) .2s both; }
.bewegt .weg-karte.los .weg-an { animation: weg-an .45s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(.45s + var(--n) * 1.4s); }
@keyframes weg-zug {
  0%, 10% { transform: translateY(0); }
  26%, 30% { transform: translateY(56px); }
  46%, 50% { transform: translateY(112px); }
  66%, 70% { transform: translateY(168px); }
  86%, 100% { transform: translateY(224px); }
}
@keyframes weg-linie {
  0%, 10% { transform: scaleY(0); }
  26%, 30% { transform: scaleY(.25); }
  46%, 50% { transform: scaleY(.5); }
  66%, 70% { transform: scaleY(.75); }
  86%, 100% { transform: scaleY(1); }
}
@keyframes weg-an { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* Lichtsignal an der Abfahrtstafel: Halt schaltet auf Fahrt */
.ks-rechts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
@media (min-width: 900px) { .ks-rechts { flex-direction: column; align-items: flex-end; } }
.signal { display: inline-flex; align-items: center; gap: 14px; }
.signal-schirm { display: inline-flex; gap: 8px; padding: 8px 10px; background: #0b0b0a; border: 1px solid var(--linie-hell); border-radius: 24px; }
.signal-lampe { position: relative; width: 28px; height: 28px; border-radius: 50%; background: #2b2b28; box-shadow: inset 0 2px 4px rgba(0,0,0,.6); }
.signal-lampe::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.signal-halt::after { background: #efe9da; box-shadow: 0 0 14px rgba(239,233,218,.55); opacity: 0; }
.signal-fahrt::after { background: var(--orange); box-shadow: 0 0 18px rgba(247,166,0,.8); opacity: 1; }
.signal-schrift { display: grid; font-size: 22px; font-weight: 700; line-height: 1; }
.signal-schrift > span { grid-area: 1 / 1; }
.signal-wort-halt { opacity: 0; color: var(--text); }
.signal-wort-fahrt { color: var(--orange); }
.bewegt .signal:not(.los) .signal-halt::after,
.bewegt .signal:not(.los) .signal-wort-halt { opacity: 1; }
.bewegt .signal:not(.los) .signal-fahrt::after,
.bewegt .signal:not(.los) .signal-wort-fahrt { opacity: 0; }
.bewegt .signal.los .signal-lampe::after,
.bewegt .signal.los .signal-schrift > span { transition: opacity .3s ease .9s; }
.bewegt .signal.los .signal-wort-fahrt { transform: translateX(0); animation: signal-ruck .5s ease .9s both; }
@keyframes signal-ruck { from { transform: translateX(-8px); } to { transform: translateX(0); } }

/* Zeilen bauen sich gestaffelt auf */
.bewegt .staffel:not(.los) > *,
.bewegt .staffel-tafel:not(.los) .ks-zeile { opacity: 0; transform: translateY(22px); }
.bewegt .staffel.los > *,
.bewegt .staffel-tafel.los .ks-zeile { transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }

/* Signalpunkt im Hero blinkt dreimal auf */
.signal-punkt { position: relative; }
.bewegt .signal-punkt::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); opacity: 0; animation: punkt-puls 1.8s ease-out .6s 3; }
@keyframes punkt-puls { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3); } }

.zaehler { display: inline-block; text-align: right; }
@media (min-width: 960px) {
  .hero-bild { position: relative; }
  .hero-bild img { position: absolute; inset: 0; }
}

/* Tablet 600 bis 959: kompakter, weniger Hochformat */
@media (min-width: 600px) and (max-width: 959px) {
  .hero-bild { aspect-ratio: 4 / 3; max-height: none; }
  .hero-bild img { object-position: 12% 26%; }
  .weg-karte { position: absolute; right: var(--rand); bottom: 24px; margin: 0; width: min(390px, calc(100% - 2 * var(--rand))); }
  .hero-bild { aspect-ratio: 5 / 4; }
  .vt-bild { aspect-ratio: 16 / 9; }
  .vt-bild img { object-position: 50% 35%; }
  .an-bild { aspect-ratio: 16 / 9; }
  .so-karte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); column-gap: 32px; }
  .so-karte > * { grid-column: 2; }
  .so-karte > .so-name { grid-column: 1; grid-row: 1 / span 4; }
}
@media (min-width: 700px) and (max-width: 959px) {
  .wb-haupt { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .wb-haupt-bild { aspect-ratio: auto; min-height: 100%; }
  .wb-fakten div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .ks-tafel-kopf, .ks-zeile { grid-template-columns: 150px minmax(0, .8fr) minmax(0, 1.7fr); padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 599px) { .hero-medien { padding-bottom: 36px; } }
@media (max-width: 759px) {
  .ks-zeile { grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; }
  .ks-tag { font-size: 34px; }
  .ks-datum { column-gap: 7px; }
}
.kopf-knopf { white-space: nowrap; }
@media (max-width: 350px) { .kopf-logo img { height: 34px; } .kopf-knopf { padding: 8px 10px; font-size: 15px; } }

/* Links auf die Unterseiten (seit 2026-11-30) */
.wb-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 599px) { .wb-knoepfe .knopf { width: 100%; } }
.wb-zeile-name a { color: inherit; text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .3s ease, color .2s; }
.wb-zeile-name a:hover { color: var(--orange); background-size: 100% 2px; }
.wb-zeile-name a::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 12px; border: solid var(--orange); border-width: 2px 2px 0 0; transform: rotate(45deg) translateY(-3px); }
.fb-liste a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; margin: -8px 0; color: var(--text); text-decoration: none; }
.fb-liste a::after { content: ""; flex: none; width: 8px; height: 8px; border: solid var(--orange); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s; }
.fb-liste a:hover { color: var(--orange); }
.fb-liste a:hover::after { transform: translateX(4px) rotate(45deg); }
.ks-hinweis .ks-alle { margin-left: 18px; }
.so-mehr { margin: 32px 0 0; }
