/* ═══════════════════════════════════════════════════════════════
   Kinderladen Eichkatzweg – site stylesheet
   Fonts: Georgia (headings) · Arial (body) – no web font requests
   ═══════════════════════════════════════════════════════════════ */

/* ── Colour palette ─────────────────────────────────────────────── */
:root {
  --green:        #3d6e55;   /* hand-drawn title colour             */
  --green-dark:   #2c5240;   /* nav hover / active                  */
  --green-light:  #eef5f0;   /* light section tint                  */
  --amber:        #b8722a;   /* warm CTA accent                     */
  --amber-light:  #fdf3e7;
  --page-bg:      rgb(189, 207, 210);
  --card-bg:      #ffffff;
  --nav-bg:       rgb(227, 224, 218);
  --nav-sep:      rgba(255, 255, 255); /* nav separator line colour */
  --text:         #222;
  --text-muted:   #4a4a42;
  --content-w:    820px;
  --pad:          1.5rem;
  --nav-h:        46px;

  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: Arial, Helvetica, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ───────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: push footer to bottom when content is short */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a       { color: var(--green); }
a:hover { color: var(--green-dark); }
img     { display: block; max-width: 100%; height: auto; }

/* ── Prose lists (Datenschutz, legal pages) ─────────────────────── */
main ul, main ol {
  padding-left: 1.75rem;
  margin-bottom: 1rem;
}

main li {
  margin-bottom: 0.35rem;
}

/* ── Headings ───────────────────────────────────────────────────── */
h1, h2 { font-family: var(--font-head); }

h1 {
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: bold;
  color: var(--green);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--green-dark);
  margin: 1.5rem 0 0.5rem;
}

p { margin-bottom: 1rem; }

/* ── Site card (centred white column) ───────────────────────────── */
.site-card {
  max-width: var(--content-w);
  margin: 0 auto;
  background: var(--card-bg);
  box-shadow: 0 2px 28px rgba(0,0,0,0.10);
  flex: 1; /* grow to push footer down */
  width: 100%;
}

/* ── Illustrated header ─────────────────────────────────────────── */
.site-header {
  /* Gradient matches the vignette baked into the image itself */
  background: linear-gradient(to bottom, #d8d8d6 0%, #f2f2f0 8%, #f2f2f0 92%, #d8d8d6 100%);
  line-height: 0; /* remove gap below inline image */
}
.site-header a   { display: block; line-height: 0; }
.site-header img { width: 100%; height: auto; }

/* ── Navigation ─────────────────────────────────────────────────── */
.site-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 2px solid #b0aca4;
}

.nav-inner {
  display: flex;
  align-items: stretch;
  height: var(--nav-h);
}

.nav-links    { list-style: none; display: flex; flex: 1; }

.nav-links li {
  display: flex;
  position: relative; /* needed for the ::before separator */
}

/* Vertical separator between nav items.
   3 px wide · inset 8 px from top and bottom so it doesn't
   run the full height of the bar.                              */
.nav-links li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--nav-sep);
  border-radius: 2px;
  pointer-events: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--green-dark);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: normal;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(0,0,0,0.07);
  color: var(--green);
}

/* ── Hamburger button (hidden on desktop) ───────────────────────── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 52px;
  padding: 0 15px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px)  rotate(45deg);  }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Main content area ──────────────────────────────────────────── */
main { padding: 2rem var(--pad) 2.5rem; }

/* ── Freie Plätze CTA banner ────────────────────────────────────── */
.cta-banner {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--amber-light);
  border: 2px solid var(--amber);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
}
.cta-banner__emoji { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 3px; }
.cta-banner h2     { font-size: 1.1rem; color: var(--amber); margin: 0 0 0.2rem; }
.cta-banner p      { font-size: 1rem; margin-bottom: 0.65rem; }

.cta-btn {
  display: inline-block;
  background: var(--amber);
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.38rem 0.95rem;
  border-radius: 5px;
  transition: background 0.15s;
}
.cta-btn:hover { background: #935a20; }

/* ── Side-by-side text + photo (desktop) ────────────────────────── */
.content-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.content-row .intro { flex: 1 1 0; min-width: 0; }

.hero-photo {
  flex: 0 0 42%;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  align-self: flex-start;
}
.hero-photo img { width: 100%; height: auto; display: block; }

/* ── BFD aside ──────────────────────────────────────────────────── */
.bfd {
  margin-top: 1.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 6px 6px 0;
  font-size: 1rem;
  color: var(--text-muted);
}
.bfd strong { display: block; font-weight: bold; color: var(--green-dark); margin-bottom: 0.2rem; }
.bfd a      { color: var(--green); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--nav-bg);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.85rem var(--pad);
}
.footer-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.footer-links        { display: flex; gap: 1.25rem; }
.site-footer a       { color: var(--text-muted); text-decoration: underline; }
.site-footer a:hover { color: var(--green-dark); }

/* ── Accessibility ──────────────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }

/* ── Mobile (≤ 600 px) ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-card  { margin: 0; box-shadow: none; }
  .nav-toggle { display: flex; }

  /* Hide desktop separators in the mobile drawer */
  .nav-links li + li::before { display: none; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--nav-bg);
    border-top: 1px solid rgba(0,0,0,0.10);
    padding: 0.3rem 0 0.75rem;
    z-index: 200;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { height: auto; padding: 0.75rem 1.5rem; font-size: 0.9rem; }

  /* Stack photo below text on small screens */
  .content-row { flex-direction: column; }
  .hero-photo  { flex: none; width: 100%; }
}

@media print {
  .site-nav, .nav-toggle, .cta-btn { display: none; }
}

/* ── Photo grid (fotos.html) ────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.photo-grid figure { margin: 0; }
.photo-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.photo-grid figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-align: center;
}

/* ── Nature photo strip (konzept.html) ──────────────────────────── */
.nature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.nature-strip img {
  flex: 1 1 140px;
  max-width: 190px;
  height: 130px;
  object-fit: cover;
  border-radius: 5px;
}

/* ── Address block (kontakt.html) ───────────────────────────────── */
.address-block {
  font-style: normal;
  line-height: 2.1;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 6px 6px 0;
  display: inline-block;
}
.address-block a { color: var(--green); }

/* ── Legal / Impressum pages ────────────────────────────────────── */
.legal ol {
  margin: 0.5rem 0 1.25rem 1.75rem;
}
.legal ol li {
  margin-bottom: 0.6rem;
}
.legal p {
  margin-bottom: 1rem;
}

/* ── Wochenablauf list (konzept.html) ───────────────────────────── */
.week-list {
  list-style: none;
  margin: 0.5rem 0 1.25rem;
  padding: 0;
}
.week-list li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--green-light);
}
.week-list li::before {
  content: '🌲';
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}

/* ── Page illustration ───────────────────────────── */

.page-illustration {
  margin: 2.5rem auto 1rem;
  display: flex;
  justify-content: center;
}

.page-illustration img {
  max-width: 260px;
  height: auto;
}
