/* Campus 2b "Bento": alles in Kacheln. Hell, viele kleine Geschichten
   nebeneinander, Fotos atmen (Ken Burns), Zahlen zaehlen, die Strecke
   Hamburg, Bremen, Hannover faehrt, das Signal schaltet auf Fahrt.
   Baut auf /campus/style.css auf. */

:root { --seite: #eceeed; --kachel: #ffffff; --spalt: 14px; --r-kachel: 28px; }
body { background: var(--seite); }
.kopf { background: rgba(236,238,237,.9); }

.bento { display: grid; gap: var(--spalt); }
.kachel { position: relative; min-width: 0; margin: 0; padding: clamp(20px, 2.2vw, 32px); border-radius: var(--r-kachel); background: var(--kachel); overflow: hidden; }
.kachel-bild { padding: 0; background: #d9dbda; }
.kachel-bild > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kachel-dunkel { background: #2b2b29; color: #f1f1ef; }
.kachel-dunkel h2, .kachel-dunkel h3 { color: #fff; }
.kachel-orange { background: var(--orange); color: #1c1c1b; }
.kachel-grau { background: #e1e3e2; }

/* Ken Burns: Fotos bewegen sich langsam, ausserhalb des Sichtfelds ruht es */
html.js .kb img { animation: kb 18s ease-in-out infinite alternate; will-change: transform; }
html.js .kb-2 img { animation-name: kb-2; }
html.js .kb.ruht img, html.js .ruht .kb img { animation-play-state: paused; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.13) translate(-2%, -1.5%); } }
@keyframes kb-2 { from { transform: scale(1.12) translate(2%, 1%); } to { transform: scale(1.02); } }

.bento-abschnitt { padding-block: clamp(40px, 5vw, 72px); }
.bento-abschnitt .kopfzeile { margin-bottom: clamp(24px, 3vw, 40px); }

.bh-gross { font-size: clamp(56px, 5.6vw, 88px); font-weight: 600; letter-spacing: -0.045em; line-height: .95; font-variant-numeric: tabular-nums; }
.bh-einheit { font-size: .5em; letter-spacing: -0.02em; }
.bh-klein { font-size: 16px; line-height: 1.4; }
.bh-mittel { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }

/* ===== Hero-Bento ===== */
.bento-held { padding: clamp(14px, 1.6vw, 22px) 0 clamp(36px, 4vw, 56px); }
.bh-raster {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "titel  titel  titel  video  video  video"
    "aktion aktion aktion zahl   signal person"
    "strecke strecke strecke team monate person";
}
.bh-titel { grid-area: titel; display: flex; align-items: flex-end; min-height: 250px; padding-bottom: clamp(24px, 2.6vw, 36px); }
.bh-titel h1 { font-size: clamp(46px, 4.7vw, 72px); line-height: .98; letter-spacing: -0.035em; }
.bh-video { grid-area: video; }
.bh-video > img, .bh-video > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.bh-video > video { opacity: 0; transition: opacity 1s ease; }
.bh-video > video.spielt { opacity: 1; }
.bh-video::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, rgba(20,24,40,0), rgba(20,24,40,.6)); pointer-events: none; }
.bh-video-text { position: absolute; z-index: 1; left: 22px; bottom: 18px; right: 22px; color: #fff; font-weight: 600; font-size: 17px; }
.bh-person { grid-area: person; }
.bh-person > img { object-position: 50% 30%; }
.bh-band { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.94); font-weight: 600; font-size: 15px; line-height: 1.25; }
.bh-zahl { grid-area: zahl; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.bh-zahl .bh-gross, .bh-monate .bh-gross { font-size: clamp(48px, 4.2vw, 68px); }
.bh-signal { grid-area: signal; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.bh-signal .bh-klein { color: #c9c9c5; }
.bh-start { font-size: 19px; font-weight: 600; line-height: 1.25; color: #fff; }
.signal-mast { position: absolute; top: 18px; right: 18px; display: grid; gap: 7px; padding: 9px 8px; border-radius: 16px; background: #1c1c1b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.signal-mast i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #3d3d3a; }
.signal-mast .lampe-gruen { background: #62d27a; box-shadow: 0 0 14px rgba(98,210,122,.9); }
html.js .signal-mast .lampe-rot { animation: lampe-rot 7s infinite both; }
html.js .signal-mast .lampe-gelb { animation: lampe-gelb 7s infinite both; }
html.js .signal-mast .lampe-gruen { animation: lampe-gruen 7s infinite both; }
html.js .bento-held.ruht .signal-mast i, html.js .bento-held.ruht .netz-zug { animation-play-state: paused; }
@keyframes lampe-rot { 0%, 22% { background: #ef4a3a; box-shadow: 0 0 14px rgba(239,74,58,.9); } 26%, 100% { background: #3d3d3a; box-shadow: none; } }
@keyframes lampe-gelb { 0%, 22% { background: #3d3d3a; box-shadow: none; } 26%, 44% { background: #ffbf2e; box-shadow: 0 0 14px rgba(255,191,46,.9); } 48%, 100% { background: #3d3d3a; box-shadow: none; } }
@keyframes lampe-gruen { 0%, 44% { background: #3d3d3a; box-shadow: none; } 48%, 100% { background: #62d27a; box-shadow: 0 0 14px rgba(98,210,122,.9); } }
.bh-aktion { grid-area: aktion; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.bh-lead { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.5; color: var(--text-2); }
.bh-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.bh-knoepfe .knopf { padding-inline: 22px; font-size: 17px; }
.bh-strecke { grid-area: strecke; display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding-block: 18px; }
.bh-strecke-text .bh-klein { margin-top: 6px; color: var(--text-2); }
.karte-netz { position: relative; flex: none; width: 300px; height: 170px; }
.karte-netz svg { display: block; overflow: visible; }
.netz-linie { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.netz-ort { fill: #fff; stroke: var(--text); stroke-width: 4; }
.karte-netz text { font: 600 14px "Jost", system-ui, sans-serif; fill: var(--text); }
.netz-zug { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgba(247,166,0,.45); offset-path: path("M260 26 L40 74 L214 146 Z"); offset-rotate: 0deg; offset-distance: 0%; }
html.js .netz-linie { animation: netz-zeichnen 1.6s cubic-bezier(.4,0,.2,1) .9s both; }
html.js .netz-zug { animation: netz-fahrt 10s linear 2.4s infinite both; }
@keyframes netz-zeichnen { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes netz-fahrt { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.bh-team { grid-area: team; }
.bh-team > img { object-position: 40% 40%; }
.bh-monate { grid-area: monate; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }

/* Zusammensetzen beim Laden: Kacheln kommen gestaffelt */
html.js .bento-held .kachel:not(.bh-titel):not(.bh-video) { animation: bento-rein .75s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.08s + var(--i, 0) * 85ms); }
html.js .bento-held .bh-video { animation: bento-skala .9s cubic-bezier(.2,.7,.2,1) both; }
html.js .bento-held .bh-titel h1 { animation: bento-titel .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes bento-rein { from { opacity: 0; transform: translateY(28px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes bento-skala { from { transform: scale(.93); } to { transform: none; } }
@keyframes bento-titel { from { transform: translateY(16px); } to { transform: none; } }

@media (max-width: 1180px) and (min-width: 1000px) {
  .karte-netz { transform: scale(.85); transform-origin: left center; width: 255px; }
}
@media (max-width: 999px) {
  .bh-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "titel titel"
      "video video"
      "person zahl"
      "person signal"
      "aktion aktion"
      "strecke strecke"
      "team monate";
  }
  .bh-titel { min-height: 0; }
  .bh-video { aspect-ratio: 16 / 9.5; }
  .bh-person { min-height: 320px; }
  .bh-team { min-height: 200px; }
  .bh-zahl, .bh-signal { min-height: 160px; }
}
@media (max-width: 640px) {
  :root { --spalt: 10px; --r-kachel: 22px; }
  .bh-titel h1 { font-size: clamp(40px, 11.8vw, 52px); }
  .bh-video { aspect-ratio: 16 / 11; }
  .bh-video-text { font-size: 15px; left: 16px; bottom: 14px; }
  .bh-knoepfe .knopf { width: 100%; }
  .bh-gross { font-size: 54px; }
  .bh-klein { font-size: 15px; }
  .bh-start { font-size: 17px; }
  .signal-mast { top: 14px; left: 14px; right: auto; grid-auto-flow: column; gap: 5px; padding: 6px 7px; }
  .signal-mast i { width: 14px; height: 14px; }
  .bh-person { min-height: 300px; }
  .bh-strecke { flex-direction: column; align-items: flex-start; }
  .karte-netz { align-self: center; }
}
@media (max-width: 370px) { .karte-netz { transform: scale(.88); transform-origin: center top; margin-bottom: -20px; } }

/* ===== Konfigurator ===== */
.bf-raster { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "intro karte" "foto karte"; }
.bf-intro { grid-area: intro; }
.bf-intro h2 { font-size: clamp(34px, 3.6vw, 50px); }
.bf-intro p { margin-top: 16px; font-size: 19px; color: var(--text-2); }
.bf-foto { grid-area: foto; min-height: 260px; }
.bf-foto > img { object-position: 50% 22%; }
.bf-karte { grid-area: karte; box-shadow: none; border-radius: var(--r-kachel); min-height: 560px; }
.bf-karte .finder-option { border-radius: 18px; }
@media (max-width: 999px) {
  .bf-raster { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "intro" "karte"; }
  .bf-foto { display: none; }
  .bf-karte { min-height: 0; }
}

/* ===== Weiterbildungen ===== */
.bw-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "bild lok lok" "tq wm rb" "check check check"; }
.bw-lok-bild { grid-area: bild; min-height: 420px; }
.bw-lok-bild > img { object-position: 50% 60%; }
.bw-lok { grid-area: lok; padding: clamp(24px, 3.4vw, 48px); }
.bw-lok h3 { font-size: clamp(32px, 3.2vw, 46px); letter-spacing: -0.025em; }
.bw-text { margin-top: 16px; color: var(--text-2); }
.bw-lok .wb-abschluesse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
#kurs-triebfahrzeugfuehrer-teilqualifikationen { grid-area: tq; }
#kurs-wagenmeister { grid-area: wm; }
#kurs-rangierbegleiter { grid-area: rb; }
.bw-karte { display: flex; flex-direction: column; }
.bw-bild { position: relative; margin: calc(clamp(20px, 2.2vw, 32px) * -1) calc(clamp(20px, 2.2vw, 32px) * -1) 22px; aspect-ratio: 4 / 3; overflow: hidden; }
.bw-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
#kurs-wagenmeister .bw-bild img { object-position: 50% 45%; }
#kurs-rangierbegleiter .bw-bild img { object-position: 50% 22%; }
#kurs-triebfahrzeugfuehrer-teilqualifikationen .bw-bild img { object-position: 50% 40%; }
.bw-karte h3 { font-size: 25px; }
.bw-karte .wb-kurzfakten { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 17px; }
.bw-karte .wb-kurzfakten::before { content: ""; display: block; height: 1px; background: var(--linie); margin-bottom: 14px; }
.bw-check { grid-area: check; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 28px; text-decoration: none; transition: transform .25s; }
.bw-check:hover { transform: translateY(-2px); }
.bw-check-titel { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.bw-check-text { font-size: 19px; }
.bw-pfeil { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1c1c1b; color: #fff; transition: transform .25s; }
.bw-check:hover .bw-pfeil { transform: translateX(4px); }
.bw-pfeil svg { width: 26px; height: 26px; }
@media (max-width: 999px) {
  .bw-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "bild bild" "lok lok" "tq wm" "rb check"; }
  .bw-lok-bild { min-height: 0; aspect-ratio: 16 / 9; }
  .bw-check { grid-template-columns: 1fr; align-content: space-between; }
}
@media (max-width: 640px) {
  .bw-raster { grid-template-columns: 1fr; grid-template-areas: "bild" "lok" "tq" "wm" "rb" "check"; }
  .bw-lok .wb-abschluesse { grid-template-columns: 1fr; }
  .bw-lok .knopf { width: 100%; }
  .wb-fakten > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ===== Foerderung ===== */
.bfo-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "text text gutschein" "stellen stellen gutschein"; }
.bfo-text { grid-area: text; }
.bfo-text .foerder-lead { margin: 18px 0 26px; font-size: 19px; color: var(--text-2); max-width: 34em; }
.bfo-gutschein { grid-area: gutschein; display: grid; place-items: center; padding: clamp(20px, 3vw, 40px) clamp(14px, 2vw, 28px); }
.bfo-gutschein .gutschein { width: 100%; }
.bfo-stellen { grid-area: stellen; }
.bfo-stellen .foerder-wer { margin: 0; }
.bfo-stellen .foerder-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.bfo-stellen .foerder-selbst { margin: 14px 0 0; }
@media (max-width: 860px) {
  .bfo-raster { grid-template-columns: 1fr; grid-template-areas: "text" "gutschein" "stellen"; }
  .bfo-text .knopf { width: 100%; }
}
@media (max-width: 560px) { .bfo-stellen .foerder-liste { grid-template-columns: 1fr; } }

/* ===== Ablauf: vier Kacheln, die nacheinander aufleuchten ===== */
.ba-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.ba-schritt { display: flex; flex-direction: column; gap: 10px; padding-bottom: 40px; }
.ba-nr { font-size: clamp(64px, 6vw, 96px); font-weight: 600; letter-spacing: -0.05em; line-height: .9; color: #d4d6d5; }
.ba-schritt h3 { font-size: 22px; line-height: 1.25; margin-top: 8px; }
.ba-schritt p { color: var(--text-2); font-size: 17px; }
.ba-balken { position: absolute; left: clamp(20px, 2.2vw, 32px); right: clamp(20px, 2.2vw, 32px); bottom: 22px; height: 6px; border-radius: 6px; background: var(--flaeche-2); overflow: hidden; }
.ba-balken::after { content: ""; position: absolute; inset: 0; background: var(--orange); border-radius: inherit; transform-origin: left center; }
.ba-schritt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--orange); opacity: 0; }
html.js .ba-raster .ba-balken::after { animation: ba-fuellen 10s infinite both; }
html.js .ba-raster .ba-schritt::before { animation: ba-rahmen 10s infinite both; }
html.js .ba-raster .ba-nr { animation: ba-nr 10s infinite both; }
html.js .ba-raster .ba-schritt:nth-child(2) > *, html.js .ba-raster .ba-schritt:nth-child(2)::before { animation-delay: 2.5s; }
html.js .ba-raster .ba-schritt:nth-child(3) > *, html.js .ba-raster .ba-schritt:nth-child(3)::before { animation-delay: 5s; }
html.js .ba-raster .ba-schritt:nth-child(4) > *, html.js .ba-raster .ba-schritt:nth-child(4)::before { animation-delay: 7.5s; }
html.js .ba-raster .ba-schritt:nth-child(2) .ba-balken::after { animation-delay: 2.5s; }
html.js .ba-raster .ba-schritt:nth-child(3) .ba-balken::after { animation-delay: 5s; }
html.js .ba-raster .ba-schritt:nth-child(4) .ba-balken::after { animation-delay: 7.5s; }
@keyframes ba-fuellen { 0% { transform: scaleX(0); } 24%, 96% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes ba-rahmen { 0%, 24% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes ba-nr { 0%, 24% { color: var(--orange-dunkel, #c98500); } 28%, 100% { color: #d4d6d5; } }
.ba-raster .ba-nr { --orange-dunkel: #b57800; }
@media (max-width: 999px) { .ba-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ba-raster { grid-template-columns: 1fr; } .ba-schritt { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; } .ba-nr { grid-row: span 2; font-size: 64px; } .ba-schritt h3 { margin-top: 4px; } }

/* ===== Vorteile ===== */
.bv-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "garantie garantie foto" "p1 p2 foto" "p3 p4 p5"; margin: 0; padding: 0; }
.bv-garantie { grid-area: garantie; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(20px, 3vw, 44px); align-items: end; }
.bv-garantie .bh-gross { grid-row: span 2; font-size: clamp(72px, 9vw, 136px); }
.bv-garantie h3 { font-size: clamp(24px, 2.2vw, 30px); }
.bv-garantie p:last-child { margin-top: 8px; font-size: 18px; }
.bv-foto { grid-area: foto; min-height: 360px; }
.bv-foto > img { object-position: 50% 25%; }
.bv-punkt h3 { font-size: 21px; line-height: 1.25; }
.bv-punkt p { margin-top: 8px; color: var(--text-2); font-size: 17px; }
.kachel-dunkel.bv-punkt p { color: #d6d6d3; }
.bv-raster > :nth-child(3) { grid-area: p1; }
.bv-raster > :nth-child(4) { grid-area: p2; }
.bv-raster > :nth-child(5) { grid-area: p3; }
.bv-raster > :nth-child(6) { grid-area: p4; }
.bv-raster > :nth-child(7) { grid-area: p5; }
@media (max-width: 860px) {
  .bv-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "garantie garantie" "foto foto" "p1 p2" "p3 p4" "p5 p5"; }
  .bv-foto { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .bv-raster { grid-template-columns: 1fr; grid-template-areas: "garantie" "foto" "p1" "p2" "p3" "p4" "p5"; }
  .bv-garantie { grid-template-columns: 1fr; }
  .bv-garantie .bh-gross { grid-row: auto; margin-bottom: 10px; }
}

/* ===== Kursstarts ===== */
.bk-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); grid-template-areas: "intro liste" "naechster liste"; }
.bk-intro { grid-area: intro; }
.bk-intro > p:first-of-type { margin-top: 16px; font-size: 19px; color: var(--text-2); }
.bk-intro .ks-stand { margin-top: 18px; }
.bk-naechster { grid-area: naechster; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.bk-datum { font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 18px; }
.knopf-dunkel { background: #1c1c1b; border-color: #1c1c1b; color: #fff; }
.knopf-dunkel:hover { background: #3a3a38; border-color: #3a3a38; box-shadow: none; }
.bk-liste { grid-area: liste; padding-block: 8px; }
.bk-liste .ks-liste { grid-template-columns: 1fr; }
.bk-liste .ks-zeile { border-bottom: 1px solid var(--linie) !important; }
.bk-liste .ks-zeile:last-child { border-bottom: 0 !important; }
@media (max-width: 999px) {
  .bk-raster { grid-template-columns: 1fr; grid-template-areas: "intro" "naechster" "liste"; }
  .bk-naechster .knopf { align-self: flex-start; }
}
@media (max-width: 560px) { .bk-naechster .knopf { width: 100%; } .bk-liste { padding: 4px 16px; } }

/* ===== Standorte als Kacheln ===== */
.so-raster { gap: var(--spalt); }
.so-karte { background: #fff; border-radius: var(--r-kachel); }
.so-start time { background: var(--orange); }

/* ===== Fortbildungen, Raeume, Karriere ===== */
.bfb-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "liste liste foto foto" "liste liste auftrag auftrag" "raum schulung schulung karriere"; }
.bfb-liste { grid-area: liste; padding: clamp(24px, 3.4vw, 48px); }
.bfb-liste h2 { font-size: clamp(32px, 3.2vw, 46px); }
.bfb-liste > p { margin-top: 16px; color: #d6d6d3; font-size: 19px; }
.bfb-foto { grid-area: foto; min-height: 260px; }
.bfb-auftrag { grid-area: auftrag; }
.bfb-auftrag h3, .bfb-raum h2, .bfb-karriere h2 { font-size: clamp(24px, 2.2vw, 30px); }
.bfb-auftrag p, .bfb-raum p, .bfb-karriere p { margin-top: 12px; color: var(--text-2); }
.bfb-auftrag .knopf { margin-top: 22px; }
.bfb-raum { grid-area: raum; display: flex; flex-direction: column; align-items: flex-start; }
.bfb-schulung { grid-area: schulung; min-height: 260px; }
.bfb-karriere { grid-area: karriere; display: flex; flex-direction: column; align-items: flex-start; }
.bfb-raum .textlink, .bfb-karriere .textlink { margin-top: auto; padding-top: 14px; }
@media (max-width: 999px) {
  .bfb-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "liste liste" "foto auftrag" "raum karriere" "schulung schulung"; }
  .bfb-schulung { aspect-ratio: 16 / 8; min-height: 0; }
}
@media (max-width: 640px) {
  .bfb-raster { grid-template-columns: 1fr; grid-template-areas: "liste" "foto" "auftrag" "schulung" "raum" "karriere"; }
  .bfb-foto { min-height: 0; aspect-ratio: 16 / 10; }
  .bfb-schulung { aspect-ratio: 16 / 10; }
  .bfb-auftrag .knopf { width: 100%; }
}

/* ===== FAQ ===== */
.bq-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.bq-intro p { margin-top: 16px; font-size: 19px; color: var(--text-2); }
.bq-liste { padding-block: 6px; }
.bq-liste .faq { border-top: 0; }
.bq-liste .faq-eintrag:last-child { border-bottom: 0; }
.bq-liste .faq-eintrag summary::after { background-color: var(--flaeche); }
@media (max-width: 860px) { .bq-raster { grid-template-columns: 1fr; } }

/* ===== Anmeldung ===== */
.ban-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "intro karte" "foto karte"; }
.ban-intro { grid-area: intro; }
.ban-intro h2 { font-size: clamp(38px, 4.4vw, 62px); letter-spacing: -0.03em; line-height: 1; }
.ban-intro .an-lead { margin-top: 20px; font-size: 19px; color: var(--text-2); }
.ban-intro .an-tel { margin-top: 20px; font-size: 18px; }
.ban-intro .an-tel a { font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ban-foto { grid-area: foto; min-height: 220px; }
.ban-foto > img { object-position: 50% 78%; }
.ban-karte { grid-area: karte; padding: clamp(24px, 3.4vw, 48px); }
@media (max-width: 999px) {
  .ban-raster { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "intro" "karte"; }
  .ban-foto { display: none; }
}
@media (max-width: 560px) { .ban-karte { padding: 24px 18px; } }

.fuss { margin-top: clamp(24px, 3vw, 40px); }
