/* =========================================================
   Naturfreunde Heede e.V. – Stylesheet
   Basis: Creme, Honiggelb, Braun (aus dem Vereinslogo)
   Akzente: Wiesen-Bunt – Pink, Himmelblau, Wiesengrün, Violett
   ========================================================= */

:root {
  --cream:        #fbf4e3;
  --cream-deep:   #f4e8cd;
  --paper:        #fffdf7;
  --ink:          #3b2d21;
  --ink-soft:     #6a5844;
  --honey:        #efb94a;
  --honey-dark:   #d69626;

  /* bunte Akzente */
  --pink:         #d6488f;
  --pink-soft:    #fbe4ef;
  --sky:          #3f8fce;
  --sky-soft:     #e1eefa;
  --green:        #5a9e4b;
  --green-soft:   #e6f2df;
  --violet:       #8a5cc4;
  --violet-soft:  #efe6fa;
  --orange:       #ec8a2e;

  --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;
  overflow-x: hidden;
}

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;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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.2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 0.6em; }
h1, h2 { text-wrap: balance; }
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);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover {
  background: #241a12;
  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);
  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(48% 46% at 84% 14%, rgba(239, 185, 74, 0.40), transparent 70%),
    radial-gradient(42% 44% at 10% 6%, rgba(214, 72, 143, 0.16), transparent 70%),
    radial-gradient(46% 48% at 96% 92%, rgba(63, 143, 206, 0.16), transparent 70%),
    radial-gradient(50% 52% at 4% 96%, rgba(90, 158, 75, 0.18), transparent 70%),
    var(--cream);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.5rem, 9vw, 6rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 24vw, 300px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero-text { max-width: 44rem; min-width: 0; }

.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: linear-gradient(90deg, var(--pink), var(--orange) 40%, var(--honey) 60%, var(--green) 85%, var(--sky));
  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 {
  width: 100%;
  height: auto;
  justify-self: center;
  overflow: visible; /* Kopf/Fühler beim Auf-und-ab nicht abschneiden */
  filter: drop-shadow(0 16px 20px rgba(59, 45, 33, 0.12));
}
.bee-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes float {
  0%, 100% { transform: translate(-7px, 0) rotate(-4deg); }
  25%      { transform: translate(0, -9px) rotate(-1deg); }
  50%      { transform: translate(7px, -16px) rotate(2deg); }
  75%      { transform: translate(0, -9px) rotate(-1deg); }
}

/* ---------- Foto-Band (volle Breite) ---------- */

.photo-band {
  margin: 0;
  position: relative;
}
.photo-band img {
  width: 100%;
  height: clamp(200px, 34vw, 380px);
  object-fit: cover;
}
.photo-band figcaption,
.quote-band .quote-sub {
  font-size: 0.85rem;
}
.photo-band figcaption {
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  background: rgba(59, 45, 33, 0.72);
  color: var(--cream);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

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

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.section > .wrap + .wrap { margin-top: clamp(2rem, 5vw, 3.5rem); }

.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-green  { color: var(--green); }
.kicker-pink   { color: var(--pink); }
.kicker-violet { color: var(--violet); }
.kicker-sky    { color: var(--sky); }
.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;
}
.grid-2 > * { min-width: 0; }

/* ---------- Media-Card ---------- */

.media-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-card img {
  width: 100%;
  height: clamp(240px, 40vw, 340px);
  object-fit: cover;
}
.media-card figcaption {
  padding: 0.9rem 1.2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}
.facts li {
  min-width: 0;
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: grid;
  gap: 0.25rem;
  border: 1px solid transparent;
}
.fact-a { background: var(--green-soft);  border-color: #cfe6c3; }
.fact-b { background: var(--sky-soft);    border-color: #cfe2f4; }
.fact-c { background: var(--pink-soft);   border-color: #f4d3e5; }

.facts-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}
.fact-a .facts-num { color: var(--green); }
.fact-b .facts-num { color: var(--sky); }
.fact-c .facts-num { color: var(--pink); }
.facts-label { color: var(--ink-soft); font-size: 0.98rem; }

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

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

.card-pink  { border-top-color: var(--pink); }
.card-sky   { border-top-color: var(--sky); }
.card-green { border-top-color: var(--green); }

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

/* ---------- Zitat-Band mit Foto ---------- */

.quote-band {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(3.5rem, 10vw, 7rem) 0;
  color: var(--cream);
  overflow: hidden;
}
.quote-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(59, 45, 33, 0.35), rgba(59, 45, 33, 0.68));
  z-index: -1;
}
.quote-text {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.6rem, 4.4vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.quote-sub { color: rgba(251, 244, 227, 0.9); margin: 0; }

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

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.step {
  min-width: 0;
  border-top: 3px solid var(--honey);
  padding-top: 1.1rem;
}
.step-1 { border-top-color: var(--pink); }
.step-2 { border-top-color: var(--green); }
.step-3 { border-top-color: var(--sky); }
.step-4 { border-top-color: var(--orange); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}
.step-1 .step-num { background: var(--pink); }
.step-2 .step-num { background: var(--green); }
.step-3 .step-num { background: var(--sky); }
.step-4 .step-num { background: var(--orange); }

.step h3 { margin: 0.6rem 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 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(214, 72, 143, 0.35), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(63, 143, 206, 0.30), 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 > * { min-width: 0; }
.donate h2 { color: var(--cream); }
.donate p { color: rgba(251, 244, 227, 0.85); }

.donate-box {
  background: rgba(255, 255, 255, 0.08);
  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; overflow-wrap: anywhere; }

/* ---------- 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; min-width: 0; }
.contact-list a { overflow-wrap: anywhere; }
.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 700;
}

.contact-card {
  background: linear-gradient(140deg, var(--honey), var(--orange));
  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;
  border-top: 6px solid;
  border-image: linear-gradient(90deg, var(--pink), var(--orange), var(--honey), var(--green), var(--sky)) 1;
}
.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: 900px) {
  .grid-2,
  .donate { grid-template-columns: 1fr; }
}

/* Ab Tablet abwärts: einspaltig; auf dem Handy fliegt die Biene raus */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) clamp(150px, 22vw, 220px); }
}
@media (max-width: 680px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { max-width: none; }
  .hero-bee { display: none; }
}

@media (max-width: 820px) {
  .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; }
}

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