/* ============================================================
   Nuvatera — Stylesheet
   Palette: botanisches Tiefgrün, Getreide-Amber, klares Weiß
   Fonts: Fraunces (Display), Manrope (Body) — lokal gehostet (DSGVO)
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var-italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --green-900: #12271C;
  --green-800: #1B3A2A;
  --green-700: #245139;
  --green-500: #3E7355;
  --green-300: #8FB39C;
  --green-100: #E4EDE7;
  --grain:     #C6923F;
  --grain-lt:  #E7C892;
  --paper:     #FFFFFF;
  --shell:     #F4F2EC;
  --ink:       #16211B;
  --muted:     #566159;
  --line:      #DCE3DC;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(18, 39, 28, 0.45);
  --shadow-sm: 0 6px 22px -14px rgba(18, 39, 28, 0.4);

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--green-900);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grain);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--grain);
  display: inline-block;
}

.lead { font-size: 1.16rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-700); }
.btn-grain { background: var(--grain); color: #fff; }
.btn-grain:hover { background: #b07f31; transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; color: var(--green-900); letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: 0.97rem; color: var(--ink); position: relative; padding: 0.3rem 0; }
.nav-links a:hover { color: var(--green-700); }
.nav-links a.active { color: var(--green-700); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--grain); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 1.2rem; }

.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  font-family: var(--f-body); font-weight: 600; font-size: 0.8rem;
  padding: 0.35rem 0.7rem; border: none; background: transparent; cursor: pointer; color: var(--muted);
}
.lang-toggle button.active { background: var(--green-700); color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-700) 100%);
  color: #fff;
}
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 400; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--grain-lt); }
.hero .lead { color: rgba(255,255,255,0.82); font-size: clamp(1.05rem, 2vw, 1.3rem); margin-top: 1.5rem; max-width: 52ch; }
.hero .eyebrow { color: var(--grain-lt); }
.hero .eyebrow::before { background: var(--grain-lt); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }

.hero-botanic {
  position: absolute; top: 0; right: 0; height: 100%; width: 45%;
  opacity: 0.16; z-index: 1; pointer-events: none;
}
.hero-botanic svg { height: 100%; width: 100%; }

/* trust strip */
.trust {
  background: var(--green-900); color: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding-block: 0; }
.trust-item { padding: 1.5rem 1.2rem; }
.trust-item strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; color: var(--grain-lt); display: block; }
.trust-item span { font-size: 0.82rem; color: rgba(255,255,255,0.72); }

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.bg-shell { background: var(--shell); }
.bg-green { background: linear-gradient(160deg, var(--green-900), var(--green-800)); color: #fff; }
.bg-green h2, .bg-green h3 { color: #fff; }
.bg-green .lead { color: rgba(255,255,255,0.82); }
.bg-green .eyebrow { color: var(--grain-lt); }
.bg-green .eyebrow::before { background: var(--grain-lt); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card .ico svg { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* problem columns */
.prob-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.prob-col h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 0.6rem; }
.prob-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.prob-list li { padding: 0.9rem 0; border-top: 1px solid var(--line); display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.98rem; }
.prob-list li .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 0.55rem; background: var(--green-500); }
.prob-col.next .prob-list li .dot { background: var(--grain); }
.prob-col.next h3 { color: var(--green-700); }

/* crop cards */
.crop { text-align: left; }
.crop .crop-ill { width: 100%; height: 140px; border-radius: 12px; background: var(--green-100); display: grid; place-items: center; margin-bottom: 1.1rem; overflow: hidden; }
.crop .crop-ill svg { width: 78px; height: 78px; }
.crop h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.crop .tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grain); }
.crop p { color: var(--muted); font-size: 0.94rem; margin: 0.6rem 0 0; }

/* RS3 evidence table */
.evi { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.evi th, .evi td { text-align: left; padding: 1rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.evi th { font-family: var(--f-body); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.evi td:first-child { font-weight: 600; color: var(--green-900); }
.evi .up { color: var(--green-500); font-weight: 700; }
.evi tr:last-child td { border-bottom: none; }

/* mechanism steps */
.mech { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.mech li { display: flex; gap: 1rem; align-items: flex-start; }
.mech .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; font-family: var(--f-body); }
.mech p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.97rem; }

/* market chart */
.chartbox { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.chartbox svg { width: 100%; height: auto; }
.chart-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: 0.86rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 2rem; }
.pillar { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 1.5rem; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.pillar p { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin: 0; }

/* stat callouts */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.stat strong { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 500; color: var(--green-700); display: block; line-height: 1; }
.stat span { color: var(--muted); font-size: 0.95rem; }
.bg-green .stat strong { color: var(--grain-lt); }
.bg-green .stat span { color: rgba(255,255,255,0.78); }

/* about */
.about-lead { font-family: var(--f-display); font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 400; line-height: 1.35; color: var(--green-900); max-width: 24ch; }
.about-lead em { font-style: italic; color: var(--grain); }
.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.cred-list li { display: flex; gap: 1rem; align-items: flex-start; }
.cred-list .ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; }
.cred-list .ico svg { width: 22px; height: 22px; }
.cred-list strong { display: block; color: var(--green-900); font-weight: 700; margin-bottom: 0.15rem; }
.cred-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band { background: var(--grain); color: #fff; border-radius: 20px; padding: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; margin: 0; max-width: 20ch; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.cta-band .btn-primary { background: var(--green-900); }
.cta-band .btn-primary:hover { background: #0d1c14; }

/* ---------- Contact form ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.45rem; color: var(--green-900); }
.field input, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); }
.field textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.check input { width: auto; margin-top: 0.25rem; flex: none; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }
.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 10px; font-size: 0.92rem; display: none; }
.form-status.ok { display: block; background: var(--green-100); color: var(--green-800); }
.form-status.err { display: block; background: #FBE9E7; color: #A33A2A; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--muted); font-size: 0.97rem; }
.legal address { font-style: normal; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,0.72); padding-block: 3.5rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { font-family: var(--f-display); font-size: 1.5rem; color: #fff; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand .mark { width: 30px; height: 30px; }
.site-footer p { font-size: 0.92rem; max-width: 38ch; }
.footer-col h4 { font-family: var(--f-body); color: #fff; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.95rem; }
.footer-col a:hover { color: var(--grain-lt); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; font-size: 0.85rem; }

/* ---------- lang visibility ---------- */
[data-en] { display: none; }
html[lang="en"] [data-de] { display: none; }
html[lang="en"] [data-en] { display: revert; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .prob-cols { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .pillars, .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .hero-botanic { width: 70%; opacity: 0.1; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: #fff; padding: 1.5rem var(--pad); gap: 1.2rem; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform 0.3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; }
}

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