/* =============================================
   Kindertagespflege Alexandra
   Fröhliches, buntes Design
   ============================================= */

:root {
  --coral:     #FF6B6B;
  --coral-dark:#e85555;
  --teal:      #4ECDC4;
  --teal-dark: #38b2aa;
  --yellow:    #FFE66D;
  --text:      #2D2D2D;
  --text-light:#666;
  --white:     #ffffff;
  --tinted:    #FFF8F3;
  --border:    #f0e8e0;
  --radius:    18px;
  --shadow:    0 8px 30px rgba(0,0,0,0.10);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Baloo 2', cursive; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Layout ───────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-white   { padding: 80px 0; background: var(--white); }
.section-tinted  { padding: 80px 0; background: var(--tinted); }
.section-coral   { padding: 80px 0; background: var(--coral); }
.section-turquoise { padding: 80px 0; background: var(--teal); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.section-header { margin-bottom: 50px; }
.section-header.center { text-align: center; }
.section-intro { font-size: 1.1rem; color: var(--text-light); max-width: 680px; margin: 0 auto; }
.section-intro.light { color: rgba(255,255,255,0.85); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(255,107,107,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-label.light {
  color: var(--white);
  background: rgba(255,255,255,0.25);
}

h2.light, p.light { color: var(--white); }

/* ── Navbar ───────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon { font-size: 1.4rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral); }
.nav-cta {
  background: var(--coral);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 30px;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--coral-dark) !important; transform: scale(1.04); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ─────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff9f3 0%, #fff0e8 50%, #ffeedd 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 120px 80px 80px;
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
}
.hero-content { z-index: 1; }
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
#hero h1 { margin-bottom: 20px; color: var(--text); }
.highlight {
  color: var(--coral);
  position: relative;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 6px;
  background: var(--yellow);
  border-radius: 3px;
  z-index: -1;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-wrap img {
  width: min(420px, 100%);
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
}
.hero-wave svg { display: block; width: 100%; height: 60px; }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-secondary { background: var(--white); color: var(--text); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--coral); color: var(--coral); }
.btn-full { width: 100%; justify-content: center; }

/* ── Welcome Cards ────────────────────────── */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.welcome-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.welcome-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 2.4rem; margin-bottom: 16px; }
.welcome-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.welcome-card p { font-size: 0.9rem; color: var(--text-light); }

/* ── Two-col Text ─────────────────────────── */
.col-text { display: flex; flex-direction: column; gap: 0; }
.col-text h2 { margin-bottom: 20px; }
.col-text p { color: var(--text-light); }
.col-image img { width: 100%; }

.rounded-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 420px;
  width: 100%;
}
.garden-img {
  transform: rotate(90deg);
  transform-origin: center center;
  height: 320px;
  object-fit: cover;
}

/* ── Badges ───────────────────────────────── */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(78,205,196,0.12);
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.badge:hover { background: rgba(78,205,196,0.22); transform: scale(1.04); }
.badge.active {
  background: var(--teal);
  color: var(--white);
}
.badge-info {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
}
.badge-info.open {
  max-height: 200px;
  opacity: 1;
  margin-top: 16px;
}
.badge-info p {
  background: rgba(78,205,196,0.10);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ── Feature List ─────────────────────────── */
.feature-list { margin: 16px 0 20px; }
.feature-list li {
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature-list li:last-child { border-bottom: none; }

/* ── Pädagogik Grid ───────────────────────── */
.paed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.paed-card {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: 32px 24px;
  color: var(--white);
  transition: background 0.25s, transform 0.25s;
}
.paed-card:hover { background: rgba(255,255,255,0.28); transform: translateY(-3px); }
.paed-icon { font-size: 2.2rem; margin-bottom: 14px; }
.paed-card h3 { color: var(--white); margin-bottom: 10px; }
.paed-card p { color: rgba(255,255,255,0.88); font-size: 0.92rem; margin: 0; }

/* ── Betreuungszeiten Grid ────────────────── */
.zeiten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.zeiten-card {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: 32px 24px;
  color: var(--white);
  transition: background 0.25s, transform 0.25s;
}
.zeiten-card:hover { background: rgba(255,255,255,0.28); transform: translateY(-3px); }
.zeiten-icon { font-size: 2rem; margin-bottom: 14px; }
.zeiten-card h3 { color: var(--white); margin-bottom: 10px; }
.zeiten-card p { color: rgba(255,255,255,0.88); font-size: 0.92rem; margin: 0; }
.zeiten-card strong { color: var(--white); }

/* ── Download Section ─────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
}
.download-card {
  background: var(--tinted);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.download-icon { font-size: 2.8rem; }
.download-card h3 { margin: 0; font-size: 1.25rem; }
.download-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; flex-grow: 1; }
.btn-download {
  background: var(--teal);
  color: var(--white);
  margin-top: 8px;
}
.btn-download:hover { background: var(--teal-dark); }

/* ── Ratgeber ─────────────────────── */
.ratgeber-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1060px;
  margin: 0 auto;
}
.ratgeber-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 4px solid var(--coral);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.ratgeber-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ratgeber-card-icon { font-size: 2rem; }
.ratgeber-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.ratgeber-card h3 { font-size: 1.1rem; margin: 0; }
.ratgeber-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; flex-grow: 1; line-height: 1.6; }
.ratgeber-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  margin-top: 4px;
}
.ratgeber-link:hover { gap: 10px; color: var(--coral-dark); }

/* ── Kennenlernen Box ─────────────────────── */
.kennenlernen-box {
  text-align: center;
  background: linear-gradient(135deg, #fff0e8, #ffeedd);
  border-radius: 28px;
  padding: 60px 40px;
  max-width: 700px;
  margin: 0 auto;
}
.kl-icon { font-size: 3rem; margin-bottom: 20px; }
.kennenlernen-box h2 { margin-bottom: 16px; }
.kennenlernen-box p { color: var(--text-light); margin-bottom: 28px; }

/* ── Kontakt ──────────────────────────────── */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.kontakt-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.kontakt-icon { font-size: 1.6rem; flex-shrink: 0; }
.kontakt-item strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral); margin-bottom: 4px; }
.kontakt-item p { color: var(--text-light); margin: 0; }
.kontakt-item a { color: var(--text); font-weight: 600; }
.kontakt-item a:hover { color: var(--coral); }
.kontakt-map { margin-top: 12px; }

.kontakt-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 10px; text-align: center; }
.form-success {
  display: none;
  background: rgba(78,205,196,0.12);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  color: var(--teal-dark);
}
.form-success.visible { display: block; }
.form-success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--teal-dark); }
.form-success p  { color: var(--teal-dark); opacity: 0.85; margin: 0; }

.form-error {
  display: none;
  background: rgba(255,107,107,0.12);
  border: 2px solid var(--coral);
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  color: var(--coral-dark);
  margin-top: 16px;
  font-size: 0.92rem;
  white-space: pre-line;
  line-height: 1.9;
}
.form-error.visible { display: block; }

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.15);
}

/* ── Footer ───────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-logo {
  font-family: 'Baloo 2', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.footer-nav a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-nav a:hover { color: var(--coral); }
.footer-copy { font-size: 0.8rem; }

/* ── Image Stack ─────────────────────────── */
.img-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.img-stack .rounded-img:first-child { height: 260px; }
.img-stack .rounded-img:last-child  { height: 210px; }

/* ── Photo Strip ─────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.photo-strip.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-strip.cols-2 img { height: 280px; }
.photo-strip img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.photo-strip img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* ── Animations ───────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  #hero { padding: 100px 40px 60px; }
  .welcome-grid { grid-template-columns: repeat(2, 1fr); }
  .paed-grid { grid-template-columns: repeat(2, 1fr); }
  .zeiten-grid { grid-template-columns: repeat(2, 1fr); }
  .ratgeber-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .burger { display: flex; }

  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 100px 24px 60px;
    min-height: auto;
  }
  .hero-image-wrap { order: -1; }
  .hero-image-wrap img { width: 240px; height: 240px; border-radius: 50%; }
  .hero-buttons { justify-content: center; }
  .hero-wave { display: none; }

  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse { direction: ltr; }

  .kontakt-grid { grid-template-columns: 1fr; }

  .welcome-grid { grid-template-columns: 1fr 1fr; }
  .paed-grid { grid-template-columns: 1fr; }
  .zeiten-grid { grid-template-columns: 1fr; }

  .download-grid { grid-template-columns: 1fr; }
  .ratgeber-grid { grid-template-columns: 1fr; }
  .section-white, .section-tinted, .section-coral, .section-turquoise { padding: 60px 0; }

  .rounded-img { height: 280px; }
  .garden-img { height: 220px; }
  .img-stack .rounded-img:first-child { height: 200px; }
  .img-stack .rounded-img:last-child  { height: 110px; }
  .photo-strip.cols-2 { grid-template-columns: 1fr; }

  .kontakt-form { padding: 24px; }
  .kennenlernen-box { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
