/* =========================================================
   St. Michael Kindergarten – Stylesheet
   Naturnahes, warmes Design · Moosgrün + Wiese/Himmel/Sonne
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --creme:      #FBF7EE;
  --creme-2:    #F3ECDB;
  --moos:       #35663F;
  --moos-tief:  #284E30;
  --wiese:      #8FBF5A;
  --wiese-hell: #C9E3A3;
  --himmel:     #5FB0D4;
  --himmel-hell:#C2E6F2;
  --sonne:      #F6C24B;
  --mohn:       #E8704F;
  --erde:       #2C3A2C;
  --erde-soft:  #56654F;
  --weiss:      #ffffff;

  --schrift-display: 'Fredoka', system-ui, sans-serif;
  --schrift-body: 'Nunito Sans', system-ui, sans-serif;

  --radius-s: 14px;
  --radius-m: 24px;
  --radius-l: 36px;

  --schatten-weich: 0 18px 40px -22px rgba(40, 78, 48, .45);
  --schatten-karte: 0 14px 30px -20px rgba(40, 78, 48, .35);

  --max: 1180px;
  --pad: clamp(1.2rem, 4vw, 2.4rem);
}

/* ---------- Reset / Basis ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--schrift-body);
  color: var(--erde);
  background: var(--creme);
  line-height: 1.7;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--moos); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--mohn); }

h1, h2, h3, h4, h5 {
  font-family: var(--schrift-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--moos-tief);
  margin: 0 0 .5em;
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--schrift-display);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--mohn);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px; border-radius: 3px;
  background: var(--sonne);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--mohn);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(232,112,79,.8);
}
.btn-primary:hover { background: #d85f3f; color:#fff; transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.85);
  color: var(--moos-tief);
  box-shadow: var(--schatten-karte);
}
.btn-ghost:hover { color: var(--moos-tief); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251,247,238,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px -20px rgba(40,78,48,.6); background: rgba(251,247,238,.95); }

.nav {
  max-width: var(--max);
  margin-inline: auto;
  padding: .7rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 58px; width: auto; }
.brand-text { font-family: var(--schrift-display); font-weight: 600; color: var(--moos-tief); line-height: 1.05; }
.brand-text small { display:block; font-size: .68rem; letter-spacing:.12em; text-transform: uppercase; color: var(--wiese); font-weight:700;}

.nav-list { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.nav-list > li > a {
  font-family: var(--schrift-display);
  font-weight: 500;
  color: var(--moos-tief);
  padding: .55rem .9rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: background .2s ease, color .2s ease;
}
.nav-list > li > a:hover,
.nav-list > li > a.active { background: var(--wiese-hell); color: var(--moos-tief); }

/* Dropdown */
.has-sub { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--schatten-weich);
  padding: .5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block;
  padding: .6rem .85rem;
  border-radius: 14px;
  font-family: var(--schrift-display);
  font-weight: 500;
  color: var(--moos-tief);
}
.submenu a:hover { background: var(--creme-2); color: var(--mohn); }
.caret { font-size:.7rem; opacity:.7; }

.nav-cta { margin-left: .4rem; }

.burger {
  display: none;
  background: var(--wiese-hell);
  border: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
}
.burger span { display:block; width: 22px; height: 2.4px; background: var(--moos-tief); margin: 4px auto; border-radius: 3px; transition: .25s; }
.burger.open span:nth-child(1){ transform: translateY(6.4px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-6.4px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    background: var(--creme);
    box-shadow: -20px 0 60px -30px rgba(0,0,0,.4);
    padding: 5.5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,.0,.2,1);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-list > li > a { font-size: 1.15rem; padding: .7rem 1rem; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; padding: .2rem 0 .4rem 1.1rem; min-width: 0;
  }
  .submenu a { padding: .45rem .6rem; }
  .nav-cta { margin: .8rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .caret { display:none; }
  body.menu-open { overflow: hidden; }
}
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(40,78,48,.4);
  opacity: 0; visibility: hidden; transition: .3s; z-index: 55;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(95,176,212,.20), transparent 55%),
    radial-gradient(110% 80% at 0% 30%, rgba(143,191,90,.22), transparent 50%),
    var(--creme);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .35em;
}
.hero h1 .akzent { color: var(--mohn); }
.hero p.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--erde-soft);
  max-width: 30ch;
  margin: 0 0 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-media { position: relative; }
.blob-img {
  position: relative;
  border-radius: 47% 53% 58% 42% / 52% 44% 56% 48%;
  overflow: hidden;
  box-shadow: var(--schatten-weich);
  aspect-ratio: 1/1;
  background: var(--wiese-hell);
  rotate: -3deg;
}
.blob-img img { width:100%; height:100%; object-fit: cover; }

/* schwebende Deko */
.deko { position: absolute; z-index: 1; pointer-events: none; }
.cube { width: 46px; height: 46px; border-radius: 12px; transform: rotate(18deg); box-shadow: var(--schatten-karte); }
.cube.gruen { background: var(--wiese); }
.cube.blau  { background: var(--himmel); }
.cube.gelb  { background: var(--sonne); }
.dot { border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 6s ease-in-out infinite; }
  .float.s2 { animation-duration: 7.5s; animation-delay: -2s; }
  .float.s3 { animation-duration: 8.5s; animation-delay: -1s; }
}
@keyframes float { 0%,100%{ transform: translateY(0) rotate(18deg);} 50%{ transform: translateY(-14px) rotate(10deg);} }

/* Wiesen-Welle unten am Hero */
.wave-bottom { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.wave-bottom svg { width: 100%; height: auto; display: block; }

/* =========================================================
   Sektionen allgemein
   ========================================================= */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section.creme2 { background: var(--creme-2); }
.section.gruen {
  background: linear-gradient(180deg, var(--moos), var(--moos-tief));
  color: #eef5ec;
}
.section.gruen h1, .section.gruen h2, .section.gruen h3 { color: #fff; }
.section.gruen .eyebrow { color: var(--sonne); }
.section.gruen a { color: var(--wiese-hell); }

.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head p { color: var(--erde-soft); font-size: 1.1rem; margin: .4rem 0 0; }
.section.gruen .section-head p { color: #d8e6d4; }

/* Inhaltsbreite für Fließtext */
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.1rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin: .3rem 0; }

/* =========================================================
   Karten / Raster
   ========================================================= */
.grid { display: grid; gap: 1.5rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 1.7rem;
  box-shadow: var(--schatten-karte);
  transition: transform .22s ease, box-shadow .22s ease;
  border: 1px solid rgba(53,102,63,.06);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--schatten-weich); }
.card .icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 18px;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.card p { margin: 0; color: var(--erde-soft); font-size: 1rem; }

.tint-wiese { background: var(--wiese-hell); }
.tint-himmel{ background: var(--himmel-hell); }
.tint-sonne { background: #FCE9B8; }
.tint-mohn  { background: #F8D5C9; }

/* Link-Karte */
.linkcard { display:flex; flex-direction:column; gap:.2rem; text-decoration: none; color: inherit; }
.linkcard .more { margin-top: 1rem; font-family: var(--schrift-display); font-weight:600; color: var(--mohn); display:inline-flex; gap:.4rem; align-items:center; }
.linkcard:hover .more .arrow { transform: translateX(4px); }
.linkcard .more .arrow { transition: transform .2s ease; }

/* =========================================================
   Feature-Zeilen (Bild + Text)
   ========================================================= */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(3rem, 6vw, 5rem); }
.feature.flip .feature-media { order: 2; }
.feature-media .blob-img { rotate: 2deg; aspect-ratio: 4/3; border-radius: 54% 46% 47% 53% / 47% 52% 48% 53%; }
.feature.flip .feature-media .blob-img { rotate: -2deg; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* =========================================================
   Öffnungszeiten
   ========================================================= */
.hours-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.hour-card {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 1.4rem;
  box-shadow: var(--schatten-karte);
  border-top: 5px solid var(--wiese);
}
.hour-card:nth-child(2){ border-top-color: var(--himmel); }
.hour-card:nth-child(3){ border-top-color: var(--sonne); }
.hour-card:nth-child(4){ border-top-color: var(--mohn); }
.hour-card h4 { font-size: 1.05rem; margin-bottom: .15rem; }
.hour-card .std { font-size: .82rem; color: var(--erde-soft); font-weight: 700; letter-spacing:.04em; text-transform: uppercase; }
.hour-card .times { margin-top: .7rem; font-size: .98rem; color: var(--erde); }

/* =========================================================
   Galerie
   ========================================================= */
.gallery { columns: 3 240px; column-gap: 1.1rem; }
.gallery figure {
  margin: 0 0 1.1rem;
  break-inside: avoid;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--schatten-karte);
  position: relative;
}
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .9rem 1rem .7rem;
  background: linear-gradient(transparent, rgba(40,78,48,.78));
  color: #fff; font-family: var(--schrift-display); font-weight: 600; font-size: .95rem;
}

/* Gruppen-Badges */
.group-pills { display:flex; flex-wrap:wrap; gap:.8rem; }
.group-pill {
  display:inline-flex; align-items:center; gap:.6rem;
  background:#fff; border-radius: 100px; padding: .7rem 1.3rem .7rem .7rem;
  box-shadow: var(--schatten-karte); font-family: var(--schrift-display); font-weight: 600; color: var(--moos-tief);
}
.group-pill .em { width: 42px; height: 42px; border-radius: 50%; display:grid; place-items:center; font-size: 1.4rem; }
.group-pill small { display:block; font-family: var(--schrift-body); font-weight: 600; color: var(--erde-soft); font-size: .8rem; }

/* =========================================================
   Quote
   ========================================================= */
.quote-band {
  text-align: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(246,194,75,.18), transparent 60%),
    var(--creme-2);
}
.quote-band blockquote {
  font-family: var(--schrift-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  color: var(--moos-tief);
  max-width: 18ch;
  margin: 0 auto .6rem;
}
.quote-band cite { color: var(--erde-soft); font-style: normal; font-size: 1rem; }
.quote-band .leaf { font-size: 2rem; }

/* =========================================================
   Kontakt
   ========================================================= */
.contact-grid { display:grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,5vw,3.5rem); align-items:start; }
.contact-item { display:flex; gap: 1rem; align-items:flex-start; margin-bottom: 1.3rem; }
.contact-item .ic { width: 50px; height: 50px; border-radius: 16px; display:grid; place-items:center; font-size: 1.4rem; flex: none; }
.contact-item strong { display:block; font-family: var(--schrift-display); color: var(--moos-tief); }
.contact-item a, .contact-item span { color: var(--erde-soft); }

.form-card { background:#fff; border-radius: var(--radius-l); padding: clamp(1.5rem,3vw,2.4rem); box-shadow: var(--schatten-weich); }
.field { margin-bottom: 1.1rem; }
.field label { display:block; font-family: var(--schrift-display); font-weight: 500; margin-bottom: .35rem; color: var(--moos-tief); }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 14px;
  border: 2px solid var(--creme-2); background: var(--creme);
  font-family: var(--schrift-body); font-size: 1rem; color: var(--erde);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--wiese); background:#fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.req { color: var(--mohn); }

.map-embed { border-radius: var(--radius-l); overflow:hidden; box-shadow: var(--schatten-karte); border: 6px solid #fff; }
.map-embed iframe { width:100%; height: 380px; border:0; display:block; }

.partner-row { display:flex; flex-wrap:wrap; gap: 1rem; }
.partner-row a {
  background:#fff; border-radius: 100px; padding:.7rem 1.4rem; box-shadow: var(--schatten-karte);
  font-family: var(--schrift-display); font-weight: 600;
}

/* =========================================================
   Seiten-Hero (Unterseiten)
   ========================================================= */
.page-hero {
  position: relative;
  padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(3.4rem, 7vw, 5rem);
  background:
    radial-gradient(100% 120% at 90% 0%, rgba(95,176,212,.18), transparent 55%),
    radial-gradient(90% 100% at 0% 0%, rgba(143,191,90,.20), transparent 50%),
    var(--creme);
  overflow: hidden;
}
.page-hero .crumbs { font-family: var(--schrift-display); font-weight:600; font-size:.85rem; color: var(--erde-soft); margin-bottom:.6rem; }
.page-hero .crumbs a { color: var(--mohn); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; }
.page-hero p { color: var(--erde-soft); font-size: 1.15rem; max-width: 56ch; margin:.4rem 0 0; }

/* =========================================================
   PDF / Hinweis-Box
   ========================================================= */
.notice {
  background: var(--himmel-hell);
  border-radius: var(--radius-m);
  padding: 1.3rem 1.5rem;
  display:flex; gap:1rem; align-items:flex-start;
  font-size: .98rem;
}
.notice .ic { font-size: 1.5rem; }

.download-link {
  display:inline-flex; align-items:center; gap:.6rem;
  background: var(--sonne); color: var(--moos-tief);
  padding:.8rem 1.4rem; border-radius:100px; font-family: var(--schrift-display); font-weight:600;
  box-shadow: 0 12px 24px -14px rgba(246,194,75,.9);
}
.download-link:hover { color: var(--moos-tief); transform: translateY(-2px); }

/* Legal-Text */
.legal h3 { margin-top: 2rem; font-size: 1.2rem; }
.legal { max-width: 75ch; }
.legal address { font-style: normal; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: linear-gradient(180deg, var(--moos-tief), #20401f);
  color: #d6e4d2;
  padding: clamp(3rem,6vw,4.5rem) 0 1.5rem;
  position: relative;
}
.footer-grid { display:grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { color:#fff; font-size: 1.05rem; letter-spacing:.04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color:#d6e4d2; }
.site-footer a:hover { color: var(--sonne); }
.footer-brand { display:flex; align-items:center; gap:.8rem; margin-bottom: 1rem; }
.footer-brand img { height: 64px; background:#fff; border-radius: 16px; padding:.3rem; }
.foot-hours li { list-style:none; margin-bottom:.6rem; }
.foot-hours { padding:0; margin:0; }
.foot-hours strong { color:#fff; font-family: var(--schrift-display); }
.foot-list { list-style:none; padding:0; margin:0; }
.foot-list li { margin-bottom:.5rem; }
.foot-contact p { margin:.2rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 2.5rem; padding-top: 1.4rem;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:.8rem;
  font-size:.9rem; color:#a9c0a4;
}
.footer-bottom a { color:#a9c0a4; }

/* =========================================================
   Scroll-Reveal
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-media { max-width: 420px; margin: 0 auto; }
  .feature, .contact-grid { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2 160px; }
}
@media (max-width: 480px) {
  .hours-grid { grid-template-columns: 1fr; }
}
