/* Glow-up 12/2026 – seit Livegang 03.12.2026 fuer alle geladen (vorher entwurf.css). Ueber site.css. */
/* Glow-up-Entwurf 12/2026, Runde 2 + Feinschliff - wird nur unter entwurf.kiga-rossbach.de geladen (front-layout.php).
   Liegt ueber site.css. Grundsatz: dieselbe bunte Seite, nur handwerklich sauberer.
   - Farben, Verlaeufe, Deko, Pillen, Stempel, schiefe Elemente, Seitenaufbau: wie live.
   - Bilder und Bildcontainer: hier steht bewusst KEINE Regel dazu.
   - Poliert wird nur: Schrift, farbige Kartenkante -> getoente Karte, Kartenschatten, Icons, Tippflaechen.
   Begruendung: entwurf-2026-12/design.md ("Runde 2"). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800; /* Staerken ueber 800 aus site.css (850, 900, 920) enden damit bei 800 */
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-ext-wght-normal.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 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-wght-normal.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 {
  --e-dunkel: #17251b;                 /* Mischpartner fuer dunkle Akzentstufen */
  --e-text: #3a473d;                   /* Fliesstext auf getoenten Karten */
  --e-karte: 14px;                     /* ein Kartenradius fuer Start- und Unterseiten (Karten ohne Bild) */
  /* Schatten nach UI-Grundlagen 3: eng + weit, in der Textfarbe getoent */
  --e-schatten-sm: 0 1px 2px rgb(37 51 40 / .06), 0 2px 6px rgb(37 51 40 / .08);
  --e-schatten-md: 0 1px 2px rgb(37 51 40 / .06), 0 8px 24px rgb(37 51 40 / .08);
  --e-schatten-lg: 0 2px 4px rgb(37 51 40 / .06), 0 16px 40px rgb(37 51 40 / .12);
}

/* ---------- 1. Schrift: Nunito, echte Staerken (400 / 700 / 800), weniger Groessen ---------- */
body { font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
h1 { line-height: 1.1; }
h2, h3 { line-height: 1.18; }
strong, b { font-weight: 700; }
.eyebrow { font-weight: 800; letter-spacing: .06em; }
.button, .feature-bento__link, .main-nav a, .nav-item > a, .nav-toggle,
.group-card a, .home-update-card__link, .info-bar__link-label, .feature-bento__open { font-weight: 700; }
.brand strong, .info-bar strong, .group-facts dt, .home-event-list__item time { font-weight: 800; }
.group-card__team { font-weight: 700; }
/* Kleinschrift auf drei Stufen: 12 / 14 / 15 px, Fliesstext in Karten 16 px */
.info-bar p { font-size: .875rem; line-height: 1.4; }
.feature-bento__card p { font-size: 1rem; }
.home-update-card--news p, .home-update-card__empty { font-size: .9375rem; }
.info-bar__link-label, .feature-bento__open, .home-update-card__link { font-size: .875rem; }
.home-update-card__meta span, .home-update-card__meta time { font-size: .75rem; font-weight: 700; }
.group-card__team { font-size: .875rem; }
.feature-bento__badge, .group-card span, .event span, .team-meta span { font-weight: 700; }

/* Doppelte Versalzeilen: die zweite direkt unter einer Abschnitts-Versalzeile entfaellt (der gelbe Punkt bleibt sonst ueberall) */
.home-update-card--events .eyebrow,
.current-events-pane-heading .eyebrow,
.event-calendar__header .eyebrow { display: none; }

/* ---------- 2. Karten: statt farbiger Kante die ganze Karte in ihrer Akzentfarbe toenen ---------- */
.info-bar article,
.feature-bento__card:not(.feature-bento__card--hero),
.card,
.team-card,
.group-card,
.text-card,
.event,
.home-update-card--events,
.concept-nature-quote blockquote {
  --ton: var(--accent);
  border: 1.5px solid color-mix(in srgb, var(--ton) 46%, #fffdf8);
  background: color-mix(in srgb, var(--ton) 12%, #fffdf8);
}
.info-bar article,
.feature-bento__card:not(.feature-bento__card--hero),
.card, .team-card, .text-card, .event, .home-update-card--events { box-shadow: var(--e-schatten-sm); }
.group-card, .concept-nature-quote blockquote { box-shadow: var(--e-schatten-md); }
.card::before { content: none; }

/* Ueberschrift in einer dunklen Stufe der Akzentfarbe (Kontrast AA auf der Toenung), Text dunkel */
.info-bar article strong,
.feature-bento__card:not(.feature-bento__card--hero) h3,
.card h3, .team-card h3, .group-card h3 { color: color-mix(in srgb, var(--ton) 36%, var(--e-dunkel)); }
.info-bar article p,
.feature-bento__card:not(.feature-bento__card--hero) p,
.card p, .group-card p, .event p { color: var(--e-text); }
.info-bar__link-label,
.feature-bento__open,
.group-card a, .card a { color: color-mix(in srgb, var(--ton) 36%, var(--e-dunkel)); }

/* Icon-Kaestchen und -Kreise: kraeftiger in der Akzentfarbe, Linien-Icon in dunkler Akzentstufe */
.info-bar article > span, .card-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 1.5px solid color-mix(in srgb, var(--ton, var(--accent)) 62%, #fffdf8);
  background: color-mix(in srgb, var(--ton, var(--accent)) 34%, #fffdf8);
  color: color-mix(in srgb, var(--ton, var(--accent)) 42%, var(--e-dunkel));
}
.feature-bento__card:not(.feature-bento__card--hero) .feature-bento__icon {
  min-width: 44px;
  height: 44px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 62%, #fffdf8);
  background: color-mix(in srgb, var(--accent) 34%, #fffdf8);
  color: color-mix(in srgb, var(--accent) 42%, var(--e-dunkel));
}
.info-bar article > span svg, .card-icon svg { display: block; width: 20px; height: 20px; }
.feature-bento__icon svg { display: block; width: 22px; height: 22px; }
.feature-bento__card--hero .feature-bento__icon svg { width: 26px; height: 26px; }

/* Gruppen: Farbe sitzt in Rahmen, Flaeche, Schildchen und Ueberschrift statt in zwei Balken */
.group-card { border-width: 2px; border-color: color-mix(in srgb, var(--accent) 62%, #fffdf8); }
.group-card__body { border-top: 0; }
.group-card span:not(.group-card__team) {
  border-color: color-mix(in srgb, var(--accent) 62%, #fffdf8);
  background: color-mix(in srgb, var(--accent) 34%, #fffdf8);
}
.group-card__team { color: var(--e-text); }

/* Team: Leitung bleibt sonnig */
.team-card--lead { --ton: var(--sun); background: color-mix(in srgb, var(--sun) 22%, #fffdf8); }

/* Text-Karten und Termine: feste Farben wie live (Blattgruen / Apricot / Beere), jetzt als Toenung */
.text-card, .concept-nature-quote blockquote, .home-update-card--events { --ton: var(--leaf); }
.text-section:nth-of-type(odd) .text-card { --ton: var(--apricot); border-left-color: color-mix(in srgb, var(--ton) 46%, #fffdf8); }
.event { --ton: var(--leaf); }
.event:nth-child(2n) { --ton: var(--apricot); border-left-color: color-mix(in srgb, var(--ton) 46%, #fffdf8); }
.event:nth-child(3n) { --ton: var(--berry); border-left-color: color-mix(in srgb, var(--ton) 46%, #fffdf8); }

/* Terminliste, Kalender-Auswahl, Neuigkeit: dünne Kante links -> gleichmaessiger Rahmen, Flaeche traegt die Farbe */
.current-event-list .current-event,
.current-event-list .current-event:nth-child(n) {
  border: 1.5px solid color-mix(in srgb, var(--leaf) 46%, #fffdf8);
  background: color-mix(in srgb, var(--leaf) 9%, #fffdf8);
  box-shadow: var(--e-schatten-sm);
}
.current-event-list .current-event--closure,
.current-event-list .current-event--closure:nth-child(n) {
  border-color: color-mix(in srgb, var(--berry) 46%, #fffdf8);
  background: color-mix(in srgb, var(--berry) 10%, #fffdf8);
}
.event-calendar__selected-event { border: 1.5px solid color-mix(in srgb, var(--leaf) 46%, #fffdf8); }
.event-calendar__selected-event.is-celebration { border-color: color-mix(in srgb, var(--apricot) 50%, #fffdf8); }
.event-calendar__selected-event.is-closure { border-color: color-mix(in srgb, var(--berry) 46%, #fffdf8); }
.news-article, .news-related-event { border: 1.5px solid color-mix(in srgb, var(--leaf) 46%, #fffdf8); }

/* Uebrige weisse Karten: nur der Schatten wird weicher */
.contact-card, .contact-grid > div, .contact-grid form, .builder-column--bg-paper, .builder-column--bg-tint,
.builder-faq details, .download-list li, .kindergarten-space__grid article, .signup-steps { box-shadow: var(--e-schatten-sm); }

@media (hover: hover) and (pointer: fine) {
  .feature-bento__card:hover, .group-card:hover, .team-card:hover, .card:hover {
    border-color: color-mix(in srgb, var(--accent) 78%, #fffdf8);
    box-shadow: var(--e-schatten-lg);
  }
}
.info-bar__item--linked:hover, .info-bar__item--linked:focus-within { box-shadow: var(--e-schatten-md); }

/* ---------- 3. Radien: Karten ohne Bild auf Start- und Unterseiten gleich ---------- */
.info-bar article, .text-card, .card, .team-card, .event, .contact-card, .contact-grid > div, .contact-grid form,
.builder-column--bg-paper, .builder-column--bg-tint, .builder-faq details,
.kindergarten-space__grid article, .signup-steps, .concept-nature-quote blockquote { border-radius: var(--e-karte); }

/* ---------- 4. Tippflaechen und Fokus ---------- */
.button--small, .feature-bento__link { min-height: 44px; }
.group-card a, .home-update-card__link { display: inline-flex; align-items: center; min-height: 44px; }
.group-card a { width: max-content; }
.nav-toggle { min-width: 44px; min-height: 44px; }
.site-footer nav a, .site-footer .footer-cookie-link { min-height: 44px; display: inline-flex; align-items: center; }
/* Fokusring: siehe 6.9 */

/* ---------- 5. Handy: der Klecks im Hero liegt nicht mehr auf der Ueberschrift ---------- */
@media (max-width: 700px) {
  .hero::after { top: 6px; right: 10px; width: 58px; height: 40px; }
}

/* ---------- 6. Feinschliff (03.12.2026): Ausrichtung, Toenung der letzten weissen Karten, Lesbarkeit, Tippflaechen ---------- */

/* 6.1 Letzte einseitige Raender -> gleichmaessiger Rahmen */
.feature-bento__card--hero { border-top-width: 1px; }
.news-article__prose blockquote {
  padding: .9em 1.15em;
  border: 1.5px solid color-mix(in srgb, var(--sun) 56%, #fffdf8);
  border-radius: var(--e-karte);
  background: color-mix(in srgb, var(--sun) 16%, #fffdf8);
  color: var(--e-text);
}
.linked-event,
.concept-page-foundation blockquote {
  border: 1.5px solid color-mix(in srgb, var(--leaf) 46%, #fffdf8);
  background: color-mix(in srgb, var(--leaf) 12%, #fffdf8);
}

/* 6.2 Ausrichtung: keine gestreckten Karten mit leerer Flaeche, gleiche Hoehen in Reihen */
.concept-nature-info-grid { align-items: start; }
.concept-nature-info-grid > * { min-height: 0; }
.signup-portal__inner, .signup-arrival__inner { align-items: start; }
.team-card { align-content: start; }
.group-card__body { grid-template-rows: auto auto 1fr auto auto; align-content: stretch; }
.current-event__panel.is-open { margin-top: .5rem; }
@media (min-width: 601px) {
  .current-event-list .current-event { align-content: center; row-gap: 0; }
}
.board-people dl > div:has(> dt:empty):has(> dd:empty) { display: none; } /* nur ganz leere Zeilen; Amt ohne Namen bleibt sichtbar */

/* 6.3 Heros der Unterseiten angleichen (Versalzeile, Ueberschrift, Abstand, Textkante) */
.kindergarten-hero .eyebrow, .hero .eyebrow { font-size: .82rem; }
.craft-hero { padding-inline: 1rem; }
.craft-hero .section__inner { max-width: var(--container); }
@media (min-width: 701px) {
  .kindergarten-hero h1, .craft-hero h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); }
  .kindergarten-hero { padding-top: 3.6rem; }
  .craft-hero { padding-block: 3.6rem 2.4rem; }
}

/* 6.4 Bisher weisse Karten getoent wie die uebrigen, Farben reihum: Blatt, Apricot, Beere, Sonne.
   Karten mit Bild behalten 1 px Rahmenbreite, damit sich am Bild nichts verschiebt. */
.kindergarten-space__grid article,
.home-update-card--news,
.craft-card {
  --ton: var(--leaf);
  border-color: color-mix(in srgb, var(--ton) 46%, #fffdf8);
  background: color-mix(in srgb, var(--ton) 12%, #fffdf8);
}
.kindergarten-space__grid article { border-width: 1.5px; }
.kindergarten-space__grid article:nth-child(4n+2), .home-update-card--news:nth-child(4n+2), .craft-card:nth-child(4n+2) { --ton: var(--apricot); }
.kindergarten-space__grid article:nth-child(4n+3), .home-update-card--news:nth-child(4n+3), .craft-card:nth-child(4n+3) { --ton: var(--berry); }
.kindergarten-space__grid article:nth-child(4n), .home-update-card--news:nth-child(4n), .craft-card:nth-child(4n) { --ton: var(--sun); }
.kindergarten-space__grid h3, .home-update-card--news h3, .craft-card h2,
.home-update-card--news .home-update-card__link, .craft-card a { color: color-mix(in srgb, var(--ton) 36%, var(--e-dunkel)); }
.kindergarten-space__grid p, .home-update-card--news p, .craft-card p, .craft-card time { color: var(--e-text); }
.craft-card { box-shadow: var(--e-schatten-sm); }

/* 6.5 Kleinstschrift: nichts unter 12 px */
.event-calendar__legend span, .event-calendar__weekdays span, .event-calendar__selected-meta,
.event-calendar__selection-heading span, .event-calendar__day-number, .event-calendar__markers small,
.event-calendar__toolbar > button, .current-event__meta span, .current-event__month,
.current-events-layout .current-event__month, .current-events-pane-heading > span, .idea-stamp span { font-size: .75rem; }
.event-calendar__selected-event p { font-size: .9375rem; color: var(--e-text); }
.event-calendar__selected-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.event-calendar__selection-empty, .current-events-upcoming__hint { font-size: .8125rem; color: var(--e-text); }

/* 6.6 Kontrast unter AA -> dunkler Text */
.current-event__time, .event-calendar__weekdays span, .signup-fees td > span,
.kindergarten-team .section-heading > p:not(.eyebrow), .team-preview .section-heading > p:not(.eyebrow) { color: var(--e-text); }

/* 6.7 Anmeldung: Hinweistexte in Lesegroesse */
.signup-fees__notes article div > p, .signup-fees__contact { font-size: 1rem; }
.signup-fees td > span { font-size: .8125rem; }
.privacy-check input, .consent-option input { width: 22px; height: 22px; accent-color: var(--forest); }
.privacy-check input { margin-top: .05rem; }

/* 6.8 Tippflaechen auf Aktuelles, im Kalender und bei Telefon/Mail */
.current-jump-nav a, .current-entry-card > a:not(.current-entry-card__content-link) { display: inline-flex; align-items: center; min-height: 44px; }
.current-entry-card > a:not(.current-entry-card__content-link) { width: max-content; max-width: 100%; }
/* 44 px Tippflaeche, per Gegenabstand ohne hoehere Terminzeile */
.current-event__calendar-jump { min-height: 44px; margin-block: -9px; font-size: .8125rem; }
.event-calendar__toolbar > button { min-height: 44px; padding-inline: .8rem; }
.event-calendar__nav { width: 44px; min-width: 44px; height: 44px; }
.site-footer__contact a, .contact-card p a { display: inline-block; padding-block: .7rem; margin-block: -.7rem; }
@media (max-width: 900px) {
  .main-nav a, .nav-submenu a { min-height: 44px; }
}

/* 6.9 Fokusring: auf hellem Grund dunkelgruen (die Sonne war dort kaum zu sehen), auf dunklen Flaechen bleibt die Sonne */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible,
.info-bar__stretched-link:focus-visible, .current-event__toggle:focus-visible, .current-event__calendar-jump:focus-visible,
.event-calendar__nav:focus-visible, .event-calendar__toolbar button:focus-visible, .event-calendar__day:focus-visible,
.news-article__back:focus-visible, .news-gallery__grid a:focus-visible, .news-article-nav a:focus-visible,
.feature-bento__content-link:focus-visible, .current-entry-card__content-link:focus-visible,
.home-update-card__content-link:focus-visible { outline: 3px solid var(--forest); }
.news-article__hero-link:focus-visible { outline: none; }
.news-article__hero-link:focus-visible img { outline-color: var(--forest); }
.site-footer :focus-visible, .feature-bento__card--hero :focus-visible, .lightbox :focus-visible { outline-color: var(--sun); }

/* 6.10 Handy */
@media (max-width: 700px) {
  /* Stempel steht beim Start unten rechts und scrollt dann mit weg, statt Text, Felder und Buttons zu verdecken */
  a.idea-stamp { position: absolute; top: calc(100svh - 148px - .75rem); bottom: auto; }
  .info-bar article { min-height: 0; }
  .info-bar__line { text-wrap: balance; }
  .info-bar p { font-size: .9375rem; }
  .kindergarten-space__grid article,
  .concept-nature-learning .kindergarten-space__grid article { min-height: 0; }
}
@media (max-width: 520px) {
  a.idea-stamp { top: calc(100svh - 118px - .55rem); }
  .craft-hero { padding-inline: .9rem; }
}
@media (max-width: 374px) {
  .hero::after { top: 4px; right: 6px; width: 42px; height: 28px; }
}

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

/* Impressum: dezenter Hinweis zur Gestaltung (Wunsch Max 03.12.2026) */
.legal-page__credit { margin-top: 3rem; font-size: .8125rem; color: #9a9f95; }
.legal-page__credit a { color: inherit; text-decoration-color: currentColor; text-underline-offset: 2px; }
.legal-page__credit a:hover { color: #6f766b; }
