/* =========================================================
   Elterninitiative Selbsthilfe e.V. – Stylesheet
   Palette: Salbeigrün (Verein) + warme Akzente (die beiden Häuser)
   ========================================================= */

:root {
  --green:        #2f7d6e;
  --green-dark:   #245c52;
  --green-soft:   #e8f1ee;
  --sun:          #f4c95d;
  --coral:        #e9836b;
  --leaf:         #9ec7a6;

  --ink:          #213631;
  --body:         #46544f;
  --muted:        #6d7b76;
  --line:         #e1e7e4;
  --bg:           #ffffff;
  --bg-tint:      #f5f8f6;

  --radius:       18px;
  --radius-lg:    26px;
  --shadow:       0 18px 40px -24px rgba(33, 54, 49, 0.35);
  --shadow-soft:  0 8px 24px -18px rgba(33, 54, 49, 0.3);

  --maxw:         1120px;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head:    'Fraunces', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink);
}
.brand-text em { font-style: normal; font-size: .78rem; color: var(--green); letter-spacing: .06em; }

.site-nav { display: flex; gap: clamp(.8rem, 2.5vw, 2rem); }
.site-nav a {
  text-decoration: none;
  color: var(--body);
  font-weight: 500;
  font-size: .95rem;
  padding: .3rem .1rem;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .2s ease;
}
.site-nav a:hover::after, .site-nav a:focus::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green);
}
.btn-ghost:hover { background: var(--green-soft); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 460px at 82% -8%, rgba(244, 201, 93, 0.22), transparent 60%),
    radial-gradient(900px 420px at 5% 110%, rgba(158, 199, 166, 0.28), transparent 60%),
    var(--bg-tint);
}
.hero-inner {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  max-width: 820px;
}
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid var(--line);
  padding: .4rem .9rem;
  border-radius: 999px;
  margin: 0 0 1.4rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--body);
  max-width: 60ch;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 5vw, 3rem);
  padding: 0; margin: 0;
}
.hero-stats li {
  font-size: .95rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--green-dark);
  line-height: 1;
}

/* ---------- Section shell ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--bg-tint); }

.kicker {
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 .6rem;
}
.section-title {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  max-width: 22ch;
  margin-bottom: 1.4rem;
}
.section-intro {
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--body);
  margin: 0 0 2.6rem;
}

/* ---------- Verein prose + value cards ---------- */
.prose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem 3rem;
  max-width: 900px;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.prose-grid p { margin: 0; }

.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.value-icon { font-size: 2rem; display: block; margin-bottom: .8rem; }
.value-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.value-card p { margin: 0; color: var(--body); }

/* ---------- Projekte ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}
.project-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(33,54,49,.45); }
.project-malwine::before { background: linear-gradient(90deg, var(--leaf), #c7e0cb); }
.project-schule::before  { background: linear-gradient(90deg, #5b9fc9, #8fc1e0); }

.project-head { margin-bottom: 1rem; }
.project-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.project-malwine .project-badge { background: #eaf4ec; color: #3c7a4e; }
.project-schule  .project-badge { background: #e8f1f8; color: #2d6a93; }
.project-card h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.project-place { margin: 0; color: var(--muted); font-weight: 500; }
.project-body { color: var(--body); margin: 0 0 1.3rem; }

.project-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.8rem; }
.project-tags li {
  font-size: .82rem;
  color: var(--body);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  padding: .3rem .7rem;
  border-radius: 8px;
}
.project-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.project-link span { transition: transform .15s ease; }
.project-link:hover span { transform: translateX(4px); }
.project-schule .project-link { color: #2d6a93; }
.project-malwine .project-link { color: #3c7a4e; }

/* ---------- Zweck / Quote ---------- */
.purpose {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.purpose-text p { font-size: 1.05rem; margin: 0 0 1rem; }
.purpose-quote {
  margin: 0;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
  box-shadow: var(--shadow);
}
.purpose-quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.35;
}
.purpose-quote figcaption { font-size: .9rem; opacity: .85; letter-spacing: .04em; }

/* ---------- Vorstand ---------- */
.board-grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}
.board-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.board-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: .9rem;
  letter-spacing: .03em;
}
.board-card h3 { font-size: 1.12rem; margin-bottom: .15rem; }
.board-card p { margin: 0; color: var(--green); font-weight: 500; font-size: .92rem; }

/* ---------- Fakten ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.fact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sun);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.fact-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.fact-card p { margin: 0; color: var(--body); font-size: .98rem; }

/* ---------- CTA ---------- */
.section-cta {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.cta-text h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.cta-text p { margin: 0; font-size: 1.08rem; opacity: .95; max-width: 46ch; }
.cta-contact {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: .6rem 1.6rem;
}
.contact-row {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.cta-contact .contact-row:last-child { border-bottom: 0; }
.contact-label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.contact-value { font-weight: 600; font-size: 1.08rem; }
a.contact-row:hover .contact-value { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cdd7d3; padding-top: 3rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.15rem; }
.footer-brand p { margin: .5rem 0 0; font-size: .92rem; max-width: 34ch; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: #cdd7d3; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.impressum summary {
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  list-style: none;
}
.impressum summary::-webkit-details-marker { display: none; }
.impressum summary::before { content: "＋ "; color: var(--sun); }
.impressum[open] summary::before { content: "－ "; }
.impressum-body { font-size: .85rem; line-height: 1.55; margin-top: .8rem; }
.impressum-body p { margin: 0 0 .7rem; }

.footer-bottom { padding-block: 1.3rem; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #9aa8a3; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-nav { display: none; }
  .purpose, .cta-inner, .footer-inner { grid-template-columns: 1fr; }
  .footer-inner { gap: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
