/* =====================================================================
   forage.css · Marken-Tokens und Forage-Teile für das Artikel-Layout (guide-kit.css)
   Lädt nur auf Guides mit layout: "gk" (renderArticleGk im Worker), nach guide-kit.css.
   Farben aus dem :root der Website (style im Worker) abgeleitet. Für Text dunkler
   gestuft, damit jeder Text mindestens 4,5:1 erreicht (gemessen 26.11.2026):
   ink 14,8 · ink-soft 5,7 · ink-mute 5,1 · link 5,3 · accent-text 4,8 auf #F1F4ED;
   auf der getönten Fläche #E4F0DF: ink-mute 4,8 · link 5,0 · accent-text 4,5;
   Weiß auf accent (Knöpfe) 4,9.
   Schriften wie überall auf der Website (Fraunces, Instrument Sans über Bunny Fonts).
   ===================================================================== */
:root {
  --g-serif: var(--serif);
  --g-sans: var(--sans);
  --g-ink: #1B211B;
  --g-ink-soft: #57625A;
  --g-ink-mute: #5F6A62;
  --g-link: #276B2B;
  --g-accent: #C24A17;          /* Orange der Website (#F0642F) so weit abgedunkelt, dass weiße Schrift 4,5:1 hält */
  --g-accent-dark: #A63E12;
  --g-accent-text: #B9461A;
  --g-warn: #9B1C1C;            /* Rot der Giftmarke */
  --g-warn-bg: #FBEDEA;
  --g-ok: #2E7D32;
  --g-paper: #F1F4ED;           /* Seitenhintergrund (--field) */
  --g-paper-2: #E4F0DF;         /* Grün der App (--green-wash), auch Folienfarbe der Store-Bilder */
  --g-surface: #FFFFFF;
  --g-line: #D9E1D3;
  --g-app-bg: #E4F0DF;
  --g-radius: 16px;
  --g-maxw: 1120px;
  --g-gutter: 24px;
  --g-header-offset: 5.5rem;    /* fixierter Seitenkopf 64 px */
}

/* Fraunces der Website mit denselben Achsen wie auf allen anderen Seiten */
.gk h1, .gk h2, .gk h3, .gk .gk-promo-title { font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0; }

/* Giftmarke (rot, wie auf Arten- und alten Guide-Seiten) im Titelfoto und hinter Namen */
.gk .gk-fig--hero { position: relative; }
.gk .gk-fig--hero .lk-sev { position: absolute; top: .75rem; left: .75rem; font-size: .8125rem; padding: .2rem .65rem; }
.gk .lk-sev { display: inline-block; vertical-align: .2em; margin-left: .45em; font-size: .8125rem; line-height: 1.35; white-space: nowrap; }
.gk .gk-article > h3 .lk-sev { font-family: var(--g-sans); letter-spacing: 0; }

/* Zwei Fotos nebeneinander: gk-fig--pair mit je einem <figure> (Bild + eigene Unterschrift) */
.gk .gk-fig--pair > figure { margin: 0; min-width: 0; }
.gk .gk-fig--pair figcaption { font-size: .9375rem; }

/* CTA-Box am Ende: die offiziellen Store-Plaketten (wie in der Seitenleiste) statt Text-Knöpfen,
   damit beide Stores sofort erkennbar sind. Plaketten nie umfärben oder verzerren. */
.gk .gk-cta-stores { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin: 0; max-width: none; }
.gk .gk-cta-stores a { display: block; line-height: 0; border-radius: .5rem; transition: transform .15s ease; }
.gk .gk-cta-stores a:hover { transform: translateY(-2px); }
.gk .gk-cta-stores a:focus-visible { outline: 3px solid var(--g-paper); outline-offset: 3px; }
.gk .gk-cta-stores img { display: block; height: 3rem; width: auto; }

/* ---------- 3D-Vergleich (.gk-model): einziger eigener Baustein von Forage ----------
   Kasten in Textspaltenbreite mit den Kit-Tokens. Innen arbeitet der Viewer der App
   (/js/organ3d.js) mit seinen o3d-Klassen; hier werden nur Flächen, Schrift und
   Abstände an das Kit angeglichen. */
.gk-model {
  margin: 2rem 0; padding: 1.25rem 1.25rem 1rem; border-radius: var(--gk-radius);
  background: var(--g-paper-2); color: var(--g-ink-soft);
}
.gk .gk-model .o3d { margin: 0; padding: 0; background: none; border-radius: 0; }
.gk .gk-model .o3d-tabs { margin: 0 0 1rem; gap: .5rem; }
.gk .gk-model .o3d-tab {
  font-family: var(--g-sans); font-size: .875rem; font-weight: 650; color: var(--g-ink-soft);
  background: var(--g-surface); border: 1px solid var(--g-line); padding: .4rem .95rem;
}
.gk .gk-model .o3d-tab:hover { color: var(--g-ink); border-color: var(--g-ink-mute); }
.gk .gk-model .o3d-tab[aria-selected="true"] { background: var(--g-ink); border-color: var(--g-ink); color: var(--g-paper); }
.gk .gk-model .o3d-row { gap: 1rem; }
.gk .gk-model .o3d-card { background: var(--g-surface); border-radius: calc(var(--gk-radius) - 4px); padding: .625rem .625rem .875rem; }
.gk .gk-model .o3d-stage:focus-visible { box-shadow: 0 0 0 2px var(--g-ink); }
.gk .gk-model .o3d-card figcaption { padding: .35rem .25rem 0; font-size: .9375rem; line-height: 1.45; color: var(--g-ink-soft); }
.gk .gk-model .o3d-card figcaption b { font-family: var(--g-serif); font-weight: 500; font-size: 1.125rem; color: var(--g-ink); }
.gk .gk-model .o3d-card figcaption b a { color: inherit; }
.gk .gk-model .o3d-card figcaption em { color: var(--g-ink-mute); font-size: .875rem; }
.gk .gk-model .o3d-card figcaption span { color: var(--g-ink-soft); margin-top: .3rem; }
.gk .gk-model .o3d-photo figcaption, .gk .gk-model .o3d-card .o3d-photo figcaption { font-size: .75rem; line-height: 1.35; color: var(--g-ink-mute); padding: .3rem .1rem 0; }
.gk .gk-model .o3d-photo figcaption a { color: inherit; }
.gk .gk-model .o3d-photo .art-zoom, .gk .gk-model .o3d-photo img { border-radius: calc(var(--gk-radius) - 6px); }
.gk .gk-model .o3d-habit { background: var(--g-surface); border-radius: calc(var(--gk-radius) - 4px); }
.gk .gk-model .o3d-hname { font-family: var(--g-serif); fill: var(--g-ink); }
.gk .gk-model .o3d-hhuman { fill: var(--g-accent-text); }
.gk .gk-model .o3d-bar { padding: .75rem .125rem 0; }
.gk .gk-model .o3d-hint { font-size: .875rem; color: var(--g-ink-mute); }
.gk .gk-model .o3d-hint::before { color: var(--g-ink); }
.gk .gk-model .o3d-reset { font-family: var(--g-sans); font-size: .8125rem; color: var(--g-ink-soft); background: var(--g-surface); border-color: var(--g-line); }
.gk .gk-model > figcaption { margin: .875rem 0 0; padding-top: .75rem; border-top: 1px solid var(--g-line); font-size: .875rem; line-height: 1.5; color: var(--g-ink-mute); }
@media (max-width: 699px) {
  /* Kein Bild an den Bildschirmrand (Kevin, 26.11.2026): Kasten bleibt in der Textspalte */
  .gk-model { padding: .875rem .75rem .75rem; }
  .gk .gk-model .o3d { margin: 0; }
  .gk .gk-model .o3d-row { gap: .5rem; }
  .gk .gk-model .o3d-card { padding: .375rem .375rem .625rem; }
  .gk .gk-model .o3d-card figcaption { font-size: .8125rem; }
  .gk .gk-model .o3d-card figcaption b { font-size: 1rem; }
}
/* Titelzeile des Kastens wie die Box-Labels des Kits, mit Würfel-Symbol */
.gk-model {
  --gk-tone: var(--g-accent);
  --gk-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.8 20 7.2v9.6L12 21.2 4 16.8V7.2z'/%3E%3Cpath d='M4 7.2l8 4.4 8-4.4M12 11.6v9.6'/%3E%3C/svg%3E");
}
.gk .gk-model > .gk-tip-label { margin: 0 0 .9rem; }

/* Tabellen als Karten (Handy): Forage-Tabellen vergleichen meist Arten, die Spaltennamen
   ("Edelkastanie") sind länger als bei Pelican. Spalte für die Beschriftung breiter. */
@media (max-width: 699px) {
  .gk .gk-table--cards td { grid-template-columns: minmax(0, 1fr); gap: .1rem; padding: .3rem 0; }
}

/* Überschrift direkt über einer Zwischenüberschrift (z. B. Verwechslungsgefahr -> erster Doppelgänger):
   gleicher Abstand wie H2 -> Text */
.gk .gk-article > h2 + h3 { margin-top: .75rem; }
/* Kartentitel im Weiterlesen nicht trennen */
.gk .gk-related li, .gk .gk-related-title { hyphens: manual; }
@media (max-width: 699px) {
  .gk .gk-cta-stores { gap: .5rem; }
  .gk .gk-cta-stores img { height: 2.625rem; }
}
/* Bildnachweis: Namen und Lizenzen nie trennen (Handy) */
.gk .gk-credits { hyphens: manual; }
