/* ============================================================
   FONTS – Open Sans, lokal eingebunden
   Benötigte Dateien im Ordner /fonts/:
     OpenSans-Regular.woff2
     OpenSans-SemiBold.woff2
     OpenSans-Bold.woff2
   ============================================================ */
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   DESIGN-TOKENS
   ============================================================ */
:root {
  /* Farben */
  --c-green:        #2BFF2C;   /* Highlights */
  --c-green-light:  #E0FFDE;   /* Hintergrund */
  --c-aktivkreis:   #1028A3;   /* NUR Aktivkreis-Kennzeichnung */
  --c-lavender:     #DBDFF1;   /* Hintergrund */
  --c-black:        #000000;   /* Typografie */
  --c-cream:        #F5F5ED;   /* Button, Header, Hintergrund */
  --c-white:        #ffffff;

  /* Typografie */
  --font: 'Open Sans', system-ui, -apple-system, sans-serif;

  /* Schriftgrößen Desktop (px/lh) */
  --fs-h1: 55px;  --lh-h1: 75px;
  --fs-h2: 45px;  --lh-h2: 61px;
  --fs-l1: 35px;  --lh-l1: 47px;
  --fs-m1: 28px;  --lh-m1: 38px;
  --fs-s1: 20px;  --lh-s1: 27px;
  --fs-s2: 16px;  --lh-s2: 22px;

  /* Schatten (X3 Y3 W6, Schwarz 20 %) */
  --shadow: 3px 3px 6px rgba(0, 0, 0, .20);

  /* Eckenradien */
  --r-xl:  100px;
  --r-lg:   80px;
  --r-md:   50px;
  --r-sm:   20px;

  /* Button-Radius: nur linke Ecken gerundet */
  --r-btn: 20px 0 0 20px;

  /* Layout */
  --max-w: 1200px;
  --pad-x: 80px;
  --pad-section: 100px 0;
}

/* ============================================================
   RESET / BASIS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--fs-s1);
  line-height: var(--lh-s1);
  color: var(--c-black);
  background: var(--c-white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p + p { margin-top: 16px; }

/* ============================================================
   TYPOGRAFIE-KLASSEN
   ============================================================ */
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; }
h3, .h3 { font-size: var(--fs-l1); line-height: var(--lh-l1); font-weight: 600; }
.text-medium  { font-size: var(--fs-m1); line-height: var(--lh-m1); font-weight: 400; }
.text-small   { font-size: var(--fs-s2); line-height: var(--lh-s2); font-weight: 400; }
.text-category {
  font-size: var(--fs-s1);
  line-height: var(--lh-s1);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================
   LAYOUT-HILFSKLASSEN
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================================
   SCHALTFLÄCHE (Button)
   Nur linke Ecken gerundet (20 px), Schatten, Hover = Grün
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 65px;
  padding: 0 50px;
  background: var(--c-cream);
  border: none;
  border-radius: var(--r-btn);
  font-family: var(--font);
  font-size: var(--fs-s1);
  line-height: var(--lh-s1);
  font-weight: 600;
  color: var(--c-black);
  cursor: pointer;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover,
.btn:focus-visible {
  background: var(--c-green);
}
.btn--outline {
  background: transparent;
  box-shadow: none;
  border: 2px solid var(--c-black);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--c-green);
  border-color: var(--c-green);
}

/* ============================================================
   FOKUS / BARRIEREFREIHEIT
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--c-green);
  outline-offset: 3px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--c-cream);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-header__logo img {
  height: 44px;
  width: auto;
}
/* Text-Fallback wenn logo.png fehlt */
.site-header__logo-fallback {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: var(--fs-s2);
  font-weight: 600;
  color: var(--c-black);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.site-nav a:hover,
.site-nav a.is-active {
  border-bottom-color: var(--c-green);
}

/* Hamburger-Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-black);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile-Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 80px 0 0 0;
  background: var(--c-cream);
  z-index: 190;
  flex-direction: column;
  padding: 48px 35px;
  gap: 36px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-h2);
  color: var(--c-black);
  transition: color .2s;
}
.mobile-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--c-green);
  text-underline-offset: 4px;
}

/* ============================================================
   HERO / START
   ============================================================ */
#start {
  padding: 120px 0 100px;
}
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 65px;
  align-items: center;
}
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__tag {
  color: var(--c-black);
  font-size: clamp(11px, 2.1vw + 6px, var(--fs-s1));
  letter-spacing: .08em;
}
.hero__title { max-width: 820px; }
.hero__body {
  font-size: var(--fs-m1);
  line-height: var(--lh-m1);
  font-weight: 400;
  max-width: 640px;
}
.hero__image-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--c-lavender);
}
.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 8px;
}

/* ============================================================
   ÜBER UNS
   ============================================================ */
#ueber-uns { padding: var(--pad-section); background: var(--c-cream); }
.ueber-uns { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.ueber-uns__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}
.ueber-uns__image-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--c-lavender);
}
.ueber-uns__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ueber-uns__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ueber-uns__content h2 { margin-bottom: 8px; }
.ueber-uns__content p {
  font-size: var(--fs-m1);
  line-height: var(--lh-m1);
}

/* ============================================================
   SCHWERPUNKTE
   ============================================================ */
#schwerpunkte { padding: var(--pad-section); background: var(--c-green-light); }
.schwerpunkte { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.schwerpunkte__header { margin-bottom: 56px; }
.schwerpunkte__header p {
  font-size: var(--fs-m1);
  line-height: var(--lh-m1);
  margin-top: 16px;
}
.schwerpunkte__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card__title {
  font-size: var(--fs-l1);
  line-height: var(--lh-l1);
  font-weight: 600;
}
.card__text {
  font-size: var(--fs-s1);
  line-height: var(--lh-s1);
}

/* ============================================================
   PARTNER
   ============================================================ */
#partner {
  padding: var(--pad-section);
  background: linear-gradient(135deg, var(--c-green-light) 0%, var(--c-cream) 50%, var(--c-green-light) 100%);
  position: relative;
  overflow: hidden;
}
/* Deko-Shapes analog zur Hero-Section */
#partner::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  background: var(--c-green);
  opacity: .30;
  border-radius: 50%;
  filter: blur(70px);
  top: -160px; right: -120px;
  pointer-events: none;
}
#partner::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  background: var(--c-lavender);
  opacity: .70;
  border-radius: 50%;
  filter: blur(70px);
  bottom: -140px; left: -100px;
  pointer-events: none;
}
.partner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); position: relative; z-index: 1; }
.partner__card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: 65px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 828px;
}
.partner__card h2 { margin-bottom: 4px; }
.partner__card p {
  font-size: var(--fs-m1);
  line-height: var(--lh-m1);
}
.partner__card p + p { margin-top: 0; }

/* ============================================================
   VORSTAND
   ============================================================ */
#vorstand { padding: var(--pad-section); }
.vorstand { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.vorstand > h2 { margin-bottom: 56px; }
.vorstand__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.person-card {
  background: var(--c-cream);
  border-radius: var(--r-xl);
  padding: 44px 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.person-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--c-lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.person-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.person-card__name {
  font-size: var(--fs-l1);
  line-height: var(--lh-l1);
  font-weight: 600;
}
.person-card__role {
  font-size: var(--fs-s1);
  line-height: var(--lh-s1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
}
.person-card__bio {
  font-size: var(--fs-s2);
  line-height: var(--lh-s2);
  margin-top: 8px;
}

/* ============================================================
   SPENDEN
   ============================================================ */
#spenden {
  padding: var(--pad-section);
  background: var(--c-green-light);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.spenden { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.spenden__header {
  margin-bottom: 56px;
}
.spenden__header h2 { margin-bottom: 20px; }
.spenden__header p {
  font-size: var(--fs-m1);
  line-height: var(--lh-m1);
}
.spenden__note {
  font-size: var(--fs-s1);
  line-height: var(--lh-s1);
  font-weight: 600;
  margin-top: 24px;
}
.spenden__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 64px;
}
.spenden__option {
  background: var(--c-cream);
  border-radius: var(--r-md);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spenden__option-title {
  font-size: var(--fs-l1);
  line-height: var(--lh-l1);
  font-weight: 600;
}
.spenden__option-value {
  font-size: var(--fs-s1);
  line-height: var(--lh-s1);
  color: rgba(0, 0, 0, .55);
  white-space: pre-line;
}
.spenden__closing {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.spenden__closing h3 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
}
.spenden__closing p {
  font-size: var(--fs-m1);
  line-height: var(--lh-m1);
}
.spenden__closing-note {
  font-size: var(--fs-s2) !important;
  color: rgba(0, 0, 0, .55);
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-cream);
  padding: 65px 0 32px;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
}
.site-footer__brand img { height: 44px; width: auto; }
.site-footer__tagline {
  font-size: var(--fs-s2);
  line-height: var(--lh-s2);
  color: rgba(0, 0, 0, .6);
}
.site-footer__klimalink {
  font-size: var(--fs-s2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c-green);
  text-underline-offset: 3px;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.site-footer__nav a {
  font-size: var(--fs-s2);
  font-weight: 400;
  color: var(--c-black);
  transition: color .2s;
}
.site-footer__nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--c-green);
  text-underline-offset: 3px;
}
.site-footer__bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid rgba(0, 0, 0, .1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: rgba(0, 0, 0, .45);
}
.site-footer__bottom a {
  color: rgba(0, 0, 0, .45);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer__bottom a:hover { color: var(--c-black); }

/* ============================================================
   INHALTSSEITEN (Impressum, Datenschutz)
   ============================================================ */
.content-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad-x) 120px;
}
.content-page h1 {
  margin-bottom: 48px;
}
.content-page h2 {
  font-size: var(--fs-l1);
  line-height: var(--lh-l1);
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 20px;
}
.content-page h3 {
  font-size: var(--fs-s1);
  line-height: var(--lh-s1);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
}
.content-page p {
  font-size: var(--fs-s1);
  line-height: var(--lh-s1);
  margin-bottom: 16px;
}
.content-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.content-page ul li {
  font-size: var(--fs-s1);
  line-height: var(--lh-s1);
  margin-bottom: 6px;
}
.placeholder-box {
  background: var(--c-green-light);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  margin: 8px 0 24px;
  font-size: var(--fs-s1);
  line-height: var(--lh-s1);
  color: rgba(0,0,0,.6);
  border-left: 4px solid var(--c-green);
}

/* ============================================================
   SCROLL-REVEAL-ANIMATION (IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ============================================================
   TABLET (768 – 1199 px)
   ============================================================ */
@media (max-width: 1199px) {
  :root {
    --pad-x: 40px;
  }
  .hero             { gap: 40px; }
  .schwerpunkte__grid { grid-template-columns: repeat(2, 1fr); }
  .vorstand__grid     { grid-template-columns: repeat(2, 1fr); }
  .spenden__options   { grid-template-columns: repeat(2, 1fr); }
  .ueber-uns__grid    { gap: 40px; }
  .partner__card      { max-width: 100%; }
}

/* ============================================================
   MOBIL (320 – 767 px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --pad-x: 35px;
    --pad-section: 72px 0;

    /* Mobilversion-Schriftgrößen */
    --fs-h1: 35px;  --lh-h1: 48px;
    --fs-h2: 28px;  --lh-h2: 38px;
    --fs-l1: 24px;  --lh-l1: 33px;
    --fs-m1: 20px;  --lh-m1: 27px;
    --fs-s1: 16px;  --lh-s1: 22px;
    --fs-s2: 14px;  --lh-s2: 20px;

    /* Eckenradien Mobil */
    --r-xl: 60px;
    --r-lg: 50px;
    --r-md: 40px;
  }

  /* Header */
  .site-nav   { display: none; }
  .hamburger  { display: flex; }

  /* Button */
  .btn {
    height: 51px;
    padding: 0 42px;
    font-size: var(--fs-s1);
  }

  /* Hero */
  #start { padding: 64px 0 56px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__actions { gap: 14px; }
  .hero__image-wrap { aspect-ratio: 16 / 9; }

  /* Sehr kleine Displays (≤ 480 px): Kategorien-Zeile kompakter */
  .hero__tag {
    font-size: 11px;
    letter-spacing: .06em;
  }

  /* Über Uns */
  .ueber-uns__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ueber-uns__image-wrap { aspect-ratio: 16 / 9; }

  /* Schwerpunkte */
  .schwerpunkte__grid { grid-template-columns: 1fr; }
  .card { padding: 36px 28px; }

  /* Partner */
  .partner__card { padding: 40px 30px; }

  /* Vorstand */
  .vorstand__grid { grid-template-columns: 1fr; }
  .person-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 20px;
  }
  .person-card__info { flex: 1; }
  .person-card__avatar { width: 72px; height: 72px; font-size: 20px; }

  /* Spenden */
  #spenden { border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .spenden__options { grid-template-columns: 1fr; }
  .spenden__option { padding: 32px 20px; }
  /* IBAN steht unumbrechbar in einer Zeile – auf schmalen Handys Schrift
     mit der Breite skalieren, damit sie nicht über den Kartenrand ragt */
  .spenden__option-value { font-size: clamp(11px, 6vw - 7px, var(--fs-s1)); }

  /* Footer */
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .site-footer__nav { align-items: flex-start; }
  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
