/* WaldQuiz Sachsen-Anhalt – Gestaltung */
:root {
  --bg: #f4f1e8;
  --bg2: #ebe6d6;
  --card: #fffdf7;
  --text: #22291f;
  --muted: #5d6657;
  --line: #d8d1bd;
  --accent: #2f6b3f;
  --accent-2: #3f8a52;
  --accent-soft: #dcead9;
  --bark: #7a5a3a;
  --ok: #2e7d32;
  --ok-soft: #e1f1df;
  --bad: #b3261e;
  --bad-soft: #f8e1dd;
  --warn: #a86b00;
  --warn-soft: #fbefd5;
  --shadow: 0 1px 2px rgba(40, 35, 20, .06), 0 4px 14px rgba(40, 35, 20, .06);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161a15; --bg2: #1d231c; --card: #20271f; --text: #e6eadf; --muted: #a3ad9c; --line: #334030;
    --accent: #7cc48c; --accent-2: #93d4a1; --accent-soft: #263827; --bark: #c9a37a;
    --ok: #86d18f; --ok-soft: #1f3522; --bad: #f08c82; --bad-soft: #3a2320; --warn: #e3b25a; --warn-soft: #3a2f1a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #161a15; --bg2: #1d231c; --card: #20271f; --text: #e6eadf; --muted: #a3ad9c; --line: #334030;
  --accent: #7cc48c; --accent-2: #93d4a1; --accent-soft: #263827; --bark: #c9a37a;
  --ok: #86d18f; --ok-soft: #1f3522; --bad: #f08c82; --bad-soft: #3a2320; --warn: #e3b25a; --warn-soft: #3a2f1a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hidden { display: none !important; }

/* Kopf */
.topbar {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar .inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.brand svg { width: 30px; height: 30px; }
.brand small { display: block; font-family: var(--font); font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav.main a {
  text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 999px; font-size: .93rem;
}
nav.main a:hover { background: var(--bg2); color: var(--text); }
nav.main a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

main { max-width: 1080px; margin: 0 auto; padding: 22px 16px 60px; }
footer.site { max-width: 1080px; margin: 0 auto; padding: 18px 16px 40px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
footer.site a { color: var(--muted); }

/* Karten & Raster */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.modes { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.species { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.stack > * + * { margin-top: 14px; }

.hero { display: grid; gap: 18px; grid-template-columns: 1.4fr 1fr; align-items: center; margin-bottom: 24px; }
.hero p.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.hero .art svg { width: 100%; height: auto; max-height: 200px; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } .hero .art { display: none; } }

.mode { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); transition: transform .12s, border-color .12s; }
.mode:hover { transform: translateY(-2px); border-color: var(--accent); }
.mode .ico { font-size: 1.6rem; }
.mode strong { font-family: var(--serif); font-size: 1.1rem; }
.mode span { color: var(--muted); font-size: .92rem; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; text-decoration: none; color: var(--text);
  font-weight: 500; min-height: 44px;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #0f1a10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0f1a10; } }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* Auswahl-Chips */
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; margin-bottom: 8px; font-family: var(--serif); font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle { position: relative; }
.chip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chip-toggle span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; user-select: none; font-size: .95rem; min-height: 40px;
}
.chip-toggle input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.level-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.level-cards .chip-toggle span { border-radius: 12px; flex-direction: column; align-items: flex-start; padding: 12px 14px; width: 100%; height: 100%; }
.level-cards .chip-toggle { display: flex; }
.level-cards small { font-weight: 400; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--bg2); color: var(--muted); font-size: .82rem; }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }

/* Quiz */
.quiz-wrap { max-width: 760px; margin: 0 auto; }
.progress { height: 8px; background: var(--bg2); border-radius: 999px; overflow: hidden; margin: 8px 0 16px; }
.progress > div { height: 100%; background: var(--accent); transition: width .25s; }
.qhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.qhead .timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.qhead .timer.low { color: var(--bad); }
.question h2 { font-size: 1.3rem; margin-top: 10px; }
.zitat {
  margin: 12px 0 16px; padding: 14px 16px; border-left: 4px solid var(--bark); background: var(--bg2); border-radius: 0 10px 10px 0;
  font-family: var(--serif); font-size: 1.08rem;
}
.answers { display: grid; gap: 10px; margin-top: 12px; }
.answer {
  text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; display: flex; gap: 12px; align-items: flex-start; min-height: 48px; line-height: 1.4;
}
.answer .key { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--bg2); display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; color: var(--muted); font-weight: 600; }
.answer:hover:not(:disabled) { border-color: var(--accent); }
.answer.correct { background: var(--ok-soft); border-color: var(--ok); }
.answer.correct .key { background: var(--ok); color: #fff; }
.answer.wrong { background: var(--bad-soft); border-color: var(--bad); }
.answer.wrong .key { background: var(--bad); color: #fff; }
.answer.chosen { border-color: var(--accent); background: var(--accent-soft); }
.answer:disabled { cursor: default; }
.freitext { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.freitext input { flex: 1 1 240px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); min-height: 48px; }
.freitext input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.feedback { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.feedback.ok { background: var(--ok-soft); border-color: var(--ok); }
.feedback.bad { background: var(--bad-soft); border-color: var(--bad); }
.feedback strong.verdict { display: block; margin-bottom: 4px; }
.tipp { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--text); font-size: .95rem; }

/* Medien */
.media { margin: 12px 0; }
.media img { width: 100%; max-height: 440px; object-fit: contain; background: var(--bg2); border-radius: 12px; }
.media.thumb img { height: 150px; object-fit: cover; max-height: none; border-radius: 10px 10px 0 0; }
.media figcaption { font-size: .74rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.media figcaption a { color: var(--muted); }
.media.audio audio { width: 100%; }
.media-loading { height: 240px; border-radius: 12px; background: linear-gradient(90deg, var(--bg2), var(--card), var(--bg2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
@media (prefers-reduced-motion: reduce) { .media-loading { animation: none; } .mode { transition: none; } }

/* Artenkarten */
.sp-card { padding: 0; overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.sp-card .img { height: 120px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; overflow: hidden; }
.sp-card .img img { width: 100%; height: 100%; object-fit: cover; }
.sp-card .body { padding: 10px 12px 12px; }
.sp-card strong { display: block; line-height: 1.25; }
.sp-card em { color: var(--muted); font-size: .84rem; }
.sp-card .lvl { float: right; font-size: .7rem; color: var(--muted); }
.sp-card:hover { border-color: var(--accent); }
.search { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); min-height: 44px; }

/* Steckbrief */
.detail-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .detail-head { grid-template-columns: 1fr; } }
.detail-head .latin { font-style: italic; color: var(--muted); font-size: 1.05rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery .g-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery .g-item .lab { padding: 6px 10px 0; font-weight: 600; font-size: .85rem; }
.gallery .g-item figure { margin: 0; }
.gallery .g-item figcaption { padding: 0 10px 8px; }
.gallery .g-item.wide { grid-column: 1 / -1; }
.facts { width: 100%; border-collapse: collapse; font-size: .95rem; }
.facts th, .facts td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 500; width: 40%; }
.merkmale { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.merkmale li { padding: 10px 12px; background: var(--bg2); border-radius: 10px; }
.merkmale li b { color: var(--bark); margin-right: 6px; }
.sb-section { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sb-section:last-child { border-bottom: 0; }
.sb-section h3 { margin-bottom: 4px; color: var(--accent); font-family: var(--font); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.sb-section.sa { background: var(--accent-soft); padding: 12px 14px; border-radius: 10px; border: 0; margin: 6px 0; }
.sb-section.idee { background: var(--warn-soft); padding: 12px 14px; border-radius: 10px; border: 0; margin: 6px 0; }

/* Statistik */
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 60px; gap: 10px; align-items: center; font-size: .92rem; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 110px 1fr 48px; } }
.bar { height: 12px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi b { display: block; font-size: 1.7rem; font-family: var(--serif); }
.kpi span { color: var(--muted); font-size: .85rem; }
.boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 140px; }
.boxes .bx { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: .8rem; color: var(--muted); }
.boxes .bx div { width: 100%; background: var(--accent); border-radius: 6px 6px 0 0; min-height: 3px; }
.boxes .bx.b0 div { background: var(--line); }

/* Ergebnis */
.result-score { font-size: 3rem; font-family: var(--serif); line-height: 1; }
.review { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.review li { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.review li.bad { border-left: 4px solid var(--bad); }
.review li.ok { border-left: 4px solid var(--ok); }

/* Hinweis-Leiste */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 760px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 16px 18px;
}
.notice { padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); font-size: .93rem; }
.notice.info { background: var(--accent-soft); }

/* Dialog */
dialog.detail { width: min(920px, 96vw); max-height: 90vh; border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--bg); color: var(--text); }
dialog.detail::backdrop { background: rgba(10, 15, 10, .5); }
dialog.detail .dlg-head { position: sticky; top: 0; background: var(--bg); padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: flex-end; z-index: 2; }
dialog.detail .dlg-body { padding: 18px; }

/* Bildauswahl */
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cand { border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg2); cursor: pointer; padding: 0; text-align: left; }
.cand img { height: 110px; width: 100%; object-fit: cover; }
.cand .t { font-size: .7rem; padding: 4px 6px; color: var(--muted); word-break: break-word; line-height: 1.25; }
.cand.sel { border-color: var(--accent); }
.cand.alt { border-color: var(--warn); }
div.cand { cursor: default; }
textarea.export { width: 100%; min-height: 160px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Arten erkennen */
.mode.feature { flex-direction: column; border: 2px solid var(--accent); background: var(--accent-soft); padding: 22px; }
.mode.feature strong { font-size: 1.35rem; }
.bildhinweis { margin: 8px 0 4px; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); font-size: .95rem; }
.bildwahl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
@media (max-width: 520px) { .bildwahl { gap: 6px; } }
.bw-opt { position: relative; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); cursor: pointer; display: flex; flex-direction: column; text-align: left; }
.bw-opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bw-opt .key { position: absolute; top: 8px; left: 8px; z-index: 1; width: 26px; height: 26px; border-radius: 7px; background: rgba(0,0,0,.55); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 600; }
.bw-opt .bw-cap { font-size: .68rem; color: var(--muted); padding: 4px 8px; line-height: 1.3; }
.bw-opt .bw-name { display: block; padding: 6px 8px 8px; font-weight: 600; }
.bw-opt:hover:not(:disabled) { border-color: var(--accent); }
.bw-opt.correct { border-color: var(--ok); background: var(--ok-soft); }
.bw-opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.bw-opt.chosen { border-color: var(--accent); }
.bw-opt:disabled { cursor: default; }
.bw-credits { margin-top: 8px; line-height: 1.5; }
.bw-credits a { color: var(--muted); }
.rg-status { margin: 10px 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rg-prev { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.rg-prev figure { margin: 0; width: 96px; }
.rg-prev img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.rg-prev figcaption { font-size: .72rem; color: var(--muted); text-align: center; }
.g-hint { padding: 2px 10px 6px; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.uebersicht { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.uebersicht figure { margin: 0; }
.uebersicht img, .uebersicht .leer { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; background: var(--bg2); }
.uebersicht .leer { display: flex; align-items: center; justify-content: center; font-size: .75rem; color: var(--bad); }
.uebersicht figcaption { font-size: .72rem; color: var(--muted); text-align: center; }

/* Profile */
.profil-chip { text-decoration: none; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .9rem; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.profil-chip:hover, .profil-chip.active { border-color: var(--accent); color: var(--accent); }
.profil-card.aktiv { border: 2px solid var(--accent); }
.p-icon { font-size: 2rem; line-height: 1; }
.icon-opt { font-size: 1.25rem; padding: 4px 10px !important; }
.gruss { margin-bottom: 6px; color: var(--muted); }
@media (max-width: 1350px) {
  nav.main { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; margin-left: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  nav.main a { white-space: nowrap; }
  .profil-chip { margin-left: auto; }
}

/* Verwechslungs-Trainer */
.vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.vg-kopf { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.vg-zeile { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
.vg-zeile h3 { margin: 0; color: var(--accent); font-family: var(--font); font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.vg-zelle .media img { max-height: 260px; }
.vg-zelle p { font-size: .93rem; }

/* Methodenkartei */
.methode .lead { font-size: 1.05rem; color: var(--muted); }
.methode ol li { margin-bottom: 6px; }
@media print { .topbar, footer.site, .row button, .row a.btn { display: none !important; } body { background: #fff; } .card { box-shadow: none; border: 0; } }

/* Memory */
.memory { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.memory.n16 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .memory { grid-template-columns: repeat(3, 1fr); } }
.mem-karte { position: relative; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 12px; background: var(--accent); cursor: pointer; padding: 0; overflow: hidden; }
.mem-karte .rueck { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.mem-karte .vorder { position: absolute; inset: 0; display: none; background: var(--card); align-items: center; justify-content: center; }
.mem-karte.auf .vorder, .mem-karte.fertig .vorder { display: flex; }
.mem-karte.auf .rueck, .mem-karte.fertig .rueck { display: none; }
.mem-karte img { width: 100%; height: 100%; object-fit: cover; }
.mem-text { padding: 8px; font-weight: 600; font-family: var(--serif); text-align: center; color: var(--text); }
.mem-typ { position: absolute; top: 4px; left: 4px; font-size: .65rem; background: rgba(0,0,0,.55); color: #fff; padding: 1px 6px; border-radius: 6px; }
.mem-name { position: absolute; bottom: 0; left: 0; right: 0; background: var(--ok); color: #fff; font-size: .75rem; padding: 3px 4px; text-align: center; }
.mem-karte.fertig { border-color: var(--ok); cursor: default; }

/* Alternativbilder */
.alt-bar { margin: 4px 0 8px; }
.g-alt { display: flex; gap: 4px; padding: 0 10px 8px; }
.g-alt-btn { padding: 0; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--bg2); width: 48px; height: 36px; }
.g-alt-btn:hover { border-color: var(--accent); }
.g-alt-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Arten benennen */
.bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0 6px; }
.bn-cell { position: relative; border-radius: 12px; overflow: hidden; background: var(--accent-soft); min-height: 160px; display: flex; flex-direction: column; }
.bn-cell .media-loading { height: 180px; }
.bn-img { all: unset; cursor: zoom-in; display: block; position: relative; }
.bn-img:focus-visible { outline: 3px solid var(--accent); }
.bn-img img { width: 100%; height: 220px; object-fit: cover; display: block; }
.bn-tag { position: absolute; left: 8px; top: 8px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.bn-cap { padding: 4px 8px 6px; line-height: 1.3; }
.bn-rev { display: flex; gap: 6px; margin: 6px 0; flex-wrap: wrap; }
.bn-rev img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 1.6rem; cursor: pointer; }
.lightbox .lb-close { top: 12px; right: 12px; font-size: 1.2rem; }
.lightbox .prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; }
@media (max-width: 520px) { .bn-grid { grid-template-columns: 1fr 1fr; gap: 6px; } .bn-img img { height: 140px; } }
@media (max-width: 520px) { .bn-cap { font-size: .7rem; } }

/* Gegenüberstellung */
.gegen { margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.gegen h4 { margin: 0 0 8px; }
.gg-tipp { margin: 0 0 10px; padding: 8px 10px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 6px; }
.gg-grid { display: grid; grid-template-columns: 8.5em 1fr 1fr; gap: 6px 10px; align-items: start; font-size: .92rem; }
.gg-kopf { display: flex; flex-direction: column; gap: 2px; }
.gg-kopf span { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.gg-kopf.du b { color: #c0503f; } .gg-kopf.ziel b { color: var(--accent); }
.gg-foto { min-height: 20px; margin-top: 4px; }
.gg-foto img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; display: block; }
.gg-lab { font-weight: 600; padding-top: 6px; border-top: 1px solid var(--line); }
.gg-du, .gg-ziel { padding-top: 6px; border-top: 1px solid var(--line); }
.gg-du { color: var(--muted); }
.gg-kenn { margin: 6px 0 0; padding-left: 1.2em; }
.review .gegen { margin-top: 8px; }
@media (max-width: 620px) {
  .gg-grid { grid-template-columns: 1fr 1fr; }
  .gg-grid > .gg-lab { grid-column: 1 / -1; }
  .gg-grid > .gg-lab:first-child { display: none; }
  .gg-foto img { height: 110px; }
}
