/* ============================================================
   Wildbiene oder wat? — App-Styles
   Mobile-first, Amber + Anthrazit, hell & dunkel.
   ============================================================ */

/* ---------- Design-Tokens ---------- */

:root {
  color-scheme: light;

  --amber-500: #f5b400;
  --amber-600: #d99e00;
  --amber-700: #a87a00;
  --amber-soft: rgba(245, 180, 0, 0.16);
  --amber-border: rgba(245, 180, 0, 0.5);

  --bg: #faf6ee;
  --surface: #ffffff;
  --surface-2: #f3eee1;
  --text: #23262b;
  --text-muted: #6a6e76;
  --border: #e6dfd0;

  --ok: #2f8f5b;
  --ok-soft: rgba(47, 143, 91, 0.13);
  --bad: #c4442e;
  --bad-soft: rgba(196, 68, 46, 0.12);

  --shadow-card: 0 10px 30px rgba(31, 33, 37, 0.16);
  --shadow-nav: 0 -4px 18px rgba(31, 33, 37, 0.08);

  --radius: 14px;
  --radius-lg: 22px;

  --nav-h: 62px;
  --nav-total: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --amber-500: #f6bd1e;
    --amber-600: #e3a900;
    --amber-700: #f0c246;
    --amber-soft: rgba(246, 189, 30, 0.16);
    --amber-border: rgba(246, 189, 30, 0.45);

    --bg: #141518;
    --surface: #1f2126;
    --surface-2: #282b31;
    --text: #f1ede2;
    --text-muted: #9ba0a8;
    --border: #34373e;

    --ok: #4fae78;
    --ok-soft: rgba(79, 174, 120, 0.16);
    --bad: #e06a52;
    --bad-soft: rgba(224, 106, 82, 0.15);

    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-nav: 0 -4px 18px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

/* Die weggewischte Karte ragt rechts aus dem Dokument (translateX). Ohne
   Clipping verbreitert das auf dem Handy den Viewport — und `position: fixed`
   (Reveal-Layer) sitzt dann nich mehr mittig. `clip` statt `hidden`, damit
   vertikal weiter normal gescrollt wird. */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* Fallback für Safari < 16 */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; }
p { margin: 0.4em 0; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 6px;
}
[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.muted { color: var(--text-muted); }

/* ---------- Layout ---------- */

/* Spalte, damit die Fußzeile auch bei kurzem Inhalt unten klebt statt
   mitten auf dem Schirm zu hängen. */
main {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Der Abstand zur fixen Bottom-Nav sitzt an der Fußzeile, nich mehr am Screen —
   sonst läge sie hinter der Nav. Nur der Spiel-Screen (ohne Fußzeile) bringt
   seinen eigenen Abstand mit. */
.screen { padding-bottom: 28px; }

.screen-head h1 {
  font-size: 1.6rem;
  margin: 18px 0 4px;
}

.section-title {
  font-size: 1.15rem;
  margin: 26px 0 4px;
}

.intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 4px 0 12px;
}

.noscript-note {
  position: fixed;
  inset: auto 12px 12px;
  background: var(--bad);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  text-align: center;
  z-index: 100;
}

/* ---------- Bottom-Navigation ---------- */

.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 60;
}

.bottom-nav a {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: var(--nav-h);
  padding: 6px 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.bottom-nav .nav-emoji {
  font-size: 1.35rem;
  transition: transform 0.15s ease;
}

.bottom-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.bottom-nav a[aria-current="page"] .nav-emoji { transform: scale(1.12); }

.bottom-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0; left: 22%; right: 22%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--amber-500);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--amber-500);
  color: #241b00;
  box-shadow: 0 6px 18px rgba(245, 180, 0, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
}

.btn--danger {
  background: transparent;
  border-color: var(--bad);
  color: var(--bad);
}

.btn--big {
  font-size: 1.15rem;
  padding: 16px 30px;
  border-radius: 18px;
}

/* ---------- Start-Screen ---------- */

/* Wächst in die freie Höhe, damit die Fußzeile drunter am unteren Rand
   sitzt und der Hero mittig bleibt. */
.screen--start {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.start-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 24px;
}

.start-logo {
  font-size: 4.4rem;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(245, 180, 0, 0.4));
}

.start-title {
  font-size: 2.3rem;
  margin: 8px 0 0;
}

.start-claim {
  margin: 2px 0 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber-700);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.start-intro {
  max-width: 34ch;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.start-counts {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Einordnung drunter: wie viel steckt in der Datenbank, wovon is dat ein Ausschnitt. */
.start-scope {
  margin-top: 5px;
  /* 34ch wie .start-intro, umgerechnet auf die kleinere Schrift — so steht der
     Satz in derselben Spaltenbreite wie der Text drüber. */
  max-width: 43ch;
  margin-inline: auto;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ---------- Fußzeile (alle Screens außer Spiel) ---------- */

.app-footer {
  margin-top: auto; /* schiebt sich bei kurzem Inhalt an den unteren Rand */
  padding: 18px 0 8px;
  padding-bottom: calc(var(--nav-total) + 12px);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.app-footer a { color: inherit; }

/* Baustellen-Hinweis: soll auffallen, ohne den Screen zu übernehmen. */
.app-footer__hinweis {
  margin: 0 auto 14px;
  max-width: 46ch;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
}

.app-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0;
}

.app-footer .copyright {
  margin: 10px 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* ---------- Spiel-Screen ---------- */

.screen--game {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding-top: 8px;
  padding-bottom: calc(var(--nav-total) + 10px);
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 2px;
  font-weight: 700;
  font-size: 0.95rem;
}

.hud-item { min-width: 3.2em; text-align: center; }
.hud-item:first-child { text-align: left; }
.hud-item:last-child { text-align: right; }

.card-stage {
  position: relative;
  flex: 1;
  min-height: 240px;
  margin: 8px 0 12px;
}

/* Swipe-Karte */

.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  will-change: transform;
}

.swipe-card.is-dragging { cursor: grabbing; }

.swipe-card__img {
  width: 100%;
  height: 100%;
  max-height: 75vh;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  background: var(--surface-2);
}

.swipe-label {
  position: absolute;
  top: 18px;
  padding: 8px 14px;
  border: 3px solid currentColor;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  opacity: 0;
  background: rgba(255, 255, 255, 0.88);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .swipe-label { background: rgba(24, 25, 29, 0.85); }
}

.swipe-label--yes {
  left: 14px;
  color: var(--ok);
  transform: rotate(-8deg);
}

.swipe-label--no {
  right: 14px;
  color: var(--bad);
  transform: rotate(8deg);
}

/* Antwort-Leiste */

.answer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
}

.btn-answer {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.btn-answer:active { transform: scale(0.97); }

.btn-answer--yes {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: var(--ok);
}

.btn-answer--no {
  color: var(--bad);
  background: var(--bad-soft);
  border-color: var(--bad);
}

.btn-answer--dunno {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding-inline: 12px;
}

.btn-answer:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Rundenauswertung versteckt die Antwort-Leiste */
.screen--game[data-state="roundEnd"] .answer-bar { visibility: hidden; }

/* Platzhalter & Meldungen im Stage */

.card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.loading-bee {
  font-size: 2.8rem;
  line-height: 1;
  animation: buzz 1.1s ease-in-out infinite;
}

@keyframes buzz {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  25%      { transform: translate(6px, -8px) rotate(5deg); }
  50%      { transform: translate(-4px, 4px) rotate(-3deg); }
  75%      { transform: translate(5px, 6px) rotate(6deg); }
}

.game-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.game-message__emoji { font-size: 2.6rem; line-height: 1; }

/* ---------- Reveal-Overlay ---------- */

.reveal-layer {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: var(--nav-total);
  z-index: 50;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(22, 19, 8, 0.5);
  padding: 16px 14px 30px;
}

.reveal-card {
  max-width: 492px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 0 18px 18px;
  animation: slide-up 0.28s ease-out;
  outline: none;
}

@keyframes slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.reveal-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -18px 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.reveal-banner.is-ok      { background: var(--ok-soft); }
.reveal-banner.is-bad     { background: var(--bad-soft); }
.reveal-banner.is-neutral { background: var(--surface-2); }

.reveal-banner__emoji { font-size: 2.1rem; line-height: 1; }
.reveal-banner__title { margin: 0; font-size: 1.3rem; font-weight: 800; }
.reveal-banner.is-ok  .reveal-banner__title { color: var(--ok); }
.reveal-banner.is-bad .reveal-banner__title { color: var(--bad); }
.reveal-banner__sub { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* Kopf: Text links, Vorschaubild rechts */
.reveal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reveal-head__text { flex: 1; min-width: 0; }

.reveal-thumb {
  position: relative;
  flex: none;
  width: 88px;
  height: 88px;
  margin-top: 8px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
}

.reveal-thumb__img { width: 100%; height: 100%; object-fit: cover; }

.reveal-thumb__zoom {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 2px 4px;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.88);
}

@media (prefers-color-scheme: dark) {
  .reveal-thumb__zoom { background: rgba(24, 25, 29, 0.85); }
}

.reveal-name { margin: 2px 0 0; font-size: 1.5rem; }
.reveal-sci { margin: 2px 0 8px; color: var(--text-muted); }
.reveal-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }

.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-style: normal;
  background: var(--surface-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.badge--group { background: var(--amber-soft); border-color: var(--amber-border); }
.badge--bee { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.badge--impostor { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.badge--soft { font-weight: 600; color: var(--text-muted); }

.reveal-difficulty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  font-size: 0.85rem;
}

.stars { color: var(--amber-600); letter-spacing: 2px; font-size: 1rem; }

.reveal-section {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.reveal-section h3 { margin: 0 0 4px; font-size: 1rem; }
.reveal-section p { margin: 4px 0; font-size: 0.92rem; }

/* Alles unter dem Weiter-Knopf liegt zugeklappt in <details class="reveal-acc">.
   Aufgeklappt wird von selbst nur die Falle — und nur, wer reingefallen is. */
.reveal-acc { margin: 8px 0; }
.reveal-acc p { font-size: 0.92rem; }
.reveal-acc.is-prominent {
  background: var(--bad-soft);
  border-color: var(--bad);
}

.reveal-mehr { margin: 12px 0 0; font-size: 0.9rem; }

.reveal-lernstand {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.stats-uebung { margin: 10px 0 4px; }
.stats-uebung .btn { width: 100%; }

/* ---------- Merkmale: die Erkennungshilfe als Chips ---------- */

.merkmal-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 8px 0 2px;
  padding: 0;
}

.merkmal { max-width: 100%; }
/* Aufgeklappt braucht der Hinweis die volle Zeile — sonst quetscht er sich
   neben den nächsten Chip. Die Klasse setzt reveal.js beim Aufklappen. */
.merkmal.is-open { flex-basis: 100%; }

.merkmal__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: left;
}

button.merkmal__btn { cursor: pointer; }
button.merkmal__btn:hover { border-color: var(--amber-600); }
span.merkmal__btn { cursor: default; }

.merkmal__emoji { font-size: 1rem; }

.merkmal.is-verrat .merkmal__btn {
  background: var(--ok-soft);
  border-color: var(--ok);
  font-weight: 700;
}

.merkmal.is-falle .merkmal__btn {
  background: var(--bad-soft);
  border-color: var(--bad);
  color: var(--text-muted);
}

.merkmal__hinweis {
  margin: 6px 2px 2px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* ---------- Brücke zum Helfen ---------- */

.reveal-bruecke {
  border-top: none;
  border: 1px solid var(--amber-border);
  border-radius: var(--radius);
  background: var(--amber-soft);
  padding: 12px 14px;
  margin-top: 12px;
}

.reveal-bruecke h3 { margin: 0 0 2px; }
.reveal-bruecke .btn { width: 100%; margin-top: 10px; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 8px 0 2px;
  padding: 0;
}

.chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  font-size: 0.85rem;
  font-weight: 600;
}

.chip--group {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  color: var(--text-muted);
}

.chip-legende {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Flugzeit-Kalender ---------- */

.season-text { font-weight: 600; }

.monatsleiste {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.monat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.monat__balken {
  width: 100%;
  height: 26px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.monat--aktiv .monat__balken {
  background: var(--amber-500);
  border-color: var(--amber-600);
}

.monat__label {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1;
}

/* Laufender Monat: Ring aussen herum, damit er in beiden Zustaenden auffaellt. */
.monat--jetzt .monat__balken {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.monat--jetzt .monat__label {
  color: var(--text);
  font-weight: 700;
}

.season-now {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reveal-crowd {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Das Tier spricht hier selbst — deswegen abgesetzt wie ein Zitat. */
.reveal-crowd--impostor {
  background: var(--bad-soft);
  border-left: 3px solid var(--bad);
}

.reveal-crowd--bee {
  background: var(--amber-soft);
  border-left: 3px solid var(--amber-border);
}

.reveal-attribution {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.reveal-attribution a,
.reveal-source a { color: inherit; }

.reveal-source { font-size: 0.85rem; margin: 8px 0 0; }

/* Der Weiter-Knopf steht im DOM vor den Aufklappern (also weit oben) und
   klebt beim Weiterlesen unten am Rand — so is er immer mit einem Daumen
   erreichbar, ohne dass man zurückscrollen muss. Der volle Hintergrund muss
   sein, weil der aufgeklappte Text darunter durchläuft. */
.reveal-next {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 14px -18px 0;
  padding: 10px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.reveal-next .btn { width: 100%; }

/* ---------- Lightbox (Foto formatfüllend) ---------- */

.lightbox {
  width: min(100vw - 20px, 940px);
  max-width: none;
  max-height: calc(100dvh - 20px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }

.lightbox__img {
  width: 100%;
  max-height: calc(100dvh - 96px);
  object-fit: contain;
  background: #000;
}

.lightbox__caption {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Rundenauswertung ---------- */

.round-card {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  animation: slide-up 0.28s ease-out;
  outline: none;
}

.round-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.round-score { font-size: 1.05rem; margin: 2px 0; line-height: 1.2; }
.round-score strong { font-size: 2.6rem; color: var(--amber-600); }
.round-score__emoji { font-size: 1.5rem; }

.round-best {
  margin: 0;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--amber-700);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- Level ---------- */

.round-level {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.round-level__emoji {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  font-size: 1.4rem;
}

.round-level__text { display: flex; flex-direction: column; }
.round-level__title { font-size: 1.15rem; font-weight: 800; }

.round-level__nr {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.round-meter {
  flex: none;
  height: 8px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.round-meter__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-600));
  transition: width 0.5s ease-out;
}

/* ---------- Diagnose ---------- */

.round-insights {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

/* Zeile für Zeile einfliegen — dat is der Abschlussmoment, kein Datenblatt. */
.round-insight {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.95rem;
  line-height: 1.35;
  animation: slide-up 0.3s ease-out backwards;
}

.round-insight:nth-child(1) { animation-delay: 0.14s; }
.round-insight:nth-child(2) { animation-delay: 0.28s; }
.round-insight:nth-child(3) { animation-delay: 0.42s; }

.round-streak { margin: 10px 0 0; color: var(--text-muted); font-size: 0.9rem; }

.round-bridge {
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--amber-500);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.round-boss {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.92rem;
}

.round-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.btn--bloom {
  background: var(--ok-soft);
  border-color: var(--ok);
  color: var(--ok);
}

/* ---------- Zahlen zur Runde (eingeklappt) ---------- */

.round-details {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.round-details > summary {
  cursor: pointer;
  padding: 6px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.round-details .btn { margin-top: 12px; width: 100%; }

/* ---------- Gruppen-Balken ---------- */

.group-bars { margin: 8px 0 0; }

.group-bar { margin: 10px 0; }

.group-bar__label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.group-bar__track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.group-bar__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--ok);
  transition: width 0.4s ease;
}

.group-bar__fill.is-mid { background: var(--amber-500); }
.group-bar__fill.is-low { background: var(--bad); }

/* ---------- Entdecken: Artenverzeichnis, Kalender, Fakten ---------- */

.klein-hinweis {
  margin: 6px 0 2px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Wat kannste diesen Monat tun? */

.monatstipps {
  margin: 2px 0 16px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(31, 33, 37, 0.06);
}

@media (prefers-color-scheme: dark) {
  .monatstipps { box-shadow: none; }
}

.monatstipps__kopf {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.monatstipps__titel {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.3;
  font-weight: 800;
}

.monatstipps__nav {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.monatstipps__pfeil {
  width: 34px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.monatstipps__lead {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.monatstipps__liste {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.monatstipp {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border-left: 3px solid var(--border);
}

.monatstipp--lassen { border-left-color: var(--bad); }
.monatstipp--machen,
.monatstipp--pflanzen { border-left-color: var(--ok); }
.monatstipp--gucken { border-left-color: var(--amber-600); }

.monatstipp__emoji { font-size: 1.4rem; line-height: 1.2; }

.monatstipp__art {
  display: inline-block;
  margin-bottom: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.monatstipp--lassen .monatstipp__art { background: var(--bad-soft); color: var(--bad); }
.monatstipp--gucken .monatstipp__art { background: var(--amber-soft); color: var(--amber-700); }

.monatstipp__titel { margin: 2px 0 0; font-weight: 700; font-size: 0.95rem; }
.monatstipp__text { margin: 3px 0 0; font-size: 0.88rem; color: var(--text-muted); }

.monatstipps__fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.monatstipps__hinweis {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.monatstipps__btn { min-height: 40px; padding: 8px 14px; font-size: 0.86rem; }

/* Schon gewusst? */

.faktbox {
  margin: 14px 0 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
}

.faktbox__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.faktbox__titel { font-weight: 800; }
.faktbox__tag { font-size: 0.74rem; color: var(--text-muted); }
.faktbox__text { margin: 6px 0 10px; font-size: 0.95rem; }
.faktbox__btn { min-height: 40px; padding: 8px 16px; font-size: 0.88rem; }

/* Monatswahl */

.monatswahl {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 4px;
}

.monatschip {
  flex: 1 1 auto;
  min-width: 2.9rem;
  min-height: 34px;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.monatschip.is-now { border-color: var(--amber-border); }

.monatschip.is-active {
  background: var(--amber-500);
  border-color: var(--amber-600);
  color: #241b00;
}

/* Suche und Filter */

.suchzeile { margin: 10px 0 6px; }

.suchfeld {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.filterchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.filterchip {
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.filterchip.is-active {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--text);
}

/* Artenzeile */

.species-row { padding: 0; overflow: hidden; }

.species-row__link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
}

.species-row__thumb {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
}

.species-row__thumb--leer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0.5;
}

.species-row__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.species-row__name { font-weight: 700; }
.species-row__sci { font-size: 0.78rem; font-style: italic; }

.species-row__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.species-row__badges .badge { font-size: 0.7rem; }
.species-row__season { font-size: 0.74rem; }
.species-row__chevron { color: var(--text-muted); font-size: 1.3rem; }

/* ---------- Steckbrief (#/art/<id>) ---------- */

.steckbrief-zurueck { margin: 14px 0 4px; font-size: 0.86rem; }
.steckbrief-kopf { margin-bottom: 10px; }
.steckbrief-name { font-size: 1.5rem; margin: 4px 0 0; }
.steckbrief-sci { margin: 0; font-style: italic; color: var(--text-muted); font-size: 0.9rem; }

.steckbrief-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}

.fotostreifen {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.fotostreifen .foto {
  flex: 0 0 82%;
  margin: 0;
  scroll-snap-align: center;
}

.fotostreifen--einzeln .foto { flex-basis: 100%; }

.foto img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.foto__credit {
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.steckbrief-nofoto {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.steckbrief-nofoto__emoji { font-size: 1.8rem; opacity: 0.6; }

.steckbrief-section {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.steckbrief-section h3 { margin: 0 0 6px; font-size: 1rem; }
.steckbrief-section p { font-size: 0.92rem; }
.steckbrief-section .btn { margin-top: 10px; }

/* ---------- Listen (Helfen / Entdecken / Credits) ---------- */

.list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.plant-row__name { flex: 1; font-weight: 700; }
.plant-row__count { font-size: 0.8rem; white-space: nowrap; }

.card-grid {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

/* ---------- Plakate ---------- */

.poster-grid { gap: 12px; }

.poster-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.poster-card__btn {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.poster-card__thumb {
  flex: 0 0 82px;
  width: 82px;
  height: auto;
  align-self: flex-start;
  border-radius: 8px;
  border: 1px solid var(--border);
  /* Hochkant-Plakat: nur der Kopf als Vorschau, sonst wird die Kachel riesig. */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-2);
}

.poster-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.poster-card__titel { font-weight: 800; font-size: 1.02rem; }
.poster-card__unter { font-size: 0.8rem; }
.poster-card__abriss { font-size: 0.86rem; margin-top: 4px; }

.poster-card__cta {
  margin-top: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--amber-700);
}

.poster-card__btn:hover .poster-card__cta,
.poster-card__btn:focus-visible .poster-card__cta { text-decoration: underline; }

/* Plakat formatfüllend */

.posterbox {
  width: min(100vw - 12px, 1100px);
  max-width: none;
  height: calc(100dvh - 12px);
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.posterbox::backdrop { background: rgba(0, 0, 0, 0.82); }

.posterbox__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.posterbox__titel {
  flex: 1;
  min-width: 0;
  font-size: 0.94rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posterbox__aktionen { display: flex; gap: 6px; flex: 0 0 auto; }

.posterbox__btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.posterbox__btn--close { padding: 6px 12px; }

.posterbox__frame {
  height: calc(100% - 55px);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  background: #0e0f11;
}

/* Eingepasst: ganzes Plakat sichtbar, nix scrollt. */
.posterbox__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

/* Reingezoomt: Originalbreite, der Rahmen scrollt. */
.posterbox__frame.is-zoom { overflow: auto; }

.posterbox__frame.is-zoom .posterbox__img {
  width: 1055px;
  max-width: none;
  height: auto;
  cursor: zoom-out;
}

.nest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.nest-card h3 { margin: 0 0 2px; font-size: 1.02rem; }
.nest-card p { margin: 3px 0; font-size: 0.88rem; }
.nest-card__examples { font-size: 0.8rem; }

.impostor-row__rank {
  font-size: 1.15rem;
  min-width: 2rem;
  text-align: center;
  font-weight: 800;
}

.impostor-row__names { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.impostor-row__names em { font-size: 0.8rem; }
.impostor-row__names .badge { align-self: flex-start; }

.impostor-row__pct {
  text-align: right;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--bad);
}

.impostor-row__pct small {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.credit-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.credit-row__links { display: flex; gap: 12px; }
.credit-row__links a { color: var(--text-muted); }

/* ---------- Status (Laden / Fehler) ---------- */

.status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Statistik ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 6px;
  text-align: center;
}

.stat-tile__value { font-size: 1.3rem; font-weight: 800; }
.stat-tile__label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.boss-line {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.92rem;
}

.stats-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}

.stats-empty__emoji { font-size: 3rem; line-height: 1; }

.stats-reset { margin-top: 22px; text-align: center; }

/* ---------- Helfen: gefuehrter Ablauf ---------- */

.stepper {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 14px 0 6px;
  padding: 0;
}

.stepper__item { flex: 1; }

.stepper__btn {
  width: 100%;
  min-height: 42px;
  padding: 6px 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.stepper__btn.is-current {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--text);
}

.stepper__btn:disabled { opacity: 0.45; cursor: not-allowed; }

.help-step-title { font-size: 1.25rem; margin: 16px 0 2px; }

.help-place-line {
  margin: 2px 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.help-lead { font-size: 0.9rem; color: var(--text-muted); margin: 2px 0 10px; }

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 6px;
}

.help-actions .btn { flex: 1 1 auto; }

/* Standort-Kacheln */

.place-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 4px;
}

.place-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.place-tile.is-active {
  border-color: var(--amber-500);
  background: var(--amber-soft);
  box-shadow: 0 0 0 1px var(--amber-500) inset;
}

.place-tile__emoji { font-size: 1.7rem; line-height: 1.2; }
.place-tile__title { font-weight: 800; }
.place-tile__sub { font-size: 0.75rem; color: var(--text-muted); }

/* Inhaltskarten, Regeln, Aufklapper */

.help-card {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.help-card__title { margin: 0 0 4px; font-size: 1.02rem; }

.help-season { margin-top: 12px; }

.help-season__label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.help-plants { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.help-plant {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
}

.help-plant__name { font-weight: 700; font-size: 0.92rem; }
.help-plant__note { font-size: 0.8rem; color: var(--text-muted); }

.help-bullets { margin: 6px 0; padding-left: 20px; font-size: 0.88rem; }
.help-bullets li { margin-bottom: 5px; }
.help-bullets--bad li::marker { color: var(--bad); }

.help-acc {
  margin: 10px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.help-acc > summary,
.guide__summary {
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.help-acc > summary::-webkit-details-marker,
.guide__summary::-webkit-details-marker { display: none; }

.help-acc > summary::after,
.guide__summary::after {
  content: "▾";
  float: right;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.help-acc[open] > summary::after,
.guide[open] .guide__summary::after { transform: rotate(180deg); }

.help-acc > *:not(summary) { margin-left: 14px; margin-right: 14px; }
.help-acc > *:last-child { margin-bottom: 12px; }

.help-rule { margin: 8px 0; font-size: 0.88rem; }
.help-rule p { margin: 2px 0 0; color: var(--text-muted); }

.help-note {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  font-size: 0.86rem;
}

.help-note--soil {
  background: var(--surface-2);
  border-color: var(--border);
}

.linkish {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Warnblock „Finger weg vom Baumarkt-Hotel" */

.help-warn {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--bad);
  background: var(--bad-soft);
}

.help-warn__title { margin: 0 0 4px; font-size: 1.02rem; }
.help-warn p { font-size: 0.88rem; }
.help-warn__hint { font-weight: 600; }

.help-warn__depth {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.85rem;
}
.help-warn .help-acc { background: var(--surface); }

/* Beratung: Wilde Biene e.V. */

.help-partner {
  margin-top: 18px;
  border-color: var(--ok);
  background: var(--ok-soft);
}

.help-partner__place {
  margin: 6px 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.help-partner__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.help-partner__contact {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.help-partner__note {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Bau-Anleitungen */

.guide-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }

.guide {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.guide__summary { display: block; }

.guide__level {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.guide__title { font-size: 0.98rem; }

.guide > *:not(summary) { margin-left: 14px; margin-right: 14px; }
.guide > *:last-child { margin-bottom: 14px; }

.guide__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }

.guide__chip {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.74rem;
  white-space: nowrap;
}

.guide__head { margin: 12px 0 2px; font-size: 0.86rem; }

.guide__steps { margin: 6px 0; padding-left: 20px; font-size: 0.88rem; }
.guide__steps li { margin-bottom: 6px; }

/* Schnellzugriff „Wat kannste jetzt machen?" */

.help-acc--today {
  border-color: var(--amber-border);
  background: var(--amber-soft);
}

.help-acc--today > .today__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-right: 34px; /* Platz fuer den Pfeil aus .help-acc > summary::after */
}

.today__label { flex: 1; }

.today__count {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--amber-border);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.help-acc--today > summary::after { position: absolute; right: 14px; float: none; }

.help-acc--nested {
  margin-top: 12px;
  background: var(--surface);
}

.action-group__title {
  margin: 14px 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 560px) {
  .action-grid { grid-template-columns: 1fr 1fr; }
}

.action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.action:hover { border-color: var(--amber-500); }

.action__head { display: flex; align-items: baseline; gap: 8px; }
.action__emoji { font-size: 1.2rem; line-height: 1; }
.action__title { font-weight: 800; font-size: 0.95rem; }

.action__scales {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.action__scale { display: inline-flex; align-items: center; gap: 6px; }
.action__scale-label { font-weight: 700; }
.action__dots { display: inline-flex; gap: 3px; }

.action__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
}

.action__dots--aufwand .action__dot.is-on {
  background: var(--text-muted);
  border-color: var(--text-muted);
}

.action__dots--wirkung .action__dot.is-on {
  background: var(--ok);
  border-color: var(--ok);
}

.action__meta { display: flex; flex-wrap: wrap; gap: 5px; }

.action__chip {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.72rem;
  white-space: nowrap;
}

.action__chip--now {
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 700;
}

.action__hilft { font-size: 0.8rem; }
.action__note { font-size: 0.78rem; color: var(--text-muted); }

.action__go {
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--amber-700);
}

/* ---------- Toast & Mock-Badge ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-total) + 16px);
  transform: translateX(-50%) translateY(16px);
  max-width: 88vw;
  padding: 10px 18px;
  border-radius: 999px;
  background: #23262b;
  color: #f7f4ea;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 80;
}

@media (prefers-color-scheme: dark) {
  .toast { background: #f1ede2; color: #23262b; }
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mock-badge {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 90;
  padding: 4px 10px;
  border-radius: 999px;
  background: #7b3fbf;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.92;
  pointer-events: none;
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Desktop ---------- */

@media (min-width: 700px) {
  main { max-width: 480px; }

  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
  }

  .screen--game { height: 100vh; }

  .swipe-card { cursor: grab; }
}
