/* === RESET & TOKENS === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-alt: #F7F7F5;
  --ink: #262A25; --ink-soft: #5A5E58; --ink-faint: #8B8E87;
  --rule: #D9DCD4; --rule-soft: #EBEDE7;
  --mint: #5ED8A5; --mint-deep: #4EC995; --mint-tint: rgba(94,216,165,0.10);
  --amber: #C68A1A; --coral: #C94B33;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
html, body {
  font-family: var(--font-body); font-size: 15px;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden; height: 100%; width: 100%;
  max-width: 420px; margin: 0 auto;
}
body { position: relative; }

/* === SCREENS === */
.screen {
  display: none; position: absolute;
  top: 0; left: 0; right: 0; bottom: 68px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 16px 24px;
}
.screen.active { display: block; }
body.no-tab-bar .screen { bottom: 0; }

/* === ADMIN/HOST MODE === */
body.admin-mode .host-only { display: none !important; }

/* === HEADER === */
.screen-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg); padding: 16px 0 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.screen-header h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; letter-spacing: -0.3px;
}
.home-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  color: var(--ink-soft); text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.home-link:hover, .home-link:active {
  background: var(--mint-tint); color: var(--mint-deep);
}
.home-link.longpressing {
  transform: scale(0.85); background: var(--mint-tint); color: var(--mint-deep);
}
.home-link.refreshing svg { animation: home-link-spin 0.6s ease-in-out; }
@keyframes home-link-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* === CHAPTER SELECTOR === */
.chapter-selector { margin-bottom: 16px; position: relative; }
.chapter-label {
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.chapter-label .arrow { font-size: 10px; transition: transform 0.2s; }
.chapter-label .arrow.open { transform: rotate(180deg); }
.chapter-menu {
  display: none; position: absolute; top: 28px; left: 0;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 20; min-width: 180px; overflow: hidden;
}
.chapter-menu.open { display: block; }
.chapter-menu-item {
  padding: 10px 16px; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.15s;
}
.chapter-menu-item:hover { background: var(--surface-alt); }
.chapter-menu-item.selected { font-weight: 600; color: var(--mint-deep); }
.chapter-menu-item .ch-count { font-size: 11px; color: var(--ink-faint); font-weight: 400; }
.host-chapter-label {
  font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 16px;
}

/* === SECTION TITLES === */
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; margin: 24px 0 12px; letter-spacing: -0.2px;
}

/* === EVENT CARDS === */
.event-card {
  background: var(--surface); border: 1px solid var(--rule-soft);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
  display: flex; align-items: center; gap: 14px;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.event-card:active { border-color: var(--mint); box-shadow: 0 0 0 2px var(--mint-tint); }
.event-card.longpressing { transform: scale(0.98); border-color: #E58881; box-shadow: 0 0 0 2px rgba(229,136,129,0.25); }
.event-num {
  font-family: var(--font-mono); font-size: 13px;
  font-weight: 500; color: var(--ink-faint); min-width: 38px;
}
.event-info { flex: 1; }
.event-info .ev-date { font-size: 13px; font-weight: 500; color: var(--ink); }
.event-info .ev-loc { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.live-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--mint-deep);
  background: var(--mint-tint); padding: 3px 8px; border-radius: 6px;
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live { 0%,100%{opacity:1} 50%{opacity:0.5} }
.att-badge { font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.event-card.draft { border-left: 3px solid var(--amber); }
.draft-badge {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--amber);
  background: rgba(198,138,26,0.10); padding: 2px 6px; border-radius: 4px;
  margin-left: 6px; vertical-align: middle;
}
.publish-btn {
  font-size: 11px; font-weight: 600;
  font-family: var(--font-body); color: var(--amber);
  background: rgba(198,138,26,0.10); border: 1px solid rgba(198,138,26,0.25);
  border-radius: 8px; padding: 7px 12px; cursor: pointer;
  flex-shrink: 0; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.publish-btn:active { background: rgba(198,138,26,0.20); }
.publish-btn:disabled { opacity: 0.6; cursor: default; }
.first-timer-badge {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--mint-deep);
  background: var(--mint-tint); padding: 2px 6px; border-radius: 4px;
  margin-left: 6px; vertical-align: middle;
}
.returning-badge {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--ink-soft);
  background: var(--rule-soft); padding: 2px 6px; border-radius: 4px;
  margin-left: 6px; vertical-align: middle;
}
.share-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--rule-soft);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.share-btn:active, .share-btn.copied {
  border-color: var(--mint); background: var(--mint-tint);
}
.hide-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--rule-soft);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.hide-btn:active { border-color: var(--ink-soft); background: var(--rule-soft); }
.hide-btn.is-hidden { border-color: var(--ink-soft); background: var(--rule-soft); }
.hide-btn:disabled { opacity: 0.5; cursor: default; }
.event-card.hidden-event { opacity: 0.6; }
.hidden-badge {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--ink-soft);
  background: var(--rule-soft); padding: 2px 6px; border-radius: 4px;
  margin-left: 6px; vertical-align: middle;
}

/* === PAST EVENTS === */
.past-toggle {
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  margin: 20px 0 10px;
}
.past-toggle .arrow { font-size: 10px; transition: transform 0.2s; }
.past-toggle .arrow.open { transform: rotate(180deg); }
.past-events-list { display: none; }
.past-events-list.open { display: block; }

/* === EVENT HEADER (sub-screens) === */
.event-header {
  background: var(--surface-alt); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 20px;
}
.event-header .back-btn {
  font-size: 13px; font-weight: 500; color: var(--mint-deep);
  border: none; background: none; cursor: pointer; padding: 0;
  font-family: var(--font-body); margin-bottom: 6px; display: inline-block;
}
.event-header .eh-title { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.event-header .eh-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* === EMPTY STATE === */
.empty-state {
  padding: 24px 0; text-align: center; color: var(--ink-faint); font-size: 13px;
}

/* === CENTER SCREEN === */
.center-screen {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: calc(100vh - 140px);
  text-align: center; padding: 40px 20px;
}
.center-screen h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; margin-bottom: 8px;
}
.center-screen p { font-size: 14px; color: var(--ink-soft); }
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--rule-soft);
  border-top-color: var(--mint); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === TOAST === */
.toast {
  position: fixed; bottom: 80px; left: 16px; right: 16px;
  max-width: 388px; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  z-index: 100; transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.toast.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast-table-badge {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--mint); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 22px;
  flex-shrink: 0;
}
.toast-text { flex: 1; min-width: 0; }
.toast-text .tt-name { font-weight: 600; font-size: 15px; }
.toast-text .tt-table { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 2px; }

/* === SCAN: PROGRESS BAR === */
.progress-bar-stacked {
  height: 6px; border-radius: 3px; overflow: hidden;
  display: flex; background: var(--rule-soft); margin-bottom: 8px;
}
.progress-bar-stacked .seg { height: 100%; transition: width 0.3s; }
.progress-legend { display: flex; gap: 14px; font-size: 11px; color: var(--ink-soft); margin-bottom: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; vertical-align: middle; }
.progress-legend .dot { margin-right: 4px; }

/* === CAPACITY BAR === */
.cap-bar-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; margin-bottom: 2px;
}
.cap-bar {
  flex: 1; height: 6px; background: var(--border, #E2E8E5);
  border-radius: 3px; overflow: hidden;
}
.cap-fill {
  height: 100%; background: var(--mint, #5ED8A5);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.cap-label {
  font-size: 11px; font-weight: 600; color: var(--ink-faint, #999);
  white-space: nowrap;
}

/* === SCAN: TABS === */
.scan-tabs {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--rule-soft); margin: 0 0 12px;
}
.sync-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: none; background: none; cursor: pointer;
  color: var(--ink-faint);
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.sync-btn:hover, .sync-btn:active { color: var(--mint-deep); background: var(--mint-tint); }
.sync-btn svg { width: 18px; height: 18px; }
.sync-btn.syncing svg { animation: sync-spin 0.9s linear infinite; }
@keyframes sync-spin { to { transform: rotate(360deg); } }
.scan-tab {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--ink-faint); padding: 12px 0; margin-right: 24px;
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.2s;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.scan-tab.active { color: var(--ink); border-bottom-color: var(--mint); }
.scan-tab .tab-count { font-size: 11px; font-weight: 500; color: var(--ink-faint); margin-left: 4px; }

/* === PAST: ADD ATTENDEE === */
.add-att-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--rule); background: var(--surface);
  color: var(--mint-deep); font-size: 18px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  margin-left: auto; flex-shrink: 0; transition: background 0.15s;
}
.add-att-btn:hover, .add-att-btn:active { background: var(--mint-tint); }
.past-add-form {
  display: none; gap: 8px; padding: 12px 0;
  flex-wrap: wrap;
}
.past-add-form.open { display: flex; }
.past-add-form input {
  flex: 1; min-width: 120px; padding: 8px 12px;
  border: 1px solid var(--rule); border-radius: 8px;
  font: inherit; font-size: 16px; background: var(--surface);
}
.past-add-form input:focus { outline: none; border-color: var(--mint); }
.past-add-form button {
  padding: 8px 16px; border: none; border-radius: 8px;
  background: var(--mint); color: #fff; font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.past-add-form button:disabled { opacity: 0.5; cursor: default; }
.att-name-wrap { position: relative; flex: 1; min-width: 120px; }
.att-name-wrap input { width: 100%; box-sizing: border-box; }
.att-suggest {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 280px; max-height: 200px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 20; margin-top: 4px;
}
.att-suggest.open { display: block; }
.att-suggest-item {
  padding: 8px 12px; cursor: pointer; transition: background 0.15s;
  display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
}
.att-suggest-item:hover, .att-suggest-item:active { background: var(--surface-alt); }
.att-suggest-name { font-size: 13px; font-weight: 500; }
.att-suggest-email { font-size: 11px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; }
.name-text { cursor: text; }
.guest-email-hint { font-size: 11px; color: var(--ink-faint); margin-left: 6px; font-weight: 400; }
.name-text:hover { border-bottom-color: var(--rule); }
.inline-name-edit {
  font: inherit; font-size: inherit; font-weight: inherit;
  border: none; border-bottom: 1.5px solid var(--mint);
  background: transparent; outline: none; padding: 0;
  width: 160px; color: inherit;
}

/* === SCAN: SORT ROW === */
.sort-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 12px; color: var(--ink-faint);
}
.sort-row select {
  border: 1px solid var(--rule); border-radius: 6px; padding: 4px 8px;
  font-family: var(--font-body); font-size: 12px;
  background: var(--surface); color: var(--ink-soft);
}
.view-toggle { display: flex; gap: 4px; }
.view-toggle button {
  padding: 8px 14px; border: 1px solid var(--rule); border-radius: 8px;
  background: none; font-family: var(--font-body); font-size: 13px;
  color: var(--ink-faint); cursor: pointer;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}
.view-toggle button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* === SCAN: GUEST LIST === */
.guest-list { padding-bottom: 12px; }
.guest-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px; border-bottom: 1px solid var(--rule-soft);
  min-height: 56px;
  -webkit-tap-highlight-color: rgba(94, 216, 165, 0.15);
}
.guest-row[data-action="guest-checkedin"]:active {
  background: var(--mint-tint);
}
.guest-row:last-child { border-bottom: none; }
.guest-initial {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-alt); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 16px;
  color: var(--ink-soft); flex-shrink: 0;
}
.guest-initial.table-num {
  background: var(--mint-tint); color: var(--mint-deep);
  font-family: var(--font-mono); font-size: 17px; font-weight: 600;
  position: relative;
}
.guest-initial.table-num.at-table {
  background: var(--mint); color: #fff;
  box-shadow: 0 0 0 2px rgba(94, 216, 165, 0.25);
}
.at-table-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); margin-left: 6px; vertical-align: middle;
}
.guest-info { flex: 1; min-width: 0; }
.guest-name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guest-link-icon { color: var(--ink-faint); margin-left: 6px; vertical-align: middle; text-decoration: none; opacity: 0.6; transition: opacity .15s; }
.guest-link-icon:hover { opacity: 1; color: var(--mint); }
.guest-rating { font-size: 11px; margin-left: 6px; color: var(--amber); letter-spacing: -1px; vertical-align: middle; }
.guest-name .level-tag {
  font-size: 10px; font-weight: 600; color: var(--amber);
  background: rgba(198,138,26,0.08); padding: 1px 5px; border-radius: 3px;
  margin-left: 6px; vertical-align: middle;
}
.guest-tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.tag-topic { background: var(--mint-tint); color: var(--mint-deep); }
.tag-fixiert { background: var(--surface-alt); color: var(--ink-faint); border: 1px solid var(--rule); }
.tag-nachzuegler { background: rgba(198,138,26,0.12); color: var(--amber); }
.fix-col {
  flex: none; align-self: flex-start; display: flex; flex-direction: column;
  align-items: flex-end; gap: 3px; max-width: 96px; text-align: right;
}
.fix-badge {
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
  font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 6px;
  background: var(--mint-tint); color: var(--mint-deep); border: 1px solid var(--mint);
}
.fix-badge.offen { background: rgba(198,138,26,0.12); color: var(--amber); border-color: var(--amber); }
.fix-icon { width: 12px; height: 12px; flex: none; }
.fix-thema { font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--mint-deep); overflow-wrap: anywhere; }
.tag-hostfix { background: var(--mint); color: #fff; }
.tisch-btn { min-width: 64px; }
.tisch-liste { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; max-height: 50vh; overflow-y: auto; }
.tisch-zeile {
  display: flex; align-items: center; gap: 10px; text-align: left;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  padding: 10px 12px; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--surface-alt); cursor: pointer;
}
.tisch-zeile.treffer { border-color: var(--mint); background: var(--mint-tint); }
.tisch-zeile.aktuell { outline: 2px solid var(--ink); }
.tisch-zeile:disabled { opacity: 0.35; cursor: not-allowed; }
.tisch-nr { font-weight: 800; min-width: 20px; }
.tisch-thema { flex: 1; }
.tisch-belegt { font-size: 12px; color: var(--ink-faint); }
.tag-auto { background: var(--mint-tint); color: var(--mint-deep); }
.zuteilung-hinweis {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 8px 0; padding: 8px 12px; border-radius: 8px; font-size: 13px;
  background: var(--surface-alt); color: var(--ink-faint);
}
.zuteilung-hinweis.warn { background: rgba(198,138,26,0.10); color: var(--amber); font-weight: 600; }
.zuteilung-filter {
  flex: none; font: inherit; font-size: 12px; font-weight: 600; color: inherit;
  background: none; border: 1px solid currentColor; border-radius: 6px; padding: 4px 8px; cursor: pointer;
}
.tag-seeking { background: var(--surface-alt); color: var(--ink-faint); }

/* Mitbringsel: freiwillige Anmeldefrage. Chip nur dort, wo wirklich etwas steht,
   Tap klappt den Text unter der Zeile auf. */
.tag-mitbringsel {
  position: relative;
  background: var(--surface-alt); color: var(--ink-faint); border: 1px solid var(--rule);
  cursor: pointer; user-select: none;
}
.tag-mitbringsel.offen { color: var(--amber); border-color: #E6D6B8; background: #FCF8F0; }
/* Der Chip ist nur 20 px hoch, also deutlich unter dem, was ein Finger
   zuverlässig trifft. Die unsichtbare Trefferfläche reicht auf 44 px,
   ohne dass sich am Aussehen oder am Umbruch etwas verschiebt. Nach unten
   sind es 12 px bis zum Zeilenende, die Nachbarzeile bleibt unberührt. */
.tag-mitbringsel::after {
  content: ''; position: absolute; inset: -12px -8px;
}
/* Am Telefon darf der Chip auch sichtbar etwas größer sein. */
@media (pointer: coarse) {
  .tag-mitbringsel { padding: 5px 10px; }
  .tag-mitbringsel::after { inset: -10px -8px; }
}
.mitbringsel-text {
  margin: 7px 0 2px; padding: 9px 11px;
  background: var(--surface-alt); border-left: 2px solid #E0CFAC; border-radius: 0 8px 8px 0;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); white-space: pre-wrap;
}
/* Frühere Mitbringsel derselben Person, nur für Admins. Zwei, drei Zeilen
   unter dem aktuellen Eintrag statt einer Wischgeste: 142 von 183 Menschen
   haben genau ein Mitbringsel, da griffe ein Karussell meist ins Leere. */
.mitbringsel-frueher { margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--rule); }
.mf-kopf {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px;
}
.mf-zeile { font-size: 12.5px; line-height: 1.45; color: var(--ink-faint); margin-bottom: 2px; }
.mf-ev { font-family: var(--font-display); font-weight: 700; margin-right: 6px; color: var(--ink-soft); }
.mf-mal { font-weight: 600; opacity: .7; }
.mf-rest { font-style: italic; }

/* Sammelgriff über der Liste: alle auf einmal. Bewusst leise, das ist Inhalt
   und keine Warnung - die kräftige Bernsteinfläche gehört dem Tisch-Alarm. */
.mitbringsel-sammel {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; margin: 0 0 10px; padding: 8px 13px;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--surface-alt);
  font: 600 12.5px var(--font-body, inherit); color: var(--ink-soft); cursor: pointer;
}
.mitbringsel-sammel.offen { color: var(--amber); border-color: #E6D6B8; background: #FCF8F0; }
@media (pointer: coarse) { .mitbringsel-sammel { min-height: 44px; } }
.mitbringsel-sammel .ms-hint { font-weight: 500; font-size: 11.5px; color: var(--ink-faint); }
.tag-cancelled { background: rgba(201,75,51,0.08); color: var(--coral); }
.guest-detail { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.checkin-btn {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: 10px 18px; border: 1px solid var(--mint); border-radius: 10px;
  background: var(--mint-tint); color: var(--mint-deep); cursor: pointer;
  flex-shrink: 0; transition: all 0.2s;
  min-height: 44px; min-width: 90px;
  -webkit-tap-highlight-color: transparent;
}
.checkin-btn:active { background: var(--mint); color: #fff; }

.mod-btn {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  padding: 10px 14px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--surface-alt); color: var(--ink-soft); cursor: pointer;
  flex-shrink: 0; transition: all 0.15s;
  min-height: 44px; min-width: 44px;
  -webkit-tap-highlight-color: transparent;
  margin-right: 6px;
}
.mod-btn:active:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.mod-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.mod-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  background: var(--ink); color: #fff;
  padding: 1px 6px; border-radius: 3px;
  margin-left: 6px; vertical-align: middle;
  letter-spacing: 0.04em;
}

/* === SCAN: CAMERA === */
.cam-area {
  width: 100%; aspect-ratio: 1; border-radius: 14px;
  background: #1a1a1a; display: flex; align-items: center;
  justify-content: center; color: #555; font-size: 14px;
  margin: 20px 0; overflow: hidden; position: relative;
}
.cam-area video { width: 100%; height: 100%; object-fit: cover; }
.cam-area canvas { display: none; }

/* === TAB BAR === */
.tab-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 420px; height: 68px;
  background: var(--surface); border-top: 1px solid var(--rule-soft);
  display: flex; align-items: center; justify-content: space-around;
  padding-bottom: var(--safe-bottom); z-index: 50;
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; border: none; background: none; padding: 6px 12px;
  -webkit-tap-highlight-color: transparent;
}
.tab-item svg {
  width: 18px; height: 18px; stroke: var(--ink-faint); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tab-item .tab-label {
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  color: var(--ink-faint);
}
.tab-item.active svg { stroke: var(--mint); }
.tab-item.active .tab-label { color: var(--mint-deep); }
.tab-item.disabled { opacity: 0.08; pointer-events: none !important; cursor: default; }

/* === RECAP === */
.recap-selector { position: relative; cursor: pointer; }
.recap-selector-label {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  display: flex; align-items: center; gap: 6px;
}
.recap-selector-label .arrow { font-size: 10px; transition: transform 0.2s; }
.recap-selector-label .arrow.open { transform: rotate(180deg); }
.recap-dropdown {
  display: none; position: absolute; top: 32px; left: 0;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 20; min-width: 220px; overflow: hidden;
}
.recap-dropdown.open { display: block; }
.scan-dropdown { max-height: 160px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.recap-dropdown-item { padding: 10px 16px; font-size: 13px; cursor: pointer; transition: background 0.15s; }
.recap-dropdown-item:hover { background: var(--surface-alt); }
.recap-dropdown-item.selected { font-weight: 600; color: var(--mint-deep); }
.recap-photo {
  position: relative;
  width: 100%; aspect-ratio: 16/9; border-radius: 12px;
  overflow: hidden; margin-bottom: 16px;
}
.recap-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recap-photo-replace {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.6); color: #fff;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}
.recap-photo-upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; width: 100%; aspect-ratio: 16/9; border-radius: 12px;
  border: 2px dashed var(--rule); background: var(--surface-alt);
  color: var(--ink-soft); cursor: pointer; margin-bottom: 16px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.recap-photo-upload:hover, .recap-photo-upload:active {
  border-color: var(--mint); color: var(--mint-deep);
  background: var(--mint-tint);
}
.recap-photo-upload svg { stroke: currentColor; }

/* === Key-Moment-Fotos Widget === */
.recap-photos { margin-bottom: 16px; }
.recap-photos h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 0 0 6px; }
.recap-photo-grid { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.recap-photo-thumb { position: relative; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; }
.recap-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recap-photo-remove { position: absolute; bottom: 0; left: 0; right: 0; font-size: 10px; background: rgba(0,0,0,.6); color: #fff; border: 0; cursor: pointer; padding: 3px; font-family: var(--font-body); }
.recap-photo-add { width: 96px; height: 72px; border: 1.5px dashed #5ED9A6; border-radius: 8px; display: grid; place-items: center; color: #1F8C63; font-size: 13px; cursor: pointer; font-family: var(--font-body); -webkit-tap-highlight-color: transparent; }
.recap-photo-hint { font-size: 12px; color: var(--ink-faint); margin: 0; }

/* === KPIs === */
.kpi-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 16px 0; }
/* Fünf Kacheln passen nur mit etwas kleinerer Zahl in die 420-px-Spalte. */
.kpi-strip.fuenf { grid-template-columns: repeat(5,1fr); gap: 6px; }
.kpi-strip.fuenf .kpi-box { padding: 10px 4px; }
.kpi-strip.fuenf .kpi-value { font-size: 17px; }
.kpi-box { background: var(--surface-alt); border-radius: 8px; padding: 10px 8px; text-align: center; }
.kpi-value { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.kpi-label { font-size: 10px; color: var(--ink-faint); margin-top: 2px; font-weight: 500; }

/* === SPARKLINE === */
.sparkline-section { margin: 16px 0; }
.sparkline-title { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.sparkline { display: flex; align-items: flex-end; gap: 6px; height: 50px; padding-bottom: 18px; }
.spark-bar { flex: 1; background: var(--mint-tint); border-radius: 3px 3px 0 0; position: relative; }
.spark-bar.current { background: var(--mint); }
.spark-label { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--ink-faint); white-space: nowrap; }

/* === FEEDBACK === */
.feedback-summary { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.feedback-count { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.feedback-rating { font-size: 14px; color: var(--ink-soft); }
.feedback-stars-row { display: flex; gap: 2px; margin-top: 2px; }
.star { font-size: 14px; }
.star.filled { color: var(--mint); }
.star.empty { color: var(--rule); }
.feedback-scroll { max-height: 340px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.feedback-card { background: var(--surface-alt); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.feedback-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fc-stars { display: flex; gap: 2px; }
.fc-star { font-size: 12px; }
.fc-star.mint { color: var(--mint); }
.fc-star.amber { color: var(--amber); }
.fc-star.coral { color: var(--coral); }
.fc-star.empty { color: var(--rule); }
.fc-contact { padding: 4px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.fc-contact.yes { background: var(--mint-tint); color: var(--mint-deep); }
.fc-contact.no { background: var(--surface); color: var(--rule); border: 1px solid var(--rule-soft); }
.fc-name { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.fc-quote { font-size: 13px; line-height: 1.5; color: var(--ink); margin-bottom: 6px; }
.fc-special { font-size: 12px; color: var(--ink-soft); font-style: italic; }
.fc-special-label { font-weight: 600; font-style: normal; font-size: 11px; color: var(--ink-faint); }
.fc-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 8px 14px;
  background: var(--mint);
  color: var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.fc-reply-btn:hover {
  background: var(--mint-deep);
}
.fc-reply-btn:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 2px;
}
.admin-feedback-card { background: var(--surface-alt); border-radius: 10px; padding: 14px; margin-bottom: 10px; border-left: 3px solid var(--mint); }
.admin-feedback-card .afc-quote { font-size: 14px; line-height: 1.5; font-style: italic; color: var(--ink); }
.admin-feedback-card .afc-author { font-size: 12px; color: var(--ink-faint); }
.admin-feedback-card .afc-kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 7px;
}
/* Ohne neuen Kontakt: der Rand wechselt von Mint auf Bernstein, damit die
   Karte im Stapel auffällt, ohne dass sie wie ein Fehler aussieht. */
.admin-feedback-card.ohne-kontakt { border-left-color: var(--amber); }
/* Auf dieser Karte ist der durchgestrichene Handschlag die Aussage, also
   darf er nicht so blass sein wie in der Gästeliste. */
.admin-feedback-card.ohne-kontakt .fc-contact.no {
  color: var(--amber); border-color: #E6D6B8; background: #FCF8F0;
}

/* === TISCHE === */
.tisch-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); font-size: 13px; }
.tisch-num { width: 28px; height: 28px; border-radius: 50%; background: var(--mint-tint); color: var(--mint-deep); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tisch-topic { flex: 1; font-weight: 500; }
.tisch-count { color: var(--ink-faint); font-size: 12px; }

/* === PLAYBOOK === */
.playbook-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.playbook-progress { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.playbook-mode-badge { font-size: 11px; color: var(--amber); font-weight: 600; margin-bottom: 12px; }
.playbook-intro { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 20px; }
.playbook-section-title {
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.5px; margin: 20px 0 10px;
}
.playbook-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer;
}
.playbook-item.readonly { cursor: default; }
.check-circle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--rule); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; margin-top: 1px;
}
.check-circle.checked { background: var(--mint); border-color: var(--mint); }
.check-circle.readonly { opacity: 0.6; }
.playbook-item-text { font-size: 14px; line-height: 1.4; flex: 1; color: var(--ink); }
.playbook-item-text.done { text-decoration: line-through; color: var(--ink-faint); }

/* --- Klappbare Checklist-Gruppen (Round 2) --- */
.pb-rail {
  height: 4px; border-radius: 99px; background: var(--rule-soft);
  overflow: hidden; margin-bottom: 8px;
}
.pb-rail > i { display: block; height: 100%; background: var(--mint-deep); border-radius: 99px; transition: width 0.4s; }

.pb-group {
  border: 1px solid var(--rule); border-radius: 14px;
  margin-top: 12px; overflow: hidden; background: var(--surface);
}
.pb-group.now { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-tint); }
.pb-group-head {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; cursor: pointer; user-select: none;
}
.pb-group-label { flex: 1; display: flex; align-items: center; }
.pb-group-phase { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.pb-group.done .pb-group-phase { color: var(--ink-faint); }
.pb-now-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--mint-deep); margin-left: 7px;
}
.pb-group-progress { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); font-weight: 500; }
.pb-group-chev { color: var(--ink-faint); display: flex; transition: transform 0.2s; }
.pb-group.open .pb-group-chev { transform: rotate(90deg); }
.pb-group-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--rule); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.pb-group-check svg { opacity: 0; }
.pb-group.done .pb-group-check { background: var(--mint-deep); border-color: var(--mint-deep); }
.pb-group.done .pb-group-check svg { opacity: 1; }

.pb-group-body { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.pb-group.open .pb-group-body { max-height: 1600px; }
.pb-group-items { padding: 2px 14px 12px; }
.pb-group-items .playbook-item:last-child { border-bottom: none; }

/* Aktions-Item „Tische & Badges" */
.pb-action {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin: 8px 0 2px;
  border: 1px solid var(--mint); background: var(--mint-tint);
  border-radius: 12px; cursor: pointer;
}
.pb-action-ic {
  width: 34px; height: 34px; border-radius: 10px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid var(--rule-soft);
}
.pb-action-tx { flex: 1; display: flex; flex-direction: column; }
.pb-action-t { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.pb-action-s { font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; }
.pb-action-go {
  font-size: 11px; font-weight: 700; color: var(--mint-deep);
  border: 1px solid var(--mint); border-radius: 99px;
  padding: 4px 10px; background: var(--surface); white-space: nowrap;
}
.pb-action.done { border-color: var(--rule); background: var(--surface); }
.pb-action.done .pb-action-t { color: var(--ink-faint); }
.pb-action.done .pb-action-go { color: var(--ink-faint); border-color: var(--rule); }

/* --- Einmal-Setup (chapter-weit, verschwindet nach Erledigung) --- */
.pb-once-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-faint); margin-left: 7px;
}
.pb-once-hint {
  font-size: 12px; color: var(--ink-soft); line-height: 1.5;
  padding: 6px 0 4px;
}
.pb-once-chip {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 7px 12px;
  border: 1px solid var(--rule); border-radius: 99px;
  background: var(--surface);
  font-size: 12px; font-weight: 600; color: var(--ink-faint);
}
.pb-once-chip-ic { display: flex; align-items: center; }

/* === TOOLS (dezenter Block am Fuss der Checkliste) === */
.pb-tools { margin: 22px 0 6px; padding-top: 18px; border-top: 1px solid var(--rule-soft); }
.pb-tools-head {
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
  margin: 0 2px 10px;
}
.pb-tool {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin: 8px 0;
  border: 1px solid var(--rule); background: var(--surface);
  border-radius: 12px; cursor: pointer; text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
.pb-tool:hover, .pb-tool:active { border-color: var(--mint); background: var(--mint-tint); }
.pb-tool:active { transform: scale(0.99); }
.pb-tool-ic {
  width: 34px; height: 34px; border-radius: 10px; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid var(--rule-soft);
}
.pb-tool:hover .pb-tool-ic { background: var(--surface); }
.pb-tool-tx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pb-tool-t { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.pb-tool-s { font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; }
.pb-tool-go { color: var(--ink-faint); display: flex; flex-shrink: 0; }
.pb-tool:hover .pb-tool-go { color: var(--mint-deep); }

/* === TISCHE & BADGES (Host-Screen, Round 2) === */
.tb-appbar {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 4px 12px; border-bottom: 1px solid var(--rule-soft); margin-bottom: 14px;
}
.tb-back { background: none; border: none; cursor: pointer; padding: 4px; color: var(--ink); display: flex; }
.tb-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin: 0; }
.tb-sub { font-size: 12px; color: var(--ink-faint); margin-top: 1px; }
.tb-body { }

.tb-section {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em;
  margin: 24px 0 10px; padding-top: 6px; border-top: 1px solid var(--rule-soft);
}

.tb-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 15px; margin-bottom: 14px;
}
.tb-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 14px; margin: 0 0 3px; }
.tb-muted { color: var(--ink-faint); font-size: 12.5px; line-height: 1.45; margin: 4px 0 10px; }

.tb-banner { border-radius: 12px; padding: 11px 13px; font-size: 13px; margin-bottom: 14px; line-height: 1.45; }
.tb-banner.amber { background: var(--surface-alt); border: 1px solid var(--rule); color: var(--amber); }
.tb-banner.green { background: var(--mint-tint); border: 1px solid var(--mint); color: var(--mint-deep); }
.tb-banner b { font-weight: 700; }

.tb-btn {
  display: block; width: 100%; text-align: center;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  border-radius: 12px; padding: 13px; border: 1px solid transparent; cursor: pointer; margin-top: 4px;
}
.tb-btn.freeze { background: var(--amber); color: #fff; }
.tb-btn.ghost { background: var(--surface); border-color: var(--rule); color: var(--ink); }
.tb-btn:disabled { opacity: 0.4; cursor: not-allowed; }
/* Umschalter Farbband / Trennlinie: Symbol plus Klartext, damit auf dem Handy
   klar ist, was gerade gedruckt wird. Kein reines Icon-Raten. */
.tb-btn.tb-style { display: flex; align-items: center; justify-content: center; gap: .55rem; font-weight: 500; }
.tb-btn.tb-style svg { width: 24px; height: 16px; flex: 0 0 auto; }
.tb-btn.tb-style[aria-pressed="true"] { border-color: var(--mint); }

.tb-glist { margin: 2px 0 0; }
.tb-g { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.tb-g:last-child { border-bottom: none; }
.tb-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.tb-dot.erst { background: var(--coral); }
.tb-dot.stamm { background: var(--ink); }
.tb-dot.crew { background: var(--mint-deep); }
.tb-nm { flex: 1; font-weight: 600; font-size: 14.5px; }
.tb-rolechip {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  cursor: pointer; border: 1px solid var(--rule);
}
.tb-rolechip.erst { background: var(--surface-alt); color: var(--coral); border-color: var(--rule); }
.tb-rolechip.stamm { background: var(--surface-alt); color: var(--ink-soft); }
.tb-rolechip.crew { background: var(--mint-tint); color: var(--mint-deep); border-color: var(--mint); }
/* Tischzelle: Nummer plus Thema. Der Host entscheidet nach Thema, nicht nach
   Nummer, deshalb steht es in der Zeile und nicht nur in der Legende.
   Der Text kürzt sich am Handy weg, die Nummer bleibt immer lesbar. */
.tb-tbl {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--ink);
  background: var(--surface-alt); border: 1px solid transparent; border-radius: 8px;
  padding: 4px 8px; cursor: pointer; min-width: 30px; text-align: center;
  max-width: 46vw; overflow: hidden;
}
.tb-tbl b { font-weight: 800; flex: none; }
.tb-tp-name {
  font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
/* Wunschthema der Person getroffen */
.tb-tbl.tb-wunsch { background: var(--mint-tint); border-color: var(--mint); }
.tb-tbl.tb-wunsch .tb-tp-name { color: var(--mint-deep); }
/* Tisch trägt kein Gespräch mehr: unter 4 oder über 7. Schlägt den Wunsch —
   eine Warnung, die eine Bestätigung überdeckt, ist keine Warnung. */
.tb-tbl.tb-alert { border-color: var(--amber); color: var(--amber); }
.tb-tbl.tb-alert .tb-tp-name { color: var(--amber); }
.tb-hint { font-size: 11.5px; color: var(--ink-faint); margin: 9px 2px 0; }

/* Farb-Legende der Rollen (nutzt die tb-dot-Farben der Gästeliste) */
.tb-legend {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  padding: 10px 12px; margin: 2px 0 12px;
  border: 1px solid var(--rule-soft); border-radius: 12px; background: var(--surface-alt);
}
.tb-lg { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink); }
.tb-lg b { font-weight: 700; }
.tb-lg-mean { color: var(--ink-faint); }

/* Themen-Legende: Tisch-Nummer → Thema (nur eingefrorener Tisch-Modus) */
.tb-topics {
  display: flex; flex-direction: column; gap: 7px;
  padding: 10px 12px; margin: 0 0 12px;
  border: 1px solid var(--rule-soft); border-radius: 12px; background: var(--surface-alt);
}
.tb-tp { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink); }
.tb-tp .tb-tbl { cursor: default; max-width: none; }
.tb-tp-topic { flex: 1; }
/* Belegung je Tisch: macht sichtbar, was ein Umsetzen anrichtet - auch am
   Quelltisch, den die Zeile der bewegten Person nicht zeigen kann. */
.tb-cnt {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  color: var(--ink-faint); min-width: 18px; text-align: right; flex: none;
}
.tb-cnt.tb-cnt-alert { color: var(--amber); }

/* Blanko-Badge-Widget: Rolle umschalten + Anzahl + Bogen füllen */
/* Mini-Vorschau des angebrochenen 10er-Bogens: belegt grau, Blanko in Rollenfarbe */
.tb-sheet { display: flex; gap: 4px; margin: 8px 0 12px; }
.tb-slot { flex: 1; height: 10px; border-radius: 3px; border: 1px solid var(--rule); background: var(--surface); transition: background 0.15s, border-color 0.15s; }
.tb-slot.used { background: var(--rule-soft); border-color: var(--rule-soft); }
.tb-slot.erst { background: var(--coral); border-color: var(--coral); }
.tb-slot.stamm { background: var(--ink); border-color: var(--ink); }
.tb-slot.crew { background: var(--mint-deep); border-color: var(--mint-deep); }

/* Blanko-Mix: pro Rolle eine Zeile mit Farbpunkt, Label und Stepper */
.tb-blank-rows { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.tb-blank-row { display: flex; align-items: center; gap: 10px; }
.tb-blank-row .tb-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.tb-blank-label { flex: 1; font-weight: 600; font-size: 13.5px; }
.tb-step {
  width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer;
}
.tb-step:disabled { opacity: 0.35; cursor: not-allowed; }
.tb-blank-n { min-width: 24px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; }

.tb-exclrow {
  font-size: 12.5px; color: var(--ink-soft); padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft); display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.tb-exclrow:last-child { border-bottom: none; }
.tb-exclrow .r { color: var(--ink-faint); }
.tb-exclrow > span:first-child { flex: 1; min-width: 0; }

/* Ungespeicherte Umsetzungen: die Karte, die zwischen Tippen und Drucken steht */
.tb-save { border-color: var(--amber); }
.tb-btn.ghost.danger { color: var(--coral); border-color: var(--coral); }

/* === SPONSORING STEPS === */
.lnf-step {
  flex: 1; padding: 8px 4px; text-align: center;
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  color: var(--ink-faint); cursor: pointer; border: 1px solid var(--rule);
  border-right: none; background: var(--surface); transition: all 0.15s;
}
.lnf-step:first-child { border-radius: 6px 0 0 6px; }
.lnf-step:last-child { border-radius: 0 6px 6px 0; border-right: 1px solid var(--rule); }
.lnf-step.filled { background: var(--mint-tint); border-color: var(--mint); color: var(--mint-deep); font-weight: 600; }
.lnf-step.selected { background: var(--mint); color: #fff; border-color: var(--mint); font-weight: 600; }

/* === CREATE BUTTON === */
.btn-create {
  width: 100%; font-family: var(--font-body); font-size: 14px; font-weight: 600;
  border: none; border-radius: 10px; padding: 12px 24px; cursor: pointer;
  background: var(--ink); color: #fff; transition: background 0.2s;
}
.btn-create:active { background: #3a3f38; }
.btn-secondary {
  width: 100%; font-family: var(--font-body); font-size: 13px; font-weight: 500;
  border: 1px solid var(--rule); border-radius: 10px; padding: 10px 24px; cursor: pointer;
  background: var(--surface); color: var(--ink-soft); transition: all 0.2s;
}
.btn-secondary:active { background: var(--surface-alt); }
.btn-secondary:disabled { opacity: 0.6; cursor: default; }

/* === CONFIRM MODAL === */
.host-modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: host-modal-fade 0.15s ease;
}
@keyframes host-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.host-modal {
  background: var(--bg); border-radius: 16px;
  max-width: 360px; width: 100%;
  padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: host-modal-pop 0.18s ease;
}
@keyframes host-modal-pop {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.host-modal h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; margin-bottom: 8px; color: var(--ink);
}
.host-modal p {
  font-size: 14px; color: var(--ink-soft); line-height: 1.5;
  margin-bottom: 20px;
}
.host-modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
}
.host-modal-btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 12px 18px; border: none; border-radius: 10px; cursor: pointer;
  min-height: 44px; min-width: 100px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.05s;
}
.host-modal-btn:active { transform: scale(0.97); }
.host-modal-btn.cancel {
  background: var(--surface-alt); color: var(--ink-soft);
}
.host-modal-btn.danger {
  background: var(--coral); color: #fff;
}

/* === ADMIN OVERVIEW === */
.admin-filters { display: flex; gap: 6px; margin-bottom: 16px; }
.filter-chip {
  padding: 6px 14px; border-radius: 20px; border: 1px solid var(--rule);
  background: var(--surface); font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-soft); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-chart-wrap { margin-bottom: 8px; }
.admin-chart { width: 100%; height: auto; display: block; }
.admin-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.admin-legend-item { font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; }
.chapter-row {
  display: grid; grid-template-columns: 10px 1fr auto 80px auto;
  align-items: center; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft); font-size: 13px;
}
.chapter-name { font-weight: 500; }
.chapter-count { color: var(--ink-faint); font-size: 12px; text-align: right; }
.chapter-bar { height: 6px; background: var(--surface-alt); border-radius: 3px; overflow: hidden; }
.chapter-fill { height: 100%; border-radius: 3px; transition: width 0.3s ease; }
.chapter-att { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-align: right; min-width: 28px; }
.export-btn {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  background: var(--ink); color: #fff; font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.export-btn:active { transform: scale(0.97); }
.export-btn.secondary { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--rule); }

/* === RECAP LINKS === */
.recap-links { margin: 14px 0; }
.recap-links h4 { margin: 0 0 8px; font-size: 14px; }
.recap-link-row { display: block; font-size: 12px; color: #5b6b63; margin: 0 0 10px; }
.recap-link-row input { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #d8e0db; border-radius: 8px; font-size: 13px; box-sizing: border-box; }
.recap-links-btn { background: #5ED9A6; color: #08110C; border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; }
.recap-links-status { margin-left: 10px; font-size: 12px; color: #8A968F; }

/* === DESKTOP === */
@media (min-width: 421px) {
  html, body { background: var(--surface-alt); }
  body { max-width: 420px; margin: 0 auto; background: var(--bg); box-shadow: 0 0 40px rgba(0,0,0,0.08); }
}

/* ===== Tisch-Board (Fullscreen Check-in) ===== */
.board-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 24px 32px calc(24px + var(--safe-bottom));
  overflow: hidden;
}
.board-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex: 0 0 auto;
}
.board-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20px, 2.4vw, 34px); letter-spacing: -0.4px; color: var(--ink);
}
.board-close {
  font-family: var(--font-body); font-size: 22px; line-height: 1;
  width: 48px; height: 48px; border: 1px solid var(--rule); border-radius: 12px;
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
}
.board-close:hover { background: var(--surface-alt); color: var(--ink); }

/* Topbar rechts: Countdown-Ring bis zum nächsten Poll + Schliessen */
.board-topbar-right { display: flex; align-items: center; gap: 14px; }
.board-tick { width: 30px; height: 30px; transform: rotate(-90deg); flex: 0 0 auto; }
.board-tick circle { fill: none; stroke-width: 2.5; }
.board-tick-track { stroke: var(--rule-soft); }
.board-tick-fill {
  stroke: var(--mint); stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
@keyframes board-tick-fill { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.board-grid {
  flex: 1 1 auto; display: grid; gap: 20px;
  grid-template-columns: repeat(var(--board-cols, 3), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  overflow: hidden;
}
.board-empty {
  grid-column: 1 / -1; text-align: center; align-self: center;
  font-size: clamp(18px, 2vw, 26px); color: var(--ink-faint);
}

.board-table {
  container-type: size;
  border: 1px solid var(--rule-soft); border-radius: 22px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(38,42,37,0.03), 0 18px 40px -22px rgba(38,42,37,0.18);
  padding: clamp(12px, 3.4cqmin, 22px); display: flex; flex-direction: column;
  min-height: 0; min-width: 0; overflow: hidden;
}
.board-table-head {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; column-gap: 10px; row-gap: clamp(2px, 1cqmin, 6px);
  margin-bottom: clamp(8px, 2.5cqmin, 14px); padding-bottom: clamp(6px, 2cqmin, 12px);
  border-bottom: 1px solid var(--rule-soft);
}
.board-table-num {
  grid-column: 1; grid-row: 1;
  font-family: var(--font-mono); font-size: clamp(10px, 2.2cqmin, 13px); color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.board-table-topic {
  grid-column: 1 / -1; grid-row: 2;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(15px, 7cqmin, 38px); letter-spacing: -0.3px; color: var(--ink);
}
.board-overflow {
  grid-column: 2; grid-row: 1; align-self: baseline;
  font-family: var(--font-mono); font-size: clamp(10px, 2cqmin, 13px);
  color: var(--mint-deep); background: var(--mint-tint);
  padding: 2px 8px; border-radius: 999px;
}

.board-seats {
  flex: 1 1 auto; min-height: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr); gap: clamp(6px, 1.6cqmin, 10px); align-content: stretch;
}
.board-seat {
  position: relative; min-height: 0; border-radius: 14px;
  display: flex; flex-direction: row; align-items: center;
  gap: clamp(8px, 2.6cqmin, 16px);
  padding: clamp(8px, 2.6cqmin, 16px); overflow: hidden;
}
.board-seat.filled { background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--rule-soft); }
.board-seat.empty { align-items: center; justify-content: center; }

/* Monogramm: jeder Sitz ist bewohnt, kein leerer Kasten */
.seat-mono {
  flex: 0 0 auto; display: grid; place-items: center;
  width: clamp(30px, 9cqmin, 68px); aspect-ratio: 1; border-radius: 50%;
  background: var(--mint-tint); color: var(--mint-deep);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(12px, 3.4cqmin, 24px); line-height: 1;
}
.seat-mono.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule); }
.seat-id { display: flex; flex-direction: column; gap: clamp(1px, 0.6cqmin, 3px); min-width: 0; }
.seat-name {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(13px, 4.4cqmin, 26px); color: var(--ink); line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seat-role {
  font-family: var(--font-mono); font-size: clamp(8px, 1.7cqmin, 11px);
  letter-spacing: 0.6px; text-transform: uppercase; color: var(--mint-deep);
}

/* Moderator: solides Mint-Monogramm trägt das Signal */
.board-seat.is-moderator .seat-mono {
  background: var(--mint); color: #0e2a1f;
  box-shadow: 0 2px 8px -2px rgba(94,216,165,0.6);
}
.board-seat.is-moderator { box-shadow: inset 0 0 0 1.5px var(--mint); }

/* Freeze-Board: geplant, aber noch nicht eingecheckt — ausgegraut statt gelöscht,
   damit die eingefrorene Sitzordnung als Wahrheit sichtbar bleibt. */
.board-seat.absent { opacity: 0.45; }
.board-seat.absent .seat-mono { background: var(--surface-alt); color: var(--ink-faint); }

/* Die eine bedeutungstragende Bewegung: Ankunft. ~20s Nachleuchten via JS-Klasse. */
.board-seat.arriving {
  background: var(--mint-tint); box-shadow: inset 0 0 0 1.5px var(--mint);
}
.board-seat.blooming {
  animation: board-bloom 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.board-seat.blooming .seat-mono {
  animation: mono-pop 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes board-bloom {
  0%   { transform: translateY(8px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0)   scale(1);    opacity: 1; }
}
@keyframes mono-pop { 0% { transform: scale(0.55); } 100% { transform: scale(1); } }

/* Board-Button im Check-in-Screen (nur breite Viewports zeigen ihn) */
.scan-board-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: none; background: none; cursor: pointer;
  color: var(--ink-faint);
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.scan-board-btn:hover, .scan-board-btn:active { color: var(--mint-deep); background: var(--mint-tint); }
.scan-board-btn svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .board-seat.blooming { animation: none; }
}

/* ---- Notfall-Tischauflösung (Board-Doppelklick) ---- */
.board-table[data-table-id] { user-select: none; }
.board-table-thin { cursor: pointer; }
.board-table-thin:hover { outline: 2px dashed rgba(255, 122, 89, 0.5); outline-offset: 3px; }
.dissolve-moves { margin: 8px 0 4px 18px; padding: 0; }
.dissolve-moves li { margin: 4px 0; }
.dissolve-topic { opacity: 0.6; font-size: 0.85em; }
.dissolve-pending { font-size: 0.9em; opacity: 0.8; }
.dissolve-note { font-size: 0.85em; opacity: 0.7; margin-top: 10px; }

/* 7. Sitz (seltene Ausnahme): eigene Reihe, lesbar mit Namen, deutlich markiert */
.board-seat.plus { border: 1px dashed rgba(94, 217, 166, 0.65); position: relative; }
.seat-plus {
  margin-left: auto; flex: none; font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em; color: #1E7A57; background: rgba(94, 217, 166, 0.18);
  border-radius: 4px; padding: 1px 5px;
}
.dissolve-seven { color: #B45309; font-size: 0.9em; }

/* ============================================================
   Beamer-Redesign: Abflugtafel
   Ein projizierter Screen ist Signage. Dunkle Metall-Bühne im
   KINN-Brand, Tischnummern wie Gate-Nummern, Namen als das
   dominante Lese-Element, unten die Begrüßungszeile.
   Token-Flip im Overlay-Scope: alle bestehenden Board-Mechaniken
   (Moderator, Absent, Plus-Sitz, Auflösen) erben automatisch.
   ============================================================ */
.board-overlay {
  --surface: #1E241F;
  --surface-alt: #29302A;
  --ink: #F1F4EF;
  --ink-soft: #C9D1C8;
  --ink-faint: #8B958C;
  --rule: rgba(241, 244, 239, 0.16);
  --rule-soft: rgba(241, 244, 239, 0.09);
  --mint-tint: rgba(94, 216, 165, 0.16);
  --mint-deep: #8FE9C6;
  background:
    radial-gradient(120% 90% at 50% 118%, rgba(94, 216, 165, 0.13), transparent 60%),
    radial-gradient(110% 70% at 50% -25%, rgba(255, 255, 255, 0.05), transparent 55%),
    #141915;
  padding: 28px 36px calc(24px + var(--safe-bottom));
}
/* Papierkorn über allem, unter dem Inhalt */
.board-overlay::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.4; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
.board-topbar, .board-grid, .board-banner { position: relative; z-index: 1; }

/* Topbar: Kicker + Titel links, Phase + Uhr + Puls rechts */
.board-head-left { display: flex; flex-direction: column; gap: 3px; }
.board-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mint);
}
.board-title { letter-spacing: -0.5px; }
.board-phase {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mint-deep);
  padding: 5px 12px; border: 1px solid var(--mint-tint); border-radius: 999px;
  background: rgba(94, 216, 165, 0.08);
}
.board-phase:empty { display: none; }
.board-clock {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(16px, 2.2vh, 24px); color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.board-close { background: transparent; }

/* Tisch-Karte: Gate-Nummer dominiert */
.board-table {
  border-radius: 24px;
  border-color: var(--rule-soft);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.board-table-head {
  display: flex; align-items: center; gap: clamp(10px, 3.4cqmin, 20px);
  grid-template-columns: none;
}
.board-table-num { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.board-table-num em {
  font-style: normal; font-family: var(--font-mono);
  font-size: clamp(8px, 1.9cqmin, 12px); letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-faint);
}
.board-table-num b {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 15cqmin, 86px); line-height: 0.9; letter-spacing: -0.03em;
  color: var(--mint);
}
.board-table-topic {
  flex: 1 1 auto; min-width: 0;
  font-size: clamp(13px, 4.8cqmin, 27px); line-height: 1.08;
  color: var(--ink-soft); font-weight: 700; letter-spacing: -0.01em;
}

/* Sitz: Name ist das Lese-Element */
.board-seat.filled { background: var(--surface-alt); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.seat-name { font-weight: 650; font-size: clamp(14px, 5.4cqmin, 30px); letter-spacing: 0.01em; }
.seat-mono { background: rgba(94, 216, 165, 0.14); color: var(--mint-deep); }
.board-seat.is-moderator .seat-mono { color: #0e2a1f; }
.board-seat.arriving { background: rgba(94, 216, 165, 0.2); box-shadow: inset 0 0 0 1.5px var(--mint), 0 0 34px -6px rgba(94, 216, 165, 0.55); }
.board-overlay .board-seat.plus { border: 1px dashed rgba(94, 216, 165, 0.55); }
.board-overlay .seat-plus { color: #0e2a1f; background: var(--mint); }

/* Begrüßungszeile: das Flughafen-Announcement */
.board-banner { display: none; }
.board-overlay.has-banner .board-banner {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  flex: 0 0 auto; margin-top: 22px;
  padding: clamp(14px, 2.6vh, 26px) clamp(20px, 2.6vw, 36px);
  border-radius: 22px;
  border: 1px solid rgba(94, 216, 165, 0.28);
  background: linear-gradient(90deg, rgba(94, 216, 165, 0.16), rgba(94, 216, 165, 0.03) 70%);
  overflow: hidden;
}
.banner-now {
  display: flex; align-items: baseline; gap: clamp(14px, 1.8vw, 26px);
  min-width: 0; animation: banner-in 550ms cubic-bezier(0.16, 1, 0.3, 1);
}
.banner-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 6vh, 62px); line-height: 1; letter-spacing: -0.02em;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.banner-goto {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20px, 4.2vh, 44px); line-height: 1; color: var(--mint); white-space: nowrap;
}
.banner-goto b { font-weight: 900; }
.banner-prev {
  margin-left: auto; display: flex; gap: clamp(12px, 1.6vw, 26px); flex: 0 0 auto;
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(13px, 2.2vh, 21px); color: var(--ink-faint); white-space: nowrap;
}
@keyframes banner-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .banner-now { animation: none; }
}

/* Schalter im Tools-Block, z.B. "Freie Tischwahl". Optisch eine Tool-Zeile,
   nur mit Zustand statt Chevron. */
.pb-switch {
  width: 40px; height: 23px; border-radius: 999px; flex-shrink: 0;
  background: #d7dbd7; position: relative; transition: background .18s ease;
}
.pb-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 17px; height: 17px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .18s ease;
}
.pb-switch.on { background: var(--mint-deep, #3fbf8f); }
.pb-switch.on::after { transform: translateX(17px); }
.pb-tool[data-action="toggle-tischmodus"] { cursor: pointer; }

/* Tische & Badges: Ladeanzeige mit Laufzeit und Abbruch */
.tb-lade { text-align: left; }
.tb-lade b { display: block; font-size: 15px; margin-bottom: 10px; }
.tb-lade-bar { height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; margin: 6px 0 10px; }
.tb-lade-bar > div { height: 100%; width: 35%; border-radius: 4px; background: var(--mint); animation: tb-lade-lauf 1.4s ease-in-out infinite; }
@keyframes tb-lade-lauf { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.tb-link { font: inherit; font-weight: 700; color: var(--mint-deep); background: none; border: none; padding: 6px 4px; min-height: 32px; text-decoration: underline dotted; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tb-lade-bar > div { animation: none; width: 100%; } }

/* M-Vorschau: Knopfzeile mit Hinweis darunter (Zusage-Liste) */
.ci-wrap { flex: none; display: flex; flex-direction: column; align-items: flex-end; max-width: 60%; }
.ci-zeile { display: flex; align-items: center; }
.m-hinweis { margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--mint-deep); text-align: right; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-hinweis.dim { color: var(--ink-faint); font-weight: 600; }

/* Zusage-Liste: kompakte Zeile. Mint nur für den Check-in, Amber nur für Erstbesucher und Nachzügler,
   alles andere in Grau. Höchstens zwei Textzeilen pro Gast, feste Mindesthöhe. */
.guest-row.kompakt { min-height: 68px; }
.guest-row.kompakt .guest-name { display: flex; align-items: center; gap: 6px; }
.guest-row.kompakt .guest-name .nm-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-row.kompakt .guest-name .tag { flex: none; }
.tag-tisch { background: var(--surface-alt); color: var(--ink-soft); }
.rolle-amber { color: var(--amber); font-weight: 700; }
.guest-detail.zeile-eins { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guest-row.kompakt .checkin-btn { background: var(--mint); color: #07301f; border-color: var(--mint); }
.guest-row.kompakt .checkin-btn:active { background: var(--mint-deep); color: #fff; }

/* Stufe 2: Fenster von unten (Nachzügler, Details), Rückgängig im Toast, graue Fehlerzeile */
.host-sheet-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.35); display: flex; align-items: flex-end; justify-content: center; animation: host-modal-fade 0.15s ease; }
.host-sheet { width: 100%; max-width: 480px; background: var(--bg); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 28px rgba(0,0,0,0.2); animation: host-sheet-hoch 0.2s ease; }
.host-sheet h3 { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin: 0 0 12px; color: var(--ink); }
.sheet-opt { display: block; width: 100%; text-align: left; font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; min-height: 52px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sheet-opt small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.sheet-opt.mod { background: var(--mint-tint); border-color: var(--mint); color: var(--mint-deep); }
.sheet-link { display: block; margin: 4px auto 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--mint-deep); background: none; border: none; padding: 10px; min-height: 44px; text-decoration: underline; cursor: pointer; }
.sheet-abbruch { display: block; width: 100%; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-faint); background: none; border: none; padding: 12px; min-height: 44px; cursor: pointer; }
@keyframes host-sheet-hoch { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast-aktion { flex: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--mint); background: none; border: none; padding: 10px 6px; min-height: 44px; text-decoration: underline; cursor: pointer; }
.guest-detail.zeile-fehler { color: var(--ink-soft); font-weight: 600; margin-top: 3px; }
@media (prefers-reduced-motion: reduce) { .host-sheet { animation: none; } }

/* Nachzügler-Fenster: nach 2 Sekunden ohne Tipp läuft der normale Check-in. Der Balken zeigt das ruhig an. */
.sheet-auto { height: 3px; border-radius: 2px; background: var(--rule); overflow: hidden; margin-top: 4px; }
.sheet-auto > div { height: 100%; background: var(--mint); animation: sheet-auto-lauf 2s linear forwards; }
@keyframes sheet-auto-lauf { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .sheet-auto > div { animation: none; width: 100%; } }

.tipp-zeile { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 10px 12px; background: var(--surface-alt); border-radius: 10px; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); }
.tipp-zeile span { flex: 1; min-width: 0; }
.tipp-zeile button { flex: none; font: inherit; font-weight: 700; color: var(--mint-deep); background: none; border: none; padding: 8px 4px; min-height: 44px; cursor: pointer; }

/* Host-Checkliste (Probelauf, Vorher, Während, Nachher): Abschnitte zum Auf- und Zuklappen, Häkchen nur lokal */
.hcl { margin: 4px 0 18px; }
.hcl-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); margin: 0 0 8px; }
.hcl-sec { border-top: 1px solid var(--rule); padding: 2px 0; }
.hcl-sec summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; list-style: none; }
.hcl-sec summary::-webkit-details-marker { display: none; }
.hcl-sec summary span { font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.hcl-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; min-height: 44px; font-size: 14px; line-height: 1.4; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hcl-item.done { color: var(--ink-faint); text-decoration: line-through; }
.hcl-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--rule); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #07301f; }
.hcl-item.done .hcl-box { background: var(--mint); border-color: var(--mint); }
