/* frugivore.at - neue Seite (staging)
   Eigene Palette (Regel 1): hell-natuerlich, Blattgruen + Mango + Beere.
   Kein Google-Font (kein Cookie-Consent noetig, schneller, plattformunabhaengig). */

:root {
  --paper:      #faf8f2;
  --surface:    #ffffff;
  --surface-2:  #f3f0e7;
  --ink:        #16281f;
  --ink-soft:   #4f5f55;
  --ink-faint:  #7a877e;
  --green:      #2f9e56;
  --green-deep: #217a41;
  --mango:      #d99626;
  --berry:      #cf4d54;
  --line:       #e7e1d4;
  --line-soft:  #efeae0;

  /* Ampel fuer Daten (glyk. Last) */
  --lvl-low:  #2f9e56;
  --lvl-mid:  #d99626;
  --lvl-high: #cf4d54;

  --radius: 14px;
  --radius-s: 8px;
  --maxw: 720px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1040px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,242,.88);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-head.scrolled { box-shadow: 0 3px 14px rgba(20,40,30,.08); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: .2px; text-decoration: none; color: var(--ink); }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,158,86,.16); }
.brand small { display: block; font-weight: 500; font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--green-deep); }
.nav-toggle { display: none; }
@media (max-width: 640px) {
  /* E09: ohne JS bleibt die Navigation sichtbar (umbrechend), mit JS klappt sie hinter den Menue-Knopf */
  .head-row { flex-wrap: wrap; height: auto; padding: 9px 0; }
  .nav { width: 100%; flex-wrap: wrap; gap: 6px 16px; padding: 10px 0 2px; }
  .site-head.js-nav .nav { display: none; flex-direction: column; gap: 0; padding: 9px 0 0; }
  .site-head.js-nav .nav.open { display: flex; }
  .site-head.js-nav .nav a { padding: 12px 2px; border-top: 1px solid var(--line); font-size: 1rem; }
  .site-head.js-nav .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-s); background: transparent; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
}

/* ---------- Article ---------- */
.article-head { padding: 44px 0 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px; }
.eyebrow .pill { padding: 3px 10px; border-radius: 999px; background: rgba(47,158,86,.12); }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 5.4vw, 3rem); line-height: 1.12; margin: 6px 0 16px; letter-spacing: -.4px; }
.dek { font-size: 1.22rem; color: var(--ink-soft); line-height: 1.55; margin: 0 0 22px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .9rem; color: var(--ink-faint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.byline b { color: var(--ink-soft); font-weight: 600; }
.byline .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

.article-body { padding: 8px 0 40px; }
.article-body h2 { font-family: var(--serif); font-size: clamp(1.4rem, 3.6vw, 1.85rem); line-height: 1.2; margin: 44px 0 12px; letter-spacing: -.2px; }
.article-body h3 { font-size: 1.16rem; margin: 30px 0 8px; color: var(--ink); }
.article-body p { margin: 0 0 18px; }
.article-body a { color: var(--green-deep); text-underline-offset: 3px; }
.article-body strong { color: var(--ink); }

/* ---------- TL;DR Antwort-Box (LLM-SEO: answer-first) ---------- */
.answer {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 5px solid var(--green); border-radius: var(--radius);
  padding: 22px 24px; margin: 8px 0 30px;
  box-shadow: 0 2px 10px rgba(20,40,30,.04);
}
.answer h2 { margin: 0 0 10px; font-family: var(--sans); font-size: .82rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-deep); }
.answer p { margin: 0 0 10px; font-size: 1.05rem; }
.answer p:last-child { margin: 0; }

/* ---------- Datentabelle (glyk. Index / Last) ---------- */
.table-scroll { overflow-x: auto; margin: 22px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 480px; }
table.data caption { text-align: left; font-size: .85rem; color: var(--ink-faint); padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.data thead th { font-size: .78rem; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-faint); background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.food { font-weight: 600; color: var(--ink); }
.lvl { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.lvl::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.lvl.low::before  { background: var(--lvl-low); }
.lvl.mid::before  { background: var(--lvl-mid); }
.lvl.high::before { background: var(--lvl-high); }
.table-note { font-size: .84rem; color: var(--ink-faint); margin: 8px 2px 26px; }

/* ---------- Pullquote ---------- */
.pull { font-family: var(--serif); font-size: clamp(1.3rem, 3.4vw, 1.7rem); line-height: 1.35; color: var(--green-deep); border-left: 4px solid var(--mango); padding: 6px 0 6px 22px; margin: 32px 0; }

/* ---------- Callout / "der eine wahre Fall" ---------- */
.callout { background: #fff8ec; border: 1px solid #f0dcb4; border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; }
.callout h3 { margin: 0 0 8px; color: #9a6a12; display: flex; align-items: center; gap: 8px; }
.callout p:last-child { margin: 0; }

/* ---------- FAQ (E10 Accordion, LLM-SEO FAQPage) ---------- */
.faq { margin: 12px 0 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 2px; position: relative; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--green); transition: transform .2s ease; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 2px 20px; color: var(--ink-soft); }
.faq .faq-a p { margin: 0 0 12px; }
.faq .faq-a p:last-child { margin: 0; }

/* ---------- Quellen ---------- */
.sources { margin: 8px 0; font-size: .92rem; color: var(--ink-soft); }
.sources ol { padding-left: 20px; margin: 10px 0; }
.sources li { margin: 0 0 8px; }
.sources a { color: var(--green-deep); }

/* ---------- Stat-Platzhalter (WP-Aufrufe spaeter) ---------- */
.stat-strip { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.stat { flex: 1 1 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; }
.stat .num { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--green-deep); }
.stat .lab { font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-faint); }

/* ---------- Disclaimer + Footer ---------- */
.disclaimer { font-size: .86rem; color: var(--ink-faint); background: var(--surface-2); border-radius: var(--radius-s); padding: 16px 18px; margin: 34px 0; line-height: 1.6; }
.site-foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 34px 0 46px; color: var(--ink-faint); font-size: .9rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.foot-row a { color: var(--ink-soft); text-decoration: none; }
.foot-row a:hover { color: var(--green-deep); }

/* ---------- Ghost-Button (E22) ---------- */
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 1.5px solid var(--green); color: var(--green-deep); background: transparent; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn-ghost:hover { background: rgba(47,158,86,.08); transform: translateY(-1px); }

/* ---------- Scroll-up (E01) ---------- */
#to-top { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--green-deep); font-size: 1.2rem; cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; box-shadow: 0 3px 14px rgba(20,40,30,.12); }
#to-top.is-visible { opacity: 1; transform: translateY(0); }
#to-top[hidden] { display: none; }

/* ---------- Reveal (E05) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  #to-top { transition: none; }
}

/* ============================================================
   Startseite + Rubriken (ganze Seite)
   ============================================================ */

/* ---------- Hero ---------- */
.hero { padding: 70px 0 54px; position: relative; }
.hero .wrap { max-width: 860px; }
.hero .kicker { font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green-deep); margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.3rem, 6vw, 3.7rem); line-height: 1.08; letter-spacing: -.5px; margin: 0 0 20px; }
.hero h1 .accent { color: var(--green); }
.hero .lead { font-size: clamp(1.15rem, 2.6vw, 1.4rem); color: var(--ink-soft); line-height: 1.5; margin: 0 0 26px; max-width: 620px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fruits { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; font-size: clamp(1.7rem, 6vw, 3rem); line-height: 1; }
.hero .fruits span { display: inline-flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Section ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 22px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2rem); margin: 0; letter-spacing: -.2px; }
.section-head a { color: var(--green-deep); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }

/* ---------- Featured ---------- */
.featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.featured .fig { background: linear-gradient(135deg, #2f9e56 0%, #217a41 60%, #1d6b3a 100%); min-height: 260px; position: relative; display: flex; align-items: flex-end; padding: 24px; }
.featured .fig .emoji { font-size: 4.2rem; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
.featured .body { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.featured .tag { align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green-deep); background: rgba(47,158,86,.12); padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; }
.featured h3 { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.16; margin: 0 0 12px; letter-spacing: -.2px; }
.featured h3 a { color: var(--ink); text-decoration: none; }
.featured h3 a:hover { color: var(--green-deep); }
.featured p { color: var(--ink-soft); margin: 0 0 18px; }
.featured .meta { font-size: .85rem; color: var(--ink-faint); }
@media (max-width: 720px) { .featured { grid-template-columns: 1fr; } .featured .fig { min-height: 150px; } }

/* ---------- Card-Grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(20,40,30,.09); border-color: #cfe6d5; }
.card .tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--green-deep); margin-bottom: 12px; }
.card h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 10px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--green-deep); }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0 0 16px; flex: 1; }
.card .meta { font-size: .82rem; color: var(--ink-faint); }
.card.soon { background: var(--surface-2); border-style: dashed; }
.card.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card.soon .tag { color: var(--ink-faint); }
.card.soon h3 a { color: var(--ink-soft); cursor: default; }
.card .badge-soon { align-self: flex-start; font-size: .72rem; font-weight: 600; color: var(--mango); background: #fff8ec; border: 1px solid #f0dcb4; padding: 2px 9px; border-radius: 999px; margin-top: 4px; }

/* ---------- Rubriken-Uebersicht ---------- */
.rubrik-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rubrik { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.rubrik:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(20,40,30,.09); border-color: #cfe6d5; }
.rubrik .ico { font-size: 2rem; display: block; margin-bottom: 12px; }
.rubrik h3 { font-size: 1.15rem; margin: 0 0 6px; color: var(--ink); }
.rubrik p { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.rubrik.frucht { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; border-color: #cfe6d5; background: linear-gradient(135deg, rgba(47,158,86,.10), rgba(217,150,38,.10)); }
.rubrik.frucht .ico { font-size: 2.6rem; margin: 0; }
.rubrik.frucht h3 { font-size: 1.35rem; }

/* ---------- Page-Intro (Rubrik-Kopf) ---------- */
.page-intro { padding: 54px 0 20px; }
.page-intro .eyebrow { margin-bottom: 12px; }
.page-intro h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.4px; }
.page-intro p { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.55; margin: 0; max-width: 640px; }

/* ---------- Newsletter-Band ---------- */
.newsletter { background: linear-gradient(135deg, #16281f 0%, #1d3a2a 100%); color: #eaf3ec; border-radius: var(--radius); padding: 40px 34px; text-align: center; margin: 30px 0; }
.newsletter h2 { font-family: var(--serif); color: #fff; font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 10px; }
.newsletter p { color: #b9ccbf; margin: 0 auto 22px; max-width: 460px; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 460px; margin: 0 auto; }
.newsletter input[type=email] { flex: 1 1 220px; padding: 13px 16px; border-radius: 999px; border: 1px solid #3a5546; background: rgba(255,255,255,.06); color: #fff; font-size: 1rem; }
.newsletter input[type=email]::placeholder { color: #8fa896; }
.newsletter input[type=email]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,158,86,.3); }
.newsletter button { padding: 13px 26px; border-radius: 999px; border: 0; background: var(--green); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .15s ease; }
.newsletter button:hover { background: #38b063; }
.newsletter .fineprint { font-size: .78rem; color: #85a08d; margin: 14px 0 0; }

/* ---------- Legal / einfache Textseite ---------- */
.legal { padding: 50px 0; }
.legal h1 { font-family: var(--serif); font-size: 2rem; margin: 0 0 20px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p { margin: 0 0 14px; color: var(--ink-soft); }
.legal p a { color: var(--green-deep); }

/* Back-Link (E20) */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); text-decoration: none; font-size: .92rem; margin: 24px 0 0; }
.back-link:hover { color: var(--green-deep); }

/* Content-Bilder (migrierte Artikel + Über mich) */
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-s); display: block; margin: 0 auto; }
.article-body figure { margin: 26px 0; }
.article-body figcaption { font-size: .84rem; color: var(--ink-faint); margin-top: 8px; text-align: center; }

/* ---------- Gesundheitshinweis-Banner (einmalig, erster Besuch) ---------- */
.hinweis-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; gap: 18px;
  max-width: 860px; margin: 0 auto 14px; padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--mango);
  border-radius: var(--radius-s);
  box-shadow: 0 8px 28px rgba(20,40,30,.16);
  animation: hinweis-in .4s ease;
}
.hinweis-banner p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--ink-soft); }
.hinweis-banner a { color: var(--green-deep); }
.hinweis-banner .hinweis-ok {
  flex-shrink: 0; padding: 9px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--green); color: var(--green-deep);
  font-weight: 700; font-size: .9rem; transition: background .15s ease;
}
.hinweis-banner .hinweis-ok:hover { background: rgba(47,158,86,.08); }
@keyframes hinweis-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hinweis-banner { animation: none; } }
@media (max-width: 640px) {
  .hinweis-banner { flex-direction: column; align-items: stretch; margin: 0; border-radius: 0; border-left: 0; border-top: 4px solid var(--mango); text-align: left; }
  .hinweis-banner .hinweis-ok { align-self: flex-end; }
}
