/* WarumSchach – app.warumschach.de · "Buchatelier"
   Handgeschrieben, eine Datei. Tokens mit Praefix --ws-. Keine Inline-Styles auf den Seiten.
   Die ?v=-Hashes der Schrift-URLs setzt build.py (sync_font_hashes), sonst bleibt alles Handarbeit. */

/* ---------- Schriften (nur eigener Server) ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Variable.woff2?v=a68c34fa") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-017F, U+2000-206F, U+20AC, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Ueberschrift.woff2?v=c56a41e0") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-017F, U+2000-206F, U+20AC;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --ws-bg: #FAF7EF; --ws-surface: #FFFDF8; --ws-text: #382B29; --ws-muted: #75665F;
  --ws-line: #E9E1D5; --ws-primary: #7C3040; --ws-primary-text: #7C3040; --ws-on-primary: #FFFDF8;
  --ws-primary-soft: #F5E7E7; --ws-success: #3B694B; --ws-success-soft: #E9F0E3;
  --ws-gold: #D5AE67; /* nur Flaechen/Linien/Balken, nie Text auf Creme (1,95:1) */
  --ws-focus: #7C3040;
  --ws-plakette: transparent;      /* helle Flaeche hinter dem Logo, nur im Dunkelmodus */

  --ws-space-1: 4px; --ws-space-2: 8px; --ws-space-3: 12px; --ws-space-4: 16px; --ws-space-5: 24px;
  --ws-space-6: 32px; --ws-space-8: 64px; --ws-space-10: 96px;
  --ws-r-btn: 12px; --ws-r-card: 18px; --ws-r-feature: 22px; --ws-r-phone: 36px;

  --ws-font-body: "DM Sans", system-ui, sans-serif;
  --ws-font-ui: "DM Sans", system-ui, sans-serif; /* General Sans spaeter moeglich, ohne Umbau */
  --ws-font-display: "Fraunces", Georgia, serif;
  --ws-shadow: 0 1px 2px rgb(56 43 41 / .08), 0 8px 24px rgb(56 43 41 / .06);
  --ws-geraet: #2B2522; --ws-geraet-kontur: transparent;

  --ws-gutter: 16px;
  --ws-max: 1120px;
  --ws-sektion: 64px;
  --ws-kopf: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ws-bg: #211F1C; --ws-surface: #2D2925; --ws-text: #F5EEE4; --ws-muted: #BDB1A6; --ws-line: #484038;
    --ws-primary: #934659; --ws-on-primary: #FFFFFF; --ws-primary-text: #EDB3C1; --ws-primary-soft: #442E34;
    --ws-success: #A8CFAA; --ws-success-soft: #303F30; --ws-focus: #EDB3C1; --ws-shadow: none;
    --ws-geraet: #0E0C0B; --ws-geraet-kontur: #5A5048;
    --ws-plakette: #FFFDF8;
  }
}
@media (min-width: 600px) { :root { --ws-gutter: 24px; --ws-sektion: 80px; } }
@media (min-width: 1200px) { :root { --ws-sektion: 96px; } }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--ws-kopf) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ws-bg);
  color: var(--ws-text);
  font-family: var(--ws-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: none;
}
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2 { font-family: var(--ws-font-display); font-weight: 600; margin: 0 0 var(--ws-space-4); }
h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1.15; }
h3 { font-family: var(--ws-font-ui); font-weight: 600; font-size: 1.25rem; line-height: 1.3; margin: 0 0 var(--ws-space-2); }
p { margin: 0 0 var(--ws-space-4); max-width: 68ch; }
a { color: var(--ws-primary-text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ws-focus); outline-offset: 3px; }
.akzent { color: var(--ws-primary-text); }
.gedaempft { color: var(--ws-muted); }
.kicker {
  margin: 0 0 var(--ws-space-3);
  font-family: var(--ws-font-ui); font-weight: 600; font-size: .8125rem; line-height: 1.3;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ws-primary-text);
}
.lead { font-size: 1.25rem; line-height: 1.55; }

.wrap { width: 100%; max-width: var(--ws-max); margin-inline: auto; padding-inline: var(--ws-gutter); }
.sektion { padding-block: var(--ws-sektion); }
.sektion + .sektion { border-top: 1px solid var(--ws-line); }

.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-klein { width: 20px; height: 20px; }

/* ---------- Skip-Link ---------- */
.skip {
  position: absolute; left: var(--ws-space-2); top: -200px; z-index: 200;
  min-height: 48px; display: inline-flex; align-items: center; padding: 0 var(--ws-space-4);
  background: var(--ws-primary); color: var(--ws-on-primary); border-radius: var(--ws-r-btn);
  font-family: var(--ws-font-ui); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--ws-space-2); }

/* ---------- Kopfleiste ---------- */
.kopf {
  position: sticky; top: 0; z-index: 100;
  height: var(--ws-kopf);
  background: var(--ws-bg); border-bottom: 1px solid var(--ws-line);
}
.kopf-innen { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--ws-space-4); }
.logo-link {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: var(--ws-space-1) var(--ws-space-2); border-radius: 10px; background: var(--ws-plakette);
}
.logo { display: block; width: 90px; height: 40px; }
.nav { display: none; }
.nav ul { display: flex; gap: var(--ws-space-5); margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--ws-text); text-decoration: none;
  font-family: var(--ws-font-ui); font-weight: 600; font-size: 1rem;
}
.nav a:hover { color: var(--ws-primary-text); text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 900px) { .nav { display: block; margin-left: auto; margin-right: var(--ws-space-5); } }

/* ---------- Sprachumschalter (<details>, ohne JavaScript) ---------- */
.sprache { position: relative; }
.sprache summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--ws-space-2);
  min-height: 48px; padding: 0 var(--ws-space-3);
  border: 1px solid var(--ws-muted); border-radius: var(--ws-r-btn);
  font-family: var(--ws-font-ui); font-weight: 600; font-size: .9375rem; color: var(--ws-text);
  background: var(--ws-bg);
}
.sprache summary::-webkit-details-marker { display: none; }
.sprache summary:hover { border-color: var(--ws-text); }
.sprache[open] summary .chevron { transform: rotate(180deg); }
.sprache-liste {
  position: absolute; right: 0; top: calc(100% + var(--ws-space-2)); z-index: 150;
  margin: 0; padding: var(--ws-space-2); list-style: none;
  min-width: 200px;
  background: var(--ws-surface); border: 1px solid var(--ws-muted); border-radius: var(--ws-r-card);
  box-shadow: var(--ws-shadow);
}
.sprache-liste.viele { display: grid; grid-template-columns: 1fr 1fr; width: min(360px, calc(100vw - 2 * var(--ws-gutter))); }
.sprache-liste a, .sprache-liste span {
  display: flex; align-items: center; gap: var(--ws-space-2);
  min-height: 48px; padding: 0 var(--ws-space-3); border-radius: 10px;
  font-family: var(--ws-font-ui); font-weight: 500; font-size: 1rem;
  color: var(--ws-text); text-decoration: none;
}
.sprache-liste a:hover { background: var(--ws-primary-soft); }
.sprache-liste [aria-current] { font-weight: 700; color: var(--ws-primary-text); }
.sprache-liste .haken { visibility: hidden; }
.sprache-liste [aria-current] .haken { visibility: visible; }

/* ---------- Kopfbereich (Hero) ---------- */
.hero { padding-block: var(--ws-space-5) var(--ws-space-8); }
.hero-raster { display: grid; gap: var(--ws-space-6); align-items: center; }
.hero-bild { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .hero-raster { grid-template-columns: 1fr 1fr; gap: var(--ws-space-8); }
}

/* ---------- Store-Platzhalter (kein Link, solange es keine Store-Seite gibt) ---------- */
.stores { display: flex; flex-wrap: wrap; gap: var(--ws-space-3); margin-top: var(--ws-space-5); }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 48px; min-width: 180px; padding: 6px var(--ws-space-5);
  border: 2px dashed var(--ws-muted); border-radius: var(--ws-r-btn);
  font-family: var(--ws-font-ui); line-height: 1.2; color: var(--ws-muted);
}
.store-klein { font-size: .8125rem; font-weight: 500; }
.store-gross { font-size: 1.125rem; font-weight: 700; color: var(--ws-text); }

/* ---------- Handyrahmen (rein CSS) ---------- */
/* Alexander 11.10.: 10-px-Rand mit Notch war zu dominant, weißer Steg sah nicht nach Handy aus.
   Jetzt: schmale dunkle Geräteeinfassung (5 px) mit kleiner Kameralinse, im Dunkelmodus mit
   feiner Außenkontur, damit das Gerät auf dunklem Grund sichtbar bleibt. */
.handy {
  position: relative; overflow: hidden;
  width: min(78vw, 300px); aspect-ratio: 9 / 19.5;
  border: 5px solid var(--ws-geraet); border-radius: var(--ws-r-phone);
  background: var(--ws-geraet); box-shadow: 0 0 0 1px var(--ws-geraet-kontur), var(--ws-shadow);
}
.handy::before {
  content: ""; position: absolute; z-index: 1; top: 9px; left: 50%;
  width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--ws-geraet);
}
.handy img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--ws-r-phone) - 5px); }
.handy-schirm { display: flex; flex-direction: column; gap: var(--ws-space-3); height: 100%; padding: var(--ws-space-4); }
.handy-kachel { flex: 1; border-radius: var(--ws-r-btn); background: var(--ws-primary-soft); }
.handy-kachel.hell { background: var(--ws-success-soft); }
.handy-kachel.leiste { flex: 0 0 56px; background: var(--ws-line); }
@media (min-width: 600px) { .handy { width: 300px; } }
@media (min-width: 900px) { .handy { width: 320px; } }

/* ---------- Karten, Raster, Band ---------- */
.karte {
  background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: var(--ws-r-card);
  padding: var(--ws-space-5); box-shadow: var(--ws-shadow);
}
.karte p:last-child { margin-bottom: 0; }
.raster-karten { display: grid; gap: var(--ws-space-5); margin-top: var(--ws-space-6); }
.raster-karten > * { min-width: 0; }
@media (min-width: 600px) { .raster-karten { grid-template-columns: 1fr 1fr; } }
.raster-eltern { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ws-space-4); margin-top: var(--ws-space-6); }
@media (min-width: 900px) { .raster-eltern { grid-template-columns: repeat(4, 1fr); } }
.zahl { font-family: var(--ws-font-display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; color: var(--ws-primary-text); }
.band {
  display: flex; align-items: center; gap: var(--ws-space-3);
  margin: var(--ws-space-4) 0 0; padding: var(--ws-space-3) var(--ws-space-4);
  background: var(--ws-success-soft); color: var(--ws-success); border-radius: var(--ws-r-btn);
  font-family: var(--ws-font-ui); font-weight: 600;
}

/* ---------- Fusszeile ---------- */
.fuss { margin-top: var(--ws-sektion); padding-block: var(--ws-space-6); background: var(--ws-surface); border-top: 1px solid var(--ws-line); }
.fuss-links, .fuss-sprachen { display: flex; flex-wrap: wrap; gap: 0 var(--ws-space-5); margin: 0; padding: 0; list-style: none; }
.fuss a {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--ws-text); font-family: var(--ws-font-ui); font-weight: 500;
}
.fuss a:hover { color: var(--ws-primary-text); }
.fuss-sprachen [aria-current] { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--ws-primary-text); }
.fuss-block { display: flex; flex-direction: column; gap: var(--ws-space-2); }
.fuss-links + .fuss-block, .fuss-block + .fuss-block { margin-top: var(--ws-space-4); padding-top: var(--ws-space-4); border-top: 1px solid var(--ws-line); }
.fuss-titel { margin: 0; font-family: var(--ws-font-ui); font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ws-muted); }
.fuss-zeile { margin: var(--ws-space-4) 0 0; font-size: .9375rem; color: var(--ws-muted); }

/* ---------- Startseite: Bausteine ---------- */
.hinweis { margin: var(--ws-space-3) 0 0; color: var(--ws-muted); font-size: .9375rem; }
.fakten {
  display: grid; margin: var(--ws-space-5) 0 0;
  background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: var(--ws-r-card); overflow: hidden;
}
.fakten > div { padding: var(--ws-space-3) var(--ws-space-4); border-top: 1px solid var(--ws-line); }
.fakten > div:first-child { border-top: 0; }
.fakten dt { font-family: var(--ws-font-ui); font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ws-muted); }
.fakten dd { margin: 2px 0 0; }
@media (min-width: 768px) {
  .fakten > div { display: grid; grid-template-columns: 200px 1fr; gap: var(--ws-space-5); align-items: baseline; }
  .fakten dd { margin: 0; }
}

.zweispaltig { display: grid; gap: var(--ws-space-6); margin-top: var(--ws-space-6); align-items: center; }
.sektion > .zweispaltig { margin-top: 0; }
@media (min-width: 900px) { .zweispaltig { grid-template-columns: 1fr 1fr; gap: var(--ws-space-8); } }
.saeulen { display: grid; gap: var(--ws-space-4); margin: 0; padding: 0; list-style: none; }
.saeulen .karte p { margin: 0; }
.handys { display: flex; justify-content: center; gap: var(--ws-space-4); }
.handy.klein { width: min(42vw, 190px); border-width: 4px; border-radius: 24px; }
.handy.klein::before { top: 7px; width: 7px; height: 7px; margin-left: -3.5px; }
.handy.klein img { border-radius: 20px; }
.handy.klein .handy-schirm { gap: var(--ws-space-2); padding: 10px; }
.handy.fluid { width: 100%; border-width: 4px; border-radius: 22px; }
.handy.fluid::before { top: 7px; width: 7px; height: 7px; margin-left: -3.5px; }
.handy.fluid img { border-radius: 18px; }
.handy.fluid .handy-schirm { gap: var(--ws-space-2); padding: 8px; }

.kurskarte { display: grid; grid-template-columns: 80px 1fr; gap: var(--ws-space-4); align-items: start; }
.kurskarte .cover { width: 80px; height: auto; border: 1px solid var(--ws-line); border-radius: 6px; box-shadow: var(--ws-shadow); }
.kurskarte > div { min-width: 0; }
.kurskarte h3 { margin-top: 0; }
.zahlzeile { margin-bottom: var(--ws-space-3); font-family: var(--ws-font-ui); font-weight: 600; color: var(--ws-primary-text); }
@media (min-width: 600px) {
  .kurskarte { grid-template-columns: 120px 1fr; gap: var(--ws-space-5); }
  .kurskarte .cover { width: 120px; }
}
/* Kapitel als senkrechte Liste in der jeweiligen Diplom-Karte (Alexander 11.10.2026) */
.reihe-titel { margin: var(--ws-space-8) 0 var(--ws-space-4); font-size: 1.375rem; }
/* Beide Diplom-Karten teilen sich die Zeilen (subgrid): Kopf mit Cover und Text oben,
   die Kapitellisten beginnen auf gleicher Höhe (Alexander 11.10.2026). */
.raster-karten:has(.kurskarte) { grid-auto-rows: auto; }
.raster-karten > .kurskarte { grid-row: span 2; grid-template-rows: subgrid; row-gap: var(--ws-space-4); }
.kurskarte > .cover, .kurskarte > div:not(.kapitel-block) { grid-row: 1; }
.kurskarte > .kapitel-block { grid-row: 2; align-self: start; }
.kurskarte .kapitel-block { grid-column: 1 / -1; min-width: 0; margin-top: var(--ws-space-2); }
.kapitel-titel { margin: 0 0 var(--ws-space-2); font-family: var(--ws-font-ui); font-size: 1rem; font-weight: 600; }
.kapitelliste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ws-line); }
.kapitelliste li {
  display: grid; grid-template-columns: 40px 1.75rem 1fr auto; align-items: center; gap: var(--ws-space-3);
  padding: 6px 0; border-bottom: 1px solid var(--ws-line);
}
.kapitel-icon { width: 40px; height: 40px; border: 1px solid var(--ws-line); border-radius: 10px; background: #FAF7EF; }
.kap-nr { font-size: .8125rem; font-weight: 700; color: var(--ws-muted); text-align: right; font-variant-numeric: tabular-nums; }
.kap-titel { font-family: var(--ws-font-ui); font-weight: 500; font-size: .9375rem; line-height: 1.3; min-width: 0; }
.gratis {
  font-size: .75rem; font-weight: 600; color: var(--ws-success); white-space: nowrap;
  padding: 2px 8px; border-radius: 999px; background: var(--ws-success-soft);
}


.spiele-bilder {
  display: flex; gap: var(--ws-space-4); list-style: none;
  margin: var(--ws-space-6) calc(-1 * var(--ws-gutter)) 0; padding: 0 var(--ws-gutter) var(--ws-space-3);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--ws-gutter);
}
.spiele-bilder li { flex: 0 0 76%; max-width: 260px; scroll-snap-align: start; }
.spiele-bilder figure { margin: 0; }
.spiele-bilder figcaption { margin-top: var(--ws-space-2); text-align: center; font-family: var(--ws-font-ui); font-weight: 600; font-size: .9375rem; }
@media (min-width: 768px) {
  .spiele-bilder { display: grid; grid-template-columns: repeat(3, 1fr); margin-inline: 0; padding: 0; overflow: visible; }
  .spiele-bilder li { max-width: none; }
}
@media (min-width: 1200px) { .spiele-bilder { grid-template-columns: repeat(5, 1fr); } }

.spieleliste { display: grid; gap: 0 var(--ws-space-6); margin: 0; padding: 0; list-style: none; }
.spieleliste li { padding: var(--ws-space-3) 0; border-top: 1px solid var(--ws-line); }
.spieleliste strong { display: block; font-family: var(--ws-font-ui); font-weight: 600; }
.spieleliste span { color: var(--ws-muted); }
@media (min-width: 768px) { .spieleliste { grid-template-columns: 1fr 1fr; } }

.raster-mehr { display: grid; gap: var(--ws-space-5); margin-top: var(--ws-space-6); }
@media (min-width: 600px) { .raster-mehr { grid-template-columns: 1fr 1fr; } }
.mehr-schluss {
  margin: var(--ws-space-6) auto 0; max-width: 46ch; text-align: center;
  font-family: var(--ws-font-display); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); line-height: 1.35;
}
.mehr-schluss strong { display: block; color: var(--ws-primary-text); font-weight: 600; }
#eltern .band { margin-top: var(--ws-space-5); }
.band + p { margin-top: var(--ws-space-4); }
.raster-eltern .karte { padding: var(--ws-space-4); }
.raster-eltern h3 { font-size: 1.0625rem; }
@media (min-width: 900px) { .raster-eltern .karte { padding: var(--ws-space-5); } .raster-eltern h3 { font-size: 1.25rem; } }

.knopf {
  display: inline-flex; align-items: center; min-height: 48px; padding: var(--ws-space-2) var(--ws-space-5);
  background: var(--ws-primary); color: var(--ws-on-primary); border-radius: var(--ws-r-btn);
  font-family: var(--ws-font-ui); font-weight: 600; text-decoration: none;
}
.knopf:hover { background: var(--ws-text); color: var(--ws-bg); }
.linkliste { margin: 0; padding: 0; list-style: none; }
.linkliste a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }

.faq { max-width: 760px; margin-top: var(--ws-space-5); }
.faq-item { padding: var(--ws-space-4) 0; border-top: 1px solid var(--ws-line); }
.faq-item h3 { margin: 0 0 var(--ws-space-2); }
.faq-item p { margin: 0; }

/* ---------- Bestenliste ---------- */
.nur-lesen { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bl-box { margin: var(--ws-space-5) 0; min-height: 120px; }
.bl-status { padding: var(--ws-space-5); background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: var(--ws-r-card); }
.bl-fehler { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ws-space-4); }
.bl-fehler .bl-status { width: 100%; }
.bl-scroll { overflow-x: auto; background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: var(--ws-r-card); }
.bl-tabelle { width: 100%; border-collapse: collapse; }
.bl-tabelle th, .bl-tabelle td { padding: var(--ws-space-3) var(--ws-space-4); text-align: left; border-bottom: 1px solid var(--ws-line); }
.bl-tabelle tbody tr:last-child td { border-bottom: 0; }
.bl-tabelle th { font-family: var(--ws-font-ui); font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ws-muted); }
.bl-tabelle .zahl-spalte { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bl-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px;
  border-radius: 16px; background: var(--ws-primary-soft); color: var(--ws-primary-text);
  font-family: var(--ws-font-ui); font-weight: 700; font-variant-numeric: tabular-nums;
}
.bl-badge.bl-top { background: var(--ws-gold); color: #382B29; }
.bl-spieler { display: flex; align-items: center; gap: var(--ws-space-3); min-width: 0; }
.bl-avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ws-primary); color: var(--ws-on-primary); font-family: var(--ws-font-ui); font-weight: 700;
}
.bl-name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-datum { color: var(--ws-muted); white-space: nowrap; }
@media (max-width: 599px) {
  .bl-tabelle th:nth-child(4), .bl-tabelle td:nth-child(4) { display: none; }
  .bl-tabelle th, .bl-tabelle td { padding: var(--ws-space-3) var(--ws-space-2); }
  .bl-tabelle th:first-child, .bl-tabelle td:first-child { padding-left: var(--ws-space-3); }
  .bl-tabelle th:nth-child(3), .bl-tabelle td:nth-child(3) { padding-right: var(--ws-space-3); }
  .bl-avatar { width: 32px; height: 32px; }
  .bl-spieler { gap: var(--ws-space-2); }
  .bl-name { max-width: 11ch; }
}

/* ---------- Rechtstexte ---------- */
.recht { max-width: 720px; margin-inline: auto; padding: var(--ws-space-6) var(--ws-gutter) 0; line-height: 1.65; }
.recht h2 { font-family: var(--ws-font-ui); font-weight: 600; font-size: 1.375rem; line-height: 1.3; margin: var(--ws-space-6) 0 var(--ws-space-3); }
.recht h3 { margin-top: var(--ws-space-5); }
.recht ul { padding-left: 1.25rem; margin: 0 0 var(--ws-space-4); }
.recht p { max-width: none; }
.recht h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); }
.recht .stand { color: var(--ws-muted); }
.recht code { font-size: .9em; overflow-wrap: anywhere; }
.recht a { overflow-wrap: anywhere; }
.recht table { width: 100%; border-collapse: collapse; margin: 0 0 var(--ws-space-4); line-height: 1.5; }
.recht th, .recht td { padding: var(--ws-space-2) var(--ws-space-3) var(--ws-space-2) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ws-line); }
.recht th { font-family: var(--ws-font-ui); font-weight: 600; border-bottom-color: var(--ws-muted); }
@media (max-width: 599px) { .recht td:first-child { width: 42%; } }

/* ---------- Bewegung: nur sanftes Einblenden ---------- */
@keyframes ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .ein { animation: ein .5s ease-out both; } }

/* ---------- Druck (v. a. Rechtstexte) ---------- */
@media print {
  :root { --ws-bg: #fff; --ws-surface: #fff; --ws-text: #000; --ws-muted: #333; --ws-line: #bbb; --ws-primary-text: #000; --ws-shadow: none; }
  .skip, .kopf, .nav, .sprache, .stores, .fuss-sprachen, .fuss-block-sprachen { display: none; }
  body { font-size: 11pt; background: #fff; }
  .sektion { padding-block: 16pt; }
  a { color: #000; }
  .recht a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .karte, .fuss { box-shadow: none; }
}
