/* Club Finance Control – Website
   Layout: ruhige Seite auf Raster wie ein Saalplan; Kopf mit lebendem Saalplan,
   Funktionen nach Ort im Verein (Theke, Tisch, Küche), dunkles Band für das Video,
   Abrechnung mit Beispiel-Z-Bon, Updates live aus den Manifesten.
   Farben folgen der Kellner-App (Petrol, Status Bernstein/Violett/Grün). */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #f3f5f4;
  --surface: #ffffff;
  --surface-2: #e8edeb;
  --line: #d3dcda;
  --ink: #132225;
  --muted: #566a6b;
  --accent: #0b6a60;
  --brand: #0f3d3a;
  --brand-amber: #e8a33d;
  --open: #b46f08;
  --open-tint: #fbeed6;
  --pending: #6a4ad8;
  --pending-tint: #ebe6fc;
  --ready: #0e8f54;
  --ready-tint: #d8f2e5;
  --ready-ink: #ffffff;
  --plan-floor: #eef2f0;
  --plan-wall: #93a5a3;
  --plan-table: #ffffff;
  --plan-seat: #cbd6d3;
  --plan-kitchen: #e2e9e7;
  --grid: rgba(19, 34, 37, .05);
  --band: #0d1416;
  --band-ink: #e8efee;
  --band-muted: #93a6a4;
  --band-line: #22323a;
  --band-accent: #8fdccf;
  --video-bg: #0d1416;
  --paper: #fdfcf8;
  --paper-ink: #1f1f1c;
  --paper-muted: #6d6b63;
  --adr-bg: #ffffff; /* Anschrift-Bild hat weißen Grund, in beiden Themes gleich */
  --placeholder-bg: #fff1c7;
  --placeholder-ink: #6b4a00;
  --shadow: 0 1px 2px rgba(19, 34, 37, .06), 0 12px 32px rgba(19, 34, 37, .08);
  --shadow-sm: 0 1px 2px rgba(19, 34, 37, .14);
  --on-brand: #ffffff;
  --on-brand-muted: #c3d8d5;

  --f-display: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  --f-ui: "Barlow", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: clamp(1.875rem, 1.35rem + 2.1vw, 2.75rem);
  --fs-hero: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);

  --wrap: 72rem;
  --r: 10px;
  --r-lg: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1416;
    --surface: #142024;
    --surface-2: #1a282c;
    --line: #26363b;
    --ink: #e9efee;
    --muted: #95a8a6;
    --accent: #6cc8ba;
    --open: #eda53e;
    --open-tint: #3a2b11;
    --pending: #a993f5;
    --pending-tint: #282344;
    --ready: #3fcf8c;
    --ready-tint: #113726;
    --ready-ink: #04210f;
    --plan-floor: #111c1f;
    --plan-wall: #44585d;
    --plan-table: #18252a;
    --plan-seat: #2c3c41;
    --plan-kitchen: #172327;
    --grid: rgba(233, 239, 238, .035);
    --band: #0a1012;
    --band-line: #1e2c31;
    --paper: #f1efe7;
    --placeholder-bg: #3d3110;
    --placeholder-ink: #f6d47c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1416;
  --surface: #142024;
  --surface-2: #1a282c;
  --line: #26363b;
  --ink: #e9efee;
  --muted: #95a8a6;
  --accent: #6cc8ba;
  --open: #eda53e;
  --open-tint: #3a2b11;
  --pending: #a993f5;
  --pending-tint: #282344;
  --ready: #3fcf8c;
  --ready-tint: #113726;
  --ready-ink: #04210f;
  --plan-floor: #111c1f;
  --plan-wall: #44585d;
  --plan-table: #18252a;
  --plan-seat: #2c3c41;
  --plan-kitchen: #172327;
  --grid: rgba(233, 239, 238, .035);
  --band: #0a1012;
  --band-line: #1e2c31;
  --paper: #f1efe7;
  --placeholder-bg: #3d3110;
  --placeholder-ink: #f6d47c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ─── Grundlagen ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: var(--fs-base);
  line-height: 1.55;
  overflow-wrap: break-word;
}
img, video, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.nw { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.eyebrow {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.section-head { display: grid; gap: .875rem; max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lg); line-height: 1.5; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.875rem;
  padding: .625rem 1.125rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 600 var(--fs-base)/1.2 var(--f-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }

/* ─── Kopfzeile ────────────────────────────────────────────── */

.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; color: var(--ink); text-decoration: none; }
.brand img { width: 2rem; height: 2rem; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; letter-spacing: .01em; }
.brand-long { font-size: var(--fs-sm); color: var(--muted); display: none; }
@media (min-width: 40rem) { .brand-long { display: inline; } }
.site-nav { display: flex; gap: clamp(.875rem, 2vw, 1.75rem); font-weight: 500; font-size: var(--fs-sm); }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: .5rem; }
.site-nav a:hover { color: var(--accent); }

/* ─── Kopfbereich mit Saalplan ─────────────────────────────── */

.hero {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid;
  gap: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  padding-block: clamp(2.5rem, 1.75rem + 3.5vw, 5.5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
}
.hero-text { display: grid; gap: 1.375rem; min-width: 0; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -.012em; max-width: 13ch; }
.lede { font-size: var(--fs-lg); line-height: 1.5; color: var(--muted); max-width: 34rem; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .25rem; }
.version-line { font-size: var(--fs-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .875rem; }
.version-line .v { font-family: var(--f-mono); font-size: .875rem; color: var(--ink); }
.version-line a { color: inherit; }

.demo-card {
  margin: 0;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: .875rem;
  display: grid;
  gap: .875rem;
}
@media (min-width: 30rem) { .demo-card { padding: 1.125rem; } }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.demo-tabs { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: var(--surface-2); min-width: 0; }
.demo-tab {
  position: relative;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 var(--fs-sm)/1 var(--f-display); letter-spacing: .02em;
  padding: .5rem .875rem; border-radius: 999px; min-height: 2.125rem;
}
.demo-tab:hover { color: var(--ink); }
.demo-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.demo-tab[data-new]::after {
  content: ""; position: absolute; top: .3rem; right: .35rem;
  width: .4rem; height: .4rem; border-radius: 50%; background: var(--open);
}
.plan-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; flex: none;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.plan-toggle:hover { border-color: var(--muted); }
.plan-toggle svg { width: 1rem; height: 1rem; }
.plan-toggle .i-play { display: none; }
.plan-toggle[aria-pressed="true"] .i-play { display: block; }
.plan-toggle[aria-pressed="true"] .i-pause { display: none; }

/* Alle Ansichten liegen übereinander: die Karte ist so hoch wie die größte,
   beim Umschalten springt nichts. */
.panels { display: grid; min-width: 0; }
.panel { grid-area: 1 / 1; display: grid; gap: .75rem; align-content: start; min-width: 0; }
.panel.is-hidden { visibility: hidden; }
.panel-sub { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding-inline: .25rem; font-size: var(--fs-xs); color: var(--muted); }
.panel-sub > span:first-child { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.panel-meta { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.panel-meta b { color: var(--ink); font-weight: 700; }

/* Theke: vereinfachte Kasse */
.till { display: grid; gap: .75rem; position: relative; }
.till-person {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center;
  padding: .625rem .75rem; border-radius: var(--r); background: var(--surface-2);
}
.avatar {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font: 700 .875rem/1 var(--f-display); letter-spacing: .03em;
}
.till-person[data-kind="leer"] .avatar { background: var(--line); color: var(--muted); }
.till-who { display: grid; line-height: 1.25; min-width: 0; }
.till-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.till-who span { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.till-acct { display: grid; text-align: right; line-height: 1.25; }
.till-acct span { font-size: var(--fs-xs); color: var(--muted); }
.till-acct b { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; transition: color .3s ease; }
.till-acct.is-changed b { color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.tile {
  display: grid; gap: .125rem; align-content: space-between; min-height: 4.25rem;
  padding: .5rem .625rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  transition: transform .12s ease, background-color .25s ease, border-color .25s ease;
}
.tile b { font-weight: 600; font-size: .875rem; line-height: 1.2; }
.tile-price { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile-food { border-left: 3px solid var(--brand-amber); }
.tile.is-tap { transform: scale(.96); background: var(--ready-tint); border-color: var(--ready); }
.bon { display: grid; gap: .5rem; padding: .75rem; border-radius: var(--r); border: 1px solid var(--line); }
.bon-lines { list-style: none; display: grid; align-content: start; min-height: 5.5rem; }
.bon-lines li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .5rem; padding: .1875rem .25rem; border-radius: 6px; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.bon-lines li.is-new { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { background: var(--ready-tint); } 100% { background: transparent; } }
.bon-lines .q { color: var(--muted); }
.bon-lines .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bon-lines .n i { font-style: normal; font-size: .75rem; color: var(--open); margin-left: .25rem; }
.bon-lines li.empty { display: block; color: var(--muted); font-size: var(--fs-xs); }
.bon-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: .5rem; }
.bon-total b { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pay-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; }
.pay {
  display: grid; place-items: center; min-height: 2.25rem; padding: .25rem; border-radius: 8px; text-align: center;
  font: 600 .8125rem/1.15 var(--f-display); letter-spacing: .02em;
  border: 1px solid var(--line); color: var(--ink); background: var(--surface-2);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pay.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.till-toast {
  position: absolute; left: 50%; bottom: 3.25rem; transform: translate(-50%, 6px);
  max-width: calc(100% - 1rem); padding: .5rem .875rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.till-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Küche: vereinfachte Küchenanzeige mit Kundendisplay */
.kds { display: grid; gap: .75rem; }
.tickets { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; align-content: start; min-height: 13.5rem; }
.ticket {
  display: grid; gap: .25rem; align-content: start; padding: .625rem .75rem; border-radius: var(--r);
  border: 1px solid var(--line); border-top: 4px solid var(--open); background: var(--surface); min-width: 0;
}
.ticket.is-new { animation: slidein .5s ease-out; }
.ticket[data-state="fertig"] { border-top-color: var(--ready); background: var(--ready-tint); }
.tk-head { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.tk-head b { font-family: var(--f-display); font-weight: 700; }
.tk-head time { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.tk-lines { font-size: var(--fs-sm); }
.tk-note { font-size: var(--fs-xs); color: var(--muted); }
.tk-state { justify-self: start; margin-top: .25rem; font: 600 .75rem/1 var(--f-display); letter-spacing: .03em; padding: .25rem .5rem; border-radius: 999px; border: 1px solid var(--open); color: var(--open); }
.ticket[data-state="fertig"] .tk-state { border-color: var(--ready); background: var(--ready); color: var(--ready-ink); }
.tickets li.empty { grid-column: 1 / -1; color: var(--muted); font-size: var(--fs-sm); padding: .5rem .25rem; }
.board { display: grid; gap: .375rem; padding: .75rem .875rem; border-radius: var(--r); background: var(--band); color: var(--band-ink); }
.board-label { font: 600 .75rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--band-muted); }
.board-nums { display: flex; gap: .5rem; flex-wrap: wrap; min-height: 2.75rem; align-items: center; }
.board-num { display: grid; place-items: center; min-width: 3rem; height: 2.75rem; padding-inline: .5rem; border-radius: 8px; background: var(--ready); color: var(--ready-ink); font: 700 1.5rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.board-num.is-new { animation: slidein .5s ease-out; }
.board-empty { font-size: var(--fs-sm); color: var(--band-muted); }

.plan { display: block; width: 100%; height: auto; }
.plan .floor { fill: var(--plan-floor); }
.plan .wall { fill: none; stroke: var(--plan-wall); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plan .kitchen { fill: var(--plan-kitchen); }
.plan .pass { stroke: var(--brand-amber); stroke-width: 4; stroke-linecap: round; }
.plan .bar { fill: var(--surface-2); stroke: var(--plan-wall); stroke-width: 1.5; }
.plan text { font-family: var(--f-display); text-anchor: middle; fill: var(--ink); }
.plan .bar-label, .plan .room-label { font-size: 14px; font-weight: 600; fill: var(--muted); letter-spacing: .02em; }
.plan .room-sub { font-size: 11.5px; font-weight: 600; fill: var(--muted); opacity: .8; }
.plan .seat { fill: var(--plan-seat); transition: fill .4s ease; }
.plan .top { fill: var(--plan-table); stroke: var(--plan-wall); stroke-width: 1.5; transition: fill .45s ease, stroke .45s ease; }
.plan .ping { fill: none; stroke: transparent; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.plan .num { font-size: 21px; font-weight: 700; fill: var(--muted); transition: transform .35s ease, fill .35s ease; }
.plan .num-long { font-size: 16px; }
.plan .amt { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; transition: opacity .3s ease; }
.plan .tbl[data-state="frei"] .num { transform: translateY(8px); }
.plan .tbl[data-state="frei"] .num-long { transform: translateY(6px); }
.plan .tbl[data-state="frei"] .amt { opacity: 0; }
.plan .tbl:not([data-state="frei"]) .num { fill: var(--ink); }
.plan .tbl:not([data-state="frei"]) .seat { fill: var(--plan-wall); }
.plan .tbl[data-state="offen"] .top { fill: var(--open-tint); stroke: var(--open); stroke-width: 2; }
.plan .tbl[data-state="unterwegs"] .top { fill: var(--pending-tint); stroke: var(--pending); stroke-width: 2; stroke-dasharray: 6 4; animation: dash 1.2s linear infinite; }
.plan .tbl[data-state="bereit"] .top { fill: var(--ready-tint); stroke: var(--ready); stroke-width: 2.5; }
@keyframes dash { to { stroke-dashoffset: -20; } }

.plan .badge { opacity: 0; transition: opacity .3s ease; }
.plan .badge-time { fill: var(--surface); stroke: var(--open); stroke-width: 1.5; }
.plan .badge-text { font-size: 11.5px; font-weight: 700; fill: var(--open); }
.plan .bell { display: none; }
.plan .bell circle { fill: var(--ready); }
.plan .bell path { fill: var(--ready-ink); stroke: var(--ready-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plan .tbl[data-badge="time"] .badge { opacity: 1; }
.plan .tbl[data-state="bereit"] .badge { opacity: 1; }
.plan .tbl[data-state="bereit"] .badge-time,
.plan .tbl[data-state="bereit"] .badge-text { display: none; }
.plan .tbl[data-state="bereit"] .bell { display: inline; }

.plan .tbl.is-changed .ping { animation: ping .9s ease-out; }
.plan .tbl[data-state="offen"].is-changed .ping { stroke: var(--open); }
.plan .tbl[data-state="unterwegs"].is-changed .ping { stroke: var(--pending); }
.plan .tbl[data-state="bereit"].is-changed .ping { stroke: var(--ready); }
.plan .tbl[data-state="frei"].is-changed .ping { stroke: var(--plan-wall); }
@keyframes ping { 0% { opacity: .85; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
.demo-card .panels, .demo-card .ticker { transition: opacity .35s ease; }
.demo-card.is-resetting .panels, .demo-card.is-resetting .ticker { opacity: .35; }
.till-person.is-new { animation: slidein .4s ease-out; }

.legend { display: flex; flex-wrap: wrap; gap: .375rem 1rem; padding-inline: .25rem; font-size: var(--fs-xs); color: var(--muted); list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; }
.legend i { width: .75rem; height: .75rem; border-radius: 50%; border: 1.5px solid var(--plan-wall); background: var(--plan-table); display: inline-block; }
.legend .l-offen i { border-color: var(--open); background: var(--open-tint); }
.legend .l-unterwegs i { border: 1.5px dashed var(--pending); background: var(--pending-tint); }
.legend .l-bereit i { border-color: var(--ready); background: var(--ready); }
.legend .l-lange i { width: 1.375rem; border-radius: 999px; border-color: var(--open); background: var(--surface); }

.ticker { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); padding-top: .25rem; }
.ticker li {
  display: grid;
  grid-template-columns: 2.875rem minmax(0, 1fr) auto;
  gap: .25rem .75rem;
  align-items: center;
  padding: .5rem .25rem;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--line);
}
.ticker li:last-child { border-bottom: 0; }
.ticker li.is-new { animation: slidein .5s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ticker time { font-family: var(--f-mono); font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticker .t-main { display: grid; min-width: 0; line-height: 1.3; }
.ticker .t-main b { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker .t-main span { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  font-family: var(--f-display); font-weight: 600; font-size: .8125rem; letter-spacing: .02em;
  padding: .125rem .5rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); color: var(--muted);
}
.chip-unterwegs { color: var(--pending); border-color: var(--pending); background: var(--pending-tint); }
.chip-offen { color: var(--open); border-color: var(--open); background: var(--open-tint); }
.chip-bereit { color: var(--ready-ink); border-color: var(--ready); background: var(--ready); }
.plan-note { font-size: var(--fs-xs); color: var(--muted); padding-inline: .25rem; }

@media (prefers-reduced-motion: reduce) {
  .plan .top, .plan .num, .plan .amt, .plan .badge, .plan .seat, .demo-card .panels, .demo-card .ticker { transition: none; }
  .tile, .pay, .till-toast, .till-acct b { transition: none; }
  .bon-lines li.is-new, .ticket.is-new, .board-num.is-new, .till-person.is-new { animation: none; }
  .plan .tbl[data-state="unterwegs"] .top { animation: none; }
  .plan .tbl.is-changed .ping, .ticker li.is-new { animation: none; }
}

/* ─── Funktionen nach Ort ──────────────────────────────────── */

.places { display: grid; gap: clamp(2.25rem, 1.75rem + 2vw, 3rem); }
@media (min-width: 40rem) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
@media (min-width: 64rem) { .places { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.5rem; } }
.place { display: grid; gap: 1rem; align-content: start; min-width: 0; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.place-head { display: flex; align-items: center; gap: .75rem; }
.place-head svg { width: 1.75rem; height: 1.75rem; flex: none; color: var(--accent); }
.place > p { color: var(--muted); }
.ticks { list-style: none; display: grid; gap: .625rem; }
.ticks li { position: relative; padding-left: 1.375rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .5rem; height: .5rem; border-radius: 2px; background: var(--accent); opacity: .85;
}
.place .more { font-weight: 600; text-decoration: none; }
.place .more:hover { text-decoration: underline; }

/* ─── Video-Band ───────────────────────────────────────────── */

.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-muted); }
.band a { color: var(--band-accent); }
.band .wrap { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 52rem) { .band .wrap { grid-template-columns: 22.5rem minmax(0, 1fr); } }
.video-frame {
  width: 100%;
  max-width: 22.5rem;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--video-bg);
  box-shadow: 0 0 0 1px var(--band-line), 0 24px 60px rgba(0, 0, 0, .45);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--video-bg); }
.band-text { display: grid; gap: 1.25rem; max-width: 36rem; min-width: 0; }
.band-text > p:not(.eyebrow):not(.video-note) { color: var(--band-muted); font-size: var(--fs-lg); }
.steps { list-style: none; display: grid; gap: 1rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .875rem; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--band-line);
  font-family: var(--f-display); font-weight: 700; color: var(--band-ink);
}
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--band-muted); font-size: var(--fs-sm); }
.video-note { font-size: var(--fs-xs); color: var(--band-muted); }

/* ─── Abrechnung mit Z-Bon ─────────────────────────────────── */

.settle .wrap { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: start; }
@media (min-width: 56rem) { .settle .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.settle-text { display: grid; gap: 1.25rem; min-width: 0; }
.settle-text > p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lg); }

.receipt-wrap { display: grid; justify-items: center; gap: .75rem; min-width: 0; }
.receipt {
  width: min(100%, 21.5rem);
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--f-mono);
  font-size: .8125rem;
  line-height: 1.5;
  padding: 1.5rem 1.25rem 2rem;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom left / 16px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom left / 16px 8px repeat-x;
  transform: rotate(-.6deg);
}
.receipt header { text-align: center; display: grid; gap: .125rem; padding-bottom: .75rem; }
.receipt header strong { font-size: .9375rem; letter-spacing: .04em; }
.receipt .rh { margin: .875rem 0 .25rem; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; }
.receipt .row { display: flex; justify-content: space-between; gap: 1rem; }
.receipt .row span:last-child { text-align: right; white-space: nowrap; }
.receipt .sum { border-top: 1px dashed var(--paper-muted); margin-top: .25rem; padding-top: .25rem; font-weight: 700; }
.receipt .sub { color: var(--paper-muted); }
.receipt .note { color: var(--paper-muted); margin-top: .125rem; }
.receipt .rule { border: 0; border-top: 1px dashed var(--paper-muted); margin: .75rem 0 0; }
.receipt-caption { font-size: var(--fs-xs); color: var(--muted); }

/* ─── Aufbau ───────────────────────────────────────────────── */

.system { border-bottom: 1px solid var(--line); }
.sysmap { display: grid; gap: 0; }
@media (min-width: 60rem) { .sysmap { grid-template-columns: minmax(0, 1fr) 8.5rem minmax(0, 1fr); align-items: stretch; } }
.zone { display: grid; gap: 1rem; align-content: start; padding: clamp(1.125rem, .9rem + 1vw, 1.5rem); border-radius: var(--r-lg); min-width: 0; }
.zone-local { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.zone-net { border: 1.5px dashed var(--plan-wall); }
.zone-title { font-size: var(--fs-lg); font-weight: 700; }
.nodes { list-style: none; display: grid; gap: .625rem; }
.node { display: grid; gap: .125rem; padding: .75rem .875rem; border-radius: var(--r); background: var(--surface-2); min-width: 0; }
.zone-net .node { background: var(--surface); border: 1px solid var(--line); }
.node b { font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem; }
.node span { color: var(--muted); font-size: var(--fs-sm); }
.node-core { background: var(--brand); color: var(--on-brand); }
.node-core span { color: var(--on-brand-muted); }

/* Verbindung zwischen den Zonen: senkrecht auf dem Handy, waagerecht breit */
.link { position: relative; display: grid; place-items: center; min-height: 4.5rem; }
.link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid var(--accent); }
.link span {
  position: relative; padding: .375rem .75rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--accent);
  color: var(--accent); font: 600 .8125rem/1.25 var(--f-display); letter-spacing: .02em; text-align: center; max-width: 16rem;
}
@media (min-width: 60rem) {
  .link { min-height: 0; }
  .link::before { left: 0; right: 0; top: 50%; bottom: auto; border-left: 0; border-top: 2px solid var(--accent); }
  .link span { max-width: 7.5rem; }
}

/* ─── Fakten ───────────────────────────────────────────────── */

.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
.facts-2 { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.fact { display: grid; gap: .375rem; padding-block: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); min-width: 0; }
.fact dt { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg); }
.fact dd { margin: 0; color: var(--muted); }
.fact-status dt { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.status-pill {
  font-family: var(--f-display); font-weight: 600; font-size: .8125rem; letter-spacing: .03em;
  padding: .0625rem .5rem; border-radius: 999px; border: 1px solid var(--open); color: var(--open); background: var(--open-tint);
}

/* ─── Updates ──────────────────────────────────────────────── */

.updates { background: var(--surface-2); border-block: 1px solid var(--line); }
.channels { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.channel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.125rem, .9rem + 1vw, 1.75rem);
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}
.channel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.channel-label { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg); }
.channel-tag {
  font-family: var(--f-display); font-weight: 600; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .125rem .625rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.channel[data-channel="release"] .channel-tag { color: var(--ready); border-color: var(--ready); }
.channel[data-channel="beta"] .channel-tag { color: var(--pending); border-color: var(--pending); }
.channel-version { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.25rem, 1.75rem + 2vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .005em; }
.channel-meta { color: var(--muted); font-size: var(--fs-sm); }
.channel-title { font-weight: 600; text-wrap: balance; }
.channel-pkg { display: grid; gap: .25rem; font-size: var(--fs-sm); padding: .875rem 1rem; border-radius: var(--r); background: var(--surface-2); min-width: 0; }
.channel-pkg code { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; word-break: break-all; }
.channel-hint { font-size: var(--fs-sm); color: var(--muted); }
.history { display: grid; gap: 0; border-top: 1px solid var(--line); }
.history h4 { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .875rem 0 .25rem; }
.history details { border-bottom: 1px solid var(--line); }
.history summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .125rem .75rem; align-items: baseline;
  padding: .75rem 0; cursor: pointer; list-style: none;
}
.history summary::-webkit-details-marker { display: none; }
.history summary .h-ver { font-family: var(--f-mono); font-size: .875rem; font-weight: 600; }
.history summary .h-date { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.history summary .h-title { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--muted); }
.history summary:hover .h-title { color: var(--ink); }
.history details[open] summary .h-title { color: var(--ink); }
.history pre {
  margin: 0 0 1rem;
  padding: .875rem 1rem;
  max-height: 22rem;
  overflow: auto;
  border-radius: var(--r);
  background: var(--surface-2);
  font-family: var(--f-mono);
  font-size: .75rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.history-more { justify-self: start; margin-top: 1rem; font-size: var(--fs-sm); min-height: 2.5rem; }
.updates-state { margin-bottom: 1.25rem; font-size: var(--fs-sm); color: var(--muted); }
.updates-state[data-kind="error"] { color: var(--ink); padding: 1rem 1.125rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.channel.is-loading .channel-version { color: var(--muted); }
.channel.is-failed .channel-version { font-size: var(--fs-xl); color: var(--muted); }
.updates-foot { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--muted); max-width: 48rem; }

/* ─── Kontakt, Fußzeile ────────────────────────────────────── */

.contact .wrap { display: grid; gap: 1rem; justify-items: start; }
.contact p { color: var(--muted); font-size: var(--fs-lg); max-width: 40rem; }
.site-foot { border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom, 0px)); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }

/* ─── Rechtstexte ──────────────────────────────────────────── */

.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.legal .wrap { max-width: 46rem; display: grid; gap: 1.25rem; }
.legal h1 { font-size: var(--fs-2xl); }
.legal h2 { font-size: var(--fs-xl); margin-top: 1.25rem; }
.legal h3 { font-size: var(--fs-lg); margin-top: .5rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.25rem; display: grid; gap: .375rem; }
.legal address { font-style: normal; }
/* Anschrift als Bild (wie auf bugla.io): schwarze Schrift auf transparentem
   Grund, deshalb auf heller Fläche, damit sie auch im Dunkelmodus lesbar ist. */
.adr img { display: block; width: 12.5rem; max-width: 100%; height: auto; padding: .625rem .875rem; border-radius: var(--r); background: var(--adr-bg); box-sizing: content-box; }
.draft-note {
  padding: .875rem 1rem; border-radius: var(--r);
  background: var(--placeholder-bg); color: var(--placeholder-ink);
  font-size: var(--fs-sm);
}
.ph {
  background: var(--placeholder-bg); color: var(--placeholder-ink);
  padding: 0 .3em; border-radius: 4px; font-weight: 600;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
