/* =========================================================
   Staatliche Grundschule „Dr. Louis Mayer“ Georgenthal
   Theme-Stylesheet – 1:1 aus der HTML-Vorlage übernommen,
   ergänzt um lokale Schrift, WordPress- und Elementor-Anpassungen
   (siehe Abschnitt „WORDPRESS & ELEMENTOR“ am Ende).
   ========================================================= */

/* Nunito als variable Schrift (400–900), lokal im Theme – keine externen Requests. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* Logo-Grün (Ring und Latzhose) */
  --gruen:        #709828;
  --gruen-dunkel: #4c7519;
  --gruen-tief:   #3f6414;
  --gruen-hell:   #c6dc8a;
  --gruen-nebel:  #eef5e0;
  --gruen-flaeche: #f0f6e3;   /* ruhige grüne Abschnittsfläche */

  /* 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;
  --orange-text:  #c25a14;   /* Orange mit genug Kontrast für Schrift */

  /* 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;

  /* Schriftgrößen: nur diese Stufen verwenden */
  --fs-xs: .8125rem;   /* 13px  Etiketten, Monatsnamen */
  --fs-sm: .9375rem;   /* 15px  Kartentext, Bildtitel, Nebeninfos */
  --fs-md: 1.0625rem;  /* 17px  Fließtext, Knöpfe */
  --fs-lg: 1.1875rem;  /* 19px  Einleitungen, Zwischenüberschriften h3 */
  --fs-xl: 1.625rem;   /* 26px  h2 in Textseiten */

  /* Schriftstärken: normal für Text, halbfett für Bedienelemente, fett für Überschriften */
  --fw-text:   400;
  --fw-ui:     700;
  --fw-titel:  800;

  --radius:       18px;
  --radius-gross: 28px;
  --rund:         36px;   /* Rundung der Abschnittsübergänge */
  --schatten-flach: 0 2px 4px rgba(88, 64, 40, .04), 0 6px 18px rgba(88, 64, 40, .07);
  --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; }
[hidden] { display: none !important; }
* { 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; }
}

html { font-size: 16px; }
body {
  font-family: var(--schrift);
  font-size: var(--fs-md);
  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); }
/* Links im Fließtext: überall gleich, grün, halbfett, unterstrichen */
:where(p, dd, address, td, .text li) a:not(.knopf):not(.textlink) {
  font-weight: var(--fw-ui);
  text-decoration: underline;
  text-decoration-color: var(--gruen-hell);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
:where(p, dd, address, td, .text li) a:not(.knopf):not(.textlink):hover { text-decoration-color: currentColor; }
body img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
strong { font-weight: var(--fw-titel); }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-weight: var(--fw-titel);
  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: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

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: var(--fs-sm); }

/* Farbiges Schlüsselwort in Überschriften, Farben aus dem Logo */
.marker { font-style: normal; color: var(--orange-text); }
.marker--gruen { color: var(--gruen-dunkel); }
.marker--rosa  { color: var(--rosa-dunkel); }
.marker--blau  { color: var(--blau-dunkel); }


/* ============================================
   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: var(--fw-titel);
  font-size: var(--fs-md);
  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: var(--fs-sm); }
.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); }
html body .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: var(--fw-ui); 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); }
html body .kopf__logo img { height: 56px; width: auto; }
.kopf__wortmarke { line-height: 1.12; padding-top: 4px; }
.kopf__wortmarke strong { display: block; font-weight: var(--fw-titel); font-size: 1.08rem; letter-spacing: -.01em; }
.kopf__wortmarke span { display: block; font-size: var(--fs-sm); font-weight: var(--fw-titel); color: var(--gruen-dunkel); }
.kopf__nav { display: flex; gap: 4px; align-items: center; justify-self: center; }
.kopf__nav a {
  color: var(--text);
  font-weight: var(--fw-ui);
  font-size: var(--fs-md);
  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; }
  html body .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; }
html body .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: var(--fs-lg); font-weight: var(--fw-titel); 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; } }

/* Muster im Hero und in den Seitenköpfen: kleine Zeichnungen, die zum Rand hin auslaufen */
.hero::before, .seitenkopf::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220' fill='none' stroke='%23709828' stroke-opacity='.18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 22c1 8 5 12 13 13-8 1-12 5-13 13-1-8-5-12-13-13 8-1 12-5 13-13z'/%3E%3Ccircle cx='160' cy='40' r='7'/%3E%3Cpath d='M160 26v-4M160 58v-4M146 40h-4M178 40h-4'/%3E%3Cpath d='M108 128c-8-6-12-10-12-15a5 5 0 0 1 12-2 5 5 0 0 1 12 2c0 5-4 9-12 15z'/%3E%3Cpath d='M28 170c6-6 12-6 18 0s12 6 18 0'/%3E%3Ccircle cx='180' cy='150' r='3'/%3E%3Ccircle cx='80' cy='70' r='2.5'/%3E%3Cpath d='M170 196l6-10 6 10z'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 75% 45%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 90% at 75% 45%, #000 25%, transparent 80%);
}
/* in zentrierten Seitenköpfen bleibt die Mitte hinter dem Text frei */
.seitenkopf::before {
  -webkit-mask-image: linear-gradient(90deg, #000 5%, transparent 32%, transparent 68%, #000 95%);
  mask-image: linear-gradient(90deg, #000 5%, transparent 32%, transparent 68%, #000 95%);
}
@media (max-width: 900px) {
  .hero::before { -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 70%); mask-image: linear-gradient(180deg, transparent 30%, #000 70%); }
}

/* 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--gruen path { fill: var(--gruen-flaeche); }
.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%);
}
html body .hero__bild img, html body .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: var(--fs-lg);
  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%);
  }
  html body .hero__bild img, html body .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: var(--fw-titel);
  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 { 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); }
html body .fotostreifen img { border: 6px solid var(--weiss); border-radius: 22px; box-shadow: var(--schatten); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@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); }
html body .karte__bild img { width: 100%; height: 100%; object-fit: cover; }
html body .karte > img:not(.karte__logo) { align-self: flex-start; }
.karte h2, .karte h3 { margin: 22px 8px 8px; font-size: var(--fs-lg); }
.karte--kiddy { border-color: var(--kiddy); }
html body .karte__logo { height: 64px; width: auto; max-width: 220px; align-self: flex-start; object-fit: contain; margin: 22px 8px 0; }
html body .karte__logo + h2, .karte__logo + h3 { margin-top: 10px; }
.karte p { margin: 0 8px; color: var(--text-grau); font-size: var(--fs-sm); }
.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: var(--fs-xs); font-weight: var(--fw-titel);
  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;
}
html body .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);
}
html body .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: var(--fw-titel);
  display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(88, 64, 40, .12);
}
.merkmal h2, .merkmal h3 { font-size: var(--fs-md); }
.merkmal h2 b, .merkmal h3 b { color: var(--farbe); }
.merkmal p { font-size: var(--fs-sm); 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: 1px solid var(--linie);
  border-radius: 20px;
  padding: 14px 22px 14px 14px;
  box-shadow: var(--schatten-flach);
  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: var(--fw-titel); }
.datum span { font-size: var(--fs-xs); font-weight: var(--fw-titel); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.termin h2, .termin h3 { font-size: var(--fs-lg); }
.termin p { font-size: var(--fs-sm); color: var(--text-grau); margin-top: 2px; }
.termin__klasse { font-size: var(--fs-xs); font-weight: var(--fw-titel); 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 > h2, .monat > h3 { font-size: var(--fs-md); 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);
}
html body .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: var(--fw-titel); }
.person h2, .person h3 { margin-top: 16px; font-size: var(--fs-lg); }
.person p { font-size: var(--fs-sm); color: var(--text-grau); margin: 4px auto 0; }
.person a { font-size: var(--fs-sm); 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 h2, .person h3 { font-size: var(--fs-sm); margin-top: 10px; }
  .person p { font-size: var(--fs-xs); }
}


/* ============================================
   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);
}
html body .namensgeber__portrait { border-radius: 18px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.namensgeber .jahre { display: block; font-size: var(--fs-sm); color: var(--gruen-dunkel); font-weight: var(--fw-titel); 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); }
html body .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 h2, .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 {
  position: relative;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  padding: 12px;
  display: flex; flex-direction: column;
  box-shadow: var(--schatten-flach);
  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; }
html body .news__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
html body .news:hover .news__bild img { transform: scale(1.04); }
.news__bild--frei { background: var(--gruen-flaeche); }
html body .news__bild--frei img { object-fit: contain; padding: 14px 0 0; filter: drop-shadow(0 10px 18px rgba(88, 64, 40, .2)); }
.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: var(--fs-lg); }
.news__bild .datum span { font-size: var(--fs-xs); }
.news__text { padding: 18px 10px 10px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.news h2, .news h3 { font-size: var(--fs-lg); }
.news h2 a, .news h3 a { color: inherit; }
/* die ganze Karte ist klickbar */
.news__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news:hover h2 a, .news:hover h3 a { color: var(--gruen-dunkel); }
.news p { font-size: var(--fs-sm); color: var(--text-grau); margin: 8px 0 18px; }
.news .knopf { margin-top: auto; }
.news:hover .knopf { background: var(--gruen-tief); }
.news:focus-within { outline: 3px solid var(--blau); outline-offset: 3px; }
.news__link:focus-visible { outline: none; }

/* großer Hauptbeitrag oben auf der Aktuelles-Seite */
.news--gross { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.news--gross .news__bild { aspect-ratio: 16 / 10; height: 100%; }
.news--gross .news__text { padding: 24px 28px; }
.news--gross h2, .news--gross h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.news--gross p { font-size: var(--fs-md); }
@media (max-width: 900px) {
  .news-raster { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .news--gross { grid-template-columns: minmax(0, 1fr); }
  .news--gross .news__text { padding: 18px 10px 10px; }
  .news--gross h2, .news--gross h3 { font-size: var(--fs-lg); }
}

/* EINZELBEITRAG: schlanker, zentrierter Kopf, Bild ragt leicht in die Welle */
.artikel__breite, .artikel { width: min(880px, 100% - 2 * var(--rand)); margin-inline: auto; }
.seitenkopf.seitenkopf--beitrag { padding-bottom: clamp(130px, 13vw, 160px); }
.seitenkopf.seitenkopf--beitrag::before { bottom: clamp(110px, 11vw, 140px); }
.seitenkopf.seitenkopf--beitrag h1 { margin: 0 auto; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.12; max-width: 28ch; }
.seitenkopf .artikel__meta {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 18px auto 0;
  padding: 7px 14px 7px 12px;
  background: var(--weiss); border-radius: 999px; box-shadow: var(--schatten-flach);
  font-size: var(--fs-sm); font-weight: var(--fw-ui); color: var(--gruen-dunkel); line-height: 1;
}
.artikel__meta svg { width: 16px; height: 16px; flex: none; }
.inhalt.inhalt--beitrag, .abschnitt.inhalt--beitrag { padding-top: 0; }
.artikel__bild { position: relative; z-index: 2; margin: calc(-1 * clamp(90px, 9.5vw, 115px)) 0 clamp(36px, 5vw, 52px); }
html body .artikel__bild img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 6px solid var(--weiss); border-radius: var(--radius-gross); box-shadow: var(--schatten-tief); }
.artikel__bild--frei { background: var(--gruen-flaeche); border: 6px solid var(--weiss); border-radius: var(--radius-gross); box-shadow: var(--schatten-tief); padding-top: 28px; }
html body .artikel__bild--frei img { aspect-ratio: auto; max-height: 420px; width: auto; margin-inline: auto; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 14px 24px rgba(88, 64, 40, .22)); }
.artikel__text { max-width: 680px; margin-inline: auto; }
.artikel__text p { color: var(--text-grau); font-size: var(--fs-lg); line-height: 1.7; }
.artikel__text p + p { margin-top: 18px; }
.artikel__fuss { max-width: 680px; margin: 44px auto 0; padding-top: 28px; border-top: 2px dotted var(--linie); }
.knopf__zurueck { transform: rotate(180deg); }

/* ============================================
   AUFRUF: Louis links, Text und Schritte rechts, ohne Kasten
   ============================================ */
.aufruf {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  max-width: 1040px;
}
.aufruf__bild { position: relative; text-align: center; }
html body .aufruf__bild img { width: 100%; max-width: 320px; height: auto; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(88, 64, 40, .22)); }
.aufruf__stern { left: 4%; top: 6%; width: 48px; height: 48px; }
.aufruf__herz { right: 6%; bottom: 12%; width: 40px; height: 40px; }
.aufruf__text > p { margin-top: 16px; color: var(--text-grau); font-size: var(--fs-lg); }
.aufruf__text .knopfreihe { margin-top: 32px; justify-content: flex-start; }

/* Schritte mit Datumskacheln und gestrichelter Verbindung */
.schritte { list-style: none; margin-top: 28px; display: grid; gap: 18px; position: relative; }
.schritte::before {
  content: ""; position: absolute; left: 31px; top: 32px; bottom: 32px;
  border-left: 2px dashed var(--gruen-hell);
}
.schritt { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; }
.schritt .datum { width: 64px; height: 64px; border-radius: 16px; background: var(--weiss); border: 2px solid var(--gruen-hell); }
.schritt .datum strong { font-size: var(--fs-md); }
.schritt .datum span { font-size: var(--fs-xs); letter-spacing: .02em; text-transform: none; }
.schritt h2, .schritt h3 { font-size: var(--fs-lg); }
.schritt p { font-size: var(--fs-sm); color: var(--text-grau); margin-top: 2px; }
@media (max-width: 800px) {
  .aufruf { grid-template-columns: minmax(0, 1fr); text-align: center; }
  html body .aufruf__bild img { max-width: 240px; }
  .aufruf__text > p { margin-inline: auto; }
  .aufruf__text .knopfreihe { justify-content: center; }
  .schritte { text-align: left; max-width: 420px; margin-inline: auto; }
}



/* ============================================
   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); }
html body .fuss__logo img { height: 64px; width: auto; }
.fuss__logo strong { display: block; font-weight: var(--fw-titel); font-size: 1.08rem; line-height: 1.15; }
.fuss__logo span span { display: block; font-size: var(--fs-sm); color: var(--weiss); font-weight: var(--fw-titel); }
.fuss__spalte > p { margin-top: 16px; font-size: var(--fs-sm); color: var(--weiss); line-height: 1.7; max-width: 32ch; }
.fuss h4, .fuss .fuss__titel { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--weiss); margin-bottom: 14px; }
.fuss address { font-style: normal; font-size: var(--fs-sm); line-height: 1.8; color: var(--weiss); }
.fuss address a { font-weight: var(--fw-ui); 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: var(--fs-sm); color: var(--weiss);
}
.fuss__unten nav { display: flex; align-items: center; gap: 12px; }
.fuss__unten nav a { color: var(--weiss); font-weight: var(--fw-ui); }
.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 {
  z-index: 1;
  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: var(--fs-lg); 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: 8px;
  background: var(--weiss);
  padding: 7px 16px 7px 12px;
  line-height: 1;
  border-radius: 999px;
  box-shadow: var(--schatten);
  font-size: var(--fs-sm); font-weight: var(--fw-ui);
  margin-bottom: 18px;
}
.brotkrumen a, .brotkrumen b { display: inline-flex; align-items: center; gap: 6px; line-height: 1; padding-top: .12em; }
.brotkrumen a { color: var(--text-grau); }
.brotkrumen a:hover { color: var(--gruen-dunkel); }
.brotkrumen svg { display: block; flex: none; }
.brotkrumen a svg { width: 16px; height: 16px; margin-top: -.12em; }
.brotkrumen__pfeil { width: 14px; height: 14px; color: var(--braun-hell); }
.brotkrumen b { color: var(--gruen-dunkel); font-weight: var(--fw-titel); }

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

/* 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: var(--fw-titel); font-size: var(--fs-sm);
  padding: .45em 1em; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.tagesablauf h3 { font-size: var(--fs-md); margin-top: 16px; }
.tagesablauf p { font-size: var(--fs-sm); 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: var(--fw-ui); }
.zeiten dd { font-weight: var(--fw-titel); 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; }
html body .bildstapel__gross { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--schatten-tief); }
html body .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; } html body .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; }
.abschnitt--gruen { background: var(--gruen-flaeche); }
.inhalt--creme { background: transparent; }
.inhalt--gruen { background: var(--gruen-flaeche); }
/* Auf weißer Fläche werden Karten cremefarben, damit sie sich abheben */

.text { width: min(760px, 100% - 2 * var(--rand)); margin-inline: auto; }
.text h2 { margin-top: 44px; margin-bottom: 14px; font-size: var(--fs-xl); }
.text h2:first-child { margin-top: 0; }
.text h3 { margin-top: 28px; margin-bottom: 8px; }
.text p, .text li { color: var(--text-grau); }
.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: var(--fs-sm); }
.kasten li b { white-space: nowrap; }
.kasten p + p { margin-top: 10px; }
.kasten + .kasten { margin-top: 20px; }

/* Foto mit weißem Rand, wie im Fotostreifen */
.foto { position: relative; }
html body .foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--weiss); border-radius: 26px; box-shadow: var(--schatten-tief); }


/* Downloads */
.downloads { display: grid; gap: 12px; }
.download {
  display: flex; align-items: center; gap: 16px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--schatten-flach);
  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: var(--fs-xs); font-weight: var(--fw-titel); 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; font-weight: var(--fw-titel); font-size: var(--fs-md); color: var(--text); }
.download span { font-size: var(--fs-sm); font-weight: var(--fw-text); color: var(--text-grau); }
.download svg { margin-left: auto; width: 22px; height: 22px; color: var(--gruen-dunkel); flex: none; }

/* Kontakt: Daten links, Bärenfoto rechts */
.kontakt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.kontakt__liste { display: grid; gap: 16px; }
.kontakt-zeile {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start;
  background: var(--creme);
  border-radius: var(--radius-gross);
  padding: 24px 28px 24px 24px;
}
.kontakt-zeile__zeichen {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--weiss); color: var(--gruen-dunkel);
  display: grid; place-items: center;
  box-shadow: var(--schatten-flach);
}
.kontakt-zeile__zeichen svg { width: 26px; height: 26px; }
.kontakt-zeile h3 { margin: 4px 0 8px; }
.kontakt-zeile p { color: var(--text-grau); }
.kontakt-zeile .textlink { margin-top: 10px; font-size: var(--fs-sm); }
.kontakt-zeile__werte { display: grid; gap: 4px; }
.kontakt-zeile__werte div { display: flex; flex-wrap: wrap; gap: 0 12px; }
.kontakt-zeile__werte dt { color: var(--text-grau); min-width: 112px; }
.kontakt-zeile__werte dd { color: var(--text); }

/* Louis am Telefon mit Sprechblase */
.kontakt__louis { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.kontakt__bild { position: relative; width: 100%; max-width: 360px; padding-top: 56px; }
.kontakt__bild::before {
  content: ""; position: absolute; z-index: 0;
  left: 8%; right: 8%; bottom: 4%; aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed var(--gruen-hell);
}
html body .kontakt__bild img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(88, 64, 40, .22)); }
.sprechblase {
  position: absolute; z-index: 2; top: 0; right: -8px;
  background: var(--weiss);
  padding: 10px 18px;
  border-radius: 20px;
  box-shadow: var(--schatten);
  font-size: var(--fs-sm); font-weight: var(--fw-titel); color: var(--text);
  white-space: nowrap;
  transform: rotate(3deg);
}
.sprechblase::after {
  content: ""; position: absolute; left: 26px; bottom: -9px;
  width: 18px; height: 18px; background: var(--weiss);
  border-radius: 0 0 4px 0;
  transform: rotate(45deg);
}
.kontakt__stern { left: -4px; top: 80px; width: 40px; height: 40px; z-index: 2; }
@media (max-width: 860px) {
  .kontakt { grid-template-columns: minmax(0, 1fr); }
  .kontakt__louis { order: -1; }
  .kontakt__bild { max-width: 280px; }
  .sprechblase { right: 0; }
}
@media (max-width: 480px) { .kontakt-zeile { grid-template-columns: minmax(0, 1fr); padding: 20px; } }

/* 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: var(--fs-sm);
  margin-top: 24px;
}


/* ============================================
   LOUIS, DER SCHULBÄR: Maskottchen-Bausteine
   ============================================ */
.maskottchen__raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .maskottchen__raster { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; gap: 32px; }
}




/* Freigestellter Louis rechts im Hero der Startseite */
.hero__louis {
  position: absolute; left: calc(50% + 90px); bottom: 36px; z-index: -1;
  width: min(36%, 440px); height: calc(100% - 130px);
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
html body .hero__louis img { max-height: 100%; max-width: 100%; width: auto; height: auto; filter: drop-shadow(0 18px 30px rgba(88, 64, 40, .22)); }
/* Sprechblase rechts neben Louis, Spitze zeigt zu ihm */
.sprechblase--hero {
  top: 40%; right: -150px; left: auto;
  width: 240px;
  white-space: normal;
  font-size: var(--fs-sm); font-weight: var(--fw-text); line-height: 1.5; color: var(--text-grau);
  padding: 18px 20px;
  border-radius: 22px;
  transform: rotate(2deg);
}
.sprechblase--hero strong { display: block; font-size: var(--fs-lg); font-weight: var(--fw-titel); color: var(--gruen-dunkel); margin-bottom: 4px; }
.sprechblase--hero::after { left: -8px; top: 30px; bottom: auto; border-radius: 0 0 0 4px; }
@media (max-width: 1400px) { .sprechblase--hero { right: -90px; } }
@media (max-width: 1250px) { .sprechblase--hero { right: -20px; top: 56%; width: 210px; } }
@media (max-width: 900px) { .sprechblase--hero { display: none; } }
@media (max-width: 900px) {
  .hero__louis { left: 50%; right: auto; transform: translateX(-50%); bottom: 24px; width: auto; height: 300px; }
}

/* Freigestellte Louis-Bilder in Rahmen und Beiträgen */
.louis-frei { display: flex; flex-direction: column; align-items: center; }
html body .louis-frei img { display: block; height: 380px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(88, 64, 40, .22)); }
html body .louis-frei--quer img { height: auto; width: 100%; max-height: 380px; }
@media (max-width: 600px) { html body .louis-frei img { height: 300px; } }

/* FOTOPLATZ: Foto mit Louis, der über den Rand ragt */
.fotoplatz { position: relative; padding: 0 0 48px 0; margin-right: clamp(40px, 8%, 80px); }
html body .fotoplatz__bild {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 6px solid var(--weiss); border-radius: 26px; box-shadow: var(--schatten-tief);
  transform: rotate(-2deg);
}
.fotoplatz__bild--leer {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--weiss); box-shadow: none;
  border: 3px dashed var(--gruen-hell);
  color: var(--gruen-dunkel);
  font-size: var(--fs-sm); font-weight: var(--fw-ui);
  padding-right: 42%;
  text-align: center;
}
.fotoplatz__bild--leer svg { width: 56px; height: 56px; color: var(--gruen); }
html body .fotoplatz__louis {
  position: absolute; right: clamp(-80px, -8%, -40px); bottom: 0;
  width: 52%; max-width: 300px; height: auto;
  filter: drop-shadow(0 14px 24px rgba(88, 64, 40, .25));
}
@media (max-width: 800px) {
  .fotoplatz { margin-right: 0; padding-bottom: 64px; }
  html body .fotoplatz__louis { right: -8px; width: 46%; }
}

/* BILDTITEL: überall dieselbe schlichte Pille */
.fotostreifen figcaption, .foto figcaption, .louis-frei figcaption {
  display: flex; align-items: center; gap: 8px;
  width: fit-content; max-width: calc(100% - 24px);
  margin: 16px auto 0;
  padding: 8px 18px;
  background: var(--weiss);
  border-radius: 999px;
  box-shadow: var(--schatten-flach);
  font-size: var(--fs-sm); font-weight: var(--fw-ui); line-height: 1.3;
  color: var(--text);
  text-align: center;
}
/* bei Fotos rutscht der Titel ein Stück auf das Bild */
.fotostreifen figcaption, .foto figcaption { position: relative; margin-top: -22px; }

/* Datei-Symbol statt Dateityp-Kürzel in Download-Listen */
.download .download__typ svg { margin: 0; width: 26px; height: 26px; color: inherit; }


/* ============================================
   FORMULARE
   ============================================ */
.formulare-titel { font-size: var(--fs-xl); margin: 48px 0 16px; }
.download__typ--kiddy { background: var(--kiddy-nebel); }
html body .download__typ--kiddy img { width: 34px; height: 34px; border-radius: 8px; }

/* Download-Zeile in einem farbigen Kasten */
.download--im-kasten { margin-top: 18px; background: var(--weiss); }



/* =========================================================
   WORDPRESS & ELEMENTOR
   Alles, was das Theme über die HTML-Vorlage hinaus braucht.
   ========================================================= */

/* Sprunglink für Tastatur-Nutzer */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  padding: .8em 1.4em; border-radius: 999px;
  background: var(--gruen-tief); color: var(--weiss); font-weight: var(--fw-titel);
}
.skip-link:focus { top: 12px; color: var(--weiss); }

/* Abschnitte: Abstände und Innenbreiten aus den Widget-Einstellungen */
.abschnitt--oben-klein  { padding-top: clamp(28px, 4vw, 48px); }
.abschnitt--oben-keiner { padding-top: 0; }
.abschnitt--unten-klein  { padding-bottom: clamp(28px, 4vw, 48px); }
.abschnitt--unten-keiner { padding-bottom: 0; }
.innen--schmal { width: min(900px, 100% - 2 * var(--rand)); }
.innen--text   { width: min(760px, 100% - 2 * var(--rand)); }
.innen--mittel { width: min(920px, 100% - 2 * var(--rand)); }
.abschnitt__kopf--links { text-align: left; }
.knopfreihe--danach { margin-top: 36px; }
.knopfreihe--links { justify-content: flex-start; }

/* Widgets liegen in genau einem Elementor-Container (volle Breite, Padding 0,
   Lücken 0). Die Abschnitte bringen Hintergrund, Welle und Abstände selbst mit. */
[class*="elementor-widget-gsg-"] { width: 100%; margin-block-end: 0; }
[class*="elementor-widget-gsg-"] > .elementor-widget-container { margin: 0; }
.e-con > [class*="elementor-widget-gsg-"] { --container-widget-width: 100%; }
/* Elementor setzt auf Bilder eigene Rundungen/Schatten zurück – wir nicht. */
body [class*="elementor-widget-gsg-"] img { max-width: 100%; }

/* Fließtext aus dem WordPress-Editor (Beiträge, Impressum, Datenschutz) */
.artikel__text h2, .text h2 { font-size: var(--fs-xl); margin: 40px 0 12px; }
.artikel__text h3, .text h3 { margin: 28px 0 8px; }
.artikel__text h2:first-child, .artikel__text h3:first-child { margin-top: 0; }
.artikel__text ul, .artikel__text ol { margin: 14px 0 0 0; display: grid; gap: 8px; color: var(--text-grau); font-size: var(--fs-lg); }
.artikel__text ul li { position: relative; padding-left: 28px; }
.artikel__text ul li::before {
  content: ""; position: absolute; left: 4px; top: .6em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gruen-hell); border: 2px solid var(--gruen);
}
.artikel__text ol { list-style: decimal; padding-left: 26px; }
.artikel__text p + ul, .artikel__text p + ol, .artikel__text ul + p, .artikel__text ol + p { margin-top: 16px; }
.artikel__text figure, .text figure { margin: 24px 0; }
html body .artikel__text img, html body .text img { border-radius: var(--radius); }
.artikel__text figcaption, .text figcaption { font-size: var(--fs-sm); color: var(--text-grau); margin-top: 8px; text-align: center; }
.artikel__text blockquote, .text blockquote {
  margin: 20px 0; padding: 16px 22px;
  border-left: 4px solid var(--gruen-hell); background: var(--gruen-nebel); border-radius: 0 var(--radius) var(--radius) 0;
}
.text ol { margin: 12px 0 0; padding-left: 26px; list-style: decimal; display: grid; gap: 8px; }
.text table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: var(--fs-sm); }
.text td, .text th { padding: 8px 10px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }

/* Kopfleiste: WordPress-Menüs liefern <li> */
.kopf__nav li, .overlay__liste li { margin: 0; }
.kopf__nav .menu-item-has-children > a::after { display: none; }

/* Datumskachel: Hinweis „offen“ */
.datum--offen strong { font-size: 1.1rem; }
.datum--offen span { text-transform: none; letter-spacing: .02em; }

/* Terminliste ohne Etikett: Text nimmt die volle Breite */
.termin--ohne-klasse { grid-template-columns: 84px minmax(0, 1fr); }
@media (max-width: 640px) { .termin--ohne-klasse { grid-template-columns: 68px minmax(0, 1fr); } }

/* Leere Zustände (keine Einträge im Backend) */
.leer {
  padding: 22px 26px; border-radius: var(--radius);
  background: var(--gelb-nebel); border: 2px dashed var(--gelb-hell);
  font-size: var(--fs-sm); color: var(--text-grau);
}

/* Galerie: Alben untereinander, erste ohne Abstand nach oben */
.album:first-child { margin-top: 0; }

/* 404 */
.fehler { text-align: center; }
html body .fehler img { max-width: 260px; margin: 0 auto 24px; filter: drop-shadow(0 18px 30px rgba(88, 64, 40, .22)); }

/* Suchergebnisse / Archiv-Fallback */
.liste { display: grid; gap: 14px; }
.liste article { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 22px; }
.liste h2 { font-size: var(--fs-lg); }
.liste p { color: var(--text-grau); font-size: var(--fs-sm); margin-top: 6px; }

/* Bildschirmleser-Text */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}

/* Elementor-Lightbox in unseren Farben */
.elementor-lightbox { --lightbox-ui-color: var(--weiss); }

/* Im Elementor-Editor: Hero darf nicht unter die Kopfleiste rutschen, sonst ist
   der Anfasser des Widgets nicht erreichbar. */
.elementor-editor-active .hero { margin-top: 0; }

/* Text & Bild: Absätze aus dem Editor wie in der Vorlage (grau, mit Abstand) */
.zweispaltig__text > h2 + *, .zweispaltig__text > h3 + * { margin-top: 14px; }
.zweispaltig__text p { color: var(--text-grau); }
.zweispaltig__text p + p, .zweispaltig__text ul + p, .zweispaltig__text p + ul { margin-top: 14px; }
.zweispaltig__text ul { margin-top: 14px; display: grid; gap: 8px; color: var(--text-grau); }
.zweispaltig__text ul li { position: relative; padding-left: 28px; }
.zweispaltig__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);
}
.zweispaltig__text .knopfreihe { margin-top: 26px; }
.zweispaltig--oben { align-items: start; }
.zweispaltig--mitte { align-items: center; }

/* Kontakt-Zeilen: Überschrift darf H2 sein (Seitenkopf ist H1) */
.kontakt-zeile h2 { font-size: var(--fs-lg); margin: 4px 0 8px; }

/* Kasten mit Downloads / Text aus dem Editor */
.kasten .downloads { margin-top: 18px; }
.kasten__text p { color: var(--text); }
.kasten__text p + p { margin-top: 10px; }
.kasten__text ul { margin-top: 10px; display: grid; gap: 6px; padding-left: 20px; list-style: disc; }
.kasten h2 { font-size: var(--fs-lg); margin-bottom: 12px; }

/* Termine + Kästen (Schulanfänger): Überschrift über der Liste */
.termine-kaesten__titel { margin-bottom: 18px; }
