/* ==========================================================================
   rechtedernatur.at – Stylesheet
   Aufbau:
     1. Fonts
     2. Design-Tokens (Farben, Typo, Abstände)
     3. Reset & Basis
     4. Utilities (container, btn, eyebrow, …)
     5. Komponenten (Header, Hero, Pillars, Split, Stats, Goals, CTA, Quotes, Partner, Footer)
     6. Animationen
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Fonts (lokal, kein Google-Fonts-Request → DSGVO-freundlich)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "New Edge";
  src: url("../fonts/NewEdge666-RoundedSemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "New Edge";
  src: url("../fonts/NewEdge666-RegularSlanted.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/SpaceMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/SpaceMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* --------------------------------------------------------------------------
   2. Design-Tokens – hier zentral anpassen
   -------------------------------------------------------------------------- */
:root {
  /* Brand (aus Broschüre / Logo) */
  --c-blue:        #2b3780;   /* Primär-Dunkelblau */
  --c-blue-deep:   #1f2962;   /* Footer / Verläufe */
  --c-blue-soft:   #454e7f;
  --c-orange:      #f35f3f;   /* Akzent (Text, Linien) */
  --c-orange-icon: #ff774a;   /* Libelle */
  --c-yellow:      #fbf37a;   /* Highlight / Wortmarke */

  /* Neutral */
  --c-ink:         #1a1d3a;
  --c-text:        #2e3148;
  --c-muted:       #6c6f88;
  --c-line:        #e4e6ef;
  --c-bg:          #ffffff;
  --c-bg-muted:    #f2f3f7;

  /* Typo */
  --f-head: "New Edge", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Space Mono", ui-monospace, "Courier New", monospace;

  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;
  --fs-md:  1rem;
  --fs-lg:  1.125rem;
  --fs-h3:  clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-h2:  clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-h1:  clamp(2.4rem, 1.6rem + 4.5vw, 5rem);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 14px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}


/* --------------------------------------------------------------------------
   3. Reset & Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.1;
  color: var(--c-blue);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
mark {
  background: var(--c-yellow);
  color: var(--c-blue);
  padding: 0 .15em;
  border-radius: 3px;
}
em { font-family: var(--f-head); font-weight: 400; font-style: italic; }
strong { font-weight: 700; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--c-yellow); color: var(--c-blue); padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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


/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.mono { font-family: var(--f-body); font-size: var(--fs-sm); }
.accent { color: var(--c-yellow); }

.section { padding-block: var(--section-y); }
.section--muted { background: var(--c-bg-muted); }
.section--dark  { background: var(--c-blue); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__lead { font-size: var(--fs-lg); color: var(--c-muted); }

/* Kleine Überzeile in Orange, Monospace, Großbuchstaben */
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem; height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: .6rem;
}
.eyebrow--light { color: var(--c-yellow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-body); font-weight: 700; font-size: var(--fs-sm);
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-orange); color: #fff; border-color: var(--c-orange); }
.btn--primary:hover { background: #e2502f; border-color: #e2502f; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { padding: .6rem 1.1rem; font-size: var(--fs-xs); }

.link-arrow { font-weight: 700; font-size: var(--fs-sm); }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: .3em; }


/* --------------------------------------------------------------------------
   5. Komponenten
   -------------------------------------------------------------------------- */

/* --- Wortmarke ------------------------------------------------------------ */
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--c-blue); text-decoration: none !important;
}
.brand__icon { width: 52px; height: auto; flex: none; }
.brand__word { display: flex; flex-direction: column; line-height: .95; }
.brand__line1, .brand__line2 {
  font-family: var(--f-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: -0.02em; font-size: 1.35rem;
}
.brand__line2 em { text-transform: none; font-size: 1.05rem; letter-spacing: 0; margin-right: .1em; }

/* Varianten: auf dunklem Hintergrund */
.brand--footer, .site-header.is-dark .brand { color: #fff; }
.brand--footer .brand__line2, .site-header.is-dark .brand__line2 { color: var(--c-yellow); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-blue);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(27,34,90,.25); }
.site-header .brand { color: #fff; }
.site-header .brand__line2 { color: var(--c-yellow); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 78px;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a:not(.btn) {
  color: #fff; font-size: var(--fs-sm); font-weight: 700;
  position: relative; padding: .25rem 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--c-yellow); transition: width .25s var(--ease);
}
.nav a:not(.btn):hover { text-decoration: none; }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 1.2rem;
    background: var(--c-blue); padding: 1.5rem var(--gutter) 2rem;
    border-top: 1px solid rgba(255,255,255,.12);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--c-blue); color: #fff;
  padding-block: clamp(4rem, 10vw, 8rem) clamp(14rem, 28vw, 22rem);
}
.hero__inner { position: relative; z-index: 2; max-width: 820px; }
.hero__title { color: #fff; margin-bottom: 1.5rem; }
.hero__lead { font-size: var(--fs-lg); max-width: 620px; color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__note { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--c-yellow); }
.hero__note::before { content: "— "; }

.hero__dragonfly {
  position: absolute; z-index: 1;
  right: -2%; top: 8%;
  width: clamp(180px, 32vw, 460px);
  opacity: .95;
  transform: rotate(-8deg);
  animation: float 7s ease-in-out infinite;
}
.hero__mountains {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  height: clamp(12rem, 26vw, 20rem);
  background: url("../img/berge.webp") center bottom / cover no-repeat;
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero__dragonfly { top: auto; bottom: 28%; right: -10%; opacity: .55; }
}

/* --- Drei Säulen ---------------------------------------------------------- */
.section--pillars { padding-top: 0; margin-top: -4rem; position: relative; z-index: 3; }
.pillars { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pillar {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 18px 40px rgba(27,34,90,.10);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(27,34,90,.16); }
.pillar__num { font-size: var(--fs-xs); font-weight: 700; color: var(--c-orange); letter-spacing: .15em; margin-bottom: .8rem; }
.pillar__title { margin-bottom: .5rem; }
.pillar p { margin: 0; font-size: var(--fs-sm); color: var(--c-muted); }

/* --- Split (Bild + Text) -------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } }
.split__media img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(27,34,90,.18); }
.split__text h2 { margin-bottom: 1.2rem; }

/* --- Stats ---------------------------------------------------------------- */
.stats { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { border-left: 2px solid var(--c-orange); padding-left: 1.2rem; }
.stat__value {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(2.2rem, 2rem + 1.5vw, 3.2rem); line-height: 1; color: var(--c-yellow);
}
.stat__value span { display: block; font-size: .45em; color: #fff; opacity: .8; margin-top: .2em; }
.stat__label { font-size: var(--fs-sm); margin-top: .8rem; opacity: .85; }

/* --- Ziele ---------------------------------------------------------------- */
.goals { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.goal {
  position: relative; overflow: hidden;
  background: var(--c-bg-muted); border-radius: var(--radius);
  padding: 2.4rem 2rem 2rem;
}
.goal__icon {
  position: absolute; right: -30px; top: -30px; width: 150px;
  opacity: .14; transform: rotate(-15deg); pointer-events: none;
}
.goal h3 { position: relative; }
.goal p { position: relative; margin: 0; font-size: var(--fs-sm); }

/* --- CTA / Mitmachen ------------------------------------------------------ */
.section--cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-deep) 100%);
  color: #fff;
}
.section--cta h2 { color: #fff; }
.cta { position: relative; z-index: 2; display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr 1fr; } }
.cta__text p { color: rgba(255,255,255,.88); }

.cta__qr { text-align: center; justify-self: center; }
.cta__qr img {
  background: #fff; padding: 14px; border-radius: var(--radius);
  margin-inline: auto; width: 220px;
}
.cta__qr p { margin-top: 1rem; color: var(--c-yellow); font-weight: 700; }

.cta__dragonfly {
  position: absolute; z-index: 1; left: -4%; bottom: -8%;
  width: clamp(200px, 30vw, 420px); opacity: .12; transform: rotate(20deg);
}

/* Formular */
.form { margin-top: 1.5rem; max-width: 520px; }
.form__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.form__row input {
  flex: 1 1 240px; min-width: 0;
  font: inherit; padding: .95rem 1.2rem;
  border: 2px solid rgba(255,255,255,.3); border-radius: 999px;
  background: rgba(255,255,255,.08); color: #fff;
}
.form__row input::placeholder { color: rgba(255,255,255,.5); }
.form__row input:focus { outline: none; border-color: var(--c-yellow); background: rgba(255,255,255,.14); }
.form__consent {
  display: flex; gap: .7rem; align-items: flex-start;
  margin-top: 1rem; font-size: var(--fs-xs); color: rgba(255,255,255,.7);
}
.form__consent input { margin-top: .25em; accent-color: var(--c-orange); }
.form__consent a { color: var(--c-yellow); }

/* --- Zitate --------------------------------------------------------------- */
.quotes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote {
  margin: 0; padding: 2rem 1.8rem;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
}
.quote p { margin: 0; font-family: var(--f-head); font-style: italic; font-weight: 400; font-size: 1.15rem; line-height: 1.4; color: var(--c-blue); }
.quote footer { font-size: var(--fs-xs); display: flex; flex-direction: column; }
.quote footer strong { color: var(--c-orange); }
.quote footer span { color: var(--c-muted); }

/* --- Partner -------------------------------------------------------------- */
.partners {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2rem 3.5rem;
}
.partner img { height: 70px; width: auto; opacity: .8; transition: opacity .25s, transform .25s var(--ease); }
.partner:hover img { opacity: 1; transform: translateY(-2px); }
.partner img[src*="pachamama"] { filter: invert(1); }   /* weißes Logo → auf hellem Grund dunkel */
.partners__invite { text-align: center; margin-top: 3rem; font-size: var(--fs-sm); color: var(--c-muted); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--c-blue-deep); color: rgba(255,255,255,.8); padding-top: clamp(3rem, 6vw, 5rem); }
.site-footer__inner {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer__brand p { margin-top: 1.2rem; max-width: 320px; opacity: .75; }
.site-footer__col { display: flex; flex-direction: column; gap: .5rem; }
.site-footer__col h4 { color: var(--c-yellow); font-family: var(--f-body); font-size: var(--fs-xs); letter-spacing: .15em; text-transform: uppercase; margin-bottom: .6rem; }
.site-footer__col a { color: #fff; font-size: var(--fs-sm); }
.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-block: 1.5rem; font-size: var(--fs-xs); opacity: .7;
}
.site-footer__bottom a { color: #fff; }


/* --------------------------------------------------------------------------
   6. Animationen
   -------------------------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%      { transform: rotate(-6deg) translateY(-14px); }
}

/* Scroll-Reveal (Klassen werden per JS gesetzt) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
