/* ============================================
   WURZELKINDER – Stylesheet
   ============================================ */

:root {
  --forest: #2f4a3c;
  --forest-dark: #203327;
  --forest-light: #4a6b57;
  --terracotta: #c46b45;
  --terracotta-dark: #a85634;
  --cream: #faf6ee;
  --sand: #f1e8d8;
  --sand-dark: #e6d9bf;
  --ink: #2b2620;
  --ink-soft: #59524a;
  --white: #ffffff;
  --shadow: 0 20px 50px -25px rgba(43, 38, 32, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  overflow-wrap: break-word;
  hyphens: auto;
}

a { color: inherit; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.section {
  padding: 96px 0;
}

.section--sand {
  background: var(--sand);
}

.section--forest {
  background: var(--forest);
  color: var(--sand);
}

.section--forest h2,
.section--forest h3,
.section--forest .eyebrow {
  color: var(--white);
}

.section--forest p {
  color: #d7e0da;
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47, 74, 60, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-dark);
  text-decoration: none;
}

.brand svg { width: 30px; height: 30px; }

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--terracotta-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(196, 107, 69, 0.6);
}

.btn--primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--forest-dark);
  border: 1.5px solid var(--forest-dark);
}

.btn--ghost:hover {
  background: var(--forest-dark);
  color: var(--white);
}

.nav-cta { display: none; }

@media (min-width: 880px) {
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
}

@media (max-width: 879px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 28px 24px;
    border-bottom: 1px solid rgba(47,74,60,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-links .btn { margin-top: 8px; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 60px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 940px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--forest-dark);
}

.hero-badge span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 26px;
}

.grid > * {
  min-width: 0;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: 0 12px 30px -20px rgba(43,38,32,0.25);
}

.section--forest .card {
  background: rgba(255,255,255,0.06);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.14);
}

.section--forest .card h3 { color: var(--white); }
.section--forest .card p { color: #d7e0da; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.section--forest .icon-badge {
  background: rgba(255,255,255,0.12);
}

.icon-badge svg { width: 22px; height: 22px; }

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.stats > * { min-width: 0; }

.stat {
  text-align: center;
  padding: 34px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px -20px rgba(43,38,32,0.25);
}

.stat .num {
  font-family: "Fraunces", serif;
  font-size: 2.6rem;
  color: var(--terracotta-dark);
  display: block;
  font-weight: 600;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 4px 0 10px;
}

.stat .desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Timeline (Eingewöhnung) */

.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--sand-dark);
}

.timeline-step {
  position: relative;
  padding-bottom: 40px;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-step::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--cream);
}

.timeline-step .step-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* People / Über uns */

.people {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.people > * { min-width: 0; }

.person-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: 0 12px 30px -20px rgba(43,38,32,0.25);
}

.person-card .role {
  font-size: 0.82rem;
  color: var(--terracotta-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}

.about-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Quote */

.quote-block {
  border-left: 4px solid var(--terracotta);
  padding-left: 24px;
  margin: 40px 0;
}

.quote-block p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--forest-dark);
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 12px 30px -20px rgba(43,38,32,0.25);
}

.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-line svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--terracotta-dark);
}

.contact-line a {
  color: var(--forest-dark);
  text-decoration: none;
  font-weight: 600;
}

.contact-line a:hover { color: var(--terracotta-dark); }

.map-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 260px;
}

.map-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */

.site-footer {
  background: var(--forest-dark);
  color: #cdd8d0;
  padding: 50px 0 30px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}

.footer-brand {
  font-family: "Fraunces", serif;
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cdd8d0;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #9fb0a5;
}

/* Legal pages */

.legal-page {
  padding: 60px 0 100px;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h2 {
  margin-top: 2em;
}

.legal-page h2:first-of-type { margin-top: 0; }

.legal-page p, .legal-page li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.legal-page a { color: var(--terracotta-dark); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-weight: 600;
  color: var(--forest-dark);
  text-decoration: none;
}

/* Utility */

.text-center { text-align: center; }
.mt-lg { margin-top: 60px; }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
}
