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

/* ============================================================
   INHALTSVERZEICHNIS
   1.  Design-Variablen & Dark Mode
   2.  Reset & Basis
   3.  Typografie & Links
   4.  Accessibility
   5.  Grundlayout
   6.  Textbereiche & Zitate
   7.  Tabellen & Responsive System
   8.  Hero-Bereich
   9.  Faktenleiste (.kitaFakt)
   10. FAQ
   11. Karten-System (.infoKarten, .infoKarte)
   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
   ============================================================ */
:root {
  --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;
  --color-kita-fakt-bg: #fff7e8;
  --color-label:        #999;

  --menu-bg:            #7b111f;
  --menu-text:          #ffffff;
  --menu-hover-bg:      #ffffff;
  --menu-hover-text:    #7b111f;
  --hover-transition:   0.25s ease;

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

  --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);
}

@media (prefers-color-scheme: dark) {
  :root {
    --menu-bg:           #222222;
    --color-page-bg:     #191511;
    --color-content-bg:  #272019;
    --color-text:        #f5eee4;
    --color-headline:    #ffd5a2;
    --color-kita-fakt-bg:#2a2520;
    --color-label:       #aaa;
  }
}

/* ============================================================
   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);
}

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;
}

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

#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: #444;
  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; color: #666; margin-top: 0.5em; }

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

/* ============================================================
   7. TABELLEN & RESPONSIVE SYSTEM
   ============================================================ */
.termine-table,
.kita-wochenplan { 
  width: 100%; 
  border-collapse: collapse; 
  margin-top: 20px; 
  border-bottom: 1px solid #ddd; 
} 

.termine-table th, 
.termine-table td,
.kita-wochenplan th,
.kita-wochenplan td { 
  border: 1px solid #000000 !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: #fff6e6; 
}

.termine-table .closed td,
.kita-wochenplan .closed td { 
  background-color: #ffcc99; 
}

.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(--menu-bg, #7b111f); 
  font-weight: bold; 
}

.we-table-extra-space-before {
  margin-top: 40px; 
}

@media (max-width: 768px) {
  .termine-table, .termine-table tbody, .termine-table tr, .termine-table td, .termine-table th {
    display: block !important;
    width: 100% !important;
  }
  .termine-table thead {
    display: none !important;
  }
  .termine-table tr {
    margin-bottom: 15px;
    border: 2px solid #a35500 !important;
  }
  .termine-table td {
    text-align: right !important;
    position: relative;
    padding-left: 45% !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
  }
  .termine-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 40%;
    text-align: left;
    font-weight: bold;
    color: var(--color-headline);
  }
  .termine-table td:last-child {
    border-bottom: none !important;
  }
}

/* ============================================================
   8. HERO-BEREICH
   ============================================================ */
.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: 520px; }
.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; }

.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-headline); background-color: transparent; color: var(--color-headline);
  cursor: pointer; transition: all var(--hover-transition);
}
.heroBtn:hover, .heroBtn:focus { background-color: var(--color-headline); color: var(--menu-text); transform: translateY(-1px); }



/* ============================================================
   9. FAKTENLEISTE (.kitaFakt)
   ============================================================ */
.kitaFakt {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--color-kita-fakt-bg, #fff7e8);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 34px 1px 34px 1px;
  padding: 1rem 1.1rem;
}

.kitaFaktIcon {
  display: flex; 
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--color-headline);
}
.kitaFaktIcon svg {
  display: block;
  width: 20px;
  height: 20px;
  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, #999);
  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)
   ============================================================ */
.infoKarten {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem; 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.1));
  transition: transform var(--hover-transition);
}

.infoKarteBtn, .infoKarteLink {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem; padding: 0.8rem 1rem;
  background-color: var(--menu-text);
  border-top-left-radius: 30px;
  border-bottom-right-radius: 30px;
  border: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
  min-height: 70px;
  transition: all 0.3s ease;
}

.infoKarte:nth-of-type(4n+1) .infoKarteBtn { background-color: #fdf6f2; border-bottom: 3px solid var(--Muna-Color); }
.infoKarte:nth-of-type(4n+2) .infoKarteBtn { background-color: #f0f9f8; border-bottom: 3px solid var(--Chumani-Color); }
.infoKarte:nth-of-type(4n+3) .infoKarteBtn { background-color: #f2f6f9; border-bottom: 3px solid var(--Tiponi-Color); }
.infoKarte:nth-of-type(4n+4) .infoKarteBtn { background-color: #fdf7f2; border-bottom: 3px solid var(--Orenda-Color); }

.infoKarte:hover .infoKarteBtn {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
  filter: brightness(0.98);
}

/* ============================================================
   11b. DYNAMISCHE KARTEN-ICONS (CSS-basiert)
   ============================================================ */
.kitaFaktIcon.icon-bild,
.kitaFaktIcon.icon-kalender,
.kitaFaktIcon.icon-uhr {
  display: inline-block; 
  width: 22px; 
  height: 22px;
  background-repeat: no-repeat; 
  background-position: center; 
  background-size: contain;
}

.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='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

/* ============================================================
   12. LOGOS & PARTNER-LINKS
   ============================================================ */
#fullWidthLogos { width: 100%; padding: 1rem 0 0; text-align: center; }
#fullWidthLogos p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem; }
#fullWidthLogos p a {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 0.85rem 1rem; background-color: var(--menu-text); border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: all var(--hover-transition);
}
#fullWidthLogos p a:hover { box-shadow: 0 8px 18px rgba(0,0,0,0.2); transform: translateY(-2px); }

#footerMetaLinks { width: 100%; background-color: var(--menu-text); padding: 0.25rem 1rem 1.25rem; text-align: center; }
.footerMetaLinksInner { max-width: var(--meta-max); margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footerMetaLinksInner a { display: inline-flex; align-items: center; justify-content: center; }
.footerMetaLinksInner img { display: block; width: auto; height: auto; max-width: 130px; }
#fullWidthLogos img {
  display: block;
  max-width: 130px;
  height: 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 rgba(0,0,0,0.1); border-radius: 8px; background-color: var(--menu-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; }
.modal-slider .slide.active { opacity: 1; display: block; }

.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: var(--menu-text); 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); }

.modal-slider .slide {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.modal-slider .slide.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   15. MODAL: TEAM & URKUNDEN
   ============================================================ */
.modal-team { max-width: 850px; padding: 0; background: var(--menu-text); 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 rgba(0,0,0,0.08); }
.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 rgba(0,0,0,0.03); }
.team-photo-box { width: 75px; height: 75px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--menu-text); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.team-photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.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: #666; 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(--menu-text); 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 rgba(0,0,0,0.08); }
.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 #eee; }
.urkunde-text h3 { margin: 0 0 5px; color: var(--color-content-bg); }
.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 rgba(0,0,0,0.1);
  line-height: 1.6;
}
.report-footer { 
  margin-top: 1.5rem; 
  padding-top: 1rem; 
  border-top: 1px solid rgba(0,0,0,0.1); 
  text-align: right; 
}
 
/* ============================================================
   18. GESCHÄFTSSTELLE & SYSTEM-STYLINGS
   ============================================================ */
.modal-gs-header { 
  background-color: var(--color-content-inner); 
  color: var(--menu-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 rgba(0,0,0,0.12);
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: inherit;
  background-color: var(--color-page-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: #fff;
}

.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: #f4f4f4;
}
.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);
}

/* ============================================================
   19. RESPONSIVE / MEDIA QUERIES (konsolidiert)
   ============================================================ */
@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 0 0rem; }
  .heroText, .heroImage { max-width: 100%; width: 100%; }
  .heroTitel { font-size: 2rem; }
}

@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: var(--menu-text) !important; border-top: 2px solid var(--menu-text); }
}
@media (prefers-reduced-motion: reduce) {
  .slide-caption { transition: none !important; opacity: 1 !important; transform: none !important; }
}