@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../fonts/barlow-semi-condensed-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Kalam';
  src: url('../fonts/kalam-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --holz-licht: #d6b688;
  --holz: #b48b5d;
  --holz-rand: #8d6640;
  --maser: rgba(96, 58, 24, 0.06);
  --text: #2b1c0f;
  --text-leise: #5b4430;
  --papier: #fbfaf3;
  --papier-text: #1f2a44;
  --linie: #b4c8e2;
  --rand-rot: #cd4b40;
  --tinte: #24396d;
  --messing: #b8861f;
  --messing-hell: #e7c472;
  --knopf-grund: #fbfaf3;
  --knopf-text: #24396d;
  --knopf-rand: rgba(36, 57, 109, 0.28);
  --voll-grund: #24396d;
  --voll-text: #fbfaf3;
  --schatten: 0 1px 2px rgba(40, 20, 5, 0.35), 0 3px 8px rgba(40, 20, 5, 0.22);
  --gewonnen: #2d6b3c;
  --verloren: #b2352c;
  --ui: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  --hand: 'Kalam', 'Comic Neue', cursive;
  --kw: 64px;
  --tw: 60px;
  --mw: 22px;
  --lift: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --holz-licht: #4f3826;
    --holz: #34241a;
    --holz-rand: #1e140d;
    --maser: rgba(0, 0, 0, 0.16);
    --text: #f2e6d2;
    --text-leise: #c9b597;
    --papier: #f1efe6;
    --papier-text: #1f2a44;
    --tinte: #24396d;
    --messing: #e2b54d;
    --messing-hell: #f0cf7e;
    --knopf-grund: #3f2d20;
    --knopf-text: #f2e6d2;
    --knopf-rand: rgba(242, 230, 210, 0.22);
    --voll-grund: #e2b54d;
    --voll-text: #24170f;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text);
  background-color: var(--holz);
  background-image:
    radial-gradient(120% 75% at 50% 42%, var(--holz-licht) 0%, var(--holz) 58%, var(--holz-rand) 100%),
    repeating-linear-gradient(97deg, var(--maser) 0 2px, transparent 2px 9px, var(--maser) 9px 10px, transparent 10px 23px);
  background-blend-mode: normal;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

button, input { font: inherit; color: inherit; }

/* Kopf und Leiste */

.kopf {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 16px 2px;
}

.titel {
  margin: 0;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.01em;
  transform: rotate(-2deg);
}

.status {
  margin: 0 0 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--text-leise);
  font-size: 15px;
}

.summe { font-family: var(--hand); font-weight: 700; color: var(--text); font-size: 18px; }

.kopf, .leiste { width: 100%; max-width: 1120px; margin-inline: auto; }

.leiste {
  display: flex;
  gap: 8px;
  padding: 6px 16px;
  flex-wrap: nowrap;
}

.knopf {
  appearance: none;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--knopf-rand);
  background: var(--knopf-grund);
  color: var(--knopf-text);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.leiste .knopf { flex: 1 1 auto; min-width: 0; padding-inline: 8px; }
.leiste .knopf-icon { flex: 0 0 44px; display: grid; place-items: center; padding: 0; }
.knopf-icon svg { width: 22px; height: 22px; }

.knopf:disabled { opacity: 0.45; cursor: default; }
.knopf:not(:disabled):active { transform: translateY(1px); }
.knopf-voll { background: var(--voll-grund); color: var(--voll-text); border-color: transparent; }

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

/* Tisch */

.tisch {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4px 8px 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "links rechts"
    "mitte mitte"
    "aktion aktion"
    "ich ich";
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.sitz-links { grid-area: links; }
.sitz-rechts { grid-area: rechts; align-items: flex-end; text-align: right; }
.mitte { grid-area: mitte; }
.aktion { grid-area: aktion; }
.sitz-ich { grid-area: ich; }

.sitz { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sitz-kopf { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sitz-rechts .sitz-kopf { justify-content: flex-end; }
.sitz-name { font-weight: 700; font-size: 17px; }
.sitz-rolle { color: var(--text-leise); font-size: 14px; }
.sitz.am-zug .sitz-name { color: var(--text); text-decoration: underline 3px var(--messing); text-underline-offset: 4px; }
.sitz .spielt {
  font-size: 13px;
  font-weight: 700;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--messing);
  color: #24170f;
}

.sitz-karten { position: relative; height: calc(var(--mw) * 1.4); }
.sitz-karten .anzahl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--hand);
  font-weight: 700;
  font-size: 20px;
}

.blase {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
  padding: 4px 12px 2px;
  border-radius: 14px;
  background: var(--papier);
  color: var(--papier-text);
  box-shadow: var(--schatten);
  align-self: flex-start;
  position: relative;
  animation: blase 180ms ease-out;
}
.sitz-rechts .blase { align-self: flex-end; }
.sitz-ich .blase { font-size: 19px; padding: 2px 10px 0; }
.blase.passe { color: var(--verloren); }

@keyframes blase { from { transform: scale(0.6); opacity: 0; } }

/* Mitte: Ansage-Schild und Stich */

.mitte { position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; }

.schild {
  margin: 2px 0 0;
  padding: 3px 14px;
  border-radius: 8px;
  background: rgba(251, 250, 243, 0.86);
  color: var(--papier-text);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  box-shadow: var(--schatten);
  max-width: 100%;
  z-index: 2;
}
.schild .kontra { color: var(--verloren); }

.stich { position: relative; flex: 1 1 auto; width: 100%; min-height: 0; }
.stich-hinweis {
  position: absolute;
  top: var(--hinweis-top, auto);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  z-index: 30;
}

/* Karten */

.karte {
  position: absolute;
  display: block;
  width: var(--w, var(--kw));
  height: calc(var(--w, var(--kw)) * 1.4);
  padding: 0;
  border: 0;
  background: none;
  border-radius: calc(var(--w, var(--kw)) * 0.064);
  box-shadow: var(--schatten);
  transition: transform 140ms ease-out, filter 140ms, box-shadow 140ms;
}
.karte svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.karte.mini { --w: var(--mw); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.karte.stichkarte { --w: var(--tw); animation: einlegen 200ms ease-out; }
.karte.offen-mini { --w: calc(var(--mw) * 1.55); }

@keyframes einlegen {
  from { transform: translate(var(--von-x, 0), var(--von-y, 40px)) rotate(var(--dreh, 0deg)) scale(0.9); opacity: 0.4; }
}

.hand { position: relative; height: calc(var(--kw) * 1.4 + var(--lift) + 6px); outline: none; touch-action: none; }
.hand .karte { cursor: pointer; touch-action: none; transform: rotate(var(--r, 0deg)); }
.hand .karte.gehoben { transform: translateY(calc(var(--lift) * -1)) rotate(var(--r, 0deg)); }
.hand .karte.spielbar { box-shadow: var(--schatten), 0 0 0 2px var(--messing-hell); }
.hand .karte.gesperrt { filter: brightness(0.66) saturate(0.55); }
.hand .karte.gewaehlt { transform: translateY(calc(var(--lift) * -1.2)) rotate(var(--r, 0deg)); box-shadow: var(--schatten), 0 0 0 3px var(--messing); }
.hand .karte.zieht { transition: none; z-index: 50; }
.hand .karte.wackeln { animation: wackeln 260ms; }
.hand:focus-visible .karte.gehoben { box-shadow: var(--schatten), 0 0 0 3px var(--messing); }

@keyframes wackeln {
  25% { translate: -5px 0; }
  75% { translate: 5px 0; }
}

.abraeumen .karte.stichkarte { transition: transform 260ms ease-in, opacity 260ms ease-in; opacity: 0; }

/* Aktionsfläche */

.aktion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 8px;
  min-height: 8px;
}
.aktion:empty { padding: 0; }
.aktion .frage { margin: 0; font-size: 17px; text-align: center; }
.aktion .frage strong { font-weight: 700; }
.aktion .knoepfe { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; width: 100%; }
.aktion .knopf { min-height: 50px; min-width: 96px; font-size: 19px; padding-inline: 18px; }
.aktion .knopf.klein { min-width: 50px; padding-inline: 0; font-size: 22px; }
.aktion .tipp { margin: 0; color: var(--text-leise); font-size: 14px; text-align: center; }

.spielwahl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: min(100%, 560px); }
.spielwahl .knopf { min-width: 0; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; font-size: 15px; }
.spielwahl .knopf .symbol { font-size: 24px; line-height: 1; }
.spielwahl .knopf .symbol.rot { color: #c81e28; }
.spielwahl .knopf[aria-pressed="true"] { background: var(--voll-grund); color: var(--voll-text); }
.spielwahl .knopf[aria-pressed="true"] .symbol.rot { color: inherit; }
.optionen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.optionen .knopf { min-height: 40px; min-width: 0; font-size: 15px; padding-inline: 10px; }
.optionen .knopf[aria-pressed="true"] { background: var(--voll-grund); color: var(--voll-text); }
.wert { margin: 0; font-size: 15px; text-align: center; }
.wert.warnung { color: var(--verloren); font-weight: 700; }
@media (prefers-color-scheme: dark) { .wert.warnung { color: #ff9a8f; } }

/* Ergebnis */

.meldung {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  width: min(92%, 440px);
  max-height: 92%;
  overflow: auto;
  z-index: 60;
  padding: 16px 18px 14px;
  border-radius: 6px;
  background: var(--papier);
  color: var(--papier-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border-top: 4px double var(--linie);
}
.meldung h2 { margin: 0 0 6px; font-family: var(--hand); font-weight: 700; font-size: 30px; line-height: 1.1; }
.meldung h2.gewonnen { color: var(--gewonnen); }
.meldung h2.verloren { color: var(--verloren); }
.meldung p { margin: 0 0 4px; }
.meldung .rechnung { font-family: var(--hand); font-weight: 700; font-size: 19px; color: var(--tinte); }
.meldung .skat-zeige { display: flex; gap: 6px; align-items: center; margin: 6px 0; height: calc(var(--mw) * 2.2 * 1.4); }
.meldung .skat-zeige .karte { position: relative; --w: calc(var(--mw) * 2.2); }
.meldung-aktionen { display: flex; gap: 10px; margin-top: 10px; }
.meldung-aktionen .knopf { flex: 1; min-height: 48px; }
.meldung .knopf { background: #fff; color: var(--tinte); border-color: rgba(36, 57, 109, 0.3); }
.meldung .knopf-voll { background: var(--tinte); color: #fbfaf3; }

/* Dialoge, Skatblock */

.dlg {
  width: min(94vw, 520px);
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--papier);
  color: var(--papier-text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.dlg::backdrop { background: rgba(20, 10, 4, 0.55); }
.dlg form { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.dlg h2 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 28px; }
.dlg .knopf { background: #fff; color: var(--tinte); border-color: rgba(36, 57, 109, 0.3); }
.dlg .knopf-voll { background: var(--tinte); color: #fbfaf3; }
.dlg-aktionen { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dlg-aktionen .knopf { min-height: 46px; }

.gruppe { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gruppe legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.pillen { display: flex; gap: 6px; flex-wrap: wrap; }
.pillen label { flex: 1 1 0; }
.pillen input { position: absolute; opacity: 0; pointer-events: none; }
.pillen span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(36, 57, 109, 0.3);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.pillen input:checked + span { background: var(--tinte); color: #fbfaf3; border-color: transparent; }
.pillen input:focus-visible + span { outline: 3px solid var(--messing); outline-offset: 2px; }
.schalter { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.schalter input { width: 22px; height: 22px; accent-color: var(--tinte); flex: none; }
.dlg-hinweis { margin: 0; font-size: 15px; color: #4a5470; }
.textknopf {
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinte);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tasten { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; font-size: 15px; }
.tasten dt { white-space: nowrap; }
.tasten dd { margin: 0; }
kbd { font-family: var(--ui); font-weight: 700; padding: 0 5px; border-radius: 4px; border: 1px solid rgba(36, 57, 109, 0.35); background: #fff; }

.dlg-liste { width: min(96vw, 640px); }
.block-wrap {
  max-height: 58dvh;
  overflow: auto;
  border-top: 2px solid var(--tinte);
  background-image: linear-gradient(to right, transparent 0 38px, var(--rand-rot) 38px 40px, transparent 40px);
}
.block { width: 100%; border-collapse: collapse; font-size: 15px; }
.block th { position: sticky; top: 0; background: var(--papier); text-align: right; padding: 4px 6px; border-bottom: 2px solid var(--tinte); font-weight: 700; }
.block th.spiel, .block td.spiel { text-align: left; }
.block th.nr, .block td.nr { text-align: right; width: 36px; padding-right: 8px; }
.block td { padding: 2px 6px; border-bottom: 1px solid var(--linie); text-align: right; vertical-align: baseline; height: 30px; }
.block td.zahl { font-family: var(--hand); font-weight: 700; font-size: 18px; color: var(--tinte); white-space: nowrap; }
.block td.zahl .delta { font-size: 13px; color: #6b7a99; margin-right: 4px; }
.block td.zahl.minus { color: var(--rand-rot); }
.block td.spiel { color: #4a5470; }
.block tfoot td { border-top: 2px solid var(--tinte); border-bottom: 0; font-weight: 700; }
.block .leer td { text-align: center; color: #6b7a99; height: 60px; }
.block-hinweis { margin: 0; font-size: 14px; color: #4a5470; }

/* Anleitung */

.leiste .knopf-frage { font-family: var(--hand); font-size: 22px; line-height: 1; padding-top: 3px; }
.anleitung { width: min(94vw, 600px); max-height: calc(100dvh - 24px); flex-direction: column; overflow: hidden; }
.anleitung[open] { display: flex; }
.anleitung-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 8px 18px;
  border-bottom: 2px solid var(--tinte);
}
.anleitung-kopf .knopf-icon { width: 44px; min-height: 44px; padding: 0; font-size: 26px; line-height: 1; }
.anleitung-inhalt {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  outline: none;
  padding: 4px 18px 12px;
  font-size: 16px;
  background-image: linear-gradient(to right, transparent 0 8px, rgba(205, 75, 64, 0.55) 8px 10px, transparent 10px);
}
.anleitung h3 { margin: 16px 0 4px; font-family: var(--hand); font-weight: 700; font-size: 22px; color: var(--tinte); }
.anleitung h4 { margin: 12px 0 4px; font-size: 16px; font-weight: 700; color: var(--tinte); }
.anleitung p { margin: 0 0 6px; }
.anleitung ul, .anleitung ol { margin: 0 0 6px; padding-left: 22px; }
.anleitung li { margin-bottom: 5px; }
.anleitung .beispiel { padding: 4px 10px; border-left: 3px solid var(--messing); background: rgba(231, 196, 114, 0.18); }
.tabelle-wrap { overflow-x: auto; }
.werte { border-collapse: collapse; font-size: 16px; margin: 2px 0 8px; }
.werte th { text-align: left; padding: 3px 10px 3px 0; font-weight: 700; }
.werte td { min-width: 2.1em; padding: 3px 4px; text-align: center; border-left: 1px solid var(--linie); font-family: var(--hand); font-weight: 700; color: var(--tinte); }
.werte tr + tr th, .werte tr + tr td { border-top: 1px solid var(--linie); }
.reihen { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 6px; }
.reihen dt { font-weight: 700; }
.reihen dd { margin: 0; }
.reihen .sw, .reihen .rt { font-weight: 700; white-space: nowrap; }
.reihen .rt { color: #c81e28; }
.anleitung .tasten { margin-bottom: 6px; }
.anleitung-fuss { display: flex; justify-content: flex-end; padding: 10px 18px 14px; border-top: 1px solid var(--linie); }
.anleitung-fuss .knopf { min-height: 46px; min-width: 150px; }

@media (max-width: 380px) {
  .leiste { gap: 6px; padding-inline: 12px; }
  .leiste .knopf { padding-inline: 6px; }
  .leiste .knopf-icon { flex-basis: 40px; }
}

@media (max-width: 420px) {
  .reihen { grid-template-columns: 1fr; gap: 0; }
  .reihen dd { margin-bottom: 6px; }
}

/* Teilen */

.fuss .teilen {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  touch-action: manipulation;
}
.toast, .link-feld {
  position: fixed;
  left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom));
  transform: translateX(-50%) rotate(-0.6deg);
  z-index: 20;
  width: max-content;
  max-width: calc(100vw - 24px);
  border-radius: 6px;
  background: var(--papier);
  color: var(--papier-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.toast { margin: 0; padding: 10px 16px; font-size: 16px; font-weight: 700; text-align: center; }
.link-feld { display: flex; gap: 8px; padding: 8px; }
.link-feld input {
  width: min(360px, 62vw);
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid rgba(36, 57, 109, 0.35);
  border-radius: 6px;
  background: #fff;
  color: var(--papier-text);
  font-size: 14px;
}
.link-feld .knopf { background: var(--tinte); color: #fbfaf3; }
.toast[hidden], .link-feld[hidden] { display: none; }

/* Fußzeile */

.fuss {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 16px 6px;
  font-size: 13px;
  color: var(--text-leise);
}
.fuss a { color: inherit; }

/* Querformat auf dem Handy: Gegner an die Seiten, Kopf und Leiste in einer Zeile */

@media (orientation: landscape) and (max-height: 560px) {
  body { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto minmax(0, 1fr) auto; }
  .kopf { grid-column: 1; padding: 4px 12px 0; }
  .titel { font-size: 26px; }
  .status { display: none; }
  .leiste { grid-column: 2; padding: 4px 12px 0; justify-content: flex-end; }
  .leiste .knopf { flex: 0 1 auto; min-height: 36px; padding-inline: 12px; }
  .tisch {
    grid-column: 1 / -1;
    grid-template-columns: minmax(120px, 22%) minmax(0, 1fr) minmax(120px, 22%);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "links mitte rechts"
      "ich ich ich";
    padding-top: 0;
  }
  .aktion { grid-area: mitte; align-self: end; z-index: 5; }
  .tisch[data-aktion="ja"] .stich { visibility: hidden; }
  .tisch[data-phase="play"] .aktion .tipp { display: none; }
  .sitz-ich .sitz-kopf { position: absolute; left: 0; top: 0; }
  .fuss { grid-column: 1 / -1; padding: 0 16px 2px; }
  .aktion { padding-bottom: 2px; }
  .aktion .knopf { min-height: 42px; }
  .spielwahl .knopf { min-height: 42px; }
  .spielwahl .knopf .symbol { font-size: 18px; }
}

/* Desktop: Gegner neben dem Stich */

@media (min-width: 900px) and (min-height: 600px) {
  .tisch {
    grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr) minmax(180px, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "links mitte rechts"
      "aktion aktion aktion"
      "ich ich ich";
  }
  body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 560px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .kopf { grid-column: 2; padding-top: 10px; }
  .status { margin-left: 24px; }
  .leiste { grid-column: 3; justify-content: flex-end; padding-top: 10px; }
  .leiste .knopf { flex: 0 1 auto; padding-inline: 18px; }
  .tisch, .fuss { grid-column: 1 / -1; }
  .sitz-gegner { padding-top: 24px; }
  .blase { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
