/* =====================================================================
   BIMMEL — Design-System

   Warm, modern, ruhig. Creme und Espresso als Grund, ein einziger
   Signalton in Bernstein. Kein Blau, kein Glas, kein Neon, keine
   Papier- oder Ticket-Optik.

   Aufbau dieser Datei:
     1  Schriften
     2  Farbtoken (hell) und Dunkelmodus
     3  Grundlagen und Typografie
     4  Layout
     5  Knöpfe
     6  Glocke und Ruf-Knopf
     7  Gast-Ansicht
     8  Dashboard
     9  Formulare
    10  Status, Hinweise, Meldungen
    11  QR, Tarife, Statistik
    12  Druck und reduzierte Bewegung
   ===================================================================== */

/* --- 1  Schriften ---------------------------------------------------- */
/* Cabinet Grotesk trägt Überschriften und Markenmomente, Inter alles,
   was gelesen und nicht bewundert werden soll. */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@700,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* --- 2  Farbtoken ---------------------------------------------------- */
:root {
  /* Grundflächen */
  --bg: #faf6f0;
  --surface: #fffcf8;
  --surface-2: #f4ede4;
  --text: #211d1a;
  --text-dim: #7a6e64;
  --line: rgba(33, 29, 26, 0.12);
  --line-strong: rgba(33, 29, 26, 0.2);

  /* Der eine Signalton. Pro Lokal überschreibbar, aber nie vervielfacht. */
  --accent: #d97742;
  /* Bernstein als Schrift auf Creme schafft nur 2,9:1 — für Text die tiefere
     Variante nehmen, sonst reißt der AA-Kontrast. */
  --accent-ink: #b3541f;
  --accent-soft: rgba(217, 119, 66, 0.13);
  --accent-line: rgba(217, 119, 66, 0.35);

  /* Eskalation: derselbe Bernstein, nur zunehmend gesättigt. */
  --fresh: #d9a441;
  --warn: #cb5c34;
  --urgent: #b33f26;
  --urgent-soft: rgba(179, 63, 38, 0.12);

  --ok: #3f6b4d;
  --ok-soft: rgba(63, 107, 77, 0.12);

  /* Weiche, flache Schatten — keine harten Kanten, kein Glühen. */
  --shadow-sm: 0 1px 2px rgba(33, 29, 26, 0.04), 0 4px 14px rgba(33, 29, 26, 0.05);
  --shadow-md: 0 2px 4px rgba(33, 29, 26, 0.05), 0 12px 32px rgba(33, 29, 26, 0.07);
  --shadow-lg: 0 4px 8px rgba(33, 29, 26, 0.06), 0 24px 60px rgba(33, 29, 26, 0.1);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --tap: 44px;

  --font-display: 'Cabinet Grotesk', 'Inter', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 0.7, 0.3, 1);

  /* Native Steuerelemente (Scrollbalken, Auswahl) sollen zum Grund passen. */
  color-scheme: light;
}

/* Dunkelmodus. Warmes Espresso, nie reines Schwarz — die Bar ist dunkel,
   aber der Bildschirm soll nicht ins Gesicht stechen. */
[data-theme='dark'] {
  color-scheme: dark;
  /* Aufgehellter Espresso: zwei Stufen heller als der frühere Grund, damit
     Karten sich als Fläche absetzen können statt nur zu schweben. */
  --bg: #2e2823;
  --surface: #3a322c;
  --surface-2: #453b34;
  --text: #f4efe8;
  --text-dim: #a89a8e;
  /* Deutlichere Kanten — im Dunkeln trägt der Rand die Karte, nicht der
     Schatten. */
  --line: rgba(244, 239, 232, 0.2);
  --line-strong: rgba(244, 239, 232, 0.32);

  /* Auf Espresso trägt der Bernstein auch als Schrift. */
  --accent-ink: #e2884f;
  --accent-soft: rgba(217, 119, 66, 0.18);
  --accent-line: rgba(217, 119, 66, 0.45);

  --fresh: #e0b155;
  --warn: #dc6c3e;
  --urgent: #d9553a;
  --urgent-soft: rgba(217, 85, 58, 0.16);

  --ok: #7fb391;
  --ok-soft: rgba(127, 179, 145, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.32), 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* --- 3  Grundlagen --------------------------------------------------- */
* {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}
h2 {
  font-size: clamp(1.4rem, 3.6vw, 2rem);
}
h3 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-ink);
}

.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.dim {
  color: var(--text-dim);
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.hint {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Sichtbarer Fokus, überall gleich. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* --- 4  Layout ------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 96px;
}
.shell--narrow {
  max-width: 620px;
}
.shell--wide {
  max-width: 1500px;
}

.wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.stack {
  display: flex;
  flex-direction: column;
}
.stack-2 {
  gap: 8px;
}
.stack-3 {
  gap: 12px;
}
.stack-4 {
  gap: 16px;
}
.stack-6 {
  gap: 24px;
}
.stack-8 {
  gap: 32px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.panel--pad-sm {
  padding: 14px;
}
.panel--pad-lg {
  padding: 28px;
}
.panel--lift {
  box-shadow: var(--shadow-md);
}
.panel--flat {
  background: transparent;
  box-shadow: none;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* --- 5  Knöpfe ------------------------------------------------------- */
/* Pillenform, flach, großzügige Trefferfläche. */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--tap);
  padding: 11px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease),
    transform 0.12s var(--ease);
}
.btn:hover {
  border-color: var(--accent-line);
}
.btn:active {
  transform: scale(0.985);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff;
}

.btn--ghost {
  background: transparent;
}

.btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
  padding-inline: 14px;
}
.btn--quiet:hover {
  color: var(--text);
  border-color: var(--line);
}

.btn--lg {
  min-height: 56px;
  padding: 15px 30px;
  font-size: 1.02rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* --- 6  Glocke und Ruf-Knopf ----------------------------------------- */
.bell {
  display: inline-grid;
  place-items: center;
  line-height: 0;
  color: inherit;
}
.bell__svg {
  width: 1em;
  height: 1em;
  overflow: visible;
}
.bell__body,
.bell__clapper {
  transform-origin: 24px 8px;
}
.bell__arc {
  opacity: 0;
}

.bell.is-ringing .bell__body,
.ring__btn.is-hit .bell__body {
  animation: bell-sway 1000ms cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
}
.bell.is-ringing .bell__clapper,
.ring__btn.is-hit .bell__clapper {
  animation: bell-sway 1000ms cubic-bezier(0.36, 0.07, 0.19, 0.97) 70ms 1;
}
.bell.is-ringing .bell__arc,
.ring__btn.is-hit .bell__arc {
  animation: bell-arc 1000ms ease-out 1;
}
.bell.is-ringing .bell__arc--2,
.ring__btn.is-hit .bell__arc--2 {
  animation-delay: 110ms;
}

@keyframes bell-sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  14% {
    transform: rotate(13deg);
  }
  34% {
    transform: rotate(-9.5deg);
  }
  54% {
    transform: rotate(5.5deg);
  }
  74% {
    transform: rotate(-2.5deg);
  }
}
@keyframes bell-arc {
  0% {
    opacity: 0;
    transform: scale(0.84);
  }
  22% {
    opacity: 0.85;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* Der Ruf-Knopf: die Glocke ist das Ziel, nicht nur das Zeichen. */
.ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Knopf und Schallwellen teilen einen Container. Alles darin ist
   prozentual bemessen, damit die Bögen mitschrumpfen statt aus dem
   Bildschirm zu laufen. */
.ring__core {
  position: relative;
  flex: none;
  width: min(190px, 62vw);
  aspect-ratio: 1;
}

.ring__btn {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
  background: var(--live, var(--accent));
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  box-shadow:
    0 2px 4px rgba(33, 29, 26, 0.08),
    0 14px 32px rgba(217, 119, 66, 0.3);
  transition:
    transform 0.14s var(--ease),
    background 0.6s linear;
}
.ring__btn:active {
  transform: scale(0.96);
}
.ring__btn[disabled] {
  cursor: progress;
}
/* Reines Weiß statt Creme: hebt die Glocke über die Kontrastschwelle für
   grafische Elemente, ohne den vorgegebenen Bernstein anzutasten. Größe
   relativ zum Knopf (nicht zur Schriftgröße), damit die Glocke mitwächst. */
.ring__btn .bell {
  color: #fff;
  width: 46%;
  height: 46%;
}
.ring__btn .bell__svg {
  width: 100%;
  height: 100%;
}

.ring__sonar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 174%;
  height: auto;
  aspect-ratio: 300 / 220;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.ring__wave {
  fill: none;
  stroke: var(--live, var(--accent));
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  transform-box: view-box;
  transform-origin: 150px 110px;
}
/* Reine Druck-Reaktion: einmal auslaufen, dann weg. Keine Dauerschleife —
   den Live-Zustand tragen Farbe und mitlaufende Zeit. */
.ring__sonar.is-hit .ring__wave {
  animation: ring-emit 1150ms var(--ease-out) 1;
}
.ring__sonar.is-hit .ring__wave--2 {
  animation-delay: 110ms;
}
.ring__sonar.is-hit .ring__wave--3 {
  animation-delay: 220ms;
}

@keyframes ring-emit {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  18% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}
/* Variante für reduzierte Bewegung: gleiche Aussage, keine Skalierung.
   Weniger Bewegung heißt nicht: gar keine Rückmeldung. */
@keyframes ring-emit-soft {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 0.9;
  }
  60% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
  }
}
@keyframes bell-arc-soft {
  0% {
    opacity: 0;
  }
  22% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}

.ring__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.ring__label strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.ring__label span {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.ring__label span.is-live {
  color: var(--live-ink, var(--accent-ink));
  font-weight: 500;
}

/* --- 7  Gast-Ansicht ------------------------------------------------- */
.guest {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
}

.guest__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 24px;
}
.guest__logo {
  max-height: 46px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 6px;
}
.guest__venue {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.guest__table {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* Rücknahme: leise, direkt am Knopf, nur wenn etwas offen ist. */
.withdraw {
  -webkit-appearance: none;
  appearance: none;
  min-height: var(--tap);
  padding: 9px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}
.withdraw:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 12px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Nebenrufe als ruhige Pillen — sie dürfen dem Ruf-Knopf nicht die
   Aufmerksamkeit streitig machen. */
.call-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.call-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 56px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.97rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease),
    transform 0.12s var(--ease);
}
.call-btn:hover {
  border-color: var(--accent-line);
}
.call-btn:active {
  transform: scale(0.985);
}
.call-btn__icon {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: color 0.18s var(--ease);
}
.call-btn__text {
  flex: 1;
  min-width: 0;
}
.call-btn__label {
  display: block;
}
.call-btn__sub {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.call-btn.is-pending {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.call-btn.is-pending .call-btn__icon {
  color: var(--accent-ink);
}
.call-btn.is-pending .call-btn__sub {
  color: var(--accent-ink);
  font-weight: 500;
}

/* Freitext beim individuellen Anliegen */
.note-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 2px 0;
}
.note-field textarea {
  width: 100%;
  min-height: 84px;
  resize: none;
}
.note-field__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.note-field__count {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.guest__ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.88rem;
}
.guest__ack svg {
  flex: none;
  margin-top: 1px;
  color: var(--accent-ink);
}

.guest__foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Sprachumschalter */
.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.lang button {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  min-height: 34px;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* --- Demo-Banner ----------------------------------------------------- */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-line);
  color: var(--text);
  font-size: 0.82rem;
  text-align: center;
}
.demo-banner strong {
  color: var(--accent-ink);
}
.demo-banner__exit {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--accent-line);
  background: transparent;
  color: var(--accent-ink);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  min-height: 32px;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.demo-banner__exit:hover {
  background: var(--accent-soft);
}

/* --- 8  Dashboard ---------------------------------------------------- */
.dash {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.dash__bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.dash__body {
  flex: 1;
  padding: 20px 20px 64px;
}
.dash__name {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex: none;
}
.connection.is-live .dot {
  background: var(--ok);
}
.connection.is-connecting .dot {
  background: var(--warn);
}
.connection.is-offline .dot {
  background: var(--urgent);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-dim);
}
.chip--accent {
  border-color: var(--accent-line);
  color: var(--accent-ink);
  background: var(--accent-soft);
}

/* Ticket-Rail: ein Tisch, eine Karte. */
.ticket-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
@media (min-width: 1280px) {
  .ticket-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    border-color 0.4s linear,
    box-shadow 0.3s var(--ease);
}
/* Die Eskalation läuft über die Farbe der Karte, nicht über eine Zahl:
   über den Raum hinweg muss ohne Lesen klar sein, wo es brennt. */
.ticket::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--level, var(--accent));
  transition: background 0.6s linear;
}
.ticket.is-warn {
  border-color: var(--accent-line);
}
.ticket.is-urgent {
  border-color: var(--urgent);
  box-shadow: var(--shadow-md);
}
.ticket.is-claimed {
  background: var(--surface-2);
}

.ticket__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.ticket__table {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1280px) {
  .ticket__table {
    font-size: 1.8rem;
  }
}
.ticket__wait {
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--level, var(--accent-ink));
}

.ticket__calls {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ticket__call {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text);
}
.ticket__call svg {
  flex: none;
  margin-top: 2px;
  color: var(--text-dim);
}
.ticket__call time {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.ticket__note {
  display: block;
  margin-top: 2px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 0.85rem;
  color: var(--text);
}
[data-theme='dark'] .ticket__note {
  background: rgba(242, 236, 228, 0.07);
}

.ticket__claimed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ok);
}

.ticket__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.ticket__actions .btn {
  flex: 1;
  padding-inline: 14px;
  font-size: 0.9rem;
}

.ticket__urgent-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--urgent);
}

/* --- Wochenanalyse: Aussagen-Listen in den Ticket-Karten ------------- */
.an-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.an-list__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.45;
}
.an-list__dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}
.an-list__dot--ok {
  background: var(--ok);
}
.an-list__dot--accent {
  background: var(--accent);
}

/* --- 9  Formulare ---------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
}
.input {
  width: 100%;
  min-height: var(--tap);
  padding: 11px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
}
.input::placeholder {
  color: var(--text-dim);
}
.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.input--mono {
  font-variant-numeric: tabular-nums;
}
.input--pin {
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* --- 10  Status, Hinweise, Meldungen --------------------------------- */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 56px 20px;
  color: var(--text-dim);
}
.state__icon {
  color: var(--accent);
  opacity: 0.85;
}
.state__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.state__text {
  max-width: 44ch;
  font-size: 0.92rem;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: spin 700ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.alert {
  display: flex;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.alert--error {
  border-color: var(--urgent);
  background: var(--urgent-soft);
  color: var(--text);
}
.alert--ok {
  border-color: var(--ok);
  background: var(--ok-soft);
}
.alert--info {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 0.88rem;
  box-shadow: var(--shadow-md);
  animation: toast-in 240ms var(--ease-out);
}
.toast--error {
  background: var(--urgent);
  color: #fff;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* --- 11  Startseite, QR, Tarife, Statistik --------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 56px 0 40px;
}
.hero__bell {
  color: var(--accent);
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 0;
}
.hero__title {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
}
.hero__sub {
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.qr-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.qr-card img,
.qr-card canvas {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: var(--r-sm);
}
.qr-card__no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.qr-card__url {
  font-size: 0.68rem;
  color: var(--text-dim);
  word-break: break-all;
}

/* Auswahl für den Druck. Die ausgewählte Karte bekommt den Akzentrand —
   auf einen Blick sichtbar, was im PDF landet. */
.qr-card {
  position: relative;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.qr-card.is-selected {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.qr-card__pick {
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 0.72rem;
  color: var(--text-dim);
  cursor: pointer;
  /* Tap-Ziel: die Box allein wäre zu klein für einen Daumen. */
  min-height: 32px;
  padding: 4px 2px;
  user-select: none;
}
.qr-card__pick input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.qr-card__placeholder {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: var(--stone);
}

.qr-card__tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin-top: auto;
  padding-top: 4px;
}
.qr-card__tools .btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
}

.qr-card__confirm {
  width: 100%;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--stone);
  text-align: left;
}

.plans {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-ui);
  color: var(--text);
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.plan:hover:not([disabled]) {
  border-color: var(--accent-line);
}
.plan.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.plan[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.plan__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.plan__price {
  font-size: 1.3rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.plan__limit {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.stat-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding-top: 12px;
}
.bars__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.bars__bar {
  width: 100%;
  max-width: 40px;
  border-radius: 6px 6px 2px 2px;
  background: var(--accent);
  min-height: 3px;
}
.bars__label {
  font-size: 0.66rem;
  color: var(--text-dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* --- 12  Druck und reduzierte Bewegung ------------------------------- */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .qr-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .qr-card {
    border-color: #999;
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Das Schwingen der Glocke fällt weg — das ist echte Bewegung. Die
     Schallwellen bleiben, blenden aber nur noch auf und ab. */
  .bell__body,
  .bell__clapper {
    animation: none !important;
  }
  .ring__sonar.is-hit .ring__wave {
    animation-name: ring-emit-soft !important;
  }
  .bell.is-ringing .bell__arc,
  .ring__btn.is-hit .bell__arc {
    animation-name: bell-arc-soft !important;
  }
  .ring__btn:active {
    transform: none;
  }
  .spinner {
    animation-duration: 2s;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------------
   Tisch-Sessions

   Gast-Seite: der Grund, warum gerade nicht gerufen werden kann, muss
   ohne Lesen erkennbar sein — deshalb ein eigener Block statt nur eines
   ausgegrauten Knopfes.
   --------------------------------------------------------------------- */
.session-over {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin: clamp(24px, 8vh, 64px) 0;
  padding: 28px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
}
.session-over h2 {
  font-size: 1.25rem;
}
.session-over p {
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.6;
}
.session-over__hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Vorübergehende Sperren: die Seite bleibt stehen, nur der Knopf ruht. */
.gate-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.gate-note strong {
  color: var(--text);
}
.gate-note .mono {
  font-size: 0.78rem;
  color: var(--accent);
}
.gate-note--muted {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

/* ---------------------------------------------------------------------
   Tischübersicht im Dashboard
   --------------------------------------------------------------------- */
.table-strip {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.table-strip__title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.table-strip__grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.table-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}
.table-chip__name {
  font-weight: 600;
  font-size: 0.95rem;
}
.table-chip__state {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Besetzt ist der einzige Zustand, der Aufmerksamkeit verdient — freie
   Tische bleiben ruhig, damit die Übersicht nicht flimmert. */
.table-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.table-chip.is-active .table-chip__state {
  color: var(--accent);
}
.table-chip.is-muted {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.table-chip.is-closed,
.table-chip.is-expired {
  opacity: 0.62;
}

.table-chip__close {
  margin-top: 8px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.table-chip__close:hover:not(:disabled) {
  border-color: var(--accent);
}
.table-chip__close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Zweite Aktionsreihe im Ticket — leiser als Übernehmen und Erledigt. */
.ticket__actions--quiet {
  margin-top: 6px;
  gap: 4px;
}
.ticket__actions--quiet .btn {
  font-size: 0.8rem;
  min-height: 40px;
  padding: 6px 12px;
}

/* Tarif-Stufe, die kleiner ist als die eingetragene Tischanzahl.
   Bewusst NICHT deaktiviert: ein Klick darauf zieht die Tischanzahl nach.
   Deshalb nur leicht zurückgenommen, nicht ausgegraut — sie ist bedienbar. */
.plan.is-tight {
  border-style: dashed;
}
.plan__note {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-ink);
}

/* =====================================================================
   Team-Dashboard — Neugestaltung

   Ruhige Karten: die Fläche bleibt neutral, die Dringlichkeit sitzt als
   Farbkante links. Über den Raum hinweg liest man die Kante und die
   Wartezeit; die Karte selbst flimmert nicht. Bewusst NICHT die Variante
   mit vollflächig eingefärbten Karten — vier rote Flächen nebeneinander
   nehmen einander die Dringlichkeit.
   ===================================================================== */

.board {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* --- Kopfzeile ------------------------------------------------------- */
.board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.board__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Die Glocke im Kreis — das Markenzeichen, hier als Avatar. */
.board__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.board__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.board__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.board__status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.board__status.is-connecting .dot {
  background: var(--fresh);
}
.board__status.is-offline .dot {
  background: var(--urgent);
}

.board__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Pillen in der Kopfzeile: kleiner als die Standard-Knöpfe, damit die
   Werkzeugleiste nicht mit den Aktionen auf den Karten konkurriert. */
.pill {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.pill:hover:not(:disabled) {
  border-color: var(--accent-line);
}
.pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pill.is-on {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.pill--icon {
  padding: 7px 10px;
}

/* --- Zweispaltiger Körper -------------------------------------------- */
.board__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}
.board__main {
  padding: 18px 20px 40px;
  min-width: 0;
}
.board__side {
  padding: 18px 20px 40px;
  border-left: 1px solid var(--line);
  min-height: 100%;
}

/* Kleine Beschriftungszeile über Listen. */
.board__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.label-xs {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --- Ticket-Karte ---------------------------------------------------- */
.tickets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  animation: tk-in 0.35s var(--ease-out);
}

/* Die Farbkante — der eigentliche Signalträger. */
.tk::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--level, var(--accent));
}

@keyframes tk-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Nur die dringendste Stufe bekommt zusätzlich einen Hauch Fläche —
   sonst nimmt sich die Dringlichkeit selbst die Wirkung. */
.tk[data-level='urgent'] {
  background: color-mix(in srgb, var(--urgent) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--urgent) 28%, var(--line));
}
.tk[data-level='warn'] {
  background: color-mix(in srgb, var(--warn) 4%, var(--surface));
}

.tk__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tk__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tk__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--urgent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* "Lena ist unterwegs" — steht inline neben dem Namen, nicht darunter:
   wer übernommen hat, gehört zur Überschrift des Tickets. */
.tk__by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ok);
}
.tk__by .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tk__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tk__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.tk__note {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

.tk__time {
  text-align: right;
  line-height: 1;
}
.tk__clock {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--level, var(--text));
}
.tk__waiting {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.tk__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

/* --- Zuletzt erledigt ------------------------------------------------- */
.recent {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.recent__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.recent__item strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

/* --- Ruhezustand ------------------------------------------------------ */
.quiet {
  padding-top: 6px;
}
.quiet__row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.quiet__clock {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 11vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.quiet__date {
  line-height: 1.3;
}
.quiet__day {
  font-weight: 600;
  font-size: 0.95rem;
}
.quiet__note {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.today {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.today__card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.today__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.today__value.is-accent {
  color: var(--accent-ink);
}
.today__label {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Seitenleiste: Tische -------------------------------------------- */
.tables__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.tables__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.tbl__name {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
}
.tbl__state {
  display: block;
  margin-top: 2px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* Besetzt trägt die Akzentkante, frei bleibt ruhig — die Seitenleiste
   soll nicht flimmern, wenn das Lokal leer ist. */
.tbl.is-active {
  border-color: var(--accent-line);
}
.tbl.is-muted {
  border-style: dashed;
  border-color: var(--accent-line);
}
/* Abgelaufen ist weiterhin belegt: der Gast ist wahrscheinlich weg, aber
   der Tisch wurde nie abgeschlossen. Genau hier braucht es den Knopf. */
.tbl.is-expired {
  border-color: var(--line-strong);
}
.tbl.is-expired .tbl__state {
  color: var(--text-dim);
}

.tbl.is-closed {
  background: transparent;
  border-color: transparent;
  opacity: 0.72;
}
.tbl.is-closed .tbl__name {
  font-weight: 500;
  color: var(--text-dim);
}

.tbl__free {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tbl__close {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.18s var(--ease);
}
.tbl__close:hover:not(:disabled) {
  filter: brightness(1.08);
}
.tbl__close:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- Schmale Bildschirme --------------------------------------------- */
@media (max-width: 900px) {
  .board__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .board__side {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 0;
  }
  .tk {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 12px;
  }
  .tk__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: 0;
  }
  .tk__actions .btn {
    flex: 1;
  }
}

/* --- Überlaufmenü in der Kopfzeile ----------------------------------- */
.menu {
  position: relative;
}
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.menu__item {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}
.menu__item:hover:not(:disabled) {
  background: var(--surface-2);
}
.menu__item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Fehlruf abhaken — dritte, bewusst leise Aktion auf der Ticket-Karte. */
.tk__ignore {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 2px 4px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.tk__ignore:hover:not(:disabled) {
  color: var(--text);
}
.tk__ignore:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Namensfeld unter der Kopfzeile. */
.dash__name {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

/* Aktionsknöpfe auf der Ticket-Karte.

   App-weit ist der primäre Knopf dunkel (--text). Auf dem Dashboard trägt
   die primäre Aktion dagegen den Bernstein: sie steht neben Farbkanten in
   Rot und Grün, da würde ein schwarzer Block wie ein Loch wirken. Bewusst
   nur hier umdefiniert, nicht global. */
.tk__actions .btn {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.86rem;
}
.tk__actions .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tk__actions .btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  filter: brightness(1.08);
  color: #fff;
}

/* --- Statistik und Analyse: gleiches Kartensystem wie das Dashboard ----

   Beide Seiten hängen am Dashboard und werden direkt daneben benutzt.
   Deshalb hier derselbe Radius, dieselbe Kante, dieselbe Fläche wie bei
   .today__card — sonst wirken sie wie aus einem anderen Produkt.
   Bewusst über eine eigene Klasse gescopet statt --r-md global zu ändern:
   Verwaltung und Setup behalten ihre ruhigeren, größeren Radien.          */
.stats-page .panel {
  border-radius: 14px;
}

.stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

/* --- Glas-Auswahl bei den Tarif-Karten -------------------------------

   Bewusste Ausnahme: das Design-System schließt Glasoptik sonst aus. Hier
   trägt sie eine Aufgabe, die eine harte Klassenumschaltung nicht kann —
   sie zeigt die Bewegung der Auswahl von einer Karte zur nächsten. Gilt
   NUR für dieses Element, nicht als Freigabe für den Rest der App.       */
.plans {
  position: relative;
}

.plan-glass {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  opacity: 0;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid var(--accent-line);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  backdrop-filter: blur(8px) saturate(1.3);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 22%, transparent);
  pointer-events: none;
  transition:
    transform 0.42s var(--ease-out),
    width 0.42s var(--ease-out),
    height 0.42s var(--ease-out),
    opacity 0.2s var(--ease);
}

/* Die Karten liegen über dem Glas, damit Text und Rahmen lesbar bleiben. */
.plans .plan {
  position: relative;
  z-index: 1;
}

/* Die aktive Karte trägt ihre Farbe jetzt über das Glas dahinter —
   der eigene Hintergrund würde es verdecken. */
.plans .plan.is-active {
  background: transparent;
}

/* Wer Bewegung reduziert haben will, bekommt den harten Wechsel. */
@media (prefers-reduced-motion: reduce) {
  .plan-glass {
    transition: opacity 0.01ms;
  }
}

/* --- Preise ----------------------------------------------------------

   Die Tarifkarten gab es schon (.plan), neu sind der Umschalter für den
   Abrechnungszeitraum, die aufklappbare Lizenz-Variante und der
   Rufe-Vorrat. Alles baut auf den vorhandenen Tokens auf — eigene Farben
   kämen hier nur in die Quere.                                          */

.price__net {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Umschalter monatlich / jährlich. Zwei Felder in einer Schiene: der
   Unterschied zwischen beiden ist eine Entscheidung, kein Formular.     */
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.seg__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.seg__btn:hover {
  color: var(--text);
}

.seg__btn.is-on {
  background: var(--accent);
  color: #fff;
}

.seg__note {
  font-size: 0.7rem;
  opacity: 0.85;
}

.plan__blurb {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Durchgestrichener Listenpreis neben dem rabattierten. */
.plan__strike {
  opacity: 0.5;
  font-weight: 400;
}

/* Preisrechner auf der Startseite. */
.pricing-try {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Lizenz + Hosting ------------------------------------------------

   Bewusst leise: eine Zeile zum Aufklappen, keine dritte Karte. Für die
   meisten Betriebe ist das Abo die bessere Wahl, und eine gleichwertige
   Karte würde das Gegenteil behaupten.                                   */
.license {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.license__toggle {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.license__toggle:hover {
  color: var(--text);
}

.license__body {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.license__rows {
  display: grid;
  gap: 8px;
}

/* --- Gründerpaket ----------------------------------------------------- */
.founder {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--accent, #d97742);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

/* --- Rufe-Vorrat ------------------------------------------------------ */
.quota {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.quota__bar {
  height: 100%;
  border-radius: 999px;
  background: var(--ok);
  transition: width 0.4s var(--ease);
}

.quota__bar[data-level='warn'] {
  background: var(--warn);
}

.quota__bar[data-level='full'] {
  background: var(--urgent);
}

/* Hinweis auf dem Dashboard. Bei 80 Rufen ruhig, bei 100 deutlich — der
   Unterschied muss über den Tresen hinweg erkennbar sein.               */
.quota-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--warn);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.quota-note.is-full {
  border-left-color: var(--urgent);
  background: color-mix(in srgb, var(--urgent) 10%, var(--surface-2));
}

/* --- Gast: neutraler Hinweis ----------------------------------------

   Für den Gast ist ein aufgebrauchtes Kontingent kein Geldthema. Er
   sieht nur, dass es gerade nicht geht, und was er stattdessen tun kann. */
.guest__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .quota-note {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Einmalkauf: drei Pakete zur Auswahl */
.founder__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.founder__pkg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--border, #444);
  border-radius: var(--r-md);
  background: var(--surface, transparent);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.founder__pkg.is-active {
  border-color: var(--accent, #d97742);
  box-shadow: 0 0 0 1px var(--accent, #d97742);
}
.founder__pkg:disabled { opacity: 0.45; cursor: not-allowed; }
.founder__name { font-weight: 600; }
.founder__price { font-size: 1.05rem; }
.founder__tables { font-size: 0.8rem; }
@media (max-width: 420px) { .founder__grid { grid-template-columns: 1fr; } }

/* --- Startseite ------------------------------------------------------

   Das Raster der Startseite: breite, weich gerundete Flächen auf dem
   Cremeton, dazwischen Luft. Alles baut auf den vorhandenen Tokens auf —
   eigene Farben kämen hier nur in die Quere.                            */

.landing {
  padding-bottom: 0;
}

/* Kleine Kapsel über der Überschrift. Sagt in drei Worten, worum es geht,
   bevor die Schlagzeile es behauptet.                                   */
.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink, var(--accent));
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Zweispaltiger Aufmacher: links Text, rechts die Glocke. Unter 900px
   rutscht die Glocke nach unten — sie ist Beleg, nicht Bedingung.       */
.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  text-align: left;
  padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 4vw, 48px);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hero--split .hero__title {
  margin: 0;
  text-align: left;
}

/* Die zweite Zeile trägt die Akzentfarbe: der Nutzen, nicht das Problem. */
.hero__accent {
  color: var(--accent);
}

.hero--split .hero__sub {
  margin: 0;
  text-align: left;
  max-width: 44ch;
}

.hero--split .hero__cta {
  margin-top: 4px;
  justify-content: flex-start;
}

/* --- Die Glocke als Bühne -------------------------------------------- */
.hero__visual {
  display: flex;
  justify-content: center;
}

.bell-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: clamp(28px, 5vw, 44px) 24px 20px;
  border-radius: var(--r-lg, 22px);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.bell-stage__disc {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(130px, 22vw, 170px);
  height: clamp(130px, 22vw, 170px);
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}

.bell-stage__disc:hover {
  transform: scale(1.03);
}

.bell-stage__disc:active {
  transform: scale(0.98);
}

.bell-stage__bell {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--accent);
}

/* Die Schallwellen liegen ausserhalb des Kreises, je eine Gruppe links
   und rechts. Drei Bögen mit abnehmender Deckkraft: nach aussen hin
   leiser, so wie Schall sich verhält.                                   */
.bell-stage__wave {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(26px, 5vw, 38px);
  height: clamp(60px, 11vw, 86px);
  color: var(--accent);
  pointer-events: none;
}

.bell-stage__wave svg {
  width: 100%;
  height: 100%;
}

.bell-stage__wave--left {
  right: calc(100% + 6px);
}

.bell-stage__wave--right {
  left: calc(100% + 6px);
}

.bell-stage__caption {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Abschnitte ------------------------------------------------------ */
.section-block {
  padding-top: clamp(40px, 7vw, 72px);
}

/* Überschrift links, Einordnung rechts auf gleicher Grundlinie. */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.section-head h2 {
  margin: 0;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.step-card__n {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.step-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* --- Preisblock ------------------------------------------------------

   Eine eigene Fläche, damit der Preis nicht wie eine Fussnote wirkt.    */
.panel-section {
  margin-top: clamp(40px, 7vw, 72px);
  padding: clamp(26px, 4.5vw, 48px);
  border-radius: var(--r-lg, 22px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}

.panel-section h2 {
  margin: 0;
}

.pricing-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- Tisch-Zähler ----------------------------------------------------- */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.stepper__btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.stepper__btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.stepper__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Das Zahlenfeld bleibt ein echtes Eingabefeld — wer 37 Tische hat, will
   nicht 25-mal auf Plus drücken. Die Spinner blendet es nur aus.        */
.stepper__value {
  width: 48px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper__value::-webkit-outer-spin-button,
.stepper__value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper__value:focus {
  outline: none;
}

.stepper__unit {
  padding-right: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* --- Die drei Preiskarten --------------------------------------------- */
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Die mittlere Karte ist der Normalfall und sieht auch so aus. */
.price-card.is-featured {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.price-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.price-card.is-featured .price-card__label {
  color: rgba(255, 255, 255, 0.82);
}

.price-card__amount {
  font-size: clamp(1.5rem, 3.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.1;
}

.price-card__per {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.8;
  margin-left: 4px;
}

.price-card__note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.price-card.is-featured .price-card__note {
  color: rgba(255, 255, 255, 0.9);
}

/* Die Paket-Staffel des Einmalkaufs: sichtbar, aber untergeordnet. */
.price-card__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 2px 0 4px;
}

.chip-pkg {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.chip-pkg:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent-line);
}

.chip-pkg.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Zu kleine Pakete verschwinden nicht — sonst sähe die Staffel kleiner
   aus, als sie ist. Sie werden nur gedämpft und sind nicht wählbar.     */
.chip-pkg:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.chip-pkg__tables {
  font-size: 0.68rem;
  opacity: 0.75;
}

.pricing-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.pricing-foot .hint {
  margin: 0;
  max-width: 54ch;
}

/* Dunkler Abschluss-Knopf: der eine Weg aus diesem Abschnitt heraus. */
.btn--dark {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn--dark:hover {
  background: color-mix(in srgb, var(--text) 85%, var(--accent));
  border-color: color-mix(in srgb, var(--text) 85%, var(--accent));
}

.landing__foot {
  padding: 28px 0 32px;
  margin-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

/* --- Schmale Fenster -------------------------------------------------- */
@media (max-width: 900px) {
  .hero--split {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .price-cards {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .pricing-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-controls .stepper,
  .pricing-controls .seg {
    justify-content: center;
  }
}

/* --- Startseite: ein Bildschirm, ein Beweis ---------------------------

   Leichtes Werkzeug, leichte Seite. Links das Versprechen, rechts das
   echte Produkt zum Antippen: Gast-Handy und Tablet an der Bar. Viel
   Luft, große Schrift, Bernstein nur auf der Glocke und dem Ticket.   */

.lp-head {
  padding: 8px 0 0;
}

.lp-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: min(760px, calc(100svh - 80px));
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
}

.lp-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.lp-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.lp-title span {
  color: var(--text-dim);
}

.lp-sub {
  margin: 0;
  max-width: 40ch;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.lp-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 6px;
}

.lp-link {
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

.lp-link:hover {
  text-decoration-color: var(--accent);
}

.lp-facts {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.lp-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lp-facts li::before {
  content: '';
  width: 14px;
  height: 8px;
  border-left: 1.8px solid var(--ok);
  border-bottom: 1.8px solid var(--ok);
  transform: translateY(-2px) rotate(-45deg);
}

/* Die Demo: Handy vorn links, Tablet dahinter rechts */
.lp-demo {
  position: relative;
  display: grid;
  grid-template-columns: 250px 1fr;
  align-items: center;
  min-height: 520px;
}

.lp-phone {
  position: relative;
  z-index: 2;
  width: 250px;
  padding: 10px;
  border-radius: 40px;
  background: #211d1a;
  box-shadow: var(--shadow-lg);
}

.lp-phone__screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 30px 16px 20px;
  border-radius: 31px;
  background: var(--bg);
  min-height: 470px;
}

.lp-phone__venue {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.lp-phone__table {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.lp-phone .ring__core {
  width: 128px;
}

.lp-phone .ring__label strong {
  font-size: 1rem;
}

.lp-phone .ring__label span {
  font-size: 0.74rem;
}

.lp-phone__kinds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 100%;
  margin-top: 18px;
}

.lp-phone__kinds button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font: 500 0.82rem var(--font-ui);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.lp-phone__kinds button:hover {
  border-color: var(--line-strong);
}

.lp-phone__kinds button.is-on {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.lp-tablet {
  position: relative;
  z-index: 1;
  margin-left: -36px;
  padding: 18px 18px 22px 54px;
  min-height: 300px;
  border-radius: 26px;
  border: 10px solid #211d1a;
  background: #2e2823;
  color: #f4efe8;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lp-tablet__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.lp-tablet__bar .bell {
  color: var(--accent);
}

.lp-tablet__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7fb391;
}

.lp-tablet__live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.lp-tablet__empty {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: #f4efe8;
}

.lp-tablet__empty span {
  font-weight: 400;
  font-size: 0.86rem;
  color: #a89a8e;
}

.lp-ticket {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px 18px 16px;
  border-radius: 18px;
  background: #3a322c;
  overflow: hidden;
  animation: lp-ticket-in 0.45s var(--ease-out);
}

.lp-ticket::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--fresh);
}

.lp-ticket__table {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.lp-ticket__kind {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--fresh);
}

.lp-ticket__time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.lp-ticket__done {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(244, 239, 232, 0.32);
  background: none;
  color: #f4efe8;
  font: 600 0.82rem var(--font-ui);
  cursor: pointer;
}

.lp-ticket__done:hover {
  border-color: #7fb391;
  color: #7fb391;
}

@keyframes lp-ticket-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Drei Schritte in einer Zeile, getrennt durch Haarlinien */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-bottom: clamp(56px, 8vw, 104px);
}

.lp-steps > div {
  padding: 28px 28px 0 0;
}

.lp-steps > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.lp-steps .mono {
  font-size: 0.8rem;
  color: var(--accent-ink);
}

.lp-steps h3 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

.lp-steps p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 32ch;
}

@media (max-width: 980px) {
  .lp-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lp-demo {
    justify-self: center;
    width: min(100%, 560px);
  }
}

@media (max-width: 620px) {
  .lp-demo {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }

  .lp-phone {
    justify-self: center;
  }

  .lp-tablet {
    margin: -60px 0 0;
    padding: 76px 18px 20px;
    min-height: 0;
  }

  .lp-steps {
    grid-template-columns: 1fr;
  }

  .lp-steps > div,
  .lp-steps > div + div {
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .lp-cta {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-ticket {
    animation: none;
  }
}
