/* =====================================================================
   Karriere bei Köhrich - Funnel-Stylesheet (Mobile First)
   Marken-CI (koehrich.com): Signalgelb #ffed00 + Schwarz/Anthrazit,
   Rot nur als Hover-/Link-Akzent. Hausschrift: Open Sans.
   ===================================================================== */

/* Fonts werden in layout_top.php als eigenes <link> vor site.css geladen (kein @import,
   spart einen seriellen Request). */

/* --- Design-Tokens -------------------------------------------------- */
:root {
  /* Marke: Köhrich-Signalgelb (immer mit dunkler Schrift kombinieren) */
  --gelb:       #ffed00;
  --gelb-dark:  #e0cf00; /* Hover-Zustand für gelbe Flächen */
  --gelb-soft:  #fff8cc; /* sehr heller gelber Flächen-Akzent */
  /* Akzent: Köhrich-Rot nur für Links/Hover, nie als Fläche */
  --rot:        #ba0000;
  --rot-dark:   #970000;
  --rot-soft:   #fbe6e6;
  /* Dunkeltoene nach koehrich.com */
  --anthrazit:  #242424;
  --anthrazit-2:#4e4f4a;
  --blaugrau:   #717c8e; /* Sekundaer-Akzent aus dem CI */
  --grau-900:   #1a1a1a;
  --grau-700:   #3d434f;
  --grau-600:   #4b515c;
  --grau-500:   #5f6672; /* WCAG-AA-tauglich auf Hellgrau */
  --grau-300:   #d4d7dd;
  --grau-200:   #e6e8ec;
  --grau-100:   #f4f5f7;
  --weiß:      #ffffff;
  --warn:       #e08e0b;
  --warn-soft:  #fdf3e0;
  --gruen:      #157a43; /* Vertrauens-/Erfolgs-Akzent, WCAG-AA auf Weiß */
  --gruen-soft: #e7f6ee;

  --font-head: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(20, 22, 27, .08), 0 1px 2px rgba(20, 22, 27, .04);
  --shadow:    0 6px 20px rgba(20, 22, 27, .10);
  --shadow-lg: 0 18px 48px rgba(20, 22, 27, .18);

  --maxw: 1140px;
  --gap: 1.25rem;
}

/* --- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--anthrazit);
  background: var(--weiß);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
/* Icons stehen in Fließtext (z.B. .stelle-chip, Hero-<p>) neben statt über dem Text;
   Flex-Verwendungen und die spezifischere .benefit .ic{display:grid} bleiben unberührt */
.ic { display: inline-block; vertical-align: -.15em; }
a { color: inherit; text-decoration: none; }
/* Fließtext-Links müssen als Links erkennbar bleiben (globaler Reset nimmt die
   Unterstreichung) - Buttons/Karten/Navigation sind keine p-Kinder und bleiben clean */
main p > a { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* --- Typografie ---------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--anthrazit);
}
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); }
p  { color: var(--grau-700); }
strong { color: var(--anthrazit); font-weight: 600; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  color: var(--rot);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* --- Layout -------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.15rem; }
.section { padding-block: clamp(2.75rem, 8vw, 5rem); }
.section--grau { background: var(--grau-100); }
.section--dark { background: var(--anthrazit); color: var(--weiß); }
.section--dark h2, .section--dark h3 { color: var(--weiß); }
.section--dark p { color: rgba(255,255,255,.78); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: .6rem; font-size: 1.06rem; }

/* --- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .85rem 1.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gelb); color: #1a1a1a; box-shadow: 0 6px 16px rgba(255,237,0,.40); }
.btn--primary:hover { background: var(--gelb-dark); }
.btn--ghost { background: transparent; color: var(--anthrazit); border-color: var(--grau-300); }
.btn--ghost:hover { border-color: var(--anthrazit); }
.btn--light { background: #fff; color: var(--anthrazit); }
.btn--light:hover { background: var(--grau-100); }
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; font-size: 1.15rem; padding-inline: 1.8rem; }

/* --- Header -------------------------------------------------------- */
/* Signalgelbes Band: das Logo trägt selbst eine gelbe Fläche und sitzt so
   bündig im Header, statt als Kasten auf Weiß zu liegen. */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--gelb);
  border-bottom: 2px solid var(--anthrazit);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.brand .brand-logo { height: 35px; width: auto; border-radius: 3px; }
.brand .brand-tag { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--anthrazit); letter-spacing: .02em; padding-left: .55rem; border-left: 2px solid rgba(36,36,36,.35); white-space: nowrap; }
.header-cta { display: none; }
/* Schlanker als der Standard-.btn (52px): im 64px-Header wirkt der volle Button gequetscht */
.site-header .header-cta { min-height: 40px; padding: .45rem 1.1rem; font-size: .95rem; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--anthrazit); font-size: .98rem; white-space: nowrap; }
/* Gelber Primary-Button wäre auf gelbem Band unsichtbar. */
.site-header .btn--primary { background: var(--anthrazit); color: #fff; box-shadow: none; }
.site-header .btn--primary:hover { background: #000; }

/* Mobil: "Karriere" weicht der Telefonnummer, sonst überlappen beide.
   Der Zusatz ist entbehrlich - das Logo steht daneben. */
@media (max-width: 520px) {
  .brand .brand-tag { display: none; }
  .header-phone { font-size: .92rem; }
}
@media (max-width: 380px) {
  .brand .brand-logo { height: 30px; }
  .header-phone { font-size: .86rem; gap: .3rem; }
}

/* --- Hero ---------------------------------------------------------- */
/* Hero ohne externes Bild (kein 404). Echtes Werkstattfoto später optional
   einsetzbar, indem .hero ein <img>/zusätzlicher Layer mit z-index:0 erhält. */
.hero { position: relative; background: var(--anthrazit); color: #fff; overflow: hidden; }
.hero::after {
  content:""; position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(120% 100% at 82% 0%, rgba(255,237,0,.16), transparent 55%),
    linear-gradient(180deg, #2c2c2c 0%, #1d1d1d 100%);
}
.hero::before {
  content:""; position:absolute; inset:0; z-index:0; opacity:.05;
  background-image: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 24px);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(3rem, 12vw, 6rem); }
.hero h1 { color:#fff; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.85); font-size: 1.15rem; margin-top: 1rem; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 2rem; font-size: .92rem; color: rgba(255,255,255,.8); }
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust .dot { color: var(--gelb); }

/* --- Stellen-Kacheln ----------------------------------------------- */
.jobs-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.job-card {
  position: relative; background: #fff; border: 1px solid var(--grau-200);
  border-radius: var(--radius); padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  display: flex; flex-direction: column; gap: .7rem;
}
.job-card::before { content:""; position:absolute; left:0; top:1.35rem; bottom:1.35rem; width:4px; background: var(--gelb); border-radius: 0 4px 4px 0; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--grau-300); }
.job-card__badges { display:flex; flex-wrap:wrap; gap:.4rem; }
.tag { font-size:.76rem; font-weight:600; padding:.25rem .6rem; border-radius: var(--radius-pill); background: var(--grau-100); color: var(--grau-700); }
.tag--rot { background: var(--anthrazit); color: #fff; }
.job-card h3 { font-size: 1.28rem; }
.job-card__meta { display:flex; align-items:center; gap:.4rem; color: var(--grau-500); font-size:.92rem; font-weight:500; }
.job-card p { font-size: .98rem; }
.job-card__foot { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding-top:.4rem; }
.job-card__apply { display:inline-flex; align-items:center; gap:.4rem; font-family:var(--font-head); font-weight:700; color: var(--rot); }
.job-card__apply::after { content:"\2192"; transition: transform .15s ease; }
.job-card:hover .job-card__apply::after { transform: translateX(3px); }
.job-card__salary { font-weight:600; color: var(--anthrazit); font-size:.95rem; }
.job-card--initiativ { background: var(--grau-100); border-style: dashed; }
.job-card--initiativ::before { display:none; }

/* --- Vertrauensblock ----------------------------------------------- */
.trust { display: grid; gap: 1.25rem; }
.trust__person { display:flex; align-items:center; gap:1rem; background:#fff; border:1px solid var(--grau-200); border-radius: var(--radius); padding:1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.trust__avatar { width:64px; height:64px; border-radius:50%; background: var(--grau-200); object-fit:cover; flex:none; display:grid; place-items:center; font-family:var(--font-head); font-weight:700; font-size:1.4rem; color:var(--grau-500); }
.trust__person h3 { font-size:1.1rem; margin-bottom:.1rem; }
.trust__person .role { color: var(--grau-500); font-size:.9rem; }
.trust__person .phone { display:inline-flex; align-items:center; gap:.4rem; margin-top:.4rem; font-weight:700; color: var(--rot); }
.trust__promise { display:flex; align-items:center; gap:.7rem; background: var(--gruen-soft); color:#14593a; border-radius: var(--radius); padding:1rem 1.1rem; font-weight:600; }
.trust__promise .ic { flex:none; }

/* --- Benefits ------------------------------------------------------ */
.benefit-grid { display:grid; grid-template-columns: 1fr; gap: .9rem; }
.benefit {
  display:flex; gap:.85rem; align-items:flex-start;
  background:#fff; border:1px solid var(--grau-200); border-radius: var(--radius-sm);
  padding: 1rem 1.05rem;
}
.benefit .ic { flex:none; width:40px; height:40px; border-radius:10px; background: var(--gelb-soft); color: #1a1a1a; display:grid; place-items:center; }
.benefit h3 { font-size:1.04rem; font-family: var(--font-body); font-weight:600; line-height:1.25; }
.benefit p { font-size:.9rem; margin-top:.15rem; }
.section--dark .benefit { background: var(--anthrazit-2); border-color: rgba(255,255,255,.08); }
.section--dark .benefit h3 { color:#fff; }
.section--dark .benefit .ic { background: rgba(255,237,0,.16); color: var(--gelb); }

/* --- Team / Standort / FAQ ----------------------------------------- */
.feature-row { display:grid; gap:1.5rem; }
.location-card { background:#fff; border:1px solid var(--grau-200); border-radius:var(--radius); padding:1.25rem; box-shadow: var(--shadow-sm); }
.location-card h3 { font-size:1.15rem; margin-bottom:.3rem; }
.location-card .addr { color: var(--grau-600); font-size:.95rem; }

.faq-item { border-bottom:1px solid var(--grau-200); }
.faq-item summary { cursor:pointer; padding:1.05rem 0; font-family:var(--font-head); font-weight:600; font-size:1.1rem; list-style:none; display:flex; justify-content:space-between; gap:1rem; align-items:center; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:"+"; color: var(--rot); font-size:1.5rem; font-weight:700; line-height:1; }
.faq-item[open] summary::after { content:"\2013"; }
.faq-item p { padding-bottom:1.1rem; }

/* --- Sticky-CTA (mobil) -------------------------------------------- */
.sticky-cta {
  position: fixed; left:0; right:0; bottom:0; z-index: 50;
  display:flex; gap:.6rem; padding:.7rem .9rem;
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top:1px solid var(--grau-200); box-shadow: 0 -6px 20px rgba(20,22,27,.08);
}
.sticky-cta .btn { flex:1; }
.sticky-cta .btn--call { flex:none; width:54px; padding:0; }
/* Platz für die Sticky-Bar nur reservieren, wenn sie auch vorhanden ist (sonst weißer Streifen).
   body.has-sticky kommt serverseitig aus layout_top ($hideSticky) - funktioniert auch in
   Browsern ohne :has()-Support; :has() bleibt als Belt-and-Suspenders bestehen. */
body { padding-bottom: 0; }
body.has-sticky, body:has(.sticky-cta) { padding-bottom: 76px; }

/* --- Footer -------------------------------------------------------- */
.site-footer { background: var(--grau-900); color: rgba(255,255,255,.78); padding-block: 2.5rem; font-size:.9rem; }
/* Element-Regel p{color:--grau-700} würde im dunklen Footer den Text auf 1.75:1 drücken -> explizit überschreiben */
.site-footer p { color: rgba(255,255,255,.78); }
.site-footer a { color:#fff; }
.site-footer a:hover { color:#fff; text-decoration: underline; }
/* .muted ist auf hellem Grund hellgrau -> im dunklen Footer aufhellen (sonst ~3:1) */
.site-footer .muted { color: rgba(255,255,255,.62); }
.site-footer .footer-grid { display:grid; gap:1.5rem; }
/* Touch-Targets der Footer-Linkliste: >= 24px Zielhöhe (WCAG 2.2) statt 19px Textzeile */
.site-footer .footer-grid p a { display:inline-block; padding-block:.3rem; margin-block:-.15rem; }
.site-footer h2 { color:#fff; font-family:var(--font-head); font-size:1rem; line-height:1.2; letter-spacing:0; margin-bottom:.6rem; }
/* Profil-Zeichen im Fuß. Aufbau bewusst identisch zum VILICUS-Portal, damit beide
   Auftritte dieselbe Handschrift haben: 44px Zielfläche (WCAG 2.5.8 verlangt 24px,
   44px ist die Faustregel für bequeme Bedienung am Handy), abgerundetes Quadrat statt
   Kreis, gedämpfte Zeichen, die beim Zeigen anziehen. Einziger Unterschied ist die
   Hover-Farbe: hier das Köhrich-Gelb mit dunkler Schrift darauf - Gelb ist Fläche,
   nie Schrift. */
.site-footer .social-links { display:flex; gap:.75rem; margin-top:1.5rem; }
.site-footer .social-links a {
  width:44px; height:44px;
  background:rgba(255,255,255,.07);
  border:none; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.5);
  transition:all .3s;
  padding:0;
}
.site-footer .social-links a:hover,
.site-footer .social-links a:focus-visible {
  background:var(--gelb, #ffed00);
  color:var(--grau-900, #1a1a1a);
  text-decoration:none;
  transform:translateY(-2px);
}
.site-footer .social-links svg { width:18px; height:18px; fill:currentColor; }
@media (prefers-reduced-motion: reduce) {
  .site-footer .social-links a { transition:none; }
  .site-footer .social-links a:hover { transform:none; }
}

.site-footer .legal { margin-top:1.5rem; padding-top:1.25rem; border-top:1px solid rgba(255,255,255,.12); display:flex; flex-wrap:wrap; gap:.4rem 1.2rem; align-items:center; justify-content:space-between; }
.site-footer .legal a { text-decoration: underline; }

/* --- Skip-Link (Accessibility) ------------------------------------- */
.skip-link { position:absolute; left:-999px; top:0; z-index:100; background:var(--rot); color:#fff; padding:.7rem 1.1rem; border-radius:0 0 8px 0; font-weight:600; }
.skip-link:focus { left:0; }

/* --- Utilities ----------------------------------------------------- */
.center { text-align:center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}
.muted{color:var(--grau-500)}
.privacy-badge{display:inline-flex;align-items:center;gap:.45rem;font-size:.85rem;color:var(--gruen);font-weight:600}

/* --- Responsive (Mobile First -> additive Breakpoints) ------------- */
@media (min-width: 600px) {
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn { min-width: 220px; }
}
@media (min-width: 880px) {
  body.has-sticky, body:has(.sticky-cta) { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .header-cta { display: inline-flex; }
  .jobs-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: 1.4fr 1fr; align-items:center; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1040px) {
  .feature-row--3 { grid-template-columns: repeat(3, 1fr); }
}
/* =====================================================================
   MOTION & POLISH - Elevation der bestehenden Seite (additiv, Mobile First)
   Grundsätze:
   - Es wird nur transform/opacity animiert (GPU-freundlich).
   - Alle @keyframes laufen NUR bei (prefers-reduced-motion: no-preference).
   - Scroll-Reveal hängt am Hidden-Zustand hinter html.motion; diese Klasse
     setzt ausschließlich motion.js. Ohne JS / bei reduzierter Bewegung ist
     alles sofort sichtbar -> nie eine Sackgasse, kein Flackern.
   ===================================================================== */

/* --- Fokus-States (immer aktiv, Accessibility) --------------------- */
:where(a, .btn, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--anthrazit);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 237, 0, .6);
}
/* Dunkle Flächen: heller Ring, damit er auf Anthrazit sichtbar bleibt */
:where(.hero, .section--dark, .site-footer, .apply-top) :where(a, .btn, button):focus-visible {
  outline-color: #fff;
}

/* --- Buttons: mehr Leben (Glow + Lift) ----------------------------- */
.btn { transition: transform .14s ease, background .18s ease, box-shadow .22s ease, color .15s ease; }
.btn--primary:hover { background: var(--gelb-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 237, 0, .5); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost:hover { transform: translateY(-1px); }
/* Druck-Feedback muss die Hover-Regeln überschreiben -> nach ihnen deklariert */
.btn:active { transform: translateY(1px); box-shadow: none; }

/* --- Job-Cards: Hover verfeinern ----------------------------------- */
.job-card::before { transform-origin: left center; transition: transform .2s ease; }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--grau-300); }
.job-card:hover::before, .job-card:focus-within::before { transform: scaleX(2); }
/* Job-Titel: roter Unterstrich-Slide über ::after (nur transform animiert) */
.job-card h3 a { position: relative; }
.job-card h3 a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--rot); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.job-card h3 a:hover::after, .job-card h3 a:focus-visible::after { transform: scaleX(1); }
.job-card h3 a:hover, .job-card h3 a:focus-visible { color: var(--rot); }

/* --- Weitere Kacheln: dezenter Lift -------------------------------- */
.location-card, .benefit, .trust__person {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.location-card:hover, .trust__person:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--grau-300); }
.section--dark .benefit:hover { border-color: rgba(255, 255, 255, .18); }

/* --- FAQ + Header-Feinschliff -------------------------------------- */
.faq-item summary { transition: color .15s ease; }
.faq-item summary:hover { color: var(--rot); }
.site-header { transition: box-shadow .2s ease, background-color .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(20, 22, 27, .18); background: var(--gelb); }

/* --- Hero-Lichtschein: dezente Drift (vorhandenes ::after) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero::after {
    transform-origin: 85% 0%;   /* Anker am Glow-Hotspot -> Skalierung deckt immer voll ab */
    animation: kh-hero-glow 16s ease-in-out infinite alternate;
    will-change: transform;
  }
}
@keyframes kh-hero-glow {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* --- Hero-/Detailkopf-Inhalt: gestaffeltes Einblenden (reines CSS) -- */
/* backwards-Fill blendet ab Frame 0 aus -> kein Flackern; unabhängig von JS.
   reduced-motion -> Regel entfällt, Inhalt sofort sichtbar. */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > *, .apply-top__inner > * {
    animation: kh-rise .7s cubic-bezier(.22, .7, .2, 1) backwards;
  }
  .hero__inner > *:nth-child(1), .apply-top__inner > *:nth-child(1) { animation-delay: 0s; }
  .hero__inner > *:nth-child(2), .apply-top__inner > *:nth-child(2) { animation-delay: .08s; }
  .hero__inner > *:nth-child(3), .apply-top__inner > *:nth-child(3) { animation-delay: .16s; }
  .hero__inner > *:nth-child(4), .apply-top__inner > *:nth-child(4) { animation-delay: .24s; }
  .hero__inner > *:nth-child(5), .apply-top__inner > *:nth-child(5) { animation-delay: .32s; }
}
@keyframes kh-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Sticky-CTA (mobil): Einblenden von unten ---------------------- */
@media (prefers-reduced-motion: no-preference) {
  .sticky-cta { animation: kh-slide-up .5s cubic-bezier(.22, .7, .2, 1) backwards; animation-delay: .2s; }
}
@keyframes kh-slide-up {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Scroll-Reveal (JS-gestützt via html.motion) ------------------- */
/* Entrance über ANIMATION (nicht transition) -> Hover-Transitions der Cards
   bleiben snappy. Ohne Forward-Fill fällt das Element danach auf den Basis-
   zustand zurück -> Hover-transform funktioniert normal. */
/* Druck: Scroll-Reveal darf nie Inhalte verstecken (nicht gescrollte Bereiche
   wären sonst mit opacity:0 unsichtbar im Ausdruck) */
@media print {
  .reveal { opacity: 1 !important; animation: none !important; transform: none !important; }
  .sticky-cta { display: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html.motion .reveal:not(.is-visible) { opacity: 0; }
  html.motion .reveal.is-visible { animation: kh-rise .6s cubic-bezier(.22, .7, .2, 1) backwards; }
  /* Beim Laden bereits sichtbare Elemente: sofort da. Kombinierter Selektor
     gewinnt ordnungsunabhängig gegen .is-visible -> kein Flackern above-the-fold. */
  html.motion .reveal.is-visible.reveal--instant { animation: none; opacity: 1; }
  /* leichte diagonale Staffelung innerhalb der Raster */
  html.motion .jobs-grid    .reveal.is-visible:nth-child(3n+2) { animation-delay: .07s; }
  html.motion .jobs-grid    .reveal.is-visible:nth-child(3n)   { animation-delay: .14s; }
  html.motion .benefit-grid .reveal.is-visible:nth-child(3n+2) { animation-delay: .06s; }
  html.motion .benefit-grid .reveal.is-visible:nth-child(3n)   { animation-delay: .12s; }
}

/* =====================================================================
   MITARBEITERWOHNUNG
   Eigener Abschnitt statt nur eines Benefit-Kärtchens: In Berlin ist die
   Wohnung für viele Bewerber das größere Hindernis als die Stelle, also
   bekommt sie eigene Fläche samt Bildstrecke.
   ===================================================================== */
.wohnung-grid { display:grid; gap:1.5rem; align-items:start; }
.wohnung-fakten { list-style:none; margin-top:1rem; display:grid; gap:.55rem; }
.wohnung-fakten li { display:flex; gap:.6rem; align-items:flex-start; font-size:.98rem; }
.wohnung-fakten .ic { flex:none; width:26px; height:26px; border-radius:8px;
  background: var(--gelb-soft); color:#1a1a1a; display:grid; place-items:center; }
.wohnung-galerie { display:grid; grid-template-columns:1fr; gap:.7rem; }
.wohnung-galerie img {
  width:100%; height:100%; aspect-ratio:4/3; object-fit:cover;
  border-radius: var(--radius); border:1px solid var(--grau-200);
  box-shadow: var(--shadow-sm); display:block;
}
.wohnung-hinweis { margin-top:1rem; font-size:.9rem; color: var(--grau-500); }

@media (min-width: 600px) {
  .wohnung-galerie { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .wohnung-grid { grid-template-columns: 1fr 1.15fr; gap:2.25rem; }
}

/* --- Reduced-Motion: harte Abschaltung (Kill-Switch, immer zuletzt) - */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
