/* Clocktower Bremen: gemeinsames Stylesheet für alle Seiten.
   Layout: eine ruhige Spalte (max. 880px). Jedes Spiel hat genau eine Farbe
   (Werwolf = Mondblau, Blood on the Clocktower = Blutrot), dazu Icon und Name,
   damit der Unterschied nie nur an der Farbe hängt. Die Spielfarbe wird über
   data-game gesetzt (auf Karten, Badges und auf <main> der Spielseiten). */
:root {
  --bg: #F5F5F8;
  --surface: #FFFFFF;
  --ink: #16171D;
  --ink-soft: #565A69;
  --line: #DEDFE6;
  --on-accent: #FFFFFF;
  --werwolf: #2F4FA3;
  --werwolf-tint: #E6EBF8;
  --botc: #A8203A;
  --botc-tint: #F8E6EA;
  --community: #12803F;
  --community-tint: #E3F3EA;
  --g: var(--ink);
  --g-tint: var(--line);
  --mark: #FFF0B3;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1015;
    --surface: #181A21;
    --ink: #ECEDF2;
    --ink-soft: #A0A4B3;
    --line: #2A2D38;
    --on-accent: #0F1015;
    --werwolf: #8DA6F0;
    --werwolf-tint: #1E2438;
    --botc: #F0707F;
    --botc-tint: #35181E;
    --community: #5FD39A;
    --community-tint: #14291F;
    --mark: #4A3F10;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1015;
  --surface: #181A21;
  --ink: #ECEDF2;
  --ink-soft: #A0A4B3;
  --line: #2A2D38;
  --on-accent: #0F1015;
  --werwolf: #8DA6F0;
  --werwolf-tint: #1E2438;
  --botc: #F0707F;
  --botc-tint: #35181E;
  --community: #5FD39A;
  --community-tint: #14291F;
  --mark: #4A3F10;
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding-block: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 880px; margin-inline: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* Spielfarben */
[data-game="werwolf"] { --g: var(--werwolf); --g-tint: var(--werwolf-tint); }
[data-game="botc"] { --g: var(--botc); --g-tint: var(--botc-tint); }

/* Vorschau-Hinweis */
.preview {
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px dashed var(--ink-soft);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Kopf */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dots i:first-child { background: var(--werwolf); }
.dots i:last-child { background: var(--botc); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--ink); text-decoration: underline; }

/* Brotkrumen */
.crumbs { padding-block: 8px 0; font-size: 0.85rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-hidden] { margin-inline: 6px; }

/* Startseite: Hero */
.hero { padding-block: 28px 44px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero h1 {
  margin-top: 14px;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.lead {
  margin-top: 18px;
  max-width: 56ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}
.next:hover { border-color: var(--ink-soft); }
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.next .what { font-weight: 650; }
.next .go { margin-left: auto; color: var(--ink-soft); font-size: 0.9rem; }

/* Abschnitte */
.block { padding-block: 24px 40px; scroll-margin-top: 8px; }
.block h2, .prose h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
  scroll-margin-top: 12px;
}
.section-lead { margin-top: 8px; max-width: 62ch; color: var(--ink-soft); }

.month {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.month::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.events { display: grid; gap: 10px; }

.event {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 7px;
  border-radius: 6px;
  background: var(--g-tint);
  color: var(--g);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.date .wd, .date .mon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.date .day { margin-block: 3px 2px; font-size: 1.85rem; font-weight: 760; letter-spacing: -0.03em; }
.info { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  border-radius: 4px;
  background: var(--g-tint);
  color: var(--g);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.badge svg { flex: none; }
.when { font-weight: 560; overflow-wrap: anywhere; }
.cta { display: grid; gap: 6px; justify-items: end; text-align: right; }
.cta-note { font-size: 0.78rem; color: var(--ink-soft); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--g);
  border-radius: 6px;
  background: var(--g);
  color: var(--on-accent);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.btn.quiet:hover { filter: none; background: var(--g-tint); }
.btn.off { background: transparent; color: var(--ink-soft); border-color: var(--line); cursor: default; }
.btn.off:hover { filter: none; }
.hint { margin-top: 20px; max-width: 64ch; font-size: 0.92rem; color: var(--ink-soft); }
.empty { margin-top: 20px; padding: 20px; border: 1px dashed var(--line); border-radius: 8px; color: var(--ink-soft); }

/* Spielkarten auf der Startseite */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.game { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; }
.game .icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: var(--g-tint); color: var(--g); }
.game h3 { margin-top: 16px; font-size: 1.15rem; font-weight: 720; letter-spacing: -0.015em; color: var(--g); }
.game p { margin-top: 8px; color: var(--ink-soft); }
.game .more { margin-top: auto; padding-top: 16px; font-weight: 650; color: var(--g); }

/* Nummerierte Schritte (echte Reihenfolge) */
.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 20px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--g-tint);
  color: var(--g);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.steps strong { font-weight: 700; padding-top: 6px; }
.steps span { color: var(--ink-soft); max-width: 62ch; }

/* Spielseiten (lange Texte) */
.prose { padding-block: 8px 40px; }
.prose .badge { margin-top: 20px; }
.prose h1 {
  margin-top: 14px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 3rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.07;
  text-wrap: balance;
}
.prose section { padding-top: 36px; }
.prose p { margin-top: 12px; max-width: 66ch; line-height: 1.68; }
.prose h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.prose ul.plain { margin-top: 12px; display: grid; gap: 10px; max-width: 66ch; }
.prose ul.plain li { padding-left: 18px; position: relative; line-height: 1.6; }
.prose ul.plain li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--g); }
.prose .weiter { display: grid; gap: 10px; max-width: 560px; margin-top: 22px; padding: 0; list-style: none; }
.prose .weiter a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.prose .weiter a:hover { border-color: var(--ink-soft); }
.prose .weiter strong { font-size: 1.05rem; }
.prose .weiter span { font-size: 0.92rem; color: var(--ink-soft); }
.prose a { color: var(--g); font-weight: 600; }
.prose .btn { color: var(--on-accent); font-weight: 650; }
.prose .btn.quiet { color: var(--ink); }
.toc { margin-top: 28px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; max-width: 66ch; }
.toc ul { margin-top: 10px; display: grid; gap: 4px; }
.toc a { color: var(--ink); font-weight: 500; text-decoration: none; display: inline-block; padding-block: 3px; }
.toc a:hover { text-decoration: underline; }
.teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.team { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.team h3 { color: var(--ink); }
.team dl { margin-top: 10px; display: grid; gap: 10px; }
.team dt { font-weight: 700; color: var(--g); }
.team dd { color: var(--ink-soft); }
.roles { margin-top: 16px; display: grid; gap: 10px; max-width: 66ch; }
.roles div { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.roles dt { font-weight: 700; color: var(--g); }
.roles dd { margin-top: 2px; color: var(--ink-soft); }
.next-dates { display: grid; gap: 8px; margin-top: 16px; max-width: 66ch; }
.nd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.nd .what { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.nd .btn { min-height: 40px; padding: 0 14px; }
.nd-info { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.nowrap { white-space: nowrap; }

/* Treffpunkt mit Link zur Route in Google Maps */
.place, .place-plain {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding-block: 2px;
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}
.place svg, .place-plain svg { flex: none; margin-top: 3px; color: var(--g); }
.place > span:first-of-type { overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.place:hover > span:first-of-type { text-decoration-color: var(--g); }
.route { flex: none; margin-left: 2px; font-size: 0.78rem; font-weight: 650; color: var(--g); white-space: nowrap; padding-top: 1px; }
.cta-box { margin-top: 16px; padding: 22px; background: var(--g-tint); border-radius: 8px; max-width: 66ch; }
.cta-box p { margin-top: 0; }
.cta-box .btn-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Häufige Fragen */
.faq { margin-top: 16px; max-width: 66ch; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-soft); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; color: var(--ink-soft); }

/* Fuß */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px 44px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.foot nav { display: flex; gap: 20px; }

/* Rechtstexte */
.legal { padding-block: 24px 48px; max-width: 65ch; }
.legal h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 760; letter-spacing: -0.03em; line-height: 1.1; }
.legal h2 { margin-top: 28px; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.legal p { margin-top: 8px; }
mark.ph { background: var(--mark); color: var(--ink); padding: 0 3px; border-radius: 3px; }

@media (max-width: 620px) {
  .event { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .cta { grid-column: 1 / -1; justify-items: stretch; text-align: left; }
  .btn { width: 100%; }
  .games, .teams { grid-template-columns: minmax(0, 1fr); }
  .next .go { margin-left: 0; }
  .nd .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .next { transition: background-color 120ms, border-color 120ms, filter 120ms; }
}

/* WhatsApp-Community: Banner oben auf der Startseite und Button im Kopf */
.community {
  --g: var(--community);
  --g-tint: var(--community-tint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 16px 18px;
  background: var(--g-tint);
  border-radius: 8px;
}
.community-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--g); color: var(--on-accent); }
.community-text { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.community-text strong { font-weight: 720; letter-spacing: -0.01em; }
.community-text span { font-size: 0.92rem; color: var(--ink-soft); }
.community .btn { flex: none; }
.nav a.join {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--community);
  color: var(--on-accent);
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}
.nav a.join:hover { color: var(--on-accent); text-decoration: none; filter: brightness(1.08); }
.nav { align-items: center; }

/* Touch-Ziele mindestens ca. 40px hoch */
.nav a { padding-block: 10px; }
.brand { padding-block: 8px; }
.crumbs a { display: inline-block; padding-block: 10px; }
.toc ul { gap: 0; }
.toc a { padding-block: 9px; }
.place, .place-plain { padding-block: 9px; }
.foot a { display: inline-block; padding-block: 10px; }
.faq details { padding: 0; }
.faq summary { padding: 14px 0; }
.faq details[open] summary { padding-bottom: 8px; }
.faq details p { margin-top: 0; padding-bottom: 14px; }

/* Handy: Auf der Startseite zeigt der Banner den Community-Button, im Kopf wäre er doppelt */
@media (max-width: 620px) {
  .community-icon { align-self: flex-start; }
  .home .nav a.join { display: none; }
}

/* Marke: der lange Seitenname darf auf zwei Zeilen umbrechen */
.brand-name { line-height: 1.25; max-width: 30ch; }
@media (min-width: 900px) { .brand-name { max-width: none; } }
.brand .dots { flex: none; }

/* Startseite: Wer leitet die Runden? (Erfahrung in Zahlen) */
.stats { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--werwolf), var(--botc));
}
.stat-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 6px; background: var(--bg); color: var(--ink-soft); margin-bottom: 8px; }
.stat strong { font-size: 2.2rem; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.3; }
.about-text { margin-top: 16px; max-width: 62ch; }
.stats + .about-text { margin-top: 24px; }
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { display: grid; grid-template-columns: 36px 3.6rem 1fr; align-items: center; column-gap: 14px; padding: 16px 16px 14px; }
  .stat-icon { margin: 0; grid-row: 1; }
  .stat strong { font-size: 1.9rem; }
}

/* Kalender-Links bei jedem Termin */
.cal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; font-size: 0.88rem; }
.cal-label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); padding-block: 10px; }
.cal-link {
  min-height: 40px; padding: 10px 0; border: 0; background: none;
  font: inherit; font-weight: 650; color: var(--g); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px;
  display: inline-flex; align-items: center;
}
.cal-link:hover { text-decoration-color: var(--g); }

/* Countdown im Streifen "Nächster Termin" */
.cd { padding: 3px 11px; border-radius: 999px; background: var(--g); color: var(--on-accent); font-size: 0.85rem; font-weight: 750; white-space: nowrap; }

/* Tipp der Woche */
.tipp { padding-block: 8px 24px; }
.tip { padding: 20px 20px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--g); border-radius: 8px; }
.tip-text { margin-top: 10px; max-width: 60ch; font-size: 1.12rem; line-height: 1.5; font-weight: 550; }
.tip-meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.88rem; color: var(--ink-soft); }

/* Terminkarte: Kalender-Zeile unter Ort, auf dem Handy über die ganze Kartenbreite */
.event { row-gap: 2px; }
.event .date { grid-column: 1; grid-row: 1 / span 2; }
.event .info { grid-column: 2; grid-row: 1; }
.event .cal { grid-column: 2; grid-row: 2; }
.event .cta { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 620px) {
  .event { row-gap: 4px; }
  .event .date { grid-row: 1; }
  .event .cal { grid-column: 1 / -1; grid-row: 2; }
  .event .cta { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
}

/* Fotos (echte Bilder, ohne erkennbare Personen) */
.photo { margin: 22px 0 0; max-width: 720px; }
.photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.photo figcaption { margin-top: 8px; max-width: 66ch; font-size: 0.85rem; line-height: 1.45; color: var(--ink-soft); }
.game { overflow: hidden; }
.game .shot { display: block; width: calc(100% + 44px); max-width: none; height: auto; aspect-ratio: 2 / 1; object-fit: cover; margin: -22px -22px 18px; background: var(--g-tint); }

/* Startseite: Neu hier? (Wegweiser zu den Unterseiten) */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.path { --g: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--g); border-radius: 8px; text-decoration: none; }
.path[data-game] { --g: var(--botc); }
.path:hover { border-color: var(--ink-soft); border-left-color: var(--g); }
.path strong { font-weight: 700; letter-spacing: -0.01em; }
.path span { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }
.path .go { margin-top: auto; padding-top: 8px; font-size: 0.9rem; font-weight: 650; color: var(--ink); }
@media (max-width: 700px) { .paths { grid-template-columns: minmax(0, 1fr); } }

/* Anfahrt: Orte mit Fakten und Barrierefreiheit */
.place-card { margin-top: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; max-width: 66ch; }
.facts { display: grid; grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr); gap: 14px 18px; }
.facts dt { font-weight: 700; }
.facts dd { color: var(--ink-soft); min-width: 0; }
.facts dd a { color: var(--ink); font-weight: 650; }
.access { display: flex; flex-wrap: wrap; gap: 8px; }
.access li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 0.88rem; font-weight: 600; }
.access li::before { font-weight: 800; }
.access .yes::before { content: "✓"; color: var(--community); }
.access .no::before { content: "✕"; color: var(--botc); }
.route-link { display: inline-flex; align-items: center; min-height: 40px; }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } .facts dt { margin-top: 12px; } .facts dt:first-child { margin-top: 0; } }
.foot nav { flex-wrap: wrap; }

/* Platz für Inhalte, die das Skript nachlädt, vorab reservieren.
   So rutscht beim Laden nichts nach unten (Google: "Layout Shift"). */
#next { min-height: 90px; align-content: center; }
@media (max-width: 767px) { #next { min-height: 120px; } }
@media (max-width: 460px) { #next { min-height: 179px; } }
#events { min-height: 400px; }
@media (max-width: 620px) { #events { min-height: 560px; } }
#events.few { min-height: 0; }

/* Umschalter Hell / Dunkel im Kopf. Sichtbar nur mit JavaScript (Klasse "js" setzt das Skript im <head>
   vor dem ersten Bildaufbau, daher kein Verrutschen). */
.theme-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ---------- Adventszeit: Banner auf der Startseite und Seite /adventskalender/ ----------
   Die Klassen advent, advent-vorher, advent-jetzt, advent-fest setzt das kleine Skript im <head>
   vor dem ersten Bildaufbau. Der Banner steht fest im HTML und wird nur per CSS gezeigt. */
:root { --gold: #8A5D0B; --gold-tint: #F8F0DC; --night: #182046; --night-ink: #F1E8D2; --door: #FFFCF5; --door-line: #E9E1CF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --gold: #E8C170; --gold-tint: #2A2416; --door: #E9E3D5; --door-line: #CFC7B4; }
}
:root[data-theme="dark"] { --gold: #E8C170; --gold-tint: #2A2416; --door: #E9E3D5; --door-line: #CFC7B4; }
[data-game="beide"] { --g: var(--gold); --g-tint: var(--gold-tint); }

.xmas {
  position: relative;
  display: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  margin-top: 10px;
  padding: 30px 20px 24px;
  overflow: hidden;
  border: 1px solid #2C3666;
  border-radius: 8px;
  color: var(--night-ink);
  text-decoration: none;
  /* Lichterkette oben, Schnee unten, Sterne am Nachthimmel: alles als Bild im CSS, nichts wird nachgeladen */
  background-color: var(--night);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 3Q30 13 60 3Q90 13 120 3' fill='none' stroke='%23596496' stroke-width='1.4'/%3E%3Cg%3E%3Crect x='13.6' y='6' width='2.8' height='3.2' rx='.6' fill='%23A9ACC2'/%3E%3Cellipse cx='15' cy='13.3' rx='3.2' ry='4.4' fill='%23E5484D'/%3E%3Crect x='43.6' y='6' width='2.8' height='3.2' rx='.6' fill='%23A9ACC2'/%3E%3Cellipse cx='45' cy='13.3' rx='3.2' ry='4.4' fill='%23F2C14E'/%3E%3Crect x='73.6' y='6' width='2.8' height='3.2' rx='.6' fill='%23A9ACC2'/%3E%3Cellipse cx='75' cy='13.3' rx='3.2' ry='4.4' fill='%233FB47A'/%3E%3Crect x='103.6' y='6' width='2.8' height='3.2' rx='.6' fill='%23A9ACC2'/%3E%3Cellipse cx='105' cy='13.3' rx='3.2' ry='4.4' fill='%238CB8FF'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='14' viewBox='0 0 160 14'%3E%3Cpath d='M0 14V8C18 3 30 3 46 7S78 11 96 6 132 2 160 8V14Z' fill='%23EEF1F8'/%3E%3C/svg%3E"),
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(242, 193, 78, 0.6) 0 1.1px, transparent 1.8px);
  background-repeat: repeat-x, repeat-x, repeat, repeat;
  background-size: 120px 24px, 160px 14px, 97px 61px, 151px 83px;
  background-position: -6px 0, 0 100%, 11px 34px, 63px 52px;
}
/* Leuchten der Lämpchen (pulsiert nur, wenn Bewegung im Gerät nicht reduziert ist) */
.xmas::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cellipse cx='15' cy='13.3' rx='8' ry='9' fill='%23E5484D' opacity='.35'/%3E%3Cellipse cx='45' cy='13.3' rx='8' ry='9' fill='%23F2C14E' opacity='.35'/%3E%3Cellipse cx='75' cy='13.3' rx='8' ry='9' fill='%233FB47A' opacity='.35'/%3E%3Cellipse cx='105' cy='13.3' rx='8' ry='9' fill='%238CB8FF' opacity='.35'/%3E%3C/svg%3E") -6px 0 / 120px 24px repeat-x;
  opacity: 0.8;
  pointer-events: none;
}
.xmas > * { position: relative; z-index: 1; }
.advent .xmas { display: grid; }
.xmas:hover { border-color: #E8C170; }
.xmas-icon { display: block; line-height: 0; }
.xmas-text { display: grid; gap: 2px; min-width: 0; }
.xmas-text strong { font-weight: 720; letter-spacing: -0.01em; color: #F6E2AE; }
.xmas-sub { font-size: 0.92rem; color: #CFCBC0; }
.xmas-go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #E8C170; color: #182046; font-weight: 700; white-space: nowrap; }
.xmas:hover .xmas-go { background: #F2CF86; }
@media (prefers-reduced-motion: no-preference) {
  .xmas::before { animation: lichterkette 2.6s ease-in-out infinite alternate; }
  @keyframes lichterkette { from { opacity: 0.25; } to { opacity: 1; } }
  .xmas-stern { transform-origin: 24px 7px; animation: stern 3.2s ease-in-out infinite; }
  @keyframes stern { 50% { transform: scale(1.18); } }
}
@media (max-width: 620px) {
  .xmas { grid-template-columns: auto minmax(0, 1fr); padding: 28px 14px 22px; }
  .xmas-icon { align-self: start; }
  .xmas-go { grid-column: 2; justify-self: start; }
}
@media (max-width: 460px) { .xmas-sub { display: none; } }
.x-vorher, .x-jetzt, .x-fest { display: none; }
.advent-vorher .x-vorher, .advent-jetzt .x-jetzt, .advent-fest .x-fest { display: inline; }

/* Kalender-Tafel mit 24 Türchen */
.advent-board {
  margin-top: 28px;
  padding: 16px;
  border-radius: 12px;
  color: var(--night-ink);
  background-color: var(--night);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(232, 193, 112, 0.7) 0 1.2px, transparent 1.9px);
  background-size: 53px 47px, 89px 71px;
  background-position: 7px 11px, 31px 23px;
}
.prose .advent-status { margin: 0 0 14px; max-width: none; min-height: 3em; line-height: 1.5; font-weight: 600; color: var(--night-ink); }
@media (max-width: 520px) { .prose .advent-status { min-height: 4.5em; } }
.doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.door {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--door-line);
  border-radius: 8px;
  background: var(--door);
  color: var(--dg);
  font: inherit;
  cursor: pointer;
}
/* Die Tafel ist in beiden Designs dunkel, die Türchen wie Papier: deshalb feste Spielfarben für helles Papier. */
.door { --dg: #8A5D0B; --dt: #F8F0DC; }
.door[data-game="werwolf"] { --dg: #2F4FA3; --dt: #E6EBF8; }
.door[data-game="botc"] { --dg: #A8203A; --dt: #F8E6EA; }
.door[data-tuer="24"] { grid-column: span 2; aspect-ratio: auto; }
.door-num { font-size: clamp(1.2rem, 4.4vw, 2.2rem); font-weight: 780; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.door[data-tuer="24"] .door-num { font-size: clamp(1.5rem, 6vw, 2.9rem); }
.door-lock { display: none; position: absolute; right: 6px; bottom: 5px; line-height: 0; opacity: 0.75; }
.door.locked { background: #232B55; border-color: #343D6B; color: #A9A9B4; cursor: not-allowed; }
.door.locked .door-lock { display: block; }
.door.gesehen { background: var(--dt); }
.door.gesehen::after { content: "✓"; position: absolute; right: 7px; bottom: 4px; font-size: 0.8rem; font-weight: 800; color: var(--dg); }
.door.heute { outline: 3px solid #E8C170; outline-offset: 2px; }
.door.heute::before {
  content: "Heute"; position: absolute; top: 5px; left: 0; right: 0; text-align: center;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8A5D0B;
}
.advent-board :focus-visible { outline-color: #E8C170; }
@media (max-width: 620px) { .doors { gap: 7px; } .door { aspect-ratio: 1; } .advent-board { padding: 12px; } }
@media (prefers-reduced-motion: no-preference) {
  .door { transition: transform 140ms, box-shadow 140ms; }
  .door:not(.locked):hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28); }
  .door.heute { animation: tuer-glanz 2.4s ease-in-out infinite; }
  @keyframes tuer-glanz { 50% { box-shadow: 0 0 0 6px rgba(232, 193, 112, 0.28); } }
}

/* Fenster mit dem Inhalt eines Türchens */
.door-dialog {
  width: min(660px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: auto;
}
.door-dialog::backdrop { background: rgba(9, 12, 30, 0.62); }
.door-dialog.fallback[open] { position: fixed; inset: 12px; z-index: 100; margin: auto; height: fit-content; }
.dd-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.dd-close:hover { color: var(--ink); border-color: var(--ink-soft); }
.dd-content { padding: 22px 22px 24px; }
.prose .dd-kicker { margin-top: 0; padding-right: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.prose .dd-kicker .badge { margin-top: 0; }
.prose .door-dialog h2 { margin-top: 12px; font-size: 1.45rem; }
.door-dialog h2:focus { outline: none; }
.dd-gestern { margin-top: 16px; padding: 12px 16px; border-radius: 8px; background: var(--gold-tint); }
.prose .dd-gestern p { margin-top: 4px; }
.prose .dd-gestern .label { margin-top: 0; }
.tipp-richtig { color: var(--community); font-weight: 650; }
.tipp-halb { color: var(--gold); font-weight: 650; }
.tipp-falsch { color: var(--botc); font-weight: 650; }
.link-btn { margin-top: 2px; min-height: 40px; padding: 0; border: 0; background: none; font: inherit; font-weight: 650; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dd-kreis { display: block; width: 100%; max-width: 260px; margin: 12px auto 0; }
.dd-kreis .k-tisch { fill: var(--g-tint); }
.dd-kreis .k-sitz { fill: var(--g); }
.dd-kreis text { fill: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 650; }
.dd-aussagen { margin-top: 14px; display: grid; gap: 8px; }
.dd-aussagen li { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 2px 12px; align-items: baseline; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.dd-aussagen .who { font-weight: 700; color: var(--g); }
.prose .dd-frage { margin-top: 16px; font-size: 1.08rem; font-weight: 700; }
.dd-tipp { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 8px; }
.prose .tipp-frage { margin-top: 0; font-weight: 600; }
.tipp-namen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tn { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.tn:hover { border-color: var(--g); }
.tn[aria-pressed="true"] { border-color: var(--g); background: var(--g); color: var(--on-accent); }
.prose .tipp-info { margin-top: 10px; min-height: 1.6em; font-size: 0.92rem; color: var(--ink-soft); }
.prose .tipp-info.richtig { color: var(--community); font-weight: 650; }
.prose .tipp-info.halb { color: var(--gold); font-weight: 650; }
.prose .tipp-info.falsch { color: var(--botc); font-weight: 650; }
.dd-loesung { margin-top: 18px; border-top: 1px solid var(--line); }
.dd-loesung summary { padding: 14px 0 6px; font-weight: 700; color: var(--g); cursor: pointer; }
.prose .dd-antwort { margin-top: 6px; font-size: 1.05rem; font-weight: 700; }
.dd-loesung .label { display: block; margin-top: 14px; }
.dd-loesung ul { margin-top: 6px; display: grid; gap: 6px; }
.dd-loesung li { position: relative; padding-left: 16px; color: var(--ink-soft); line-height: 1.5; }
.dd-loesung li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--g); }
.prose .dd-note, .prose .dd-bald { margin-top: 14px; font-size: 0.92rem; color: var(--ink-soft); }
.dd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-community { --g: var(--community); }
.prose .dd-status-info { margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); }
.prose .dd-status-info:empty { display: none; }
@media (max-width: 620px) {
  .door-dialog { width: calc(100% - 16px); max-height: calc(100% - 16px); }
  .dd-content { padding: 18px 16px 20px; }
  .dd-aussagen li { grid-template-columns: minmax(0, 1fr); }
  .dd-actions .btn { width: 100%; }
}

/* Nur in der Vorschau: Datum simulieren */
.advent-sim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); }
.advent-sim button { min-height: 32px; padding: 0 10px; border: 1px dashed var(--ink-soft); border-radius: 6px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.advent-sim button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-style: solid; }

/* Platzstatus (aus plaetze.php): steht in der Zeile unter dem Anmelde-Button */
.cta-note, .nd-note { white-space: nowrap; }
.nd-note { font-size: 0.78rem; color: var(--ink-soft); }
.platz { font-weight: 650; }
.platz::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.platz-frei { color: var(--community); }
.platz-fast { color: var(--gold); }
.platz-voll { color: var(--botc); }
.platz-warteliste { color: var(--gold); font-weight: 700; }
/* Feste Mindestbreite der Button-Spalte, damit ein längerer Status nichts verschiebt */
@media (min-width: 621px) { .event .cta { min-width: 12.75rem; } }

/* ---------- Erzähler-Helfer (/erzaehler-helfer/): Savant und Fisherman ---------- */
.hf-rollen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.hf-rollen button { display: grid; gap: 2px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.hf-rollen button b { font-size: 1.15rem; letter-spacing: -0.01em; }
.hf-rollen button span { font-size: 0.85rem; color: var(--ink-soft); }
.hf-rollen button[aria-pressed="true"] { border-color: var(--g); background: var(--g-tint); }
.hf-rollen button[aria-pressed="true"] b { color: var(--g); }
.hf-tag { display: flex; align-items: center; gap: 6px; }
.hf-tag .label { margin-right: 4px; }
.hf-tag button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.2rem; cursor: pointer; }
.hf-tag output { min-width: 2ch; text-align: center; font-size: 1.3rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.prose .hf-regel { margin: 0 0 14px; max-width: none; font-size: 0.95rem; }
.prose #tipps h3 { margin-top: 18px; }
.prose .hf-phase { margin-top: 10px; }
.fi-einzel { grid-template-columns: minmax(0, 1fr); }
.fi-staerke { display: inline-flex; align-items: flex-end; gap: 3px; margin-left: auto; }
.fi-staerke i { width: 6px; border-radius: 2px; background: var(--line); }
.fi-staerke i:nth-child(1) { height: 6px; } .fi-staerke i:nth-child(2) { height: 10px; } .fi-staerke i:nth-child(3) { height: 14px; } .fi-staerke i:nth-child(4) { height: 18px; }
.fi-staerke i.an { background: var(--g); }
.fi-staerke b { margin-left: 6px; font-size: 0.78rem; color: var(--g); }
.fi-karte .sv-text { font-size: 1.25rem; }

.prose .sv-klein { margin-top: 2px; font-size: 0.85rem; color: var(--ink-soft); max-width: 60ch; }
.prose .sv-klein:empty { display: none; }

.prose .sv-app { margin-top: 14px; padding: 18px; border-radius: 12px; background: var(--g-tint); }
.sv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.sv-stufen { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.sv-stufen button { min-height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.sv-stufen button + button { border-left: 1px solid var(--line); }
.sv-stufen button[aria-pressed="true"] { background: var(--g); color: var(--on-accent); }
.sv-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 0.92rem; cursor: pointer; }
.sv-check input { width: 18px; height: 18px; accent-color: var(--g); }
.btn.sv-wuerfeln { margin-top: 16px; min-height: 52px; padding: 0 26px; font-size: 1.08rem; gap: 10px; }
.sv-wuerfeln svg { flex: none; }
.sv-wuerfeln.sv-rollt svg { animation: sv-wurf 600ms ease-out; }
@keyframes sv-wurf { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(200deg) scale(1.25); } 100% { transform: rotate(360deg) scale(1); } }

.sv-karten { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.sv-leerkarte { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 18px; border: 2px dashed var(--line); border-radius: 10px; color: var(--ink-soft); }
.sv-leerkarte span { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--g); font-size: 1.4rem; font-weight: 800; }
.prose .sv-leerkarte p { margin: 0; }
.sv-karte { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
.sv-karte.sv-wahr { border-left-color: var(--community); }
.sv-karte.sv-falsch { border-left-color: var(--botc); }
.sv-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sv-nr { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.sv-kat { padding: 2px 10px; border-radius: 999px; background: var(--g-tint); color: var(--g); font-size: 0.78rem; font-weight: 700; }
.sv-stufe { display: inline-flex; gap: 3px; margin-left: auto; }
.sv-stufe i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.sv-stufe i.an { background: var(--g); }
.prose .sv-text { margin: 0; flex: 1; font-size: 1.14rem; font-weight: 600; line-height: 1.45; }
.sv-name { color: var(--g); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sv-rolle { color: var(--g); font-style: italic; }
.sv-zahl { color: var(--g); }
.sv-ph { padding: 0 6px; border: 1.5px dashed var(--g); border-radius: 6px; color: var(--g); font-weight: 650; white-space: nowrap; }
.sv-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.sv-mark { display: inline-flex; gap: 6px; }
.sv-mark button, .sv-tools button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer; }
.sv-mark button[data-mark="wahr"][aria-pressed="true"] { border-color: var(--community); background: var(--community); color: var(--on-accent); }
.sv-mark button[data-mark="falsch"][aria-pressed="true"] { border-color: var(--botc); background: var(--botc); color: var(--on-accent); }
.sv-tools { display: inline-flex; gap: 6px; }
.sv-tools button { border-color: transparent; color: var(--ink-soft); padding: 0 8px; }
.sv-tools button:hover { color: var(--g); }
.prose .sv-hinweis { margin-top: 14px; min-height: 1.5em; font-size: 0.92rem; color: var(--ink-soft); max-width: none; }
.prose .sv-hinweis.ok { color: var(--community); font-weight: 650; }
.prose .sv-hinweis.warn { color: var(--gold); font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
  .sv-karte.sv-neu { animation: sv-karte 420ms cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes sv-karte { from { opacity: 0; transform: perspective(700px) rotateY(-70deg) translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 680px) {
  .sv-karten { grid-template-columns: minmax(0, 1fr); }
  .prose .sv-app { padding: 14px; margin-left: -4px; margin-right: -4px; }
  .btn.sv-wuerfeln { width: 100%; justify-content: center; }
}
