:root {
  --bg: #050505;
  --bg-2: #0b0b0d;
  --card: rgba(18, 18, 20, 0.94);
  --card-solid: #141416;
  --panel: #1b1b1f;
  --panel-soft: rgba(255,255,255,0.045);
  --text: #ffffff;
  --muted: #b8b8bd;
  --muted-2: #83838b;
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(225,6,0,0.46);
  --primary: #e10600;
  --primary-2: #ff1b14;
  --primary-dark: #8b0000;
  --primary-text: #ffffff;
  --danger: #e10600;
  --success: #22c55e;
  --warning: #f59e0b;
  --shadow: 0 24px 80px rgba(0,0,0,0.55);
  --red-glow: 0 0 34px rgba(225, 6, 0, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(225, 6, 0, 0.30), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(139, 0, 0, 0.34), transparent 28rem),
    linear-gradient(135deg, #020202 0%, #0a0a0c 42%, #050505 100%);
  color: var(--text);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('/public/brand/background.jpg');
  background-position: center top;
  background-size: min(1220px, 140vw) auto;
  background-repeat: no-repeat;
  opacity: 0.17;
  filter: saturate(1.1) contrast(1.1);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.86) 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 9px);
  pointer-events: none;
}

a { color: #ffffff; text-decoration-color: rgba(225, 6, 0, 0.65); text-underline-offset: .18em; }
a:hover { color: #ff4a45; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  background: rgba(5,5,5,0.86);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(225,6,0,0.28);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 950;
  text-decoration: none;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 0 0 2px rgba(225,6,0,0.20), var(--red-glow);
}
.brand span { text-shadow: 0 0 20px rgba(225,6,0,0.42); }
nav {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 850;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .045em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .48rem .68rem;
}
nav a:hover {
  color: #fff;
  border-color: rgba(225,6,0,.42);
  background: rgba(225,6,0,.12);
}
.container {
  width: min(1180px, calc(100% - 1.5rem));
  margin: clamp(1rem, 3vw, 2rem) auto 3rem;
}
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 3vw, 2.5rem);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), #fff, var(--primary), transparent);
  opacity: .78;
}
.narrow { max-width: 560px; margin-inline: auto; }
.hero {
  min-height: min(680px, calc(100svh - 9rem));
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .8rem;
  background:
    linear-gradient(100deg, rgba(5,5,5,0.86) 0%, rgba(5,5,5,0.72) 46%, rgba(139,0,0,0.16) 100%),
    url('/public/brand/background.jpg') center/cover no-repeat;
}
.hero-logo {
  width: min(430px, 92%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55), var(--red-glow);
  margin: 0 0 .75rem;
}
.eyebrow {
  margin: 0 0 .65rem;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .18em;
  color: #ff3b35;
  font-weight: 950;
}
h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: .98;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  text-wrap: balance;
}
h2 {
  margin: 1.35rem 0 .75rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: -.03em;
}
p { line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.form { display: grid; gap: 1rem; }
label { display: grid; gap: .45rem; font-weight: 850; color: #f4f4f5; }
input, select, textarea {
  width: 100%;
  padding: .95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 15px;
  font: inherit;
  background: rgba(0,0,0,0.38);
  color: var(--text);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(225,6,0,0.9);
  box-shadow: 0 0 0 4px rgba(225,6,0,0.16);
}
input::placeholder, textarea::placeholder { color: #777982; }
textarea { min-height: 9rem; resize: vertical; line-height: 1.45; }
select option { background: #151518; color: #fff; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.actions.compact { margin: 0; }
.button, button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--primary-text);
  min-height: 44px;
  padding: .88rem 1.18rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font: inherit;
  letter-spacing: .01em;
  box-shadow: 0 12px 28px rgba(225,6,0,0.24);
  transition: transform .16s ease, filter .16s ease, border-color .16s ease;
}
.button:hover, button:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.button.secondary, button.secondary {
  background: #f2f2f3;
  color: #08080a;
  box-shadow: 0 10px 26px rgba(255,255,255,0.08);
}
.button.ghost, button.ghost {
  background: rgba(255,255,255,0.055);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.button.danger, button.danger {
  background: linear-gradient(135deg, #ff1b14, #720000);
  color: #fff;
}
.button:disabled, button:disabled,
button[disabled], .button[disabled] {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(.25);
}
.qr-card { text-align: center; max-width: 720px; margin-inline: auto; }
.qr {
  width: min(360px, 100%);
  height: auto;
  margin: 1rem auto;
  border-radius: 22px;
  border: 10px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(225,6,0,.42), 0 22px 54px rgba(0,0,0,.45);
}
.account-overview-card {
  max-width: 980px;
}
.account-identity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: .35rem auto 1rem;
  max-width: 760px;
}
.account-identity-item {
  display: grid;
  gap: .3rem;
  min-width: 0;
  padding: .85rem .75rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  text-align: left;
}
.account-identity-item span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.account-identity-item strong {
  overflow-wrap: anywhere;
}
.account-identity-item.is-ok {
  border-color: rgba(59, 214, 113, .42);
  background: rgba(20, 112, 57, .14);
}
.account-identity-item.is-critical {
  border-color: rgba(255, 52, 45, .55);
  background: rgba(154, 12, 12, .17);
}
@media (max-width: 700px) {
  .account-identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.scanner-grid {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 1.4rem;
  align-items: start;
}
.reader {
  width: 100%;
  min-height: 320px;
  border: 1px dashed rgba(225,6,0,0.55);
  border-radius: 22px;
  overflow: hidden;
  background: #0f0f12;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.2rem;
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.manual-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.drink-buttons { display: grid; gap: .8rem; margin-top: 1rem; }
.drink-buttons.disabled { opacity: .55; pointer-events: none; }
.drink-button {
  width: 100%;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
}
.drink-button span { font-weight: 950; }
.drink-button small { opacity: .84; font-weight: 800; color: rgba(255,255,255,0.82); }
.drink-button.forbidden,
.drink-button:disabled {
  opacity: .36;
  cursor: not-allowed;
  background: #3d3d42;
  box-shadow: none;
}
.status {
  min-height: 2rem;
  margin-top: 1rem;
  font-weight: 850;
}
.status.ok { color: var(--success); }
.status.err { color: #ff5a55; }
.status.warn { color: #f59e0b; }
.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin: 1.2rem 0;
}
.totals div,
.visitor-summary div,
.role-help div,
.nested-card,
.rules-box,
.rule-note,
.initial-password-box,
.receipt-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
}
.totals div,
.visitor-summary div {
  padding: 1rem;
}
.totals span,
.visitor-summary span {
  display: block;
  color: var(--muted);
  font-weight: 850;
  font-size: .9rem;
}
.totals strong,
.visitor-summary strong {
  display: block;
  font-size: 2rem;
  margin-top: .18rem;
  color: #fff;
  text-shadow: 0 0 18px rgba(225,6,0,0.24);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th, td {
  padding: .9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
th {
  color: #ff3b35;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .085em;
  background: rgba(225,6,0,0.06);
}
code {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: .15rem .35rem;
  border-radius: .35rem;
  border: 1px solid var(--border);
}
.full-width { width: 100%; margin-top: .8rem; }
.hidden { display: none !important; }

.account-history-actions {
  display: flex;
  justify-content: flex-end;
  margin: -.45rem 0 1.25rem;
}
.small-button {
  padding: .55rem .75rem;
  min-height: 36px;
  font-size: .88rem;
  white-space: nowrap;
}
.money-cell { text-align: right; white-space: nowrap; }
.inline-edit-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) 80px auto auto;
  gap: .55rem;
  align-items: center;
}
.inline-edit-form input,
.inline-edit-form select {
  padding: .65rem .75rem;
  border-radius: 12px;
}
.entry-sum {
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
  color: #fff;
}
td form { margin: 0; }
.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0;
}
.price-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid rgba(225,6,0,0.42);
  background: rgba(225,6,0,0.11);
  border-radius: 999px;
  padding: .55rem .85rem;
  color: var(--muted);
  font-weight: 850;
}
.price-pill strong { color: #fff; }
.price-pill small { color: var(--muted); font-weight: 800; }
.admin-prices { margin-top: -.3rem; }
.rules-box,
.rule-note {
  padding: .9rem 1rem;
}
.rules-box p { margin: .35rem 0 0; color: var(--muted); }
.rule-note {
  margin: .8rem 0 0;
  color: #fff;
  font-weight: 900;
  border-color: rgba(225,6,0,0.35);
}
.visitor-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: 1.2rem 0 1.6rem;
  text-align: left;
}
.visitor-summary strong { font-size: 1.35rem; }
.visitor-summary small,
.dynamic-totals small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-top: .2rem;
}
.visitor-table { margin-bottom: 1.2rem; text-align: left; }
.action-stack {
  display: grid;
  gap: .45rem;
  min-width: 150px;
}
.action-stack .button { width: 100%; }
.bulk-actions {
  margin: 1rem 0;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.badge-warning,
.badge-open,
.badge-closed,
.status-mini {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .22rem .58rem;
  font-size: .76rem;
  font-weight: 950;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-warning { background: rgba(245,158,11,.15); color: #fbbf24; border-color: rgba(245,158,11,.42); }
.badge-open { background: rgba(34,197,94,.14); color: #4ade80; border-color: rgba(34,197,94,.42); }
.badge-closed { background: rgba(255,255,255,.08); color: #d1d5db; border-color: rgba(255,255,255,.12); }
.initial-password-box {
  border-style: dashed;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}
.initial-password-box span {
  display: block;
  color: var(--muted);
  font-weight: 850;
  margin-bottom: .4rem;
}
.initial-password-box strong {
  display: block;
  font-size: 2rem;
  letter-spacing: .06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.receipts-list {
  display: grid;
  gap: .75rem;
  text-align: left;
  margin-top: .75rem;
}
.receipt-card { overflow: hidden; }
.receipt-card summary {
  cursor: pointer;
  padding: .9rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .75rem;
  align-items: center;
}
.receipt-card summary span { color: var(--muted); font-weight: 850; }
.receipt-card .table-wrap { margin: 0 1rem 1rem; }
.dynamic-summary,
.dynamic-totals { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.role-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
  margin: 1rem 0 1.25rem;
}
.role-help div,
.nested-card { padding: 1rem; }
.role-help strong,
.role-help span { display: block; }
.role-help span { color: var(--muted); margin-top: .25rem; line-height: 1.45; }
.role-form {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.role-form select { min-width: 150px; }
.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}
.nested-card {
  box-shadow: none;
  margin-top: 1.4rem;
}
.drinks-edit-form {
  grid-template-columns: minmax(180px, 1.4fr) minmax(110px, .7fr) minmax(120px, .65fr) auto;
}

@media (min-width: 801px) {
  .totals { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
  .inline-edit-form,
  .drinks-edit-form { grid-template-columns: 1fr; }
  .money-cell { text-align: left; }
  .role-form { display: grid; }
}
@media (max-width: 800px) {
  .scanner-grid, .totals { grid-template-columns: 1fr; }
  .admin-head { display: grid; }
  .topbar { align-items: flex-start; display: grid; }
  nav { justify-content: flex-start; }
  .brand img { width: 46px; height: 46px; }
  .visitor-summary { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 1rem, 1180px); }
  .card { border-radius: 18px; }
  nav a { font-size: .78rem; padding: .42rem .52rem; }
  .brand span { font-size: .88rem; }
  .visitor-summary { grid-template-columns: 1fr; }
  .manual-row { grid-template-columns: 1fr; }
  .receipt-card summary { grid-template-columns: 1fr; }
}
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .topbar {
    padding-top: max(.85rem, env(safe-area-inset-top));
  }
}

/* Version 100: gemeinsamer QR-Slider und kompakte Begleitpersonenverwaltung */
.account-qr-slider {
  width: min(100%, 540px);
  margin: .75rem auto 1rem;
}
.account-qr-slider-frame {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: .65rem;
}
.account-qr-slider-track {
  min-width: 0;
}
.account-qr-slide {
  display: none;
  justify-items: center;
  min-width: 0;
  text-align: center;
}
.account-qr-slide.is-active {
  display: grid;
}
.account-qr-slide-label {
  display: grid;
  gap: .12rem;
  margin-bottom: .2rem;
}
.account-qr-slide-label span {
  color: #ff4a45;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.account-qr-slide-label strong {
  color: #fff;
  font-size: 1.02rem;
}
.account-qr-slider-image {
  width: min(360px, 100%);
  margin: .55rem auto .35rem;
}
.account-qr-slide-meta {
  margin: .15rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}
.account-qr-slide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem .55rem;
  margin-top: .4rem;
  font-size: .8rem;
  font-weight: 850;
}
.account-qr-slide-actions a,
.account-qr-slider-footer > a {
  color: #fff;
  text-decoration-color: rgba(255,255,255,.35);
  text-underline-offset: .2em;
}
.account-qr-slider-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  margin: .65rem 40px 0;
  color: var(--muted);
  font-size: .76rem;
}
.account-qr-slider-footer .companion-slider-dots {
  justify-content: center;
}

.companion-management-details .form {
  gap: .55rem;
}
.companion-editor {
  padding: .65rem;
  border-radius: 12px;
}
.companion-editor-head {
  gap: .65rem;
}
.companion-editor-head p {
  margin: .12rem 0 0;
}
.companion-capacity {
  flex: 0 0 auto;
  padding: .28rem .55rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
}
.companion-input-list {
  gap: .45rem;
  margin: .55rem 0;
}
.companion-input-card.companion-compact-row {
  display: grid;
  grid-template-columns: 28px repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: .5rem;
  padding: .5rem;
  border-radius: 10px;
}
.companion-slot-number {
  display: grid;
  place-items: center;
  align-self: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 950;
}
.companion-compact-row label {
  min-width: 0;
  font-size: .74rem;
}
.companion-compact-row input {
  width: 100%;
  min-height: 38px;
  margin-top: .22rem;
  padding: .45rem .6rem;
  font-size: .9rem;
}
.companion-remove-button {
  min-height: 38px;
  padding: .42rem .65rem;
  border: 1px solid rgba(255,79,79,.28);
  border-radius: 9px;
  background: transparent;
  color: #ff9a98;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}
.companion-remove-button:hover {
  border-color: rgba(255,79,79,.62);
  background: rgba(225,6,0,.08);
  color: #fff;
}
.companion-add-button {
  width: auto;
  min-height: 38px;
  padding: .42rem .7rem;
  font-size: .84rem;
}

@media (max-width: 620px) {
  .account-qr-slider-frame {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: .3rem;
  }
  .account-qr-slider-footer {
    grid-template-columns: auto minmax(0, 1fr);
    margin-inline: 30px;
  }
  .account-qr-slider-footer > a {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .companion-editor-head {
    align-items: center;
    flex-direction: row;
  }
  .companion-input-card.companion-compact-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
  }
  .companion-compact-row .companion-slot-number {
    grid-row: 1 / 3;
  }
  .companion-compact-row label {
    grid-column: 2;
  }
  .companion-remove-button {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

/* Compact companion registration */
.companion-management-details {
  border-radius: 14px;
  margin-top: .65rem;
}
details.companion-management-details > summary {
  grid-template-columns: 1fr;
  gap: .3rem;
  padding: .7rem .8rem;
}
details.companion-management-details > summary::after { font-size: .72rem; }
.companion-management-details .form { gap: .6rem; padding: .7rem; }
.companion-editor {
  border-radius: 12px;
  padding: .65rem;
}
.companion-editor-head { gap: .5rem; }
.companion-editor-head p { font-size: .78rem; line-height: 1.35; }
.companion-input-list { gap: .55rem; margin: .55rem 0; }
.companion-input-card { border-radius: 10px; padding: .55rem; }
.companion-input-head strong { font-size: .9rem; }
.companion-input-head .button { min-height: 34px; padding: .35rem .6rem; }
.companion-name-grid { gap: .55rem; margin-top: .4rem; }
.companion-name-grid label { font-size: .78rem; }
.companion-name-grid input {
  min-height: 40px;
  margin-top: .25rem;
  padding: .5rem .65rem;
  font-size: .92rem;
}
.companion-add-button { min-height: 40px; padding: .48rem .7rem; font-size: .9rem; }
.companion-add-button > span { width: 1.3rem; height: 1.3rem; font-size: 1rem; }
.companion-management-details .form > .button { min-height: 42px; padding: .55rem .8rem; }
.companion-account-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-top: .6rem;
  padding: .55rem .7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: .82rem;
}

/* Companion QR slider on the main account */
.companion-slider-section {
  width: min(100%, 720px);
  margin: 1rem auto;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  text-align: left;
}
.companion-slider-heading,
.companion-slider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.companion-slider-heading h2 { margin: .1rem 0; font-size: 1.12rem; }
.companion-slider-heading p { margin: .1rem 0; }
.companion-slider-frame {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: .55rem;
  margin-top: .75rem;
}
.companion-slider-track { min-width: 0; }
.companion-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 1rem;
  min-height: 178px;
  padding: .75rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(0, 0, 0, .16);
}
.companion-slide.is-active { display: grid; }
.companion-slide h3 { margin: .15rem 0 .3rem; font-size: 1.25rem; }
.companion-slide-qr {
  width: 150px;
  height: 150px;
  margin: 0;
  justify-self: end;
}
.companion-slide-actions { margin-top: .65rem; }
.companion-slider-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
  font-size: 1.7rem;
  cursor: pointer;
}
.companion-slider-arrow:hover { border-color: rgba(255, 74, 69, .75); color: #ff615d; }
.companion-slider-footer { margin-top: .55rem; color: var(--muted); font-size: .78rem; }
.companion-slider-dots { display: flex; gap: .35rem; }
.companion-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
  cursor: pointer;
}
.companion-slider-dot.is-active { width: 22px; border-radius: 999px; background: #ff4a45; }

@media (max-width: 620px) {
  .companion-account-hint,
  .companion-slider-heading { align-items: flex-start; flex-direction: column; }
  .companion-slider-heading .button { width: 100%; }
  .companion-slider-frame { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: .35rem; }
  .companion-slider-arrow { width: 30px; height: 46px; }
  .companion-slide { grid-template-columns: 1fr; text-align: center; }
  .companion-slide-qr { justify-self: center; order: -1; }
  .companion-slide-actions { justify-content: center; }
}

.companion-editor,
.companion-qr-section {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, .025);
}
.companion-editor-head,
.companion-input-head,
.companion-qr-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.companion-editor-head p,
.companion-qr-heading h2 { margin: .2rem 0 0; }
.companion-input-list {
  display: grid;
  gap: .8rem;
  margin: .9rem 0;
}
.companion-input-card {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: .8rem;
  background: rgba(0, 0, 0, .14);
}
.companion-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .65rem;
}
.companion-add-button { width: 100%; }
.companion-add-button > span {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-right: .35rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
}
.companion-qr-section { margin: 1rem 0; }
.companion-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.companion-qr-card {
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(0, 0, 0, .16);
}
.companion-qr-card h3 { margin: .2rem 0 .6rem; }
.companion-qr-card .companion-qr {
  width: min(100%, 230px);
  margin: .4rem auto;
}
.companion-detail-card .account-identity-grid { margin: 1rem 0; }

@media (max-width: 600px) {
  .companion-editor-head,
  .companion-qr-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .companion-name-grid { grid-template-columns: 1fr; }
}

.age-verification {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(225,6,0,0.38);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(225,6,0,0.18), rgba(255,255,255,0.04));
}
.age-verification strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .25rem;
}
.age-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
  margin-top: .8rem;
}
.verify-age-button {
  justify-content: center;
  min-height: 50px;
}
.category-hint {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
  align-self: center;
}

@media (max-width: 620px) {
  .age-actions { grid-template-columns: 1fr; }
}

.team-login-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 42px;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(225,6,0,0.50);
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.42), 0 0 18px rgba(225,6,0,0.28);
}
.team-login-float:hover {
  background: rgba(225,6,0,0.18);
  color: #fff;
}

.drink-category {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}
.drink-category h3 {
  margin: .25rem 0 0;
  color: #ff3b35;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.orders-panel {
  margin-top: 1.2rem;
  border: 1px solid rgba(225,6,0,0.28);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(0,0,0,0.22);
}
.orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .7rem;
}
.orders-head h2 { margin: 0; }
.orders-list {
  display: grid;
  gap: .7rem;
}
.order-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: .9rem;
  background: rgba(255,255,255,0.05);
  display: grid;
  gap: .55rem;
}
.order-card.is-new {
  border-color: rgba(225,6,0,0.72);
  box-shadow: 0 0 0 1px rgba(225,6,0,0.18), 0 0 28px rgba(225,6,0,0.20);
}
.order-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.order-card strong { color: #fff; }
.order-card span,
.order-card small { color: var(--muted); font-weight: 800; }
.order-card p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 950;
}
.order-form { margin: 1.2rem 0 1.6rem; }

@media (max-width: 620px) {
  .order-card div { display: grid; }
  .team-login-float { min-width: 54px; font-size: .72rem; }
}

.current-order-panel {
  margin-top: 1.2rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(225,6,0,0.14), rgba(255,255,255,0.04));
}
.current-order-list {
  display: grid;
  gap: .55rem;
  margin-bottom: .9rem;
}
.current-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: .75rem .85rem;
  background: rgba(0,0,0,0.28);
}
.current-order-item span {
  display: grid;
  gap: .2rem;
}
.current-order-item strong { color: #fff; }
.current-order-item small {
  color: var(--muted);
  font-weight: 750;
}
.manual-row input:disabled,
.manual-row button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.scanner-card {
  position: relative;
  transition: opacity .18s ease, filter .18s ease;
}
.scanner-card.scanner-locked .reader {
  opacity: .34;
  filter: grayscale(1) brightness(.55);
  pointer-events: none;
}
.scanner-lock-hint {
  margin: .75rem 0 0;
  padding: .75rem .9rem;
  border: 1px solid rgba(245,158,11,.45);
  border-radius: 14px;
  background: rgba(245,158,11,.12);
  color: #fbbf24;
  font-weight: 900;
}
.current-order-actions {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mini-button {
  min-height: 32px;
  padding: .35rem .65rem;
  font-size: .8rem;
}
.transaction-list {
  display: grid;
  gap: .9rem;
  margin-bottom: 1.4rem;
}
.transaction-details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  overflow: hidden;
}
.transaction-details summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(190px, 1.2fr) minmax(200px, 1.4fr) minmax(120px, .8fr) minmax(150px, 1fr);
  gap: .8rem;
  align-items: center;
  padding: 1rem;
  list-style: none;
}
.transaction-details summary::-webkit-details-marker { display: none; }
.transaction-details summary::after {
  content: "Details öffnen";
  grid-column: 1 / -1;
  color: #ff4a45;
  font-size: .85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.transaction-details[open] summary::after { content: "Details schließen"; }
.transaction-details summary span { display: grid; gap: .18rem; }
.transaction-details summary small { color: var(--muted); font-weight: 800; }
.transaction-details summary strong { color: #fff; }
.nested-table {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

@media (max-width: 820px) {
  .transaction-details summary { grid-template-columns: 1fr; }
  .current-order-item { align-items: flex-start; }
  .current-order-actions { justify-content: flex-start; }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.compact-table table th,
.compact-table table td {
  padding: .6rem .7rem;
}
.checkbox-inline,
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}
.checkbox-inline input,
.checkbox-row input {
  width: auto;
  accent-color: var(--red);
}
.drinks-edit-form {
  grid-template-columns: minmax(140px, 1.5fr) minmax(90px, .8fr) minmax(150px, 1fr) minmax(140px, 1fr) minmax(110px, .8fr) minmax(90px, .55fr) minmax(90px, .55fr) minmax(90px, .55fr) auto;
}
code {
  color: #fca5a5;
  word-break: break-word;
  white-space: pre-wrap;
}
@media (max-width: 980px) {
  .drinks-edit-form { grid-template-columns: 1fr; }
}

.event-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}
.event-card,
.event-admin-card {
  border-top: 3px solid var(--red);
}
.event-title-with-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.event-title-with-banner > div { min-width: 0; }
.event-title-with-banner .eyebrow { margin-bottom: .35rem; }
.event-title-with-banner h2 { margin: 0 0 .35rem; }
.event-title-with-banner p:last-child { margin: 0; }
.event-banner-image {
  flex: 0 0 auto;
  width: clamp(120px, 15vw, 190px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  object-fit: cover;
  background: rgba(0,0,0,.35);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.event-admin-head > .event-title-with-banner { flex: 1 1 auto; }
.event-banner-upload input[type="file"] { padding: .55rem; }
.event-banner-upload input[type="file"]::file-selector-button {
  margin-right: .75rem;
  padding: .65rem .85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 620px) {
  .event-title-with-banner { align-items: flex-start; gap: .75rem; }
  .event-banner-image { width: 108px; border-radius: 11px; }
}
@media (max-width: 390px) {
  .event-banner-image { width: 88px; }
}
.event-signup-list {
  display: grid;
  gap: .75rem;
  padding: .8rem 1rem 1rem;
}
.compact-totals {
  margin: .8rem 0;
}

/* Version 13: Stabilität, Check-in und Bedienoptimierungen */
.system-panel {
  border-top: 3px solid var(--red);
  margin: 1rem 0;
}
.inline-status {
  display: inline-flex;
  width: fit-content;
  margin: 0;
}
.privacy-row {
  align-items: flex-start;
  white-space: normal;
  line-height: 1.45;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
}
.companion-list {
  display: grid;
  gap: .75rem;
  margin-top: .8rem;
}
.companion-card {
  display: grid;
  gap: .7rem;
  padding: .85rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(0,0,0,0.24);
}
.companion-card strong { color: #fff; }
.companion-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-top: .2rem;
}
.quantity-actions strong {
  min-width: 42px;
  text-align: center;
  font-size: 1.1rem;
}
.quantity-button {
  min-width: 38px;
  font-size: 1.1rem;
  line-height: 1;
}
@media (max-width: 680px) {
  .system-panel .admin-head { grid-template-columns: 1fr; }
  .quantity-actions { width: 100%; justify-content: space-between; }
}

/* Version 14: öffentliche Getränkeseite und Bestell-QR */
.menu-form {
  margin-top: 1.2rem;
}
.menu-simple-notices {
  max-width: 760px;
  margin: .8rem 0 1rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}
.menu-simple-notices p {
  margin: .25rem 0;
}
.menu-selection-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.menu-selection-total span {
  color: var(--muted);
  font-weight: 850;
}
.menu-selection-total strong {
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .visitor-table .account-history-table tr {
    display: grid;
    width: 100%;
    gap: 0;
    padding: .5rem;
  }
  .visitor-table .account-history-table td {
    width: auto;
    min-width: 0;
    padding: .48rem .55rem;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }
  .visitor-table .account-history-table td::before {
    margin-bottom: .12rem;
    font-size: .62rem;
    letter-spacing: .065em;
  }
  .visitor-table .account-history-table td[colspan] {
    grid-column: 1 / -1;
  }
  .visitor-table .account-bar-history tr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .visitor-table .account-bar-history td:nth-child(1),
  .visitor-table .account-bar-history td:nth-child(2) {
    grid-column: 1 / -1;
  }
  .visitor-table .account-wallet-history tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .visitor-table .account-wallet-history td:nth-child(1),
  .visitor-table .account-wallet-history td:nth-child(2) {
    grid-column: 1 / -1;
  }
}
.menu-category {
  display: grid;
  gap: .8rem;
  margin: 1.1rem 0;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}
.menu-category h2 {
  margin: 0 0 .35rem;
}
.menu-drink-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .9rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(0,0,0,0.30);
}
.menu-drink-row strong,
.menu-drink-row span,
.menu-drink-row small {
  display: block;
}
.menu-drink-row span,
.menu-drink-row small {
  color: var(--muted);
  font-weight: 800;
  margin-top: .15rem;
}
.menu-drink-row.is-disabled {
  opacity: .52;
}
.quantity-picker {
  display: inline-grid;
  grid-template-columns: 42px 68px 42px;
  gap: .35rem;
  align-items: center;
}
.quantity-picker input {
  min-height: 42px;
  padding: .45rem;
  text-align: center;
  font-weight: 950;
}
.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (max-width: 620px) {
  .menu-drink-row { grid-template-columns: 1fr; }
  .quantity-picker { width: 100%; grid-template-columns: 48px 1fr 48px; }
}

/* Version 15: klarere Manager-Übersicht */
.manager-dashboard .event-live-card {
  border: 1px solid rgba(225,6,0,0.38);
  border-radius: 22px;
  padding: 1.2rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, rgba(225,6,0,0.24), rgba(255,255,255,0.045));
}
.manager-dashboard .event-live-card.danger {
  border-color: rgba(255,90,85,0.5);
  background: linear-gradient(135deg, rgba(225,6,0,0.18), rgba(0,0,0,0.25));
}
.manager-dashboard .event-live-card h2 {
  margin: .2rem 0;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
}
.live-kpis strong {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
}
.action-required {
  border-top: 3px solid var(--red);
}
.warning-list {
  display: grid;
  gap: .7rem;
}
.warning-row {
  display: flex;
  justify-content: space-between;
  gap: .9rem;
  align-items: center;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  color: var(--text);
  text-decoration: none;
}
.warning-row:hover {
  border-color: rgba(225,6,0,0.55);
  transform: translateY(-1px);
}
.warning-row strong {
  color: #ff4a45;
  white-space: nowrap;
}
.warning-row.danger {
  border-color: rgba(255,90,85,0.42);
  background: rgba(225,6,0,0.12);
}
.warning-row.warning {
  border-color: rgba(245,158,11,0.38);
}
.warning-row.info {
  border-color: rgba(255,255,255,0.18);
}
.manager-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.2rem 0;
  padding: .65rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(5,5,5,0.9);
  backdrop-filter: blur(8px);
}
.manager-tabs a {
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.manager-tabs a:hover {
  background: rgba(225,6,0,0.28);
}
.dashboard-section {
  margin-top: 1.4rem;
  padding-top: .2rem;
}
.dashboard-section > h2 {
  margin-bottom: .75rem;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .9rem;
}
.quick-card {
  display: grid;
  gap: .35rem;
  min-height: 110px;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
  color: var(--text);
  text-decoration: none;
}
.quick-card:hover {
  border-color: rgba(225,6,0,0.55);
  transform: translateY(-1px);
}
.quick-card strong {
  color: #fff;
  font-size: 1.05rem;
}
.quick-card span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}
.quick-card.highlight {
  border-color: rgba(225,6,0,0.5);
  background: rgba(225,6,0,0.13);
}
@media (max-width: 760px) {
  .warning-row {
    display: grid;
  }
  .warning-row strong {
    white-space: normal;
  }
  .manager-tabs {
    position: static;
  }
}

/* Version 16: Mein-Konto Sicherheit */
.account-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.account-security-overview {
  grid-column: 1 / -1;
  text-align: left;
}
.account-security-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.account-security-heading h3,
.account-security-heading .eyebrow {
  margin-bottom: .25rem;
}
.account-security-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin: 1rem 0 0;
}
.account-security-details > div {
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
}
.account-security-details dt {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.account-security-details dd {
  margin: .35rem 0 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.danger-zone {
  border-color: rgba(225, 6, 0, 0.55);
}
.warning-list {
  margin: 1rem 0;
  padding-left: 1.2rem;
}
.warning-list li {
  margin: 0.35rem 0;
}

/* Version 17: Startcheck, Filter und Bestell-QR-Sicherheit */
.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: .9rem;
  align-items: end;
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}
.filter-form .actions {
  margin: 0;
}
.start-check {
  margin: 1rem 0;
}
.check-list {
  display: grid;
  gap: .55rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.check-item {
  display: grid;
  gap: .15rem;
  padding: .75rem .85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.045);
}
.check-item strong {
  color: #fff;
}
.check-item span {
  color: var(--muted);
  font-size: .92rem;
}
.check-item.ok {
  border-color: rgba(34, 197, 94, .35);
  background: rgba(34, 197, 94, .08);
}
.check-item.warning {
  border-color: rgba(245, 158, 11, .44);
  background: rgba(245, 158, 11, .09);
}
.check-item.critical {
  border-color: rgba(225, 6, 0, .55);
  background: rgba(225, 6, 0, .12);
}
.start-check.has-errors {
  border-color: rgba(225, 6, 0, .42);
}
.start-check.is-ready {
  border-color: rgba(34, 197, 94, .28);
}

/* Version 19: Rechtliches, Datenschutz und Löschung */
.legal-footer {
  max-width: 1180px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  display: flex;
  gap: .6rem;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: .9rem;
}
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover { color: #fff; }
.legal-page { line-height: 1.65; }
.legal-page h2 { margin-top: 1.25rem; }
.legal-table th {
  width: 260px;
  color: #fff;
  text-align: left;
}
.legal-table td { color: var(--muted); }
.inline-form {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}
.inline-form label { min-width: 220px; }

/* Version 21: Geführter Check-in und Security Checkout */
.mode-switch {
  display: inline-flex;
  gap: .45rem;
  padding: .35rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(0,0,0,.25);
}
.mode-switch .button {
  min-height: 38px;
  box-shadow: none;
}
.mode-switch .button.active {
  background: linear-gradient(135deg, #ff1b14, #720000);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.security-cockpit .scanner-grid.security-grid {
  margin-top: 1rem;
}
.security-stats div strong {
  font-size: 1.55rem;
}
.security-warning-list {
  margin: 1rem 0 1.2rem;
}
.security-result-panel h2 {
  margin-top: .85rem;
}
.security-status-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: center;
  padding: .95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
}
.security-status-card strong,
.security-status-card small {
  display: block;
}
.security-status-card small {
  color: var(--muted);
  font-weight: 800;
  margin-top: .18rem;
}
.security-status-card .status-icon {
  font-size: 1.35rem;
  line-height: 1;
}
.security-status-card.success {
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.12);
}
.security-status-card.warning {
  border-color: rgba(245,158,11,.48);
  background: rgba(245,158,11,.12);
}
.security-status-card.danger {
  border-color: rgba(255,90,85,.55);
  background: rgba(225,6,0,.14);
}
.security-status-card.neutral {
  border-color: rgba(255,255,255,.12);
}
.security-action-block {
  margin-top: 1rem;
  padding: .95rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(0,0,0,.22);
}
.security-action-block h3 {
  margin: 0 0 .35rem;
}
.security-auto-checkin {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: .8rem 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(34,197,94,.52);
  border-radius: 16px;
  background: rgba(34,197,94,.12);
}
.security-auto-checkin strong,
.security-auto-checkin p { display: block; margin: 0; }
.security-auto-checkin p { margin-top: .25rem; color: #d1fae5; }
.security-auto-countdown {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #052e16;
  background: #4ade80;
  font-size: 1.8rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.quick-age-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.companion-bulk-actions {
  margin: .65rem 0;
}
.companion-check-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.companion-select-row {
  white-space: normal;
}
.companion-select-row span {
  display: grid;
  gap: .12rem;
}
.companion-select-row small {
  color: var(--muted);
  font-weight: 800;
}
@media (max-width: 820px) {
  .mode-switch { width: 100%; justify-content: stretch; }
  .mode-switch .button { flex: 1; }
  .companion-check-card { grid-template-columns: 1fr; }
}

.mode-toggle .button.active,
.age-flow-button.active {
  outline: 3px solid rgba(255,255,255,.35);
  box-shadow: 0 0 0 4px rgba(225,6,0,.2);
}
.security-action-block .warning-list.compact {
  margin: .65rem 0;
}

/* Version 22: sichtbare Altersauswahl im Security-Flow */
.age-flow-button.active,
.security-action-block .age-flow-button.active {
  background: linear-gradient(135deg, var(--red), #ff2a1f) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.55) !important;
  transform: translateY(-1px);
  outline: 3px solid rgba(255,255,255,.35);
  box-shadow: 0 0 0 4px rgba(225,6,0,.28), 0 14px 28px rgba(225,6,0,.25) !important;
}

/* Version 24: kompakte Navigation */
.main-nav {
  align-items: center;
}
.nav-dropdown {
  position: relative;
  display: inline-flex;
}
.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 900;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .045em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .48rem .82rem;
  user-select: none;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after {
  content: "▾";
  font-size: .72em;
  margin-left: .38rem;
  color: #ff4a45;
}
.nav-dropdown[open] > summary,
.nav-dropdown > summary:hover {
  color: #fff;
  border-color: rgba(225,6,0,.42);
  background: rgba(225,6,0,.12);
}
.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .55rem);
  z-index: 60;
  min-width: 240px;
  padding: .55rem;
  border: 1px solid rgba(225,6,0,.34);
  border-radius: 18px;
  background: rgba(10,10,12,.96);
  box-shadow: 0 22px 70px rgba(0,0,0,.65), var(--red-glow);
  backdrop-filter: blur(18px) saturate(1.3);
  display: grid;
  gap: .2rem;
}
.nav-dropdown-menu a {
  display: block;
  white-space: nowrap;
  border-radius: 12px;
  padding: .7rem .8rem;
  color: #fff;
  background: transparent;
  border-color: transparent;
}
.nav-dropdown-menu a:hover {
  background: rgba(225,6,0,.18);
  border-color: rgba(225,6,0,.40);
}
.logout-link,
nav a.logout-link {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: rgba(255,255,255,.18) !important;
  box-shadow: 0 0 20px rgba(225,6,0,.28);
}
.logout-link:hover,
nav a.logout-link:hover {
  background: linear-gradient(135deg, #ff1b14, #a00000);
  color: #fff !important;
}
.mobile-bottom-nav {
  display: none;
}
.manager-hub-grid .quick-card strong { font-size: 1.05rem; }

@media (max-width: 800px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: .72rem;
  }
  .brand span { display: none; }
  .main-nav { display: none; }
  .mobile-bottom-nav {
    position: fixed;
    left: max(.55rem, env(safe-area-inset-left));
    right: max(.55rem, env(safe-area-inset-right));
    bottom: max(.55rem, env(safe-area-inset-bottom));
    z-index: 80;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .3rem;
    padding: .42rem;
    border: 1px solid rgba(225,6,0,.34);
    border-radius: 24px;
    background: rgba(8,8,10,.94);
    backdrop-filter: blur(18px) saturate(1.25);
    box-shadow: 0 18px 60px rgba(0,0,0,.62), 0 0 25px rgba(225,6,0,.23);
  }
  .mobile-bottom-nav a {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: .68rem;
    padding: .58rem .38rem;
    border-radius: 18px;
    letter-spacing: .035em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-bottom-nav a.logout-link {
    flex: 1.18;
    font-size: .70rem;
  }
  .team-login-float {
    bottom: calc(5.75rem + env(safe-area-inset-bottom));
  }
  .legal-footer { margin-bottom: 1rem; }
}

@media (max-width: 420px) {
  .mobile-bottom-nav a { font-size: .62rem; padding-inline: .22rem; }
}


/* Version 25: Footer-Admin-Login und Datenschutz-Checkbox-Korrektur */
.legal-footer .admin-login-footer {
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .055em;
  padding: .28rem .62rem;
  border: 1px solid rgba(225,6,0,.45);
  border-radius: 999px;
  background: rgba(225,6,0,.12);
}
.legal-footer .admin-login-footer:hover {
  background: rgba(225,6,0,.24);
  color: #fff;
}
.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  white-space: normal;
}
.privacy-row input {
  flex: 0 0 auto;
  margin-top: .28rem;
}
.privacy-row span {
  display: block;
  min-width: 0;
}

/* Version 26: Eventbetrieb-Finalisierung */
.legal-footer .admin-login-footer {
  color: var(--muted) !important;
  font-weight: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.legal-footer .admin-login-footer:hover { color: #fff !important; background: transparent !important; }

.bar-cockpit .scanner-grid { align-items: start; }
.bar-scan-notice {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  border: 2px solid rgba(245,158,11,.72);
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(245,158,11,.22), rgba(116,45,0,.24) 55%, rgba(10,10,12,.92));
  box-shadow: 0 0 0 4px rgba(245,158,11,.09), 0 22px 50px rgba(0,0,0,.34);
}
.bar-scan-notice-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: #17110a;
  background: #fbbf24;
  font-size: 2.8rem;
  font-weight: 950;
  line-height: 1;
}
.bar-scan-notice h2 { margin: .2rem 0 .55rem; font-size: clamp(1.7rem, 3vw, 2.55rem); }
.bar-scan-notice p:last-child { margin: 0; color: #fde68a; font-weight: 850; }
.bar-ready-badge {
  border: 1px solid rgba(34,197,94,.35);
  color: #bbf7d0;
  background: rgba(34,197,94,.11);
  border-radius: 999px;
  padding: .55rem .85rem;
  font-weight: 950;
  white-space: nowrap;
}
.bar-cockpit .drink-button {
  min-height: 74px;
  font-size: 1.12rem;
  padding: 1.05rem 1.15rem;
}
.current-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .85rem 1rem;
  margin: .65rem 0 .85rem;
  border-radius: 16px;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.13);
}
.current-order-total span { color: var(--muted); font-weight: 850; }
.current-order-total strong { font-size: 1.35rem; color: #fff; }
.sticky-order-actions {
  position: sticky;
  bottom: .75rem;
  z-index: 4;
  padding: .6rem;
  border-radius: 22px;
  background: rgba(8,8,10,.92);
  border: 1px solid rgba(225,6,0,.22);
  backdrop-filter: blur(14px);
}
.finalize-button { min-width: 210px; }
.bar-booked-success .bar-cockpit {
  box-shadow: 0 0 0 4px rgba(34,197,94,.18), 0 0 55px rgba(34,197,94,.18);
}

.security-success-screen .security-status-card { box-shadow: 0 0 0 4px rgba(34,197,94,.18), 0 0 46px rgba(34,197,94,.18); }
.security-warning-screen .security-status-card { box-shadow: 0 0 0 4px rgba(245,158,11,.16), 0 0 46px rgba(245,158,11,.14); }
.security-danger-screen .security-status-card { box-shadow: 0 0 0 4px rgba(225,6,0,.18), 0 0 46px rgba(225,6,0,.20); }

.qr-print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.qr-print-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
  color: #111;
  break-inside: avoid;
  text-align: center;
}
.qr-print-card img { width: 150px; height: 150px; display: block; margin: 0 auto .55rem; }
.qr-print-card h3 { margin: .25rem 0; color: #111; }
.qr-print-card p, .qr-print-card small { color: #333; margin: .15rem 0; }
.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .8rem;
  align-items: end;
}
.print-report-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid rgba(225,6,0,.55);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.print-report-head img { width: 150px; height: auto; }
.event-start-list { display: grid; gap: .8rem; }
.start-assistant-event { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.numbered { padding-left: 1.2rem; }

@media print {
  body { background: #fff !important; color: #111 !important; padding: 0 !important; }
  body::before, .topbar, .legal-footer, .mobile-bottom-nav, .no-print, .admin-head.no-print { display: none !important; }
  .container { max-width: none; padding: 0; }
  .card, .nested-card { box-shadow: none !important; border-color: #ddd !important; background: #fff !important; color: #111 !important; }
  .card h1, .card h2, .card h3, .nested-card h2, .nested-card h3 { color: #111 !important; }
  .muted, small { color: #444 !important; }
  table, th, td { color: #111 !important; border-color: #ddd !important; }
  .qr-print-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .qr-print-card { border: 1px solid #999; page-break-inside: avoid; }
  .button { display: none !important; }
}


.form.is-submitting,
form.is-submitting {
  opacity: .82;
}

form.is-submitting button[type="submit"] {
  cursor: wait;
}

/* Version 28: dynamischer Startbildschirm */
.home-hero {
  min-height: min(720px, calc(100svh - 9rem));
}
.home-primary-actions .button {
  min-width: 170px;
}
.home-dashboard {
  display: grid;
  gap: 1.25rem;
}
.home-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.home-welcome h1 {
  margin-bottom: .45rem;
}
.home-mini-logo {
  width: clamp(82px, 18vw, 132px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--red-glow);
}
.home-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .9rem;
}
.home-status-card {
  display: grid;
  gap: .35rem;
  min-height: 118px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.home-status-card small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 950;
}
.home-status-card strong {
  color: #fff;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  line-height: 1.15;
}
.home-status-card span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}
.home-status-card.ok {
  border-color: rgba(34,197,94,.45);
  background: linear-gradient(135deg, rgba(34,197,94,.13), rgba(255,255,255,.045));
}
.home-status-card.warn {
  border-color: rgba(245,158,11,.44);
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(255,255,255,.045));
}
.home-status-card.err {
  border-color: rgba(225,6,0,.48);
  background: linear-gradient(135deg, rgba(225,6,0,.14), rgba(255,255,255,.045));
}
.home-alert {
  margin-top: 0;
}
.home-quick-grid {
  margin-top: .2rem;
}
@media (max-width: 700px) {
  .home-welcome {
    align-items: flex-start;
  }
  .home-mini-logo {
    width: 76px;
    border-radius: 18px;
  }
  .home-status-card {
    min-height: auto;
  }
  .home-primary-actions .button {
    width: 100%;
  }
}

/* Version 29: Prozess-Optimierung */
.manager-process-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}
.manager-process-section {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255,255,255,.045);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.process-head {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: .85rem;
}
.process-head > span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-weight: 1000;
  box-shadow: var(--red-glow);
  flex: 0 0 auto;
}
.process-head h2 { margin: 0; }
.process-head p { margin: .15rem 0 0; color: var(--muted); }
.compact-manager-grid { margin-top: .2rem; }
.end-wizard .check-list,
.onboarding-card .check-list { margin-top: .75rem; }
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .65rem;
  margin: 1rem 0;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  color: var(--muted);
  font-weight: 850;
}
.flow-step strong {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.flow-step.active { border-color: rgba(225,6,0,.55); color: #fff; background: rgba(225,6,0,.12); }
.flow-step.done { border-color: rgba(34,197,94,.45); color: #fff; background: rgba(34,197,94,.12); }
.flow-step.done strong { background: rgba(34,197,94,.3); }
.preorder-countdown {
  margin: .85rem 0;
  padding: .85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  font-weight: 950;
  text-align: center;
}
.preorder-countdown.ok { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.12); color: #fff; }
.preorder-countdown.warn { border-color: rgba(245,158,11,.55); background: rgba(245,158,11,.14); color: #fff; }
.preorder-countdown.err { border-color: rgba(225,6,0,.6); background: rgba(225,6,0,.16); color: #fff; }
@media (max-width: 760px) {
  .manager-process-section { padding: .85rem; border-radius: 18px; }
  .process-head > span { width: 2.15rem; height: 2.15rem; }
}

/* Version 31: Kasse Guthabenverwaltung */
.wallet-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .8rem;
  align-items: end;
}
.wallet-actions-grid .actions {
  align-self: end;
}
.scanner-card.scanner-locked::after {
  content: "Vorgang läuft";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(0,0,0,.42);
  color: #fff;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}

.shift-violation-row {
  outline: 2px solid rgba(225, 6, 0, 0.55);
  background: rgba(225, 6, 0, 0.08);
}
.compact-shift-edit {
  margin-top: 0.5rem;
  gap: 0.4rem;
}
.compact-shift-edit input,
.compact-shift-edit select {
  min-width: 12rem;
}
.money-positive { color: #22c55e; }
.money-negative { color: #ff3131; }
.checkbox-stack {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}

/* v37: Schichtplanung-Bearbeitung ohne überlappende Tabellenfelder */
.shift-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  min-width: 180px;
}
.shift-plan-actions form { margin: 0; }
.shift-plan-edit-page { max-width: 760px; }
.shift-plan-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1rem;
}
.shift-plan-edit-form label,
.shift-plan-edit-form .full,
.shift-plan-edit-form .actions {
  min-width: 0;
}
.shift-plan-edit-form .full,
.shift-plan-edit-form .actions {
  grid-column: 1 / -1;
}
.shift-plan-edit-form input,
.shift-plan-edit-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .shift-plan-edit-form { grid-template-columns: 1fr; }
  .shift-plan-actions { display: grid; grid-template-columns: 1fr; }
  .shift-plan-actions .button { width: 100%; justify-content: center; }
}

.live-updated {
  animation: livePulse 0.9s ease-out;
}
@keyframes livePulse {
  0% { outline: 2px solid rgba(255,255,255,0.85); outline-offset: 2px; }
  100% { outline: 0 solid transparent; outline-offset: 8px; }
}

/* v41 Getränkeverwaltung + Livebestände */
.drinks-management-page .table-wrap {
  overflow-x: auto;
}
.drinks-management-table th,
.drinks-management-table td {
  vertical-align: top;
}
.drink-management-row.is-inactive {
  opacity: .72;
}
.drink-row-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(95px, .65fr) minmax(150px, 1fr) minmax(140px, .8fr) minmax(105px, .65fr) minmax(105px, .65fr) minmax(110px, .65fr);
  gap: .65rem;
  align-items: end;
  min-width: 900px;
}
.drink-add-form {
  grid-template-columns: minmax(180px, 1.4fr) minmax(95px, .65fr) minmax(150px, 1fr) minmax(140px, .8fr) minmax(105px, .65fr) minmax(110px, .65fr) auto;
}
.drink-row-form label {
  display: grid;
  gap: .25rem;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 900;
}
.drink-row-form input,
.drink-row-form select {
  width: 100%;
  min-width: 0;
}
.drink-row-form .drink-stock-toggle {
  align-self: center;
  display: flex;
  min-height: 44px;
  margin-top: 1.1rem;
}
.drink-row-editor {
  display: block;
}
.drink-row-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  margin-top: .7rem;
}
.drink-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1rem;
  min-width: 0;
}
.drink-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
}
.drink-row-actions form {
  margin: 0;
}
.drink-row-actions .button {
  margin: 0;
  white-space: nowrap;
}
.drink-row-note {
  margin: 0;
  white-space: nowrap;
}
.drink-row-meta .stock-action-details {
  margin-top: 0;
}
.drink-row-meta .stock-action-details[open] {
  flex: 1 0 100%;
}
.stock-overview-card {
  margin-top: 1.5rem;
}
.stock-chart {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}
.stock-chart-row {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr minmax(110px, 150px);
  align-items: center;
  gap: .8rem;
  padding: .75rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
}
.stock-chart-label strong,
.stock-chart-label span,
.stock-chart-value strong,
.stock-chart-value small {
  display: block;
}
.stock-chart-label span,
.stock-chart-value small {
  color: var(--muted);
  font-size: .8rem;
  margin-top: .15rem;
}
.stock-chart-track {
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.stock-chart-track span {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.82), rgba(255,255,255,.48));
}
.stock-chart-row.is-low {
  border-color: rgba(248,113,113,.65);
  background: rgba(127,29,29,.22);
}
.stock-chart-row.is-low .stock-chart-track span {
  background: linear-gradient(90deg, #ef4444, #fca5a5);
}
.stock-chart-row.is-ok .stock-chart-track span {
  background: linear-gradient(90deg, #f8fafc, #d1d5db);
}
.stock-chart-row.is-untracked,
.stock-chart-row.is-inactive {
  opacity: .72;
}
.stock-chart-row.is-untracked .stock-chart-track span,
.stock-chart-row.is-inactive .stock-chart-track span {
  background: rgba(255,255,255,.22);
}
@media (max-width: 980px) {
  .drink-row-form,
  .drink-add-form {
    min-width: 0;
    grid-template-columns: 1fr 1fr;
  }
  .drink-row-form button {
    grid-column: 1 / -1;
  }
  .stock-chart-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .drink-row-footer {
    grid-template-columns: 1fr;
  }
  .drink-row-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  .drink-row-form,
  .drink-add-form {
    grid-template-columns: 1fr;
  }
  .drink-row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .drink-row-actions form,
  .drink-row-actions .button {
    width: 100%;
  }
}


/* Version 42: Mobile Navigation stabilisieren */
@media (max-width: 800px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  body {
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }
  .topbar {
    z-index: 900 !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    max-width: none !important;
    z-index: 2147483000 !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: .35rem !important;
    padding: .5rem max(.45rem, env(safe-area-inset-right)) max(.5rem, env(safe-area-inset-bottom)) max(.45rem, env(safe-area-inset-left)) !important;
    border-radius: 22px 22px 0 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    background: rgba(8,8,10,.985) !important;
    box-shadow: 0 -16px 52px rgba(0,0,0,.72), 0 0 25px rgba(225,6,0,.23) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .mobile-bottom-nav::-webkit-scrollbar {
    display: none;
  }
  .mobile-bottom-nav a {
    flex: 0 0 auto !important;
    min-width: 68px !important;
    max-width: 96px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .mobile-bottom-nav a {
    min-width: 62px !important;
    font-size: .58rem !important;
    padding-left: .18rem !important;
    padding-right: .18rem !important;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 800px) {
    .mobile-bottom-nav {
      bottom: 0 !important;
    }
  }
}


/* Version 43: Manager-Barbereich besser lesbar */
.manager-bar-section .section-head-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}
.manager-bar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.2rem 0;
}
.manager-bar-card {
  width: 100%;
  overflow: hidden;
}
.manager-bar-card .table-wrap {
  max-width: 100%;
}
.manager-bar-card table {
  min-width: 520px;
}
.manager-bar-card h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}
@media (max-width: 720px) {
  .manager-bar-section .section-head-inline {
    display: grid;
  }
  .manager-bar-card table {
    min-width: 460px;
  }
}

.connection-banner {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  top: calc(70px + env(safe-area-inset-top));
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 193, 7, .65);
  background: rgba(40, 24, 0, .96);
  color: #fff4cc;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  text-align: center;
  font-weight: 700;
}
.connection-banner.hidden { display: none; }
@media (max-width: 700px) {
  .connection-banner { top: calc(62px + env(safe-area-inset-top)); font-size: .9rem; }
}

/* v46: Testlauf, Bestandsaktionen und Exportpaket */
.stock-action-details { margin-top: .65rem; }
.stock-action-details summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.stock-action-form { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(120px, .7fr) minmax(180px, 1.4fr) auto; gap: .65rem; align-items: end; margin-top: .6rem; }
.stock-history-card .table-wrap { max-height: 420px; overflow: auto; }
.check-list .actions.compact { margin-top: .5rem; }
.check-list .actions.compact form { display: inline-block; margin-right: .35rem; }
@media (max-width: 760px) {
  .stock-action-form { grid-template-columns: 1fr; }
  .stock-action-form button { width: 100%; }
}

/* Version 47: Übersichtlichkeit und Barrierefreiheit */
:root {
  --focus-ring: 0 0 0 4px rgba(255,255,255,.18), 0 0 0 7px rgba(225,6,0,.38);
  --info: #60a5fa;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 9999;
  transform: translateY(-160%);
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: .8rem 1rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.skip-link:focus { transform: translateY(0); outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring) !important;
  border-color: rgba(255,255,255,.7) !important;
}
#mainContent:focus { outline: none; }
.button, button, nav a, summary, input, select, textarea { touch-action: manipulation; }
.status {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  color: var(--text);
  line-height: 1.45;
}
.status::before {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1.25;
  content: "ℹ️";
}
.status.ok {
  color: #d1fae5;
  border-color: rgba(34,197,94,.34);
  background: rgba(34,197,94,.105);
}
.status.ok::before { content: "✅"; }
.status.err {
  color: #fee2e2;
  border-color: rgba(239,68,68,.44);
  background: rgba(239,68,68,.13);
}
.status.err::before { content: "⛔"; }
.status.warn {
  color: #ffedd5;
  border-color: rgba(245,158,11,.42);
  background: rgba(245,158,11,.13);
}
.status.warn::before { content: "⚠️"; }
.status.info {
  color: #dbeafe;
  border-color: rgba(96,165,250,.36);
  background: rgba(96,165,250,.12);
}
.status.info::before { content: "ℹ️"; }
.badge-open::before { content: "✅ "; }
.badge-warning::before { content: "⚠️ "; }
.badge-closed::before { content: "✓ "; }
.money-cell strong, .current-order-total strong, #cashierBillSum, #cashierWalletBalance {
  font-variant-numeric: tabular-nums;
}
.live-operator .card > .muted,
.live-operator .scanner-card > .muted.small,
.live-operator .panel > .muted {
  font-size: .95rem;
  color: #d2d2d8;
}
.live-operator .button,
.live-operator button,
.live-operator input,
.live-operator select {
  min-height: 52px;
}
.live-operator .drink-button { min-height: 84px; }
.live-operator .sticky-order-actions {
  bottom: calc(5.9rem + env(safe-area-inset-bottom));
}
.section-help {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  padding: .7rem .9rem;
  margin: .8rem 0 1rem;
}
.section-help summary { cursor: pointer; font-weight: 950; }
.table-wrap table caption {
  text-align: left;
  color: var(--muted);
  padding: .65rem .85rem;
  font-weight: 850;
}
.mobile-card-hint {
  display: none;
  color: var(--muted);
  font-size: .9rem;
}
@media (max-width: 800px) {
  .container {
    width: min(100% - 1rem, 1180px);
    margin-top: .9rem;
  }
  .card { padding: 1rem; border-radius: 20px; }
  h1 { font-size: clamp(1.75rem, 10vw, 2.55rem); letter-spacing: -.055em; }
  h2 { font-size: 1.35rem; }
  p { line-height: 1.55; }
  .actions, .age-actions, .quick-age-actions { gap: .65rem; }
  .actions .button, .actions button, .age-actions .button, .age-actions button {
    width: 100%;
  }
  .button, button {
    min-height: 52px;
    padding: .95rem 1rem;
  }
  .small-button {
    min-height: 46px;
    padding: .72rem .86rem;
    font-size: .95rem;
  }
  input, select, textarea {
    min-height: 52px;
    font-size: 1rem;
  }
  .manual-row {
    grid-template-columns: 1fr;
  }
  .admin-head {
    display: grid;
    gap: .85rem;
  }
  .admin-head .actions, .admin-head .button { width: 100%; }
  .totals,
  .compact-totals,
  .visitor-summary,
  .home-status-grid {
    grid-template-columns: 1fr !important;
  }
  .totals strong,
  .visitor-summary strong { font-size: 1.65rem; }
  .scanner-grid,
  .security-grid,
  .cashier-cockpit .scanner-grid,
  .bar-cockpit .scanner-grid {
    grid-template-columns: 1fr !important;
  }
  .reader { min-height: 260px; }
}
@media (max-width: 760px) {
  .mobile-card-hint { display: block; }
  .table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .table-wrap table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .75rem;
  }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
  }
  .table-wrap tr {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    padding: .55rem;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
  }
  .table-wrap td {
    border-bottom: 1px solid rgba(255,255,255,.075);
    padding: .72rem .65rem;
    text-align: left !important;
    white-space: normal;
  }
  .table-wrap td:last-child { border-bottom: 0; }
  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .25rem;
    color: #ff5a55;
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .table-wrap td:empty { display: none; }
  .table-wrap td form,
  .table-wrap .inline-edit-form,
  .table-wrap .role-form,
  .table-wrap .action-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .table-wrap td .button,
  .table-wrap td button,
  .table-wrap td input,
  .table-wrap td select {
    width: 100%;
  }
  .compact-table table th,
  .compact-table table td { padding: .72rem .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
@media (prefers-contrast: more) {
  :root { --muted: #e6e6ea; --border: rgba(255,255,255,.34); }
  body::before { opacity: .08; }
  .card, .nested-card, .table-wrap tr { border-color: rgba(255,255,255,.36); }
}



.money-positive { color: #7CFFB2; }
.money-negative { color: #ff9c9c; }

/* Version 55: Eventkonto Prepaid-Logik und Unterdeckung */
.money-low,
.event-account-low-text {
  color: #fbbf24 !important;
  font-weight: 950;
}
.bar-insufficient-funds {
  display: block;
}
.bar-insufficient-actions {
  margin-top: .65rem;
}
.bar-insufficient-actions .button {
  min-height: 44px;
}

/* Version 56: schlankere Manager-Navigation und neuer Manager-Hub */
.compact-manager-menu {
  min-width: 220px;
}
.manager-hub-v56 {
  display: grid;
  gap: 1rem;
}
.manager-hub-hero {
  align-items: flex-start;
}
.manager-hub-mode {
  display: flex;
  justify-content: flex-end;
}
.manager-search-card {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  border-radius: 22px;
  padding: 1rem;
}
.manager-search-card label {
  display: grid;
  gap: .45rem;
  margin: 0;
}
.manager-search-card input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: inherit;
  min-height: 48px;
  padding: .85rem 1rem;
  font-size: 1rem;
}
.manager-hub-section {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  border-radius: 24px;
  padding: 1rem;
}
.manager-hub-section .process-head {
  margin-bottom: .9rem;
}
.manager-favorites {
  border-color: rgba(255,210,64,.22);
  background: rgba(255,210,64,.045);
}
.critical-actions {
  border-color: rgba(255,90,90,.22);
  background: rgba(170,15,25,.055);
}
.manager-nav-card.danger {
  border-color: rgba(255,90,90,.36);
  background: rgba(170,15,25,.12);
}
.manager-nav-card.warning {
  border-color: rgba(255,210,64,.32);
  background: rgba(255,210,64,.10);
}
.manager-nav-card.hidden,
.manager-hub-section.hidden,
#managerHubNoResults.hidden {
  display: none !important;
}
.manager-hub-totals {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}
@media (max-width: 720px) {
  .manager-hub-section {
    padding: .8rem;
    border-radius: 20px;
  }
  .manager-hub-hero {
    gap: .8rem;
  }
  .manager-hub-mode {
    justify-content: flex-start;
  }
  .compact-mobile-manager-nav {
    gap: .15rem;
  }
}


/* Version 57: Aktivierungslinks */
.activation-link-details {
  margin-top: .35rem;
}
.activation-link-details code,
.initial-password-box code {
  display: block;
  white-space: normal;
  word-break: break-all;
  margin-top: .35rem;
}

/* Version 59: Abschluss-Version */
.final-dry-run .check-list,
.final-check-list {
  display: grid;
  gap: .7rem;
}
.role-guide-card ol {
  margin: .6rem 0 0;
  padding-left: 1.25rem;
}
.role-guide-card li {
  margin: .35rem 0;
}
.fallback-plan .nested-card p {
  margin-bottom: 0;
}
.print-only-title {
  display: none;
}
#securityBlockedActions {
  margin-top: .8rem;
}
#securityBlockedActions.hidden {
  display: none !important;
}

/* Version 63: zuverlässiger Kamera-Start und stabile Bedienfelder */
.scanner-camera-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-width: 0;
  margin-top: .75rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.scanner-camera-message {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.scanner-camera-message.is-active { color: #bbf7d0; }
.scanner-camera-message.is-error { color: #fecaca; }
.scanner-camera-status .button {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.reader video {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
.scanner-card.scanner-locked::after {
  content: none;
  display: none;
}
.live-operator .scanner-grid > *,
.live-operator .scanner-card,
.live-operator .panel,
.live-operator .security-action-block,
.live-operator .current-order-item,
.live-operator .manual-row > * {
  min-width: 0;
}
.live-operator .button,
.live-operator button {
  max-width: 100%;
  height: auto;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.live-operator .sticky-order-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: stretch;
}
.live-operator .sticky-order-actions .button {
  width: 100%;
  min-width: 0;
}
.actions > *,
.age-actions > *,
.manual-row > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 800px) {
  .button,
  button {
    max-width: 100%;
    height: auto;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .live-operator .scanner-camera-status,
  .live-operator .sticky-order-actions,
  .live-operator .quick-age-actions {
    grid-template-columns: 1fr;
  }
  .live-operator .scanner-camera-status {
    display: grid;
  }
  .live-operator .scanner-camera-status .button,
  .live-operator .sticky-order-actions .button,
  .live-operator .quick-age-actions .button {
    width: 100%;
  }
  .live-operator .current-order-item {
    display: grid;
    grid-template-columns: 1fr;
  }
  .live-operator .current-order-actions {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    width: 100%;
    justify-content: stretch;
  }
  .live-operator .current-order-actions .button {
    width: 52px;
    min-width: 52px;
    padding-inline: .5rem;
  }
}

/* Version 64: seitenweite Layout-Korrekturen nach Desktop-/Mobile-Prüfung */
.admin-head > *,
.print-report-head > *,
.drinks-management-table td,
.drinks-management-table th {
  min-width: 0;
  max-width: 100%;
}

/* Version 65: doppelt bestätigtes Löschen geplanter Events */
.event-delete-panel {
  margin-top: 1rem;
  background: rgba(86, 0, 0, 0.18);
}
.event-delete-panel summary {
  grid-template-columns: 1fr;
}
.event-delete-panel summary strong,
.event-delete-panel summary::after {
  color: #ff8d89;
}
.event-delete-content {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1.1rem;
  border-top: 1px solid rgba(225, 6, 0, 0.3);
}
.event-delete-checks {
  margin: 0;
}
.event-delete-form {
  max-width: 38rem;
}
.event-delete-form .button {
  justify-self: start;
}

@media (max-width: 800px) {
  .event-delete-form,
  .event-delete-form .button {
    width: 100%;
    max-width: none;
  }
}

.compact-shift-edit {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  align-items: end;
  width: min(100%, 520px);
  min-width: 0;
}
.compact-shift-edit button {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

@media (max-width: 1320px) and (min-width: 981px) {
  .drink-row-form,
  .drink-add-form {
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .drink-row-form button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 800px) {
  .admin-head > *,
  .admin-head > div,
  .admin-head .actions {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .admin-head h1,
  .admin-head h2,
  .admin-head h3,
  .admin-head p {
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .status {
    display: block;
  }
  .status::before {
    float: left;
    margin-right: .65rem;
  }
  .status::after {
    content: "";
    display: block;
    clear: both;
  }
  .mobile-bottom-nav {
    flex-wrap: nowrap !important;
  }
  .compact-mobile-manager-nav a {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .scanner-camera-status,
  .bar-cockpit .sticky-order-actions,
  .security-cockpit .quick-age-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .scanner-camera-status .button,
  .bar-cockpit .sticky-order-actions .button,
  .security-cockpit .quick-age-actions .button {
    width: 100%;
  }
  .bar-cockpit .current-order-item {
    display: grid;
    grid-template-columns: 1fr;
  }
  .bar-cockpit .current-order-actions {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    width: 100%;
  }
  .print-report-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .print-report-head img {
    width: min(150px, 100%);
  }
  .printable-report .nested-card {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }
  .compact-shift-edit {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .compact-shift-edit input,
  .compact-shift-edit select {
    min-width: 0;
  }
}


/* Version 70: vereinfachte Kontostandanzeige auf „Mein Konto“ */
.event-account-summary {
  grid-template-columns: minmax(0, 1fr);
  max-width: 34rem;
}
.account-overview-card .event-account-summary {
  margin-inline: auto;
  text-align: center;
  width: 100%;
}
.auth-help-link {
  margin: .9rem 0 .2rem;
  text-align: center;
  font-weight: 900;
}
.account-balance-card {
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.account-balance-card.is-positive {
  border-color: rgba(124,255,178,.62);
  background: rgba(34,197,94,.13);
  box-shadow: 0 0 0 1px rgba(124,255,178,.16), 0 0 28px rgba(34,197,94,.25);
}
.account-balance-card.is-negative {
  border-color: rgba(255,80,80,.72);
  background: rgba(190,25,35,.17);
  box-shadow: 0 0 0 1px rgba(255,80,80,.18), 0 0 28px rgba(255,49,49,.28);
}
.event-account-summary .money-positive {
  color: #7cffb2 !important;
  text-shadow: 0 0 16px rgba(124,255,178,.58);
}
.event-account-summary .money-negative {
  color: #ff8f8f !important;
  text-shadow: 0 0 16px rgba(255,49,49,.58);
}
.account-balance-card [data-live-account-balance-hint] {
  color: #ffb3b3;
  font-weight: 950;
}

/* Version 77: einheitlicher Kontostand auf der angemeldeten Startseite */
.home-balance-card .money-positive {
  color: #7cffb2;
  text-shadow: 0 0 16px rgba(124,255,178,.58);
}
.home-balance-card .money-negative {
  color: #ff8f8f;
  text-shadow: 0 0 16px rgba(255,49,49,.58);
}

@media print {
  .no-print,
  .site-header,
  .mobile-bottom-nav,
  .footer,
  .app-footer,
  .skip-link,
  .actions.compact .button.ghost {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .card,
  .nested-card {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: 1px solid #bbb !important;
  }
  .print-only-title {
    display: block;
  }
  .fallback-plan table th,
  .fallback-plan table td {
    border: 1px solid #999 !important;
    color: #000 !important;
    height: 2.1rem;
  }
  .fallback-plan {
    overflow: visible !important;
  }
  .manual-note-template {
    break-before: page;
    page-break-before: always;
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 !important;
    padding: .7rem !important;
  }
  .manual-note-template h2 {
    margin: 0 0 .65rem;
  }
  .manual-note-template .table-wrap {
    overflow: visible;
    border: 1px solid #999;
    border-radius: 0;
    background: #fff;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .manual-note-template table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
  }
  .manual-note-template thead {
    position: static !important;
    display: table-header-group !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
  }
  .manual-note-template tbody {
    display: table-row-group !important;
  }
  .manual-note-template tr {
    display: table-row !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .manual-note-template th,
  .manual-note-template td,
  .manual-note-template td:empty {
    display: table-cell !important;
    width: auto !important;
    height: 3.1rem;
    padding: .4rem !important;
    vertical-align: top;
    font-size: .72rem;
    overflow-wrap: anywhere;
  }
  .manual-note-template th {
    height: auto;
    white-space: normal;
  }
  .manual-note-template td::before {
    display: none !important;
    content: none !important;
  }
  .manual-note-template .manual-note-time { width: 10%; }
  .manual-note-template .manual-note-name { width: 17%; }
  .manual-note-template .manual-note-action { width: 17%; }
  .manual-note-template .manual-note-amount { width: 11%; }
  .manual-note-template .manual-note-staff { width: 20%; }
  .manual-note-template .manual-note-text { width: 25%; }
}


/* v71: Tageszeitleiste für die Schichtplanung */
.shift-records-page,
.shift-planning-page { scroll-margin-top: 90px; }
.shift-records-page { margin-bottom: 1rem; }
.shift-planning-page { --shift-slot-width: 42px; overflow: visible; }
.shift-day-toolbar {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  margin: 1.2rem 0; padding: .85rem; border: 1px solid var(--border);
  border-radius: 18px; background: rgba(255,255,255,.035);
}
.shift-day-picker { display: grid; justify-items: center; gap: .25rem; min-width: min(420px, 100%); }
.shift-day-picker > label {
  color: var(--muted); font-size: .78rem; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
}
.shift-day-picker > div { display: flex; align-items: center; gap: .5rem; }
.shift-day-picker input { min-width: 170px; }
.shift-day-picker > strong { text-transform: capitalize; }
.shift-day-arrow { min-width: 44px; padding-inline: .7rem; font-size: 1.35rem; }
.shift-summary-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem; margin: 1rem 0;
}
.shift-summary-card {
  display: grid; gap: .18rem; padding: .9rem 1rem;
  border: 1px solid var(--border); border-left: 5px solid;
  border-radius: 16px; background: rgba(255,255,255,.045);
}
.shift-summary-card > span {
  color: var(--muted); font-size: .78rem; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
}
.shift-summary-card > strong { font-size: 1.7rem; line-height: 1; }
.shift-summary-card > small { color: var(--muted); }
.shift-summary-card.role-bar { border-left-color: #ef4444; }
.shift-summary-card.role-cashier { border-left-color: #f59e0b; }
.shift-summary-card.role-security { border-left-color: #3b82f6; }
.shift-timeline-legend {
  display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: 1.2rem;
  padding: .7rem .85rem; border-radius: 14px; background: rgba(255,255,255,.035);
  color: var(--muted); font-size: .82rem; font-weight: 800;
}
.shift-timeline-legend span { display: inline-flex; align-items: center; gap: .38rem; }
.shift-timeline-legend i {
  width: 18px; height: 10px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.38);
}
.legend-bar { background: #d92d35; }
.legend-cashier { background: #d97706; }
.legend-security { background: #2563eb; }
.legend-break { background: repeating-linear-gradient(135deg, #21e6cf 0 4px, #087f75 4px 7px); }
.legend-gap { background: rgba(239,68,68,.72); }
.legend-low { background: rgba(245,158,11,.78); }
.legend-good { background: rgba(34,197,94,.78); }
.shift-timeline-scroll {
  width: 100%; margin: .65rem 0 1.25rem; overflow-x: auto;
  overscroll-behavior-inline: contain; border: 1px solid var(--border);
  border-radius: 18px; background: rgba(5,5,7,.72);
  box-shadow: inset 0 0 30px rgba(0,0,0,.25);
  scrollbar-color: rgba(225,6,0,.65) rgba(255,255,255,.06);
}
.shift-timeline-scroll:focus-visible { outline: 2px solid rgba(255,255,255,.72); outline-offset: 3px; }
.shift-timeline { width: max-content; min-width: 100%; padding-bottom: .35rem; }
.shift-timeline-role { border-top: 1px solid rgba(255,255,255,.11); }
.shift-timeline-row {
  display: grid; grid-template-columns: 170px 1fr 124px;
  min-width: 100%; min-height: 58px;
}
.shift-timeline-label {
  position: sticky; left: 0; z-index: 7; display: flex; flex-direction: column;
  justify-content: center; gap: .16rem; min-width: 0; padding: .6rem .75rem;
  border-right: 1px solid rgba(255,255,255,.14); background: #111115;
  box-shadow: 7px 0 14px rgba(0,0,0,.2);
}
.shift-timeline-label strong, .shift-timeline-label span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shift-timeline-label small { color: var(--muted); }
.shift-timeline-person-link {
  overflow: hidden;
  color: #fff;
  font-weight: 950;
  text-overflow: ellipsis;
  text-decoration-color: rgba(255,255,255,.5);
  white-space: nowrap;
}
.shift-timeline-person-link:hover,
.shift-timeline-person-link:focus-visible { color: #63f4df; }
.shift-timeline-balance {
  position: sticky;
  right: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .12rem;
  padding: .45rem .5rem;
  border-left: 1px solid rgba(255,255,255,.15);
  background: #111115;
  box-shadow: -7px 0 14px rgba(0,0,0,.22);
  text-align: center;
}
.shift-timeline-balance strong { font-size: .92rem; white-space: nowrap; }
.shift-timeline-balance small { color: var(--muted); font-size: .65rem; white-space: nowrap; }
.shift-timeline-balance.is-positive strong { color: #4ade80; }
.shift-timeline-balance.is-negative strong { color: #ff6b6b; }
.shift-timeline-balance.is-neutral strong { color: #fff; }
.shift-timeline-balance.is-pending,
.shift-timeline-balance.is-role { color: var(--muted); }
.shift-timeline-balance.is-heading { z-index: 10; background: #17171b; }
.shift-timeline-balance.is-heading strong { font-size: .75rem; }
.shift-timeline-track {
  position: relative; display: grid; grid-auto-flow: column;
  grid-auto-columns: var(--shift-slot-width); align-items: center; min-width: 0;
  background: repeating-linear-gradient(to right, rgba(255,255,255,.09) 0 1px, transparent 1px var(--shift-slot-width));
}
.shift-timeline-ruler {
  position: sticky; top: 0; z-index: 8; min-height: 54px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.shift-timeline-ruler .shift-timeline-label { z-index: 10; background: #17171b; }
.timeline-ruler-cell {
  display: flex; align-self: stretch; align-items: center;
  min-width: var(--shift-slot-width); padding-left: .3rem; color: transparent; font-size: .7rem;
}
.timeline-ruler-cell.is-hour {
  align-items: flex-start; flex-direction: column; justify-content: center; color: #fff;
}
.timeline-ruler-cell small { color: var(--muted); text-transform: capitalize; }
.shift-coverage-row { min-height: 50px; background: rgba(255,255,255,.018); }
.shift-coverage-row .shift-timeline-label { border-left: 4px solid rgba(255,255,255,.25); }
.shift-timeline-role:nth-of-type(1) .shift-coverage-row .shift-timeline-label { border-left-color: #ef4444; }
.shift-timeline-role:nth-of-type(2) .shift-coverage-row .shift-timeline-label { border-left-color: #f59e0b; }
.shift-timeline-role:nth-of-type(3) .shift-coverage-row .shift-timeline-label { border-left-color: #3b82f6; }
.shift-coverage-track { align-items: stretch; }
.shift-coverage-slot {
  position: relative; display: grid; place-items: center;
  min-width: var(--shift-slot-width); border-right: 1px solid rgba(0,0,0,.24);
}
.shift-coverage-slot.is-gap { background: rgba(239,68,68,.43); }
.shift-coverage-slot.is-low { background: rgba(245,158,11,.5); }
.shift-coverage-slot.is-good { background: rgba(34,197,94,.48); }
.shift-coverage-slot i {
  color: #fff; font-size: .7rem; font-style: normal;
  font-weight: 950; text-shadow: 0 1px 3px #000;
}
.shift-timeline-block {
  position: relative; z-index: 2; display: block; align-self: center;
  height: 42px; min-width: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.46); border-radius: 10px;
  box-shadow: 0 7px 18px rgba(0,0,0,.35); color: #fff;
  text-decoration: none; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.shift-timeline-block:hover, .shift-timeline-block:focus-visible {
  z-index: 6; color: #fff; filter: brightness(1.16);
  transform: translateY(-2px); box-shadow: 0 9px 24px rgba(0,0,0,.48);
}
.shift-timeline-block.role-bar { background: linear-gradient(135deg, #e23a43, #a80f25); }
.shift-timeline-block.role-cashier { background: linear-gradient(135deg, #e49a13, #a84b04); }
.shift-timeline-block.role-security { background: linear-gradient(135deg, #3980f2, #1745a7); }
.shift-timeline-block.status-active { outline: 2px solid #22c55e; outline-offset: 1px; }
.shift-timeline-block.status-ended { filter: saturate(.55) brightness(.72); }
.shift-timeline-row.has-conflict .shift-timeline-block { outline: 2px solid #f59e0b; outline-offset: 2px; }
.shift-timeline-block-text {
  position: relative; z-index: 3; display: flex; flex-direction: column;
  justify-content: center; height: 100%; min-width: 0; padding: .25rem .48rem;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.96); pointer-events: none;
}
.shift-timeline-block-text strong, .shift-timeline-block-text small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shift-timeline-block-text strong { font-size: .75rem; }
.shift-timeline-block-text small { font-size: .65rem; }
.timeline-break-grid {
  position: absolute; inset: 0; z-index: 2; display: grid;
  grid-template-columns: repeat(100, 1fr); pointer-events: none;
}
.timeline-break-grid i.is-break {
  background: repeating-linear-gradient(135deg, #21e6cf 0 4px, #087f75 4px 7px);
  box-shadow: inset 1px 0 rgba(255,255,255,.5), inset -1px 0 rgba(0,0,0,.25);
}
.timeline-grid-spacer { min-width: 0; pointer-events: none; }
.timeline-now-layer {
  position: absolute; inset: 0; z-index: 5; display: grid;
  grid-auto-flow: column; grid-auto-columns: var(--shift-slot-width); pointer-events: none;
}
.timeline-now-marker {
  align-self: stretch; width: 2px; background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.92);
}
.shift-timeline-row.is-empty { min-height: 48px; }
.shift-timeline-row.is-empty p {
  grid-column: 1 / span 8; align-self: center; margin: 0 .75rem;
  color: var(--muted); font-size: .8rem; white-space: nowrap;
}
.shift-create-form {
  scroll-margin-top: 90px; margin-top: 1.2rem; padding: 1rem;
  border: 1px solid var(--border); border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.shift-create-form h2 { margin: 0 0 .2rem; }
.shift-list-heading {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; margin-top: 1.4rem;
}
.shift-list-heading h2, .shift-list-heading p { margin: 0; }
.shift-plan-conflict-row {
  outline: 2px solid rgba(245,158,11,.55); background: rgba(245,158,11,.07);
}
.hours-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.1rem 0;
}
.hours-summary-card {
  display: grid;
  gap: .28rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.hours-summary-card > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hours-summary-card > strong { font-size: clamp(1.15rem, 2vw, 1.55rem); }
.hours-summary-card > small { color: var(--muted); }
.hours-summary-card.balance-card.is-positive { border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.09); }
.hours-summary-card.balance-card.is-negative { border-color: rgba(239,68,68,.58); background: rgba(239,68,68,.1); }
.hours-summary-card.balance-card.is-positive > strong,
.hours-balance-value.is-positive { color: #4ade80; }
.hours-summary-card.balance-card.is-negative > strong,
.hours-balance-value.is-negative { color: #ff6b6b; }
.hours-balance-value {
  display: inline-block;
  min-width: 4.5rem;
  font-size: 1rem;
  font-weight: 950;
}
.hours-balance-value.is-pending { color: var(--muted); }
.shift-person-page .table-wrap td { vertical-align: top; }

.timeline-span-1 { grid-column: span 1; }
.timeline-span-2 { grid-column: span 2; }
.timeline-span-3 { grid-column: span 3; }
.timeline-span-4 { grid-column: span 4; }
.timeline-span-5 { grid-column: span 5; }
.timeline-span-6 { grid-column: span 6; }
.timeline-span-7 { grid-column: span 7; }
.timeline-span-8 { grid-column: span 8; }
.timeline-span-9 { grid-column: span 9; }
.timeline-span-10 { grid-column: span 10; }
.timeline-span-11 { grid-column: span 11; }
.timeline-span-12 { grid-column: span 12; }
.timeline-span-13 { grid-column: span 13; }
.timeline-span-14 { grid-column: span 14; }
.timeline-span-15 { grid-column: span 15; }
.timeline-span-16 { grid-column: span 16; }
.timeline-span-17 { grid-column: span 17; }
.timeline-span-18 { grid-column: span 18; }
.timeline-span-19 { grid-column: span 19; }
.timeline-span-20 { grid-column: span 20; }
.timeline-span-21 { grid-column: span 21; }
.timeline-span-22 { grid-column: span 22; }
.timeline-span-23 { grid-column: span 23; }
.timeline-span-24 { grid-column: span 24; }
.timeline-span-25 { grid-column: span 25; }
.timeline-span-26 { grid-column: span 26; }
.timeline-span-27 { grid-column: span 27; }
.timeline-span-28 { grid-column: span 28; }
.timeline-span-29 { grid-column: span 29; }
.timeline-span-30 { grid-column: span 30; }
.timeline-span-31 { grid-column: span 31; }
.timeline-span-32 { grid-column: span 32; }
.timeline-span-33 { grid-column: span 33; }
.timeline-span-34 { grid-column: span 34; }
.timeline-span-35 { grid-column: span 35; }
.timeline-span-36 { grid-column: span 36; }
.timeline-span-37 { grid-column: span 37; }
.timeline-span-38 { grid-column: span 38; }
.timeline-span-39 { grid-column: span 39; }
.timeline-span-40 { grid-column: span 40; }
.timeline-span-41 { grid-column: span 41; }
.timeline-span-42 { grid-column: span 42; }
.timeline-span-43 { grid-column: span 43; }
.timeline-span-44 { grid-column: span 44; }
.timeline-span-45 { grid-column: span 45; }
.timeline-span-46 { grid-column: span 46; }
.timeline-span-47 { grid-column: span 47; }
.timeline-span-48 { grid-column: span 48; }
.timeline-span-49 { grid-column: span 49; }
.timeline-span-50 { grid-column: span 50; }
.timeline-span-51 { grid-column: span 51; }
.timeline-span-52 { grid-column: span 52; }
.timeline-span-53 { grid-column: span 53; }
.timeline-span-54 { grid-column: span 54; }
.timeline-span-55 { grid-column: span 55; }
.timeline-span-56 { grid-column: span 56; }
.timeline-span-57 { grid-column: span 57; }
.timeline-span-58 { grid-column: span 58; }
.timeline-span-59 { grid-column: span 59; }
.timeline-span-60 { grid-column: span 60; }
.timeline-span-61 { grid-column: span 61; }
.timeline-span-62 { grid-column: span 62; }
.timeline-span-63 { grid-column: span 63; }
.timeline-span-64 { grid-column: span 64; }
.timeline-span-65 { grid-column: span 65; }
.timeline-span-66 { grid-column: span 66; }
.timeline-span-67 { grid-column: span 67; }
.timeline-span-68 { grid-column: span 68; }
.timeline-span-69 { grid-column: span 69; }
.timeline-span-70 { grid-column: span 70; }
.timeline-span-71 { grid-column: span 71; }
.timeline-span-72 { grid-column: span 72; }

@media (max-width: 760px) {
  .shift-planning-page { --shift-slot-width: 38px; }
  .shift-day-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shift-day-picker { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
  .shift-day-picker > div {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%;
  }
  .shift-day-picker input { width: 100%; min-width: 0; }
  .shift-day-picker .button { justify-content: center; }
  .shift-day-arrow { grid-row: 2; justify-self: center; }
  .shift-day-arrow:first-child { grid-column: 1; }
  .shift-day-picker + .shift-day-arrow { grid-column: 3; }
  .shift-today-link { grid-column: 2; grid-row: 2; justify-self: center; }
  .shift-summary-grid { grid-template-columns: 1fr; }
  .shift-timeline-row { grid-template-columns: 132px 1fr 92px; }
  .shift-timeline-label { padding: .5rem .55rem; }
  .shift-timeline-label strong, .shift-timeline-label span { font-size: .8rem; }
  .shift-timeline-person-link { font-size: .8rem; }
  .shift-timeline-label small { font-size: .68rem; }
  .shift-timeline-balance { padding-inline: .3rem; }
  .shift-timeline-balance strong { font-size: .76rem; }
  .shift-timeline-balance small { font-size: .57rem; }
  .shift-timeline-block { height: 39px; }
  .shift-timeline-block-text strong { font-size: .68rem; }
  .shift-list-heading { align-items: stretch; flex-direction: column; }
  .hours-summary-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .hours-summary-grid { grid-template-columns: 1fr; }
}

/* v74: verbindlicher Schicht- und Pausenablauf */
.shift-break-countdown {
  display: grid;
  gap: .22rem;
  width: min(430px, 100%);
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(245,158,11,.55);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245,158,11,.13), rgba(255,255,255,.035));
}
.shift-break-countdown > span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.shift-break-countdown > strong {
  color: #ffd166;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.05;
}
.shift-break-countdown > small { color: var(--muted); }
.shift-break-countdown.is-complete {
  border-color: rgba(34,197,94,.58);
  background: linear-gradient(135deg, rgba(34,197,94,.13), rgba(255,255,255,.035));
}
.shift-break-countdown.is-complete > strong { color: #4ade80; }
.shift-duty-actions form { margin: 0; }
.shift-end-hint { margin-top: .65rem; }
.shift-planning-page.is-readonly .shift-timeline-block.is-readonly {
  cursor: default;
}
.shift-planning-page.is-readonly .shift-timeline-block.is-readonly:hover {
  filter: none;
  transform: none;
  box-shadow: 0 7px 18px rgba(0,0,0,.35);
}
.shift-stamp-form { margin-top: 1rem; }
.shift-stamp-breaks {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
}
.shift-stamp-breaks h2 { margin: 0; }
.shift-stamp-break-row {
  display: grid;
  grid-template-columns: minmax(105px, .45fr) repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: .7rem;
  padding: .75rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}
.shift-stamp-break-row > strong { align-self: center; }
.shift-correction-history { margin-top: 1.4rem; }
.shift-correction-history ul { display: grid; gap: .65rem; padding: 0; list-style: none; }
.shift-correction-history li {
  display: grid;
  gap: .18rem;
  padding: .8rem 1rem;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  background: rgba(245,158,11,.08);
}
.shift-correction-history li span { color: var(--muted); }

@media (max-width: 560px) {
  .shift-duty-actions { align-items: stretch; }
  .shift-duty-actions form,
  .shift-duty-actions button { width: 100%; }
  .shift-stamp-break-row { grid-template-columns: 1fr; }
}

/* v76: Checkboxen auf der Notfallseite horizontal ausrichten */
.emergency-controls-form .checkbox-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
  min-height: 44px;
  padding: .45rem 0;
  cursor: pointer;
}
.emergency-controls-form .checkbox-line input[type="checkbox"] {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}
.emergency-controls-form .checkbox-line span {
  min-width: 0;
  line-height: 1.3;
}

/* Version 78: Managerfreigabe für neue Registrierungen */
.user-approval-pending {
  background: rgba(245, 158, 11, .075);
}
.approval-cell {
  min-width: 180px;
}
.approval-form {
  margin-top: .6rem;
}
.approval-form .button {
  width: 100%;
}

/* Version 109: kompakte, aufklappbare Benutzerverwaltung */
.user-management-list {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}
.user-management-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.user-management-card:hover,
.user-management-card[open] {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.04);
}
.user-management-card:target {
  border-color: rgba(255,70,70,.65);
  box-shadow: 0 0 0 3px rgba(255,50,50,.1);
}
.user-management-card > summary {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
  padding: .8rem 1rem;
  list-style: none;
  cursor: pointer;
}
.user-management-card > summary::-webkit-details-marker { display: none; }
.user-management-card[open] > summary {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}
.user-management-identity,
.user-management-meta {
  display: grid;
  gap: .15rem;
  min-width: 0;
}
.user-management-identity strong,
.user-management-identity small,
.user-management-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-management-identity small,
.user-management-meta small {
  color: var(--muted);
}
.user-management-overview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .6rem;
  min-width: 0;
}
.user-management-meta { flex: 1 1 150px; }
.user-management-state {
  flex: 0 0 auto;
  padding: .28rem .55rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.1;
}
.user-management-state.is-ok {
  color: #bbf7d0;
  border-color: rgba(34,197,94,.42);
  background: rgba(34,197,94,.12);
}
.user-management-state.is-warning {
  color: #fde68a;
  border-color: rgba(245,158,11,.5);
  background: rgba(245,158,11,.12);
}
.user-management-toggle {
  min-width: 116px;
  padding: .48rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-align: center;
  font-size: .84rem;
  font-weight: 700;
}
.user-management-toggle .show-less { display: none; }
.user-management-card[open] .user-management-toggle .show-more { display: none; }
.user-management-card[open] .user-management-toggle .show-less { display: inline; }
.user-management-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}
.user-management-details > section {
  min-width: 0;
  overflow: hidden;
  padding: 1rem;
  background: var(--surface);
}
.user-management-details h3 {
  margin: 0 0 .8rem;
  font-size: .9rem;
}
.user-management-details .role-form {
  display: grid;
  align-items: stretch;
}
.user-management-details .role-form select,
.user-management-details .role-form .button,
.user-management-details section > .button {
  width: 100%;
}
.user-management-details section > .button { margin-top: .5rem; }
.compact-data-list {
  display: grid;
  gap: .5rem;
  margin: 0 0 .85rem;
}
.compact-data-list > div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}
.compact-data-list dt { color: var(--muted); }
.compact-data-list dd { margin: 0; text-align: right; font-weight: 700; }
.user-management-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .45rem;
}
.user-management-actions .button {
  width: 100%;
  height: 100%;
  white-space: normal;
}

@media (max-width: 1100px) {
  .user-management-card > summary { grid-template-columns: minmax(190px, 1fr) minmax(230px, 1fr) auto; }
  .user-management-details { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .user-management-card > summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
  }
  .user-management-overview { grid-column: 1 / -1; flex-wrap: wrap; }
  .user-management-toggle { grid-column: 2; grid-row: 1; min-width: 0; }
  .user-management-details { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .user-management-card > summary { padding: .75rem; }
  .user-management-toggle { padding: .4rem .55rem; font-size: .75rem; }
  .user-management-overview { align-items: flex-start; }
  .user-management-meta { flex-basis: 100%; }
}

.approval-wait-card {
  text-align: center;
}
.approval-wait-card .actions {
  justify-content: center;
}
.approval-wait-indicator {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: .35rem auto 1rem;
  border: 1px solid rgba(245, 158, 11, .48);
  border-radius: 50%;
  background: rgba(245, 158, 11, .1);
  box-shadow: 0 0 28px rgba(245, 158, 11, .2);
}
.approval-wait-indicator span {
  width: 24px;
  height: 24px;
  border: 4px solid rgba(255,255,255,.22);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: approval-wait-spin 1s linear infinite;
}
.approval-wait-card.is-approved .approval-wait-indicator {
  border-color: rgba(74, 222, 128, .62);
  background: rgba(34, 197, 94, .14);
  box-shadow: 0 0 30px rgba(34, 197, 94, .28);
}
.approval-wait-card.is-approved .approval-wait-indicator span {
  border: 0;
  animation: none;
}
.approval-wait-card.is-approved .approval-wait-indicator span::before {
  content: "✓";
  color: #7cffb2;
  font-size: 2rem;
  font-weight: 950;
}
@keyframes approval-wait-spin {
  to { transform: rotate(360deg); }
}

.manager-notification-bell {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: .45rem .62rem !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.055);
}
.manager-notification-icon {
  font-size: 1.12rem;
  line-height: 1;
  filter: grayscale(1);
  opacity: .7;
}
.manager-notification-bell.has-pending {
  border-color: rgba(255, 70, 70, .8) !important;
  background: linear-gradient(135deg, #e10600, #920000) !important;
  box-shadow: 0 0 0 1px rgba(255,70,70,.2), 0 0 24px rgba(225,6,0,.62) !important;
  animation: manager-bell-pulse 1.7s ease-in-out infinite;
}
.manager-notification-bell.has-pending .manager-notification-icon {
  filter: none;
  opacity: 1;
}
.manager-notification-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 2px solid #09090b;
  border-radius: 999px;
  background: #fff;
  color: #b00000;
  font-size: .7rem;
  font-weight: 950;
  line-height: 1;
}
@keyframes manager-bell-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.06); }
}

@media (max-width: 800px) {
  .mobile-bottom-nav .manager-notification-bell {
    min-width: 58px !important;
    min-height: 44px;
    overflow: visible;
  }
}

/* Version 79: verdeckte Passwortbestätigung für kritische Aktionen */
.critical-auth-dialog {
  width: min(520px, calc(100vw - 2rem));
  max-width: none;
  padding: 0;
  border: 1px solid rgba(225, 6, 0, .58);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .8), 0 0 38px rgba(225, 6, 0, .22);
}
.critical-auth-dialog::backdrop {
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(7px);
}
.critical-auth-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: inherit;
  background:
    radial-gradient(circle at 100% 0, rgba(225, 6, 0, .18), transparent 14rem),
    var(--card-solid);
}
.critical-auth-panel h2 {
  margin: .15rem 0 .65rem;
}
.critical-auth-panel label {
  display: grid;
  gap: .4rem;
  margin-top: 1.2rem;
  font-weight: 850;
}
.critical-auth-panel input[type="password"] {
  width: 100%;
  margin-top: .45rem;
}
.critical-auth-actions {
  justify-content: flex-end;
  margin-top: 1.25rem;
}
.critical-auth-error {
  margin: .8rem 0 0;
}

@media (max-width: 520px) {
  .critical-auth-actions .button {
    flex: 1 1 100%;
  }
}

/* Version 80: Tabellen im Eventbericht bleiben innerhalb ihrer Karten */
.printable-report .dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.printable-report .dashboard-grid > .nested-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.printable-report .dashboard-grid table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}
.printable-report .dashboard-grid th,
.printable-report .dashboard-grid td {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .printable-report .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  .printable-report .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }
  .printable-report .dashboard-grid > .nested-card {
    padding: .65rem;
    break-inside: avoid;
  }
  .printable-report .dashboard-grid th,
  .printable-report .dashboard-grid td {
    padding: .45rem;
    font-size: .78rem;
  }
}

/* Version 81: neu gestaltetes Impressum */
.legal-lead {
  max-width: 70ch;
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.65;
}
.legal-imprint-page {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  overflow: hidden;
}
.imprint-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(225, 6, 0, .34);
}
.imprint-hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(225, 6, 0, .12);
  filter: blur(45px);
  pointer-events: none;
}
.imprint-hero h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: .92;
}
.imprint-seal {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 116px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 77, 70, .7);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(225, 6, 0, .25), rgba(225, 6, 0, .06));
  box-shadow: inset 0 0 30px rgba(225, 6, 0, .12), 0 18px 42px rgba(0, 0, 0, .32);
  transform: rotate(3deg);
}
.imprint-seal span {
  font-size: 3.2rem;
  font-weight: 950;
  line-height: 1;
}
.imprint-seal small {
  margin-top: -1rem;
  color: #ff8f8b;
  font-size: .65rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.imprint-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.imprint-info-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 142px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .072), rgba(255, 255, 255, .028));
  color: var(--text);
  overflow-wrap: anywhere;
}
.imprint-primary-card {
  grid-column: 1 / -1;
  min-height: 185px;
  padding: clamp(1.35rem, 4vw, 2rem);
  border-color: rgba(225, 6, 0, .36);
  background:
    radial-gradient(circle at 92% 15%, rgba(225, 6, 0, .18), transparent 18rem),
    linear-gradient(135deg, rgba(225, 6, 0, .11), rgba(255, 255, 255, .035));
}
.imprint-info-label {
  display: block;
  margin-bottom: .5rem;
  color: #ff514b;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.imprint-primary-card h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.08;
}
.imprint-primary-card p {
  display: grid;
  gap: .1rem;
  margin: 1rem 0 0;
  color: var(--muted);
}
.imprint-primary-card p strong,
.imprint-info-card > strong {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.55;
}
.imprint-contact-card {
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.imprint-contact-card small {
  margin-top: .65rem;
  color: var(--muted);
  font-weight: 850;
}
.imprint-contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 6, 0, .62);
  background: linear-gradient(145deg, rgba(225, 6, 0, .13), rgba(255, 255, 255, .045));
  color: #fff;
}
.imprint-footer-note {
  display: flex;
  gap: .8rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 17px;
  background: rgba(0, 0, 0, .2);
}
.imprint-footer-note > span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(225, 6, 0, .2);
  color: #ff7772;
  font-weight: 950;
}
.imprint-footer-note p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 680px) {
  .imprint-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .imprint-seal {
    display: none;
  }
  .imprint-details-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .imprint-primary-card {
    grid-column: auto;
  }
}

/* Version 94: einheitliche Event-Checkliste */
.event-preflight-page .event-start-panel {
  margin-top: 1rem;
}
.event-checklist {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.event-checklist-group {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.event-checklist-group-head,
.event-checklist-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.event-checklist-group-head {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(225,6,0,.08);
}
.event-checklist-group-head h2,
.event-checklist-group-head h3,
.event-checklist-summary h3 {
  margin: 0;
}
.event-checklist-group-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 34px;
  padding: .35rem .65rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}
.event-checklist-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.event-checklist-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.event-checklist-item:last-child {
  border-bottom: 0;
}
.event-checklist-item.is-done {
  background: rgba(34,197,94,.055);
}
.event-checklist-toggle-form {
  margin: 0;
}
.event-checklist-toggle {
  width: 100%;
  min-height: 76px;
  padding: .65rem .45rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: .25rem;
}
.event-checklist-toggle > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 9px;
  color: #fff;
  font-size: 1.05rem;
}
.event-checklist-item.is-done .event-checklist-toggle {
  border-color: rgba(34,197,94,.48);
  background: rgba(34,197,94,.13);
  color: #86efac;
}
.event-checklist-copy {
  min-width: 0;
}
.event-checklist-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
}
.event-checklist-title > strong {
  color: #fff;
  font-size: 1.02rem;
}
.event-checklist-system {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .22rem .55rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}
.event-checklist-system.ok {
  border-color: rgba(34,197,94,.4);
  color: #86efac;
  background: rgba(34,197,94,.08);
}
.event-checklist-system.warn {
  border-color: rgba(245,158,11,.42);
  color: #fcd34d;
  background: rgba(245,158,11,.08);
}
.event-checklist-copy > p {
  margin: .38rem 0 0;
  color: var(--muted);
}
.event-checklist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-top: .55rem;
  font-size: .82rem;
}
.event-checklist-owner {
  color: #86efac;
}
.event-checklist-owner.is-open,
.event-checklist-time {
  color: var(--muted);
}
.event-checklist-actions {
  margin-top: .65rem;
}
.event-checklist-footer-actions {
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .event-checklist-group-head,
  .event-checklist-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .event-checklist-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .event-checklist-toggle {
    width: auto;
    min-height: 48px;
    grid-template-columns: auto auto;
    justify-content: start;
    padding: .45rem .7rem;
  }
  .event-checklist-toggle > span {
    width: 28px;
    height: 28px;
  }
  .event-checklist-actions,
  .event-checklist-actions form,
  .event-checklist-actions .button {
    width: 100%;
  }
}

/* v100 final companion editor overrides */
.companion-management-details .form {
  gap: .55rem;
  padding: .65rem;
}
.companion-editor {
  padding: .65rem;
  border-radius: 12px;
}
.companion-input-list {
  gap: .45rem;
  margin: .55rem 0;
}
.companion-add-button {
  width: auto;
  min-height: 38px;
  padding: .42rem .7rem;
  font-size: .84rem;
}
.companion-management-details .form > .button {
  min-height: 40px;
  padding: .5rem .75rem;
}
@media (max-width: 620px) {
  .companion-editor-head {
    align-items: center;
    flex-direction: row;
  }
}

/* Version 101: Sliderpunkte von globalen Buttonmaßen isolieren */
.account-qr-slider .companion-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  min-height: 12px;
}
.account-qr-slider .companion-slider-dot,
.account-qr-slider .companion-slider-dot:hover {
  appearance: none;
  display: block;
  flex: 0 0 auto;
  width: 8px;
  min-width: 8px;
  height: 8px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  filter: none;
  transform: none;
  transition: width .16s ease, background-color .16s ease;
}
.account-qr-slider .companion-slider-dot.is-active,
.account-qr-slider .companion-slider-dot.is-active:hover {
  width: 22px;
  min-width: 22px;
  border-radius: 999px;
  background: #ff4a45;
  box-shadow: 0 0 14px rgba(255,74,69,.42);
}
