/* === basis.css === */
@import url('sihead.css');
@import url('fuss.css');

/* ============================================================
   INHALTSVERZEICHNIS
   1.  Design-Variablen (Zentrale Farbsteuerung für Light & Dark Mode)
   2.  Reset & Basis
   3.  Typografie & Links
   4.  Accessibility
   5.  Grundlayout
   6.  Textbereiche & Zitate
   7.  Tabellen & Responsive System
   8.  Hero-Bereich & Buttons
   9.  Faktenleiste (.kitaFakt)
   10. FAQ
   11. Karten-System (.infoKarten, .infoKarte - Pebble Grid Optimiert)
   11b. Dynamische Karten-Icons (CSS-basiert)
   12. Logos & Partner-Links
   13. Modal-Basis & Forms
   14. Modal: Slider
   15. Modal: Team & Urkunden
   16. Fonts (@font-face)
   17. Transparenz & Berichte-Listen
   18. Geschäftsstelle & System-Stylings
   19. Responsive / Media Queries
   ============================================================ */

/* ============================================================
   1. DESIGN-VARIABLEN (HELLER MODUS)
   ============================================================ */
:root {
  /* Feste einrichtungsbezogene Kita-Farben (bleiben in beiden Modi gleich) */
  --Muna-Color:         #8a421a;
  --Tiponi-Color:       #00467c;
  --Tiva-Color:         #1c2a08;
  --Leotie-Color:       #d90010;
  --Krabbel-Color:      #bf000f;
  --Chumani-Color:      #007b6e;
  --Mojak-Color:        #7f3f00;
  --Shanuu-Color:       #00682c;
  --Taunus-Color:       #7f3f00;
  --Orenda-Color:       #a03c0f;

  /* Menü-System Standard */
  --menu-bg:            #7b111f;
  --menu-text:          #ffffff;
  --menu-hover-bg:      #ffffff;
  --menu-hover-text:    #7b111f;
  --hover-transition:   0.25s ease;

  /* Dynamische UI-Farben (Heller Modus) */
  --color-page-bg:       #fff7e1;
  --color-content-bg:    #ffe4a4;
  --color-content-inner: #fff2cc;
  --color-text:          #2b1c14;
  --color-headline:      #7b111f;
  --color-link:          #7f3f00;
  --color-link-hover:    #ff9900;
  --color-kita-fakt-bg:  #fff7e8;
  --color-label:         #5a5a5a;
  --color-card-bg:       #ffffff;
  --color-card-border:   rgba(0, 0, 0, 0.04);
  --color-table-row-bg:  #fff6e6;
  --color-table-closed:  #ffcc99;

  /* Dynamische Button-Variablen */
  --color-btn-border:    #7b111f;
  --color-btn-text:      #7b111f;
  --color-btn-bg:        transparent;
  --color-btn-hover-bg:  #7b111f;
  --color-btn-hover-text:#ffffff;

  /* Formular-Variablen */
  --color-input-bg:      #ffffff;
  --color-input-border:  rgba(0,0,0,0.12);
  --color-input-focus-bg:#ffffff;

  /* Footer-Zusatz-Variablen */
  --color-footer-bg:     #7b111f;
  --color-footer-text:   #ffe4a4;
  --color-footer-border: #ffcc66;
  --color-footer-logo-bg: #ffffff;

  /* Layout-Maße & Radien */
  --content-max:        60rem;
  --content-shell-max:  65em;
  --radius-sm:          8px;
  --radius-md:          14px;
  --radius-lg:          22px;
  --shadow-soft:        0 8px 18px rgba(0,0,0,0.12);
}

/* ============================================================
   VARIABLE SWITCH (DUNKLER MODUS)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --menu-bg:             #222222;

    /* Dynamische UI-Farben (Dunkler Modus) */
    --color-page-bg:       #191511;
    --color-content-bg:    #272019;
    --color-content-inner: #3a312a;
    --color-text:          #f5eee4;
    --color-headline:      #ffd5a2;
    --color-link:          #ffd5a2;
    --color-link-hover:    #ff9900;
    --color-kita-fakt-bg:  #2a2520;
    --color-label:         #aaa;
    --color-card-bg:       var(--color-content-inner);
    --color-card-border:   rgba(255, 255, 255, 0.05);
    --color-table-row-bg:  #3a312a;
    --color-table-closed:  #5c3a21;

    /* Dynamische Button-Variablen (Optimiert & Kontrastreich) */
    --color-btn-border:    #f5eee4;
    --color-btn-text:      #f5eee4;
    --color-btn-bg:        rgba(255, 255, 255, 0.05);
    --color-btn-hover-bg:  #f5eee4;
    --color-btn-hover-text:#191511;

    /* Formular-Variablen */
    --color-input-bg:      #191511;
    --color-input-border:  rgba(255, 255, 255, 0.15);
    --color-input-focus-bg:#272019;

    /* Footer-Zusatz-Variablen (Synchronisiert mit fuss.css) */
    --color-footer-bg:     #191511;
    --color-footer-text:   var(--color-text);
    --color-footer-border: var(--color-headline);
    --color-footer-logo-bg:#3a2e2a;
  }
}

/* ============================================================
   2. RESET & BASIS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body, div, p, br,
h1, h2, h3, h4, h5, h6,
ul, ol, a, img, li, form,
dl, dt, dd, figure, figcaption,
blockquote, section, article,
nav, header, footer, main {
  margin: 0; padding: 0; border: 0; 
}

html, body {
  font-family: 'Mali', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  text-align: left;
  background-color: var(--color-page-bg);
  color: var(--color-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}
body { line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }

/* ============================================================
   3. TYPOGRAFIE & LINKS
   ============================================================ */
h1, h2, h3, h4, h5, h6 { color: var(--color-headline); line-height: 1.2; }
h1, p { margin-bottom: 1.5em; }

span.rot { color: var(--color-headline); }
p.lastNurJetzt { margin-bottom: clamp(2rem, 15vh, 10rem); }
p.zuletzt      { margin: 10px; padding-bottom: 10px; }
.hAbstand      { margin-bottom: 20px; }

a:link, a:visited { color: var(--color-link); }
a:hover, a:focus   { color: var(--color-link-hover); }

/* ============================================================
   4. ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--menu-text); color: #000; padding: 0.5em;
  z-index: 2000; font-size: 1em; font-weight: bold; text-decoration: underline;
}
.skip-link:focus {
  left: 0; background: var(--color-headline); color: var(--menu-text);
  outline: 2px solid var(--menu-text); outline-offset: 0;
  padding: 0.5em; font-size: 1.1em;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   5. GRUNDLAYOUT
   ============================================================ */
#container { width: 100%; margin: 0; padding: 0 0 1.5em; }

#containerContent {
  width: 100%; max-width: 75em; margin: 0 auto;
  background-color: var(--color-content-bg); color: var(--color-text);
  font-size: 0.9rem; padding: 2.5rem 1.5rem;
}

#centerText {
  width: 100%; max-width: var(--content-max); margin: 0 auto 2.5rem;
  text-align: left; padding: 2.5rem;
  background-color: var(--color-content-inner);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
#centerText h1 { margin-bottom: 0.8em; text-align: center; }

#imtext { max-width: 72ch; margin: 0 auto; line-height: 1.65; }
#imtext h2 { margin-bottom: 0.5em; font-size: 1.5em; }

/* ============================================================
   6. TEXTBEREICHE & ZITATE
   ============================================================ */
.zitat { text-align: center; margin: 2em auto; max-width: 32em; }
.zitat blockquote {
  font-size: 1.2em; font-style: italic; color: var(--color-text);
  margin: 0 0 1em 0; padding: 0.5em 1em;
  border-left: 4px solid #61941c; background: var(--color-content-inner); display: inline-block;
}
.zitat figcaption { font-size: 0.9em; opacity: 0.8; margin-top: 0.5em; }

.leitgedanke {
  font-style: italic; font-size: 0.95em; color: var(--color-text);
  margin: 1.5em auto; padding: 0.5em 1.2em;
  border-left: 4px solid var(--Muna-Color);
  background: var(--color-content-inner); max-width: 36em;
}

/* ============================================================
   7. TABELLEN & RESPONSIVE SYSTEM
   ============================================================ */
.termine-table, .kita-wochenplan { 
  width: 100%; border-collapse: collapse; margin-top: 20px; border-bottom: 1px solid var(--color-input-border); 
} 
.termine-table th, .termine-table td,
.kita-wochenplan th, .kita-wochenplan td { 
  border: 1px solid var(--color-text) !important; padding: 10px; vertical-align: top; 
}
.termine-table th, .kita-wochenplan th { 
  background-color: #a35500; color: #ffffff; text-shadow: 1px 1px 2px #000000; text-align: left; font-weight: bold;
}
.termine-table td:first-child, .kita-wochenplan td:first-child,
.termine-table th[scope="row"], .kita-wochenplan th[scope="row"] { 
  background-color: var(--color-table-row-bg); 
}
.termine-table .closed td, .kita-wochenplan .closed td { 
  background-color: var(--color-table-closed); 
}
.kita-wochenplan th:first-child, .kita-wochenplan td:first-child { width: 25%; }
.kita-wochenplan th:nth-child(2), .kita-wochenplan td:nth-child(2) { width: 75%; }

.highlight-time { color: var(--color-headline); font-weight: bold; }
.we-table-extra-space-before { margin-top: 40px; }

/* ============================================================
   8. HERO-BEREICH & BUTTONS (VARIABLEN-GESTEUERT)
   ============================================================ */
.heroWrap { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem; margin: 0 0 2.5rem; }
.heroText  { flex: 1 1 320px; max-width: 560px; }
.heroImage { flex: 1 1 320px; max-width: 350px; margin-bottom: 1rem; }
.heroImage img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-soft); }

.heroTitel { margin: 1rem 0 0.75rem; font-size: clamp(0.4rem, 1rem, 1.4rem); line-height: 1.1; color: var(--color-headline); }
.heroIntro { margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.7; }
.heroLogo { margin-left: 8rem; }
.heroButtons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.heroBtn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.75rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1rem; font-family: 'Mali', sans-serif;
  border: 2px solid var(--color-btn-border); 
  background-color: var(--color-btn-bg); 
  color: var(--color-btn-text);
  cursor: pointer; transition: all var(--hover-transition);
}
.heroBtn:hover, .heroBtn:focus { 
  background-color: var(--color-btn-hover-bg); 
  color: var(--color-btn-hover-text); 
  transform: translateY(-1px); 
}

/* ============================================================
   9. FAKTENLEISTE (.kitaFakt)
   ============================================================ */
.kitaFakt {
  display: flex; flex-direction: column; gap: 0.2rem;
  background: var(--color-kita-fakt-bg);
  border: 1px solid var(--color-card-border); border-radius: 34px 1px 34px 1px; padding: 1rem 1.1rem;
}
.kitaFaktIcon {
  display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center;
  width: 22px; height: 22px; font-size: 1.4rem; line-height: 1; margin-bottom: 0.4rem; color: var(--color-headline);
}
.kitaFaktLabel {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; line-height: 1.2; color: var(--color-label); font-family: Arial, sans-serif;
}
.kitaFaktWert {
  flex: 1 1 100%; font-size: 0.85rem; font-weight: 700; line-height: 1.3; color: var(--color-text); font-family: Arial, sans-serif;
}

/* ============================================================
   10. FAQ
   ============================================================ */
.faq-list { list-style: none; padding: 0; margin: 0 auto; max-width: 450px; }
.faq-item { position: relative; border-radius: 8px; margin-bottom: 1em; }
.faq-question { font-weight: bold; padding: 0.75em 1em; cursor: pointer; background-color: #F8C157; color: #000; border-radius: 8px; }
.faq-answer {
  position: absolute; left: 0; right: 0; top: 100%; display: none;
  background-color: var(--color-content-bg); border-radius: 0 0 8px 8px; padding: 0.75em 1em; z-index: 5; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.faq-item:hover .faq-answer, .faq-item:focus-within .faq-answer { display: block; }

/* ============================================================
   11. KARTEN-SYSTEM (.infoKarten - STRUKTUR & FORM RETAINED)
   ============================================================ */
.infoKarten { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 1.2rem; 
  margin: 1.5rem 0; 
  padding: 0; 
}

.infoKarte { 
  flex: 0 1 205px; 
  max-width: 205px; 
  display: flex; 
  flex-direction: column; 
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.06)); 
  transition: transform var(--hover-transition); 
}

/* Die stabile Tropfenform (unten extra breit für den Text) */
.infoKarteBtn, .infoKarteLink {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.6rem !important;
  padding: 1.2rem 0.8rem !important;
  min-height: 130px !important;
  border: 1px solid var(--color-card-border) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border-radius: 60% 60% 45% 45% / 70% 70% 35% 35% !important;
}

/* Wechselraster für die organische Dynamik */
.infoKarten .infoKarte:nth-of-type(2n) .infoKarteBtn { border-radius: 65% 55% 40% 45% / 70% 65% 35% 30% !important; }
.infoKarten .infoKarte:nth-of-type(3n) .infoKarteBtn { border-radius: 55% 65% 45% 40% / 65% 70% 30% 35% !important; }

/* Farbböden im Hellen Modus */
.infoKarten .infoKarte:nth-of-type(4n+1) .infoKarteBtn { background-color: #fdf6f2 !important; border-bottom: 3px solid var(--Muna-Color) !important; }
.infoKarten .infoKarte:nth-of-type(4n+2) .infoKarteBtn { background-color: #f0f9f8 !important; border-bottom: 3px solid var(--Chumani-Color) !important; }
.infoKarten .infoKarte:nth-of-type(4n+3) .infoKarteBtn { background-color: #f2f6f9 !important; border-bottom: 3px solid var(--Tiponi-Color) !important; }
.infoKarten .infoKarte:nth-of-type(4n+4) .infoKarteBtn { background-color: #fdf7f2 !important; border-bottom: 3px solid var(--Orenda-Color) !important; }

/* FIX: Textfarbe & Schriftgewicht für die echten HTML-Elemente (span) im Hellen Modus */
.infoKarteBtn .kitaFaktLabel,
.infoKarteLink .kitaFaktLabel {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #2b1c14 !important;
  margin: 0 !important;
  text-transform: none !important; /* Verhindert ungewollte reine Großbuchstaben */
  letter-spacing: normal !important;
}

.infoKarteBtn .kitaFaktWert,
.infoKarteLink .kitaFaktWert {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #7b111f !important; /* Hebt die Unterzeile farblich leicht ab */
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* === REINER DARK MODE CODES FÜR DIE INHALTE === */
@media (prefers-color-scheme: dark) {
  
  /* Die Karten behalten ihre Identität, werden aber "nachtaktiv" gedimmt */
  .infoKarten .infoKarte:nth-of-type(4n+1) .infoKarteBtn { 
    background-color: #5c3521 !important; /* Muna: Warmes, sattes Terracotta statt Schwarzbraun */
  }
  .infoKarten .infoKarte:nth-of-type(4n+2) .infoKarteBtn { 
    background-color: #0c4d45 !important; /* Chumani: Tiefes, edles Smaragd-Teal */
  }
  .infoKarten .infoKarte:nth-of-type(4n+3) .infoKarteBtn { 
    background-color: #103350 !important; /* Tiponi: Elegantes Tiefsee-Blau */
  }
  .infoKarten .infoKarte:nth-of-type(4n+4) .infoKarteBtn { 
    background-color: #693218 !important; /* Orenda: Kräftiges Kastanien-Kupfer */
  }

  /* Kontrast-Garantie: Die Schrift MUSS auf diesen gedeckten Tönen strahlend hell sein */
  .infoKarteBtn .kitaFaktLabel,
  .infoKarteLink .kitaFaktLabel,
  .infoKarteBtn .kitaFaktWert,
  .infoKarteLink .kitaFaktWert {
    color: #f5eee4 !important; /* Das helle System-Beige bricht den Hintergrund perfekt auf */
  }

  /* Die Icons werden ebenfalls harmonisch aufgehellt */
  .infoKarteBtn .kitaFaktIcon,
  .infoKarteLink .kitaFaktIcon {
    filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(340deg) opacity(0.9) !important;
  }
}
.infoKarte:hover .infoKarteBtn { transform: translateY(-3px); filter: brightness(0.99); }

/* ============================================================
   11b. DYNAMISCHE KARTEN-ICONS (CSS-basiert)
   ============================================================ */
.kitaFaktIcon.icon-bild,
.kitaFaktIcon.icon-kalender,
.kitaFaktIcon.icon-uhr,
.kitaFaktIcon.icon-team,
.kitaFaktIcon.icon-urkunde,
.kitaFaktIcon.icon-kontakt,
.kitaFaktIcon.icon-wochenplan,
.kitaFaktIcon.icon-ferienbetreuung {
  display: inline-block; width: 42px; height: 32px; background-repeat: no-repeat; background-position: center; background-size: contain;
}
.kitaFaktIcon.icon-wochenplan {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b111f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M3 8h18'/%3E%3Cpath d='M8 8v13'/%3E%3Cpath d='M13 8v13'/%3E%3Cpath d='M18 8v13'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M3 16h18'/%3E%3Ccircle cx='5.5' cy='10' r='0.9' fill='%237b111f' stroke='none'/%3E%3Ccircle cx='10.5' cy='14' r='0.9' fill='%237b111f' stroke='none'/%3E%3Cpath d='M15.5 18.5l1 1 2-2'/%3E%3C/svg%3E");
}
.kitaFaktIcon.icon-bild {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b111f' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
}
.kitaFaktIcon.icon-kalender {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b111f' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}
.kitaFaktIcon.icon-uhr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b111f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M3 8h18'/%3E%3Cpath d='M8 8v13'/%3E%3Cpath d='M13 8v13'/%3E%3Cpath d='M18 8v13'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M3 16h18'/%3E%3Ccircle cx='5.5' cy='10' r='0.9' fill='%237b111f' stroke='none'/%3E%3Ccircle cx='10.5' cy='14' r='0.9' fill='%237b111f' stroke='none'/%3E%3Cpath d='M15.5 18.5l1 1 2-2'/%3E%3C/svg%3E");
}
.kitaFaktIcon.icon-team {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b111f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
.kitaFaktIcon.icon-urkunde {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b111f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolygon points='12 8 13.5 11.5 17 11.5 14 13.5 15.5 17 12 15 8.5 17 10 13.5 7 11.5 10.5 11.5'/%3E%3C/svg%3E");
}
.kitaFaktIcon.icon-kontakt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b111f' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}
.kitaFaktIcon.icon-ferienbetreuung {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237b111f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='3' y1='8' x2='21' y2='8'/%3E%3Cline x1='7' y1='2' x2='7' y2='6'/%3E%3Cline x1='17' y1='2' x2='17' y2='6'/%3E%3Ccircle cx='17' cy='5' r='2.5'/%3E%3Cline x1='17' y1='1' x2='17' y2='2'/%3E%3Cline x1='17' y1='8.5' x2='17' y2='9.5'/%3E%3Cline x1='13.5' y1='5' x2='14.5' y2='5'/%3E%3Cline x1='20.5' y1='5' x2='21.5' y2='5'/%3E%3C/svg%3E");
}

/* ============================================================
   12. LOGOS – FLEXBOX (REIHEN-LAYOUT + ORIGINALGRÖSSEN)
   ============================================================ */
#fullWidthLogos {
  width: 100%; padding: 1rem 0 0;
  background: linear-gradient(180deg, var(--color-content-inner) 0%, rgba(123, 17, 31, 0.08) 100%);
}
#fullWidthLogos p {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.25rem; padding: 0 1rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
#fullWidthLogos p a {
  flex: 0 0 auto; display: block; background-color: var(--color-footer-logo-bg); border-radius: 16px; padding: 0.9rem; box-shadow: 0 4px 10px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--color-card-border);
}
#fullWidthLogos p a:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); border-color: rgba(123, 17, 31, 0.2); }
#fullWidthLogos img { display: block; width: auto; height: auto; max-width: 100%; image-rendering: auto; }

/* ============================================================
   13. MODAL-BASIS & FORMS
   ============================================================ */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(43, 28, 20, 0.9); display: none; justify-content: center; align-items: center; z-index: 9999; padding: 20px;
}
.modal-box {
  background: var(--color-content-inner); padding: 30px; border-radius: 22px; width: 100%; max-width: 1000px; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column;
}
#modalKontakt .heroBtn { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#modalKontakt .heroBtn:hover:not(:disabled) { transform: scale(1.02); box-shadow: 0 5px 15px rgba(123, 17, 31, 0.3); filter: brightness(1.1); }
#modalKontakt .heroBtn:disabled { background-color: #ccc !important; cursor: not-allowed; border-color: #bbb; }

.input-with-icon { position: relative; width: 100%; margin-bottom: 15px; display: block; }
.input-with-icon .gs-input { width: 100%; padding-left: 45px; height: 45px; box-sizing: border-box; border: 1px solid var(--color-input-border); border-radius: 8px; background-color: var(--color-input-bg); color: var(--color-text); }
.input-with-icon .field-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--color-headline); opacity: 0.5; pointer-events: none; z-index: 5; transition: opacity 0.3s ease; }
.input-with-icon .gs-input:focus + .field-icon { opacity: 1; }
.input-with-icon textarea.gs-input { height: auto; min-height: 120px; padding-top: 12px; resize: vertical; }
.input-with-icon textarea.gs-input + .field-icon { top: 22px; transform: none; }

/* ============================================================
   14. MODAL: SLIDER
   ============================================================ */
.slider-wrapper { width: 100%; display: flex; flex-direction: column; align-items: stretch; margin-top: 20px; }
.modal-slider { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: var(--color-content-inner); flex-shrink: 0; }
.modal-slider .slide { position: relative; width: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; display: none; overflow: hidden; visibility: hidden; pointer-events: none; }
.modal-slider .slide.active { opacity: 1; display: block; visibility: visible; pointer-events: auto; }
.modal-slider .slide .blur-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.modal-slider .slide .blur-bg img { width: 110% !important; height: 110% !important; object-fit: cover; filter: blur(25px) brightness(0.85); transform: translate(-5%, -5%); }
.modal-slider .slide > img { position: relative; z-index: 2; width: 100%; height: auto; display: block; object-fit: contain; max-height: 75vh; box-shadow: 0 0 30px rgba(0,0,0,0.3); background: transparent; }

.slider-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.slider-dots { display: flex; justify-content: flex-start; gap: 8px; flex: 1; padding: 0; position: static !important; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(123, 17, 31, 0.3); border: 1px solid var(--color-headline); cursor: pointer; transition: background 0.2s; }
.dot.active { background: var(--color-headline); }
.slider-controls .heroBtn { margin-top: 0 !important; flex-shrink: 0; }

.slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 20px 16px; background: linear-gradient(to top, rgba(43, 28, 20, 0.85), transparent); color: #ffffff; font-size: 0.95rem; font-weight: 500; text-align: center; z-index: 3; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; text-shadow: 0 1px 2px rgba(0,0,0,0.4); line-height: 1.4;
}
.modal-slider .slide.active .slide-caption { opacity: 1; transform: translateY(0); }

/* ============================================================
   15. MODAL: TEAM & URKUNDEN
   ============================================================ */
.modal-team { max-width: 850px; padding: 0; background: var(--color-card-bg); overflow: hidden; display: flex; flex-direction: column; }
.team-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; background: var(--color-content-inner); border-bottom: 1px solid var(--color-card-border); }
.team-header h2 { margin: 0; font-size: 1.5rem; color: var(--color-headline); }
.team-body { padding: 30px; overflow-y: auto; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.team-member { display: flex; gap: 15px; align-items: flex-start; padding: 15px; background: var(--color-content-inner); border-radius: 12px; border: 1px solid var(--color-card-border); }
.team-photo-box { width: 75px; height: 100px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 3px solid var(--color-card-bg); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.team-photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 7px; }
.team-info h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--color-headline); }
.team-role { margin: 0 0 8px; font-size: 0.85rem; color: var(--color-label); font-weight: 600; display: block; }
.team-bio { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--color-text); }

.modal-urkunden { max-width: 900px; padding: 0; background: var(--color-card-bg); overflow: hidden; display: flex; flex-direction: column; backdrop-filter: blur(15px); }
.urkunden-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; background: var(--color-content-inner); border-bottom: 1px solid var(--color-card-border); }
.urkunden-header h2 { margin: 0; font-size: 1.5rem; color: var(--color-headline); }
.urkunden-body { padding: 30px; overflow-y: auto; }
.urkunden-list { display: flex; flex-direction: column; gap: 20px; }
.urkunde-item { display: flex; gap: 20px; align-items: center; padding: 15px; background: var(--color-content-inner); border-radius: 8px; border: 1px solid var(--color-card-border); }
.urkunde-text h3 { margin: 0 0 5px; color: var(--color-headline); }
.urkunde-text p { margin: 0; line-height: 1.5; font-size: 0.95rem; }

/* ============================================================
   16. FONTS (@font-face)
   ============================================================ */
@font-face { font-display: swap; font-family: 'Mali'; font-style: normal; font-weight: 400; src: url('../font/Mali-Regular.ttf') format('truetype'); }
@font-face { font-display: swap; font-family: 'Mali'; font-style: normal; font-weight: 700; src: url('../font/Mali-Bold.ttf') format('truetype'); }

/* ============================================================
   17. TRANSPARENZ & BERICHTE-LISTEN
   ============================================================ */
.trans-list { list-style: none; padding: 0; margin: 0; }
.trans-list li { margin-bottom: 1.2rem; padding-left: 1.5rem; position: relative; line-height: 1.5; }
.trans-list li::before { content: "•"; color: var(--color-headline); font-weight: bold; position: absolute; left: 0; top: 0.1rem; font-size: 1.2rem; }
.trans-list strong { color: var(--color-headline); display: block; margin-bottom: 0.3rem; font-size: 1.05rem; }
.report-intro { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-input-border); line-height: 1.6; }
.report-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--color-input-border); text-align: right; }
 
/* ============================================================
   18. GESCHÄFTSSTELLE & SYSTEM-STYLINGS
   ============================================================ */
.modal-gs-header { background-color: var(--color-content-inner); color: var(--color-text); border-radius: 20px 20px 0 0; }
.modal-gs-header h2 { color: var(--color-headline); margin: 0; }
.gs-icon-box { background: var(--color-headline); border-radius: 20px 5px 20px 5px; box-shadow: 0 4px 10px rgba(123,17,31,0.2); }
.gs-input { width: 100%; padding: 12px; border: 1px solid var(--color-input-border); border-radius: 8px; margin-bottom: 10px; font-family: inherit; background-color: var(--color-input-bg); color: var(--color-text); }
.gs-input:focus { border-color: var(--color-headline); box-shadow: 0 0 0 3px rgba(123, 17, 31, 0.1); outline: none; background-color: var(--color-input-focus-bg); }

.bestaetigung { background: #f0f9f0; border-left: 4px solid #28a745; color: #2e7d32; padding: 15px 20px 15px 45px; border-radius: 4px; margin-bottom: 15px; font-weight: 600; position: relative; }
.bestaetigung::before { content: "✓"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); background: #28a745; color: #fff; width: 22px; height: 22px; border-radius: 50%; text-align: center; line-height: 22px; font-size: 14px; }

.error-hint { color: #b91c1c; font-size: 0.75rem; margin: -8px 0 10px 5px; font-weight: bold; display: block; }
.gs-input.error { border-color: #b91c1c !important; background-color: #fef2f2; }
.input-with-icon.error .field-icon { stroke: #b91c1c; }
.form-error-banner { background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #b91c1c; color: #b91c1c; padding: 12px 15px; margin-bottom: 20px; border-radius: 6px; font-size: 13px; }

#mapGeschaeftsstelle { height: 300px; width: 100%; border-radius: 12px; border: 2px solid var(--color-headline); margin: 15px 0; }
.team-group-photo-wrapper { width: 100%; margin-bottom: 2rem; border-radius: var(--radius-md, 14px); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); background: var(--color-content-inner); }
.team-group-photo { width: 100%; height: auto; display: block; max-height: 420px; object-fit: contain; transition: transform 0.3s ease; }
.team-group-photo-wrapper:hover .team-group-photo { transform: scale(1.015); }

#kitaCta { padding: 2rem 1rem; text-align: center; }
.kitaCtaInner { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
#kitaCta p { font-size: 1.15rem; margin: 0; color: var(--color-text); }
.ctaButtons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

#footerMetaLinks { text-align: center !important; }
.footerMetaLinksInner { text-align: center !important; font-size: 0; }
.footerMetaLinksInner a { display: inline-block !important; vertical-align: middle; margin: 0 1rem; font-size: 1rem; text-decoration: none; }
.footerMetaLinksInner img { display: block; max-width: 165px; height: auto; }

/* ============================================================
   ZUSATZ-STYLING FÜR FUSS.CSS IM DARK MODE (VARIABLEN)
   ============================================================ */
.site-footer {
  background: var(--color-footer-bg) !important;
  color: var(--color-footer-text) !important;
  border-top: 4px solid var(--color-footer-border) !important;
}
.footer-links li a {
  color: var(--color-footer-text) !important;
}
.footer-links li a:hover, .footer-links li a:focus {
  color: var(--color-link-hover) !important;
}

/* ============================================================
   19. RESPONSIVE / MEDIA QUERIES
   ============================================================ */
@media (min-width: 850px) {
  .infoKarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 210px)); gap: 20px; }
}

@media (max-width: 900px) {
  #containerContent { padding: 1rem; font-size: 0.95rem; }
  #centerText { padding: 1.75rem 1.5rem; border-radius: var(--radius-md); }
  p.lastNurJetzt { margin-bottom: 3rem; }
  .modal-box { max-width: 95vw; }
  .heroWrap { flex-direction: column; align-items: flex-start; gap: 0.1rem; margin: 0; }
  .heroText, .heroImage { max-width: 100%; width: 100%; }
  .heroTitel { font-size: 2rem; }
  .heroLogo { margin-left: 0; }
  .heroImage { max-height: 280px; overflow: hidden; border-radius: var(--radius-md); }
  .heroImage img { width: 100%; height: 100%; object-fit: cover; object-position: center top; margin-bottom: 0; }
}

@media (max-width: 768px) {
  #modalKontakt .field-icon { display: none !important; }
  .modal-overlay { padding: 0; }
  .modal-box { width: 100%; max-width: 100% !important; height: 100% !important; max-height: 100vh !important; border-radius: 0; margin: 0; padding: 15px; display: flex; flex-direction: column; }

  .team-header, .urkunden-header, .modal-gs-header { padding: 15px 20px; border-radius: 0; }
  .team-header h2, .urkunden-header h2 { font-size: 1.3rem; }
  .team-body, .urkunden-body { padding: 20px 15px; }

  .modal-slider .slide img { min-height: 150px; }
  .slide-caption { font-size: 0.85rem; padding: 10px 15px 14px; }
  .slider-controls { justify-content: center; flex-direction: column-reverse; gap: 10px; }
  .slider-dots { justify-content: center; }
  
  .team-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 15px; }
  .team-member { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 15px; }
  .team-photo-box { display: block !important; width: 90px; height: 90px; margin-bottom: 10px; }
  .team-info { display: block !important; }

  .team-group-photo-wrapper { margin-bottom: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
  .team-group-photo { max-height: 45vh; object-fit: contain; }
  
  .urkunde-item { text-align: center; gap: 15px; padding: 20px 15px; }
  .urkunde-img { width: 100% !important; max-width: 240px; height: auto; aspect-ratio: 4/3; margin: 0 auto; }
  .infoKarten { grid-template-columns: 1fr !important; gap: 1rem; }
  
  .modal-box table:not(.termine-table) {
    display: block !important; width: auto !important; max-width: 100% !important; overflow-x: auto !important;
    -webkit-overflow-scrolling: touch; margin: 1rem 0; border-collapse: collapse !important;
  }
  .modal-box table th, .modal-box table td, .heroBtn { min-height: 44px; padding: 10px 15px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  #containerContent { padding: 0.75rem; }
  #centerText { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-sm); }
  #imtext { max-width: 100%; }
  #fullWidthLogos p { gap: 0.75rem; }
  #fullWidthLogos p a img { max-height: 70px; }
  .footerMetaLinksInner { gap: 1rem; }
  .footerMetaLinksInner img { max-width: 140px; }
  .heroButtons { width: 100%; }
  .heroBtn { flex: 1 1 auto; justify-content: center; }
  .kitaFakt { flex: 1 1 140px; }
  #mapGeschaeftsstelle { height: 250px; }
  
  .modal-slider .slide img { min-height: 120px; }
  .slider-dots { padding-top: 8px !important; }
  .slide-caption { font-size: 0.95rem !important; padding: 16px 18px 18px !important; }
}

@media (prefers-contrast: more) {
  .slide-caption { background: rgba(0,0,0,0.95) !important; color: #ffffff !important; border-top: 2px solid #ffffff; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-caption { transition: none !important; opacity: 1 !important; transform: none !important; }
}
