@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --peach: #FFB347;
  --peach-light: #FFD9A8;
  --mint: #A8E6CF;
  --mint-light: #D4F5E9;
  --rose: #FFB3BA;
  --rose-light: #FFE0E3;
  --lavender: #C8A8E9;
  --lavender-light: #EAD9FF;
  --sky: #A8D8EA;
  --yellow: #FFF3A3;
  --yellow-deep: #FFE066;
  --cream: #FFFBF5;
  --warm-white: #FFF8F0;
  --brown: #6B4226;
  --text: #4A3728;
  --text-soft: #8B7355;
  --nav-h: 75px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== HINTERGRUND ===== */
body {
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(255,179,71,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(168,216,234,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(200,168,233,0.1) 0%, transparent 60%);
  background-attachment: fixed;
}

/* ===== NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,245,0.97);
  backdrop-filter: blur(15px);
  border-bottom: 3px solid var(--peach-light);
  box-shadow: 0 4px 25px rgba(255,179,71,0.1);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  height: var(--nav-h);
  max-width: 1300px;
  margin: 0 auto;
}

.logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8em;
  color: var(--peach);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.logo-icon { display:none; } .logo img {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--peach), var(--rose));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  box-shadow: 0 4px 12px rgba(255,179,71,0.35);
}

#menu-toggle { display: none; }

/* Hauptmenü */
.menu {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}

.menu > li {
  position: relative;
}

/* Pill-Buttons */
.menu > li > a,
.menu > li > .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  background: transparent;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 0.6em;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

/* Farben pro Menüpunkt */
.menu > li.nav-home > a:hover,
.menu > li.nav-home > a.active {
  background: var(--yellow);
  border-color: var(--yellow-deep);
  transform: translateY(-2px);
}

.menu > li.nav-eltern > .dropdown-toggle:hover,
.menu > li.nav-eltern:hover > .dropdown-toggle {
  background: var(--rose-light);
  border-color: var(--rose);
  transform: translateY(-2px);
}

.menu > li.nav-ueber > .dropdown-toggle:hover,
.menu > li.nav-ueber:hover > .dropdown-toggle {
  background: var(--mint-light);
  border-color: var(--mint);
  transform: translateY(-2px);
}

.menu > li.nav-galerie > a:hover,
.menu > li.nav-galerie > a.active {
  background: rgba(168,216,234,0.4);
  border-color: var(--sky);
  transform: translateY(-2px);
}

.menu > li.nav-login > a:hover {
  background: var(--lavender-light);
  border-color: var(--lavender);
  transform: translateY(-2px);
}

.menu > li.nav-infos > .dropdown-toggle:hover,
.menu > li.nav-infos:hover > .dropdown-toggle {
  background: #f0f0f0;
  border-color: #ddd;
  transform: translateY(-2px);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: white;
  border-radius: 20px;
  padding: 10px;
  min-width: 200px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  border: 2px solid var(--peach-light);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
}

/* Unsichtbare Brücke zwischen Button und Dropdown */
.dropdown::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: white;
  border-left: 2px solid var(--peach-light);
  border-top: 2px solid var(--peach-light);
  transform: translateX(-50%) rotate(45deg);
  z-index: 1;
}

.menu > li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

/* Verzögerung beim Ausblenden */
.menu > li .dropdown {
  transition-delay: 0.15s;
}

.menu > li:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.9em;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown a:hover {
  background: var(--warm-white);
  padding-left: 22px;
}

.nav-eltern .dropdown a:hover { background: var(--rose-light); }
.nav-ueber .dropdown a:hover { background: var(--mint-light); }
.nav-infos .dropdown a:hover { background: #f5f5f5; }

/* Hamburger */
.hamburger {
  display: none;
  background: linear-gradient(135deg, var(--peach), var(--rose));
  color: white;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.5em;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,179,71,0.4);
}

/* ===== HERO ===== */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
  overflow: hidden;
}

/* Floating dekorative Elemente */
.deco {
  position: absolute;
  pointer-events: none;
  animation: floatDeco 8s ease-in-out infinite;
  font-size: 2.5em;
  opacity: 0.6;
}

.deco-1 { top: 8%; left: 5%; animation-delay: 0s; font-size: 3em; }
.deco-2 { top: 15%; right: 8%; animation-delay: 1.5s; font-size: 2em; }
.deco-3 { top: 55%; left: 3%; animation-delay: 3s; font-size: 2.2em; }
.deco-4 { top: 70%; right: 5%; animation-delay: 0.8s; font-size: 1.8em; }
.deco-5 { top: 30%; left: 12%; animation-delay: 2s; font-size: 1.5em; }
.deco-6 { top: 40%; right: 12%; animation-delay: 2.5s; font-size: 2em; }
.deco-7 { bottom: 10%; left: 20%; animation-delay: 1s; font-size: 1.6em; }
.deco-8 { bottom: 15%; right: 20%; animation-delay: 3.5s; font-size: 1.8em; }

@keyframes floatDeco {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-18px) rotate(5deg); }
}

/* Große bunte Kreise im Hintergrund */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.blob-1 { width: 500px; height: 500px; background: var(--peach-light); top: -150px; left: -150px; }
.blob-2 { width: 400px; height: 400px; background: var(--rose-light); top: 0; right: -100px; }
.blob-3 { width: 350px; height: 350px; background: var(--mint-light); bottom: -100px; left: 30%; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  border: 2px solid var(--yellow-deep);
  color: var(--brown);
  font-weight: 700;
  font-size: 0.9em;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 25px;
  animation: fadeInDown 0.6s ease both;
}

.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.2em, 6vw, 4em);
  line-height: 1.15;
  color: var(--text);
  max-width: 750px;
  margin-bottom: 22px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero h1 .highlight {
  color: var(--peach);
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--yellow-deep);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.6;
}

.hero-sub {
  font-size: 1.15em;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.7s ease 0.3s both;
}

/* Kinder-Illustration (CSS-Art) */
.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-top: 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.grass-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 2.5em;
  margin-top: 20px;
  animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.3px;
}

.btn:hover { transform: translateY(-4px) scale(1.03); }

.btn-primary {
  background: linear-gradient(135deg, var(--peach), #FF8C69);
  color: white;
  box-shadow: 0 8px 25px rgba(255,179,71,0.45);
}

.btn-primary:hover { box-shadow: 0 14px 35px rgba(255,179,71,0.55); }

.btn-secondary {
  background: white;
  color: var(--text);
  border: 2.5px solid var(--peach-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.btn-secondary:hover { border-color: var(--peach); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* ===== WELLEN ===== */
.wave-top {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}

.wave-top svg { display: block; }

/* ===== FEATURES SECTION ===== */
.features {
  background: linear-gradient(180deg, var(--warm-white), #FFF0E8);
  padding: 80px 20px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mint);
  color: #2D7A5F;
  font-weight: 700;
  font-size: 0.85em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  text-align: center;
  margin-bottom: 55px;
}

.section-title h2 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.7em, 3.5vw, 2.6em);
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-title p {
  color: var(--text-soft);
  font-size: 1.05em;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 28px;
  padding: 38px 28px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.card:nth-child(1) { box-shadow: 0 8px 30px rgba(255,179,71,0.15); border-color: var(--peach-light); }
.card:nth-child(2) { box-shadow: 0 8px 30px rgba(168,230,207,0.25); border-color: var(--mint); }
.card:nth-child(3) { box-shadow: 0 8px 30px rgba(168,216,234,0.25); border-color: var(--sky); }
.card:nth-child(4) { box-shadow: 0 8px 30px rgba(255,179,186,0.2); border-color: var(--rose); }

.card:hover { transform: translateY(-10px) rotate(1deg); }
.card:nth-child(even):hover { transform: translateY(-10px) rotate(-1deg); }

.card:nth-child(1):hover { box-shadow: 0 20px 50px rgba(255,179,71,0.25); }
.card:nth-child(2):hover { box-shadow: 0 20px 50px rgba(168,230,207,0.35); }
.card:nth-child(3):hover { box-shadow: 0 20px 50px rgba(168,216,234,0.35); }
.card:nth-child(4):hover { box-shadow: 0 20px 50px rgba(255,179,186,0.3); }

.card-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.2em;
}

.card:nth-child(1) .card-icon-wrap { background: var(--yellow); }
.card:nth-child(2) .card-icon-wrap { background: var(--mint-light); }
.card:nth-child(3) .card-icon-wrap { background: rgba(168,216,234,0.4); }
.card:nth-child(4) .card-icon-wrap { background: var(--rose-light); }

.card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.25em;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.card p {
  color: var(--text-soft);
  font-size: 0.95em;
  line-height: 1.65;
}

/* ===== ABOUT STRIP ===== */
.about-strip {
  padding: 90px 20px;
  position: relative;
  overflow: hidden;
  background: white;
}

.about-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(255,179,71,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 50%, rgba(168,230,207,0.15) 0%, transparent 60%);
}

.about-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-big-emoji {
  font-size: 10em;
  filter: drop-shadow(0 10px 30px rgba(255,179,71,0.3));
  animation: gentleBounce 4s ease-in-out infinite;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

.about-bubble {
  position: absolute;
  background: var(--yellow);
  border-radius: 20px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.9em;
  color: var(--brown);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  white-space: nowrap;
}

.bubble-1 { top: 5%; right: 0; animation: floatDeco 5s ease-in-out infinite; }
.bubble-2 { bottom: 10%; left: 0; animation: floatDeco 6s ease-in-out 1s infinite; background: var(--mint); color: #2D7A5F; }
.bubble-3 { top: 45%; right: -10px; animation: floatDeco 7s ease-in-out 2s infinite; background: var(--rose-light); color: #8B4B55; }

.about-text h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2em;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.2;
}

.about-text p {
  color: var(--text-soft);
  font-size: 1.05em;
  line-height: 1.75;
  margin-bottom: 30px;
}

.about-checklist {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95em;
  color: var(--text);
}

.about-checklist li::before {
  content: '✓';
  width: 28px;
  height: 28px;
  background: var(--mint);
  color: #2D7A5F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9em;
  flex-shrink: 0;
}

/* ===== STATS ===== */
.stats-section {
  background: linear-gradient(135deg, var(--peach-light), var(--rose-light), var(--lavender-light));
  padding: 70px 20px;
  text-align: center;
}

.stats-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 30px 35px;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
  min-width: 160px;
}

.stat-card:hover { transform: scale(1.05); }

.stat-emoji { font-size: 2.5em; margin-bottom: 8px; display: block; }
.stat-number {
  font-family: 'Fredoka One', cursive;
  font-size: 2.8em;
  color: var(--peach);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.9em;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--cream);
}

.cta-box {
  max-width: 650px;
  margin: 0 auto;
  background: white;
  border-radius: 32px;
  padding: 55px 40px;
  box-shadow: 0 15px 50px rgba(255,179,71,0.15);
  border: 3px solid var(--peach-light);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--peach), var(--rose), var(--lavender), var(--mint), var(--sky));
}

.cta-box h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2em;
  color: var(--text);
  margin-bottom: 15px;
}

.cta-box p {
  color: var(--text-soft);
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 35px 20px;
  text-align: center;
  font-size: 0.95em;
}

footer a {
  color: var(--peach-light);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

footer a:hover { color: var(--peach); }

.footer-emojis {
  font-size: 1.5em;
  margin-bottom: 12px;
  display: block;
}

/* ===== INNER PAGES ===== */
main:not(.home-main) {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px;
}

/* ===== RESPONSIVE ===== */

/* 1. Block: Anpassungen unter 900px */
@media (max-width: 900px) {
  .about-inner { 
    grid-template-columns: 1fr; 
    gap: 30px; 
  }
  
  .about-visual { 
    display: none; 
  }

  .hamburger { 
    display: flex; 
  }

  .menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; 
    right: 0;
    background: white;
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    gap: 4px;
    border-bottom: 3px solid var(--peach-light);
    align-items: stretch;
  }

  #menu-toggle:checked ~ .menu { 
    display: flex; 
  }

  .menu > li > a,
  .menu > li > .dropdown-toggle {
    padding: 13px 20px;
    border-radius: 15px;
    font-size: 1em;
    width: 100%;
    justify-content: space-between;
    border: none;
    background: transparent;
  }

  .dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    border: none;
    background: #FFFBF5;
    padding: 0 0 0 15px;
    display: none; 
  }

  .dropdown.show { 
    display: block !important; 
  }

  .dropdown::before, .dropdown::after { 
    display: none; 
  }

  .dropdown a {
    border-bottom: 1px solid #FFF5E6;
    padding: 14px 20px 14px 30px;
    width: 100%;
  }

  .stats-grid { gap: 12px; }
  .stat-card { padding: 22px 25px; min-width: 130px; }
  .cta-box { padding: 35px 20px; }
}

/* 2. Block: Spezielle Anpassungen für Handys (768px) */
@media (max-width: 768px) {
  .hero h1 { 
    font-size: 2.2em; 
  }
  
  .main-nav { 
    padding: 0 20px; 
  }
  
  .auth-card {
    padding: 25px 20px;
  }
}