/* Gestaltung der Artseiten unter /arten/ – ergänzt rechtliches.css */

/* Anspruchsstufen und Regionsfarben wie auf der Startseite (site/index.html) */
:root {
  --f-data: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --lvl1-bg: #DDEDE1; --lvl1-ink: #235F3C;
  --lvl2-bg: #F4E7CD; --lvl2-ink: #7E5108;
  --lvl3-bg: #F5DEDB; --lvl3-ink: #8E332C;
  --r-suedamerika: #2F7A55;
  --r-mittelamerika: #97681F;
  --r-asien: #37569B;
  --r-malawi: #0E6F88;
  --r-tanganjika: #5A4FA3;
  --r-victoria: #8A3D7A;
  --r-afrika: #86572A;
  --r-ozeanien: #A93C5C;
}
@media (prefers-color-scheme: dark) {
  :root {
    --lvl1-bg: #17331F; --lvl1-ink: #86C99C;
    --lvl2-bg: #38290D; --lvl2-ink: #DDAE5C;
    --lvl3-bg: #3A1D1A; --lvl3-ink: #E3948B;
    --r-suedamerika: #62B382;
    --r-mittelamerika: #D0A055;
    --r-asien: #8098D8;
    --r-malawi: #52AFC6;
    --r-tanganjika: #9B90DC;
    --r-victoria: #CC84BC;
    --r-afrika: #C39260;
    --r-ozeanien: #E1798F;
  }
}

.page-head { border-bottom: 4px solid var(--rc, var(--glow)); }
.kopf-oben { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.kopf-oben .eyebrow { margin: 0; }
.page-head h1 { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.page-head .sci { margin: 10px 0 0; font-style: italic; font-size: 1.15rem; color: var(--on-deep-2); }
.page-head .syn { margin: 4px 0 0; font-size: .92rem; color: var(--on-deep-2); }

.lvl { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.lvl1 { background: var(--lvl1-bg); color: var(--lvl1-ink); }
.lvl2 { background: var(--lvl2-bg); color: var(--lvl2-ink); }
.lvl3 { background: var(--lvl3-bg); color: var(--lvl3-ink); }

.back .lang { display: inline; }
.back .kurz { display: none; }
@media (max-width: 559px) {
  .back .lang { display: none; }
  .back .kurz { display: inline; }
}

.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 859px) { .detail { grid-template-columns: 1fr; } }
.spalte { display: grid; gap: 16px; }

.foto {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.foto img, .foto .leer { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #0A2326; }
.foto .leer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(231, 244, 242, .45); font-size: .9rem; }
.foto .leer svg { width: 96px; height: 96px; }
.foto figcaption { padding: 10px 16px; font-size: .82rem; color: var(--ink-3); overflow-wrap: anywhere; }
.foto figcaption a { color: inherit; }

.steckbrief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border-radius: 12px; overflow: hidden; background: var(--line); }
.steckbrief div { background: var(--surface-2); padding: 10px 14px; }
.steckbrief .breit { grid-column: 1 / -1; }
.steckbrief dt { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.steckbrief dd { margin: 3px 0 0; font: 500 1rem var(--f-data); }
.steckbrief .text dd { font-family: var(--f-body); }

/* Kasten „Passt gut zusammen mit“ */
.partner-liste { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 8px; }
.partner-liste li { margin: 0 !important; }
.partner {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 6px 10px 6px 6px; border-radius: 12px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s, background-color .15s;
}
.partner:hover { border-color: var(--accent); background: var(--surface-2); }
.partner img, .partner-leer { width: 72px; height: 48px; border-radius: 8px; object-fit: cover; background: #0A2326; display: block; }
.partner-leer { display: flex; align-items: center; justify-content: center; color: rgba(231, 244, 242, .45); }
.partner-leer svg { width: 32px; height: 32px; }
.partner-text { display: grid; min-width: 0; }
.partner-name { font-weight: 600; overflow-wrap: anywhere; }
.partner-wiss { font-size: .85rem; font-style: italic; color: var(--ink-2); overflow-wrap: anywhere; }
.passt-hinweis { margin-top: 12px !important; }
@media (max-width: 379px) { .partner .lvl { display: none; } }

/* Übersicht aller Arten von A bis Z */
.az { columns: 3 220px; column-gap: 24px; list-style: none; margin: 0; padding: 0 !important; }
.az li { break-inside: avoid; margin: 0 0 8px !important; }
.az a { text-decoration: none; color: inherit; }
.az a:hover .az-name { text-decoration: underline; text-underline-offset: 3px; }
.az-name { font-weight: 600; }
.az-wiss { display: block; font-size: .85rem; font-style: italic; color: var(--ink-2); }
