/* =========================================================
   Kindertagespflege Kinder Glück — Design Tokens
   Palette: Sage/forest greens + cream + soft honey & clay pastel
   Type: Fredoka (display, rounded & friendly) + Karla (body)
   Signature: a hand-drawn winding "garden path" that threads
   through the day's timeline instead of a generic numbered list.
   ========================================================= */

:root {
  --cream-50:  #FDFBF5;
  --cream-100: #F8F3E8;
  --sage-100:  #E4EEE3;
  --sage-300:  #A9C6AA;
  --sage-500:  #6B9080;
  --sage-700:  #3F5B4E;
  --sage-900:  #26392F;
  --honey-200: #F3E3B8;
  --clay-200:  #F2D9CE;
  --ink:       #2B332E;
  --ink-soft:  #5B6960;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Karla', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 10px 30px -12px rgba(38, 57, 47, 0.18);
  --shadow-card: 0 14px 40px -18px rgba(38, 57, 47, 0.28);

  --ease: cubic-bezier(.25,.8,.35,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--sage-900);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}

h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--sage-700); color: #fff; padding: 12px 18px;
  border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-display);
  color: var(--sage-500);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .6em;
}
.eyebrow.center { text-align: center; }
h2.center, .lead.center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { max-width: 620px; color: var(--ink-soft); font-size: 1.08rem; }
.lead.center { }

.sub-heading { margin-top: 3.2rem; }

a { color: inherit; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: .95em 1.8em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: var(--sage-700);
  color: var(--cream-50);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--sage-900);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -14px rgba(38,57,47,.4);
}
.btn-primary:focus-visible { outline: 3px solid var(--honey-200); outline-offset: 3px; }

/* ===== Navigation ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 245, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107,144,128,.15);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--sage-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5em;
}
.nav-logo-leaf { display: inline-flex; }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0; padding: 0;
}
.nav-link {
  text-decoration: none;
  color: var(--sage-900);
  font-weight: 600;
  font-size: .96rem;
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--sage-500);
  transition: width .3s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
  background: var(--sage-700);
  color: var(--cream-50) !important;
  padding: .55em 1.3em;
  border-radius: 999px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--sage-900); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--sage-900);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,57,47,.55) 0%, rgba(38,57,47,.35) 45%, rgba(253,251,245,.96) 100%);
}
.hero-blob {
  position: absolute;
  width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(246,231,201,.35), transparent 70%);
  top: -120px; right: -160px;
  border-radius: 50%;
  z-index: 1;
  filter: blur(10px);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}
.hero-content .eyebrow { color: var(--honey-200); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.hero h1 span { color: var(--honey-200); }
.hero-sub {
  color: rgba(255,255,255,.92);
  font-size: 1.2rem;
  margin-bottom: 1.8em;
}
.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  z-index: 2;
  animation: bob 2.2s ease-in-out infinite;
}
.hero-note {
  margin-top: 1.2em;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-style: italic;
}

/* ===== Testimonials ===== */
.testimonials { background: var(--cream-100); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.6rem;
}
.testimonial-card {
  margin: 0;
  background: var(--cream-50);
  border-radius: var(--radius-md);
  padding: 2em 1.8em;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--sage-300);
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.testimonial-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  font-style: italic;
}
.testimonial-card figcaption {
  color: var(--sage-700);
  font-weight: 600;
  font-size: .9rem;
  font-family: var(--font-display);
}
.scroll-dot { animation: scrollDot 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 60% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section.betreuung { background: var(--sage-100); }
.section.day { background: var(--sage-100); }
.section.contact { background: var(--sage-900); }
.section.contact h2, .section.contact .eyebrow, .section.contact .lead { color: var(--cream-50); }
.section.contact .lead { color: rgba(253,251,245,.8); }

/* Reveal animations — BIG, bouncy, playful. Assigned automatically in script.js. */
.reveal {
  opacity: 0;
  transition: opacity .5s ease, transform 1.1s cubic-bezier(.34, 1.56, .64, 1), filter .6s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}
.reveal.is-visible { opacity: 1; }

/* Variant 1: fly up with overshoot bounce */
.reveal-up { transform: translateY(140px) scale(.7); }
.reveal-up.is-visible { transform: translateY(0) scale(1); }

/* Variant 2: fly in from far left, spinning */
.reveal-left { transform: translateX(-260px) rotate(-25deg) scale(.6); }
.reveal-left.is-visible { transform: translateX(0) rotate(0deg) scale(1); }

/* Variant 3: fly in from far right, spinning */
.reveal-right { transform: translateX(260px) rotate(25deg) scale(.6); }
.reveal-right.is-visible { transform: translateX(0) rotate(0deg) scale(1); }

/* Variant 4: pop in from nothing, wobbling */
.reveal-zoom { transform: scale(.15) rotate(-14deg); }
.reveal-zoom.is-visible { transform: scale(1) rotate(0deg); }

/* Variant 5: dramatic tilt + drop with overshoot */
.reveal-tilt { transform: translateY(120px) rotate(-18deg) scale(.75); }
.reveal-tilt.is-visible { transform: translateY(0) rotate(0deg) scale(1); }

/* Variant 6: blur-drop with flip */
.reveal-blur { filter: blur(14px); transform: translateY(90px) rotateX(60deg) scale(.8); }
.reveal-blur.is-visible { filter: blur(0); transform: translateY(0) rotateX(0deg) scale(1); }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--cream-50);
  border-radius: var(--radius-md);
  padding: 1.1em 1.4em;
  box-shadow: var(--shadow-soft);
  text-align: center;
  border: 1px solid var(--sage-100);
}
.about-badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--sage-700); }
.about-badge span { font-size: .78rem; color: var(--ink-soft); }
.trait-list {
  list-style: none;
  padding: 0; margin: 1.6em 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8em;
}
.trait-list li {
  background: var(--sage-100);
  color: var(--sage-900);
  font-weight: 600;
  font-size: .92rem;
  padding: .7em 1em;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: .5em;
}
.trait-list li::before { content: '✓'; color: var(--sage-500); font-weight: 700; }

/* ===== Fact row ===== */
.fact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin: 3rem 0 1rem;
}
.fact-card {
  background: var(--cream-50);
  border-radius: var(--radius-md);
  padding: 1.8em 2.4em;
  text-align: center;
  box-shadow: var(--shadow-soft);
  min-width: 190px;
}
.fact-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sage-700);
}
.fact-label { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.feature-card {
  background: var(--cream-50);
  border-radius: var(--radius-md);
  padding: 2em 1.8em;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.feature-icon { font-size: 1.8rem; display: inline-block; margin-bottom: .5em; }
.feature-card h4 { margin-bottom: .3em; font-size: 1.1rem; }
.feature-card p { margin: 0; font-size: .94rem; }

/* ===== Activities / Food split sections ===== */
.activities-grid, .food-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.food-grid .food-media { order: 2; }
.food-grid .food-text { order: 1; }
.activities-media img, .food-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 5/4;
  object-fit: cover;
}
.activities-media img {
  aspect-ratio: 9/16;
  object-position: center center;
}
.activities-media-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.activities-media-duo img {
  aspect-ratio: 3/4;
}
.activities-media-duo img:first-child { margin-top: 2rem; }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .7em;
  margin-top: 1.4em;
}
.tag-cloud span {
  background: var(--honey-200);
  color: var(--sage-900);
  font-size: .85rem;
  font-weight: 600;
  padding: .5em 1.05em;
  border-radius: 999px;
}
.tag-cloud span:nth-child(3n+2) { background: var(--clay-200); }
.tag-cloud span:nth-child(3n) { background: var(--sage-300); color: var(--cream-50); }

/* ===== Timeline (signature element: winding garden path) ===== */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 3.5rem auto 0;
  padding: 1rem 0 1rem 2.4rem;
}
.timeline-path {
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--sage-500) 0 10px,
    transparent 10px 20px
  );
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.3rem;
  padding: .95rem 0;
}
.timeline-dot {
  position: absolute;
  left: -2.4rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream-50);
  border: 3px solid var(--sage-500);
  transform: translateX(11px);
}
.timeline-time {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sage-700);
  min-width: 62px;
}
.timeline-text { color: var(--ink); font-weight: 500; }

/* ===== Gallery ===== */
.gallery-grid {
  margin-top: 2.4rem;
  columns: 2 320px;
  column-gap: 1.4rem;
}
.gallery-grid img {
  width: 100%;
  margin-bottom: 1.4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gallery-grid img:hover { transform: scale(1.02) translateY(-3px); box-shadow: var(--shadow-card); }

/* ===== Contact ===== */
.contact-inner { text-align: center; }
.contact-card {
  max-width: 480px;
  margin: 2.4rem auto 0;
  background: rgba(253,251,245,.06);
  border: 1px solid rgba(253,251,245,.18);
  border-radius: var(--radius-lg);
  padding: 2.6em 2em;
  color: var(--cream-50);
}
.contact-card h3 { color: var(--cream-50); }
.contact-card p { color: rgba(253,251,245,.75); }
.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  margin-top: 1em;
  text-decoration: none;
  color: var(--honey-200);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color .3s var(--ease);
}
.contact-link:hover { color: #fff; }

/* ===== Footer ===== */
.footer {
  background: var(--sage-900);
  border-top: 1px solid rgba(253,251,245,.1);
  padding: 1.8em 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}
.footer p { color: rgba(253,251,245,.6); font-size: .85rem; margin: 0; }
.footer-link {
  color: rgba(253,251,245,.75);
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .3s var(--ease);
}
.footer-link:hover { color: var(--honey-200); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .about-grid, .activities-grid, .food-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .food-grid .food-media, .food-grid .food-text { order: initial; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .activities-media-duo img:first-child { margin-top: 0; }
}

@media (max-width: 720px) {
  .nav-menu {
    position: fixed;
    top: 64px; right: 0;
    height: calc(100vh - 64px);
    width: min(78vw, 300px);
    background: var(--cream-50);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.4rem;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -10px 0 30px rgba(0,0,0,.08);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .feature-grid { grid-template-columns: 1fr; }
  .fact-row { flex-direction: column; align-items: center; }
  .gallery-grid { columns: 1; }
  .about-badge { position: static; margin-top: -30px; margin-left: 20px; display: inline-block; }
}

@media (max-width: 480px) {
  .section { padding: 70px 0; }
  .hero { min-height: 100vh; padding-top: 100px; }
  .gallery-grid { columns: 1; }
}
