/* =========================================================
   Staatliche Grundschule „Dr. Louis Mayer“ Georgenthal
   Farben aus dem Logo: Louis-Grün, Bärenbraun, Wiesengelb,
   Schmetterlingsblau und das Rosa der Kontur.
   Schrift: Nunito (rund, freundlich, gut lesbar).
   ========================================================= */

:root {
  /* Logo-Grün (Ring und Latzhose) */
  --gruen:        #709828;
  --gruen-dunkel: #4c7519;
  --gruen-tief:   #3f6414;
  --gruen-hell:   #c6dc8a;
  --gruen-nebel:  #eef5e0;

  /* Rosa der Logo-Kontur */
  --rosa:         #f4a4cf;
  --rosa-dunkel:  #cc2f80;
  --rosa-hell:    #fbd3e7;
  --rosa-nebel:   #fdecf4;

  /* Wiesengelb der Blumen */
  --gelb:         #f0d92a;
  --gelb-hell:    #f9ef9c;
  --gelb-nebel:   #fdf8d9;

  /* Schmetterlingsblau */
  --blau:         #48b8e0;
  --blau-dunkel:  #2f78c4;
  --blau-hell:    #bfe6f3;
  --blau-nebel:   #e8f6fb;

  /* Herbstlaub */
  --orange:       #e0762e;
  --orange-hell:  #f7c9a4;
  --orange-nebel: #fdeee2;

  /* Bärenbraun */
  --braun:        #584028;
  --braun-hell:   #a68a70;
  --text:         #2f2419;
  --text-grau:    #6d5f52;

  /* Kiddy, Förderverein (Orange aus dem Kiddy-Logo) */
  --kiddy:        #ff5900;
  --kiddy-dunkel: #c94b00;
  --kiddy-nebel:  #fdeee2;

  /* Papier */
  --creme:        #fdf8ec;
  --creme-dunkel: #f6ecd5;
  --weiss:        #ffffff;
  --linie:        #eadfca;

  --schrift: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius:       18px;
  --radius-gross: 28px;
  --rund:         36px;   /* Rundung der Abschnittsübergänge */
  --schatten:     0 10px 30px rgba(88, 64, 40, .10);
  --schatten-tief: 0 24px 50px rgba(88, 64, 40, .18);

  --max:      1180px;
  --max-kopf: 1320px;
  --rand:     24px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--gruen-dunkel); text-decoration: none; }
a:hover { color: var(--gruen-tief); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { max-width: 68ch; }

.innen {
  width: min(var(--max), 100% - 2 * var(--rand));
  margin-inline: auto;
}
.schmal { width: min(760px, 100% - 2 * var(--rand)); margin-inline: auto; }
.mittig { text-align: center; }
.mittig p, .mittig h2 { margin-inline: auto; }
.grau { color: var(--text-grau); }
.klein { font-size: .9rem; }

/* Textmarker-Effekt für ein Wort in der Überschrift */
.marker {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--gelb-hell) 62%, var(--gelb-hell) 92%, transparent 92%);
  padding-inline: .08em;
  border-radius: 2px;
}
.marker--gruen { background-image: linear-gradient(transparent 62%, var(--gruen-hell) 62%, var(--gruen-hell) 92%, transparent 92%); }


/* ============================================
   KNÖPFE
   ============================================ */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 1em 1.9em;
  border-radius: 999px;
  background: var(--gruen-dunkel);
  color: var(--weiss);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(76, 117, 25, .28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.knopf:hover { background: var(--gruen-tief); color: var(--weiss); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(76, 117, 25, .32); }
.knopf svg { width: 1em; height: 1em; }
.knopf--hell { background: var(--weiss); color: var(--gruen-dunkel); box-shadow: var(--schatten); }
.knopf--hell:hover { background: var(--gruen-nebel); color: var(--gruen-tief); }
.knopf--klein { padding: .9em 1.6em; font-size: 1rem; }
.knopf--kiddy { background: var(--kiddy); color: var(--weiss); box-shadow: 0 6px 18px rgba(240, 96, 0, .3); }
.knopf--kiddy:hover { background: #ed4d00; color: var(--weiss); box-shadow: 0 10px 22px rgba(240, 96, 0, .35); }
.knopf--kiddy img { width: 1.7em; height: 1.7em; margin: -.35em -.4em -.35em 0; border-radius: .35em; }
.knopf--zweit { background: var(--gelb); color: var(--text); box-shadow: 0 6px 18px rgba(240, 217, 42, .35); }
.knopf--zweit:hover { background: #e6cf1c; color: var(--text); box-shadow: 0 10px 22px rgba(240, 217, 42, .4); }
.textlink {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 800; color: var(--gruen-dunkel);
  border-bottom: 2px solid var(--gruen-hell);
  padding-bottom: 1px;
}
.textlink:hover { color: var(--gruen-tief); border-color: var(--gruen-dunkel); }
.textlink svg { width: .9em; height: .9em; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; justify-content: center; }


/* ============================================
   KOPFLEISTE: Logo links, Menü, ein Knopf
   ============================================ */
.kopf {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: 14px;
}
.kopf__pille {
  width: min(var(--max-kopf), 100% - 2 * var(--rand));
  margin-inline: auto;
  background: var(--weiss);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(88, 64, 40, .12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 8px 10px 8px 14px;
  min-height: 76px;
}
.kopf__logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--text);
}
.kopf__logo:hover { color: var(--text); }
.kopf__logo img { height: 56px; width: auto; }
.kopf__wortmarke { line-height: 1.12; padding-top: 4px; }
.kopf__wortmarke strong { display: block; font-weight: 900; font-size: 1.08rem; letter-spacing: -.01em; }
.kopf__wortmarke span { display: block; font-size: .9rem; font-weight: 800; color: var(--gruen-dunkel); }
.kopf__nav { display: flex; gap: 4px; align-items: center; justify-self: center; }
.kopf__nav a {
  color: var(--text);
  font-weight: 700;
  font-size: .98rem;
  padding: .5em .85em;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.kopf__nav a:hover, .kopf__nav a[aria-current="page"] { background: var(--gruen-nebel); color: var(--gruen-tief); }
.kopf__nav a.nav--kiddy { color: var(--kiddy-dunkel); }
.kopf__nav a.nav--kiddy:hover { background: var(--kiddy-nebel); color: var(--kiddy-dunkel); }
.overlay__liste a.nav--kiddy { color: var(--kiddy-dunkel); }
.kopf__rechts { display: flex; align-items: center; gap: 10px; justify-self: end; }
.kopf__burger {
  display: none;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--gruen-nebel);
  color: var(--gruen-tief);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.kopf__burger svg { width: 24px; height: 24px; }

@media (max-width: 1100px) {
  .kopf__pille { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 10px 8px 14px; min-height: 66px; }
  .kopf__nav { display: none; }
  .kopf__logo img { height: 50px; }
  .kopf__burger { display: inline-flex; }
}
@media (max-width: 600px) {
  .kopf__cta { display: none; }
  .kopf__wortmarke strong { font-size: .98rem; }
}

/* Mobile Überlagerung */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--creme);
  padding: 24px;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  overflow-y: auto;
}
.overlay[hidden] { display: none; }
.overlay.ist-offen { opacity: 1; transform: none; }
.overlay__kopf { display: flex; justify-content: space-between; align-items: center; }
.overlay__kopf img { height: 64px; }
.overlay__schliessen {
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--weiss); box-shadow: var(--schatten); cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.overlay__schliessen svg { width: 24px; height: 24px; }
.overlay__liste { margin-top: 28px; display: grid; gap: 6px; }
.overlay__liste a {
  display: block; padding: 14px 18px;
  font-size: 1.25rem; font-weight: 800; color: var(--text);
  border-radius: var(--radius); background: var(--weiss);
}
.overlay__liste a[aria-current="page"] { background: var(--gruen-nebel); color: var(--gruen-tief); }
.overlay__fuss { margin-top: auto; display: grid; gap: 14px; padding-top: 24px; }
.overlay__fuss .knopf { justify-content: center; }


/* ============================================
   DOODLES (kleine Zeichnungen)
   ============================================ */
.doodle { position: absolute; pointer-events: none; width: 64px; height: 64px; }
.doodle--gelb   { color: var(--gelb); }
.doodle--rosa   { color: var(--rosa); }
.doodle--gruen  { color: var(--gruen); }
.doodle--blau   { color: var(--blau); }
.doodle--orange { color: var(--orange); }
.doodle--braun  { color: var(--braun-hell); }
@media (max-width: 760px) { .doodle--nur-gross { display: none; } }

/* Zarte Kritzelei im Hintergrund, liegt unter dem Inhalt und läuft nach unten aus */
.gekritzel { position: relative; isolation: isolate; }
.gekritzel::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300' fill='none' stroke='%23584028' stroke-opacity='.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='60' cy='60' r='8'/%3E%3Cpath d='M60 44v-5M60 81v-5M44 60h-5M81 60h-5'/%3E%3Cpath d='M200 40c1 8 5 12 13 13-8 1-12 5-13 13-1-8-5-12-13-13 8-1 12-5 13-13z'/%3E%3Cpath d='M110 200c8-14 24-14 32 0-8 14-24 14-32 0zM126 200v-10'/%3E%3Cpath d='M240 230c-8 0-13-6-13-12s5-12 13-12 13 6 13 12'/%3E%3Cpath d='M40 260c7-8 15-8 22 0'/%3E%3Cpath d='M260 120c0-6 5-6 5 0s-5 6-5 0'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  -webkit-mask: linear-gradient(#000 40%, transparent 95%);
  mask: linear-gradient(#000 40%, transparent 95%);
}


/* ============================================
   ABSCHNITTE: weiße Flächen mit runden Ecken auf cremefarbenem Grund
   ============================================ */
.abschnitt { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
.abschnitt--weiss { background: var(--weiss); }
.abschnitt--creme { background: transparent; }
.abschnitt__kopf { margin-bottom: clamp(28px, 4vw, 48px); }

/* Wellen-Trenner: liegt oben im Abschnitt, in der Farbe des vorherigen Abschnitts */
.welle { position: absolute; top: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; pointer-events: none; }
.welle svg { position: relative; display: block; width: calc(100% + 1.3px); height: clamp(26px, 4vw, 52px); }
.welle path { fill: var(--creme); }
.welle--weiss path { fill: var(--weiss); }
.welle--gespiegelt svg { transform: scaleX(-1); }
.welle--unten { top: auto; bottom: -1px; }
.welle--unten svg { transform: scaleY(-1); }
.welle--unten.welle--gespiegelt svg { transform: scale(-1, -1); }
.abschnitt__kopf--zeile {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.abschnitt__kopf p { margin-top: 12px; color: var(--text-grau); }
@media (max-width: 760px) { :root { --rund: 24px; } }


/* ============================================
   HERO: Text links, Foto rechts weich ausgeblendet
   ============================================ */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: -86px;               /* rutscht unter die schwebende Kopfleiste */
  min-height: clamp(580px, 84vh, 800px);
  display: flex; align-items: center;
  padding: 140px 0 110px;
}
.hero__bild, .seitenkopf__bild {
  position: absolute; inset: 0 -24% 0 0; z-index: -1;
  /* Container ist 124 % breit, Stufen daher auf die sichtbare Breite umgerechnet */
  -webkit-mask-image: linear-gradient(90deg, transparent 34%, rgba(0, 0, 0, .08) 42%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .54) 66%, rgba(0, 0, 0, .7) 72%, rgba(0, 0, 0, .85) 78%, #000 86%);
  mask-image: linear-gradient(90deg, transparent 34%, rgba(0, 0, 0, .08) 42%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .54) 66%, rgba(0, 0, 0, .7) 72%, rgba(0, 0, 0, .85) 78%, #000 86%);
}
.hero__bild img, .seitenkopf__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__inhalt { position: relative; max-width: 540px; }
.hero__inhalt > p {
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--text-grau);
  max-width: 46ch;
}
.hero__knoepfe { margin-top: 32px; justify-content: flex-start; }
.hero .doodle--sonne { top: -76px; left: -6px; width: 72px; height: 72px; }
.hero .doodle--stern { right: -60px; top: 34%; width: 44px; height: 44px; }
.hero .doodle--falter { right: 6%; bottom: 36px; width: 76px; height: 76px; }
@media (max-width: 1100px) {
  .hero .doodle--stern { display: none; }
  .hero__bild, .seitenkopf__bild {
    -webkit-mask-image: linear-gradient(90deg, transparent 36%, rgba(0, 0, 0, .08) 44%, rgba(0, 0, 0, .2) 52%, rgba(0, 0, 0, .36) 60%, rgba(0, 0, 0, .54) 68%, rgba(0, 0, 0, .7) 74%, rgba(0, 0, 0, .85) 80%, #000 88%);
    mask-image: linear-gradient(90deg, transparent 36%, rgba(0, 0, 0, .08) 44%, rgba(0, 0, 0, .2) 52%, rgba(0, 0, 0, .36) 60%, rgba(0, 0, 0, .54) 68%, rgba(0, 0, 0, .7) 74%, rgba(0, 0, 0, .85) 80%, #000 88%);
  }
}
@media (max-width: 900px) {
  .hero { margin-top: 0; min-height: 0; padding: 32px 0 340px; text-align: center; }
  .hero__bild, .seitenkopf__bild {
    top: 52%; right: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .3) 34%, rgba(0, 0, 0, .8) 62%, #000 84%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .3) 34%, rgba(0, 0, 0, .8) 62%, #000 84%);
  }
  .hero__bild img, .seitenkopf__bild img { object-position: 50% 40%; }
  .hero__inhalt { max-width: none; margin-inline: auto; }
  .hero__inhalt > p { margin-inline: auto; }
  .hero__knoepfe { justify-content: center; }
  .hero .doodle--sonne { display: none; }
  .hero .doodle--falter { right: 10px; bottom: 24px; width: 56px; height: 56px; }
}


/* ============================================
   ÜBER UNS: großer Text
   ============================================ */
.ueber { position: relative; }
.ueber__text {
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  text-wrap: balance;
}
.ueber .doodle--wolke { left: 0; top: -20px; width: 90px; height: 60px; }
.ueber .doodle--sonne2 { right: 0; top: -10px; width: 90px; height: 90px; }

/* Fotostreifen unter dem Text: drei leicht gedrehte Bilder mit Unterschrift */
.fotostreifen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: end;
  max-width: 960px;
  margin: clamp(40px, 5vw, 60px) auto 0;
}
.fotostreifen figure {
  background: var(--creme);
  padding: 10px 10px 12px;
  border-radius: 22px;
  box-shadow: var(--schatten);
  transition: transform .2s ease;
}
.fotostreifen figure:nth-child(1) { transform: rotate(-3deg); }
.fotostreifen figure:nth-child(2) { transform: translateY(-16px) rotate(1.5deg); }
.fotostreifen figure:nth-child(3) { transform: rotate(2.5deg); }
.fotostreifen figure:hover { transform: rotate(0) translateY(-6px); }
.fotostreifen img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.fotostreifen figcaption { text-align: center; font-weight: 800; font-size: .92rem; color: var(--text-grau); padding-top: 10px; }
@media (max-width: 600px) {
  .fotostreifen { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 300px; }
  .fotostreifen figure:nth-child(2) { transform: rotate(1.5deg); }
}


/* ============================================
   KARTEN (Angebote), alle gleich aufgebaut
   ============================================ */
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.karte {
  background: var(--weiss);
  border: 2px solid var(--linie);
  border-radius: var(--radius-gross);
  padding: 14px 14px 22px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.karte__bild { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--creme-dunkel); }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; }
.karte h3 { margin: 22px 8px 8px; font-size: 1.2rem; }
.karte--kiddy { border-color: var(--kiddy); }
.karte__logo { height: 64px; width: auto; margin: 22px 8px 0; }
.karte__logo + h3 { margin-top: 10px; }
.karte p { margin: 0 8px; color: var(--text-grau); font-size: .96rem; }
.karte__fuss {
  margin: auto 8px 0;
  padding-top: 22px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.etikett {
  display: inline-block;
  font-size: .8rem; font-weight: 800;
  padding: .35em .85em; border-radius: 999px;
  background: var(--gruen-nebel); color: var(--gruen-tief);
  white-space: nowrap;
}
@media (max-width: 900px) { .karten { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }


/* ============================================
   LEITBILD: Bildcollage und farbige Merkmale
   ============================================ */
.leitbild { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.collage { position: relative; padding: 24px 40px 40px 0; }
.collage__haupt {
  border: 4px solid var(--gruen-hell);
  border-radius: 24px;
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: var(--schatten-tief);
  aspect-ratio: 5 / 4;
}
.collage__haupt img { width: 100%; height: 100%; object-fit: cover; }
.collage__zettel {
  position: absolute; right: 0; top: 0;
  width: 42%;
  background: var(--weiss);
  padding: 8px 8px 12px;
  border-radius: 12px;
  box-shadow: var(--schatten);
  transform: rotate(6deg);
}
.collage__zettel img { border-radius: 8px; aspect-ratio: 1 / 1.1; object-fit: cover; width: 100%; }
.collage__zettel::before {
  content: "";
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--rosa-dunkel);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25), inset -3px -3px 0 rgba(0, 0, 0, .15);
}
.collage .doodle--spirale { left: -10px; bottom: 0; width: 80px; height: 80px; }

.merkmale { display: grid; gap: 14px; }
.merkmal {
  --farbe: var(--gruen-dunkel);
  --tint: var(--gruen-nebel);
  display: flex; align-items: center; gap: 16px;
  background: var(--tint);
  border-radius: 18px;
  padding: 14px 18px 14px 14px;
}
.merkmal--rosa { --farbe: var(--rosa-dunkel); --tint: var(--rosa-nebel); }
.merkmal--gelb { --farbe: #b89b00; --tint: var(--gelb-nebel); }
.merkmal--blau { --farbe: var(--blau-dunkel); --tint: var(--blau-nebel); }
.merkmal--orange { --farbe: var(--orange); --tint: var(--orange-nebel); }
.merkmal--gruen { --farbe: var(--gruen-dunkel); --tint: var(--gruen-nebel); }
.merkmal__buchstabe {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--weiss);
  color: var(--farbe);
  font-size: 1.7rem; font-weight: 900;
  display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(88, 64, 40, .12);
}
.merkmal h3 { font-size: 1.05rem; }
.merkmal h3 b { color: var(--farbe); }
.merkmal p { font-size: .9rem; color: var(--text-grau); margin-top: 2px; }
@media (max-width: 900px) {
  .leitbild { grid-template-columns: minmax(0, 1fr); }
  .collage { max-width: 520px; margin-inline: auto; }
}


/* ============================================
   TERMINE (Liste mit Datumskacheln), ruhig in Grün
   ============================================ */
.termin-liste { display: grid; gap: 12px; }
.termin {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background: var(--weiss);
  border-radius: 20px;
  padding: 14px 22px 14px 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.termin:hover { transform: translateX(4px); box-shadow: var(--schatten); }
.datum {
  width: 84px; height: 84px;
  border-radius: 18px;
  background: var(--gruen-nebel);
  color: var(--gruen-dunkel);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.datum strong { font-size: 1.55rem; font-weight: 900; }
.datum span { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.termin h3 { font-size: 1.12rem; }
.termin p { font-size: .94rem; color: var(--text-grau); margin-top: 2px; }
.termin__klasse { font-size: .82rem; font-weight: 800; color: var(--text-grau); background: var(--creme); padding: .35em .8em; border-radius: 999px; white-space: nowrap; }
@media (max-width: 640px) {
  .termin { grid-template-columns: 68px minmax(0, 1fr); }
  .datum { width: 68px; height: 68px; }
  .datum strong { font-size: 1.3rem; }
  .termin__klasse { grid-column: 2; justify-self: start; }
}

/* Monatsgruppen auf der Terminseite */
.monat { margin-top: 40px; }
.monat > h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gruen-dunkel); margin-bottom: 14px; }


/* ============================================
   TEAM
   ============================================ */
.team-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.person { text-align: center; min-width: 0; }
.person__bild {
  border: 3px solid var(--gruen-hell);
  border-radius: 24px;
  padding: 6px;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  background: var(--weiss);
}
.person__bild img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 18px; }
.person__bild--leer { display: grid; place-items: center; color: var(--gruen-dunkel); background: var(--gruen-nebel); }
.person__bild--leer span { font-size: 2.4rem; font-weight: 900; }
.person h3 { margin-top: 16px; font-size: 1.1rem; }
.person p { font-size: .9rem; color: var(--text-grau); margin: 4px auto 0; }
.person a { font-size: .86rem; overflow-wrap: anywhere; }
@media (max-width: 900px) { .team-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .team-raster { gap: 14px; }
  .person h3 { font-size: .98rem; margin-top: 10px; }
  .person p { font-size: .82rem; }
}


/* ============================================
   NAMENSGEBER: Porträt und Text
   ============================================ */
.namensgeber__raster {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.namensgeber__bild {
  position: relative;
  background: var(--weiss);
  padding: 12px;
  border-radius: 28px;
  box-shadow: var(--schatten);
  transform: rotate(-2deg);
}
.namensgeber__portrait { border-radius: 18px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.namensgeber__bild > .namensgeber__baer {
  position: absolute; right: -30px; bottom: -22px;
  width: 104px;
  transform: rotate(8deg);
  filter: drop-shadow(0 6px 12px rgba(88, 64, 40, .25));
}
.namensgeber .jahre { display: block; font-size: .95rem; color: var(--gruen-dunkel); font-weight: 800; margin-top: 6px; }
.namensgeber__text p { margin-top: 16px; color: var(--text-grau); }
@media (max-width: 800px) {
  .namensgeber__raster { grid-template-columns: minmax(0, 1fr); }
  .namensgeber__bild { max-width: 300px; margin: 0 auto 24px; }
  .namensgeber__text { text-align: center; }
  .namensgeber__text p { margin-inline: auto; }
}


/* ============================================
   GALERIE
   ============================================ */
.galerie {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 18px;
}
.galerie a {
  display: block;
  border: 2px dashed var(--gruen-hell);
  border-radius: 20px;
  padding: 6px;
  background: var(--weiss);
  overflow: hidden;
  transition: transform .2s ease;
}
.galerie a:hover { transform: scale(1.02); }
.galerie a img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.galerie .hoch { grid-row: span 2; }
.galerie .breit { grid-column: span 2; }
@media (max-width: 900px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; } }
@media (max-width: 480px) { .galerie { grid-auto-rows: 140px; gap: 12px; } }

/* Bildergalerie-Seite: Alben */
.album { margin-top: 48px; }
.album h3 { margin-bottom: 6px; }
.album > p { color: var(--text-grau); margin-bottom: 18px; }


/* ============================================
   AKTUELLES
   ============================================ */
.news-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.news {
  background: var(--weiss);
  border-radius: var(--radius-gross);
  padding: 12px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.news:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.news__bild { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; }
.news__bild img { width: 100%; height: 100%; object-fit: cover; }
.news__bild .datum { position: absolute; left: 12px; bottom: 12px; width: 64px; height: 64px; border-radius: 14px; background: var(--weiss); box-shadow: var(--schatten); }
.news__bild .datum strong { font-size: 1.25rem; }
.news__bild .datum span { font-size: .68rem; }
.news__text { padding: 18px 10px 10px; display: flex; flex-direction: column; flex: 1; gap: 0; }
.news p { margin-bottom: 18px; }
.news h3 { font-size: 1.15rem; }
.news h3 a { color: inherit; }
.news h3 a:hover { color: var(--gruen-dunkel); }
.news p { font-size: .94rem; color: var(--text-grau); margin-top: 8px; }
.news .knopf { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .news-raster { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }

/* Ausführliche Beiträge auf der Aktuelles-Seite */
.beitrag {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: center;
  background: var(--weiss); border-radius: var(--radius-gross); padding: 16px;
}
.beitrag + .beitrag { margin-top: 26px; }
.beitrag:nth-child(2n) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.beitrag:nth-child(2n) .beitrag__bild { order: 2; }
.beitrag__bild { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; }
.beitrag__bild img { width: 100%; height: 100%; object-fit: cover; }
.beitrag__text { padding: 8px 12px 8px 0; }
.beitrag:nth-child(2n) .beitrag__text { padding: 8px 0 8px 12px; }
.beitrag time { display: inline-block; font-size: .82rem; font-weight: 800; color: var(--gruen-tief); background: var(--gruen-nebel); padding: .3em .8em; border-radius: 999px; margin-bottom: 12px; }
.beitrag p { margin-top: 10px; color: var(--text-grau); }
@media (max-width: 800px) {
  .beitrag, .beitrag:nth-child(2n) { grid-template-columns: minmax(0, 1fr); }
  .beitrag:nth-child(2n) .beitrag__bild { order: 0; }
  .beitrag__text, .beitrag:nth-child(2n) .beitrag__text { padding: 8px 8px 12px; }
}


/* ============================================
   AUFRUF: schlichter hellgrüner Kasten
   ============================================ */
.aufruf__karte {
  background: var(--gruen-nebel);
  border-radius: var(--radius-gross);
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}
.aufruf__karte h2 { margin-inline: auto; }
.aufruf__karte p { margin: 18px auto 0; color: var(--text-grau); max-width: 60ch; }
.aufruf__karte .knopfreihe { margin-top: 28px; }
.inhalt--creme .aufruf__karte { background: var(--weiss); }



/* ============================================
   FUSS: dunkelgrün, drei Spalten, weißer Text
   ============================================ */
.fuss {
  position: relative;
  padding: clamp(72px, 8vw, 104px) 0 28px;
  background: var(--gruen-tief);
  color: var(--weiss);
}
.fuss__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.fuss__logo { display: flex; align-items: center; gap: 14px; color: var(--weiss); }
.fuss__logo > span { padding-top: 4px; line-height: 1.12; }
.fuss__logo:hover { color: var(--weiss); }
.fuss__logo img { height: 64px; width: auto; }
.fuss__logo strong { display: block; font-weight: 900; font-size: 1.08rem; line-height: 1.15; }
.fuss__logo span span { display: block; font-size: .9rem; color: var(--weiss); font-weight: 800; }
.fuss__spalte > p { margin-top: 16px; font-size: .95rem; color: var(--weiss); line-height: 1.7; max-width: 32ch; }
.fuss h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--weiss); margin-bottom: 14px; }
.fuss address { font-style: normal; font-size: .95rem; line-height: 1.8; color: var(--weiss); }
.fuss address a { font-weight: 700; color: var(--weiss); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.fuss address a:hover { color: var(--weiss); text-decoration-color: var(--weiss); }
.fuss__unten {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .86rem; color: var(--weiss);
}
.fuss__unten nav { display: flex; align-items: center; gap: 12px; }
.fuss__unten nav a { color: var(--weiss); font-weight: 700; }
.fuss__unten nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fuss__unten nav span { color: rgba(255, 255, 255, .5); }
@media (max-width: 860px) { .fuss__raster { grid-template-columns: minmax(0, 1fr); gap: 28px; } }


/* ============================================
   UNTERSEITEN: Seitenkopf mit Foto, Brotkrumen, Inhaltsflächen
   ============================================ */
.seitenkopf {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 6vw, 64px) 0 clamp(44px, 6vw, 64px);
  text-align: center;
}
.seitenkopf h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-inline: auto; }
.seitenkopf p { margin: 16px auto 0; color: var(--text-grau); font-size: 1.08rem; max-width: 56ch; }

.seitenkopf--bild {
  margin-top: -86px;               /* rutscht unter die schwebende Kopfleiste */
  min-height: clamp(400px, 56vh, 560px);
  display: flex; align-items: center;
  padding: 130px 0 64px;
  text-align: left;
}
.seitenkopf--bild h1 { max-width: 620px; margin-inline: 0; }
.seitenkopf--bild p { margin-inline: 0; }
@media (max-width: 900px) {
  .seitenkopf--bild { margin-top: 0; min-height: 0; padding: 28px 0 250px; text-align: center; }
  .seitenkopf--bild h1, .seitenkopf--bild p { margin-inline: auto; }
}

/* Brotkrumen als kleine weiße Pille */
.brotkrumen {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--weiss);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  box-shadow: var(--schatten);
  font-size: .86rem; font-weight: 700;
  margin-bottom: 18px;
}
.brotkrumen a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-grau); }
.brotkrumen a:hover { color: var(--gruen-dunkel); }
.brotkrumen a svg { width: 16px; height: 16px; }
.brotkrumen__pfeil { width: 14px; height: 14px; color: var(--braun-hell); }
.brotkrumen b { color: var(--gruen-dunkel); font-weight: 800; }

/* Gruppenfoto ohne Rahmen */
.gruppenbild img { width: 100%; border-radius: 28px; box-shadow: var(--schatten-tief); }
[id="lehrerteam"], [id="hortteam"] { scroll-margin-top: 90px; }

/* Tagesablauf im Hort */
.tagesablauf {
  position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px;
  list-style: none;
  max-width: 1080px; margin-inline: auto;
}
.tagesablauf::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 20px;
  height: 3px; background: var(--gruen-hell); border-radius: 3px;
}
.tagesablauf li { position: relative; text-align: center; }
.tagesablauf__zeit {
  display: inline-block; position: relative; z-index: 1;
  background: var(--gruen-dunkel); color: var(--weiss);
  font-weight: 900; font-size: .98rem;
  padding: .45em 1em; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.tagesablauf h3 { font-size: 1.05rem; margin-top: 16px; }
.tagesablauf p { font-size: .9rem; color: var(--text-grau); margin: 6px auto 0; max-width: 24ch; }
@media (max-width: 900px) {
  .tagesablauf { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 360px; }
  .tagesablauf::before { left: 50%; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform: translateX(-50%); }
  .tagesablauf li { background: var(--weiss); padding: 4px 0; }
}
.karten--zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin-inline: auto; }

/* Zeitenliste (Hort) */
.zeiten { margin-top: 24px; display: grid; gap: 0; }
.zeiten div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 2px dotted var(--linie); }
.zeiten dt { font-weight: 700; }
.zeiten dd { font-weight: 800; color: var(--gruen-dunkel); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Bildstapel: großes Foto mit kleinem, überlappendem Foto */
.bildstapel { position: relative; padding: 0 0 56px 0; }
.bildstapel__gross { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--schatten-tief); }
.bildstapel__klein {
  position: absolute; left: -24px; bottom: 0;
  width: 44%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 20px; border: 6px solid var(--weiss);
  box-shadow: var(--schatten);
  transform: rotate(-4deg);
}
@media (max-width: 800px) { .bildstapel { padding-bottom: 40px; } .bildstapel__klein { left: 0; } }
@media (max-width: 900px) { .karten--zwei { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

.inhalt { padding: clamp(48px, 7vw, 88px) 0; background: var(--weiss); position: relative; }
.inhalt--creme { background: transparent; }
/* Auf weißer Fläche werden Karten cremefarben, damit sie sich abheben */
.inhalt .termin, .inhalt .beitrag, .inhalt .download { background: var(--creme); }
.inhalt--creme .termin, .inhalt--creme .beitrag, .inhalt--creme .download { background: var(--weiss); }

.text { width: min(760px, 100% - 2 * var(--rand)); margin-inline: auto; }
.text h2 { margin-top: 44px; margin-bottom: 14px; font-size: 1.6rem; }
.text h2:first-child { margin-top: 0; }
.text h3 { margin-top: 28px; margin-bottom: 8px; }
.text p + p { margin-top: 14px; }
.text ul { margin: 12px 0 0; display: grid; gap: 8px; }
.text ul li { position: relative; padding-left: 28px; }
.text ul li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gruen-hell); border: 2px solid var(--gruen);
}
.text .knopf { margin-top: 20px; }

.zweispaltig > * { min-width: 0; }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 800px) { .zweispaltig { grid-template-columns: minmax(0, 1fr); } }

.kasten {
  --farbe: var(--gruen-hell);
  --tint: var(--gruen-nebel);
  background: var(--tint);
  border: 2px solid var(--farbe);
  border-radius: var(--radius-gross);
  padding: 28px 30px;
}
.kasten--rosa { --farbe: var(--rosa-hell); --tint: var(--rosa-nebel); }
.kasten--blau { --farbe: var(--blau-hell); --tint: var(--blau-nebel); }
.kasten--gelb { --farbe: var(--gelb-hell); --tint: var(--gelb-nebel); }
.kasten--orange { --farbe: var(--orange-hell); --tint: var(--orange-nebel); }
.kasten h3 { margin-bottom: 12px; }
.kasten ul { display: grid; gap: 10px; }
.kasten li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px dotted rgba(88, 64, 40, .15); padding-bottom: 8px; font-size: .96rem; }
.kasten li b { white-space: nowrap; }
.kasten p + p { margin-top: 10px; }
.kasten + .kasten { margin-top: 20px; }

.bildrahmen {
  --farbe: var(--gruen-hell);
  border: 3px solid var(--farbe);
  border-radius: 24px;
  padding: 6px;
  background: var(--weiss);
  overflow: hidden;
}
.bildrahmen img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bildrahmen--rosa { --farbe: var(--rosa-hell); }
.bildrahmen--blau { --farbe: var(--blau-hell); }
.bildrahmen--gelb { --farbe: var(--gelb-hell); }
.bildrahmen--gedreht { transform: rotate(-2deg); }
.bildrahmen + .bildrahmen { margin-top: 24px; }
.bildrahmen figcaption { font-size: .86rem; color: var(--text-grau); padding: 10px 8px 4px; font-weight: 700; }

/* Downloads */
.downloads { display: grid; gap: 12px; }
.download {
  display: flex; align-items: center; gap: 16px;
  background: var(--weiss);
  border-radius: 18px;
  padding: 14px 18px;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease;
}
.download:hover { transform: translateX(4px); box-shadow: var(--schatten); color: var(--text); }
.download__typ {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 900; letter-spacing: .05em;
  background: var(--gruen-nebel); color: var(--gruen-tief);
}
.download__typ--doc { background: var(--blau-nebel); color: var(--blau-dunkel); }
.download strong { display: block; }
.download span { font-size: .86rem; color: var(--text-grau); }
.download svg { margin-left: auto; width: 22px; height: 22px; color: var(--gruen-dunkel); flex: none; }

/* Kontakt */
.kontakt-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kontakt-karte {
  background: var(--creme);
  border-radius: var(--radius-gross);
  padding: 28px;
  text-align: center;
}
.kontakt-karte__zeichen {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 16px;
  background: var(--weiss); display: grid; place-items: center; color: var(--gruen-dunkel);
  box-shadow: 0 3px 8px rgba(88, 64, 40, .12);
}
.kontakt-karte__zeichen svg { width: 28px; height: 28px; }
.kontakt-karte h3 { font-size: 1.1rem; margin-bottom: 8px; }
.kontakt-karte p { margin-inline: auto; font-size: .96rem; }
.kontakt-karte a { font-weight: 800; }
@media (max-width: 860px) { .kontakt-raster { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; } }

/* Hinweis für Platzhaltertexte, die die Schule noch liefert */
.hinweis {
  background: var(--gelb-nebel);
  border: 2px solid var(--gelb-hell);
  border-radius: 18px;
  padding: 16px 20px;
  font-size: .94rem;
  margin-top: 24px;
}
