/* ==========================================================================
   Kindergarten Elemauka — Design System
   Modern, hell, luftig. Keine externen Ressourcen (DSGVO-konform).
   ========================================================================== */

/* --- 1. Design Tokens --------------------------------------------------- */
:root {
  /* Markenfarben */
  --c-navy:       #263A51;   /* Primär – Markenfarbe der bisherigen Website */
  --c-navy-dark:  #1B2A3B;
  --c-navy-mid:   #35506E;
  --c-navy-light: #7B93AE;
  --c-navy-soft:  #EEF2F7;

  --c-sun:        #F2A03D;   /* Akzent – warmes Sonnengelb, für Aktionen */
  --c-sun-dark:   #D9822B;
  --c-sun-soft:   #FDF1E1;

  --c-leaf:       #4E8C6E;   /* Natur – Lernwerkstatt Natur */
  --c-leaf-dark:  #3A6B53;
  --c-leaf-soft:  #E8F2EC;

  --c-sky:        #4A7FB5;
  --c-sky-soft:   #E9F1F8;

  /* Gruppenfarben */
  --g-bienen:     #EE1B22;
  --g-elefanten:  #0184CC;
  --g-fische:     #00A652;
  --g-maeuse:     #FFE600;
  --g-katzen:     #65009A;
  --g-eichhorn:   #FF5900;

  /* Neutrale Töne */
  --c-ink:        #23282D;
  --c-ink-soft:   #55606B;
  --c-ink-mute:   #7C868F;
  --c-line:       #E3E6EA;
  --c-bg:         #FFFFFF;
  --c-bg-warm:    #F7F9FB;
  --c-bg-tint:    #EDF1F6;

  /* Typografie – Systemschriften, kein externer Font-CDN */
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
               "Noto Sans", Arial, sans-serif;
  --font-display: "Trebuchet MS", "Segoe UI", -apple-system, sans-serif;

  --fs-xs:  0.8125rem;
  --fs-sm:  0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:  1.1875rem;
  --fs-lg:  1.375rem;
  --fs-xl:  1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;

  /* Abstände */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* Form */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 32px;  --r-full: 999px;

  --shadow-sm: 0 1px 3px rgba(35, 40, 45, .06), 0 1px 2px rgba(35, 40, 45, .04);
  --shadow-md: 0 4px 16px rgba(35, 40, 45, .07), 0 1px 4px rgba(35, 40, 45, .04);
  --shadow-lg: 0 12px 40px rgba(35, 40, 45, .10), 0 4px 12px rgba(35, 40, 45, .05);

  --container: 1180px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --- 2. Reset & Basis --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-x: hidden;
}

img, picture, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 var(--sp-4);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--c-navy);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, var(--fs-4xl)); }
h2 { font-size: clamp(1.7rem, 3.6vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-4); max-width: 68ch; }

a { color: var(--c-navy-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-sun-dark); }

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

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; background: var(--c-navy); color: #fff;
  padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--r-md) var(--r-md);
  text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* --- 3. Layout ---------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, 800px); margin-inline: auto; }

.section { padding-block: clamp(var(--sp-7), 8vw, var(--sp-9)); }
.section--tint { background: var(--c-bg-warm); }
.section--sun  { background: var(--c-sun-soft); }
.section--leaf { background: var(--c-leaf-soft); }
.section--navy { background: var(--c-navy-soft); }

.section-head { max-width: 760px; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--c-ink-soft); font-size: var(--fs-md); }
.section-head--center p { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-sun-dark);
  margin-bottom: var(--sp-3);
}

.grid { display: grid; gap: var(--sp-5); }
/* Mindestbreite je Spalte, aber nie mehr Spalten als angegeben (2 / 3 / 4) */
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(320px, calc((100% - var(--sp-5)) / 2))), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(280px, calc((100% - 2 * var(--sp-5)) / 3))), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(220px, calc((100% - 3 * var(--sp-5)) / 4))), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* --- 4. Header & Navigation --------------------------------------------- */
.topbar {
  background: var(--c-navy);
  color: #CBD6E3;
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.topbar .container {
  display: flex; justify-content: flex-end; align-items: center;
  gap: var(--sp-5); min-height: 38px; flex-wrap: wrap;
}
.topbar a { color: #CBD6E3; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--c-sun); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-navy);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.site-header :focus-visible { outline-color: var(--c-sun); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex-shrink: 0; }
.brand img { height: clamp(40px, 7vw, 54px); width: auto; max-width: 62vw; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: #fff; }
.brand-sub { font-size: var(--fs-xs); color: rgba(255,255,255,.62); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.32);
  background: transparent; border-radius: var(--r-md); cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
  position: relative; transition: background .2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: #fff; transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

.nav > ul {
  display: flex; align-items: center; gap: var(--sp-1);
  list-style: none; margin: 0; padding: 0;
}
.nav a, .nav .nav-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .8rem; border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.92);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: inherit; transition: background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.nav a:hover, .nav .nav-btn:hover { background: rgba(255,255,255,.13); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.10); color: var(--c-sun); }

.has-sub { position: relative; }
.has-sub > .nav-btn::after {
  content: ""; width: 7px; height: 7px; margin-left: .1rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--ease);
}
.has-sub[data-open="true"] > .nav-btn::after { transform: rotate(-135deg) translateY(-2px); }

.subnav {
  list-style: none; margin: 0; padding: var(--sp-3);
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-sub[data-open="true"] > .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { display: block; width: 100%; padding: .55rem .75rem; border-radius: var(--r-sm);
  font-weight: 500; color: var(--c-ink); }
.subnav a:hover { background: var(--c-navy-soft); color: var(--c-navy); }
.subnav a[aria-current="page"] { background: var(--c-navy-soft); color: var(--c-navy); }

/* --- 5. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: var(--r-full);
  font-weight: 700; font-size: var(--fs-sm); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .18s var(--ease), background .18s var(--ease),
              box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-navy); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--c-navy-dark); color: #fff; box-shadow: var(--shadow-lg); }
.btn--sun { background: var(--c-sun); color: #23282D; box-shadow: var(--shadow-md); }
.btn--sun:hover { background: var(--c-sun-dark); color: #fff; }
.btn--leaf { background: var(--c-leaf); color: #fff; box-shadow: var(--shadow-md); }
.btn--leaf:hover { background: var(--c-leaf-dark); color: #fff; }
.btn--ghost { border-color: var(--c-line); background: #fff; color: var(--c-ink); }
.btn--ghost:hover { border-color: var(--c-navy); color: var(--c-navy); }
.btn--light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--c-ink); }

/* --- 6. Hero ------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(27,42,59,.68) 0%, rgba(27,42,59,.38) 45%, rgba(27,42,59,.78) 100%);
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  background: var(--c-navy);
}
.hero-inner {
  min-height: min(78vh, 660px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(var(--sp-8), 12vw, var(--sp-10));
  max-width: 800px;
}
.hero h1 { color: #fff; margin-bottom: var(--sp-5); text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.hero-lead { font-size: var(--fs-md); color: rgba(255,255,255,.94); max-width: 56ch; margin-bottom: var(--sp-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-quote {
  border-left: 3px solid var(--c-sun);
  padding-left: var(--sp-4); margin-bottom: var(--sp-5);
  font-style: italic; font-size: var(--fs-md); color: rgba(255,255,255,.95);
}
.hero-quote cite { display: block; font-style: normal; font-size: var(--fs-sm); opacity: .8; margin-top: .35rem; }

/* Kompakter Seitenkopf für Unterseiten */
.page-head {
  background: var(--c-bg-warm);
  border-bottom: 1px solid var(--c-line);
  padding-block: clamp(var(--sp-6), 7vw, var(--sp-8));
}
.page-head h1 { margin-bottom: var(--sp-3); }
.page-head p { color: var(--c-ink-soft); font-size: var(--fs-md); margin-bottom: 0; }

.breadcrumb { font-size: var(--fs-xs); color: var(--c-ink-mute); margin-bottom: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--c-ink-mute); }
.breadcrumb a { color: var(--c-ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-sun-dark); text-decoration: underline; }

/* --- 7. Karten ---------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { aspect-ratio: 4 / 3; background: var(--c-bg-tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card--link:hover .card-media img { transform: scale(1.05); }
.card-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: var(--sp-2); }
.card-body p { color: var(--c-ink-soft); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.card-body .card-cta { margin-top: auto; font-weight: 700; font-size: var(--fs-sm); color: var(--c-navy-mid); text-decoration: none; }
.card--link:hover .card-cta { text-decoration: underline; }
.card-date { font-size: var(--fs-xs); color: var(--c-ink-mute); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--sp-2); }

/* Gruppenkarten mit Farbleiste */
.card--group { text-align: center; text-decoration: none; color: inherit; }
.card--group .card-media { aspect-ratio: 16 / 10; background: var(--group-color, var(--c-bg-tint)); }
.card--group .card-media img { object-fit: cover; }
.card--group .card-body { padding: var(--sp-4); }
.card--group h3 { margin-bottom: 0; font-size: var(--fs-md); }
.card--group .group-sub { font-size: var(--fs-xs); color: var(--c-ink-mute); }

/* --- 8. Fakten / Feature-Blöcke ----------------------------------------- */
.feature { display: flex; gap: var(--sp-4); align-items: flex-start; }
.feature-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--c-navy-soft); color: var(--c-navy);
  font-size: 1.5rem;
}
.feature-icon--leaf { background: var(--c-leaf-soft); color: var(--c-leaf-dark); }
.feature-icon--sky  { background: var(--c-sky-soft);  color: var(--c-sky); }
.feature h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.feature p  { font-size: var(--fs-sm); color: var(--c-ink-soft); margin-bottom: 0; }

.stat { text-align: center; }
.stat-value {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700; color: var(--c-navy); line-height: 1;
}
.stat-label { font-size: var(--fs-sm); color: var(--c-ink-soft); margin-top: var(--sp-2); }

/* Split-Block: Bild + Text */
.split { display: grid; gap: clamp(var(--sp-5), 5vw, var(--sp-7)); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split-media { order: 2; }
}
.split-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* --- 9. Listen: Termine, Ferien, Öffnungszeiten ------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; gap: var(--sp-2) var(--sp-5); align-items: start;
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--c-line);
}
@media (min-width: 700px) { .timeline li { grid-template-columns: 220px 1fr; } }
.timeline .t-date {
  font-weight: 700; color: var(--c-navy-mid); font-size: var(--fs-sm);
  letter-spacing: .02em;
}
.timeline .t-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.timeline .t-note { color: var(--c-ink-soft); font-size: var(--fs-sm); margin: 0; }
.timeline li[data-status="closed"] .t-date { color: #B5473C; }
.timeline li[data-status="open"]   .t-date { color: var(--c-leaf-dark); }
.timeline li:not([data-status]) .t-date { color: var(--c-navy-mid); }

.badge {
  display: inline-block; padding: .2rem .7rem; border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em;
}
.badge--closed { background: #FBE9E7; color: #B5473C; }
.badge--open   { background: var(--c-leaf-soft); color: var(--c-leaf-dark); }

.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); min-width: 560px; }
th, td { padding: var(--sp-4); text-align: left; border-bottom: 1px solid var(--c-line); }
thead th { background: var(--c-bg-warm); font-family: var(--font-display); font-size: var(--fs-sm); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; white-space: nowrap; }

.info-box {
  background: var(--c-sky-soft); border-left: 4px solid var(--c-sky);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--sp-5);
}
.info-box :last-child { margin-bottom: 0; }
.info-box--sun  { background: var(--c-sun-soft);  border-color: var(--c-sun); }
.info-box--leaf { background: var(--c-leaf-soft); border-color: var(--c-leaf); }

/* Preis-/Beitragskarten */
.price-card { text-align: left; }
.price-card .price {
  font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700;
  color: var(--c-navy); margin-bottom: var(--sp-3);
}
.price-card ul { margin: 0; padding-left: 1.15rem; font-size: var(--fs-sm); color: var(--c-ink-soft); }
.price-card li + li { margin-top: .35rem; }

/* Nummerierte Schritte */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 var(--sp-6) var(--sp-8); border-left: 2px solid var(--c-line);
  margin-left: 22px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: -23px; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-navy); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md);
  box-shadow: 0 0 0 6px #fff;
}
.steps h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.steps p { font-size: var(--fs-sm); color: var(--c-ink-soft); margin-bottom: 0; }

/* Checkliste */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: var(--sp-3); font-size: var(--fs-sm); color: var(--c-ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45rem;
  width: 11px; height: 6px; border-left: 2.5px solid var(--c-sun);
  border-bottom: 2.5px solid var(--c-sun); transform: rotate(-45deg);
}

/* --- 10. Team ----------------------------------------------------------- */
.team-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.team-member { text-align: center; margin: 0; }
.team-member img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: var(--r-lg); background: var(--c-bg-tint); margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-sm);
}
.team-member .t-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); }
.team-member .t-role { font-size: var(--fs-xs); color: var(--c-ink-mute); }

/* --- 11. Galerie -------------------------------------------------------- */
.gallery { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery a { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--c-bg-tint); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .45s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(20, 24, 28, .93); padding: var(--sp-5);
  align-items: center; justify-content: center;
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; width: auto; border-radius: var(--r-md); }
.lightbox-close {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; cursor: pointer;
}
.lightbox-close:hover { background: #fff; color: var(--c-ink); }

/* --- 12. Karte mit Einwilligung (DSGVO) --------------------------------- */
.map-consent {
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  background: var(--c-bg-warm); padding: var(--sp-7) var(--sp-5);
  text-align: center; min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.map-consent p { font-size: var(--fs-sm); color: var(--c-ink-soft); max-width: 46ch; }
.map-frame { border: 0; width: 100%; height: 420px; border-radius: var(--r-lg); display: block; }

/* --- 13. Footer --------------------------------------------------------- */
.site-footer { background: var(--c-navy-dark); color: #B9C5D3; padding-block: var(--sp-8) var(--sp-5); margin-top: 0; }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer a { color: #B9C5D3; text-decoration: none; }
.site-footer a:hover { color: var(--c-sun); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .55rem; }
.site-footer p { font-size: var(--fs-sm); color: #98A7B8; }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  font-size: var(--fs-xs); color: #8496A8;
}
.footer-bottom nav { display: flex; gap: var(--sp-5); flex-wrap: wrap; }

/* --- 14. CTA-Band ------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-dark) 100%);
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin-inline: auto; }
.cta-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-5); }

/* --- 15. Mobile Navigation ---------------------------------------------- */
@media (max-width: 1000px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: flex; }


  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto;
    width: min(400px, 100%); background: var(--c-navy);
    border-left: 1px solid rgba(255,255,255,.10);
    padding: var(--sp-5) var(--sp-5) var(--sp-8);
    overflow-y: auto; transform: translateX(101%);
    transition: transform .28s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .nav > ul { flex-direction: column; align-items: stretch; gap: var(--sp-1); }
  .nav a, .nav .nav-btn {
    width: 100%; justify-content: space-between;
    padding: .85rem 1rem; border-radius: var(--r-md); font-size: var(--fs-base);
  }
  .has-sub > .nav-btn { font-weight: 700; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
    padding: 0 0 var(--sp-3) var(--sp-4);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .subnav a { color: rgba(255,255,255,.85); }
  .subnav a:hover,
  .subnav a[aria-current="page"] { background: rgba(255,255,255,.13); color: #fff; }
  .has-sub[data-open="true"] > .subnav { max-height: 800px; }
  .subnav a { font-size: var(--fs-sm); }
}

@media (max-width: 560px) {
  .topbar .container { justify-content: center; gap: var(--sp-4); }
  .hero-inner { min-height: 68vh; }
  .brand-sub { display: none; }
}

/* --- 16. Druck ---------------------------------------------------------- */
@media print {
  .topbar, .site-header, .site-footer, .cta-band, .hero-actions { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* --- 17. Hilfsklassen --------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Baukasten der Verwaltung (verwaltung/vorlagen.html)
   ========================================================================== */
blockquote { margin: 0; }
.anschluss > .knopf-zeile { margin-top: var(--sp-6); }
.grid + .anschluss > .info-box,
.table-wrap + .anschluss > .grid,
.anschluss > .hinweisband { margin-top: var(--sp-7); }
.anschluss > .fliesstext,
blockquote.info-box + .anschluss { margin-top: var(--sp-6); }
.fliesstext > :first-child { margin-top: 0; }
.fliesstext h2 { margin-top: var(--sp-7); }
.fliesstext h2 + p { margin-top: 0; }
.container--narrow .fliesstext p { max-width: none; }

/* Einzelbild */
.einzelbild { margin: 0; }
.einzelbild img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; }
.einzelbild figcaption { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--c-ink-soft); text-align: center; }

/* Personen: alle in einer Reihe, groß im Hochformat */
.team-grid[data-schmal] { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5); }
.team-grid[data-schmal] .team-member { flex: 1 1 200px; max-width: 290px; }
@media (min-width: 900px) {
  .team-grid[data-schmal] { flex-wrap: nowrap; }
}

/* Galerie mit ganzen, unbeschnittenen Bildern */
.gallery--ganz { grid-template-columns: repeat(2, 1fr); align-items: start; }
@media (min-width: 900px) { .gallery--ganz { grid-template-columns: repeat(4, 1fr); } }
.gallery--ganz img { aspect-ratio: auto; height: auto; }

/* Kacheln mit ganzen Bildern (z.B. Konzeption) */
.bilder-ganz .card-media { aspect-ratio: auto; background: #fff; }
.bilder-ganz .card-media img { height: auto; object-fit: contain; }

/* Knopf unter der Seitenüberschrift */
.page-head .kopf-knopf { margin-top: var(--sp-6); }

/* Hinweisband: hervorgehobene Einzelinformation */
.hinweisband {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5);
  background: var(--c-navy); color: #fff; border-radius: var(--r-lg);
  padding: var(--sp-6) clamp(var(--sp-5), 4vw, var(--sp-7));
}
.hinweisband-symbol {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.9rem; background: rgba(255,255,255,.12);
}
.hinweisband-text { flex: 1 1 320px; }
.hinweisband h3 { color: #fff; margin: 0 0 var(--sp-2); font-size: var(--fs-lg); }
.hinweisband p { color: rgba(255,255,255,.88); margin: 0; }
.hinweisband a:not(.btn) { color: #fff; }

/* ==========================================================================
   Gruppenfarben – auf Seiten mit <body data-gruppe="…">
   --gruppe: Originalfarbe, --gruppe-auf: Textfarbe auf der Farbe,
   --gruppe-tinte: dunklere Variante für Text auf Weiß (Kontrast ≥ 4.5:1)
   ========================================================================== */
[data-gruppe="bienen"]    { --gruppe: var(--g-bienen);    --gruppe-auf: #fff;    --gruppe-tinte: #C8141B; }
[data-gruppe="elefanten"] { --gruppe: var(--g-elefanten); --gruppe-auf: #fff;    --gruppe-tinte: #01679F; }
[data-gruppe="fische"]    { --gruppe: var(--g-fische);    --gruppe-auf: #fff; --gruppe-tinte: #007A3D; }
[data-gruppe="maeuse"]    { --gruppe: var(--g-maeuse);    --gruppe-auf: #fff; --gruppe-tinte: #766A00; }
[data-gruppe="katzen"]    { --gruppe: var(--g-katzen);    --gruppe-auf: #fff;    --gruppe-tinte: #65009A; }
[data-gruppe="eichhorn"]  { --gruppe: var(--g-eichhorn);  --gruppe-auf: #fff; --gruppe-tinte: #B83F00; }

[data-gruppe] { --gruppe-hauch: color-mix(in srgb, var(--gruppe) 7%, #fff); }

/* Seitenkopf in voller Gruppenfarbe */
[data-gruppe] .page-head { background: var(--gruppe); border-bottom: 0; color: var(--gruppe-auf); }
[data-gruppe] .page-head h1,
[data-gruppe] .page-head p,
[data-gruppe] .page-head .eyebrow,
[data-gruppe] .page-head .breadcrumb,
[data-gruppe] .page-head .breadcrumb a,
[data-gruppe] .page-head .breadcrumb li + li::before { color: var(--gruppe-auf); }
[data-gruppe] .page-head p { font-weight: 600; }
[data-gruppe] .page-head { text-shadow: 0 1px 2px rgba(0, 0, 0, .28); }
[data-gruppe="maeuse"] .page-head { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
[data-gruppe] .page-head p a { color: inherit; }
[data-gruppe] .page-head .btn--ghost { background: transparent; border-color: currentColor; color: var(--gruppe-auf); }
[data-gruppe] .page-head .btn--ghost:hover { background: #fff; color: var(--gruppe-tinte); text-shadow: none; }

/* Dezente Akzente im Seiteninhalt */
[data-gruppe] main .eyebrow { color: var(--gruppe-tinte); }
[data-gruppe] main .check-list li::before { border-color: var(--gruppe); }
[data-gruppe] main .section--tint { background: var(--gruppe-hauch); }
[data-gruppe] main .team-member .t-name { display: inline-block; padding-bottom: 2px; border-bottom: 3px solid var(--gruppe); }
[data-gruppe] main .info-box--leaf,
[data-gruppe] main blockquote.info-box { border-left-color: var(--gruppe); background: var(--gruppe-hauch); }

/* ==========================================================================
   Lernwerkstätten (Entwurf B): Zitat-Band, Momente, Link-Chips, Schwerpunkt
   ========================================================================== */
.zitatband { background: var(--c-navy); color: #fff; text-align: center; }
.zitatband blockquote p {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.22;
  max-width: 22ch; margin: 0 auto var(--sp-5); color: #fff; text-wrap: balance;
}
.zitatband cite { font-style: normal; color: var(--c-sun); font-weight: 700; }

.momente { display: grid; gap: var(--sp-6) var(--sp-7); }
@media (min-width: 800px) { .momente { grid-template-columns: 1fr 1fr; } }
.moment { display: grid; grid-template-columns: 170px 1fr; gap: var(--sp-5); align-items: center; }
.moment img { width: 170px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.moment p { font-size: var(--fs-md); margin: 0; color: var(--c-ink); }
.moment-punkt { width: 170px; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--c-sun-soft); position: relative; }
.moment-punkt::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--c-sun); }
@media (max-width: 560px) {
  .moment { grid-template-columns: 110px 1fr; gap: var(--sp-4); }
  .moment img, .moment-punkt { width: 110px; }
}

.chips-titel { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; margin: 0 0 var(--sp-4); color: var(--c-navy); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.chips a {
  display: inline-block; padding: .55rem 1.1rem; border: 1px solid var(--c-line); border-radius: var(--r-full);
  text-decoration: none; color: var(--c-ink); font-weight: 600; font-size: var(--fs-sm); background: #fff;
}
.chips a:hover { border-color: var(--c-navy); color: var(--c-navy); }

.page-head .schwerpunkt { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--fs-sm); color: var(--c-ink-soft); margin-top: var(--sp-3); }
.page-head .schwerpunkt i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.page-head .schwerpunkt a { color: inherit; font-weight: 600; }

/* ==========================================================================
   Blog „Post aus dem Kindergarten“
   ========================================================================== */
.blog-karte { color: inherit; text-decoration: none; }
.blog-karte p { color: var(--c-ink-soft); }
.blog-karte .card-media { background: var(--c-bg-tint); aspect-ratio: 4 / 5; }
.blog-karte h3 { font-size: var(--fs-md); }
.blog-leer { color: var(--c-ink-soft); grid-column: 1 / -1; }
.blog-bild { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); margin-bottom: var(--sp-7); }
.blog-beitrag .fliesstext p { font-size: var(--fs-md); line-height: 1.75; }
.blog-zurueck { margin-top: var(--sp-7); }

/* Instagram-Link in der Fußzeile */
.site-footer .instagram { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: #fff; }
.site-footer .instagram:hover { color: var(--c-sun); }
.site-footer .instagram svg { flex: none; }

/* Neuigkeiten und Blog behalten die Spaltenbreite, auch bei nur einem Eintrag */
.news-liste, .blog-liste {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(280px, calc((100% - 2 * var(--sp-5)) / 3))), 1fr));
}
