/* =========================================================
   HelixSeed Agriscience – Stylesheet
   ---------------------------------------------------------
   FARBEN & SCHRIFT: Hier oben in :root anpassen.
   Hintergrundbild: assets/img/dna-bg.jpg (siehe body)
   ========================================================= */

/* ---------- Schrift (zentral änderbar) ---------- */
:root { --font-main: "Segoe UI", Calibri, Helvetica, Arial, sans-serif; }

/* ---------- Farben & Grundlayout ---------- */
:root {
  --green: #2f7d3e;
  --green-dark: #1f5a2c;
  --red: #1f5a2c;        /* kein Rot/Gold als Akzent mehr, nur noch Grün */
  --red-soft: #2f7d3e;
  --ink: #1c211c;
  --muted: #5a6358;
  --paper: #f7f8f4;
  --card: rgba(241,248,240,.55);      /* ganz leichtes Grün für alle Kästen */
  --radius: 14px;       /* Rundung der Ecken */
  --line: #d5ddd4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--paper) url("../assets/img/dna-bg.jpg") center top / cover no-repeat fixed;
  line-height: 1.65;
}
a { color: var(--green-dark); }
a:hover { color: var(--red); }
.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }


/* ---------- Kopfzeile / Navigation ---------- */
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247,248,244,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }
nav ul { display: flex; gap: 1rem; list-style: none; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  text-decoration: none; color: var(--muted);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
nav a:hover { color: var(--green-dark); }

.hero {
  padding: 3.2rem 0 3.4rem;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 2.2rem;
  align-items: center;
}
.hero img.mark { width: min(340px, 100%); height: auto; }
.kicker {
  color: var(--red); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .75rem; margin-bottom: .65rem;
}
h1 { font-size: clamp(1.7rem, 3.6vw, 2.65rem); line-height: 1.18; font-weight: 700; }
.lead { margin: 1rem 0 1.35rem; color: var(--muted); font-size: 1.06rem; max-width: 40rem; }
.btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .75rem 1.15rem; border-radius: 2px; font-size: .92rem; border: 0; cursor: pointer; font-family: inherit;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-soft); color: #fff; }
.btn-ghost { border: 2px solid var(--green); color: var(--green-dark); background: transparent; }

section { padding: 3.2rem 0; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: .35rem; }
.en { color: var(--muted); font-size: .92rem; margin-bottom: 1.15rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  padding: 1.3rem 1.25rem 1.4rem;
}
.card.red { border-top-color: var(--red); }
.card h3 { font-size: 1.08rem; margin-bottom: .55rem; line-height: 1.35; }
.card p, .prose p { color: var(--muted); }
.card p + p, .prose p + p { margin-top: .8rem; }
.prose {
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  padding: 1.45rem 1.4rem;
}
.abbr { font-weight: 700; color: var(--ink); }
.soon {
  display: inline-block; margin-left: .35rem;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; color: var(--red); border: 1px solid var(--red);
  padding: .12rem .4rem; vertical-align: middle;
}
.list {
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  padding: 0;
}
.list article {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.list article:last-child { border-bottom: 0; }
.list h3 { font-size: 1.05rem; margin-bottom: .35rem; }

form { background: #fff; border: 1px solid var(--line); padding: 1.35rem; }
label { display: block; font-size: .82rem; font-weight: 700; margin: .7rem 0 .25rem; }
input, textarea {
  width: 100%; padding: .65rem .7rem;
  border: 1px solid var(--line); background: #fcfdfb;
  font: inherit; color: var(--ink);
}
textarea { min-height: 8.5rem; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.honeypot { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }


/* ---------- Fußzeile ---------- */
footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}


/* ---------- Responsive (Mobil) ---------- */
@media (max-width: 820px) {
  .hero, .grid2, .row { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
  nav ul { display: flex; width: 100%; justify-content: flex-start; gap: .75rem; }
  nav a { font-size: .72rem; }
}

/* =========================================================
   ERWEITERUNGEN (Unterseiten, Tooltips, Glossar)
   ========================================================= */

/* ---------- "Mehr erfahren"-Links ---------- */
.more { margin-top: 1.1rem; }
.more a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--green); padding-bottom: 1px; }
.more a:hover { border-color: var(--red); }

/* ---------- Fachbegriffe mit Tooltip ---------- */
.term {
  border-bottom: 1px dotted currentColor;
  cursor: help;
  white-space: nowrap;
}
.term::after {               /* kleine Lupe hinter dem Begriff */
  content: "";
  display: inline-block;
  width: .72em; height: .72em; margin-left: .18em;
  vertical-align: .05em;
  background: var(--green);
  -webkit-mask: var(--icon-lupe) center / contain no-repeat;
          mask: var(--icon-lupe) center / contain no-repeat;
}
:root {
  --icon-lupe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='4.8' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M10 10l4.5 4.5' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.term:hover, .term:focus, .term[aria-expanded="true"] { color: var(--green-dark); background: rgba(47,125,62,.08); outline: none; }
.term:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.term-tip {
  position: absolute; z-index: 1000;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-top: 4px solid var(--green);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  padding: .8rem .95rem .85rem;
  font-size: .9rem; line-height: 1.5;
}
.term-tip strong { display: block; margin-bottom: .25rem; }
.term-tip p { margin-bottom: .45rem; color: var(--muted); }
.term-tip a { font-weight: 700; font-size: .85rem; }

/* ---------- Unterseiten ---------- */
.page-hero { padding: 2.6rem 0 1rem; }
.page-hero .lead { max-width: 46rem; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.crumbs a { text-decoration: none; }
.doc h2 { margin-top: .4rem; }
.doc h3 { font-size: 1.1rem; margin: 1.3rem 0 .4rem; }
.doc p, .doc li { margin-bottom: .6rem; }
.doc ol, .doc ul { padding-left: 1.3rem; }
.doc section { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.doc section:first-child { border-top: 0; }
.figure {
  background: #fff; border: 1px solid var(--line);
  padding: 1rem; margin: 1rem 0 1.2rem; text-align: center;
}
.figure svg { width: 100%; max-width: 640px; height: auto; }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; text-align: left; }
.note {
  background: rgba(47,125,62,.06); border-left: 4px solid var(--red);
  padding: .8rem 1rem; margin: 1rem 0; font-size: .95rem;
}
.placeholder { background: #fff3c4; border: 1px dashed #c9a400; padding: 0 .3rem; font-style: italic; }
.refs { font-size: .9rem; }
.refs li { margin-bottom: .45rem; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; list-style: none; padding: 0 !important; }
.toc a { display: inline-block; font-size: .82rem; font-weight: 700; text-decoration: none; border: 1px solid var(--line); background: rgba(255,255,255,.8); padding: .35rem .7rem; }
.toc a:hover { border-color: var(--green); }
nav a[aria-current="page"] { color: var(--red); }

/* ---------- Glossar ---------- */
.gl-tools { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
#glossar-suche { max-width: 26rem; }
#glossar-info { font-size: .85rem; color: var(--muted); }
#glossar-az { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 1rem; }
#glossar-az a, #glossar-az span { display: inline-block; min-width: 1.9rem; text-align: center; padding: .25rem 0; font-weight: 700; text-decoration: none; border: 1px solid var(--line); background: #fff; }
#glossar-az span.off { color: #c3c9c1; background: transparent; }
.gl-group { padding: 1rem 0; }
.gl-group h2 { color: var(--red); border-bottom: 2px solid var(--line); margin-bottom: .6rem; }
.gl-entry { background: rgba(255,255,255,.88); border: 1px solid var(--line); padding: .9rem 1.1rem; margin-bottom: .6rem; scroll-margin-top: 90px; }
.gl-entry h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.gl-entry a { font-size: .85rem; font-weight: 700; }
.gl-entry.hit, .gl-entry:target { border-color: var(--green); box-shadow: 0 0 0 2px rgba(47,125,62,.25); }
section[id], article[id] { scroll-margin-top: 90px; }

/* ---------- Moderne Kästen: leichtes Grün, runde Ecken, weicher Schatten ---------- */
.card, form, .figure, .note, .gl-entry, .term-tip {
  background: var(--card);
  border: 1px solid rgba(47,125,62,.14);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(31,90,44,.07);
}
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31,90,44,.12); }
.btn { border-radius: 999px; }
input, textarea, select { border-radius: 10px; }
#glossar-az a, #glossar-az span { border-radius: 8px; }
.prose { background: var(--card); border: 1px solid rgba(47,125,62,.14); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(31,90,44,.07); }
/* Leistungen: jede Leistung als eigener Kasten */
.list { background: transparent; border: 0; display: grid; gap: .8rem; }
.list article { background: var(--card); border: 1px solid rgba(47,125,62,.14) !important; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(31,90,44,.07); transition: transform .2s ease, box-shadow .2s ease; }
.list article:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31,90,44,.12); }
.card { border-top: 1px solid rgba(47,125,62,.14); }
.card::before { content:""; display:block; height:4px; width:48px; border-radius:4px; background: var(--green); margin-bottom: .9rem; }
.card.red::before { background: var(--red); }
/* Transparente Kästen mit leichtem Milchglas-Effekt */
.card, form, .figure, .note, .gl-entry, .prose, .list article { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 16px rgba(31,90,44,.05); }
.card.red::before { background: var(--green); }

/* ---------- Farbkonzept: Grün = Hauptfarbe, Weizengold = Akzent (kein Rot) ---------- */
.btn-red { background: var(--green-dark); color: #fff; }
.btn-red:hover { background: var(--green); color: #fff; }
a:hover { color: var(--green); }
.kicker { color: var(--red); }
.soon { color: var(--red); border-color: var(--red-soft); background: rgba(201,162,74,.10); border-radius: 999px; }
.card.red::before { background: var(--red-soft); }
/* Alle Methoden-Kästen einheitlich grün (keine Sonderfarbe mehr) */
.card.red { border-top-color: rgba(47,125,62,.14); }
.card.red::before { background: var(--green); }
/* Endgültig: Rot nur im Logo und in der kleinen Kopfzeile über den Überschriften, sonst alles Grün, kein Gold */
.kicker { color: #b42318; }
.soon { color: var(--green-dark); border-color: var(--green); background: rgba(47,125,62,.08); }
a:hover { color: var(--green); }

/* ---------- Methodenliste unter der Vision ---------- */
.method-line { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 !important; margin: .2rem 0 1rem; }
.method-line li { background: rgba(47,125,62,.10); border: 1px solid rgba(47,125,62,.30); border-radius: 999px; padding: .3rem .85rem; font-size: .9rem; font-weight: 600; color: var(--green-dark); margin: 0; }

/* Erklärungsfenster immer deckend (v.a. mobil) */
.term-tip { background: #f4faf3 !important; border-top: 4px solid var(--green); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
