/* Unterseiten Fahrplan b "Netzplan": die Seiten als Blaetter eines Liniennetz-Hefts.
   Hell, Punktraster wie Kartenpapier, feine Linien, Linienfarben als Leitsystem
   (L Orange, LT gestrichelt, W Anthrazit, R hohl, F Grau). Jede Seite hat ihre Linie:
   Badge an den Brotkrumen, im Kopf zeichnet sie sich mit Halten bis zum Ziel.
   Listen sind Halte auf dieser Linie. Grundlayout /unterseiten-basis.css,
   Kopf und Fuss aus /fahrplan/b/style.css. */
:root {
  --u-grund: #ffffff;
  --u-grund-2: #f3f4f4;
  --u-flaeche: #ffffff;
  --u-flaeche-2: #f5f6f6;
  --u-text: #1c1c1b;
  --u-text-2: #585856;
  --u-akzent-text: #8a5a00;
  --u-auf-akzent: #1c1c1b;
  --u-akzent-weich: rgba(247,166,0,.16);
  --u-linie: #dadad6;
  --u-linie-stark: #8a8a86;
  --u-aufruf-grund: #1c1c1b;
  --u-aufruf-text: #f4f4f1;
  --u-radius: 10px;
  --u-radius-klein: 6px;
  --u-knopf-radius: 999px;
  --u-schatten: 0 1px 0 #dadad6, 0 22px 44px -28px rgba(28,28,27,.4);
  --u-titel-gewicht: 500;
  --u-titel-zeile: 1.04;
  --u-h1: clamp(2.7rem, 1.4rem + 5vw, 5.6rem);
  --u-h2: clamp(2.2rem, 1.3rem + 3vw, 4.2rem);
  --u-breite: 1320px;
  --u-rand: clamp(20px, 4.5vw, 64px);
  --u-kopf-h: 76px;
  --papier: #f5f6f6;
  --raster: radial-gradient(circle at 1px 1px, #d6d8d8 1.2px, transparent 1.3px);
  --halt: #1c1c1b;
}
@media (max-width: 699px) { :root { --u-kopf-h: 64px; } }

/* ---------------------------------------------------------------- Die Linie der Seite */
.u-seite {
  --lf: var(--L);
  --lf-quer: linear-gradient(var(--L), var(--L));
  --lf-hoch: linear-gradient(var(--L), var(--L));
  --lf-h: 8px;
  --lf-badge: "L";
  --lf-badge-grund: var(--L);
  --lf-badge-text: #1c1c1b;
  --lf-badge-rand: transparent;
}
/* Linienbuendel fuer Seiten ohne eigene Linie */
.u-seite[data-seite="weiterbildungen/"], .u-seite[data-seite="kursstarts/"], .u-seite[data-seite="campus/"], .u-seite[data-seite="ueber-uns/"],
.u-seite[data-seite="karriere/"], .u-seite[data-seite="kontakt/"], .u-seite[data-seite="angebot/"], .u-seite[data-seite="info-veranstaltung/"],
.u-seite[data-seite="zertifikat/"], .u-seite[data-seite="impressum/"], .u-seite[data-seite="datenschutz/"], .u-seite[data-seite="agb/"] {
  --lf-quer: linear-gradient(var(--L), var(--L)) 0 0 / 100% 5px no-repeat, linear-gradient(var(--W), var(--W)) 0 8px / 100% 5px no-repeat, linear-gradient(var(--R), var(--R)) 0 16px / 100% 5px no-repeat;
  --lf-h: 21px;
  --lf-badge: "";
}
.u-seite[data-seite="weiterbildungen/lokfuehrer-teilqualifikationen/"] {
  --lf-quer: repeating-linear-gradient(90deg, var(--L) 0 22px, transparent 22px 30px);
  --lf-hoch: repeating-linear-gradient(180deg, var(--L) 0 16px, transparent 16px 22px);
  --lf-badge: "LT"; --lf-badge-grund: #fff; --lf-badge-rand: var(--L);
}
.u-seite[data-seite="weiterbildungen/wagenmeister/"] {
  --lf: var(--W); --lf-quer: linear-gradient(var(--W), var(--W)); --lf-hoch: linear-gradient(var(--W), var(--W));
  --lf-badge: "W"; --lf-badge-grund: var(--W); --lf-badge-text: #fff;
}
.u-seite[data-seite="weiterbildungen/rangierbegleiter/"] {
  --lf: var(--R);
  --lf-quer: linear-gradient(180deg, var(--R) 0 2.5px, #fff 2.5px 5.5px, var(--R) 5.5px);
  --lf-hoch: linear-gradient(90deg, var(--R) 0 2.5px, #fff 2.5px 5.5px, var(--R) 5.5px);
  --lf-badge: "R"; --lf-badge-grund: #fff; --lf-badge-rand: var(--R);
}
.u-seite[data-seite^="fortbildungen/"] {
  --lf: #b4b4af; --lf-quer: linear-gradient(#b4b4af, #b4b4af); --lf-hoch: linear-gradient(#b4b4af, #b4b4af);
  --lf-badge: "F"; --lf-badge-grund: var(--F);
}
.u-seite[data-seite^="standorte/"] {
  --lf-quer: linear-gradient(var(--L), var(--L)) 0 0 / 100% 5px no-repeat, linear-gradient(var(--W), var(--W)) 0 8px / 100% 5px no-repeat, linear-gradient(var(--R), var(--R)) 0 16px / 100% 5px no-repeat;
  --lf-h: 21px;
  --lf-badge: "";
}

/* ---------------------------------------------------------------- Grundlagen */
.u-seite { background: var(--u-grund); }
.u-flaeche { background: var(--u-grund-2); }
.u-knopf { min-height: 56px; padding: 14px 28px; font-size: 18px; }
.u-knopf:hover { transform: none; background: #ffb81c; border-color: #ffb81c; }
.u-knopf-linie { background: transparent; color: var(--u-text); border-color: var(--u-text); }
.u-knopf-linie:hover { background: var(--u-text); border-color: var(--u-text); color: #fff; }
.u-link-pfeil { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--L); text-decoration-thickness: 3px; text-underline-offset: .3em; }
.u-link-pfeil:hover { text-decoration-color: var(--u-text); }
.u-seite .u-akzent { color: inherit; background: linear-gradient(var(--lf), var(--lf)) 0 90% / 100% .14em no-repeat; }
.u-seite[data-seite="weiterbildungen/lokfuehrer-teilqualifikationen/"] .u-akzent { background: repeating-linear-gradient(90deg, var(--L) 0 .6em, transparent .6em .8em) 0 90% / 100% .14em no-repeat; }
.u-seite[data-seite="weiterbildungen/rangierbegleiter/"] .u-akzent { background: linear-gradient(var(--R), var(--R)) 0 90% / 100% .05em no-repeat, linear-gradient(var(--R), var(--R)) 0 calc(90% + .1em) / 100% .05em no-repeat; }
.u-seite .u-h1 { font-weight: 600; letter-spacing: -0.035em; line-height: .98; }

/* ---------------------------------------------------------------- Seitenkopf: Kartenpapier, Badge, Linie mit Halten */
.u-kopf {
  --kl-r: max(var(--u-rand), calc((100% - var(--u-breite)) / 2));
  padding: clamp(24px, 3vw, 44px) 0 clamp(76px, 7vw, 104px);
  background-color: var(--papier); background-image: var(--raster); background-size: 28px 28px;
  border-bottom: 1px solid var(--u-linie);
}
.u-kopf::after {
  left: 0; right: calc(var(--kl-r) + 16px); bottom: calc(34px - var(--lf-h) / 2); height: var(--lf-h);
  background: var(--lf-quer); transform-origin: 0 50%;
}
.u-kopf::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: var(--kl-r); bottom: 18px; height: 32px; pointer-events: none;
  background:
    radial-gradient(circle at 24% 50%, #fff 0 6px, var(--halt) 6.5px 11px, transparent 11.5px),
    radial-gradient(circle at 51% 50%, #fff 0 6px, var(--halt) 6.5px 11px, transparent 11.5px),
    radial-gradient(circle at 78% 50%, #fff 0 6px, var(--halt) 6.5px 11px, transparent 11.5px),
    radial-gradient(circle at calc(100% - 16px) 50%, var(--halt) 0 5px, var(--L) 5.5px 10px, var(--halt) 10.5px 16px, transparent 16.5px);
}
.u-bewegt .u-kopf::after { animation: u-strich 1.6s cubic-bezier(.55,0,.35,1) .25s both; }
.u-bewegt .u-kopf::before { animation: halte-auf 1.6s cubic-bezier(.55,0,.35,1) .25s both; }
@keyframes halte-auf { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.u-kopf-signal { display: none; }

.u-brotkrumen { display: flex; align-items: center; gap: 14px; }
.u-brotkrumen::before {
  content: var(--lf-badge); content: var(--lf-badge) / ""; flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 32px; padding: 0 8px; border-radius: 7px; background: var(--lf-badge-grund); color: var(--lf-badge-text);
  box-shadow: inset 0 0 0 3px var(--lf-badge-rand); font-size: 18px; font-weight: 700; letter-spacing: .02em; line-height: 1;
}
/* Buendel als Badge */
.u-seite[data-seite="weiterbildungen/"] .u-brotkrumen::before, .u-seite[data-seite="kursstarts/"] .u-brotkrumen::before,
.u-seite[data-seite="campus/"] .u-brotkrumen::before, .u-seite[data-seite="ueber-uns/"] .u-brotkrumen::before,
.u-seite[data-seite="karriere/"] .u-brotkrumen::before, .u-seite[data-seite="kontakt/"] .u-brotkrumen::before,
.u-seite[data-seite="angebot/"] .u-brotkrumen::before, .u-seite[data-seite="info-veranstaltung/"] .u-brotkrumen::before,
.u-seite[data-seite="zertifikat/"] .u-brotkrumen::before, .u-seite[data-seite="impressum/"] .u-brotkrumen::before,
.u-seite[data-seite="datenschutz/"] .u-brotkrumen::before, .u-seite[data-seite="agb/"] .u-brotkrumen::before {
  min-width: 40px; padding: 0; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--u-text);
  background: #fff linear-gradient(var(--L), var(--L)) 8px 8px / 24px 4px no-repeat;
  background-image: linear-gradient(var(--L), var(--L)), linear-gradient(var(--W), var(--W)), linear-gradient(var(--R), var(--R));
  background-position: 8px 8px, 8px 14px, 8px 20px; background-size: 24px 4px; background-repeat: no-repeat;
}
/* Standorte: Haltestelle */
.u-seite[data-seite^="standorte/"] .u-brotkrumen::before { min-width: 0; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 7px var(--halt); }
.u-seite[data-seite^="standorte/"]:not([data-seite="standorte/"]) .u-brotkrumen::before { background: var(--L); }

.u-lead { color: var(--u-text-2); }
.u-info { border-top: 2px solid var(--u-text); }
.u-info .u-punkt { width: 14px; height: 14px; box-shadow: none; }
.u-bewegt .u-info .u-punkt::after { display: none; }
.u-bewegt .u-info .u-punkt { animation: atmen 2s ease-out .8s 4; }
.u-kopf-bild { border-radius: var(--u-radius); border: 1px solid var(--u-linie); }
.u-kopf-bild::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 8px; background: var(--lf-quer); }
@media (min-width: 960px) {
  .u-kopf-mit-bild .u-kopf-raster { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .u-kopf-mit-bild .u-kopf-bild { aspect-ratio: auto; min-height: 520px; max-height: 640px; }
  .u-kopf-mit-bild .u-h1 { font-size: clamp(2.8rem, 1rem + 4.2vw, 5rem); }
}
.u-kopf-fakten { margin-top: clamp(36px, 4vw, 56px); }
@media (max-width: 599px) {
  .u-kopf { padding-bottom: 80px; }
  .u-kopf .u-knoepfe { flex-direction: column; }
  .u-brotkrumen { gap: 10px; align-items: flex-start; }
  .u-brotkrumen::before { margin-top: 6px; }
}

/* ---------------------------------------------------------------- Kopfzeilen mit Linienbuendel wie auf der Startseite */
.u-block-kopf, .u-text-raster:not(.u-text-schmal), .u-text-schmal > .u-h2:first-child, .u-ks-kopf { position: relative; border-top: 2px solid var(--u-text); padding-top: 40px; }
.u-block-kopf::before, .u-text-raster:not(.u-text-schmal)::before, .u-text-schmal > .u-h2:first-child::before, .u-ks-kopf::before {
  content: ""; position: absolute; left: 0; top: -2px; width: 120px; height: 21px;
  background: linear-gradient(var(--L), var(--L)) 0 0 / 100% 5px no-repeat, linear-gradient(var(--W), var(--W)) 0 8px / 100% 5px no-repeat, linear-gradient(var(--R), var(--R)) 0 16px / 100% 5px no-repeat;
  transform-origin: 0 50%;
}
.u-bewegt .u-ks-kopf:not(.u-los)::before, .u-bewegt [data-u-anim]:not(.u-los) .u-block-kopf::before { transform: scaleX(0); }
.u-bewegt .u-ks-kopf.u-los::before { transition: transform .9s cubic-bezier(.55,0,.35,1) .1s; }
.u-block-kopf { max-width: none; margin-bottom: clamp(36px, 4.4vw, 60px); }
.u-ks-kopf .u-block-kopf, .u-faq-raster .u-block-kopf { border-top: 0; padding-top: 0; }
.u-ks-kopf .u-block-kopf::before, .u-faq-raster .u-block-kopf::before { display: none; }
.u-faq-raster > .u-block-kopf { border-top: 2px solid var(--u-text); padding-top: 40px; }
.u-faq-raster > .u-block-kopf::before { display: block; }
.u-block-lead { color: var(--u-text-2); font-size: clamp(1.08rem, 1rem + .3vw, 1.2rem); }
@media (min-width: 960px) {
  .u-block-kopf:has(.u-block-lead) { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; }
  .u-block-kopf:has(.u-block-lead) .u-h2 + .u-block-lead { margin-top: 0; }
  .u-faq-raster > .u-block-kopf { display: block; }
}
.u-text-schmal > .u-h2:first-child { margin-bottom: 24px; }
.u-bt-text .u-h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); }
.u-ks-kopf { align-items: flex-end; }

/* ---------------------------------------------------------------- Bild mit Text: Bild als Kasten mit Linienstreifen */
.u-bt-bild { border-radius: var(--u-radius); }
.u-bt-bild::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 8px; background: var(--lf-quer); transform-origin: 0 50%; }
.u-bewegt .u-bt-bild:not(.u-los)::before { transform: scaleX(0); }
.u-bewegt .u-bt-bild.u-los::before { transition: transform 1s cubic-bezier(.55,0,.35,1) .2s; }

/* ---------------------------------------------------------------- Kennzahlen mit feinem Raster */
.u-fakten { gap: 1px; background: var(--u-linie); border: 0; border-top: 2px solid var(--u-text); border-bottom: 1px solid var(--u-linie); border-radius: 0; }
.u-fakt, .u-flaeche .u-fakt { background: var(--u-grund); padding: clamp(20px, 2.4vw, 30px) clamp(16px, 2vw, 28px) clamp(22px, 2.4vw, 30px) 0; }
.u-flaeche .u-fakt { background: var(--u-grund-2); }
.u-kopf .u-fakt { background: var(--papier); }
.u-fakten .u-fakt + .u-fakt { padding-left: clamp(16px, 2vw, 28px); }
.u-fakt-wert { color: var(--u-text); font-weight: 600; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); }
.u-fakt-einheit { font-weight: 500; }
.u-fakt dd { font-size: 17px; }
@media (max-width: 899px) { .u-fakten-4 .u-fakt:nth-child(odd), .u-fakten-2 .u-fakt:nth-child(odd) { padding-left: 0; } .u-fakten-4 .u-fakt:nth-child(even), .u-fakten-2 .u-fakt:nth-child(even) { padding-left: 18px; } }
@media (max-width: 599px) { .u-fakten-3 .u-fakt, .u-fakten-1 .u-fakt { padding-left: 0 !important; } }

/* ---------------------------------------------------------------- Listen als Halte auf der Linie */
.u-haken-zeichen { width: 24px; height: 24px; padding: 0; margin-top: 0; border-radius: 50%; background: #fff; color: transparent; box-shadow: inset 0 0 0 5px var(--halt); position: relative; z-index: 1; }
.u-haken-gross { border-top: 2px solid var(--u-text); }
.u-haken-gross li { position: relative; padding: 16px 0; }
.u-haken-gross li::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 8px; background: var(--lf-hoch); }
.u-haken-gross li:first-child::before { top: 28px; }
.u-haken-gross li:last-child::before { bottom: calc(100% - 28px); }
@media (min-width: 760px) {
  .u-spalten-2 li:nth-child(2)::before { top: 28px; }
  .u-spalten-2 li:nth-last-child(2)::before { bottom: calc(100% - 28px); }
}
.u-haken-gross li:last-child .u-haken-zeichen { background: var(--L); }
.u-bt-text .u-haken li { align-items: flex-start; }
.u-bt-text .u-haken .u-haken-zeichen { width: 20px; height: 20px; box-shadow: inset 0 0 0 4px var(--halt); margin-top: 2px; }
.u-bewegt [data-u-staffel]:not(.u-los) > li .u-haken-zeichen { transform: scale(.3); }
.u-bewegt [data-u-staffel].u-los > li .u-haken-zeichen { transition: transform .45s cubic-bezier(.3,1.5,.5,1); transition-delay: calc(var(--i, 0) * 80ms + .15s); }
.u-steckbrief { border-top: 2px solid var(--u-text); }
.u-steckbrief dt { font-size: 17px; }

/* ---------------------------------------------------------------- Karten wie die Linienkarten */
.u-karten { gap: clamp(16px, 2vw, 28px); }
.u-karte { border-radius: 0; overflow: visible; }
.u-karte::before { content: ""; position: absolute; z-index: 2; left: -1px; right: -1px; top: -1px; height: 8px; background: var(--L); }
.u-karte:nth-child(4n+2)::before { background: var(--W); }
.u-karte:nth-child(4n+3)::before { background: linear-gradient(180deg, var(--R) 0 2.5px, #fff 2.5px 5.5px, var(--R) 5.5px); }
.u-karte:nth-child(4n+4)::before { background: repeating-linear-gradient(90deg, var(--L) 0 22px, transparent 22px 30px); }
.u-karte-bild { margin-top: 0; }
.u-karte-mit-bild .u-karte-bild { border-bottom: 1px solid var(--u-linie); }
.u-karte-inhalt { padding: clamp(26px, 2.6vw, 34px) clamp(22px, 2.4vw, 30px) clamp(22px, 2.4vw, 28px); }
.u-karte-link:hover { transform: none; box-shadow: var(--u-schatten); border-color: var(--u-linie-stark); }
.u-karte-titel { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); font-weight: 600; line-height: 1.15; }
.u-karte-link:hover .u-karte-titel a { text-decoration: underline; text-decoration-color: var(--L); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.u-karte-marke { border-radius: 7px; font-weight: 700; }
.u-karte-info { color: var(--u-text); font-weight: 600; }
.u-karte-info::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--halt); vertical-align: -1px; }
.u-karte-mehr { text-decoration: underline; text-decoration-color: var(--L); text-decoration-thickness: 3px; text-underline-offset: .3em; }
/* Uebersicht Weiterbildungen: Linien L, LT, W, R mit Badge wie auf der Startseite */
.u-seite[data-seite="weiterbildungen/"] .u-b-karten-block .u-karte:nth-child(1)::before { background: var(--L); }
.u-seite[data-seite="weiterbildungen/"] .u-b-karten-block .u-karte:nth-child(2)::before { background: repeating-linear-gradient(90deg, var(--L) 0 22px, transparent 22px 30px); }
.u-seite[data-seite="weiterbildungen/"] .u-b-karten-block .u-karte:nth-child(3)::before { background: var(--W); }
.u-seite[data-seite="weiterbildungen/"] .u-b-karten-block .u-karte:nth-child(4)::before { background: linear-gradient(180deg, var(--R) 0 2.5px, #fff 2.5px 5.5px, var(--R) 5.5px); }
.u-seite[data-seite="weiterbildungen/"] .u-b-karten-block .u-karte-titel { display: flex; align-items: center; gap: 14px; }
.u-seite[data-seite="weiterbildungen/"] .u-b-karten-block .u-karte-titel::before { content: "L"; content: "L" / ""; flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 34px; padding: 0 8px; border-radius: 7px; background: var(--L); color: #1c1c1b; font-size: 18px; font-weight: 700; }
.u-seite[data-seite="weiterbildungen/"] .u-b-karten-block .u-karte:nth-child(2) .u-karte-titel::before { content: "LT"; content: "LT" / ""; background: #fff; box-shadow: inset 0 0 0 3px var(--L); }
.u-seite[data-seite="weiterbildungen/"] .u-b-karten-block .u-karte:nth-child(3) .u-karte-titel::before { content: "W"; content: "W" / ""; background: var(--W); color: #fff; }
.u-seite[data-seite="weiterbildungen/"] .u-b-karten-block .u-karte:nth-child(4) .u-karte-titel::before { content: "R"; content: "R" / ""; background: #fff; box-shadow: inset 0 0 0 3px var(--R); }
/* Fortbildungen: alles Linie F */
.u-seite[data-seite^="fortbildungen/"] .u-karte::before { background: var(--F); }

/* ---------------------------------------------------------------- Ablauf wie "Deine Linie zum Job" */
.u-ablauf-nr { width: 46px; height: 46px; top: -2px; border: 6px solid var(--halt); background: #fff; color: var(--u-text); font-size: 15px; isolation: isolate; overflow: hidden; }
.u-flaeche .u-ablauf-nr { background: #fff; }
.u-ablauf-nr::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--L); }
.u-ablauf li:last-child .u-ablauf-nr { background: var(--L); color: var(--u-text); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--halt); }
.u-ablauf li::after { left: 18px; width: 10px; top: 40px; background: var(--W); }
.u-ablauf li:nth-last-child(2)::after { background: var(--L); }
.u-bewegt .u-ablauf:not(.u-los) .u-ablauf-nr::before { transform: scale(0); }
.u-bewegt .u-ablauf.u-los .u-ablauf-nr::before { transition: transform .4s cubic-bezier(.3,1.4,.5,1); transition-delay: calc(var(--i, 0) * 160ms + .55s); }
@media (min-width: 900px) {
  .u-ablauf-3 .u-ablauf-nr, .u-ablauf-4 .u-ablauf-nr, .u-ablauf-5 .u-ablauf-nr { width: 52px; height: 52px; font-size: 16px; }
  .u-ablauf-3 li::after, .u-ablauf-4 li::after, .u-ablauf-5 li::after { left: 52px; top: 21px; width: auto; height: 10px; }
}

/* ---------------------------------------------------------------- Kursstarts: Fahrplan als Linie mit Halten */
.u-ks { background: #fff; border: 1px solid var(--u-linie); border-radius: 0; position: relative; }
.u-ks::before { content: ""; position: absolute; z-index: 1; left: -1px; right: -1px; top: -1px; height: 8px; background: var(--lf-quer); }
.u-seite[data-seite="weiterbildungen/"] .u-ks::before, .u-seite[data-seite="kursstarts/"] .u-ks::before, .u-seite[data-seite^="standorte/"] .u-ks::before { height: 21px; }
.u-ks-stand .u-punkt { width: 14px; height: 14px; box-shadow: none; animation: atmen 2s ease-out infinite; }
.u-bewegt .u-ks-stand .u-punkt::after { display: none; }
.u-ks .ks-liste { padding-top: 14px; }
.u-seite[data-seite="weiterbildungen/"] .u-ks .ks-liste, .u-seite[data-seite="kursstarts/"] .u-ks .ks-liste, .u-seite[data-seite^="standorte/"] .u-ks .ks-liste { padding-top: 26px; }
.u-ks .ks-zeile { position: relative; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); padding-left: calc(clamp(16px, 2.4vw, 32px) + 52px); }
.u-ks .ks-zeile::before { content: ""; position: absolute; left: calc(clamp(16px, 2.4vw, 32px) + 9px); top: 0; bottom: -1px; width: 8px; background: var(--lf-hoch); }
.u-ks .ks-zeile:first-child::before { top: 50%; }
.u-ks .ks-zeile:last-child::before { bottom: 50%; }
.u-ks .ks-zeile:only-child::before { display: none; }
.u-ks .ks-zeile::after { content: ""; position: absolute; z-index: 1; left: clamp(16px, 2.4vw, 32px); top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #fff; border: 5px solid var(--halt); }
.u-ks .ks-zeile:first-child:not(.ks-zeile-anfrage):not(.ks-zeile-leer)::after { background: var(--L); animation: atmen 2s ease-out infinite; }
.u-ks .ks-zeile:first-child:not(.ks-zeile-anfrage):not(.ks-zeile-leer) { background: linear-gradient(90deg, rgba(247,166,0,.12), rgba(247,166,0,0) 70%); }
.u-ks .ks-tag { color: var(--u-text); }
.u-ks .ks-zeile:first-child:not(.ks-zeile-anfrage):not(.ks-zeile-leer) .ks-tag { color: var(--u-akzent-text); }
.u-ks .ks-zeile-anfrage::after { width: 20px; height: 20px; margin-top: -10px; left: calc(clamp(16px, 2.4vw, 32px) + 3px); border: 4px solid #8a8a86; }
.u-ks .ks-zeile-anfrage { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(28,28,27,.025) 10px 20px); opacity: 1; }
.u-ks .ks-datum-anfrage { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #8a8a86; }
.u-ks .ks-zeile-leer { padding-left: clamp(16px, 2.4vw, 32px); }
.u-ks .ks-zeile-leer::before, .u-ks .ks-zeile-leer::after { display: none; }
.ks-plaetze { border-radius: 999px; }
@media (min-width: 760px) {
  .u-ks .ks-zeile { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.6fr); }
}
@media (max-width: 759px) {
  .u-ks .ks-zeile { padding-left: 64px; padding-right: 16px; grid-template-columns: 76px minmax(0, 1fr); }
  .u-ks .ks-zeile::before { left: 25px; }
  .u-ks .ks-zeile::after { left: 16px; }
  .u-ks .ks-zeile-anfrage::after { left: 19px; }
  .u-ks .ks-datum-anfrage { min-height: 28px; padding: 0 8px; font-size: 14px; }
}
@media (max-width: 379px) { .u-ks .ks-zeile { padding-left: 56px; grid-template-columns: 64px minmax(0, 1fr); } .u-ks .ks-zeile::before { left: 21px; } .u-ks .ks-zeile::after { left: 12px; } .u-ks .ks-zeile-anfrage::after { left: 15px; } }
/* Tabelle Standort mal Kurs: Linien laufen senkrecht wie auf der Startseite (Regeln aus style.css, hier gegen die Grundregeln gesichert) */
.u-ks-tabelle { padding: 26px clamp(16px, 3vw, 40px) 4px; overflow: visible; }
.u-ks .ks-tabelle-rahmen { overflow: visible; }
.u-ks .ks-tabelle thead th { padding: 22px 12px 18px 0; font-size: 19px; color: var(--u-text); border-bottom: 2px solid var(--u-text); }
.u-ks .ks-tabelle thead th:first-child { color: var(--u-text-2); font-size: 17px; font-weight: 500; }
.u-ks .ks-tabelle tbody th { padding: 26px 12px 26px 0; font-size: clamp(1.5rem, 2.2vw, 2rem); border-bottom: 0; }
.u-ks .ks-tabelle td { padding: 24px 12px 24px 44px; border-bottom: 0; }
.u-ks .ks-tabelle tbody tr { border-bottom: 1px solid var(--u-linie); }
.u-ks .ks-tabelle tbody tr:last-child { border-bottom: 0; }
.u-bewegt .u-ks-tabelle:not(.u-los) .ks-tabelle td::before { transform: scaleY(0); }
.u-bewegt .u-ks-tabelle.u-los .ks-tabelle td::before { transform-origin: 50% 0; animation: senkrecht .7s cubic-bezier(.5,0,.3,1) both; }
.u-bewegt .u-ks-tabelle.u-los tbody tr:nth-child(2) td::before { animation-delay: .16s; }
.u-bewegt .u-ks-tabelle.u-los tbody tr:nth-child(3) td::before { animation-delay: .32s; }
@media (max-width: 699px) {
  .u-ks-tabelle { padding: 18px 12px 4px; border: 0; background: none; }
  .u-ks-tabelle::before { display: none; }
  .u-ks .ks-tabelle tbody tr:last-child { border-bottom: 1px solid var(--u-linie); }
  .u-ks .ks-tabelle tbody th { padding: 16px 0 10px; font-size: 26px; border-bottom: 2px solid var(--u-text); }
  .u-ks .ks-tabelle td { padding: 14px 0; border-bottom: 1px solid var(--u-linie); }
  .u-ks .ks-tabelle td:last-child { border-bottom: 0; }
}
.u-ks-hinweis a, .u-ks-leer a { text-decoration-color: var(--L); }

/* ---------------------------------------------------------------- Standorte als Haltestellen (Regeln aus style.css zurueckgesetzt) */
.u-so .so-karte { background: #fff; border: 1px solid var(--u-linie); border-left: 8px solid var(--halt); border-top: 1px solid var(--u-linie); border-radius: 0; transition: border-color .2s; }
.u-so .so-karte:hover { border-left-color: var(--L); }
.u-so .so-name, .u-so .so-adresse, .u-so .so-kontakt, .u-so .so-zeiten, .u-so .so-start { grid-column: auto; grid-row: auto; align-self: auto; }
.u-so .so-name { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.u-so .so-name::before { width: 26px; height: 26px; border-width: 6px; }
.u-so .so-start { font-size: 17px; color: var(--u-text-2); font-weight: 500; }
.u-so .so-start time { display: block; margin-top: 2px; color: var(--u-text); font-size: 22px; }
.u-so .so-kontakt a { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--L); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.u-so-einzeln .so-karte { border-left-color: var(--L); }
.u-so-einzeln .so-name::before { background: var(--L); }
@media (min-width: 760px) {
  .u-so-einzeln .so-name { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
  .u-so-einzeln .so-adresse, .u-so-einzeln .so-kontakt, .u-so-einzeln .so-zeiten, .u-so-einzeln .so-start { grid-column: 2; }
}

/* ---------------------------------------------------------------- FAQ: Fragen als Halte */
.u-faq .faq { border-top: 2px solid var(--u-text); }
.u-faq .faq-eintrag summary { gap: 18px; font-weight: 500; }
.u-faq .faq-eintrag summary::before { flex: none; }
.u-faq .faq-eintrag summary > * { flex: 1; }
.u-faq .faq-eintrag summary:hover { color: var(--u-text); text-decoration: underline; text-decoration-color: var(--L); text-decoration-thickness: 3px; text-underline-offset: .3em; }
.u-faq .faq-eintrag summary::after,
.u-faq .faq-eintrag:not([open]) summary::after { margin-left: auto; background: linear-gradient(var(--u-text), var(--u-text)) center / 18px 2px no-repeat, linear-gradient(var(--u-text), var(--u-text)) center / 2px 18px no-repeat; transition: transform .2s; }
.u-faq .faq-eintrag[open] summary::after { transform: rotate(45deg); }
.u-faq .faq-eintrag p { padding: 0 44px 26px 40px; }
@media (max-width: 599px) { .u-faq .faq-eintrag p { padding-right: 0; } }

/* ---------------------------------------------------------------- Formular wie die Anmeldung der Startseite */
.u-formular { background: #fff; border: 0; border-top: 8px solid var(--L); border-radius: 10px; box-shadow: 0 1px 0 var(--u-linie); }
.u-feld label { font-weight: 500; font-size: 17px; }
.u-feld input, .u-feld select, .u-feld textarea { min-height: 58px; border: 1px solid #8a8a86; border-radius: 6px; background-color: #fff; font-size: 18px; }
.u-feld textarea { min-height: 128px; }
.u-feld input:focus, .u-feld select:focus, .u-feld textarea:focus { outline: 3px solid var(--L); outline-offset: 0; border-color: var(--u-text); box-shadow: none; }
.u-formular-seite { background: var(--u-text); color: var(--u-aufruf-text); border: 0; border-radius: 10px; padding: clamp(24px, 2.8vw, 36px); background-image: var(--raster); background-size: 28px 28px; background-blend-mode: soft-light; }
.u-formular-seite p { color: #d6d6d2; }
.u-formular-seite .u-formular-seite-titel { color: #fff; }
.u-formular-seite .u-tel { color: #fff; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--L); text-decoration-thickness: 3px; text-underline-offset: .22em; }
.u-formular-seite .u-klein { color: #c9c9c4; }
.u-formular-danke { border-radius: 6px; }
@media (max-width: 959px) { .u-formular { margin-inline: calc(-1 * var(--u-rand)); border-radius: 0; padding: 28px var(--u-rand) 32px; } }

/* ---------------------------------------------------------------- Aufruf: dunkler Kasten mit Liniennetz */
.u-aufruf { background-color: var(--u-aufruf-grund); }
.u-aufruf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 21px;
  background: linear-gradient(var(--L), var(--L)) 0 0 / 100% 5px no-repeat, linear-gradient(var(--W), var(--W)) 0 8px / 100% 5px no-repeat, linear-gradient(#f4f4f1, #f4f4f1) 0 16px / 100% 5px no-repeat; transform-origin: 0 50%; }
.u-bewegt .u-aufruf:not(:has(.u-los))::before { transform: scaleX(0); }
.u-bewegt .u-aufruf:has(.u-los)::before { transition: transform 1.2s cubic-bezier(.55,0,.35,1); }
.u-aufruf-titel { font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.u-aufruf p { color: #d6d6d2; opacity: 1; }
.u-aufruf .u-knopf-linie { color: #f4f4f1; border-color: #f4f4f1; }
.u-aufruf .u-knopf-linie:hover { background: #f4f4f1; color: var(--u-text); }
.u-aufruf-bild { border-radius: 10px; }
.u-aufruf .u-akzent { text-decoration: none; background: linear-gradient(var(--L), var(--L)) 0 90% / 100% .1em no-repeat; }

/* ---------------------------------------------------------------- Rechtstexte */
.u-recht-text { position: relative; border-top: 2px solid var(--u-text); padding-top: 40px; }
.u-recht-text::before { content: ""; position: absolute; left: 0; top: -2px; width: 120px; height: 21px; background: linear-gradient(var(--L), var(--L)) 0 0 / 100% 5px no-repeat, linear-gradient(var(--W), var(--W)) 0 8px / 100% 5px no-repeat, linear-gradient(var(--R), var(--R)) 0 16px / 100% 5px no-repeat; }
.u-recht-text .u-h3 { font-weight: 600; }

/* ---------------------------------------------------------------- Kopf und Fuss */
html { scroll-padding-top: calc(var(--u-kopf-h) + 12px); }
.hauptnav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--L); text-decoration-thickness: 3px; text-underline-offset: .4em; }
.kopf-aktion .knopf[aria-current="page"] { background: var(--u-text); border-color: var(--u-text); color: #fff; text-decoration: none; }
/* Eine Kopflinie je Abschnitt: Listen direkt darunter beginnen mit feiner Linie */
.u-block-kopf + .u-haken-gross, .u-block-kopf + .u-steckbrief { border-top: 1px solid var(--u-linie); }
.u-block-kopf:not(:has(.u-block-lead)) { margin-bottom: clamp(26px, 3vw, 40px); }
.u-ks-hinweis { margin-top: 16px; }
