/* ==========================================================================
   Rettungsdienst Spree-Neiße GmbH — Redesign 2026
   Styleguide: Rot #BC1010 · Blau #004799 · Navy #061746 · Dunkelblau #08236A
   Fonts: Barlow Semi Condensed (Headlines) · Open Sans (Body) · Roboto Condensed (Labels)
   ========================================================================== */

@import url('../fonts/fonts.css');
/* Handschrift der Kampagne „bereit,“ (seit 01.12.2026). Hier statt in
   fonts.css, weil fonts.css ohne Versionsmarke sieben Tage im Cache liegt. */
@font-face{font-family:'Caveat';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/caveat-700-latin.woff2') format('woff2');}

:root {
  --rot: #BC1010;
  --rot-dunkel: #9a0d0d;
  --blau: #004799;
  --navy: #061746;
  --dunkel: #08236A;
  --tint: rgba(0, 71, 153, .10);
  --hairline: rgba(6, 23, 70, .10);
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --text: #061746;
  --text-soft: rgba(6, 23, 70, .72);
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, .85);

  --f-head: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Open Sans', 'Segoe UI', sans-serif;
  --f-label: 'Roboto Condensed', 'Arial Narrow', sans-serif;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-soft: 0 24px 60px -24px rgba(6, 23, 70, .22);
  --shadow-card: 0 10px 40px -18px rgba(6, 23, 70, .25);

  --header-h: 84px;
  --pad-x: clamp(20px, 5vw, 72px);
  --max-w: 1320px;
}

/* --------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection { background: var(--blau); color: #fff; }

:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ------------------------------ Typography ------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--navy);
  text-wrap: balance;
}
.h-display { font-size: clamp(44px, 7.2vw, 108px); letter-spacing: .005em; }
.h-1 { font-size: clamp(38px, 5.4vw, 78px); }
.h-2 { font-size: clamp(30px, 4vw, 56px); }
.h-3 { font-size: clamp(22px, 2.4vw, 32px); }
.h-accent { color: var(--blau); }
.tt-none { text-transform: none !important; }
.h-accent-rot { color: var(--rot); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }

.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-soft); max-width: 62ch; }
p { max-width: 68ch; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-label); font-weight: 500;
  font-size: 13px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--blau); margin-bottom: 22px;
}
.on-dark .eyebrow { color: rgba(255, 255, 255, .8); }

/* -------------------------------- Layout --------------------------------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(90px, 11vw, 160px); position: relative; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(0, 71, 153, .55), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(188, 16, 16, .28), transparent 60%),
    var(--navy);
  color: var(--white-soft);
}
.section-dark p { color: rgba(255, 255, 255, .78); }

.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 5vw, 90px); align-items: center;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }

/* ------------------------------- Buttons --------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-label); font-weight: 500;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 8px 8px 28px; border-radius: 999px;
  transition: transform .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn .btn-ic {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  transition: transform .5s var(--ease), background-color .5s var(--ease);
}
.btn .btn-ic svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover .btn-ic svg { transform: translate(2px, -2px); }

.btn-rot { background: var(--rot); color: #fff; }
.btn-rot .btn-ic { background: rgba(255, 255, 255, .16); }
.btn-rot:hover { background: var(--rot-dunkel); }

.btn-blau { background: var(--blau); color: #fff; }
.btn-blau .btn-ic { background: rgba(255, 255, 255, .16); }
.btn-blau:hover { background: var(--dunkel); }

.btn-ghost { border: 1.5px solid var(--hairline); color: var(--navy); background: transparent; }
.btn-ghost .btn-ic { background: var(--tint); }
.btn-ghost:hover { border-color: var(--blau); }
.on-dark .btn-ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.on-dark .btn-ghost .btn-ic { background: rgba(255, 255, 255, .12); }
.on-dark .btn-ghost:hover { border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-label); font-weight: 500; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rot);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .45s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* -------------------------------- Header --------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease),
              backdrop-filter .5s var(--ease), height .5s var(--ease);
  height: var(--header-h);
}
.site-header .wrap {
  max-width: none; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--hairline), 0 18px 40px -30px rgba(6, 23, 70, .35);
}

/* Logo mit Leitsatz wie in Signatur und Info-Roll-ups. --lw ist die Breite
   des Logos, alle Masse des Satzes haengen daran (Block unten bei Kampagne). */
.brand { --lw: 144px; display: flex; flex-direction: column; align-items: flex-start; flex: none; }
.brand img { width: var(--lw); height: auto; transition: opacity .4s var(--ease); }
.brand .logo-dark { display: block; }
.brand .logo-light { display: none; }
header.on-hero:not(.is-solid) .logo-dark { display: none; }
header.on-hero:not(.is-solid) .logo-light { display: block; }

.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.main-nav a {
  position: relative;
  font-family: var(--f-label); font-weight: 500; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); padding: 8px 2px;
  transition: color .4s var(--ease);
}
/* Ohne roten Unterstrich (Kampagne bereit, 01.12.2026): Die aktuelle Seite
   und der Zeiger zeigen sich nur noch ueber die Schriftfarbe. */
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--rot); }
header.on-hero:not(.is-solid) .main-nav a { color: rgba(255, 255, 255, .78); }
header.on-hero:not(.is-solid) .main-nav a:hover,
header.on-hero:not(.is-solid) .main-nav a[aria-current="page"] { color: #fff; }

.nav-cta { flex: none; }
.nav-cta .btn { padding: 6px 6px 6px 22px; }
.nav-cta .btn .btn-ic { width: 36px; height: 36px; }

/* Burger */
.burger {
  display: none; position: relative; z-index: 1002;
  width: 48px; height: 48px; border-radius: 50%;
  place-items: center;
}
.burger span {
  position: absolute; left: 13px; width: 22px; height: 2px; border-radius: 2px;
  background: var(--navy);
  transition: transform .45s var(--ease), background-color .3s, top .45s var(--ease), opacity .3s;
}
header.on-hero:not(.is-solid) .burger span { background: #fff; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
body.menu-open .burger span { background: #fff !important; }
body.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(6, 23, 70, .96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s .5s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.mobile-menu nav { display: grid; gap: 6px; text-align: center; }
.mobile-menu a {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 8vw, 52px); color: #fff; line-height: 1.25;
  display: block; padding: 4px 20px;
  transform: translateY(40px); opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease), color .3s;
}
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: #ff8a8a; }
body.menu-open .mobile-menu a { transform: translateY(0); opacity: 1; }
.mobile-menu .mm-meta {
  margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  transform: translateY(30px); opacity: 0;
  transition: transform .7s var(--ease) .35s, opacity .7s var(--ease) .35s;
}
body.menu-open .mobile-menu .mm-meta { transform: translateY(0); opacity: 1; }

body.menu-open { overflow: hidden; }

/* ------------------------------ Notfall-Chips ----------------------------- */
.notruf-row { display: flex; gap: 14px; flex-wrap: wrap; }
.notruf-chip {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 14px; border-radius: 16px;
  color: #fff; box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.notruf-chip:hover { transform: translateY(-3px); }
.notruf-chip.rot { background: linear-gradient(135deg, #d31414, var(--rot)); }
.notruf-chip.blau { background: linear-gradient(135deg, #0a5cbb, var(--blau)); }
.notruf-chip .nc-ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: rgba(255, 255, 255, .16); display: grid; place-items: center;
}
.notruf-chip .nc-ic svg { width: 20px; height: 20px; }
.notruf-chip strong {
  display: block; font-family: var(--f-head); font-weight: 700;
  font-size: 24px; line-height: 1; letter-spacing: .02em;
}
.notruf-chip small {
  display: block; font-family: var(--f-label); font-weight: 500;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .85;
  margin-top: 3px;
}

/* --------------------------------- Hero ----------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(6, 23, 70, .92) 0%, rgba(6, 23, 70, .45) 34%, rgba(6, 23, 70, .2) 60%, rgba(6, 23, 70, .55) 100%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding-bottom: clamp(56px, 8vh, 110px); padding-top: calc(var(--header-h) + 40px);
}
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero h1 { color: #fff; }
.hero .hero-sub {
  margin-top: 26px; max-width: 56ch;
  color: rgba(255, 255, 255, .82); font-size: clamp(16px, 1.3vw, 19px);
}
.hero .notruf-row { margin-top: 38px; }

/* Sub-page hero */
.hero-sub-page { min-height: clamp(520px, 78svh, 820px); }

/* ------------------------------ Dive (RTW) -------------------------------- */
.dive { position: relative; background: var(--navy); }
.dive-stage { position: relative; height: 100svh; overflow: clip; }
.dive-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dive-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(6, 23, 70, .55) 100%);
}
.dive-caption {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; text-align: center;
  padding: 0 var(--pad-x); pointer-events: none;
}
.dive-caption > div {
  opacity: 0; visibility: hidden; position: absolute; max-width: 900px;
  padding: clamp(30px, 5vw, 70px) clamp(26px, 5vw, 80px); border-radius: 40px;
}
/* Schleier hinter den Einblendungen.

   Die Bildflaeche wird zu der Seite hin dunkler, auf der die Einblendung
   steht — ueber die ganze Hoehe, ohne sichtbare Kante, wie im Filmvorspann.
   Grund: Der vorherige runde Schleier war so dezent, dass die Lesbarkeit
   praktisch am Schlagschatten hing und damit davon abhing, welches Bild der
   Sequenz gerade unter dem Text steht. Ueber den Sichtbarkeitsbereich gemessen
   lief die linke Einblendung mit 4,73:1 hart an der AA-Grenze (helle Fassade,
   rot-gelb gestreifte Tuer), die mittlere bei 12,6 und die rechte bei 7,2.

   RUECKFALLEBENE: `<section class="dive schleier-rund">` im Template stellt die
   vorherige Fassung wieder her (runder Schleier, Fliesstext 85 %). Die Regeln
   dafuer stehen unten, hinter der Medienabfrage. */
.dive-caption { --schleier-weich: 250px; }
/* Mittige Einblendung: ein Band ueber die volle Breite, das nach oben und
   unten ausblendet. Ein runder Schleier faellt zu den Wortenden hin ab — und
   genau dort steht beim Heck des RTW die gelb-rote Warnbeklebung, in der das
   letzte Wort der Ueberschrift verschwand. */
.dive-caption > div::before {
  content: ''; position: absolute; z-index: -1; border-radius: 0; filter: none;
  inset-block: calc(var(--schleier-weich) * -1.04);
  left: 50%; width: 220vw; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent 0,
    rgba(6, 23, 70, .74) var(--schleier-weich),
    rgba(6, 23, 70, .74) calc(100% - var(--schleier-weich)), transparent 100%);
}
/* Seitliche Einblendungen: Der Verlauf laeuft vom Bildrand nach innen aus. Die
   Farbmarken sind in Pixeln ab der INNEN liegenden Kante gesetzt, damit der
   Ausklang unabhaengig von der Fensterbreite immer an derselben Stelle
   neben dem Text sitzt. */
.dive-caption > div.cap-lead::before {
  inset-block: -150vh;
  left: -100vw; right: auto; width: calc(100vw + 100% + 260px); transform: none;
  background: linear-gradient(to left, transparent 0, rgba(6, 23, 70, .34) 200px,
    rgba(6, 23, 70, .66) 440px, rgba(6, 23, 70, .82) 660px, rgba(6, 23, 70, .82) 100%);
}
.dive-caption > div.cap-trail::before {
  inset-block: -150vh;
  left: auto; right: -100vw; width: calc(100vw + 100% + 260px); transform: none;
  background: linear-gradient(to right, transparent 0, rgba(6, 23, 70, .34) 200px,
    rgba(6, 23, 70, .66) 440px, rgba(6, 23, 70, .82) 660px, rgba(6, 23, 70, .82) 100%);
}
/* Der rote Strich steht IMMER links vom Text — auch bei der rechtsbuendigen
   Einblendung. Einen Anstrich spiegelt man nicht.

   Dafuer laeuft er hier als Teil der ersten Textzeile mit (inline-block) statt
   als eigene Spalte neben dem Textblock. Als Spalte sass er neben dem GANZEN
   Block: Sobald der Text auf zwei Zeilen umbrach, war der Kasten so breit wie
   der verfuegbare Platz, die Zeilen rutschten nach rechts oder in die Mitte —
   und der Strich blieb weit links zurueck. In der Zeile dagegen steht er unter
   allen Umstaenden 14 px vor dem ersten Wort, gleich wie breit das Fenster ist
   und auf wie viele Zeilen der Text faellt.

   Kleine Versalien sind ausserdem die empfindlichste Textgroesse auf bewegtem
   Grund: Der enge, dunkle Schatten traegt sie ueber helle Stellen, ohne das
   Bild dafuer weiter abdunkeln zu muessen. */
.dive-caption .eyebrow {
  display: block; color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 3px rgba(6, 23, 70, .72);
}
.dive-caption h2 {
  color: #fff; font-size: clamp(34px, 5.6vw, 84px);
  text-shadow: 0 8px 40px rgba(6, 23, 70, .55);
}
.dive-caption p {
  margin: 18px auto 0; color: rgba(255, 255, 255, .92);
  font-size: clamp(15px, 1.3vw, 19px); max-width: 52ch;
  text-shadow: 0 1px 3px rgba(6, 23, 70, .66), 0 4px 24px rgba(6, 23, 70, .6);
}
.dive-caption > div.cap-lead {
  left: var(--pad-x); right: auto; text-align: left; max-width: 640px;
}
.dive-caption > div.cap-lead p { margin-left: 0; }
.dive-caption > div.cap-trail {
  right: var(--pad-x); left: auto; text-align: right; max-width: 640px;
}
.dive-caption > div.cap-trail p { margin-right: 0; }
@media (max-width: 768px) {
  .dive-caption > div.cap-lead, .dive-caption > div.cap-trail {
    left: auto; right: auto; text-align: center; max-width: 900px;
  }
  .dive-caption > div.cap-lead p { margin-inline: auto; }
  .dive-caption > div.cap-trail p { margin-inline: auto; }
  /* Mittig stehender Text braucht das mittige Band — eine seitliche Abdunklung
     waere hier unsymmetrisch zum Text. Der Ausklang faellt kuerzer aus, sonst
     frisst er auf einem Handy die halbe Bildhoehe. */
  .dive-caption { --schleier-weich: 150px; }
  .dive-caption > div.cap-lead::before,
  .dive-caption > div.cap-trail::before {
    inset-block: calc(var(--schleier-weich) * -1.04);
    left: 50%; right: auto; width: 220vw; transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent 0,
      rgba(6, 23, 70, .74) var(--schleier-weich),
      rgba(6, 23, 70, .74) calc(100% - var(--schleier-weich)), transparent 100%);
  }
}

/* Rueckfallebene fuer den SCHLEIER, siehe Erlaeuterung oben. Aktivieren ueber
   `class="dive schleier-rund"` am <section> in
   admin/site-templates/seiten/index.html. Steht bewusst hinter der
   Medienabfrage und mit hoeherer Spezifitaet, damit sie in jeder Breite greift.

   Die Lage des roten Strichs gehoert NICHT dazu: Er steht immer links vom Text
   und laeuft in der ersten Zeile mit — das war vorher falsch, nicht Geschmack. */
.dive.schleier-rund .dive-caption > div::before,
.dive.schleier-rund .dive-caption > div.cap-lead::before,
.dive.schleier-rund .dive-caption > div.cap-trail::before {
  inset: -12%; width: auto; transform: none;
  border-radius: 50%; filter: blur(6px);
  background: radial-gradient(closest-side, rgba(6, 23, 70, .62), rgba(6, 23, 70, .34) 55%, transparent);
}
.dive.schleier-rund .dive-caption p {
  color: rgba(255, 255, 255, .85); text-shadow: 0 4px 24px rgba(6, 23, 70, .6);
}
.dive.schleier-rund .dive-caption .eyebrow {
  color: rgba(255, 255, 255, .85); text-shadow: none;
}

/* ------------------------------ Media frames ------------------------------ */
.media-frame {
  position: relative;
  padding: 10px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(0, 71, 153, .10), rgba(188, 16, 16, .08));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}
.media-frame > .mf-inner {
  border-radius: calc(var(--radius) - 8px); overflow: hidden; position: relative;
  transform: translateZ(0);
}
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; }
.media-frame .mf-inner img { transition: transform 1.2s var(--ease); }
.media-frame:hover .mf-inner img { transform: scale(1.04); }

/* ------------------------------ Service cards ----------------------------- */
.svc-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: clip;
  background: #fff; border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  min-height: 100%;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 34px 70px -30px rgba(6, 23, 70, .4); }
.svc-card .sc-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.svc-card .sc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.svc-card:hover .sc-media img { transform: scale(1.06); }
.svc-card .sc-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 23, 70, .45), transparent 55%);
}
.svc-card .sc-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--f-label); font-weight: 500; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255, 255, 255, .92); color: var(--blau);
  padding: 7px 13px; border-radius: 999px;
}
.svc-card .sc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.svc-card h3 { font-size: 26px; }
.svc-card p { color: var(--text-soft); font-size: 15px; flex: 1; }

/* -------------------------------- Counters -------------------------------- */
/* ------------------------- Zahlen: Band statt Kaesten ---------------------
   Vorher standen hier fuenf gleich aussehende Kaesten in einem Dreierraster.
   Das hatte drei Schwaechen: Fuenf Kacheln in drei Spalten lassen unten rechts
   ein Loch; fuenf identisch behandelte Kaesten geben keiner Zahl ein Gewicht;
   und der Abschnitt war ueber tausend Bildpunkte hoch fuer fuenf Zahlen.

   Jetzt ist es EIN durchgehendes Band mit Haarlinien dazwischen — dieselbe
   Sprache wie die uebrigen roten Haarlinien der Seite, aber ohne Kastenrahmen.
   Die Karte des Landkreises liegt als leiser Hintergrund dahinter; sie ist
   dasselbe Motiv wie auf der Leistungsseite und bindet die Zahlen an das
   Gebiet, um das es geht. */
.zahlen { position: relative; overflow: clip; }
.zahlen-karte {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  width: min(42vw, 560px); opacity: .5; pointer-events: none;
  /* Die Karte ist dunkelblau auf Schwarz. Auf dem Navy der Sektion hat die
     Kreisflaeche dadurch kaum Kontrast — mehr Deckkraft macht sie nur milchig,
     sichtbar wird vor allem das Schwarz. Mit `screen` faellt das Schwarz weg
     und nur die helleren Teile leuchten auf dem Grund: Umriss und Strassen
     treten hervor, ohne dass ein Kasten entsteht. */
  mix-blend-mode: screen;
  z-index: 0; user-select: none;
}
.zahlen-pin { position: relative; z-index: 1; }

.stats-band {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-block: 1px solid rgba(255, 255, 255, .16);
}
/* Die Klasse .stat bleibt: Daran haengen der Zaehler und die rote Linie, die
   sich synchron dazu zeichnet (siehe main.js). Nur das Kastenkleid faellt weg,
   die Haarlinie zwischen den Spalten tritt an seine Stelle. */
.stat {
  padding: clamp(26px, 2.6vw, 40px) clamp(12px, 1.6vw, 24px);
  border-inline-start: 1px solid rgba(255, 255, 255, .16);
}
.stats-band .stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b {
  display: block; font-family: var(--f-head); font-weight: 700;
  /* Der Deckel liegt bei 50 px, nicht hoeher: Der Inhaltsbereich hoert bei
     1320 px auf zu wachsen (--max-w), die Schrift mit 3,4vw aber nicht. Auf
     breiten Bildschirmen wurde die Spalte dadurch relativ immer enger, und
     „+21 Tsd." brach ab etwa 1600 px an der Leerstelle um. 3,4vw erreicht
     50 px genau dort, wo der Container seine Grenze hat. */
  font-size: clamp(36px, 3.4vw, 50px); line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat b sub { font-size: .45em; vertical-align: baseline; color: #ff8a8a; }
.stat span {
  display: block; margin-top: 12px;
  font-family: var(--f-label); font-weight: 500; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62);
}

/* Der Satz, der die groesste Zahl uebersetzt. Eine Zahl allein sagt wenig;
   „alle 25 Minuten" sagt, was einundzwanzigtausend Einsaetze bedeuten.
   Die rote Hervorhebung liegt als Unterstreichung AM TEXT und nicht als
   eigener Balken darunter: Ein Balken mit display:block zerschneidet den
   Satz mitten im Lesen. */
.zahlen-fazit {
  margin: 0; max-width: 44ch;
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(20px, 2vw, 28px); line-height: 1.4;
  color: rgba(255, 255, 255, .78);
}
.zahlen-fazit b {
  color: #fff;
}

/* Der Weiterlesen-Knopf sitzt neben dem Fazit statt darunter — das spart eine
   Zeile Leerraum und schliesst den Abschnitt ab, statt ihn auslaufen zu
   lassen. */
.zahlen-schluss {
  margin-top: clamp(30px, 3vw, 44px);
  display: flex; flex-wrap: wrap; gap: 26px 48px; align-items: center;
  justify-content: space-between;
}
/* Bricht der Knopf in die naechste Zeile, rutscht er nach rechts an die Kante
   des Zahlenbands. Sonst staende alles linksbuendig uebereinander und die
   rechte Haelfte des Abschnitts waere leer. */
.zahlen-schluss > .btn { margin-inline-start: auto; }

@media (max-width: 1100px) {
  .stats-band { grid-template-columns: repeat(3, 1fr); }
  /* In der zweiten Reihe eine Haarlinie darueber, damit aus dem Umbruch ein
     Raster wird und kein abgerissener Rest. */
  .stats-band .stat:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .stats-band .stat:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  /* Anteilig waere die Karte hier fast halb so breit wie das Fenster und
     traete vor die Zahlen; mit der Mischblende faellt das noch staerker auf. */
  .zahlen-karte { width: min(40vw, 400px); opacity: .34; right: -6%; }
}

@media (max-width: 640px) {
  /* Auf dem Handy wird aus dem Band eine LISTE: Zahl links, Bezeichnung
     rechts daneben, eine Zeile je Wert.

     Zwei Spalten gingen hier nicht auf. Fuenf Werte ergeben zwei volle Zeilen
     und einen Rest; laesst man den Rest ueber beide Spalten laufen, steht die
     letzte Zahl allein vor einer leeren rechten Haelfte, und laesst man es
     bleiben, klafft dort ein Loch. Nebeneinander gelesen ist die Liste
     ausserdem nur halb so hoch: Zahl und Bezeichnung teilen sich eine Zeile,
     statt untereinander zu stehen. */
  .stats-band { grid-template-columns: 1fr; }
  .stats-band .stat {
    display: grid; grid-template-columns: minmax(92px, 33%) 1fr;
    align-items: center; gap: 0 18px;
    padding: 15px 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  .stats-band .stat:first-child { border-top: 0; }
  .stats-band .stat b { font-size: 33px; }
  .stats-band .stat span { margin-top: 0; }
  .zahlen-karte { display: none; }
  .zahlen-fazit { max-width: none; }
}

/* Sehr schmale Geraete (iPhone SE und aehnlich). Der laengste Wert ist
   „+21 Tsd."; bei 33 Bildpunkten Schriftgroesse passt er in die Zahlenspalte
   nicht mehr und bricht mitten im Wert um. Zahl etwas kleiner, Spalte etwas
   breiter, Abstand enger — dann steht jeder Wert wieder in einer Zeile. */
@media (max-width: 360px) {
  .stats-band .stat {
    grid-template-columns: minmax(84px, 41%) 1fr;
    gap: 0 12px;
  }
  .stats-band .stat b { font-size: 27px; }
  .stats-band .stat span { font-size: 11px; letter-spacing: .1em; }
}

/* ------------------------------ Wachen scroller --------------------------- */
.wachen { background: var(--bg-soft); overflow: clip; position: relative; }
.wachen-map {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(52vw, 760px); opacity: .07; pointer-events: none; z-index: 0;
}
.wachen-pin { position: relative; z-index: 1; }
.wachen-head { padding-top: clamp(90px, 11vw, 150px); padding-bottom: 40px; }
.wachen-track-outer { overflow: visible; padding-bottom: clamp(90px, 10vw, 140px); }
.wachen-track {
  display: flex; gap: clamp(18px, 2vw, 28px);
  padding-inline: var(--pad-x);
  width: max-content;
}
.wache-card {
  width: clamp(300px, 30vw, 420px); flex: none;
  border-radius: var(--radius); overflow: clip; background: #fff;
  border: 1px solid var(--hairline); box-shadow: var(--shadow-card);
  position: relative;
}
.wache-card .wc-media { aspect-ratio: 16 / 10.5; overflow: hidden; position: relative; }
.wache-card .wc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.wache-card:hover .wc-media img { transform: scale(1.05); }
.wache-card .wc-num {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--f-head); font-weight: 700; font-size: 15px;
  background: var(--rot); color: #fff; border-radius: 10px;
  padding: 5px 11px; letter-spacing: .06em;
}
.wache-card .wc-body { padding: 20px 22px 24px; }
.wache-card h3 { font-size: 21px; }
.wache-card .wc-adr {
  margin-top: 8px; font-size: 14px; color: var(--text-soft);
  display: flex; gap: 9px; align-items: flex-start; max-width: none;
}
.wache-card .wc-adr svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--rot); }
.wachen-bar {
  margin: 34px var(--pad-x) 0; height: 3px; border-radius: 3px;
  background: rgba(6, 23, 70, .12); overflow: hidden; max-width: 420px;
}
.wachen-bar i {
  display: block; height: 100%; width: 100%;
  background: var(--rot); transform: scaleX(0); transform-origin: left;
}

/* ------------------------------ Split feature ----------------------------- */
.feature-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 90px); align-items: center; }
.feature-split.reverse > .fs-media { order: 2; }
.feature-split .fs-media { position: relative; }

/* ------------------------------ Values grid ------------------------------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.values-grid.vg-2 { grid-template-columns: repeat(2, 1fr); }
.value-card {
  padding: 30px 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease);
}
.value-card:hover { transform: translateY(-6px); }
.value-card .vc-num {
  font-family: var(--f-head); font-weight: 700; font-size: 15px;
  color: var(--rot); letter-spacing: .1em; display: block; margin-bottom: 12px;
}
.value-card h3 { font-size: 23px; margin-bottom: 10px; }
.value-card p { font-size: 15px; color: var(--text-soft); }

.section-dark .value-card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.section-dark .value-card h3 { color: #fff; }
.section-dark .value-card p { color: rgba(255, 255, 255, .72); }
.section-dark .value-card .vc-num { color: #ff8a8a; }

/* ------------------------------- Accordion -------------------------------- */
.acc { display: grid; gap: 14px; }
.acc-item {
  border-radius: var(--radius-sm); overflow: clip;
  background: #fff; border: 1px solid var(--hairline);
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.acc-item.open { box-shadow: var(--shadow-card); border-color: rgba(0, 71, 153, .3); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 26px; text-align: left;
}
.acc-btn .acc-title {
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  font-size: clamp(17px, 1.5vw, 21px); color: var(--navy); line-height: 1.25;
}
.acc-btn .acc-ic {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--tint); display: grid; place-items: center;
  transition: transform .5s var(--ease), background-color .4s;
}
.acc-btn .acc-ic svg { width: 15px; height: 15px; color: var(--blau); transition: color .3s; }
.acc-item.open .acc-ic { transform: rotate(45deg); background: var(--rot); }
.acc-item.open .acc-ic svg { color: #fff; }
.acc-panel { height: 0; overflow: hidden; }
.acc-panel-in {
  padding: clamp(20px, 3vw, 30px) clamp(18px, 2.6vw, 28px) clamp(24px, 3vw, 32px);
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  color: var(--text-soft); display: grid; gap: 14px;
}
/* Erster Absatz als Lead: gibt der Textflaeche eine Hierarchie */
.acc-panel-in > p:first-child {
  font-size: clamp(15.5px, 1.2vw, 17px); color: var(--text);
  line-height: 1.6; max-width: 66ch;
}
.acc-panel-in > p { max-width: 66ch; font-size: 15px; }
/* Zwischenueberschriften als Label */
.acc-panel-in h4 {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-label); font-weight: 500;
  font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blau); margin-top: 8px;
}
.acc-panel-in h4:first-child { margin-top: 0; }
/* Listen als strukturierte Zellen statt Textzeilen */
.acc-panel-in ul { display: grid; gap: 10px; }
.acc-panel-in ul li {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 14.5px; line-height: 1.5; color: var(--text);
}
.acc-panel-in ul li::before {
  content: ''; width: 10px; height: 3px; margin-top: .55em;
  border-radius: 2px; background: var(--rot); flex: none;
}
@media (min-width: 720px) {
  .acc-panel-in ul { grid-template-columns: 1fr 1fr; }
}
/* Desktop: Absatz-Panels fliessen zweispaltig (Lead + CTA volle Breite);
   Panels mit h4-Blöcken nutzen stattdessen .acc-cols */
@media (min-width: 980px) {
  .acc-panel-in:not(:has(h4)) {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(32px, 4vw, 56px);
    align-items: start;
  }
  .acc-panel-in:not(:has(h4)) > p:first-child,
  .acc-panel-in:not(:has(h4)) > ul,
  .acc-panel-in:not(:has(h4)) > .link-arrow { grid-column: 1 / -1; }
}
.acc-cols { display: grid; gap: 14px; margin-top: 6px; }
.acc-cols > div { display: grid; gap: 12px; align-content: start; }
.acc-cols h4 { margin-top: 0; }
/* Die Eckdaten stehen direkt darüber — ohne Abstand kleben die Überschriften
   an den Karten und die beiden Blöcke verschwimmen zu einem. */
.stelle-eckdaten + .acc-cols { margin-top: clamp(18px, 2vw, 26px); }
@media (min-width: 900px) {
  .acc-cols { grid-template-columns: 1fr 1fr; gap: clamp(28px, 3.5vw, 52px); }
}

/* CTA als vollwertiger Button statt Textlink */
.acc-panel-in .link-arrow {
  justify-self: start; margin-top: 8px;
  background: var(--rot); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.acc-panel-in .link-arrow:hover { background: var(--rot-dunkel); }
.acc-panel-in .link-arrow:hover svg { transform: translateX(4px); }
.acc-panel-in .link-arrow:active { transform: scale(.97); }

/* -------------------------------- FAQ page -------------------------------- */
.notruf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.notruf-card {
  border-radius: var(--radius); padding: 30px 28px; color: #fff;
  box-shadow: var(--shadow-card); position: relative; overflow: clip;
}
.notruf-card.rot { background: linear-gradient(150deg, #d31414, var(--rot-dunkel)); }
.notruf-card.blau { background: linear-gradient(150deg, #0a5cbb, var(--blau)); }
.notruf-card.navy { background: linear-gradient(150deg, #12307e, var(--navy)); }
.notruf-card h4 { color: #fff; font-size: clamp(40px, 4vw, 58px); line-height: 1; }
.notruf-card h5 {
  color: rgba(255, 255, 255, .85); font-family: var(--f-label); font-weight: 500;
  letter-spacing: .18em; font-size: 12px; margin-bottom: 12px;
}
.notruf-card p { margin-top: 14px; font-size: 14.5px; color: rgba(255, 255, 255, .85); }
.notruf-card svg.bg {
  position: absolute; right: -20px; bottom: -20px; width: 130px; height: 130px;
  opacity: .12; color: #fff;
}

.kh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kh-card {
  padding: 22px 24px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--hairline);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.kh-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.kh-card h4 { font-size: 19px; margin-bottom: 5px; color: var(--blau); }
.kh-card p { font-size: 14px; color: var(--text-soft); }

.w5-list { display: grid; gap: 12px; counter-reset: wfrage; max-width: 560px; }
.w5-list li {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 16px 20px; font-family: var(--f-head); font-weight: 600;
  text-transform: uppercase; font-size: clamp(16px, 1.5vw, 20px); color: var(--navy);
}
.w5-list li::before {
  counter-increment: wfrage; content: counter(wfrage);
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--rot); color: #fff; display: grid; place-items: center;
  font-size: 17px;
}

/* ------------------------------ Aktuelles --------------------------------- */
.news-list { display: grid; gap: clamp(28px, 3vw, 44px); }
.news-card {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 3vw, 44px);
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 40px); box-shadow: var(--shadow-card);
  position: relative;
}
.news-date {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.news-date b {
  font-family: var(--f-head); font-weight: 700; font-size: clamp(30px, 2.6vw, 42px);
  color: var(--rot); text-transform: uppercase; line-height: 1;
}
.news-date span {
  font-family: var(--f-label); font-weight: 500; letter-spacing: .22em;
  color: var(--text-soft); font-size: 14px;
}
.news-date::after {
  content: ''; width: 44px; height: 3px; background: var(--tint);
  border-radius: 2px; margin-top: 14px;
}
.news-body h3 { font-size: clamp(21px, 2vw, 28px); margin-bottom: 14px; }
.news-body p { color: var(--text-soft); font-size: 15.5px; margin-bottom: 12px; }
.news-body p:last-of-type { margin-bottom: 0; }
/* Bilder behalten ihr natuerliches Seitenverhaeltnis: gleiche Zeilenhoehe,
   Hochformat wird schmal, Querformat breit — nichts wird abgeschnitten */
.news-media { margin: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
/* Grid-Trick: die Spurbreite folgt dem Bild, die Caption wrappt auf
   Bildbreite (width:0 + min-width:100%) und kann die Figure nie aufziehen */
.news-media figure {
  display: grid; justify-items: start;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--hairline); margin: 0;
  max-width: 100%;
}
.news-media img {
  height: clamp(220px, 24vw, 340px); width: auto; max-width: 100%;
  object-fit: cover; display: block;
}
.news-media figcaption {
  width: 0; min-width: 100%; box-sizing: border-box;
  font-size: 12.5px; color: var(--text-soft); padding: 10px 14px;
  background: var(--bg-soft);
}
@media (max-width: 768px) {
  .news-media img { height: auto; max-height: 380px; }
  .news-media figure { width: 100%; }
  .news-media img { width: 100%; object-fit: contain; background: var(--bg-soft); }
}
.news-body .link-arrow { margin-top: 16px; }

/* ------------------------------ Legal pages ------------------------------- */
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: clamp(24px, 2.4vw, 34px); margin: 48px 0 16px; }
.legal-body h3 { font-size: clamp(19px, 1.8vw, 24px); margin: 34px 0 12px; }
.legal-body h4 { font-size: 17px; margin: 26px 0 10px; }
.legal-body p { margin-bottom: 14px; color: var(--text-soft); max-width: none; }
.legal-body ul { margin: 0 0 14px; display: grid; gap: 8px; }
.legal-body ul li { position: relative; padding-left: 22px; color: var(--text-soft); }
.legal-body ul li::before {
  content: ''; position: absolute; left: 0; top: .6em; width: 10px; height: 3px;
  border-radius: 2px; background: var(--rot);
}
.legal-body a { color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }

.info-card {
  border-left: 4px solid var(--rot); background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px; margin-top: 40px;
}
.info-card h3 { margin: 0 0 8px; }
.info-card p { margin: 0; }

/* -------------------------------- Footer ---------------------------------- */
.site-footer {
  background:
    radial-gradient(900px 480px at 110% -20%, rgba(0, 71, 153, .5), transparent 60%),
    var(--navy);
  color: rgba(255, 255, 255, .78);
  padding: clamp(70px, 8vw, 110px) 0 0;
  position: relative; overflow: clip;
}
.site-footer .f-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(30px, 4vw, 60px); padding-bottom: 60px;
}
.site-footer h3 {
  color: #fff; font-size: 15px; font-family: var(--f-label); font-weight: 500;
  letter-spacing: .24em; margin-bottom: 20px;
}
.site-footer .f-brand .marke { --lw: 184px; display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 22px; }
.site-footer .f-brand .marke img { width: var(--lw); height: auto; display: block; }
.site-footer .f-brand p { font-size: 14.5px; max-width: 36ch; }
.site-footer ul { display: grid; gap: 10px; font-size: 15px; }
.site-footer ul a { transition: color .3s; }
.site-footer ul a:hover { color: #fff; }
.site-footer .f-partner { display: grid; gap: 18px; }
.site-footer .f-partner .fp-item { display: flex; align-items: center; gap: 14px; }
.site-footer .f-partner img.wappen { height: 54px; width: auto; }
.site-footer .f-partner img.mul { height: 30px; width: auto; }
.site-footer .f-partner b { color: #fff; font-family: var(--f-head); text-transform: uppercase; font-weight: 600; font-size: 16px; line-height: 1.25; display: block; }
.site-footer .f-partner small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--f-label); color: rgba(255,255,255,.55); display: block; margin-bottom: 4px; }
/* Partnerlogos, die nur als Bild auftreten (pbit, Studio 2.0). Etwas
   zurueckgenommen, damit sie den Wappen- und Schulblock nicht ueberstrahlen,
   und beim Zeigen voll da. */
.site-footer .fp-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 18px; }
.site-footer .fp-logos a { display: block; opacity: .78; transition: opacity .3s; }
.site-footer .fp-logos a:hover, .site-footer .fp-logos a:focus-visible { opacity: 1; }
.site-footer .fp-logos img { width: auto; display: block; }
/* Jedes Logo bekommt sein eigenes Mass, keine gemeinsame Hoehe: Bei pbit
   fuellt der Schriftzug nur 37 % der Bildhoehe, bei Studio 2.0 sind es 82 %.
   Gleich hoch gesetzt wuerde Studio 2.0 doppelt so gross wirken. Die Werte
   sind so gewaehlt, dass beide Schriftzuege rund 15 px hoch stehen. */
.site-footer .fp-logos .fpl-pbit { height: 40px; }
.site-footer .fp-logos .fpl-studio { height: 19px; }
.f-mps {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 28px 0; font-size: 13px; color: rgba(255, 255, 255, .55);
  position: relative;
}
.f-mps p { max-width: none; }
.f-mps a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Lange Adressen im Rechtstext (Datenschutz) muessen umbrechen duerfen,
   sonst schieben sie die Seite auf dem Handy in die Breite. */
.legal-body a, .legal-body p, .legal-body li { overflow-wrap: anywhere; }

/* Dasselbe fuer einzelne lange Woerter in Ueberschriften: Der Wort-Reveal
   steckt jedes Wort in ein inline-block-Element, und das bricht von sich aus
   NIE um. „DATENSCHUTZERKLAERUNG" war bei 38 px Schrift 409 px breit und
   schob damit die ganze Seite auf 429 px. */
.h-1 span, .h-2 span, .h-display span, .h-sub span { overflow-wrap: anywhere; }

/* ------------------------------- Otti im Footer ---------------------------
   Das Maskottchen aus dem Trickfilm zieht sich an der Linie ueber der
   Medizinproduktesicherheit hoch, klettert darueber und winkt. Die Bewegung
   ist eine echte, mit OpenArt erzeugte Trickfilmszene, aus der eine
   freigestellte Bildfolge geschnitten wurde — 48 Einzelbilder auf einem Bogen
   mit 8 Spalten und 6 Zeilen. Der Pfad haengt an dieser Datei, nicht am
   JavaScript: relativ zur CSS-Datei stimmt er auch auf den Beitragsseiten in
   Unterordnern.

   Der Bogen ist unten an der Kante geschnitten. Deshalb sitzt der Kasten mit
   seiner Unterkante genau auf der Linie, und es braucht keine Maske: Was
   unterhalb passiert, ist gar nicht erst im Bild.

   Wenn Otti da ist, braucht die Spaltenzeile darueber mehr Luft, sonst steht
   er in der Partnerzeile. */
.site-footer.hat-otti { --otti-h: clamp(92px, 9vw, 136px); }
.site-footer.hat-otti .f-grid {
  padding-bottom: calc(var(--otti-h) * 1.1400 + 30px);
}

/* Otti steht LINKS: die rechte Seite bleibt fuer die Kooperationspartner frei.

   Der Kasten ist deutlich groesser als die ruhende Figur: Beim Blick nach oben
   streckt sie sich ueber ihre Standhoehe hinaus, beim Blick zur Seite schwingt
   der Schwanz aus. --otti-h bleibt die HOEHE DER RUHENDEN FIGUR, alle anderen
   Masse rechnen sich daraus (die Faktoren kommen aus richtbau.py, das den
   gemeinsamen Bildkasten ueber alle 64 Kacheln misst). Unten schliesst der
   Kasten genau mit der Fusslinie ab, deshalb steht Otti weiterhin auf der
   Trennlinie. */
.otti {
  position: absolute; bottom: 100%;
  left: calc(6% - var(--otti-h) * 0.0017);
  width: calc(var(--otti-h) * 1.0472);
  height: calc(var(--otti-h) * 1.1400);
  pointer-events: none; z-index: 2;
}
.otti > * { position: absolute; display: block; background-repeat: no-repeat; }

/* JEDE KACHEL IST EINE VOLLSTAENDIGE FIGUR.

   Das ist der Kern. Alle Anlaeufe davor haben einen beweglichen Kopf auf einen
   starren Koerper gesetzt — das kann nicht natuerlich aussehen: Beim Blick
   nach unten verschwand der Kopf im Kragen, weil der Kragen nicht mitging, der
   Hals knickte, weil die Schultern standen, und die Ebene darunter zeigte
   einen zweiten, frontalen Kopf. Hier wendet sich der ganze Otter als Einheit,
   so wie in der Kletterszene, und die sah nie falsch aus.

   Acht Richtungen (Zeilen) mal acht Auslenkungen (Spalten). Spalte 0 ist in
   jeder Zeile dasselbe Ruhebild. */
.otti-ruhe { left: 0; top: 0; width: 100%; height: 100%;
  background-image: url(../img/otter/otti-ruhe-7dbce5d235.webp);
  background-size: 100% 100%;
}
/* Das Bild steht ABSICHTLICH nicht als background-image hier, sondern nur
   seine Adresse in einer eigenen Eigenschaft: Solche Werte holt der Browser
   nicht von sich aus. Als background-image wuerde er es zusammen mit dem
   Kletterbogen laden, und beim Entpacken bleibt die Kletterszene stehen. Das
   Skript weist es erst zu, wenn Otti oben steht; auf dem Handy nie. */
/* Keine Ueberblendung zwischen den Kacheln, auch wenn sie naheliegt: Die
   Umrisse zweier Haltungen decken sich nicht, waehrend einer Blende stuende
   deshalb ein zweiter, dunkler Kopf neben dem scharfen. Das Weichmachen der
   Bewegung macht stattdessen das Skript, indem es beim Richtungswechsel die
   Zwischenspalten abfaehrt.

   Das Bild steht ABSICHTLICH nicht als background-image hier, sondern nur
   seine Adresse in einer eigenen Eigenschaft: Solche Werte holt der Browser
   nicht von sich aus. Als background-image wuerde er es zusammen mit dem
   Kletterbogen laden, und beim Entpacken bleibt die Kletterszene stehen. Das
   Skript weist es erst zu, wenn Otti oben steht; auf dem Handy nie. */
.otti-blick { left: 0; top: 0; width: 100%; height: 100%;
  background-size: 800% 800%;
  --feld: url(/assets/img/otter/otti-blick-11dc18cf21.webp);
  opacity: 0;
}
/* Die Kletterszene hat ihren eigenen Bildausschnitt und wird deshalb im
   Kasten eigens gesetzt; sie darf seitlich herausragen. */
.otti-film {
  left: 0.159%; top: 12.281%; width: 105.573%; height: 87.719%;
  background-image: url(../img/otter/otti-klettern-cb8808b3ba.webp);
  background-size: 800% 600%;               /* 8 Spalten, 6 Zeilen */
  background-position: 0% 100%;
}
/* Die Ruheebene haengt am Zustand, die Blickebenen steuert das Skript: Es
   muss wissen, welche der beiden gerade oben liegt. */
.otti-ruhe { opacity: 0; }
.otti.steht .otti-film { opacity: 0; }
.otti.steht .otti-ruhe { opacity: 1; }


.f-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 24px 0 30px; display: flex; flex-wrap: wrap; gap: 16px 30px;
  align-items: center; justify-content: space-between; font-size: 13.5px;
}
.f-bottom nav { display: flex; gap: 24px; }
.f-bottom a:hover { color: #fff; }

/* ------------------------------ Reveal system ----------------------------- */
html.js [data-reveal] { opacity: 0; }
html.js .no-motion [data-reveal], html.js.no-motion [data-reveal] { opacity: 1; }

/* ------------------------------ Page intro -------------------------------- */
.page-head { padding-top: calc(var(--header-h) + clamp(60px, 8vw, 110px)); padding-bottom: clamp(50px, 6vw, 90px); }

/* ------------------------------ Responsive -------------------------------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .burger { display: grid; }
  .grid-3, .values-grid, .notruf-cards { grid-template-columns: 1fr 1fr; }
  .kh-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .f-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .brand { --lw: 118px; }
  .grid-2, .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse > .fs-media { order: 0; }
  .grid-3, .values-grid, .values-grid.vg-2, .notruf-cards { grid-template-columns: 1fr; }
  /* Notruf-Chips: volle, einheitliche Breite (Hero + Burger-Menue) */
  .hero .notruf-row { flex-direction: column; align-items: stretch; max-width: 420px; }
  .hero .notruf-chip { width: 100%; }
  .mobile-menu .mm-meta { flex-direction: column; align-items: stretch; width: min(320px, 78vw); margin-inline: auto; }
  .mobile-menu .mm-meta .notruf-chip {
    width: 100%; display: flex; align-items: center; text-align: left;
    font-size: inherit; line-height: 1.4; padding: 12px 22px 12px 14px;
  }
  /* Horizontal-Rail (z.B. Unsere Ziele): Karten nebeneinander, Pin scrollt durch */
  [data-h-rail] { display: flex; gap: 16px; width: max-content; will-change: transform; }
  [data-h-rail] > * { width: 78vw; max-width: 340px; flex: none; }
  /* Die Bahn ist absichtlich breiter als der Schirm — aber sie muss im
     Pin-Container ABGESCHNITTEN werden, sonst ist das ganze Dokument breiter
     als das Fenster. Auf iOS laesst sich die Seite dann seitlich wegschieben
     und dahinter kommt Weiss; `overflow-x: hidden` am body hilft dort nicht.
     `clip` statt `hidden`, weil `hidden` die senkrechte Achse zu einem
     Scrollbereich machen wuerde und damit das Anheften kaputtginge. */
  .vg-pin { overflow-x: clip; overflow-y: visible; }
  .kh-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; gap: 18px; }
  .news-date { flex-direction: row; align-items: baseline; gap: 10px; }
  .news-date::after { display: none; }
  .site-footer .f-grid { grid-template-columns: 1fr; }
  .wache-card { width: min(84vw, 360px); }
}

/* ==========================================================================
   V2 Motion Layer — Lenis, Curtain, Letterbox, Unveils, Watermark
   ========================================================================== */

/* Lenis */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* Header: verstecken beim Runterscrollen */
.site-header {
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease),
              backdrop-filter .5s var(--ease), height .5s var(--ease),
              transform .6s var(--ease);
}
.site-header.is-hidden { transform: translateY(-102%); }
body.menu-open .site-header.is-hidden { transform: none; }

/* Hero: Frame-Move beim Wegscrollen */
.hero { background: var(--navy); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; will-change: transform;
  transform-origin: 50% 42%;
}
.hero-bg .hero-media, .hero-bg .hero-scrim { z-index: auto; }

/* Filmkorn */
.grain {
  position: absolute; inset: -2%; z-index: 2; pointer-events: none;
  opacity: .10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='280'%20height='280'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.82'%20numOctaves='3'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Status-Chip (Home-Hero) */
.status-chip {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 10px 18px 10px 14px; border-radius: 999px;
  background: rgba(6, 23, 70, .38); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-label); font-weight: 500; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .88);
}
.status-chip .sc-dot {
  position: relative; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rot); flex: none;
}
.status-chip .sc-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid rgba(188, 16, 16, .8);
  animation: dotPulse 2s var(--ease) infinite;
}
@keyframes dotPulse {
  0% { transform: scale(.5); opacity: 1; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}
.status-chip b { font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }

/* Dive: Letterbox */
.dive-bar {
  position: absolute; left: 0; right: 0; height: 7svh; z-index: 4;
  background: #020516; pointer-events: none;
}
.dive-bar.top { top: 0; transform-origin: top; transform: scaleY(0); }
.dive-bar.bot { bottom: 0; transform-origin: bottom; transform: scaleY(0); }
.dive-stage canvas { will-change: transform; }

/* Scroll-Fortschritt */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 1200; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--rot), #ff6b6b);
  transform: scaleX(0); transform-origin: left;
}

/* Wachen-Zähler */
.wachen-progress { display: flex; align-items: center; gap: 22px; margin-top: 34px; padding-inline: var(--pad-x); }
.wachen-progress .wachen-bar { margin: 0; flex: 1; }
.wachen-count {
  font-family: var(--f-label); font-weight: 500; font-size: 13px;
  letter-spacing: .24em; color: var(--text-soft);
  font-variant-numeric: tabular-nums; flex: none;
}
.wachen-count b { color: var(--rot); font-weight: 500; }

/* Footer-Watermark */
.site-footer .f-watermark {
  display: block; white-space: nowrap; pointer-events: none;
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(90px, 13vw, 220px); line-height: .9;
  letter-spacing: .01em; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .10);
  margin: 0 calc(-1 * var(--pad-x)) clamp(30px, 4vw, 60px);
  user-select: none;
}

/* Bild-Unveil: Startzustand nur mit JS + Motion */
html.js.motion-on .mf-inner, html.js.motion-on .sc-media,
html.js.motion-on .news-media figure { will-change: clip-path; }

/* Flow-Sektion direkt nach dem gepinnten Dive: reduzierter Einstieg */
.dive + .section { padding-block-start: clamp(48px, 6vw, 88px); }

/* Full-bleed Foto-Band mit Parallax */
.photo-band {
  position: relative; height: clamp(380px, 72vh, 700px);
  overflow: clip;
}
.photo-band img {
  position: absolute; inset: -12% 0; width: 100%; height: 124%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .photo-band { height: 46vh; }
}

/* Ken-Burns fuer statische Bild-Heros (FAQ, Aktuelles) */
html.motion-on .hero-sub-page .hero-media img {
  animation: kenburns 20s ease-in-out infinite alternate;
  transform-origin: 55% 42%;
}
@keyframes kenburns {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.12) translateX(-1.6%); }
}

/* FAQ-Hero: rotierende echte Fragen */
.hero-rotate {
  margin-top: 22px; display: block;
  font-family: var(--f-label); font-weight: 500;
  font-size: clamp(15px, 1.5vw, 20px); letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.hero-rotate .hr-mask {
  display: inline-flex; overflow: hidden; vertical-align: bottom;
  padding-bottom: 2px;
}
.hero-rotate .hr-line {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  will-change: transform;
}


/* 112-Chip im Hero: dezenter Licht-Sweep */
.hero .notruf-chip.rot { position: relative; overflow: hidden; }
html.motion-on .hero .notruf-chip.rot::after {
  content: ''; position: absolute; top: -30%; bottom: -30%; width: 42px;
  left: -70px; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  animation: chipSheen 7s ease-in-out infinite;
}
@keyframes chipSheen {
  0%, 82% { left: -70px; }
  94%, 100% { left: 130%; }
}

@media (max-width: 768px) {
  .dive-count { bottom: 56px; }
  .site-footer .f-watermark { -webkit-text-stroke-width: 1px; }
}

/* --------------------------- Stellen-Popup -------------------------------- */
.jobs-modal { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px; }
.jobs-modal[hidden] { display: none; }
.jm-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 23, 70, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.jm-card {
  position: relative; width: min(560px, 100%);
  background: #fff; border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 40px 90px -30px rgba(6, 23, 70, .5);
  outline: none;
}
.jm-card h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; }
.jm-card .jm-sub {
  margin-top: 18px; font-family: var(--f-head); font-weight: 600;
  text-transform: uppercase; color: var(--blau); font-size: 17px;
}
.jm-list { margin-top: 12px; display: grid; gap: 9px; }
.jm-list li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.jm-list li::before {
  content: ''; width: 10px; height: 3px; background: var(--rot);
  border-radius: 2px; flex: none;
}
.jm-card .btn { margin-top: 26px; }
.jm-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--hairline); color: var(--navy);
  display: grid; place-items: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.jm-close svg { width: 16px; height: 16px; }
.jm-close:hover { background: var(--rot); border-color: var(--rot); color: #fff; }
@media (max-width: 480px) {
  .jm-card .btn { width: 100%; justify-content: space-between; font-size: 13px; }
}

/* --------------------------- Cookie-Hinweis ------------------------------- */
.cookie-note {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1400;
  max-width: 480px;
  background: var(--navy); color: rgba(255, 255, 255, .85);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(6, 23, 70, .55);
  padding: 18px 20px 16px;
  transform: translateY(calc(100% + 24px));
  transition: transform .6s var(--ease);
}
.cookie-note::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--rot), #ff6b6b);
}
.cookie-note.is-in { transform: translateY(0); }
.cookie-note p { font-size: 13.5px; line-height: 1.55; max-width: none; }
.cookie-note .cn-actions {
  margin-top: 12px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie-note .cn-ok {
  font-family: var(--f-label); font-weight: 500; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--rot); color: #fff; border-radius: 999px;
  padding: 9px 20px;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.cookie-note .cn-ok:hover { background: var(--rot-dunkel); }
.cookie-note .cn-ok:active { transform: scale(.97); }
.cookie-note a {
  font-size: 13px; color: rgba(255, 255, 255, .75);
  text-decoration: underline; text-underline-offset: 3px;
}
.cookie-note a:hover { color: #fff; }
@media (min-width: 769px) {
  .cookie-note { left: 24px; right: auto; bottom: 24px; }
}

/* --------------------------- Reduced motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .scroll-progress { display: none; }
}

/* ------------------------- Stellenausschreibungen ------------------------- */
.stelle-eckdaten { display: grid; gap: 8px; margin-top: 14px; list-style: none; }
.stelle-eckdaten li { font-size: 14.5px; color: var(--text-soft); }
.stelle-eckdaten li b { color: var(--navy); font-weight: 600; margin-right: 6px; }
.stelle-eckdaten-gross {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px;
}
.stelle-eckdaten-gross li {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 12px 18px; display: grid; gap: 3px;
}
.stelle-eckdaten-gross li b {
  font-family: var(--f-label); font-weight: 500; font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blau); margin: 0;
}
.stelle-eckdaten-gross li span { font-size: 15px; color: var(--navy); }
.stelle-spalten { display: grid; gap: clamp(30px, 4vw, 60px); }
@media (min-width: 860px) { .stelle-spalten { grid-template-columns: 1fr 1fr; } }
.stelle-liste { display: grid; gap: 11px; list-style: none; margin-top: 6px; }
.stelle-liste li {
  position: relative; padding-left: 24px; font-size: 15.5px; color: var(--text-soft);
}
.stelle-liste li::before {
  content: ''; position: absolute; left: 0; top: .62em; width: 11px; height: 3px;
  border-radius: 2px; background: var(--rot);
}
.stelle-liste-hell li { color: rgba(255, 255, 255, .82); }
.leer-stellen {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 28px 30px; color: var(--text-soft); text-align: center;
}

/* ============================================================== Unser Team */
/* Volles Headervideo wie auf jeder anderen Seite — randlos, Menü liegt
   darüber. Die Höhe folgt dem 16:9-Bild des Videos: auf üblichen
   Bildschirmen zeigt der Hero damit das komplette Bild vom Logo bis zum
   Boden; nur deutlich breitere Fenster deckeln bei voller Viewport-Höhe,
   dann hält object-position Logo und Köpfe im Ausschnitt. */
.hero-team { min-height: 0; height: min(calc(100vw * 9 / 16), 100svh); }
.hero-team .hero-media video, .hero-team .hero-media img { object-position: 50% 12%; }
/* Scrim nur als Bodenband — eine Abdunklung oben würde das Leuchtlogo dimmen. */
.hero-team .hero-scrim {
  background: linear-gradient(to top, rgba(6, 23, 70, .9) 0%,
              rgba(6, 23, 70, .35) 30%, transparent 58%);
}
.hero-team .hero-inner { padding-bottom: clamp(36px, 5vh, 72px); }

@media (max-width: 760px) {
  /* Handy: Vollbild-Header, aber rausgezoomt — das ganze 16:9-Bild mit
     allen Personen (contain). Ober- und unterhalb läuft der Raum selbst
     weiter: die Randzeilen des Videobilds, gespiegelt fortgesetzt und mit
     Abstand zunehmend weich und dunkel. Die Anschlusszeile ist identisch
     mit der Videokante, deshalb ohne sichtbare Naht. Das Videoband liegt
     bei 40% der freien Höhe; 56.25vw = Bandhöhe (100vw * 9/16). */
  .hero-team { height: 100svh; }
  .hero-team .hero-media::before, .hero-team .hero-media::after {
    content: ''; position: absolute; left: 0; right: 0;
  }
  .hero-team .hero-media::before {
    top: 0; height: calc((100% - 56.25vw) * 0.4 + 1px);
    background: url('../img/team/team-wand.webp') 50% 100% / 100% 100% no-repeat;
  }
  .hero-team .hero-media::after {
    top: calc((100% - 56.25vw) * 0.4 + 56.25vw - 1px); bottom: 0;
    background: url('../img/team/team-boden.webp') 50% 0 / 100% 100% no-repeat;
  }
  .hero-team .hero-media video, .hero-team .hero-media img {
    object-fit: contain; object-position: 50% 40%;
  }
}

.kontakt-zeilen { display: grid; gap: 10px; margin-top: 30px; max-width: 420px; }
.kz-eintrag {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1.5px solid var(--hairline);
  font-size: 15px; font-weight: 600; color: var(--navy);
  transition: border-color .3s var(--ease), background-color .3s var(--ease),
              transform .3s var(--ease);
}
.kz-eintrag:hover { border-color: var(--blau); background: #fff; transform: translateX(4px); }
.kz-eintrag svg { width: 19px; height: 19px; flex: none; color: var(--rot); }
.kz-eintrag span { overflow-wrap: anywhere; }

/* --------------------------------------- Team-Vorstellung (Raster) ------ */
/* Erst die Leitung in großer Dreierreihe, darunter das Team im dichten
   Raster — alle zwölf auf einen Blick statt einer Fahrt, die vier zeigt. */
.team-vorstellung { background: var(--bg-soft); }
.team-karten {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(30px, 4.5vh, 50px);
}
.team-karten .team-card:nth-child(-n+3) { grid-column: span 4; }
.team-karten .team-card:nth-child(n+4) { grid-column: span 3; }

.team-card {
  border-radius: var(--radius); overflow: clip; background: #fff;
  border: 1px solid var(--hairline); box-shadow: var(--shadow-card);
  position: relative; display: flex; flex-direction: column;
}
.tc-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--bg-soft);
}
.tc-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.tc-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6, 23, 70, .28), transparent 46%);
}
/* Die Leitung (Karten 1-3) zeigt das ganze Porträt, das Raster darunter
   engere quadratische Kopf-Ausschnitte. */
.team-karten .team-card:nth-child(n+4) .tc-media { aspect-ratio: 1 / 1; }
.team-karten .team-card:nth-child(n+4) .tc-media img { object-position: 50% 18%; }

.tc-body { padding: 18px 20px 22px; flex: 1; }
.tc-body h3 {
  font-size: clamp(16px, 1.35vw, 19px); line-height: 1.2;
  text-transform: none; letter-spacing: -0.005em;
}
.team-karten .team-card:nth-child(-n+3) .tc-body { padding: 22px 24px 26px; }
.team-karten .team-card:nth-child(-n+3) .tc-body h3 { font-size: clamp(19px, 1.8vw, 24px); }
.tc-rolle { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-soft); }

/* Birgit Besse hat kein Foto und eine eigene Funktion — ihre Karte steht
   allein unter dem Team: Markenblau mit dezenter Landkreiskarte (dasselbe
   Motiv wie das Wasserzeichen hinter den Wachen, weiß invertiert). */
.team-solo {
  position: relative; overflow: clip;
  margin-top: clamp(16px, 2vw, 28px);
  border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(120% 150% at 85% -20%, rgba(0, 71, 153, .55), transparent 60%),
    var(--navy);
  box-shadow: var(--shadow-card);
  min-height: clamp(170px, 22vh, 220px);
  display: flex; align-items: flex-end;
}
.ts-karte {
  position: absolute; right: -36px; top: 50%; transform: translateY(-50%);
  width: min(400px, 44%); opacity: .12;
  filter: brightness(0) invert(1); pointer-events: none;
}
.ts-inhalt { position: relative; padding: 26px 28px 30px; }
.ts-inhalt h3 {
  color: #fff; font-size: clamp(19px, 1.7vw, 23px);
  text-transform: none; letter-spacing: -0.005em; line-height: 1.2;
}
.ts-inhalt .tc-rolle { color: rgba(255, 255, 255, .72); }

@media (max-width: 900px) and (min-width: 761px) {
  .team-karten { grid-template-columns: repeat(2, 1fr); }
  .team-karten .team-card { grid-column: auto; }
}
@media (max-width: 760px) {
  /* Handy: horizontaler Rail (data-h-rail) — Scrollen fährt die Karten
     quer durch, wie bei den Zielen und Wachen. Flex muss die Grid-Regel
     von oben schlagen, deshalb hier explizit. */
  .team-karten {
    display: flex; gap: 16px; width: max-content;
    margin-top: 26px; will-change: transform;
  }
  /* Im Rail tragen alle Karten dasselbe Porträt-Format. */
  .team-karten .team-card:nth-child(n+4) .tc-media { aspect-ratio: 4 / 5; }
  .team-karten .team-card:nth-child(n+4) .tc-media img { object-position: 50% 24%; }
}
@media (max-width: 560px) {
  .tc-body { padding: 14px 16px 18px; }
  .team-karten .team-card:nth-child(-n+3) .tc-body { padding: 16px 18px 20px; }
}

/* ------------------------------------------ Wachleitungen (Leistungen) --- */
/* Fortsetzung des Standorte-Kapitels auf demselben ruhigen Grund: links
   bleibt die Landkreiskarte beim Scrollen stehen, rechts die Wachleitungen
   als kompakte Navy-Karten — Foto links, Name rechts, alle gleich groß.
   Der Punkt der Wache, deren Karte gerade im Blick ist, leuchtet auf;
   Spremberg pulsiert dauerhaft rot, dort ist die Wachleitung unbesetzt. */
.wl-lage {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 64px); align-items: start;
  margin-top: clamp(28px, 4vh, 46px);
}
.wl-karte { position: sticky; top: clamp(96px, 16vh, 180px); }
.wl-karte > img { width: 100%; height: auto; }
.wl-punkt {
  position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18);
  transition: transform .35s var(--ease), background .35s, box-shadow .35s;
}
.wl-punkt.ist-aktiv {
  background: var(--rot); transform: scale(1.55);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .35);
}
.wl-punkt small {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-label); font-weight: 500; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff; white-space: nowrap;
  background: var(--navy); border: 1px solid rgba(255, 255, 255, .28);
  padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(6, 23, 70, .3);
  opacity: 0; transition: opacity .35s;
}
.wl-links small { left: auto; right: 15px; }
.wl-punkt.ist-aktiv small { opacity: 1; }
.wl-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.wl-card {
  display: flex; align-items: stretch; overflow: clip;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 150% at 85% -20%, rgba(0, 71, 153, .5), transparent 60%),
    var(--navy);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-card);
  transition: border-color .4s;
}
.wl-card.ist-im-blick, .wl-card:hover { border-color: rgba(255, 255, 255, .3); }
.wlk-media {
  width: clamp(140px, 12vw, 168px); flex: none;
  position: relative; overflow: hidden;
}
.wlk-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  transition: transform 1.1s var(--ease);
}
.wl-card:hover .wlk-media img { transform: scale(1.05); }
.wlk-body { padding: 22px 24px; align-self: center; min-height: clamp(170px, 14vw, 200px); display: grid; align-content: center; flex: 1; min-width: 0; }
.wl-card h3 {
  color: #fff; font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.25; text-transform: none; letter-spacing: -0.005em;
}
.wl-rolle { margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .75); }

/* Karten ohne Foto (derzeit Daniel Haraszin) zeigen das
   Logo: die Landkreis-Silhouette, durch die sich die EKG-Welle in Rot
   schreibt — derselbe Lauf wie im Kopf-Logo. */
.wlk-logo {
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .02);
  color: rgba(255, 255, 255, .16);
}
.wlk-logo svg { width: 58%; height: auto; overflow: visible; }
.wlv-welle { animation: wlv-schreiben 1.8s linear infinite; }
@keyframes wlv-schreiben {
  from { transform: translateX(-128px); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .wlv-welle { animation: none; }
  .wlv-linie { mask: none; }
}

@media (max-width: 900px) {
  /* Gepinnte Fahrt: Karte oben fest, Wachleiter fahren einzeln quer durch.
     relative statt static: die Wachen-Punkte ankern an der Karte. */
  .wachleitung { overflow: clip; }
  .wl-lage { display: block; }
  .wl-karte {
    position: relative; top: 0;
    max-width: min(86vw, 420px); width: 100%;
    margin: 0 auto clamp(18px, 3vh, 30px);
  }
  .wl-liste { display: flex; gap: 14px; width: max-content; will-change: transform; }
  .wl-card { width: min(82vw, 360px); flex: none; }
  /* Gepinnter Block füllt den Bildschirm, damit während der Fahrt nichts
     von unten hereinragt. */
  .wl-lage { min-height: 82svh; }
}
@media (max-width: 560px) {
  .wlk-media { width: 122px; }
  .wlk-body { padding: 16px 18px; min-height: 0; }
}

/* Oldtimer-Band (Unternehmen): der Barkas steht in der unteren Bildhälfte —
   Anker nach unten, sonst schneidet der Beschnitt ihm die Räder ab. */
.photo-band img[src*="oldtimer"] { object-position: 50% 74%; }

/* ==========================================================================
   Ausbildung — Durchblick, Lernorte-Karte, Ausbildungsweg
   ==========================================================================
   Die Seite benutzt den Baukasten der uebrigen Seiten (Raster, Rahmenbild,
   Zahlenband, Pruefliste) und bringt EIN eigenes Gestaltungsmittel mit: den
   roten Beschriftungsstrich mit Punkt. Er benennt die Anatomie unter den
   Haenden, die Lernorte auf der Karte und die Stationen der drei Jahre.

   Die Striche selbst baut main.js in echten Pixeln — Ankerpunkt im Bild,
   Endpunkt an der tatsaechlichen Kante der Beschriftung. Hier stehen nur
   Farbe, Staerke und die Lage der Beschriftungen je Breite. */

/* ----------------------------------------------- Gemeinsame Strich-Optik -- */
.strich-buehne { position: relative; }
.strichnetz {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 3;
}
.strichnetz path {
  fill: none; stroke: var(--rot); stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.strich-punkt {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: var(--rot); box-shadow: 0 0 0 4px rgba(188, 16, 16, .2);
}
/* --andock sagt main.js, an welcher Kante der Strich die Beschriftung
   erreicht: links, rechts, oben oder unten. */
.strich-marke {
  --andock: links;
  position: absolute; left: var(--x); top: var(--y); z-index: 4;
  margin-top: -.65em; max-width: 240px;
  font-family: var(--f-label); font-weight: 500; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
  color: var(--navy);
}
.strich-marke small {
  display: block; margin-top: 5px;
  font-family: var(--f-body); font-size: 13px; font-weight: 400;
  letter-spacing: 0; text-transform: none; line-height: 1.45;
  color: var(--text-soft);
}

/* ------------------------------------------------------------ Durchblick -- */
.durchblick { position: relative; background: var(--navy); }
.db-buehne {
  --db-rand: max(var(--pad-x), calc((100% - var(--max-w)) / 2 + var(--pad-x)));
  height: 100svh; min-height: 560px; overflow: clip;
}
.db-bild { position: absolute; inset: 0; overflow: clip; }
.db-bild > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 60%;
}
/* Die Roentgenebene ist EIN Bild — Umgebung schon abgedunkelt, Brustkorb und
   Haende durchleuchtet. Frueher lagen Abdunklung, Roentgenbild und
   freigestellte Haende uebereinander; die Kanten der Haende waren nie sauber.
   Aufgedeckt wird von links nach rechts mit weicher Kante: `--w` (0..1) setzt
   main.js, `--kante` ist die Breite des Uebergangs. */
html.motion-on .db-roentgen {
  --w: 0; --kante: 140px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(var(--w) * (100% + var(--kante)) - var(--kante)), transparent calc(var(--w) * (100% + var(--kante))));
          mask-image: linear-gradient(to right, #000 calc(var(--w) * (100% + var(--kante)) - var(--kante)), transparent calc(var(--w) * (100% + var(--kante))));
}
/* Die Abtastlinie an der Vorderkante des Uebergangs */
.db-scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(transparent, rgba(214, 234, 255, .95) 18%, rgba(214, 234, 255, .95) 82%, transparent);
  box-shadow: 0 0 18px 3px rgba(125, 180, 255, .55), 0 0 60px 10px rgba(80, 140, 255, .18);
  opacity: 0; pointer-events: none; will-change: transform;
}
.db-text { position: absolute; z-index: 5; left: var(--db-rand); color: #fff; }
/* Vorher: Text links auf dem Grund der Sektion, das Foto noch gerahmt
   rechts daneben — kein Schleier noetig, nichts, was wie ein Kasten wirkt. */
.db-vorher { top: 50%; transform: translateY(-50%); width: min(40%, 520px); }
.db-vorher .eyebrow { color: rgba(255, 255, 255, .85); }
.db-vorher h2 { color: #fff; }
/* Nachher: ueber der abgedunkelten Szene, oben links */
.db-nachher { top: calc(var(--header-h) + 6vh); max-width: 480px; }
.db-satz {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 2.9vw, 42px); line-height: 1.04; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(4, 13, 43, .7);
}
.db-zeile {
  margin-top: 14px; font-size: 16px; line-height: 1.55;
  color: rgba(255, 255, 255, .8); text-shadow: 0 1px 12px rgba(4, 13, 43, .9);
}
html.motion-on .db-nachher { opacity: 0; }
/* Ohne Bewegung steht gleich der Endzustand da: durchleuchtet, beschriftet,
   mit dem Schlusssatz. Die erste Ueberschrift bleibt fuer Vorleseprogramme
   im Dokument, sichtbar laege sie auf den Beschriftungen. */
html:not(.motion-on) .db-vorher {
  top: 0; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.durchblick .strich-marke { color: #fff; text-shadow: 0 1px 12px rgba(4, 13, 43, .9); }
.durchblick .strich-marke small { color: rgba(255, 255, 255, .8); }
.durchblick .strich-punkt { box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 0 18px rgba(188, 16, 16, .7); }

.db-m1 { --x: 60%; --y: 27%; }
.db-m2 { --x: 80%; --y: 76%; }
.db-m3 { --x: 17%; --y: 52%; --andock: rechts; transform: translateX(-100%); text-align: right; }
.db-m4 { --x: 25%; --y: 85%; --andock: rechts; transform: translateX(-100%); text-align: right; }

/* ----------------------------------------------------------- Lernkarte ---- */
.lernkarte { margin: 0; padding-block: clamp(10px, 2vw, 30px); }
.lernkarte-bild { position: relative; width: min(560px, 50%); margin-inline: auto; }
.lernkarte-bild img { display: block; width: 100%; height: auto; }
/* Der Name steht rechts neben dem Punkt, der Punkt selbst sitzt auf dem Ort. */
.ort-klein {
  position: absolute; transform: translate(-4px, -50%); z-index: 2;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--f-label); font-weight: 500; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .82);
}
.ort-klein::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}
.lk-cottbus   { --x: 22%; --y: 14%; --andock: rechts; transform: translateX(-100%); text-align: right; }
.lk-spremberg { --x: 22%; --y: 82%; --andock: rechts; transform: translateX(-100%); text-align: right; }
.lk-guben     { --x: 78%; --y: 14%; }
.lk-forst     { --x: 78%; --y: 55%; }
.lernkarte .strich-marke { font-size: 13px; }

/* --------------------------------------------------------------- Der Weg -- */
.weg-kopf { max-width: 760px; margin-bottom: clamp(44px, 5vw, 76px); }
.weg { --zeit: 230px; --spur: 44px; position: relative; }
.weg-schiene {
  position: absolute; left: calc(var(--zeit) + var(--spur) / 2); top: 0; height: 0;
  width: 2px; margin-left: -1px; background: rgba(6, 23, 70, .13);
}
.weg-fortschritt {
  position: absolute; inset: 0; background: var(--rot);
  transform-origin: 50% 0; transform: scaleY(0);
}
html:not(.motion-on) .weg-fortschritt { transform: none; }
.weg-stationen { list-style: none; margin: 0; padding: 0; }
.weg-station {
  position: relative; display: grid;
  grid-template-columns: var(--zeit) var(--spur) minmax(0, 64ch);
  padding-bottom: clamp(38px, 4.4vw, 62px);
}
.weg-station::before {
  content: ''; position: absolute; top: 7px; z-index: 1;
  left: calc(var(--zeit) + var(--spur) / 2);
  width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%;
  background: var(--bg-soft); border: 2px solid rgba(6, 23, 70, .24);
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.weg-station.erreicht::before,
html:not(.motion-on) .weg-station::before {
  background: var(--rot); border-color: var(--rot); box-shadow: 0 0 0 6px rgba(188, 16, 16, .12);
}
.weg-zeit {
  grid-column: 1; margin: 0; padding: 6px 22px 0 0; text-align: right;
  font-family: var(--f-label); font-weight: 500; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rot);
}
.weg-inhalt { grid-column: 3; }
.weg-inhalt > p { margin-top: 10px; color: var(--text-soft); }
.weg-station .weg-inhalt, .weg-station .weg-zeit { transition: opacity .5s var(--ease); }
html.motion-on .weg-station:not(.erreicht) .weg-inhalt,
html.motion-on .weg-station:not(.erreicht) .weg-zeit { opacity: .38; }
.weg-ziel { padding-bottom: 0; }
.weg-gabel-titel {
  margin-top: 30px !important;
  font-family: var(--f-label); font-weight: 500; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--navy) !important;
}
/* Zwei Spalten, nicht vier: „Arbeitsschutzbeauftragte/-r" ist ein einziges
   langes Wort und lief in einer Viertelspalte in den Nachbarn hinein. In zwei
   Reihen wird die Verzweigung ausserdem zum Stammbaum mit zwei Ebenen. */
.weg-gabel {
  list-style: none; margin: 58px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 28px;
}
.weg-gabel li {
  position: relative; padding-top: 18px; hyphens: auto;
  font-family: var(--f-head); font-weight: 600; font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.25; color: var(--navy);
}
/* Punkt am Ende jedes Astes, dort wo der Strich ankommt */
.weg-gabel li::before {
  content: ''; position: absolute; left: 8px; top: 0;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--rot); transform: scale(0); transition: transform .35s var(--ease);
}
.weg-gabel li.erreicht::before,
html:not(.motion-on) .weg-gabel li::before { transform: none; }
.weg-aeste { z-index: 0; }

/* --------------------------------------------------------- Pruefliste ---- */
.pruefliste { margin-top: clamp(30px, 4vw, 48px); border-top: 1px solid var(--hairline); }
.pruef-zeile {
  display: grid; grid-template-columns: 58px 1fr; gap: 0 clamp(14px, 2vw, 28px);
  align-items: baseline; padding: clamp(18px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--hairline);
}
.pruef-zeile b {
  font-family: var(--f-head); font-weight: 700; font-size: 22px;
  color: var(--rot); font-variant-numeric: tabular-nums; line-height: 1;
}
.pruef-zeile span { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; }

/* ------------------------------------------------ Zahlenband mit vier ---- */
/* Das Zahlenband der Startseite hat fuenf Spalten. Die Bereiche der
   Ausnahmen sind bewusst BEGRENZT (min- und max-width): Eine Regel fuer das
   Zweierraster, die bis aufs Handy durchsickert, hat dort schon einmal die
   Listenansicht zerschossen. */
.stats-band.vier { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) and (min-width: 641px) {
  .stats-band.vier { grid-template-columns: repeat(2, 1fr); }
  .stats-band.vier .stat:nth-child(3) {
    border-inline-start: 0; padding-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }
  .stats-band.vier .stat:nth-child(4) {
    border-inline-start: 1px solid rgba(255, 255, 255, .16);
    padding-inline-start: clamp(12px, 1.6vw, 24px);
    border-top: 1px solid rgba(255, 255, 255, .16);
  }
}
@media (max-width: 640px) {
  .stats-band.vier { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- Mittlere Breite */
@media (max-width: 1100px) {
  .lernkarte-bild { width: min(520px, 56%); }
  .lk-cottbus, .lk-spremberg { --x: 20%; }
  .lk-guben, .lk-forst { --x: 80%; }
  .weg { --zeit: 180px; }
}

/* ------------------------------------------------------------- Schmal ---- */
@media (max-width: 760px) {
  .weg { --zeit: 0px; --spur: 30px; }
  .weg-station { grid-template-columns: var(--spur) minmax(0, 1fr); padding-bottom: 36px; }
  .weg-station::before { top: 3px; }
  .weg-zeit { grid-column: 2; padding: 0 0 8px; text-align: left; font-size: 11px; }
  .weg-inhalt { grid-column: 2; }
  .weg-gabel { grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
  .weg-gabel li { padding: 0 0 0 22px; }
  .weg-gabel li::before { left: 0; top: .7em; }
}

@media (max-width: 700px) {
  /* Handy: Das Foto ist ein Band in der Mitte, die Beschriftungen stehen
     darueber und darunter — neben dem Brustkorb waere kein Platz. */
  .db-bild { inset: 29% 0 auto; height: 42%; }
  .db-bild > img { object-position: 40% 60%; }
  .db-text { left: 20px; right: 20px; }
  /* Unter dem Band, wo spaeter auch der Schlusssatz steht: Darueber war auf
     kleinen Handys zwischen Kopfleiste und Band kein Platz. */
  .db-vorher { top: calc(71% + 22px); transform: none; width: auto; }
  .db-nachher { top: auto; bottom: 3vh; max-width: none; }
  .db-satz { font-size: 24px; }
  .db-zeile { font-size: 14px; margin-top: 8px; }
  .durchblick .strich-marke { max-width: 42%; font-size: 11px; }
  .durchblick .strich-marke small { font-size: 12px; }
  .db-m1, .db-m2, .db-m3, .db-m4 { transform: none; text-align: left; }
  .db-m3 { --x: 6%;  --y: 14%; --andock: unten; }
  .db-m1 { --x: 52%; --y: 14%; --andock: unten; }
  .db-m4 { --x: 6%;  --y: 75%; --andock: oben; }
  .db-m2 { --x: 52%; --y: 75%; --andock: oben; }

  .lernkarte { padding-block: 128px; }
  .lernkarte-bild { width: 100%; }
  .lernkarte .strich-marke { font-size: 11px; max-width: 46%; }
  .lernkarte .strich-marke small { font-size: 12px; }
  .lk-cottbus, .lk-spremberg, .lk-guben, .lk-forst { transform: none; text-align: left; }
  .lk-cottbus   { --x: 0%;  --y: 3%;  --andock: unten; }
  .lk-guben     { --x: 54%; --y: 3%;  --andock: unten; }
  .lk-spremberg { --x: 0%;  --y: 88%; --andock: oben; }
  .lk-forst     { --x: 54%; --y: 88%; --andock: oben; }
  .ort-klein { font-size: 9px; letter-spacing: .08em; }
}

/* =============================================================================
   Ausbildung, Nachtrag 28.09.2026: Inhalte aus der Stellenausschreibung
   ========================================================================== */

/* --------------------------------------------------------- Eigenschaften -- */
/* Keine Pflichtpunkte wie die Pruefliste daneben, deshalb leiser gesetzt. */
.eigenschaften-titel {
  margin-top: clamp(30px, 3.4vw, 44px);
  font-family: var(--f-label); font-weight: 500; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blau);
}
.eigenschaften {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; max-width: 560px;
}
.eigenschaften li {
  padding: 7px 15px; border-radius: 999px; background: #fff;
  border: 1px solid var(--hairline); font-size: 14px; line-height: 1.35; color: var(--navy);
}

/* ---------------------------------------------------- Drei Ausbildungsjahre -- */
.jahre-kopf { align-items: start; margin-bottom: clamp(64px, 7vw, 118px); }
.jahre-kopf p { max-width: 60ch; }
.treppe { --stufe: clamp(46px, 5vw, 84px); --kante: 16px; position: relative; }
.treppe-stufen {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px); align-items: stretch;
}
/* Jede Stufe beginnt eine Stufe hoeher. Weil die Karten bis zur Unterkante
   der Reihe reichen, steigen nur die Oberkanten: eine Treppe. */
.stufe {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 38px); border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
}
.stufe:nth-child(1) { margin-top: calc(var(--stufe) * 2); }
.stufe:nth-child(2) { margin-top: var(--stufe); }
.stufe-jahr {
  margin: 0 0 14px; font-family: var(--f-label); font-weight: 500; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .72) !important;
}
.section-dark .stufe-satz { margin-top: 12px; font-size: 16.5px; color: rgba(255, 255, 255, .9); }
.stufe .stelle-liste { margin-top: 22px; gap: 10px; }
.stufe .stelle-liste li { font-size: 14.5px; line-height: 1.5; }
/* Die Spitze: hell auf dunklem Grund. Rot bleibt hier aussen vor, weil der
   Styleguide Rot auf Marineblau nicht zulaesst, auf Weiss aber schon. */
.stufe-ziel { background: #fff; border-color: #fff; box-shadow: var(--shadow-soft); }
.on-dark .stufe-ziel h3 { color: var(--navy); }
.section-dark .stufe-ziel .stufe-jahr { color: var(--rot) !important; }
.section-dark .stufe-ziel .stufe-satz {
  margin-top: 14px; font-family: var(--f-head); font-weight: 600;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.22; color: var(--navy);
}
.section-dark .stufe-schluss {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--hairline);
  font-size: 15px; color: var(--text-soft);
}
/* Die rote Kante ueber den Karten. main.js zeichnet den Pfad nach den
   gemessenen Karten und laesst ihn beim Scrollen mitlaufen. Der Versatz des
   Strichs steht bewusst NICHT im CSS: eine CSS-Angabe schlaegt das Attribut,
   das GSAP bewegt, und die Kante stuende still. */
.treppe-kante {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 1;
}
.treppe-kante path {
  fill: none; stroke: var(--rot); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1;
}

@media (max-width: 900px) {
  .treppe-stufen { grid-template-columns: 1fr; gap: 16px; }
  .stufe:nth-child(1), .stufe:nth-child(2) { margin-top: 0; }
  .treppe-kante { display: none; }
  .section-dark .stufe-schluss { margin-top: 22px; }
}

/* ------------------------------------------------------------ Vorteile ---- */
.vorteile-kopf { max-width: 760px; margin-bottom: clamp(40px, 4.6vw, 70px); }
.vorteile-gruppen {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.6vw, 60px);
}
.vorteil-titel {
  padding-bottom: 16px; border-bottom: 2px solid var(--navy);
  font-size: clamp(19px, 1.6vw, 23px); line-height: 1.15;
}
.plus-liste { list-style: none; }
.plus-liste li {
  position: relative; padding: 14px 0 14px 38px; border-bottom: 1px solid var(--hairline);
  font-size: 16px; line-height: 1.5; color: var(--navy);
}
/* Das Plus aus dem Styleguide: rot, in einem blassroten Kreis. */
.plus-liste li::before {
  content: ''; position: absolute; left: 0; top: calc(14px + .75em - 12px);
  width: 24px; height: 24px; border-radius: 50%;
  background:
    linear-gradient(var(--rot), var(--rot)) center / 11px 2.5px no-repeat,
    linear-gradient(var(--rot), var(--rot)) center / 2.5px 11px no-repeat,
    rgba(188, 16, 16, .09);
}
@media (max-width: 900px) {
  .vorteile-gruppen { grid-template-columns: 1fr; gap: 34px; }
}

/* -------------------------------------------------------- Bewerbungsfrist -- */
.bewerbung-frist { margin-top: 14px; }
.section-dark .bewerbung-frist b { color: #fff; font-weight: 700; }

/* ---------------------------------------- Stellenboxen der Karriereseite -- */
/* Seit 28.09.2026 im Aufbau des Bewerbungsportals (personal.looptrail.tech/
   karriere). Die allgemeinen Akkordeon-Regeln oben gelten auch für die FAQ,
   deshalb setzt dieser Block ihre Zellen, Raster und Knopf-Verweise hier
   ausdrücklich zurück. */
.acc-stelle .acc-kopf { display: grid; gap: 4px; }
.acc-stelle .acc-ort {
  font-family: var(--f-label); font-weight: 500; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); line-height: 1.35;
}
.acc-panel-in.st-panel {
  display: block; background: #fff; border-top: 0;
  padding: 0 26px 30px; color: var(--text-soft);
}
.st-panel ul { display: block; gap: 0; }
.st-panel ul li {
  display: block; background: none; border: 0; border-radius: 0; padding: 0; gap: 0;
}
.st-panel ul li::before { margin-top: 0; }

.st-inhalt {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 56px); align-items: start;
  border-top: 1px solid var(--hairline); padding-top: 26px;
}
.st-unter {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(21px, 1.9vw, 27px); line-height: 1.1; color: var(--blau);
  margin-bottom: 12px;
}
.st-einleitung { font-size: 16px; line-height: 1.7; max-width: 66ch; }
.st-mehr {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px;
  font-family: var(--f-label); font-weight: 500; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blau);
}
.st-mehr[hidden] { display: none; }
.nw { white-space: nowrap; }

/* Reiter als Segmentschalter, die Markierung gleitet per transform */
.st-reiter { margin-top: 30px; }
.st-reiterleiste {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  max-width: 480px; padding: 4px; border-radius: 999px; margin-bottom: 24px;
  background: var(--bg-soft); border: 1px solid var(--hairline);
}
.st-reiterleiste[hidden] { display: none; }
.st-marker {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / var(--n));
  transform: translateX(calc(var(--i) * 100%));
  background: var(--blau); border-radius: 999px;
  box-shadow: 0 8px 18px -10px rgba(0, 71, 153, .7);
  transition: transform .5s var(--ease);
}
.st-tab {
  position: relative; z-index: 1; min-height: 44px; padding: 8px 10px;
  border-radius: 999px; white-space: nowrap;
  font-family: var(--f-head); font-weight: 700; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--blau);
  transition: color .35s var(--ease);
}
.st-tab[aria-selected="true"] { color: #fff; }
.st-feld:focus-visible { outline-offset: 6px; }
/* Ohne JavaScript stehen die Listen mit Überschrift untereinander */
.st-feld + .st-feld { margin-top: 26px; }
.st-reiter.bereit .st-feld + .st-feld { margin-top: 0; }
.st-feld-titel {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-family: var(--f-label); font-weight: 500; font-size: 12.5px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--blau);
}
.st-reiter.bereit .st-feld-titel { display: none; }

.st-panel .st-liste li {
  position: relative; padding-left: 34px; margin-bottom: 13px;
  font-size: 15.5px; line-height: 1.55; color: var(--text); break-inside: avoid;
}
.st-liste--zwei { columns: 2; column-gap: 40px; }
.st-panel .st-liste li::before {
  content: ''; position: absolute; left: 0; top: calc(.775em - 11px);
  width: 22px; height: 22px; border-radius: 50%;
}
.st-panel .st-feld--aufgaben .st-liste li::before {
  top: calc(.775em - 1.5px); left: 5px; width: 12px; height: 3px; border-radius: 2px;
  background: var(--rot);
}
.st-panel .st-feld--profil .st-liste li::before {
  background: rgba(0, 71, 153, .10) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.6 11.4l2.9 2.9 5.9-6.2' fill='none' stroke='%23004799' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.st-panel .st-feld--bieten .st-liste li::before {
  background:
    linear-gradient(var(--rot), var(--rot)) center / 10px 2.4px no-repeat,
    linear-gradient(var(--rot), var(--rot)) center / 2.4px 10px no-repeat,
    rgba(188, 16, 16, .09);
}
.st-eigenschaften { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.st-eigenschaften p {
  font-family: var(--f-label); font-weight: 500; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blau); margin-bottom: 12px;
}
.st-panel .st-eigenschaften ul { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.st-panel .st-eigenschaften li {
  padding: 6px 14px; border-radius: 999px; background: #fff;
  border: 1px solid rgba(0, 71, 153, .2); font-size: 14px; line-height: 1.35; color: var(--navy);
}
.st-panel .st-eigenschaften li::before { content: none; }

/* Seitenkarte */
.st-seite {
  display: grid; gap: 22px; padding: 24px;
  background: var(--bg-soft); border-radius: var(--radius-sm);
}
.st-fakten { display: grid; gap: 16px; margin: 0; }
.st-fakt {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px;
  align-items: center; align-content: start;
}
.st-fakt-ic {
  grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--blau); box-shadow: inset 0 0 0 1px var(--hairline);
}
.st-fakt-ic svg { width: 20px; height: 20px; }
.st-fakt dt, .st-fakt dd { grid-column: 2; margin: 0; }
.st-fakt dt {
  font-family: var(--f-label); font-weight: 500; font-size: 11.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); line-height: 1.3;
}
.st-fakt dd {
  font-family: var(--f-head); font-weight: 600; font-size: 17px;
  line-height: 1.25; color: var(--navy);
}
.st-aktion { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.st-aktion .btn { justify-content: space-between; }
.st-link {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px;
  font-family: var(--f-label); font-weight: 500; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blau);
}
.st-link svg { width: 15px; height: 15px; transition: transform .45s var(--ease); }
.st-link:hover svg { transform: translateX(5px); }
.st-kontakt { font-size: 14.5px; line-height: 1.45; margin: 0; }
.st-kontakt span {
  display: block; margin-bottom: 2px;
  font-family: var(--f-label); font-weight: 500; font-size: 11.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft);
}
.st-kontakt b { font-weight: 600; color: var(--navy); }

@media (min-width: 769px) and (max-width: 1100px) {
  .st-inhalt { grid-template-columns: minmax(0, 1fr) 270px; }
  .st-liste--zwei { columns: 1; }
}
@media (max-width: 768px) {
  .acc-panel-in.st-panel { padding: 0 18px 24px; }
  .st-inhalt { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 20px; }
  /* Fünf Zeilen Einleitung, der Rest hinter "Weiterlesen" (nur mit JS) */
  html.js .st-einleitung:not(.ganz) {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
  }
  /* Die Seitenkarte löst sich auf: Eckdaten oben, Knöpfe am Ende */
  .st-seite { display: contents; }
  .st-fakten {
    order: -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px;
    padding: 16px; border-radius: 12px; background: var(--bg-soft);
  }
  .st-fakt { grid-template-columns: 20px minmax(0, 1fr); column-gap: 7px; row-gap: 3px; }
  .st-fakt-ic { grid-row: 1; width: 20px; height: 20px; background: none; box-shadow: none; }
  .st-fakt-ic svg { width: 18px; height: 18px; }
  .st-fakt dd { grid-column: 1 / -1; font-size: 16px; }
  .st-aktion { order: 1; padding-top: 0; border-top: 0; }
  .st-aktion .btn { width: 100%; }
  .st-reiterleiste { max-width: none; }
  .st-tab { font-size: 14px; letter-spacing: .02em; padding: 8px 4px; }
  .st-liste--zwei { columns: 1; }
}

/* ===================================================== Kampagne „bereit,“ ==
   Seit 01.12.2026. Der Leitsatz steht in der Handschrift der Kampagne
   (Caveat 700), das Komma ist rot: SPN-Rot auf hellem Grund, Signalrot auf
   Marineblau und Foto. Am Logo exakt wie in E-Mail-Signatur, Visitenkarte und
   Info-Roll-ups: 13 % der Logobreite gross, links 22,6 %, oben 37,835 % (vom
   oberen Logorand), um 4 Grad ansteigend. */
.marke-satz {
  display: block; white-space: nowrap; pointer-events: none;
  margin: calc(var(--lw) * .0627) 0 0 calc(var(--lw) * .226);
  font: 700 calc(var(--lw) * .13)/1 'Caveat', cursive;
  letter-spacing: 0; text-transform: none;
  transform: rotate(-4deg); transform-origin: 0 100%;
  color: var(--dunkel); transition: color .4s var(--ease);
}
.marke-satz .komma, .leitsatz .komma { color: var(--rot); }
header.on-hero:not(.is-solid) .marke-satz,
.site-footer .marke-satz { color: #fff; }
header.on-hero:not(.is-solid) .marke-satz .komma,
.site-footer .marke-satz .komma,
.on-dark .leitsatz .komma, .hero .leitsatz .komma,
.dive-caption .leitsatz .komma { color: #E2231A; }

/* Leitsatz als Ueberschrift oder Zeile. Caveat wirkt bei gleicher Groesse
   kleiner als Barlow in Versalien, deshalb gut ein Viertel groesser. */
.leitsatz {
  font-family: 'Caveat', cursive; font-weight: 700; line-height: 1.05;
  text-transform: none; letter-spacing: 0;
  transform: rotate(-4deg); transform-origin: 0 100%;
}
.h-2.leitsatz { font-size: clamp(40px, 5.2vw, 72px); color: var(--dunkel); }
.dive-caption h2.leitsatz { font-size: clamp(46px, 6.8vw, 104px); }
/* Die Wortmasken der RTW-Fahrt schneiden sonst das Komma unter der Grundlinie ab. */
.dive-caption h2.leitsatz > span { padding: .04em .04em .22em; margin-bottom: -.22em; }
.hero-leitsatz { font-size: clamp(32px, 4.4vw, 64px); color: #fff; margin: 4px 0 18px; }
.bewerbung-leitsatz { font-size: clamp(30px, 3.4vw, 46px); color: #fff; margin-bottom: 10px; }
.section:not(.on-dark) .bewerbung-leitsatz { color: var(--dunkel); }

/* Muster B (nur auf der Testadresse umschaltbar): Leitsatz gross im Kopf der
   Start- und der Ausbildungsseite, Ottma fragt im Fuss. */
html:not([data-kampagne="b"]) .nur-muster-b { display: none !important; }

/* Ottmas Sprechblase: eine Form mit Zipfel, erscheint, sobald er steht. */
.ottma-blase {
  position: absolute; z-index: 2; margin: 0; pointer-events: none;
  left: calc(6% + var(--otti-h) * .98);
  bottom: calc(100% + var(--otti-h) * .62);
  width: calc(var(--otti-h) * 1.9); aspect-ratio: 260 / 84;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 84'%3E%3Cpath d='M20 0H240a20 20 0 0 1 20 20V44a20 20 0 0 1-20 20H44L10 84 24 63A20 20 0 0 1 0 44V20A20 20 0 0 1 20 0Z' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.ottma-blase > span {
  position: absolute; left: 0; right: 0; top: 0; height: 76%;
  display: grid; place-items: center; white-space: nowrap;
  font: 700 calc(var(--otti-h) * .2)/1 'Caveat', cursive; color: var(--dunkel);
}
.ottma-blase .komma { color: var(--rot); }
.site-footer.ottma-steht .ottma-blase,
html:not(.motion-on) .ottma-blase { opacity: 1; transform: none; }
.site-footer:not(.hat-otti) .ottma-blase { display: none; }

/* Teamkopf: das echte Gruppenfoto statt des Einlauf-Videos. Unten die
   Fassung mit ausgeschaltetem Logo, darueber die leuchtende. Das Logo geht
   einmal an wie eine Leuchtschrift: zweimal kurz, dann bleibt es an
   (hoechstens zwei Wechsel je Sekunde, deutlich unter der Grenze fuer
   Blitzlicht). Ohne JS (noscript in der Vorlage) und bei reduzierter
   Bewegung leuchtet es sofort. */
.hero-team .team-licht-an { opacity: 0; }
.hero-team .team-licht-an.zuendet { animation: logo-zuenden 1.5s linear .5s both; }
@keyframes logo-zuenden {
  0% { opacity: 0; } 6% { opacity: .6; } 12% { opacity: .06; }
  26% { opacity: .8; } 34% { opacity: .25; } 52%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-team .team-licht-an { opacity: 1; animation: none; }
}
