/* Benjamin Varbelow · Das Giftpflanzen-Projekt */

@font-face { font-family: "Inter"; src: url("/fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --forest: #1f4a37;
  --forest-dark: #143326;
  --moss: #4f7a5c;
  --sage: #dfe8df;
  --paper: #f7f4ec;
  --card: #ffffff;
  --ink: #1d2420;
  --muted: #5d6862;
  --line: #ddd8cb;
  --amber: #a8641c;
  --tox-5: #6b2a63;   /* Grad 5 letal */
  --tox-4: #a3322b;   /* Grad 4 potenziell letal */
  --tox-3: #c4561f;   /* Grad 3 stark toxisch */
  --tox-2: #b8861d;   /* Grad 2 mäßig toxisch */
  --tox-1: #4f7a5c;   /* Grad 1 gering toxisch */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--moss); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--forest-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-top: 1.6em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
em, i { font-style: italic; }
.sci { font-family: var(--serif); font-style: italic; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--moss); margin-bottom: .8rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.1; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 600 1.08rem var(--serif); color: var(--forest-dark); }
.brand-sub { font: 500 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
.nav-desktop { display: none; gap: 22px; }
.nav-desktop a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; }
.nav-desktop a[aria-current="page"], .nav-desktop a:hover { color: var(--forest); box-shadow: inset 0 -2px 0 var(--moss); }
.nav-mobile summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--forest); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--forest); color: #fff; border-color: var(--forest); }
.nav-mobile ul { position: absolute; left: 0; right: 0; top: 66px; margin: 0; padding: 8px 20px 18px; list-style: none; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.06); }
.nav-mobile li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
@media (min-width: 900px) { .nav-desktop { display: flex; } .nav-mobile { display: none; } }

/* Buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font: 600 .98rem var(--sans); text-decoration: none; border: 2px solid var(--forest); background: var(--forest); color: #fff; cursor: pointer; }
.btn:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--forest); }
.btn.ghost:hover { background: var(--sage); color: var(--forest-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* Sections */
section { padding: 56px 0; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--forest-dark); color: #e9efe9; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a { color: #cfe3d3; }

/* Hero */
.hero { padding: 56px 0 44px; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.portrait { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, var(--sage), #c9d8cb); position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { padding: 18px; font-size: .85rem; color: var(--forest); }

/* Cards / grids */
.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,74,55,.10); color: inherit; }
.card .more { display: inline-block; margin-top: .6rem; font-weight: 600; color: var(--forest); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; stroke: var(--forest); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Plant cards */
.plant-card { padding: 0; overflow: hidden; }
.plant-card .photo { aspect-ratio: 4/3; background: var(--sage); position: relative; display: grid; place-items: center; }
.plant-card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plant-card .photo span { font: italic 1rem var(--serif); color: var(--moss); }
.plant-card .body { padding: 16px 18px 20px; }
.plant-card h3 { font-size: 1.15rem; margin: 0 0 .1rem; }

/* Toxicity badge */
.tox { display: inline-block; font: 600 .74rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; color: #fff; margin-top: .5rem; }
.tox-5 { background: var(--tox-5); } .tox-4 { background: var(--tox-4); } .tox-3 { background: var(--tox-3); } .tox-2 { background: var(--tox-2); } .tox-1 { background: var(--tox-1); }

/* Mechanism chain */
.chain { display: grid; gap: 10px; margin: 24px 0 8px; }
@media (min-width: 800px) { .chain { grid-template-columns: repeat(4, 1fr); } }
.chain .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: relative; }
.chain .step b { display: block; font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--moss); margin-bottom: 4px; }
.chain .step span { font-family: var(--serif); font-size: 1.08rem; color: var(--forest-dark); }
@media (min-width: 800px) { .chain .step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--moss); font-weight: 600; z-index: 1; } }
@media (max-width: 799px) { .chain .step:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); color: var(--moss); font-weight: 600; z-index: 1; } }

/* Notices */
.notice { border-left: 4px solid var(--amber); background: #fbf3e6; padding: 16px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.notice.alert { border-color: var(--tox-2); background: #fbecea; }
.notice p:last-child { margin: 0; }
.takeaway { background: var(--sage); border-radius: 10px; padding: 14px 18px; margin: 1em 0 1.4em; }

/* Profile */
.profile-head { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .profile-head { grid-template-columns: 1fr 1fr; } }
.facts { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.facts th, .facts td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; font-weight: 600; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.symptoms { list-style: none; padding: 0; margin: 0 0 1em; }
.symptoms > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.symptoms > li > strong { display: block; color: var(--forest-dark); }
.symptoms ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; }
.compare th, .compare td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { background: var(--sage); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Stats */
.stat { font: 600 2.4rem/1 var(--serif); color: var(--forest); margin-bottom: .4rem; }

/* Forms */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input[type=text], input[type=email], textarea, select { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #c9c3b4; border-radius: 10px; background: #fff; color: var(--ink); }
input[type=file] { font: inherit; font-size: .9rem; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--moss); outline-offset: 1px; border-color: var(--moss); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check input { margin-top: 5px; flex: none; }
.hidden { display: none; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input[type=email] { flex: 1 1 240px; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: "0" counter(s); display: block; font: 600 1.6rem var(--serif); color: var(--moss); margin-bottom: 6px; }

/* Article */
.article h2 { font-size: 1.6rem; }
.article h2 .num { color: var(--moss); margin-right: .4em; }
.refs { font-size: .88rem; color: var(--muted); }
.refs li { margin-bottom: .5em; }
sup a { text-decoration: none; font-size: .75em; }

/* Price rows */
.price { font: 600 1.5rem var(--serif); color: var(--forest); margin: .3rem 0 .8rem; }
.tag { display: inline-block; font: 600 .72rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); background: #fbf3e6; padding: 5px 9px; border-radius: 999px; }

/* Footer */
.site-footer { background: var(--forest-dark); color: #cdd9d0; padding: 44px 0 32px; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .grid { gap: 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35em; }
.emergency { background: rgba(255,255,255,.08); border-radius: 10px; padding: 14px 16px; margin-bottom: 26px; color: #fff; }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; color: #9fb3a6; }

@media (max-width: 600px) {
  .portrait { aspect-ratio: 1/1; }
  .hero .eyebrow { display: none; }
  .compare { min-width: 520px; }
  body { font-size: 16px; }
  section { padding: 42px 0; }
  .facts th { width: 42%; }
}

/* Drei-Schritt-Erzählung */
@media (min-width: 800px) { .chain.c3 { grid-template-columns: repeat(3, 1fr); } }
.chain.c3 .step span { font-size: 1rem; line-height: 1.5; }

/* Fotogalerie im Profil */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 1.4em 0 .4em; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* Bilder auf der Wirkstoffe-Seite */
.wirk-fig { margin: .6em 0 1.2em; }
.wirk-fig img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.wirk-fig figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* Bildpaar zum Vergleich */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1em 0 .4em; }
.pair figure { margin: 0; }
.pair img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }
.pair figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* Portrait: Gesicht im Ausschnitt halten */
.portrait img { object-position: 50% 30%; }
