/* ============================================================
   SV Afritz — Strafen- & Getränkekasse
   Design: Kabinen-Tafel. Blau-gelb, Mobile-First.
   ============================================================ */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Vereinsfarben aus dem Wappen: Azurblau + Altgold (SV Afritz 1975) */
  --blau: #0b6aa8;
  --blau-tief: #0a3a5c;
  --blau-hell: #1a86c8;
  --gelb: #e6b422;
  --gelb-amber: #b8881a;
  --papier: #f2f4f9;
  --karte: #ffffff;
  --ink: #14181f;
  --ink-soft: #4c5566;
  --linie: #dde3ee;
  --rot: #c0392b;
  --gruen: #1e8e4e;
  --radius: 14px;
  --schatten: 0 1px 3px rgba(14, 35, 80, .08), 0 6px 20px rgba(14, 35, 80, .07);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --tnum: 'tnum' 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--papier);
  min-height: 100dvh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom)); /* Platz für Bottom-Nav inkl. Credit */
}

button { font: inherit; cursor: pointer; }
a { color: var(--blau); }
:focus-visible { outline: 3px solid var(--gelb-amber); outline-offset: 2px; border-radius: 4px; }
input, select, textarea {
  font: inherit; color: var(--ink);
  border: 1.5px solid var(--linie); border-radius: 10px;
  padding: .65rem .8rem; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--blau); outline: none; }

/* ---------- Kopf ---------- */
.topbar {
  background: linear-gradient(160deg, var(--blau-hell), var(--blau-tief) 70%);
  color: #fff;
  padding: calc(.9rem + env(safe-area-inset-top)) 1rem .9rem;
  display: flex; align-items: center; gap: .75rem;
  border-bottom: 3px solid var(--gelb);
}
.topbar img { width: 44px; height: auto; flex: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.topbar .t-text { flex: 1; min-width: 0; }
.topbar .t-club {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gelb);
  line-height: 1.1;
}
.topbar h1 {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  line-height: 1.1; letter-spacing: .02em; text-transform: uppercase;
}
/* Sprachumschalter DE/SL */
.lang-btn {
  flex: none; border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08);
  color: #fff; border-radius: 999px; padding: .35rem .7rem;
  font-family: var(--display); font-weight: 700; font-size: .92rem; letter-spacing: .08em;
}
.lang-btn .on { color: var(--gelb); }
.lang-btn:active { background: rgba(255,255,255,.18); }

.wrap { max-width: 680px; margin: 0 auto; padding: 1rem; }
@media (min-width: 720px) { .wrap { padding: 1.5rem 1rem; } }

/* ---------- Bottom-Navigation ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--blau-tief);
  border-top: 3px solid var(--gelb);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav .nav-tabs { display: flex; }
.bottomnav .nav-tabs a {
  flex: 1; text-align: center; text-decoration: none;
  padding: .55rem 0 .5rem; color: #aebadb;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.bottomnav .nav-tabs a svg { display: block; margin: 0 auto 2px; width: 22px; height: 22px; }
.bottomnav .nav-tabs a.active { color: var(--gelb); }
.bottomnav .nav-tabs a:active { background: rgba(255, 203, 5, .08); }
.nav-credit {
  text-align: center; font-size: .62rem; color: #7e8fb8;
  padding: 0 0 .3rem; line-height: 1.2;
}
.nav-credit .credit-gh {
  color: #aebadb; text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: .22rem; vertical-align: middle;
}
.nav-credit .credit-heart { color: var(--gelb); }

/* ---------- Karten & Abschnitte ---------- */
.card {
  background: var(--karte); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 1rem; margin-bottom: 1rem;
}
.section-label {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; align-items: center; gap: .6rem;
  margin: 1.2rem 0 .6rem;
}
.section-label::after { content: ''; flex: 1; height: 2px; background: var(--linie); }
.section-label .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-getraenk { background: var(--blau); }
.dot-strafe { background: var(--gelb-amber); }

/* ---------- Eintragen: Spieler-Kacheln ---------- */
.player-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: .55rem;
}
.player-tile {
  background: var(--karte); border: 2px solid var(--linie); border-radius: 12px;
  padding: .6rem .4rem .55rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  min-height: 78px; transition: border-color .12s, transform .06s;
}
.player-tile:active { transform: scale(.97); }
.player-tile.selected { border-color: var(--blau); background: #eef2fb; box-shadow: inset 0 0 0 1px var(--blau); }
.player-tile .nr {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1;
  color: var(--blau); font-feature-settings: var(--tnum);
}
.player-tile.selected .nr { color: var(--blau-tief); }
.player-tile .pname { font-size: .78rem; font-weight: 600; color: var(--ink); line-height: 1.2; word-break: break-word; }

/* Personen-Suche */
.player-search {
  margin-bottom: .65rem; border-radius: 999px; padding: .6rem 1rem;
  box-shadow: var(--schatten); border-color: transparent;
}
.player-search:focus { border-color: var(--blau); }

/* Gewählte Person (Schritt 2) */
.picked-person {
  width: 100%; display: flex; align-items: center; gap: .7rem;
  background: var(--blau-tief); color: #fff; border: none; border-radius: var(--radius);
  padding: .6rem .8rem; margin: .35rem 0 .8rem;
  box-shadow: var(--schatten); text-align: left;
}
.picked-person .pp-nr {
  width: 38px; height: 38px; border-radius: 9px; background: var(--gelb); color: var(--blau-tief);
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.picked-person .pp-name { flex: 1; font-weight: 600; font-size: 1.02rem; }
.picked-person .pp-x { color: #aebadb; font-size: 1.05rem; padding: .2rem .3rem; }

/* Tabs Getränke/Strafen */
.seg-items { margin-bottom: .75rem; }
.seg-items button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-size: .95rem; padding: .6rem .3rem; }
.seg-items button .dot { width: 9px; height: 9px; border-radius: 50%; }
.seg-items button.active .dot-getraenk { background: #9cc6ee; }
.seg-items button.active .dot-strafe { background: var(--gelb); }

/* Kompakte Positions-Zeilen */
.item-list { display: flex; flex-direction: column; gap: .45rem; }
.item-row {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  background: var(--karte); border: 2px solid transparent; border-radius: 12px;
  box-shadow: var(--schatten); padding: .62rem .8rem;
  transition: border-color .12s, transform .06s;
}
.item-row:active { transform: scale(.985); }
.item-badge {
  flex: none; font-family: var(--display); font-weight: 700; font-size: .92rem;
  background: #fdf4dd; color: #8a6100; border-radius: 7px; padding: .18rem .45rem;
  min-width: 2.6rem; text-align: center;
}
.item-row.getraenk .item-badge { background: #e3ebfb; color: var(--blau); }
.item-lbl {
  flex: 1; font-weight: 600; font-size: .92rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-price { flex: none; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink-soft); font-feature-settings: var(--tnum); }
.item-row.selected.getraenk { border-color: var(--blau); background: #eef2fb; }
.item-row.selected.strafe { border-color: var(--gelb-amber); background: #fdf4dd; }
.item-row.selected .item-price { color: var(--ink); }

/* ---------- Eintragen: Positions-Chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 2px solid var(--linie); border-radius: 999px; background: var(--karte);
  padding: .55rem .95rem; font-weight: 600; font-size: .92rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: border-color .12s, transform .06s;
}
.chip:active { transform: scale(.96); }
.chip .preis { font-family: var(--display); font-weight: 700; color: var(--ink-soft); font-size: .95rem; }
.chip.selected.getraenk { border-color: var(--blau); background: #eef2fb; }
.chip.selected.strafe { border-color: var(--gelb-amber); background: #fdf4dd; }

/* Mengen-Stepper */
.stepper { display: flex; align-items: center; gap: .8rem; justify-content: center; }
.stepper button {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--linie);
  background: var(--karte); font-family: var(--display); font-weight: 700; font-size: 1.6rem;
  color: var(--blau); line-height: 1;
}
.stepper button:disabled { opacity: .35; }
.stepper .qty {
  font-family: var(--display); font-weight: 700; font-size: 2.6rem; min-width: 2ch;
  text-align: center; font-feature-settings: var(--tnum);
}

/* Sticky-Bestätigung unten (über der Nav) */
.confirmbar {
  position: fixed; left: 0; right: 0; z-index: 39;
  bottom: calc(74px + env(safe-area-inset-bottom));
  padding: .6rem 1rem; pointer-events: none;
  transform: translateY(130%); transition: transform .18s ease-out;
}
.confirmbar.show { transform: none; }
.confirmbar .inner {
  max-width: 680px; margin: 0 auto; pointer-events: auto;
  background: var(--blau-tief); color: #fff; border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(14, 35, 80, .45);
  padding: .7rem .9rem; display: flex; flex-direction: column; gap: .55rem;
  border: 1.5px solid rgba(230, 180, 34, .5);
}
.confirmbar .summary { font-size: .92rem; line-height: 1.3; }
.confirmbar .summary strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: .02em; }
.confirmbar .summary .betrag { color: var(--gelb); font-weight: 700; }
.confirm-controls { display: flex; align-items: center; gap: .7rem; }
.confirm-controls .btn { flex: 1; }
/* kompakter Stepper in der Leiste */
.stepper-bar { gap: .55rem; }
.stepper-bar button {
  width: 44px; height: 44px; border-color: #3a5497; background: transparent;
  color: #fff; font-size: 1.4rem;
}
.stepper-bar .qty { font-size: 1.55rem; color: var(--gelb); min-width: 2ch; }
/* Solange die Leiste offen ist: unten Platz schaffen, damit Chips nicht verdeckt werden */
body.has-confirm { padding-bottom: calc(210px + env(safe-area-inset-bottom)); }

.btn {
  border: none; border-radius: 10px; padding: .7rem 1.15rem;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--gelb); color: var(--blau-tief);
}
.btn:active { background: var(--gelb-amber); }
.btn.sekundaer { background: transparent; color: #cdd6ef; border: 1.5px solid #3a5497; }
.btn.klein { padding: .45rem .8rem; font-size: .95rem; }
.btn.gefahr { background: var(--rot); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }

/* Toast + Undo */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px);
  bottom: calc(140px + env(safe-area-inset-bottom)); z-index: 60;
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: .7rem 1rem; font-size: .92rem; display: flex; align-items: center; gap: .9rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s; max-width: min(92vw, 480px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast button { background: none; border: none; color: var(--gelb); font-weight: 700; text-transform: uppercase; font-family: var(--display); font-size: 1rem; letter-spacing: .05em; }

/* Tally-Strich-Animation (Signatur): kurzer gelber Strich beim Buchen */
.tally-pop {
  position: fixed; z-index: 70; pointer-events: none;
  font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--gelb-amber);
  text-shadow: 0 1px 0 #fff;
  animation: tally .7s ease-out forwards;
}
@keyframes tally {
  0% { opacity: 0; transform: translateY(6px) rotate(-14deg) scale(.6); }
  25% { opacity: 1; transform: translateY(0) rotate(-14deg) scale(1.1); }
  100% { opacity: 0; transform: translateY(-34px) rotate(-14deg) scale(1); }
}

/* ---------- Auswertung: die Kabinen-Tafel ---------- */
.filterbar { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.month-nav {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: .35rem .4rem;
}
.month-nav button {
  width: 44px; height: 44px; border: none; background: none; border-radius: 10px;
  font-size: 1.3rem; color: var(--blau); font-weight: 700;
}
.month-nav button:active { background: var(--papier); }
.month-nav .label {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: .04em; text-transform: uppercase; text-align: center;
}
.month-nav .label small { display: block; font-size: .72rem; color: var(--ink-soft); font-family: var(--body); font-weight: 500; letter-spacing: .02em; text-transform: none; }

.seg {
  display: flex; background: var(--karte); border-radius: 999px; padding: 3px;
  box-shadow: var(--schatten);
}
.seg button {
  flex: 1; border: none; background: none; border-radius: 999px;
  padding: .5rem .3rem; font-weight: 600; font-size: .85rem; color: var(--ink-soft);
}
.seg button.active { background: var(--blau); color: #fff; }
.seg.seg-metric button.active { background: var(--gelb); color: var(--blau-tief); }

.custom-range { display: flex; gap: .5rem; align-items: center; }
.custom-range input[type="date"] { flex: 1; }

/* Die Tafel selbst: dunkelblaues Brett, gelbe Balken */
.board {
  background: linear-gradient(170deg, var(--blau-hell), var(--blau-tief) 60%);
  border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 1rem .9rem; color: #fff;
  border-top: 4px solid var(--gelb);
}
.board-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .9rem; gap: .5rem;
}
.board-head .bh-title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gelb); }
.board-head .bh-total { font-family: var(--display); font-weight: 700; font-size: 1.25rem; font-feature-settings: var(--tnum); }

.board-row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: .5rem; align-items: center;
  padding: .5rem 0; text-decoration: none; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.board-row:last-child { border-bottom: none; }
.board-row:active { background: rgba(255, 255, 255, .05); }
.jersey {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--gelb); color: var(--blau-tief);
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-feature-settings: var(--tnum); flex: none;
  box-shadow: inset 0 -3px 0 rgba(14, 35, 80, .25);
}
.jersey.leer { background: #2c4a9c; color: #9fb0dd; }
/* Kürzel statt Nummer (TR, TTR, COTR …) — annähernd Nummern-Größe; 4 Zeichen etwas kleiner */
.jersey.txt { font-size: 1rem; letter-spacing: .01em; }
.jersey.txt.txt4 { font-size: .8rem; }
.person-head .jersey.txt { font-size: 1.2rem; }
.person-head .jersey.txt.txt4 { font-size: .95rem; }
.player-tile .nr.txt { font-size: 1.25rem; line-height: 1.2; }
.player-tile .nr.txt.txt4 { font-size: 1rem; line-height: 1.5; }
.picked-person .pp-nr.txt { font-size: .95rem; }
.picked-person .pp-nr.txt.txt4 { font-size: .78rem; }
.board-row .mid { min-width: 0; }
.board-row .bname {
  display: block; /* nötig, damit ellipsis greift — sonst überdeckt ein langer Name den Betrag */
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .3rem;
}
.bar-track { display: block; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--gelb-amber), var(--gelb));
  width: 0; transition: width .5s cubic-bezier(.2, .7, .3, 1);
  min-width: 4px;
}
.board-row .val {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  font-feature-settings: var(--tnum); color: var(--gelb); text-align: right;
  line-height: 1;
}
.board-row .val small { display: block; font-family: var(--body); font-weight: 500; font-size: .66rem; color: #aebadb; letter-spacing: .03em; }
.board-empty { text-align: center; color: #aebadb; padding: 1.5rem .5rem; font-size: .92rem; }

/* „Sünder des Monats": Krone überm Trikot-Badge von Platz 1 */
.jersey { position: relative; }
.jersey .krone {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-12deg);
  font-size: .95rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}

/* Teilen-Button (nur Admin) */
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; margin-top: .8rem;
}
.share-btn.hidden { display: none; }

/* ---------- Personen-Detail / Nachweisliste ---------- */
.person-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.person-head .jersey { width: 52px; height: 52px; font-size: 1.6rem; border-radius: 12px; }
.person-head h2 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.person-head .saldo { font-size: .85rem; color: var(--ink-soft); }
.person-head .saldo strong { color: var(--blau); font-feature-settings: var(--tnum); }

.proof {
  background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  margin-bottom: .6rem; padding: .75rem .9rem;
  border-left: 4px solid var(--blau);
}
.proof.strafe { border-left-color: var(--gelb-amber); }
.proof.storno { border-left-color: var(--rot); opacity: .75; }
.proof.zahlung { border-left-color: var(--gruen); }
.proof .p-top { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.proof .p-was { font-weight: 600; }
.proof.storno .p-was { text-decoration: line-through; }
.proof .p-betrag { font-family: var(--display); font-weight: 700; font-size: 1.2rem; font-feature-settings: var(--tnum); white-space: nowrap; }
.proof.zahlung .p-betrag { color: var(--gruen); }
.proof .p-meta { font-size: .78rem; color: var(--ink-soft); margin-top: .3rem; line-height: 1.55; }
.proof .p-meta .m-chip {
  display: inline-block; background: var(--papier); border-radius: 6px;
  padding: .06rem .45rem; margin: .12rem .25rem .12rem 0; white-space: nowrap;
}
.proof .p-flag { margin-top: .35rem; font-size: .78rem; font-weight: 600; border-radius: 8px; padding: .3rem .55rem; display: inline-block; }
.proof .flag-storno { background: #fbe9e7; color: var(--rot); }
.proof .flag-edit { background: #fdf4dd; color: #8a6100; }

/* ---------- Admin ---------- */
.login-box { max-width: 380px; margin: 3rem auto; }
.login-box .card { padding: 1.4rem; }
.login-box h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.form-row { margin-bottom: .8rem; }
.form-row label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

.admin-list { display: flex; flex-direction: column; gap: .5rem; }
.admin-item {
  background: var(--karte); border-radius: 12px; box-shadow: var(--schatten);
  padding: .7rem .85rem; display: flex; justify-content: space-between; gap: .7rem; align-items: center;
}
.admin-item .ai-main { min-width: 0; flex: 1; }
.admin-item .ai-title { font-weight: 600; font-size: .93rem; }
.admin-item .ai-sub { font-size: .76rem; color: var(--ink-soft); }
.admin-item .ai-actions { display: flex; gap: .35rem; flex: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--linie);
  background: #fff; font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.icon-btn:active { background: var(--papier); }

.tabs { display: flex; gap: .4rem; margin-bottom: 1rem; overflow-x: auto; }
.tabs button {
  border: none; background: var(--karte); box-shadow: var(--schatten);
  border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .88rem;
  color: var(--ink-soft); white-space: nowrap;
}
.tabs button.active { background: var(--blau); color: #fff; }

.badge { display: inline-block; border-radius: 6px; padding: .05rem .4rem; font-size: .7rem; font-weight: 700; }
.badge.getraenk { background: #e3ebfb; color: var(--blau); }
.badge.strafe { background: #fdf4dd; color: #8a6100; }
.badge.inaktiv { background: #eee; color: #888; }

dialog {
  border: none; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  padding: 1.2rem; width: min(92vw, 420px); margin: auto;
}
dialog::backdrop { background: rgba(14, 35, 80, .5); }
dialog h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .8rem; }
dialog .dlg-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }

.muted { color: var(--ink-soft); font-size: .85rem; }
.hidden { display: none !important; }


/* Desktop: Inhalt mittig, Nav bleibt (einfach & konsistent) */
@media (min-width: 900px) {
  body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
