/* ==========================================================================
   KOALA Jugendhilfe – Design-System
   CI: Türkis #5EACA7 (Logo-Kreis), Wortmarke Dunkelgrau, Schrift Lato
   ========================================================================== */

@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/Lato-Light.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Lato-Regular.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/Lato-Italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Lato-Bold.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/Lato-Black.woff2") format("woff2"); }

:root {
  /* Marke */
  --koala: #5EACA7;            /* CI-Türkis – Flächen, Akzente (nicht für Fließtext auf Weiß) */
  --koala-deep: #2E6F6A;       /* Türkis für Text/Links auf hellem Grund (≥ 4,9:1 auch auf Sand/Mist) */
  --koala-ink: #1F4A47;        /* dunkelstes Türkis als Textfarbe */
  --band: #1F4A47;             /* dunkle Flächen (Bänder, Buttons) – in beiden Modi dunkel */
  --band-2: #2A5C58;           /* Hover auf dunklen Flächen */
  --on-band: #FFFFFF;
  --on-band-2: #C9DBD9;        /* Fließtext auf dunklen Flächen (≥ 7:1) */
  --koala-mist: #E4F1F0;       /* sehr helles Türkis – Flächen */
  --koala-tint: #C7E3E1;

  /* Wärme */
  --sand: #F3EBDF;             /* warme Fläche */
  --sand-deep: #E5D8C6;
  --apricot: #E9B58A;          /* sparsamer warmer Akzent (Herz, Highlights) */

  /* Neutrale mit Türkis-Stich */
  --bg: #FAF6F0;
  --surface: #FFFDFA;
  --surface-2: #F4EFE8;
  --line: #E4DCD1;
  --ink: #2D2D2D;              /* Wortmarken-Grau */
  --ink-2: #565450;
  --ink-3: #5F5C56;            /* gedämpfter Text, ≥ 5,6:1 auf allen hellen Flächen */
  --on-koala: #16302E;         /* dunkler Text auf Türkis-Fläche (5,2:1) */
  --on-dark: #F2F6F5;
  --on-dark-2: #B9CBC9;

  --shadow: 0 8px 24px -14px rgba(45, 40, 30, .18);
  --shadow-lg: 0 24px 48px -24px rgba(45, 40, 30, .28);
  --radius: 20px;
  --radius-sm: 10px;

  --font: "Lato", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 62ch;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101A19;
    --surface: #17221F;
    --surface-2: #1D2A28;
    --line: #2B3A38;
    --ink: #EEF3F2;
    --ink-2: #B9C8C6;
    --ink-3: #8DA09E;
    --koala-deep: #8ED0CB;
    --koala-ink: #DAEDEB;
    --band: #163634;
    --band-2: #1F4A47;
    --on-band-2: #C9DBD9;
    --koala-mist: #1C2F2D;
    --koala-tint: #244341;
    --sand: #1E2523;
    --sand-deep: #2A312E;
    --shadow: 0 10px 30px -12px rgba(0,0,0,.5);
    --shadow-lg: 0 30px 60px -24px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101A19;
  --surface: #17221F;
  --surface-2: #1D2A28;
  --line: #2B3A38;
  --ink: #EEF3F2;
  --ink-2: #B9C8C6;
  --ink-3: #8DA09E;
  --koala-deep: #8ED0CB;
  --koala-ink: #DAEDEB;
  --band: #163634;
  --band-2: #1F4A47;
  --on-band-2: #C9DBD9;
  --koala-mist: #1C2F2D;
  --koala-tint: #244341;
  --sand: #1E2523;
  --sand-deep: #2A312E;
  --shadow: 0 10px 30px -12px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 60px -24px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; display: block; }
a, button { touch-action: manipulation; }
[id] { scroll-margin-top: 90px; }
a { color: var(--koala-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--koala-ink); }
:focus-visible { outline: 3px solid var(--koala-deep); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .cta :focus-visible, .paths--photo :focus-visible { outline-color: #fff; }
::selection { background: var(--koala-tint); color: var(--on-koala); }

h1, h2 { font-weight: 900; }
h3, h4 { font-weight: 700; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
p.lead { font-size: clamp(1.08rem, 1.45vw, 1.22rem); line-height: 1.55; color: var(--ink); font-weight: 400; }
ul, ol { padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
small, .small { font-size: .875rem; }
.muted { color: var(--ink-3); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--koala-deep); margin-bottom: .9rem;
}
.center { text-align: center; }
.center p { margin-inline: auto; }
.tabular { font-variant-numeric: tabular-nums; }
/* Externe Links: Hinweis für Screenreader, dass ein neues Fenster aufgeht */
a[target="_blank"]::after { content: " (öffnet in neuem Fenster)"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--band); color: var(--on-band); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }

.section { padding-block: clamp(3rem, 5.5vw, 4.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--paths { padding-block: clamp(2rem, 4vw, 3rem) 0; }
.section--sand { background: var(--sand); }
.section--mist { background: var(--koala-mist); }
.section--dark { background: var(--band); color: var(--on-band); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-band); }
.section--dark p { color: var(--on-band-2); }
.section--dark .eyebrow { color: #A9DBD7; }
.section--dark a { color: #A9DBD7; }
.section-head { max-width: 720px; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head p { max-width: none; }
.section-head--wide { max-width: none; }
.section-head--wide .lead { color: var(--ink-3); }
.statement { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 5rem; align-items: start; }
.statement h2 { margin: 0; }
.statement p { margin: 0; max-width: none; font-size: 1.12rem; line-height: 1.6; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; gap: .8rem; } }
.bento__num--text { font-size: clamp(1.35rem, 2vw, 1.6rem); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.5rem; border-radius: 999px;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; } }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--band); color: var(--on-band); }
.btn--primary:hover { background: var(--band-2); color: var(--on-band); }
.btn--dark { background: var(--band); color: var(--on-band); }
.btn--dark:hover { background: var(--band-2); color: var(--on-band); }
.btn--ghost { border-color: #8F8A82; color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--koala); color: var(--koala-deep); }
.section--dark .btn--ghost, .cta .btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.section--dark .btn--ghost:hover, .cta .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { padding: .7rem 1.1rem; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0,0,0,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img, .brand svg { height: 58px; width: auto; }
.figure img, .hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure--photo { aspect-ratio: 4/3; background: var(--sand-deep); }
.brand__word { font-weight: 900; font-size: 1.15rem; letter-spacing: .06em; line-height: 1; }
.brand__word span { display: block; font-weight: 400; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: .2rem; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .55rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--koala-deep); background: var(--koala-mist); }
.nav .btn { margin-left: .6rem; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 12px; width: 46px; height: 46px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .9rem 1rem; font-size: 1.05rem; }
  .nav .btn { margin: .6rem 0 0; justify-content: center; }
  .header__inner { height: 70px; }
  .nav { inset-block-start: 70px; }
  .brand img, .brand svg { height: 46px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 85% 30%, color-mix(in srgb, var(--koala) 18%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, color-mix(in srgb, var(--apricot) 26%, transparent), transparent 70%),
    var(--bg);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem); min-height: min(74vh, 720px); }
.hero__copy { max-width: 640px; }
.hero__copy h1 { margin-bottom: 1.2rem; }
.hero__copy h1 em { font-style: normal; color: var(--koala-deep); }
.hero__copy .lead { margin-bottom: 2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__facts dd, .hero__facts dt { margin: 0; }
.fact { min-width: 120px; flex: 1 1 140px; max-width: 220px; }
.fact strong { display: block; font-size: 1.6rem; font-weight: 700; color: var(--koala-deep); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact span { font-size: .85rem; color: var(--ink-3); }
.hero__visual { position: relative; min-height: 320px; }
.hero__photo { position: relative; z-index: 1; aspect-ratio: 4/5; max-height: 560px; width: 100%; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); margin-left: auto; max-width: 460px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo .figure__caption { z-index: 2; }
.hero--sub .hero__inner { min-height: 0; padding-block: clamp(3rem, 7vw, 6rem); grid-template-columns: minmax(0, 1fr); }
.hero--sub .hero__visual { display: none; }
.hero--sub .hero__copy { max-width: 760px; }
.hero--sub h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
@media (max-width: 860px) {
  .hero__inner, .hero--sub .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; order: 1; }
  .hero__photo { max-width: none; aspect-ratio: 3/2; max-height: 340px; }
  .hero--sub .hero__visual { display: none; }
  .hero__inner { min-height: 0; padding-block: 2.5rem 3.5rem; }
}

/* --------------------------------------------------------------------------
   Zielgruppen-Weiche
   -------------------------------------------------------------------------- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.path {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2rem; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; overflow: hidden;
}
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--koala); color: var(--ink); }
.path--primary { background: var(--koala); border-color: var(--koala); color: var(--on-koala); }
.path--primary:hover { color: var(--on-koala); }
.path--primary h3, .path--primary p { color: var(--on-koala); }
.path--primary .path__cta { color: var(--on-koala); }
.path__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--koala-mist); color: var(--koala-deep); }
.path--primary .path__icon { background: rgba(255,255,255,.35); color: var(--on-koala); }
.path__icon svg { width: 26px; height: 26px; }
.path h3 { margin: 0; font-size: 1.35rem; }
.path p { margin: 0; color: var(--ink-2); max-width: none; }
.path__cta { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; color: var(--koala-deep); }
.path__cta svg { width: 18px; height: 18px; transition: transform .2s ease; }
.path:hover .path__cta svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Feature-Raster / Karten
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { display: flex; flex-direction: column; gap: .8rem; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--koala-mist); color: var(--koala-deep); }
.feature__icon svg { width: 24px; height: 24px; }
.section--dark .feature__icon { background: rgba(255,255,255,.08); color: #A9DBD7; }
.feature h3 { margin: 0; }
.feature p { margin: 0; color: var(--ink-2); max-width: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.card--soft { background: var(--surface-2); border-color: transparent; }
.card h3 { margin-top: 0; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split > * { min-width: 0; }
.split .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .figure { max-width: 560px; } }

/* Bild-Platzhalter / Bilder */
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--placeholder { aspect-ratio: 4/3; position: relative; display: grid; place-items: end start; color: var(--on-dark); font-weight: 700; text-align: left; padding: 1.2rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(80% 70% at 70% 20%, #E7C9A6 0%, transparent 60%),
    radial-gradient(70% 60% at 20% 90%, #5EACA7 0%, transparent 65%),
    linear-gradient(160deg, #C9A783, #3C6E6A 70%, #23514D);
}
.figure--placeholder > div { font-size: .85rem; background: rgba(20,40,38,.9); backdrop-filter: blur(6px); padding: .5rem .8rem; border-radius: 8px; }
.figure--placeholder span { font-size: .8rem; font-weight: 400; color: var(--on-dark-2); }
.figure__caption { position: absolute; left: 1rem; bottom: 1rem; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); padding: .6rem .9rem; border-radius: 10px; font-size: .85rem; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Der Weg – 5 Schritte (echte Sequenz → Nummern tragen Information)
   -------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; max-width: none; counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); position: relative; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem;
  background: var(--koala); color: var(--on-koala); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 6px var(--koala-mist); }
.step h3 { margin: .35rem 0 .3rem; }
.step p { margin: 0; color: var(--ink-2); }
.step__meta { font-size: .85rem; color: var(--ink-3); margin-top: .5rem; display: block; }
@media (min-width: 900px) {
  .steps--row { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
  .steps--row .step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; border: 0 !important; padding: 0; }
  .steps--row .step::before { content: ""; position: absolute; top: 24px; left: 60px; right: -1.2rem; height: 2px; background: var(--line); }
  .steps--row .step:last-child::before { display: none; }
  .steps--row .step__num { margin-bottom: 1rem; }
}

/* --------------------------------------------------------------------------
   Stimmen
   -------------------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem 3rem; align-items: start; }
.quote { margin: 0; padding: 1.6rem 0 0; border-top: 2px solid var(--koala); display: flex; flex-direction: column; gap: 1.1rem; }
.quote__mark { width: 28px; height: 28px; color: var(--koala); }
.quote p { margin: 0; font-size: 1.02rem; line-height: 1.6; max-width: none; color: var(--ink); }
.quote footer { display: flex; align-items: center; gap: .8rem; font-size: .88rem; line-height: 1.35; color: var(--ink-3); }
.quote footer strong { color: var(--ink); font-weight: 700; }
.quote__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--koala); color: var(--on-koala); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.section--dark .quote { border-top-color: rgba(255,255,255,.18); }
.section--dark .quote p { color: var(--on-dark); }
.section--dark .quote footer { color: var(--on-band-2); }
.section--dark .quote footer strong { color: #fff; }

/* --------------------------------------------------------------------------
   Finanzen – Tabelle
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .98rem; }
th, td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) {
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { display: block; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { display: block; padding: .15rem 0; border: 0; }
  td[data-label="Leistung"] { font-weight: 700; }
  td[data-label="Hinweis"] { color: var(--ink-3); font-size: .92rem; }
  td.num { white-space: normal; }
  td.num::before { content: attr(data-label) ": "; font-weight: 400; color: var(--ink-3); }
}

/* --------------------------------------------------------------------------
   FAQ (Accordion, nativ – barrierefrei)
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq__group { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--koala-deep); margin: 2.2rem 0 .4rem; }
.faq__group:first-child { margin-top: 0; }
.faq__group + details { border-top: 1px solid var(--line); }
.faq details + .faq__group { }
.faq details:has(+ .faq__group) { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 3rem 1.2rem 0; font-weight: 700; font-size: 1.08rem; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--koala-deep); border-bottom: 2px solid var(--koala-deep); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details[open] summary { color: var(--koala-deep); }
.faq .faq__body { padding: 0 0 1.4rem; color: var(--ink-2); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Kennzahlen / Standards
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.stat { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--koala-deep); font-variant-numeric: tabular-nums; margin-bottom: .5rem; }
.stat span { color: var(--ink-2); font-size: .95rem; }
.section--dark .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.section--dark .stat strong { color: #A9DBD7; }
.section--dark .stat span { color: var(--on-band-2); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checklist li { display: block; position: relative; padding-left: 34px; margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 22px; height: 22px; border-radius: 50%; background: var(--koala) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316302E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Kontakt-Band */
.contact-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.contact-card { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-card h2, .contact-card h3 { margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.contact-card a, .contact-card strong { font-weight: 700; font-size: 1.15rem; line-height: 1.3; text-decoration: none; display: inline-block; }
.contact-card strong { margin-bottom: .2rem; }
.contact-card .small { margin-top: .5rem; }
.contact-card p { margin: 0; max-width: none; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.person { display: flex; flex-direction: column; gap: .4rem; }
.person__photo { aspect-ratio: 1; border-radius: var(--radius); background: linear-gradient(145deg, var(--koala-tint), var(--sand-deep)); display: grid; place-items: center; font-weight: 900; font-size: 2.2rem; color: var(--koala-ink); margin-bottom: .6rem; }
.person strong { font-size: 1.1rem; }
.person span { color: var(--ink-3); font-size: .92rem; }

/* Logos */
.logos { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; list-style: none; padding: 0; margin: 0; max-width: none; }
.logos li { margin: 0; }
.logos img { height: 72px; width: auto; }

/* --------------------------------------------------------------------------
   CTA-Band
   -------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2.25rem, 4.5vw, 3.5rem); background: var(--band); color: var(--on-band); }
.cta::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--koala) 55%, transparent), transparent 70%); pointer-events: none; }
.cta h2 { color: #fff; max-width: 640px; }
.cta p { color: var(--on-band-2); max-width: 560px; }
.cta__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; }
@media (max-width: 900px) { .cta__inner { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer .footer__title { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer a { color: var(--ink-2); text-decoration: none; display: inline-block; padding: .2rem 0; }
.footer__brand { padding: 0; border-radius: 12px; }
.footer a:hover { color: var(--koala-deep); text-decoration: underline; }
.footer p { color: var(--ink-2); max-width: 36ch; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; }
.social { display: flex; gap: .6rem; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); }
.social a:hover { border-color: var(--koala); color: var(--koala-deep); }
.social svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Prosa-Seiten (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }

/* --------------------------------------------------------------------------
   Formularfelder
   -------------------------------------------------------------------------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field input { font: inherit; padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid #8F8A82; background: var(--surface); color: var(--ink); width: 100%; }
.field input:focus-visible { border-color: var(--koala-deep); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--koala-deep) 35%, transparent); }
.field .hint { font-size: .85rem; color: var(--ink-3); }
.form-error { color: #B3261E; font-size: .9rem; margin-top: -.5rem; margin-bottom: 1rem; }
:root[data-theme="dark"] .form-error { color: #F2A29B; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
/* Einblenden: Startzustand nur, wenn JS läuft und Bewegung erlaubt ist (kein Aufblitzen) */
html.js:not(.motion-off):not(.no-anim) :is(.hero [data-hero], .will-reveal) { opacity: 0; transform: translateY(24px); will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { html.js :is(.hero [data-hero], .will-reveal) { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .header, .footer, .hero__canvas, .nav-toggle { display: none !important; } }

/* --------------------------------------------------------------------------
   Bento (Warum KOALA) – Zellenzahl = Inhalt: 4 Zellen, 1 Akzent, 1 dunkel
   -------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.bento__cell { grid-column: span 6; padding: 2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.bento__cell:nth-child(1) { grid-column: span 7; }
.bento__cell:nth-child(2) { grid-column: span 5; }
.bento__cell:nth-child(3) { grid-column: span 5; }
.bento__cell:nth-child(4) { grid-column: span 7; }
.bento__cell h3 { margin: 0; }
.bento__cell p { margin: 0; color: var(--ink-2); max-width: none; }
.bento__num { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--koala-deep); font-variant-numeric: tabular-nums; margin-bottom: .6rem; }
.bento__cell--accent { background: var(--koala); border-color: var(--koala); }
.bento__cell--accent .bento__num, .bento__cell--accent h3, .bento__cell--accent p { color: var(--on-koala); }
.bento__cell--dark { background: var(--band); border-color: var(--band); justify-content: center; }
.bento__cell--dark h3 { color: #fff; font-size: 1.6rem; }
.bento__cell--dark p { color: var(--on-band-2); }
@media (max-width: 860px) { .bento__cell, .bento__cell:nth-child(n) { grid-column: span 6; } .bento__cell--photo { min-height: 260px; } }
@media (max-width: 600px) { .bento__cell, .bento__cell:nth-child(n) { grid-column: span 12; } }

/* Gruppierte Leistungslisten (statt 6 gleicher Karten) */
.groups { columns: 3 280px; column-gap: 3rem; }
.groups--2 { columns: 2 320px; }
.group { padding: 1.2rem 0; border-top: 1px solid var(--line); break-inside: avoid; }
.group h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.group p { margin: 0; color: var(--ink-2); max-width: none; }
.section--dark .group { border-color: rgba(255,255,255,.12); }

/* Leistungen (Jugendämter): 7/5 + volle Breite, eine Zelle getönt */
.law { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--koala-deep); background: var(--koala-mist); padding: .3rem .7rem; border-radius: 6px; margin-bottom: .9rem; }
.card--mist { background: var(--koala-mist); border-color: transparent; }
.card--mist .law { background: var(--surface); }
.leistungen { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4rem; }
.leistungen > :nth-child(1) { grid-column: span 7; }
.leistungen > :nth-child(2) { grid-column: span 5; }
.leistungen > :nth-child(3) { grid-column: span 12; display: grid; grid-template-columns: auto 1fr; gap: 0 2rem; align-items: start; }
.leistungen > :nth-child(3) .law { grid-row: span 2; }
@media (max-width: 860px) { .leistungen > :nth-child(n) { grid-column: span 12; display: block; } }

/* Zielgruppen-Weiche als Bildkacheln (statt Icon-Karten) */
.paths--photo .path { padding: 0; min-height: 380px; border: 0; color: #fff; justify-content: flex-end; }
.paths--photo .path::before { content: ""; position: absolute; inset: 0; background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(70% 60% at 75% 20%, #E9C7A2 0%, transparent 60%), linear-gradient(165deg, #D9B896, #4E8E89 60%, #1F4A47); transition: transform .6s ease; }
.paths--photo .path--second::before { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(60% 60% at 20% 20%, #9FD0CC 0%, transparent 60%), linear-gradient(200deg, #6FB5B0, #2F6F6A 55%, #1B3E3B); }
.paths--photo .path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.paths--photo .path:hover::before { transform: scale(1.03); }
.paths--photo .path__body { position: relative; padding: 2rem; padding-top: 4rem; background: linear-gradient(to top, rgba(18,38,36,.96) 0%, rgba(18,38,36,.88) 55%, rgba(18,38,36,0) 100%); display: flex; flex-direction: column; gap: .6rem; }
.paths--photo .path h3, .paths--photo .path p, .paths--photo .path .path__cta { color: #fff; }
.paths--photo .path p { color: #F2F6F5; }
.paths--photo .path__tag { position: absolute; top: 1.2rem; left: 1.2rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: #FFFDFA; color: #1F4A47; padding: .4rem .7rem; border-radius: 999px; }
.paths--photo .path--primary { background: none; }

/* Bento-Zelle als Bild */
.bento__cell--photo { padding: 0; min-height: 240px; border: 0; background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(70% 70% at 30% 30%, #EBCFAE 0%, transparent 60%), linear-gradient(150deg, #D8B48E, #5EACA7 70%); position: relative; overflow: hidden; }
.bento__cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__cell--photo > div { position: absolute; left: 1.2rem; bottom: 1.2rem; font-size: .8rem; background: rgba(20,40,38,.9); color: #fff; backdrop-filter: blur(6px); padding: .45rem .7rem; border-radius: 8px; }


/* --------------------------------------------------------------------------
   Aufklappmenü (modular, aus build/site.json)
   -------------------------------------------------------------------------- */
.nav__group { position: relative; display: inline-flex; align-items: center; }
.nav__link { padding-right: .35rem !important; }
.nav__btn--icon { padding: .55rem .5rem .55rem .1rem; margin-left: -.35rem; }
.nav__group:hover .nav__link, .nav__group.is-open .nav__link { color: var(--koala-deep); }
.nav__group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .6rem; }
.nav__btn { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .85rem; border-radius: 999px; border: 0; background: none; font: 700 .95rem var(--font); color: var(--ink-2); cursor: pointer; }
.nav__btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav__group.is-open .nav__btn, .nav__btn:hover { color: var(--koala-deep); background: var(--koala-mist); }
.nav__group.is-open .nav__btn svg { transform: rotate(180deg); }
.nav__sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; margin-top: .4rem; left: 0; min-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; z-index: 60; }
.nav__group.is-open .nav__sub { opacity: 1; transform: none; pointer-events: auto; }
.nav__sub li { margin: 0; }
.nav__sub a { display: block; border-radius: 8px; padding: .6rem .8rem; font-size: .95rem; }
@media (max-width: 980px) {
  .nav__group { display: flex; align-items: center; flex-wrap: wrap; }
  .nav__link { flex: 1 1 0; min-width: 0; padding: .9rem 1rem !important; font-size: 1.05rem; }
  .nav__group .nav__btn--icon { flex: 0 0 auto; width: 52px; justify-content: center; padding: .9rem 0; margin: 0; }
  .nav__btn--icon svg { width: 18px; height: 18px; }
  .nav__group .nav__sub { flex-basis: 100%; }
  .nav__btn { justify-content: space-between; padding: .9rem 1rem; font-size: 1.05rem; width: 100%; text-align: left; }
  .nav__sub { position: static; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; border: 0; padding: 0 0 .4rem 1rem; display: none; }
  .nav__group.is-open .nav__sub { display: block; }
}

/* Animationen pausieren */
.motion-toggle { background: none; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; font: 700 .8rem var(--font); color: var(--ink-2); cursor: pointer; }
.motion-toggle:hover { border-color: var(--koala); color: var(--koala-deep); }
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation-play-state: paused !important; transition-duration: 0s !important; }

/* --------------------------------------------------------------------------
   Kontaktformular
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field select, .field textarea { font: inherit; padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid #8F8A82; background: var(--surface); color: var(--ink); width: 100%; }
.field textarea { min-height: 160px; resize: vertical; }
.field select:focus-visible, .field textarea:focus-visible { border-color: var(--koala-deep); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--koala-deep) 35%, transparent); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field .field__error { color: #B3261E; font-size: .88rem; }
:root[data-theme="dark"] .field .field__error, :root[data-theme="dark"] .field [aria-invalid="true"] { color: #F2A29B; border-color: #F2A29B; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--koala-deep); }
.field--check label { font-weight: 400; font-size: .95rem; }
.field .required { color: var(--koala-deep); }
.form__status { min-height: 1.4em; font-weight: 700; color: var(--koala-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cta .btn--primary, .section--dark .btn--primary { background: var(--koala); color: var(--on-koala); }
.cta .btn--primary:hover, .section--dark .btn--primary:hover { background: #7CC1BC; color: var(--on-koala); }
.bento__cell--accent .btn--primary { background: var(--band); }
.nav .btn--primary { color: var(--on-band); background: var(--band); } .nav .btn--primary:hover { color: var(--on-band); background: var(--band-2); }

/* --------------------------------------------------------------------------
   Hinweis-Dialog (Nachricht gesendet)
   -------------------------------------------------------------------------- */
.notice { border: 0; border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); width: min(440px, calc(100% - 2.5rem)); }
.notice::backdrop { background: rgba(31, 74, 71, .45); }
.notice__inner { display: grid; justify-items: center; text-align: center; gap: .6rem; padding: 2.2rem 1.8rem 1.8rem; }
.notice__inner svg { width: 52px; height: 52px; color: var(--koala-deep); margin-bottom: .4rem; }
.notice__inner h2 { margin: 0; font-size: 1.5rem; }
.notice__inner p { margin: 0 0 .8rem; max-width: none; }
