/* =============================================
   JUGENDHILFE 37 — Stylesheet
   CI: Vertrauensblau #002f5c · Perspektivgrün #58d478
   Schrift: Nunito (lokal, DSGVO-konform)
   ============================================= */

/* -----------------------------------------------
   NUNITO — Lokale @font-face (kein Google CDN)
   ----------------------------------------------- */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/Nunito.woff2') format('woff2');
}

/* -----------------------------------------------
   1. Design-Tokens (Custom Properties)
   ----------------------------------------------- */
:root {
  /* JH37 Markenfarben */
  --blue:          #002f5c;   /* Vertrauensblau */
  --blue-mid:      #003d78;   /* etwas heller */
  --blue-light:    #e8eef5;   /* sehr heller Blauton */
  --green:         #58d478;   /* Perspektivgrün */
  --green-dark:    #3ab85c;   /* Hover-Grün */
  --green-light:   #eaf9ee;   /* sehr heller Grünton */
  --lilac:         #9589c8;   /* Wertschätzungslila */
  --lilac-light:   #f0eefb;   /* sehr heller Lilatons */

  /* Neutraltöne */
  --dark:          #111827;
  --gray-dark:     #374151;
  --gray:          #6b7280;
  --gray-light:    #9ca3af;
  --gray-ultra:    #f4f6f8;
  --white:         #ffffff;

  /* Typografie */
  --f-base: 'Nunito', 'Helvetica Neue', Arial, sans-serif;

  /* Abstände */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-7:  1.75rem;
  --sp-14: 3.5rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;

  /* Radien */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Schatten */
  --shadow-sm: 0 1px 4px rgba(0,47,92,0.08);
  --shadow-md: 0 4px 16px rgba(0,47,92,0.1);
  --shadow-lg: 0 12px 36px rgba(0,47,92,0.14);

  /* Übergänge */
  --t: 0.25s ease;
}

/* -----------------------------------------------
   2. Reset & Base
   ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-base);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* -----------------------------------------------
   3. Typografie
   ----------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-base);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--gray-dark);
  font-weight: 400;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: var(--sp-3);
}

.section--dark {
  background: var(--blue);
  color: var(--white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark .lead { color: rgba(255,255,255,0.82); }
.section--dark .section-label { color: var(--green); }

/* -----------------------------------------------
   4. Layout
   ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section { padding-block: var(--sp-16); }
.section--sm { padding-block: var(--sp-10); }
.section--gray  { background: var(--gray-ultra); }
.section--blue  { background: var(--blue); color: var(--white); }
.section--green { background: var(--green); }

.section--blue  h1,
.section--blue  h2,
.section--blue  h3 { color: var(--white); }
.section--blue  .lead { color: rgba(255,255,255,0.82); }
.section--blue  .section-label { color: var(--green); }

.section-header { text-align: center; margin-bottom: var(--sp-12); }
.section-header h2 { margin-bottom: var(--sp-4); }
.section-header .lead { max-width: 620px; margin-inline: auto; }

.divider {
  width: 56px; height: 4px;
  background: var(--green);
  border-radius: var(--r-full);
  margin: var(--sp-4) auto 0;
}

.section-intro { max-width: 720px; margin: 0 auto var(--sp-12); text-align: center; }
.section-intro p { margin-bottom: var(--sp-4); }
.section-intro p:last-child { margin-bottom: 0; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }

/* -----------------------------------------------
   5. Navigation
   ----------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid #e4eaf2;
  box-shadow: 0 2px 12px rgba(0,47,92,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  padding-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
  background: transparent !important;
}
.nav-link:hover {
  color: var(--blue);
  border-bottom-color: var(--green);
}
.nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--green);
}

/* Kontakt-CTA: grüne Box — normal */
.nav-link--cta {
  background: var(--green) !important;
  color: var(--blue) !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  margin-left: var(--sp-2);
  font-weight: 700;
  border: 2px solid var(--green);
}
.nav-link--cta:hover {
  background: var(--green-dark) !important;
  border-color: var(--green-dark) !important;
  color: var(--white) !important;
}
/* Kontakt-CTA: aktive Seite — gestrichelter Rand statt Füllung */
.nav-link--cta.active {
  background: transparent !important;
  border: 2px dashed var(--green) !important;
  color: var(--blue) !important;
  border-bottom: 2px dashed var(--green) !important;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  padding: var(--sp-2);
  transition: background-color var(--t);
}
.hamburger:hover { background: var(--blue-light); }

.hamburger-line {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: var(--r-full);
  transition: transform var(--t), opacity var(--t);
}
.nav-open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger-line:nth-child(2) { opacity: 0; }
.nav-open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--blue-mid);
  padding: var(--sp-4) var(--sp-5) var(--sp-6);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t), opacity var(--t), visibility var(--t);
  z-index: 998;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.mobile-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
.mobile-nav .nav-link {
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.95rem;
  color: var(--white);
  border-radius: var(--r-full);
  border: 2px solid transparent;
}
.mobile-nav .nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.mobile-nav .nav-link.active {
  background: rgba(255,255,255,0.1);
  border-color: var(--green);
  color: var(--white);
  font-weight: 700;
}
.mobile-nav .nav-link--cta {
  margin: var(--sp-3) 0 0;
  text-align: center;
  color: var(--blue) !important;
  border: 2px solid var(--green) !important;
}
.mobile-nav .nav-link--cta.active {
  background: transparent !important;
  border: 2px dashed var(--green) !important;
  color: var(--white) !important;
}

.page-offset { padding-top: var(--nav-h); }

/* -----------------------------------------------
   6. Hero
   ----------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--blue);
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,47,92,0.93) 0%,
    rgba(0,47,92,0.82) 55%,
    rgba(0,61,120,0.7) 100%
  );
}

/* Dekorative Kurve (Brand-Element: „Ein Lebensweg verläuft nie gradlinig") */
.hero-deco {
  position: absolute;
  bottom: -60px; right: -80px;
  width: 500px; height: 500px;
  opacity: 0.06;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-24) var(--sp-20);
  max-width: 680px;
}
.hero h1 { color: var(--white); margin-bottom: var(--sp-6); }
.hero .lead { color: rgba(255,255,255,0.88); font-size: 1.2rem; margin-bottom: var(--sp-8); }
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* Scroll-Indikator */
.scroll-hint {
  position: absolute;
  bottom: var(--sp-8); left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: nudge 2.5s ease-in-out infinite;
}
.scroll-hint-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid rgba(255,255,255,0.35);
  border-bottom: 2px solid rgba(255,255,255,0.35);
  transform: rotate(45deg);
}
@keyframes nudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* Seiten-Hero */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--sp-14));
  padding-bottom: var(--sp-10);
  background: var(--blue);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-3); }
.page-hero .lead { color: rgba(255,255,255,0.8); max-width: 560px; }

.breadcrumb {
  display: flex; align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color var(--t); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.3; }

/* -----------------------------------------------
   7. Buttons
   ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--blue);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

/* btn-light: grüne Box – primärer CTA auf dunklem Hintergrund (cta-section) */
.btn-light {
  background: var(--green);
  color: var(--blue);
  border-color: var(--green);
}
.btn-light:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* btn-dark: grüne Box – primärer CTA auf hellem Hintergrund (weiße Sections) */
.btn-dark {
  background: var(--green);
  color: var(--blue);
  border-color: var(--green);
}
.btn-dark:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* btn-outline: Sekundär-CTA auf dunklem Hintergrund – grüner Rand */
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* -----------------------------------------------
   8. Cards
   ----------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.card-body { padding: var(--sp-6); }
.card-title { font-size: 1.15rem; color: var(--blue); margin-bottom: var(--sp-3); }
.card-text { color: var(--gray-dark); font-size: 0.95rem; }

/* Icon-Karte */
.icon-card {
  padding: var(--sp-7) var(--sp-6);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--t), box-shadow var(--t);
}
.icon-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.icon-card-icon {
  width: 58px; height: 58px;
  background: var(--green-light);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: var(--sp-4);
}
.icon-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-3); }
.icon-card p  { color: var(--gray-dark); font-size: 0.92rem; }

/* -----------------------------------------------
   9. Split-Layout
   ----------------------------------------------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
}
.split-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.split-content h2 { margin-bottom: var(--sp-4); }
.split-content .lead { margin-bottom: var(--sp-6); }

.value-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.value-item { display: flex; align-items: flex-start; gap: var(--sp-3); }
.value-icon {
  width: 22px; height: 22px; min-width: 22px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 2px;
}
.value-text { font-size: 0.95rem; color: var(--gray-dark); }

/* -----------------------------------------------
   10. Team-Karten
   ----------------------------------------------- */
.team-card { text-align: center; }

.team-photo {
  width: 148px; height: 148px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto var(--sp-4);
  border: 4px solid var(--green-light);
  box-shadow: var(--shadow-sm);
}
.team-photo-placeholder {
  width: 148px; height: 148px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-4);
  font-size: 2.25rem; font-weight: 800;
  color: rgba(255,255,255,0.7);
  border: 4px solid var(--green-light);
}
.team-card-box {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-5);
  box-shadow: var(--shadow-md);
  transition: transform var(--t), box-shadow var(--t);
}
.team-card-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-name { font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
.team-role {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
}
.team-bio { font-size: 0.88rem; color: var(--gray-dark); line-height: 1.6; }

/* -----------------------------------------------
   11. Räumlichkeiten
   ----------------------------------------------- */
.room-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  transition: transform var(--t), box-shadow var(--t);
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.room-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.room-body { padding: var(--sp-5) var(--sp-6); }
.room-title { font-size: 1.15rem; color: var(--blue); margin-bottom: var(--sp-2); }
.room-desc { font-size: 0.9rem; color: var(--gray-dark); }
.room-features { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.room-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: var(--r-full);
}

/* -----------------------------------------------
   12. Statistiken
   ----------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.stat-box {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
}
.stat-number {
  display: block;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.75); }

/* -----------------------------------------------
   13. Aufnahmeverfahren / Steps
   ----------------------------------------------- */
.steps-list { display: flex; flex-direction: column; gap: var(--sp-6); }

.step-item {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}
.step-num {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--green);
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(88,212,120,0.3);
}
.step-content h3 { font-size: 1.05rem; margin-bottom: var(--sp-1); }
.step-content p  { font-size: 0.92rem; color: var(--gray-dark); }

/* -----------------------------------------------
   14. Zitat-Box
   ----------------------------------------------- */
.quote-block {
  background: var(--blue);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: relative;
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: var(--sp-4); left: var(--sp-6);
  font-size: 5rem; line-height: 1;
  color: var(--green);
  font-family: Georgia, serif;
  opacity: 0.4;
}
.quote-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  padding-top: var(--sp-6);
}
.quote-block cite {
  display: block;
  margin-top: var(--sp-3);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-style: normal;
}

/* Zitat-Grid */
.quote-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }

/* -----------------------------------------------
   15. Formulare
   ----------------------------------------------- */
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: var(--sp-2);
}
.form-required { color: #dc2626; margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  border: 2px solid #e0e7ef;
  border-radius: var(--r-md);
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(88,212,120,0.18);
}
.form-control::placeholder { color: var(--gray-light); }
.form-control.error { border-color: #dc2626; }
textarea.form-control { min-height: 155px; resize: vertical; }

.form-hint { font-size: 0.78rem; color: var(--gray); margin-top: 4px; display: block; }
.form-error-msg { display: none; font-size: 0.78rem; color: #dc2626; margin-top: 4px; }
.form-error-msg.visible { display: block; }

.form-check {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--green-light);
  border-radius: var(--r-md);
  border: 1px solid rgba(88,212,120,0.3);
}
.form-check-input {
  width: 20px; height: 20px; min-width: 20px;
  margin-top: 2px; border: 2px solid #d1d5db;
  border-radius: var(--r-sm); cursor: pointer;
  accent-color: var(--green-dark);
}
.form-check-label { font-size: 0.86rem; color: var(--gray-dark); line-height: 1.55; }
.form-check-label a { color: var(--green-dark); text-decoration: underline; }

.hp-field {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

.form-status {
  display: none;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  margin-top: var(--sp-4);
  font-size: 0.92rem; line-height: 1.55;
}
.form-status.success { display: block; background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.form-status.error   { display: block; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* -----------------------------------------------
   16. Kontakt-Info-Box
   ----------------------------------------------- */
.contact-info-card {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
}
.contact-info-card h3 { color: var(--white); margin-bottom: var(--sp-6); }
.contact-item { display: flex; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.contact-item:last-of-type { margin-bottom: 0; }
.contact-icon {
  width: 42px; height: 42px; min-width: 42px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-text p { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.contact-text a, .contact-text strong { color: var(--white); font-size: 0.92rem; }
.contact-text a:hover { text-decoration: underline; }

.contact-hours {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-hours h4 {
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.hours-row {
  display: flex; justify-content: space-between;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--sp-2);
}

/* -----------------------------------------------
   17. Karriere – Benefits
   ----------------------------------------------- */
.benefit-card {
  padding: var(--sp-7) var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--green);
  transition: transform var(--t);
}
.benefit-card:hover { transform: translateY(-3px); }
.benefit-card h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.benefit-card p  { font-size: 0.9rem; color: var(--gray-dark); }

/* -----------------------------------------------
   18. CTA-Bereich
   ----------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  padding-block: var(--sp-16);
  text-align: center;
  color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: var(--sp-4); }
.cta-section p {
  color: rgba(255,255,255,0.82);
  max-width: 540px; margin-inline: auto;
  margin-bottom: var(--sp-8);
  font-size: 1.05rem;
}
.cta-actions { display: flex; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; }

/* -----------------------------------------------
   19. Footer
   ----------------------------------------------- */
.site-footer {
  background: var(--blue);
  color: rgba(255,255,255,0.65);
  padding-top: var(--sp-14);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-10);
}
.footer-logo { margin-bottom: var(--sp-4); }
.footer-logo img { height: 32px; width: auto; }
.footer-brand p { font-size: 0.86rem; line-height: 1.65; color: rgba(255,255,255,0.5); max-width: 280px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-col ul  { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a   { font-size: 0.86rem; color: rgba(255,255,255,0.5); transition: color var(--t); }
.footer-col a:hover { color: var(--white); }
.footer-col p   { font-size: 0.86rem; color: rgba(255,255,255,0.5); margin-bottom: var(--sp-2); }
.footer-col strong { color: rgba(255,255,255,0.8); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.3); transition: color var(--t); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.footer-legal-links { display: flex; gap: var(--sp-5); }

/* -----------------------------------------------
   20. Cookie-Banner
   ----------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-4); left: var(--sp-4); right: var(--sp-4);
  max-width: 500px;
  background: #111827;
  color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.35s ease;
}
.cookie-banner.hidden {
  transform: translateY(calc(100% + 2.5rem));
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-icon { font-size: 1.4rem; margin-bottom: var(--sp-2); }
.cookie-banner h3  { font-size: 0.95rem; color: var(--white); margin-bottom: var(--sp-2); }
.cookie-banner p   { font-size: 0.82rem; color: rgba(255,255,255,0.78); line-height: 1.55; margin-bottom: var(--sp-4); }
.cookie-banner a   { color: var(--green); text-decoration: underline; }
.cookie-banner a:hover { color: var(--white); }

.cookie-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.cookie-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-full);
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
  border: 2px solid transparent;
}
.cookie-btn-accept { background: var(--green); color: var(--blue); border-color: var(--green); }
.cookie-btn-accept:hover { background: var(--green-dark); color: var(--white); }
.cookie-btn-more { background: transparent; color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.2); }
.cookie-btn-more:hover { color: var(--white); border-color: rgba(255,255,255,0.45); }

/* -----------------------------------------------
   21. Rechtliche Seiten
   ----------------------------------------------- */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.3rem; margin-top: var(--sp-10); margin-bottom: var(--sp-3); color: var(--blue); }
.legal-content h3 { font-size: 1.05rem; margin-top: var(--sp-6); margin-bottom: var(--sp-2); color: var(--blue); }
.legal-content p  { color: var(--gray-dark); margin-bottom: var(--sp-4); }
.legal-content ul { list-style: disc; padding-left: var(--sp-6); margin-bottom: var(--sp-4); }
.legal-content ul li { color: var(--gray-dark); margin-bottom: var(--sp-2); }
.legal-content a  { color: var(--green-dark); text-decoration: underline; }

/* -----------------------------------------------
   22. Hilfklassen
   ----------------------------------------------- */
.text-center  { text-align: center; }
.text-green   { color: var(--green); }
.text-blue    { color: var(--blue); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mb-0  { margin-bottom: 0; }

.privacy-notice {
  background: var(--blue-light);
  border: 1px solid rgba(0,47,92,0.15);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  font-size: 0.82rem;
  color: var(--gray-dark);
  margin-bottom: var(--sp-5);
  line-height: 1.55;
}

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

/* Lilac-Tag für Familie & Jugendamt */
.tag-lilac {
  display: inline-block;
  padding: 3px 12px;
  background: var(--lilac-light);
  color: var(--lilac);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--r-full);
}

/* -----------------------------------------------
   23. Animationen
   ----------------------------------------------- */
.anim { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim.visible { opacity: 1; transform: translateY(0); }
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }
.anim-delay-6 { transition-delay: 0.6s; }

/* -----------------------------------------------
   24. Zusätzliche Komponenten
   ----------------------------------------------- */

/* Grünes Tag */
.tag-green {
  display: inline-block;
  padding: 3px 12px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--r-full);
}

/* Blau-heller Hintergrundbereich */
.section--blue-light { background: var(--blue-light); }

/* Benefit-Card Icon */
.benefit-icon {
  width: 52px; height: 52px; min-width: 52px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.benefit-card { display: flex; gap: var(--sp-5); align-items: flex-start; }

/* Split-Layout BEM-Modifier */
.split-layout--reverse .split-img     { order: 2; }
.split-layout--reverse .split-content { order: 1; }

/* Step Kontakt-Links */
.step-contact { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-3); }
.step-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 0.88rem; font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--r-full);
  transition: all var(--t);
}
.step-link:hover { background: var(--green); color: var(--blue); }

/* Kontakt-Seite Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: flex-start;
}
.contact-info h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--blue); margin-bottom: var(--sp-6); }
.contact-info .contact-item { margin-bottom: var(--sp-5); }
.contact-info .contact-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.contact-info .contact-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gray);
  margin-bottom: 5px;
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--green);
}
.contact-info .contact-item a { color: var(--blue); font-weight: 600; }
.contact-info .contact-item a:hover { text-decoration: underline; }
.map-container { background: var(--gray-ultra); border-radius: var(--r-md); padding: var(--sp-4); }
.map-hint { font-size: 0.86rem; color: var(--gray-dark); display: flex; align-items: center; gap: var(--sp-2); }
.map-hint a { color: var(--green-dark); text-decoration: underline; }

/* -----------------------------------------------
   Google Maps 2-Klick-Consent
   ----------------------------------------------- */
.map-consent-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
}
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(88,212,120,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(0,47,92,0.08) 0%, transparent 55%),
    var(--blue-light);
  border: 1px solid #d0dce9;
  border-radius: var(--r-lg);
}
.map-placeholder-inner {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  max-width: 360px;
}
.map-pin-icon {
  width: 64px; height: 64px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-4);
  color: var(--blue);
  box-shadow: var(--shadow-md);
}
.map-address-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: var(--sp-5);
}
.map-consent-btn {
  margin-bottom: var(--sp-4);
}
.map-consent-note {
  font-size: 0.76rem;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
}
.map-consent-note a { color: var(--gray-dark); text-decoration: underline; }
.map-consent-note a:hover { color: var(--blue); }
.google-map {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--r-lg);
}

/* Kontakt-Formular */
.contact-form-wrap h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--blue); margin-bottom: var(--sp-6); }
.contact-form .form-group { margin-bottom: var(--sp-5); }
.contact-form label {
  display: block;
  font-size: 0.86rem; font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: var(--sp-2);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem; font-family: var(--f-base);
  color: var(--dark);
  background: var(--white);
  border: 2px solid #e0e7ef;
  border-radius: var(--r-md);
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(88,212,120,0.18);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray-light); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-optional { font-size: 0.78rem; font-weight: 400; color: var(--gray); }
.form-error { display: block; font-size: 0.78rem; color: #dc2626; margin-top: 4px; min-height: 1em; }

.form-group--checkbox { background: var(--green-light); border: 1px solid rgba(88,212,120,0.3); border-radius: var(--r-md); padding: var(--sp-4); }
.checkbox-label { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: 0.86rem; color: var(--gray-dark); cursor: pointer; line-height: 1.55; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin-top: 2px; border: 2px solid #d1d5db; border-radius: 4px; cursor: pointer; accent-color: var(--green-dark); }
.checkbox-label a { color: var(--green-dark); text-decoration: underline; }

.btn-submit { width: 100%; margin-top: var(--sp-2); font-size: 1rem; padding: 0.85rem 2rem; }
.form-success {
  margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-5);
  background: #ecfdf5; border: 1px solid #6ee7b7;
  color: #065f46; border-radius: var(--r-md);
  font-size: 0.92rem; line-height: 1.55;
}
.form-error-global {
  margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-5);
  background: #fef2f2; border: 1px solid #fca5a5;
  color: #991b1b; border-radius: var(--r-md);
  font-size: 0.92rem; line-height: 1.55;
}
.form-error-global a { color: #991b1b; text-decoration: underline; }
.hidden { display: none !important; }

/* Team-Grid neue Klassen */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.team-photo-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-avatar {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.team-avatar--blue     { background: var(--blue-light);  color: var(--blue); }
.team-avatar--blue-mid { background: #dce8f5;             color: var(--blue-mid); }
.team-avatar--green    { background: var(--green-light);  color: var(--green-dark); }
.team-avatar--lilac    { background: var(--lilac-light);  color: var(--lilac); }
.team-card-info { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.team-card-box { padding: 0; overflow: hidden; }
.team-card-box .team-name { margin-bottom: 2px; }

/* Räumlichkeiten neue Klassen */
.room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
.room-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.room-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-card-body { padding: var(--sp-5) var(--sp-6); }
.room-card-body h3 { font-size: 1.1rem; color: var(--blue); margin-bottom: var(--sp-2); }
.room-card-body p  { font-size: 0.9rem; color: var(--gray-dark); }

/* Foto-Galerie (Einblicke) */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.gallery-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  transition: transform var(--t), box-shadow var(--t);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* -----------------------------------------------
   25. Media Queries
   ----------------------------------------------- */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .main-nav  { display: block; }
  .hamburger { display: none; }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .stats-grid   { grid-template-columns: repeat(4, 1fr); }
  .form-row     { grid-template-columns: 1fr 1fr; }
  .footer-grid  { grid-template-columns: 2fr 1fr 1fr; }
  .split-layout { grid-template-columns: 1fr 1fr; }
  .split-layout.reverse .split-img       { order: 2; }
  .split-layout.reverse .split-content   { order: 1; }
  .split-layout--reverse .split-img      { order: 2; }
  .split-layout--reverse .split-content  { order: 1; }
  .quote-grid   { grid-template-columns: 1fr 1fr; }
  .room-grid    { grid-template-columns: repeat(2, 1fr); }
  .team-grid    { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr 1.4fr; }

  .cookie-banner { left: var(--sp-6); right: auto; max-width: 440px; }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .grid-3      { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .room-grid   { grid-template-columns: repeat(2, 1fr); }
  .team-grid   { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* -----------------------------------------------
   Mobile – Kontaktformular
   ----------------------------------------------- */
@media (max-width: 767px) {
  /* Mehr Abstand zwischen Feldern */
  .contact-form .form-group { margin-bottom: 1.25rem; }

  /* Labels: gut lesbar, fett */
  .contact-form label {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
  }

  /* Inputs: mindestens 16px verhindert iOS-Zoom,
     48px Mindesthöhe = Apple-empfohlenes Touch-Target */
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form select,
  .contact-form textarea {
    font-size: 1rem !important;
    padding: 0.9rem 1rem;
    min-height: 48px;
    border-width: 2px;
  }

  /* Textarea etwas kürzer auf kleinen Screens */
  .contact-form textarea { min-height: 130px; }

  /* Fehlermeldungen lesbar */
  .form-error        { font-size: 0.88rem; margin-top: 5px; }
  .form-optional     { font-size: 0.85rem; }

  /* Checkbox-Block: gut greifbar */
  .form-group--checkbox { padding: 1rem; }
  .checkbox-label {
    font-size: 0.95rem;
    line-height: 1.5;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 1px;
  }

  /* Submit-Button: volle Breite, 52px hoch */
  .btn-submit {
    width: 100% !important;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    min-height: 52px;
  }

  /* Abstand zwischen Kontakt-Info und Formular */
  .contact-layout { gap: 2rem; }

  /* Status-Meldung */
  .form-status { font-size: 0.95rem; padding: 1rem; }
}
