/* Unterseiten der Grundfassung Campus: hell, nahbar, runde Karten, schwebende Plaketten.
   Grundlayout: /unterseiten-basis.css. Kopf und Fuss: /campus/style.css und /campus/rahmen.css.
   Zweispalter sind immer gleich hoch: Bild und Seitenkarte strecken sich auf die Hoehe
   der Nachbarspalte, FAQ steht ueber die ganze Breite. */
@property --u-ring { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
:root {
  --u-grund: #ffffff;
  --u-grund-2: #f1f2f1;
  --u-flaeche: #ffffff;
  --u-flaeche-2: #f1f2f1;
  --u-text: #2b2b29;
  --u-text-2: #585856;
  --u-akzent-text: #8a5a00;
  --u-akzent-weich: rgba(247,166,0,.16);
  --u-linie: #e1e3e2;
  --u-linie-stark: #c9cbca;
  --u-aufruf-grund: #2b2b29;
  --u-aufruf-text: #f4f4f2;
  --u-radius: 32px;
  --u-radius-klein: 14px;
  --u-knopf-radius: 999px;
  --u-schatten: 0 1px 2px rgba(0,0,0,.04), 0 30px 60px -36px rgba(28,28,27,.35);
  --u-h1: clamp(2.6rem, 1.2rem + 4.6vw, 5.2rem);
  --u-h2: clamp(2.1rem, 1.4rem + 2.2vw, 3.5rem);
  --u-titel-gewicht: 600;
  --u-titel-abstand: -0.03em;
  --u-titel-zeile: 1.02;
  --u-breite: 1264px;
  --u-rand: clamp(20px, 4vw, 48px);
  --u-kopf-h: 84px;
}
@media (max-width: 1180px) { :root { --u-kopf-h: 72px; } }
html { scroll-padding-top: calc(var(--u-kopf-h) + 16px); }
.u-seite .u-h1 { letter-spacing: -0.035em; line-height: .99; }
/* Nur lange Woerter trennen (Triebfahrzeugfuehrer*in), nicht "Cam-pus" */
.u-kopf .u-h1 { hyphenate-limit-chars: 12 5 5; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; }
.u-seite .u-akzent { color: var(--u-text); background: linear-gradient(transparent 62%, rgba(247,166,0,.5) 62%, rgba(247,166,0,.5) 90%, transparent 90%); padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.u-aufruf .u-akzent { background: none; padding: 0; color: var(--ec-orange); text-decoration: none; }

/* Knoepfe wie auf der Startseite */
.u-knopf { font-size: 18px; min-height: 58px; padding: 14px 30px; }
.u-knopf:hover { background: #ffb81f; border-color: #ffb81f; box-shadow: 0 8px 22px -10px rgba(201,133,0,.7); }
.u-knopf-linie { border-color: var(--u-text); }
/* .u-seite a { color: inherit } aus der Basis wuerde die Knopfschrift im dunklen Aufruf weiss faerben */
.u-seite .u-knopf { color: var(--u-auf-akzent); }
.u-seite .u-knopf-linie { color: var(--u-text); }
.u-seite .u-knopf-linie:hover { background: var(--u-text); border-color: var(--u-text); color: #fff; box-shadow: none; }

/* ---------- Seitenkopf: runde Buehne, schwebende Plakette mit Ring ---------- */
.u-kopf { border-bottom: 0; padding-top: clamp(16px, 2.6vw, 36px); background: radial-gradient(60% 70% at 100% 0%, rgba(247,166,0,.11), rgba(247,166,0,0) 70%), var(--u-grund); }
.u-kopf::after { display: none; }
.u-brotkrumen a { min-height: 40px; }
.u-info { align-items: center; max-width: none; width: fit-content; padding: 12px 20px 12px 16px; border: 0; border-radius: 24px; background: var(--u-grund-2); color: var(--u-text); font-weight: 500; }
.u-info .u-punkt { transform: none; }
.u-kopf-bild { border-radius: var(--u-radius); background: var(--u-grund-2); }
.u-kopf-bild img { border-radius: var(--u-radius); }
.u-kopf-bild::after { content: ""; position: absolute; inset: 0; border-radius: var(--u-radius); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); pointer-events: none; }

/* Plakette: Zeichen des Campus in einem Ring, der sich einmal schliesst */
.u-kopf-signal { left: clamp(16px, 2vw, 28px); right: auto; top: auto; bottom: clamp(16px, 2vw, 28px); width: 92px; height: 92px; border-radius: 50%; background: #fff url("/marke/zeichen.png") center / 54px no-repeat; box-shadow: 0 18px 40px -18px rgba(28,28,27,.45); transform: none; }
.u-kopf-signal::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: conic-gradient(var(--ec-orange) var(--u-ring), rgba(247,166,0,.18) 0); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.u-bewegt .u-kopf-signal { animation: g-plakette .9s cubic-bezier(.3,1.4,.5,1) .5s both, g-schweben 6s ease-in-out 1.6s infinite; }
.u-bewegt .u-kopf-signal::before { animation: g-ring 1.4s cubic-bezier(.4,0,.2,1) .8s both; }
@keyframes g-plakette { from { opacity: 0; transform: scale(.6) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes g-schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes g-ring { from { --u-ring: 0deg; } to { --u-ring: 360deg; } }

@media (max-width: 599px) { .u-kopf-signal { width: 68px; height: 68px; background-size: 40px; } }
/* Kopf ohne Bild: dieselbe Plakette rechts, gross */
.u-kopf:not(.u-kopf-mit-bild) .u-kopf-raster { position: relative; }
@media (min-width: 960px) {
  .u-kopf:not(.u-kopf-mit-bild) .u-kopf-raster::after { content: ""; position: absolute; right: var(--u-rand); top: 50%; width: 168px; height: 168px; margin-top: -84px; border-radius: 50%; background: #fff url("/marke/zeichen.png") center / 96px no-repeat; box-shadow: 0 0 0 14px rgba(247,166,0,.12), 0 0 0 30px rgba(247,166,0,.06), 0 30px 60px -30px rgba(28,28,27,.4); }
  .u-bewegt .u-kopf:not(.u-kopf-mit-bild) .u-kopf-raster::after { animation: g-plakette 1s cubic-bezier(.3,1.4,.5,1) .4s both, g-schweben 7s ease-in-out 1.6s infinite; }
  .u-kopf:not(.u-kopf-mit-bild) .u-kopf-text { max-width: calc(100% - 260px); }
}

/* Kopf mit Bild: Bild so hoch wie der Text, nie hoeher */
@media (min-width: 960px) {
  .u-kopf-mit-bild .u-kopf-raster { grid-template-columns: minmax(0, 6.6fr) minmax(0, 5.4fr); align-items: stretch; }
  .u-kopf-mit-bild .u-kopf-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(8px, 2vw, 32px) 0; }
  .u-kopf-mit-bild .u-kopf-bild { aspect-ratio: auto; max-height: none; min-height: 460px; }
  .u-kopf-mit-bild .u-h1 { font-size: clamp(2.6rem, 1rem + 3.6vw, 4.6rem); }

}

/* Kennzahlen wie das Zahlenband der Startseite: Linien statt Kasten */
.u-fakten { gap: 0; background: none; border: 0; border-top: 1px solid var(--u-linie); border-radius: 0; overflow: visible; }
.u-fakt { background: none !important; padding: 26px 24px 6px 0; }
.u-fakt-wert { color: var(--u-text); font-weight: 600; letter-spacing: -0.035em; }
.u-fakt-einheit { color: var(--u-akzent-text); }
.u-fakten > .u-fakt + .u-fakt { padding-left: 24px; border-left: 1px solid var(--u-linie); }
@media (max-width: 899px) {
  .u-fakten-4 > .u-fakt:nth-child(3) { padding-left: 0; border-left: 0; }
  .u-fakten-4 > .u-fakt:nth-child(n+3) { border-top: 1px solid var(--u-linie); }
}
@media (max-width: 599px) {
  .u-fakten-3 > .u-fakt + .u-fakt { padding-left: 0; border-left: 0; border-top: 1px solid var(--u-linie); }
  .u-fakt { padding-right: 12px; }
  .u-fakten-2 > .u-fakt + .u-fakt, .u-fakten-4 > .u-fakt:nth-child(even) { padding-left: 16px; }
}
.u-b-fakten-block .u-fakten { border-top-color: var(--u-linie-stark); }

/* ---------- Bloecke ---------- */
.u-block { padding: clamp(64px, 8vw, 120px) 0; }
.u-flaeche { background: var(--u-grund-2); }
.u-block-kopf { max-width: 48rem; }
.u-text-schmal { max-width: 50rem; }

/* Karten: rund, ohne Rahmen, auf Flaeche weiss */
.u-karte { border: 0; background: var(--u-grund-2); border-radius: var(--u-radius); }
.u-flaeche .u-karte { background: #fff; }
.u-karte-bild { aspect-ratio: 4 / 3; }
.u-karte-inhalt { padding: clamp(22px, 2.4vw, 32px); }
.u-karte-titel { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); margin-bottom: 12px; }
.u-karte-marke { background: var(--u-akzent-weich); color: var(--u-akzent-text); }
.u-karte-mehr { color: var(--u-text); text-decoration: underline; text-decoration-color: var(--ec-orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.u-karte-link:hover { box-shadow: var(--u-schatten); }
.u-karten-2 .u-karte-mit-bild .u-karte-bild { aspect-ratio: 16 / 9; }

/* Bild mit Text: Bild rund; ab 900 px wird der Text eine Karte, die sich auf Bildhoehe streckt,
   damit neben dem Foto keine leere Flaeche steht */
.u-bt-bild { border-radius: var(--u-radius); }
@media (min-width: 900px) {
  .u-bt { gap: clamp(16px, 1.6vw, 24px); }
  .u-bt-bild { min-height: 340px; }
  .u-bt-text { align-self: stretch; padding: clamp(32px, 3.4vw, 56px); border-radius: var(--u-radius); background: var(--u-grund-2); }
  .u-flaeche .u-bt-text { background: #fff; }
}
.u-link-pfeil { border-bottom: 3px solid var(--ec-orange); }

/* Haekchen */
.u-haken-gross li { font-weight: 500; }
.u-haken-zeichen { padding: 5px; }

/* Ablauf: weisse Karten mit Nummer */
.u-ablauf-nr { border-width: 2px; }
.u-ablauf li:last-child .u-ablauf-nr { box-shadow: 0 0 0 6px var(--u-akzent-weich); }

/* Steckbrief in einer Karte */
.u-steckbrief { padding: 4px clamp(20px, 3vw, 40px); border-top: 0; border-radius: var(--u-radius); background: var(--u-grund-2); }
.u-flaeche .u-steckbrief { background: #fff; }
.u-steckbrief > div:last-child, .u-steckbrief > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
@media (max-width: 699px) { .u-steckbrief > div:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--u-linie); } }

/* ---------- Kursstarts: Karte mit Kalenderblaettern ---------- */
.u-ks { border: 0; border-radius: var(--u-radius); box-shadow: var(--u-schatten); background: #fff; }
.u-ks .ks-zeile { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "datum ort" "datum kurse"; column-gap: 18px; row-gap: 2px; padding-block: 18px; }
.u-ks .ks-datum { grid-area: datum; width: 76px; height: 80px; grid-template-columns: 1fr; place-content: center; justify-items: center; row-gap: 3px; border-radius: 18px; background: var(--u-grund-2); text-align: center; }
.u-ks .ks-ort { grid-area: ort; align-self: end; }
.u-ks .ks-kurse { grid-area: kurse; align-self: start; }
.u-ks .ks-tag { grid-row: auto; font-size: 30px; color: var(--u-text); }
.u-ks .ks-monat { align-self: center; font-size: 14px; }
.u-ks .ks-jahr { display: none; }
.u-ks .ks-zeile-leer { grid-template-areas: none; grid-template-columns: minmax(0, 1fr); }
.u-ks .ks-zeile:first-child:not(.ks-zeile-anfrage):not(.ks-zeile-leer) { background: rgba(247,166,0,.07); }
.u-ks .ks-zeile:first-child:not(.ks-zeile-anfrage):not(.ks-zeile-leer) .ks-datum { background: var(--ec-orange); }
.u-ks .ks-datum-anfrage { display: grid; place-items: center; height: auto; min-height: 80px; padding: 10px 6px; border-radius: 18px; background: var(--u-grund-2); font-size: 14px; line-height: 1.2; text-align: center; color: var(--u-text-2); }
@media (min-width: 760px) {
  .u-ks .ks-zeile { grid-template-columns: 84px minmax(0, .8fr) minmax(0, 1.6fr); grid-template-areas: "datum ort kurse"; column-gap: 28px; }
  .u-ks .ks-datum { width: 84px; }
  .u-ks .ks-ort, .u-ks .ks-kurse { align-self: center; }
}
@media (max-width: 379px) { .u-ks .ks-zeile { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; } .u-ks .ks-datum { width: 64px; height: 70px; } .u-ks .ks-tag { font-size: 26px; } }
.u-ks-tabelle { box-shadow: none; border: 1px solid var(--u-linie); }
.u-chip[aria-pressed="true"] { box-shadow: 0 6px 16px -8px rgba(201,133,0,.8); }
.u-filter { padding: 18px 20px; border-radius: 22px; background: var(--u-grund-2); }
.u-flaeche .u-filter { background: #fff; }

/* Standorte */
.u-so .so-karte { border: 0; border-top: 0; border-radius: var(--u-radius); background: #fff; box-shadow: var(--u-schatten); position: relative; overflow: hidden; }
.u-so .so-karte::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--ec-orange); }
.u-so .so-start { color: var(--u-text); }
/* Ein Standort: drei gleich hohe Spalten statt Name links und Leere darunter */
@media (min-width: 760px) {
  .u-so-einzeln .so-karte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "name name" "adresse kontakt" "adresse zeiten" "start start"; column-gap: clamp(24px, 4vw, 56px); row-gap: 6px; align-items: start; padding: clamp(28px, 3vw, 44px); }
  .u-so-einzeln .so-name { grid-area: name; grid-row: auto; margin-bottom: 10px; }
  .u-so-einzeln .so-adresse { grid-area: adresse; }
  .u-so-einzeln .so-kontakt { grid-area: kontakt; margin: 0; }
  .u-so-einzeln .so-zeiten { grid-area: zeiten; }
  .u-so-einzeln .so-start { grid-area: start; margin-top: 18px; }
}
@media (min-width: 1000px) {
  .u-so-einzeln .so-karte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); grid-template-areas: "name name start" "adresse kontakt start" "adresse zeiten start"; }
  .u-so-einzeln .so-start { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 6px; margin: 0; padding: 20px 24px; border: 0; border-radius: 22px; background: var(--u-akzent-weich); font-size: 17px; }
  .u-so-einzeln .so-start time { margin: 0; padding: 0; background: none; font-size: 28px; letter-spacing: -0.02em; }
}

/* FAQ: ueber die ganze Breite, damit keine Spalte leer steht */
.u-faq-raster { grid-template-columns: minmax(0, 1fr) !important; gap: clamp(24px, 3vw, 40px); }
.u-faq-raster .u-block-kopf { margin-bottom: 0; }
.u-faq .faq { border-top: 0; padding: 4px clamp(20px, 3vw, 40px); border-radius: var(--u-radius); background: var(--u-grund-2); }
.u-flaeche .u-faq .faq { background: #fff; }
.u-faq .faq-eintrag:last-child { border-bottom: 0; }

/* ---------- Formular: Seitenkarte so hoch wie das Formular ---------- */
.u-formular { border: 0; border-radius: var(--u-radius); box-shadow: var(--u-schatten); }
.u-feld input, .u-feld select, .u-feld textarea { border-radius: 14px; background: #fff; }
.u-formular-raster { align-items: stretch; }
.u-formular-seite { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 0; border-radius: var(--u-radius); background: var(--u-aufruf-grund); color: #e4e4e1; padding: clamp(24px, 3vw, 40px); }
.u-formular-seite p { color: #d6d6d2; }
.u-formular-seite .u-formular-seite-titel { color: #fff; font-size: 24px; }
.u-formular-seite .u-tel { color: #fff; border-bottom-color: var(--ec-orange); }
.u-formular-seite .u-klein { color: #c9c9c5; }
.u-formular-seite .u-klein:last-child { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
/* Foto im unteren Teil der Seitenkarte: fuellt die Hoehe neben dem Formular, Text steht darueber */
.u-formular-seite { padding-bottom: 0; }
.u-formular-seite::after { content: ""; display: block; flex: 1 0 220px; margin: 24px calc(-1 * clamp(24px, 3vw, 40px)) 0; background: url("/bilder/team-gespraech-800.webp") 50% 30% / cover no-repeat; -webkit-mask: linear-gradient(180deg, transparent, #000 28%); mask: linear-gradient(180deg, transparent, #000 28%); }
@media (min-width: 960px) { .u-formular-raster { grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); } }
@media (min-width: 600px) and (max-width: 959px) { .u-formular-seite::after { flex-basis: 280px; } }

/* ---------- Aufruf: dunkle Karte mit Abstand zum dunklen Fuss ---------- */
.u-aufruf { background: var(--u-grund); padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 104px); overflow: visible; }
.u-aufruf-raster { position: relative; overflow: hidden; width: calc(100% - 2 * var(--u-rand)); max-width: var(--u-breite); margin: 0 auto; padding: clamp(32px, 5vw, 72px); border-radius: var(--u-radius); background: var(--u-aufruf-grund); }
.u-aufruf-raster > * { position: relative; }
.u-aufruf-titel { letter-spacing: -0.03em; }
.u-seite .u-aufruf .u-knopf-linie { color: #fff; border-color: rgba(255,255,255,.7); }
.u-seite .u-aufruf .u-knopf-linie:hover { background: #fff; color: var(--u-text); }
.u-aufruf-raster::before { content: ""; position: absolute; right: -140px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(247,166,0,.3), rgba(247,166,0,0)); pointer-events: none; }
.u-aufruf-mit-bild .u-aufruf-raster::before { left: -160px; right: auto; }
.u-aufruf-bild { border-radius: 22px; }
@media (min-width: 960px) {
  .u-aufruf-mit-bild .u-aufruf-raster { align-items: stretch; padding-right: clamp(20px, 2vw, 28px); }
  .u-aufruf-mit-bild .u-aufruf-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(8px, 2vw, 24px) 0; }
  .u-aufruf-bild { aspect-ratio: auto; min-height: 340px; }
}
@media (max-width: 599px) { .u-aufruf-raster { width: calc(100% - 24px); padding: 32px 22px; } .u-aufruf-raster::before { width: 240px; height: 240px; right: -90px; top: -100px; } }

/* Rechtstexte in einer ruhigen Spalte */
.u-recht-text .u-h3 { font-size: 1.4rem; }

/* Bewegung: Karten heben sich weich an */
.u-bewegt [data-u-staffel]:not(.u-los) > * { transform: translateY(24px) scale(.98); }

/* Textbloecke: ab zwei Absaetzen ueber die ganze Breite in zwei gleich hohen Spalten,
   ein einzelner Absatz steht groesser in einer ruhigen Spalte */
@media (min-width: 1000px) {
  .u-text-schmal:has(.u-fliess p + p) { max-width: none; }
  .u-text-schmal:has(.u-fliess p + p) .u-h2 { max-width: 20em; }
  .u-text-schmal .u-fliess:has(p + p) { max-width: none; columns: 2; column-gap: clamp(48px, 5vw, 88px); orphans: 3; widows: 3; }
  .u-text-schmal .u-fliess:has(p + p) p { margin-bottom: 1em; }
  .u-text-schmal .u-fliess:not(:has(p + p)) { font-size: clamp(1.15rem, 1rem + .4vw, 1.32rem); max-width: 42em; }
}
