/* Qwixx — "Nachtflug": dunkle Kabine, das Wertungsblatt liegt darin als echtes Papier.
   Bewusst einthemig: die vier Qwixx-Farben brauchen den hellen Papiergrund. */

:root {
  --ink-900: #0a1219;
  --ink-850: #0e1620;
  --ink-800: #131e2a;
  --ink-700: #1a2735;
  --ink-600: #223244;
  --hairline: #2b3d50;
  --fog: #93a5b6;
  --fog-dim: #62778a;

  --paper: #f3f2ee;
  --paper-2: #e9e8e2;
  --paper-line: #d5d4cc;
  --paper-ink: #16202b;
  --paper-ghost: #a9a8a1;

  --red: #dc3b2f;      --red-tint: #f8dcd8;
  --yellow: #e8a300;   --yellow-tint: #fbecc2;
  --green: #12995b;    --green-tint: #d0eedd;
  --blue: #2a6ed4;     --blue-tint: #d7e4f9;
  --stone: #6c7a88;

  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-monospace, SFMono-Regular, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
}

body {
  background: var(--ink-850);
  background-image:
    radial-gradient(120% 70% at 50% -10%, #1b2b3c 0%, rgba(27, 43, 60, 0) 60%),
    linear-gradient(180deg, var(--ink-850) 0%, var(--ink-900) 100%);
  background-attachment: fixed;
  color: var(--fog);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid #7fd4ff; outline-offset: 2px; }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Gerüst ---------- */

#app { height: 100dvh; display: flex; flex-direction: column; }

.screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Flex-Spalte + auto-Margins am Kind: zentriert, solange es passt, und scrollt
   sauber weiter, sobald es nicht mehr passt. */
.scroll {
  flex: 1; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
}

.pad { padding: 16px; }

/* ---------- Startbildschirm ---------- */

.start { justify-content: center; gap: 8px; padding: 24px 20px calc(24px + var(--safe-b)); text-align: center; }

.brand {
  font-family: var(--font-num);
  font-size: clamp(44px, 15vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  color: var(--paper);
}
.brand span:nth-child(1) { color: var(--red); }
.brand span:nth-child(2) { color: var(--yellow); }
.brand span:nth-child(3) { color: var(--green); }
.brand span:nth-child(4) { color: var(--blue); }

.tagline { margin: 4px 0 24px; color: var(--fog-dim); font-size: 14px; }

.namelist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.namerow { display: flex; align-items: center; gap: 10px; }

.namerow .seat {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink-700);
  border: 1px solid var(--hairline);
  font-family: var(--font-num); font-size: 13px; color: var(--fog);
}

.field {
  flex: 1;
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 13px 14px;
  color: var(--paper);
  font-size: 16px;
  user-select: text; -webkit-user-select: text;
}
.field::placeholder { color: var(--fog-dim); }

.iconbtn {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--ink-700);
  border: 1px solid var(--hairline);
  color: var(--fog);
  font-size: 20px;
}
.iconbtn:disabled { opacity: 0.3; }

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

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--r-md);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.35; transform: none; }

.btn--primary { background: var(--paper); color: var(--ink-900); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.btn--ghost { background: var(--ink-700); color: var(--paper); border: 1px solid var(--hairline); }
.btn--quiet { background: none; color: var(--fog-dim); font-weight: 500; font-size: 15px; padding: 12px; }
.btn--danger { background: var(--ink-700); color: #f0a79f; border: 1px solid #4a2f2c; }

.btnrow { display: flex; gap: 10px; }
.btnrow .btn { width: auto; flex: 1; }

/* ---------- Kopfzeile im Spiel ---------- */

.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(10, 18, 25, 0.7);
  backdrop-filter: blur(8px);
}

.topbar .meta { flex: 1; min-width: 0; }
.topbar .turn { font-family: var(--font-num); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog-dim); }
.topbar .who { font-size: 15px; font-weight: 650; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar .tools { display: flex; gap: 6px; }
.topbar .tool {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--ink-700); border: 1px solid var(--hairline);
  font-size: 15px;
}

/* ---------- Würfeltablett ---------- */

.tray {
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  border-bottom: 1px solid var(--hairline);
}

.dicegroup { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

.die {
  --pip: var(--paper-ink);
  width: 46px; height: 46px;
  border-radius: 11px;
  padding: 6px;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  gap: 2px;
  background: var(--paper);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14), 0 3px 8px rgba(0, 0, 0, 0.4);
  flex: none;
}
.die i { display: block; border-radius: 50%; background: var(--pip); align-self: center; justify-self: center; width: 76%; aspect-ratio: 1; }
.die i.off { background: none; }

.die--red { background: var(--red); --pip: #fff; }
.die--yellow { background: var(--yellow); --pip: #3a2a00; }
.die--green { background: var(--green); --pip: #fff; }
.die--blue { background: var(--blue); --pip: #fff; }
/* Farbwürfel einer gesperrten Reihe: sichtbar aus dem Spiel, nicht einfach weg. */
.die--out {
  background: none;
  box-shadow: none;
  border: 2px dashed currentColor;
  color: var(--fog-dim);
  opacity: 0.5;
}
.die--red.die--out { color: var(--red); }
.die--yellow.die--out { color: var(--yellow); }
.die--green.die--out { color: var(--green); }
.die--blue.die--out { color: var(--blue); }
.die--out::after {
  content: "✕";
  grid-area: 1 / 1 / -1 / -1;
  place-self: center;
  font-family: var(--font-ui);
  font-size: 15px;
}

.die--rolling { animation: tumble 0.28s linear infinite; }
@keyframes tumble {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-7px) rotate(-9deg); }
  50%  { transform: translateY(0) rotate(6deg); }
  75%  { transform: translateY(-4px) rotate(-4deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.plus { font-family: var(--font-num); font-size: 20px; color: var(--fog-dim); }

.sumchip {
  display: inline-flex; align-items: baseline; gap: 8px;
  align-self: center;
  padding: 6px 14px 7px;
  border-radius: 999px;
  background: var(--ink-700);
  border: 1px solid var(--hairline);
}
.sumchip b { font-family: var(--font-num); font-size: 22px; color: var(--paper); font-weight: 700; }
.sumchip span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog-dim); }

.combos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.combo {
  font-family: var(--font-num); font-size: 12px;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.55;
}
.combo--live { opacity: 1; background: currentColor; }
.combo--live b { color: var(--ink-900); }
.combo--red { color: var(--red); } .combo--yellow { color: var(--yellow); }
.combo--green { color: var(--green); } .combo--blue { color: var(--blue); }

/* ---------- Spielerreiter ---------- */

.tabs { display: flex; gap: 6px; padding: 10px 14px 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: none;
  display: flex; align-items: baseline; gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--fog);
  max-width: 46vw;
}
.tab em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab b { font-family: var(--font-num); font-size: 12px; color: var(--fog-dim); font-weight: 600; }
.tab--view { background: var(--paper); color: var(--ink-900); border-color: var(--paper); }
.tab--view b { color: var(--stone); }
.tab--turn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7fd4ff; align-self: center; }

/* ---------- Das Blatt ---------- */

.sheet {
  margin: auto 10px;
  padding: 10px 9px 9px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  color: var(--paper-ink);
  display: flex; flex-direction: column; gap: 6px;
}

.sheet--readonly { filter: saturate(0.72); opacity: 0.9; }

.row {
  --c: var(--red);
  --tint: var(--red-tint);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  padding: 5px;
  border-radius: var(--r-md);
  background: var(--tint);
  position: relative;
}
.row--yellow { --c: var(--yellow); --tint: var(--yellow-tint); }
.row--green  { --c: var(--green);  --tint: var(--green-tint); }
.row--blue   { --c: var(--blue);   --tint: var(--blue-tint); }

.row--locked::after {
  content: "GESPERRT";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-num); font-size: 12px; letter-spacing: 0.32em; font-weight: 700;
  color: var(--paper);
  background: rgba(22, 32, 43, 0.62);
  border-radius: var(--r-md);
  pointer-events: none;
}

.cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: var(--c);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(10px, 2.9vw, 17px);
  font-weight: 700;
  letter-spacing: -0.05em;
  padding: 0;
  transition: transform 0.12s ease;
}
.row--yellow .cell { color: #3a2a00; }

.cell--passed { opacity: 0.34; }
/* Angekreuzt: Zahl bleibt lesbar, liegt aber sichtbar unter dem Strich. */
.cell--crossed { box-shadow: inset 0 0 0 99px rgba(12, 22, 32, 0.22); }
.cell--crossed:not(.cell--lock) { color: rgba(255, 255, 255, 0.62); }
.row--yellow .cell--crossed:not(.cell--lock) { color: rgba(58, 42, 0, 0.55); }
.cell--lock { background: var(--c); font-size: clamp(11px, 3.2vw, 18px); }
.cell--lock.cell--open { opacity: 0.42; }

.cell--legal {
  box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4.5px var(--paper-ink);
  z-index: 2;
  animation: breathe 1.5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); } }

.cell--pick {
  box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 5px var(--paper-ink);
  transform: scale(1.12);
  z-index: 3;
  animation: none;
}

.lockico { width: 62%; height: 62%; }

.x { position: absolute; inset: 12%; width: 76%; height: 76%; pointer-events: none; }
.x path { stroke: #fff; stroke-width: 3.2; stroke-linecap: round; fill: none; }
.row--yellow .x path { stroke: #3a2a00; }
.x--ghost path { opacity: 0.45; stroke-dasharray: 3 3; }
.x--fresh path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: ink 0.22s ease-out forwards; }
.x--fresh path:nth-child(2) { animation-delay: 0.1s; }
@keyframes ink { to { stroke-dashoffset: 0; } }

/* Fußzeile des Blattes: Fehlwürfe + Punktestand */
.sheetfoot { display: flex; align-items: center; gap: 10px; padding: 2px 4px 0; }

.penalties { display: flex; align-items: center; gap: 5px; flex: 1; }
.penalties .lbl { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--paper-ghost); font-weight: 700; }
.penalties .box {
  width: 21px; height: 21px; border-radius: 5px;
  border: 1.5px solid var(--paper-line);
  display: grid; place-items: center;
  position: relative;
}
.penalties .box.on { background: var(--stone); border-color: var(--stone); }
.penalties .box .x path { stroke: #fff; stroke-width: 3.6; }

.totalchip {
  font-family: var(--font-num);
  font-size: 15px; font-weight: 700;
  color: var(--paper-ink);
  background: var(--paper-2);
  border-radius: 8px;
  padding: 4px 10px;
}

/* ---------- Aktionsleiste ---------- */

.actions {
  padding: 10px 14px calc(10px + var(--safe-b));
  border-top: 1px solid var(--hairline);
  background: rgba(10, 18, 25, 0.82);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 8px;
}

.hint { text-align: center; font-size: 13px; color: var(--fog); min-height: 19px; }
.hint b { color: var(--paper); font-weight: 650; }

/* ---------- Overlays ---------- */

.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: var(--ink-900);
  display: flex; flex-direction: column;
  animation: fade 0.18s ease-out;
}
@keyframes fade { from { opacity: 0; } }

.handover {
  justify-content: center; align-items: center; text-align: center;
  gap: 6px; padding: 24px calc(24px + var(--safe-b));
  background-image: radial-gradient(90% 50% at 50% 40%, #1b2b3c 0%, rgba(27, 43, 60, 0) 70%);
}
.handover .arrow { font-size: 40px; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(10px); } }
.handover .lbl { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog-dim); }
.handover .name { font-size: clamp(30px, 9vw, 44px); font-weight: 700; color: var(--paper); line-height: 1.1; margin: 2px 0 4px; }
.handover .task { color: var(--fog); margin-bottom: 26px; max-width: 30ch; }
.handover .btn { max-width: 340px; }

.toast {
  position: fixed; z-index: 60;
  left: 50%; bottom: calc(96px + var(--safe-b));
  transform: translateX(-50%);
  max-width: 88vw;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink-600);
  border: 1px solid var(--hairline);
  color: var(--paper);
  font-size: 13px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: rise 0.22s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Regeln / Endstand als Blatt-Panel */
.panel {
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(16px + var(--safe-b));
  width: 100%; max-width: 560px; margin-inline: auto;
}
.panel h2 { font-size: 22px; color: var(--paper); margin: 0 0 4px; letter-spacing: -0.02em; }
.panel h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fog-dim); margin: 22px 0 6px; }
.panel p, .panel li { font-size: 15px; line-height: 1.55; color: var(--fog); }
.panel p { margin: 0 0 8px; }
.panel ul { margin: 0 0 8px; padding-left: 20px; }
.panel li { margin-bottom: 5px; }
.panel strong { color: var(--paper); font-weight: 650; }
.panel .prose { user-select: text; -webkit-user-select: text; }

.scoretable { width: 100%; border-collapse: collapse; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 13px; }
.scoretable th, .scoretable td { padding: 7px 6px; text-align: right; border-bottom: 1px solid var(--hairline); }
.scoretable th:first-child, .scoretable td:first-child { text-align: left; font-family: var(--font-ui); }
.scoretable th { color: var(--fog-dim); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.scoretable td { color: var(--fog); }
.scoretable .tot { color: var(--paper); font-weight: 700; font-size: 15px; }
.scoretable .win td { background: rgba(127, 212, 255, 0.07); }
.scoretable th.c-red, .scoretable td.c-red { color: var(--red); }
.scoretable th.c-yellow, .scoretable td.c-yellow { color: var(--yellow); }
.scoretable th.c-green, .scoretable td.c-green { color: var(--green); }
.scoretable th.c-blue, .scoretable td.c-blue { color: var(--blue); }

.winner { text-align: center; padding: 12px 0 20px; }
.winner .lbl { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog-dim); }
.winner .name { font-size: clamp(28px, 8vw, 40px); font-weight: 700; color: var(--paper); line-height: 1.15; }
.winner .pts { font-family: var(--font-num); font-size: 15px; color: var(--fog); }

.foot { text-align: center; font-size: 12px; color: var(--fog-dim); padding-top: 10px; }

/* Etwas mehr Luft, wenn Platz da ist */
@media (min-width: 480px) {
  .sheet { max-width: 460px; margin-inline: auto; }
  .tray, .actions, .topbar, .tabs { max-width: 520px; margin-inline: auto; width: 100%; }
  .die { width: 52px; height: 52px; }
}

/* Querformat: flaches Fenster. Gestapelt geht das Blatt nicht mehr auf, also
   wandert das Würfeltablett nach links neben das Blatt. */
@media (orientation: landscape) and (max-height: 560px) {
  .screen--game {
    display: grid;
    width: 100%; max-width: 940px; margin-inline: auto;
    grid-template-columns: minmax(230px, 38%) 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "top  top"
      "tray tabs"
      "tray sheet"
      "act  sheet";
  }
  .screen--game .topbar {
    grid-area: top; max-width: none;
    padding-top: calc(env(safe-area-inset-top, 0px) + 7px); padding-bottom: 7px;
  }
  .screen--game .tray {
    grid-area: tray; max-width: none;
    justify-content: center; gap: 10px; padding: 10px 12px;
    border-bottom: 0; border-right: 1px solid var(--hairline);
  }
  .screen--game .tabs { grid-area: tabs; max-width: none; padding-top: 8px; }
  .screen--game .scroll { grid-area: sheet; }
  .screen--game .actions {
    grid-area: act; max-width: none;
    border-top: 0; border-right: 1px solid var(--hairline); padding-top: 6px;
  }

  .die { width: 40px; height: 40px; }
  .tab { padding: 5px 11px; font-size: 12px; }
  .sheet { margin: auto; max-width: 440px; }
  .hint { font-size: 12px; }
}

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

/* ---------- Raumcode für zwei Handys über das Internet ---------- */

.raumcode {
  font-family: var(--font-num);
  font-size: clamp(38px, 13vw, 58px); font-weight: 800; letter-spacing: 0.14em;
  text-align: center; padding: 18px 10px; margin: 16px 0;
  border-radius: 14px; user-select: all; -webkit-user-select: all;
  background: var(--papier, #f3f2ee); color: var(--tinte, #10161f); border: 2px solid var(--blau, #2a6ed4);
}
.field--code, .feld--code {
  width: 100%; text-align: center; letter-spacing: 0.3em;
  font-family: var(--font-num); font-size: 28px; text-transform: uppercase;
  margin-top: 8px;
}

/* ---------- Kopplung per QR (zwei Handys im selben WLAN) ---------- */

/* Qwixx kennt kein .wrap — die Kopplungsschirme brauchen ihren Rand selbst. */
.screen > .wrap, .scrollbar > .wrap {
  width: 100%; max-width: 560px; margin-inline: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) 18px calc(22px + env(safe-area-inset-bottom, 0px));
}

.qrfeld {
  display: grid; place-items: center;
  background: #f3f2ee; border-radius: 14px; padding: 14px; margin: 16px 0;
}
.qrfeld canvas { width: 100%; max-width: 300px; height: auto; image-rendering: pixelated; display: block; }

.scanfenster {
  position: relative; overflow: hidden; border-radius: 14px; background: #000;
  aspect-ratio: 1; margin: 16px 0; border: 1px solid var(--line, #2a3442);
}
.scanfenster video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanfenster::after {
  content: ""; position: absolute; inset: 16%;
  border: 2px solid var(--gold, #e8a300); border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.45);
}

.codeklappe { margin-top: 6px; }
.codeklappe summary { font-size: 13px; color: var(--fog-dim, #7c8a9a); cursor: pointer; padding: 8px 0; list-style: none; }
.codeklappe summary::before { content: "▸ "; }
.codeklappe[open] summary::before { content: "▾ "; }
.codeklappe .btn { margin-top: 8px; }
.codefeld {
  width: 100%; min-height: 84px; resize: vertical; margin-top: 6px;
  background: var(--panel, #17202b); border: 1px solid var(--line, #2a3442); border-radius: 10px;
  padding: 10px; color: var(--fog-dim, #7c8a9a); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px;
  word-break: break-all; user-select: text; -webkit-user-select: text;
}
.warnton { color: #e2664f; }
.feldlabel {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fog-dim, #7c8a9a); font-weight: 700; margin: 22px 0 6px;
}
.scrollbar { overflow-y: auto; max-height: 100dvh; }
.knopfsaeule { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
