/* ============================================================
   Waldkindergarten Ilmmünster e.V. – Stylesheet
   Design: cineastisch-dunkel (Waldgrün) × warme Logo-Farbwelt
   ============================================================ */

:root {
  --wald-950: #101b14;
  --wald-900: #16241b;
  --wald-800: #1e3226;
  --wald-700: #2a4634;
  --wald-600: #3a6247;
  --wald-500: #4c7d5b;
  --blatt-400: #8fbf4d;
  --sonne-400: #f0b62f;
  --sonne-300: #f5c95e;
  --orange-500: #e0762a;
  --orange-400: #e8893f;
  --creme-50: #fdfbf6;
  --creme-100: #f8f3e9;
  --creme-200: #efe7d7;
  --ink-900: #24211b;
  --ink-600: #5c564a;

  --text-hi: #ffffff;
  --text-mid: rgb(255 255 255 / .84);
  --text-low: rgb(255 255 255 / .68);
  --line: rgb(255 255 255 / .14);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  --radius: 14px;
  --maxw: 1240px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--wald-900);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: inherit; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }

strong { color: var(--text-hi); font-weight: 800; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: 860px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- Skip-Link ---------- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--sonne-400); color: var(--ink-900); padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 800; }
.skip-link:focus { left: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
.nav.solid { background: rgb(16 27 20 / .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1.6rem; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: #fff; min-width: 0; }
.nav-logo img { width: 50px; height: auto; filter: drop-shadow(0 2px 8px rgb(0 0 0 / .4)); }
.nav-logo span { white-space: nowrap; }
.nav-links { display: flex; gap: 1.35rem; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .97rem; color: rgb(255 255 255 / .86); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--sonne-300); }
.nav-links .btn { padding: .55rem 1.25rem; font-size: .95rem; color: #fff; }
.nav-links .btn:hover { color: #fff; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: #fff; border-radius: 2px; margin: 5.5px 0; transition: transform .25s ease, opacity .25s ease; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--wald-950);
    padding: .5rem 1.25rem 1.5rem;
    box-shadow: 0 24px 40px rgb(0 0 0 / .4);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav.open { background: var(--wald-950); }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; padding: .85rem 1.7rem; border-radius: 999px;
  border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--orange-500); color: #fff; }
.btn-primary:hover { background: var(--orange-400); box-shadow: 0 8px 24px rgb(224 118 42 / .32); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgb(255 255 255 / .55); background: transparent; color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / .07); transform: translateY(-2px); }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: end; overflow: hidden; }
.hero video, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(22 36 27 / .38) 0%, rgb(22 36 27 / 0) 35%, rgb(22 36 27 / .82) 88%, var(--wald-900) 100%); }
.hero-content { position: relative; z-index: 2; padding-block: 0 clamp(3rem, 8vh, 5.5rem); max-width: 740px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); color: #fff; }
.hero p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: rgb(255 255 255 / .92); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

/* ---------- Unterseiten-Kopf ---------- */
.page-head { position: relative; padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vh, 5rem)); padding-bottom: clamp(2rem, 5vh, 3.5rem); overflow: hidden; }
.page-head.with-img { min-height: 62dvh; display: grid; align-items: end; padding-top: var(--nav-h); }
.page-head.with-img .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head.with-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(22 36 27 / .45) 0%, rgb(22 36 27 / .15) 45%, rgb(22 36 27 / .88) 90%, var(--wald-900) 100%); }
.page-head .wrap { position: relative; z-index: 2; }
.page-head p.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--text-mid); max-width: 42rem; }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3.5rem, 8vh, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 6vh, 4rem); }
.section h2 { max-width: 24ch; }
.section .lead { font-size: 1.15rem; color: var(--text-mid); max-width: 46rem; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split img { border-radius: var(--radius); object-fit: cover; width: 100%; box-shadow: 0 24px 60px rgb(0 0 0 / .45); }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } }

.facts { border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2.2rem; }
.fact b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; color: var(--sonne-300); }
.fact span { font-size: .95rem; color: var(--text-low); }
@media (max-width: 760px) { .facts-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; } }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.cards-3 img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 1.1rem; width: 100%; }
.cards-3 h3 { color: var(--sonne-300); }
.cards-3 p { color: var(--text-low); font-size: 1rem; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } .cards-3 img { aspect-ratio: 16 / 8; } }

.link-inline { color: var(--sonne-300); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgb(240 182 47 / .4); }
.link-inline:hover { border-color: var(--sonne-300); }

/* Bild-Band (full-bleed) */
.band { position: relative; }
.band img, .band video { width: 100%; height: clamp(320px, 55vh, 560px); object-fit: cover; display: block; }
.band-video { overflow: hidden; }

/* Zitat/Betonung */
.callout { border-left: 4px solid var(--sonne-400); background: rgb(255 255 255 / .05); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.3rem 1.6rem; margin-block: 1.6rem; }
.callout p:last-child { margin-bottom: 0; }

/* Timeline (Ein Tag im Wald) */
.tl { border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 130px minmax(0, 4fr) minmax(0, 7fr); gap: 1.4rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.tl-row b { font-family: var(--font-display); font-size: 1.3rem; color: var(--sonne-300); font-weight: 700; }
.tl-row h3 { margin: 0; }
.tl-row p { margin: 0; color: var(--text-low); }
@media (max-width: 760px) { .tl-row { grid-template-columns: 90px 1fr; } .tl-row p { grid-column: 2; } }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--text-hi); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--sonne-300); flex: 0 0 auto; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 0 1.3rem; color: var(--text-mid); max-width: 60rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.team-card { background: rgb(255 255 255 / .05); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.7rem; }
.team-card h3 { color: var(--sonne-300); margin-bottom: .2em; }
.team-card .role { color: var(--text-low); font-size: .95rem; margin-bottom: .8em; }
.team-card p { margin-bottom: 0; color: var(--text-mid); }
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }

/* Preis-/Kategorienkarten */
.tarif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tarif { background: rgb(255 255 255 / .05); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.tarif.highlight { border-color: rgb(240 182 47 / .55); background: rgb(240 182 47 / .07); }
.tarif h3 { margin-bottom: .1em; }
.tarif .zeit { color: var(--text-low); font-size: .95rem; }
.tarif .preis { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--sonne-300); margin-block: .5rem .2rem; }
.tarif .per { color: var(--text-low); font-size: .9rem; }
@media (max-width: 860px) { .tarif-grid { grid-template-columns: 1fr; } }

/* Formulare */
.form { display: grid; gap: 1.15rem; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem 1.5rem; margin: 0; display: grid; gap: 1.1rem; }
.form legend { font-family: var(--font-display); font-weight: 600; color: var(--sonne-300); padding-inline: .4rem; font-size: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .95rem; color: var(--text-hi); }
.field .hint { font-size: .85rem; color: var(--text-low); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 10px;
  border: 1.5px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .06);
  color: #fff; font: inherit;
}
.field input::placeholder, .field textarea::placeholder { color: rgb(255 255 255 / .45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2.5px solid var(--sonne-400); outline-offset: 1px; border-color: transparent; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23f5c95e' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
.field select option { color: var(--ink-900); background: #fff; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--text-mid); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--orange-500); flex: 0 0 auto; }
.form-error { background: rgb(200 60 40 / .18); border: 1.5px solid rgb(230 110 90 / .6); color: #ffd9d0; border-radius: 10px; padding: .9rem 1.1rem; }
.form-ok { background: rgb(143 191 77 / .14); border: 1.5px solid rgb(143 191 77 / .5); color: #e2f3c8; border-radius: 10px; padding: .9rem 1.1rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Termine */
.termine-list { display: grid; gap: .9rem; }
.termin { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: baseline; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; }
.termin b { font-family: var(--font-display); color: var(--sonne-300); font-size: 1.05rem; }
.termin span { color: var(--text-mid); }
@media (max-width: 560px) { .termin { grid-template-columns: 1fr; gap: .2rem; } }

/* Downloads */
.dl-list { display: grid; gap: .9rem; max-width: 720px; }
.dl { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.3rem; text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.dl:hover { border-color: rgb(240 182 47 / .6); background: rgb(255 255 255 / .04); }
.dl b { font-family: var(--font-display); color: var(--text-hi); font-weight: 600; }
.dl small { display: block; color: var(--text-low); }
.dl .tag { flex: 0 0 auto; font-size: .85rem; font-weight: 800; color: var(--sonne-300); }

/* CTA-Band */
.cta-band { background: linear-gradient(160deg, var(--wald-800), var(--wald-700)); border-block: 1px solid var(--line); padding-block: clamp(3.5rem, 8vh, 6rem); text-align: center; }
.cta-band h2 { margin-inline: auto; }
.cta-band p { max-width: 44rem; margin-inline: auto; }
.cta-band .tel { margin-top: 1.4rem; font-size: .98rem; color: var(--text-low); }
.cta-band .tel a { color: var(--sonne-300); font-weight: 700; text-decoration: none; }

/* ---------- Footer ---------- */
footer { background: var(--wald-950); padding-block: 3rem 2rem; font-size: .95rem; color: var(--text-low); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.footer-grid h4 { font-size: 1rem; color: var(--text-hi); margin-bottom: .7em; }
.footer-grid a { color: var(--text-low); text-decoration: none; }
.footer-grid a:hover { color: var(--sonne-300); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45em; }
.footer-logo { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-logo img { width: 64px; }
.footer-logo b { font-family: var(--font-display); color: var(--text-hi); font-size: 1.1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.4rem; font-size: .88rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sonstiges ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
