/* =========================================================
   Naturfreunde Heede e.V. – Stylesheet
   Farbwelt aus dem Vereinslogo: Creme, Honiggelb, Braun
   ========================================================= */

:root {
  --cream:        #fbf4e3;
  --cream-deep:   #f4e8cd;
  --paper:        #fffdf7;
  --ink:          #3b2d21;
  --ink-soft:     #6a5844;
  --honey:        #efb94a;
  --honey-dark:   #d69626;
  --leaf:         #6f8f4e;
  --wing:         #e2edee;
  --line:         #e6d8bb;

  --radius:       18px;
  --radius-lg:    26px;
  --shadow:       0 18px 40px -24px rgba(59, 45, 33, 0.45);
  --wrap:         1080px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--honey-dark); }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 1rem; left: 1rem;
  width: auto; height: auto;
  clip: auto;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}

:focus-visible {
  outline: 3px solid var(--honey-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 12px 24px -12px rgba(214, 150, 38, 0.8);
}
.btn-primary:hover {
  background: var(--honey-dark);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 2px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  /* eigene Compositor-Ebene -> kein Flackern beim Scrollen */
  transform: translateZ(0);
  will-change: transform;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  border-radius: 12px;
  width: 56px;
  height: 56px;
  object-fit: cover;
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
}

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  border-color: var(--honey);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after  { top: 7px; }

body.nav-open .nav-toggle-bar { background: transparent; }
body.nav-open .nav-toggle-bar::before { transform: translateX(-50%) rotate(45deg); top: 0; }
body.nav-open .nav-toggle-bar::after  { transform: translateX(-50%) rotate(-45deg); top: 0; }

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 82% 12%, rgba(239, 185, 74, 0.32), transparent 70%),
    radial-gradient(50% 50% at 8% 90%, rgba(111, 143, 78, 0.16), transparent 70%),
    var(--cream);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.5rem, 9vw, 6rem);
}

.hero-inner { max-width: 640px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 0.35em; }

.mark {
  position: relative;
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.08em;
  height: 0.42em;
  background: var(--honey);
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1.5deg);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-bee {
  position: absolute;
  right: clamp(-40px, 2vw, 60px);
  top: clamp(40px, 8vw, 90px);
  width: clamp(140px, 22vw, 260px);
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-16px) rotate(2deg); }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.section-alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--honey-dark);
  margin-bottom: 0.6rem;
}
.kicker-dark { color: var(--cream-deep); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ---------- Facts ---------- */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.facts li {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: grid;
  gap: 0.2rem;
}
.facts-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--honey-dark);
  line-height: 1;
}
.facts-label { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Project cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.section-alt .card { background: var(--cream); }
.card:hover { transform: translateY(-4px); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--honey);
  color: var(--ink);
  margin-bottom: 1rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--ink-soft); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.step {
  border-top: 3px solid var(--honey);
  padding-top: 1.1rem;
}
.step-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--honey-dark);
}
.step h3 { margin: 0.2rem 0 0.35rem; }
.step p { color: var(--ink-soft); margin: 0; }

.center-note {
  margin-top: 2.4rem;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Donate ---------- */

.donate {
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(135deg, var(--ink), #5a4531);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}
.donate h2 { color: var(--cream); }
.donate p { color: rgba(251, 244, 227, 0.82); }

.donate-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(251, 244, 227, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.donate-box h3 { color: var(--honey); margin-bottom: 0.9rem; }
.donate-box dl { margin: 0; display: grid; gap: 0.7rem; }
.donate-box dl > div { display: grid; gap: 0.1rem; }
.donate-box dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(251, 244, 227, 0.6);
}
.donate-box dd { margin: 0; font-weight: 600; }

/* ---------- Kontakt ---------- */

.contact-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-list li { display: grid; gap: 0.15rem; }
.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 700;
}

.contact-card {
  background: var(--honey);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  align-self: start;
}
.contact-card p {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(251, 244, 227, 0.82);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.footer-inner {
  display: grid;
  gap: 1.6rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 1.15rem;
}
.footer-brand img { border-radius: 10px; width: 48px; height: 48px; object-fit: cover; }

.footer-impressum h2 {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.footer-impressum p { color: rgba(251, 244, 227, 0.72); font-size: 0.95rem; }
.footer-impressum em { color: rgba(251, 244, 227, 0.5); }

.footer-copy {
  border-top: 1px solid rgba(251, 244, 227, 0.18);
  padding-top: 1.4rem;
  font-size: 0.9rem;
  color: rgba(251, 244, 227, 0.6);
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .grid-2,
  .donate { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform 0.28s ease;
    padding: 1rem 0 1.4rem;
  }
  body.nav-open .site-nav { transform: translateY(0); }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 0.9rem 0; }
}

/* Sobald es eng wird: Biene über den Text setzen statt daneben/darüber */
@media (max-width: 960px) {
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero-bee {
    position: static;
    order: -1;
    width: 132px;
    margin: 0 0 1.4rem;
    right: auto;
    top: auto;
    animation-duration: 5s;
  }
}

@media (max-width: 680px) {
  .hero-bee {
    width: 112px;
    align-self: center;
  }
}

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