/* birdiebook Events – identisch mit birdiebook Voucher (app.css 2.5.2), damit alle Apps gleich aussehen */
/* birdiebook Voucher – Oberfläche im Look der birdiebook-Housekeeping-Verwaltung (/admin/manage).
   Wird nach wallet.css geladen und gleicht Abstände, Schriftgrößen, Kopfleiste, Seitenleiste und Formulare an. */
:root {
  --primary: #E8622C; --accent: #F2A65A; --bg-dark: #1c1c1c; --bg: #f4f2ee;
  --surface: #ffffff; --border: #e2ded6; --text: #1c1c1c; --text-muted: #6b6b6b;
  --success: #2e7d32; --error: #b3261e; --warn-bg: #fff4d6; --warn: #7a5200;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
input, select, textarea { accent-color: var(--primary); }
body { margin: 0; font-family: "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--primary); }
img { max-width: 100%; }

/* ---------- Kopfleiste (identisch mit birdiebook nav.bbn) ---------- */
nav.bbn { background: var(--bg-dark); color: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; position: sticky; top: 0; z-index: 40; }
nav.bbn .brand { display: inline-flex; flex-direction: column; align-items: stretch; line-height: 1; margin-right: 8px; text-decoration: none; color: #fff; }
.brand .brand-name { font-size: 24px; font-weight: 700; letter-spacing: .5px; color: #fff; }
.brand .brand-name span { color: var(--accent); }
.brand .brand-tag { margin-top: 5px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.9); font-size: 10.5px; font-weight: 300; letter-spacing: .12em; color: #fff; white-space: nowrap; }
nav.bbn .bbn-main { display: flex; align-items: center; gap: 2px; }
nav.bbn .bbn-main a { padding: 7px 12px; border-radius: 8px; color: #d6d6d6; font-size: 14px; text-decoration: none; white-space: nowrap; }
nav.bbn .bbn-main a:hover { background: rgba(255,255,255,.08); color: #fff; }
nav.bbn .bbn-main a.bbn-active { background: rgba(232,98,44,.2); color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--primary); }
nav.bbn .bbn-main a.bbn-ext { color: #bdbdbd; }
nav.bbn .bbn-spacer { flex: 1 1 auto; }
nav.bbn .bbn-scope { font-size: 13px; color: #fff; background: rgba(255,255,255,.1); border-radius: 999px; padding: 5px 12px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
nav.bbn .bbn-right { display: flex; align-items: center; gap: 10px; }
.bbn-user { position: relative; }
.bbn-userbtn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 3px 12px 3px 3px; font: 600 13px "Helvetica Neue", Arial, sans-serif; cursor: pointer; max-width: 240px; }
.bbn-userbtn:hover, .bbn-userbtn[aria-expanded=true] { border-color: var(--primary); }
.bbn-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; position: relative; }
.bbn-avatar.warn::after { content: ''; position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-dark); }
.bbn-uname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbn-caret { opacity: .7; font-size: 10px; }
.bbn-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 2500; min-width: 250px; background: #fff; color: var(--text);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.28); padding: 6px; font-size: 14px; }
.bbn-menu.open { display: block; }
.bbn-menu .bbn-head { padding: 10px 12px 8px; border-bottom: 1px solid #eee; margin-bottom: 4px; }
.bbn-menu .bbn-head b { display: block; font-size: 14px; }
.bbn-menu .bbn-head span { font-size: 12px; color: var(--text-muted); }
.bbn-menu a, .bbn-menu .bbn-menuitem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; color: var(--text);
  text-decoration: none; font: 14px "Helvetica Neue", Arial, sans-serif; background: none; border: none; cursor: pointer; text-align: left; margin: 0; min-height: 0; }
.bbn-menu a:hover, .bbn-menu .bbn-menuitem:hover { background: var(--bg); }
.bbn-menu svg { flex: none; opacity: .75; }
.bbn-menu form { margin: 0; }
.bbn-menu .bbn-badge { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.bbn-menu .bbn-badge.ok { background: #e4f4e6; color: var(--success); }
.bbn-menu hr { border: none; border-top: 1px solid #eee; margin: 4px 0; }

.bb-bar { padding: 9px 20px; font-size: 13px; background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid #f0dca5; }
.bb-bar a { color: var(--warn); font-weight: 700; }
.bb-bar.ok { background: #e8f5e9; color: #1e5e22; border-color: #c8e6c9; }
.bb-bar.danger { background: #fdecea; color: var(--error); border-color: #f5c6c0; }

/* ---------- Seitenleiste + Inhalt (wie /admin/manage) ---------- */
.layout { display: flex; align-items: flex-start; }
.sidebar { width: 230px; flex: 0 0 230px; background: var(--surface); border-right: 1px solid var(--border); min-height: calc(100vh - 62px); padding: 16px 0; position: sticky; top: 62px; max-height: calc(100vh - 62px); overflow-y: auto; }
.sidebar .group-label { padding: 16px 20px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.sidebar .group-label:first-of-type { padding-top: 6px; }
.sidebar .nav-item { display: block; padding: 9px 20px; font-size: 14px; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.sidebar .nav-item:hover { background: var(--bg); }
.sidebar .nav-item.active { background: var(--bg); color: var(--primary); font-weight: 600; border-left-color: var(--primary); }
.menu-toggle, .menu-backdrop, .sidebar .menu-head { display: none; }
body.app main { padding: 24px; flex: 1; min-width: 0; max-width: 1180px; }
body.app:not(.has-side) main { margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.page-head h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
.page-help { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); text-decoration: none; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 12px; }
.page-help:hover { color: var(--primary); border-color: var(--primary); }

/* Karten, Überschriften */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: none; }
.card.page-card { padding: 22px 24px; }
.card h1 { font-size: 22px; margin: 0 0 14px; }
.page-card > h1:first-child { display: none; }  /* Titel steht bereits im Seitenkopf */
.card h2 { font-size: 17px; margin: 24px 0 10px; }
.card h2:first-child { margin-top: 0; }
.card h3 { font-size: 15px; margin: 18px 0 8px; }
.card p { line-height: 1.55; }
.section { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 18px; }
.lead { font-size: 15px; color: #444; margin-top: 0; }
.muted, .hint { color: var(--text-muted); font-size: 13px; }

/* Formulare – gleiche Maße wie birdiebook */
.field { margin: 12px 0; }
.field label, label.lbl { display: block; font-size: 13px; color: var(--text-muted); font-weight: 400; margin: 0 0 4px; }
.field input, .field select, .field textarea, input.inp, select.inp, textarea.inp {
  width: 100%; display: block; margin-top: 4px; min-height: 40px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px;
  font: 14px "Helvetica Neue", Arial, sans-serif; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { outline: 2px solid rgba(232,98,44,.35); outline-offset: 0; border-color: var(--primary); }
.field input[type=checkbox], .field input[type=radio] { width: auto; min-height: 0; display: inline-block; margin: 0 6px 0 0; }
.field input[type=color] { height: 42px; padding: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); margin: 10px 0; }
.check input { width: auto; margin: 3px 0 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; min-width: 0; }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 16px; background: var(--primary);
  color: #fff; border: 1px solid var(--primary); border-radius: 8px; text-decoration: none; font: 600 14px "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.btn:hover { background: #d45220; border-color: #d45220; color: #fff; }
.btn.secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.secondary:hover { background: #fff4ee; color: var(--primary); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.danger { background: #fff; color: var(--error); border-color: #e6b3ae; }
.btn.danger:hover { background: #fdecea; }
.btn.small { min-height: 32px; padding: 5px 11px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 20px; }
form.inline { display: inline; margin: 0; }

/* Meldungen */
.ok, .err, .msg { font-size: 13.5px; padding: 9px 12px; border-radius: 8px; margin: 10px 0; }
.ok, .msg.ok { background: #e4f4e6; color: var(--success); }
.err, .msg.err { background: #fdecea; color: var(--error); }
.msg.info { background: #eef4fb; color: #1d4d7a; }
.msg.warn { background: var(--warn-bg); color: var(--warn); }

/* Tabellen */
.table, .wallet-table-wrap table, table.bb { width: 100%; border-collapse: collapse; margin-top: 8px; }
.table th, .table td, .wallet-table-wrap th, .wallet-table-wrap td, table.bb th, table.bb td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); font-size: 13.5px; white-space: nowrap; }
.table th, .wallet-table-wrap th, table.bb th { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: none; background: #faf9f6; }
.table tr:hover td, table.bb tr:hover td { background: #fcfbf9; }
.wallet-table-wrap, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
td.num, th.num, table.bb td.num, table.bb th.num, .table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Pillen / Status */
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eee; color: #555; white-space: nowrap; }
.pill.ok { background: #e4f4e6; color: var(--success); padding: 2px 9px; margin: 0; font-size: 11.5px; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.err { background: #fdecea; color: var(--error); padding: 2px 9px; margin: 0; font-size: 11.5px; }
.pill.orange { background: #fde6db; color: #a3401a; }

/* Kacheln / Kennzahlen (wie birdiebook-Reporting) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.kpi-tile { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi-tile b { font-size: 24px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi-tile span { font-size: 12.5px; color: var(--text-muted); }
.kpi-tile small { font-size: 12px; color: var(--text-muted); }
.kpi-tile.orange { border-color: #f3c3ad; background: #fff8f4; }
.kpi-tile.orange b { color: var(--primary); }
.kpi-tile.green b { color: var(--success); }
.kpi { font-size: 26px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-decoration: none; color: inherit; display: block; }
a.mini-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(232,98,44,.12); }
.mini-card h3 { margin: 0 0 4px; font-size: 15px; }
.mini-card p { margin: 0; font-size: 13px; color: var(--text-muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.tile { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; color: inherit; text-decoration: none; }
.tile:hover { border-color: var(--primary); }
.tile .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fde6db; color: var(--primary); display: grid; place-items: center; font-size: 18px; }
.tile b { display: block; font-size: 14px; }
.tile span { font-size: 12.5px; color: var(--text-muted); }

/* Balkendiagramm ohne Bibliothek */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding: 8px 0 0; border-bottom: 1px solid var(--border); }
.bars .b { flex: 1 1 0; min-width: 3px; background: var(--primary); border-radius: 3px 3px 0 0; position: relative; }
.bars .b.alt { background: var(--accent); }
.bars .b:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--bg-dark); color: #fff; font-size: 11px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; margin-bottom: 4px; z-index: 5; }
.bars-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.hbar { height: 8px; background: #eee; border-radius: 99px; overflow: hidden; min-width: 80px; }
.hbar i { display: block; height: 100%; background: var(--primary); }

/* Zeitraum-Auswahl (wie daterange.js) */
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.presets a, .presets button { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); text-decoration: none; cursor: pointer; }
.presets a.on, .presets a:hover { border-color: var(--primary); color: var(--primary); background: #fff4ee; font-weight: 600; }

/* Tabs (Designer) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 16px; overflow-x: auto; }
.tabs a, .tabs button { padding: 9px 14px; font: 600 14px "Helvetica Neue", Arial, sans-serif; color: var(--text-muted); background: none; border: 0; border-bottom: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tabs .on, .tabs a:hover, .tabs button:hover { color: var(--primary); border-bottom-color: var(--primary); }

details { border-bottom: 1px solid var(--border); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
.badge { font-size: 12px; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.copybox { display: flex; gap: 6px; align-items: center; background: var(--bg); border-radius: 8px; padding: 6px 6px 6px 10px; }
.copybox code { flex: 1; overflow-x: auto; white-space: nowrap; }
.empty { text-align: center; padding: 30px 10px; color: var(--text-muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

.app-footer { text-align: center; margin: 22px 0 8px; color: #8a8a8a; font-size: 12.5px; }
.app-footer a { color: #8a8a8a; }

/* ---------- Anmeldung (wie /admin/login.html) ---------- */
body.auth { background: var(--bg-dark); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 12px; }
.login-logo { display: inline-flex; flex-direction: column; line-height: 1; margin-bottom: 26px; color: #fff; text-decoration: none; }
.login-logo .n { font-size: 36px; font-weight: 700; letter-spacing: .5px; }
.login-logo .n span { color: var(--accent); }
.login-logo .t { margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.9); font-size: 14px; font-weight: 300; letter-spacing: .14em; white-space: nowrap; }
body.auth .box { background: #fff; color: var(--text); border-radius: 14px; padding: 30px; width: 100%; max-width: 360px; }
body.auth .box.wide { max-width: 440px; }
body.auth .box h1 { font-size: 20px; margin: 0 0 14px; }
body.auth .box p { font-size: 13.5px; color: #555; line-height: 1.45; margin: 0 0 12px; }
body.auth .field { margin: 0 0 12px; }
body.auth .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.auth .field input { padding: 11px; border: 1px solid #ddd; font-size: 15px; min-height: 44px; margin: 0; }
body.auth .btn { width: 100%; padding: 12px; font-size: 15px; min-height: 44px; }
body.auth .btn.secondary { margin-top: 8px; }
body.auth .links { text-align: center; margin: 14px 0 0; font-size: 13px; color: #bbb; }
body.auth .links a { color: var(--primary); font-size: 13px; }
body.auth .err { color: var(--error); background: #fdecea; }
.auth-foot { margin-top: 22px; font-size: 12px; color: #888; }
.auth-foot a { color: #aaa; text-decoration: none; }
.code-input { font-size: 22px !important; letter-spacing: .35em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace !important; }
.mfa-steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.45; }
.mfa-steps li { margin-bottom: 6px; }
.mfa-qr { display: flex; justify-content: center; margin: 6px 0 10px; }
.mfa-qr img { width: 200px; height: 200px; border: 1px solid var(--border); border-radius: 10px; image-rendering: pixelated; }
.mfa-key { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .06em; background: var(--bg); border-radius: 8px; padding: 8px 10px; word-spacing: .15em; text-align: center; user-select: all; overflow-wrap: anywhere; }
.mfa-small { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.mfa-applink { display: block; text-align: center; margin: 8px 0 2px; font-size: 13px; color: var(--primary); font-weight: 600; }
.mfa-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 10px 0; padding: 12px; background: var(--bg); border-radius: 10px; }
.mfa-codes span { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .05em; text-align: center; }
.mfa-codebtns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.mfa-codebtns button { flex: 1 1 90px; padding: 9px 8px; font: 600 13px "Helvetica Neue", Arial, sans-serif; background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: 8px; cursor: pointer; }
.pw-meter { height: 5px; border-radius: 9px; background: #eee; margin: -6px 0 10px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--error); transition: width .2s; }

/* ---------- Kundenseiten ---------- */
body.public { background: var(--bg); }
.pub-top { background: var(--bg-dark); padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.pub-top .brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.pub-links { margin-left: auto; display: flex; gap: 14px; }
.pub-links a { color: #ddd; font-size: 14px; text-decoration: none; }
.pub-links a:hover { color: #fff; }
.pub-main { max-width: 900px; margin: 0 auto; padding: 24px 16px 40px; }
.pub-main .page-card > h1:first-child { display: block; }

/* ---------- Handy & Tablet ---------- */
@media (max-width: 900px) {
  nav.bbn { padding: 10px 14px; gap: 6px 12px; position: static; }
  .brand .brand-name { font-size: 20px; } .brand .brand-tag { font-size: 9px; }
  nav.bbn .bbn-spacer { display: none; }
  nav.bbn .bbn-scope { order: 1; margin-left: auto; max-width: 42vw; }
  nav.bbn .bbn-right { order: 1; }
  nav.bbn .bbn-main { order: 2; flex: 1 1 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  nav.bbn .bbn-main::-webkit-scrollbar { display: none; }
  .bbn-userbtn { padding: 3px; }
  .bbn-userbtn .bbn-uname, .bbn-userbtn .bbn-caret { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text);
    padding: 12px 16px; font: 600 16px "Helvetica Neue", Arial, sans-serif; text-align: left; position: sticky; top: 0; z-index: 30; cursor: pointer; }
  .menu-toggle .ico { font-size: 20px; color: var(--primary); }
  .menu-toggle .grp { font-weight: 400; color: var(--text-muted); font-size: 13px; }
  .menu-toggle .chev { margin-left: auto; color: var(--text-muted); }
  .layout { display: block; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); min-height: 0; max-height: none; z-index: 60; overflow-y: auto;
    transform: translateX(-105%); transition: transform .2s ease; box-shadow: 4px 0 24px rgba(0,0,0,.25); padding: 0 0 24px; border-right: none; }
  .sidebar.open { transform: none; }
  .sidebar .menu-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; position: sticky; top: 0; background: var(--surface); }
  .sidebar .menu-head button { background: none; border: 0; color: var(--text); font-size: 22px; padding: 4px 10px; cursor: pointer; }
  .sidebar .nav-item { padding: 13px 20px; font-size: 16px; }
  .menu-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
  body.app main { padding: 12px; }
  .card, .card.page-card { padding: 14px; }
  .page-head h1 { font-size: 19px; }
  .field input, .field select, .field textarea, .inp { font-size: 16px; min-height: 44px; }
  .btn { min-height: 44px; }
  .grid, .grid.three, .designer-grid { grid-template-columns: 1fr; }
  .quick-actions .btn { flex: 1 1 calc(50% - 8px); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
  table.stack td { border: none; padding: 4px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; white-space: normal; font-size: 14.5px; }
  table.stack td::before { content: attr(data-label); flex: 0 0 34%; font-size: 12px; color: var(--text-muted); }
  table.stack td[data-label=""]::before { display: none; }
}
@media print {
  nav.bbn, .sidebar, .menu-toggle, .page-help, .app-footer, .bb-bar, .no-print { display: none !important; }
  body.app main { padding: 0; }
  .card { border: 0; }
}

/* Designer */
.designer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 28px; align-items: start; }
.designer-grid .preview-col { position: sticky; top: 80px; }
.presets-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.preset { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; font: 13px "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.preset:hover { border-color: var(--primary); }
.preset i { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.phone { width: 100%; max-width: 360px; margin: 0 auto; border: 10px solid #1c1c1c; border-radius: 34px; background: #f4f2ee; padding: 18px 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.phone .design-preview { min-height: 440px; border-radius: 18px; padding: 24px; }
.phone .fake-btns { display: flex; gap: 6px; margin-top: 10px; }
.phone .fake-btns span { flex: 1; text-align: center; background: #000; color: #fff; border-radius: 8px; font-size: 11px; padding: 7px 4px; }
.designer-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.print-canvas { position: relative; border: 1px solid var(--border); border-radius: 6px; width: 100%; overflow: hidden; touch-action: none; margin: 10px 0; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.print-item { position: absolute; cursor: grab; touch-action: none; padding: 2px 4px; font-size: clamp(9px, 1.6vw, 15px); border: 1px dashed rgba(255,255,255,.45); border-radius: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; user-select: none; }
.print-item.sel { border: 2px solid var(--primary); box-shadow: 0 0 0 3px rgba(232,98,44,.25); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 12px; font: 13px "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.chip.on { border-color: var(--primary); background: #fff4ee; color: var(--primary); font-weight: 600; }
.chip.off { opacity: .5; text-decoration: line-through; }
@media (max-width: 900px) { .designer-grid .preview-col { position: static; } }

/* Gästeansicht Gutschein */
.gift-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 22px; align-items: start; }
.gift-wrap .public-voucher { margin: 0; max-width: none; }
.gift-qr { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.gift-qr img { width: 220px; height: 220px; margin: 0 auto; image-rendering: pixelated; }
.gift-qr b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: .06em; }
.gift-qr span { font-size: 13px; color: var(--text-muted); }
.wallet-btns { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
.wallet-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #000; color: #fff; border-radius: 10px; padding: 12px 16px; font-weight: 600; text-decoration: none; }
.wallet-btn span { font-size: 18px; }
.wallet-btns { align-items: flex-start; }
.wallet-btn.classic { justify-content: flex-start; gap: 10px; min-width: 210px; height: 50px; padding: 0 18px; border-radius: 10px; border: 1px solid #a6a6a6; background: #000; color: #fff; }
.wallet-btn.classic svg { width: 30px; height: 24px; flex: 0 0 auto; }
.wallet-btn.classic span { display: flex; flex-direction: column; line-height: 1.1; font-size: 19px; text-align: left; }
.wallet-btn.classic small { font-size: 11px; font-weight: 400; letter-spacing: .02em; }
.wallet-btn.classic b { font-weight: 600; font-size: 19px; }
.wallet-badge { display: inline-block; line-height: 0; }
.wallet-badge img { height: 50px; width: auto; }
/* Scanner: Artikel & Aufladen */
.sc-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 12px 0; }
.sc-art { position: relative; border: 2px solid #3a3a3a; background: #1f1f1f; color: #fff; border-radius: 14px; padding: 12px 10px; text-align: left; font: inherit; cursor: pointer; min-height: 70px; }
.sc-art b { display: block; font-size: 15px; }
.sc-art span { color: #bbb; font-size: 14px; }
.sc-art i { position: absolute; top: -8px; right: -8px; min-width: 26px; height: 26px; border-radius: 13px; background: #E8622C; color: #fff; font-style: normal; font-weight: 700; display: none; align-items: center; justify-content: center; padding: 0 6px; }
.sc-art.on { border-color: var(--primary); background: rgba(232,98,44,.18); }
.sc-art.on i { display: flex; }
.sc-basket { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #2a2522; color: #fff; border-radius: 12px; padding: 10px 14px; margin: 6px 0 12px; font-size: 14px; }
.sc-basket button { border: 0; background: none; color: #f2a65a; font: inherit; text-decoration: underline; cursor: pointer; }
.sc-src { font-size: 12px; color: #aaa; margin: 6px 0 0; }
.sc-topup { margin-top: 18px; border-top: 1px dashed #555; padding-top: 14px; color: #fff; }
.sc-topup summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.sc-pay { display: flex; gap: 8px; margin: 10px 0; }
.sc-pay label { flex: 1; border: 2px solid #3a3a3a; background: #1f1f1f; color: #fff; border-radius: 12px; padding: 12px; text-align: center; cursor: pointer; font-weight: 600; }
.sc-pay input { position: absolute; opacity: 0; }
.sc-pay label:has(input:checked) { border-color: #2e9e6a; background: rgba(46,158,106,.2); }
.sc-go.topup { background: #1c7c54; }
.scan-result { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; background: var(--bg); border-radius: 12px; padding: 14px 16px; margin: 16px 0 6px; }
.scan-bal b { display: block; font-size: 30px; color: var(--primary); }
.amount-presets { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
@media (max-width: 900px) { .gift-wrap { grid-template-columns: 1fr; } }

/* ---------- Handy: Feinschliff für alle Seiten ---------- */
@media (max-width: 900px) {
  body.app main input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]),
  body.app main select, body.app main textarea { min-height: 44px; font-size: 16px; }
  body.app main input[type=file] { font-size: 15px; max-width: 100%; }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
  .presets a, .presets button, .chip, .preset { min-height: 40px; display: inline-flex; align-items: center; }
  .btn.small { min-height: 38px; }
  .pub-links a { padding: 10px 6px; }
  .pub-top { padding: 10px 14px; }
  .pub-main { padding: 14px 12px 30px; }
  .page-card table:not(.stack) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.stack tr.stack-head { display: none; }
  table.stack td.num { justify-content: flex-start; }
  .page-card form.row, .page-card form .row { gap: 0 12px; }
  .quick-actions form.inline { flex: 1 1 calc(50% - 8px); }
  .quick-actions form.inline .btn { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi-tile { padding: 12px; }
  .kpi-tile b { font-size: 19px; }
  .page-head { margin-bottom: 10px; }
  .scan-bal b { font-size: 26px; }
  #preview { width: 100% !important; max-width: none !important; border-radius: 12px; margin: 10px 0; }
  .bbn-menu { position: fixed; left: 10px; right: 10px; top: 60px; min-width: 0; }
}
@media (max-width: 380px) { .kpis { grid-template-columns: 1fr; } }
@media (max-width: 900px) { body.help .help-back a { display: inline-block; padding: 10px 4px; } }

/* ================= Scanner-App (Vollbild auf dem Handy) ================= */
body.scanner-app { background: #121212; color: #fff; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.sc-top { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: #1c1c1c; position: sticky; top: 0; z-index: 20; }
.sc-brand { text-decoration: none; line-height: 1; }
.sc-brand .brand-name { font-size: 19px; }
.sc-switch { margin: 0 auto; display: flex; background: #2b2b2b; border-radius: 999px; padding: 3px; }
.sc-switch a { color: #ccc; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; }
.sc-switch a.on { background: var(--primary); color: #fff; }
.sc-menu { position: relative; }
.sc-menu summary { list-style: none; cursor: pointer; }
.sc-menu summary::-webkit-details-marker { display: none; }
.sc-menu .bbn-avatar { width: 34px; height: 34px; font-size: 15px; }
.sc-menu-pop { position: absolute; right: 0; top: 44px; background: #fff; color: var(--text); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.4); padding: 8px; min-width: 220px; z-index: 30; display: flex; flex-direction: column; }
.sc-menu-pop b { padding: 6px 10px 8px; border-bottom: 1px solid #eee; margin-bottom: 4px; font-size: 14px; }
.sc-menu-pop a, .sc-menu-pop button { display: block; text-align: left; padding: 12px 10px; color: var(--text); text-decoration: none; font: 15px "Helvetica Neue", Arial, sans-serif; background: none; border: 0; border-radius: 8px; width: 100%; cursor: pointer; }
.sc-menu-pop a:hover, .sc-menu-pop button:hover { background: var(--bg); }
.sc-menu-pop form { margin: 0; border-top: 1px solid #eee; margin-top: 4px; padding-top: 4px; }
.sc-main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 12px 12px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.sc-main .msg { margin: 0; font-size: 15px; }
.sc-profile { display: flex; align-items: center; gap: 10px; background: #1f1f1f; border: 1px solid #333; border-radius: 12px; padding: 8px 12px; margin: 0; }
.sc-profile span, .sc-profile label { color: #aaa; font-size: 13px; white-space: nowrap; }
.sc-profile b { margin-left: auto; }
.sc-profile select { margin-left: auto; flex: 1; min-width: 0; background: #2b2b2b; color: #fff; border: 1px solid #444; border-radius: 10px; padding: 10px 12px; font-size: 16px; min-height: 44px; }
/* Kamera */
.sc-cam { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 62vh; background: #000; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px #333; }
.sc-cam video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.sc-frame { position: absolute; inset: 16%; pointer-events: none; }
.sc-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--primary); }
.sc-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.sc-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.sc-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.sc-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.sc-cam.live .sc-frame::after { content: ''; position: absolute; left: 6%; right: 6%; height: 2px; background: rgba(232,98,44,.85); box-shadow: 0 0 12px var(--primary); animation: scline 2.2s ease-in-out infinite; }
@keyframes scline { 0%, 100% { top: 8%; } 50% { top: 90%; } }
.sc-cam.hit .sc-frame i { border-color: #4caf50; }
.sc-cam-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.sc-cam.live .sc-cam-msg { justify-content: flex-end; padding-bottom: 14px; }
.sc-cam.live .sc-start { display: none; }
.sc-cam-msg small { color: #ddd; font-size: 14px; background: rgba(0,0,0,.45); padding: 6px 12px; border-radius: 999px; }
.sc-start { background: var(--primary); color: #fff; border: 0; border-radius: 16px; padding: 18px 28px; font: 700 18px "Helvetica Neue", Arial, sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(232,98,44,.4); }
.sc-manual { background: #1f1f1f; border: 1px solid #333; border-radius: 14px; padding: 12px; }
.sc-manual label { display: block; color: #aaa; font-size: 13px; margin-bottom: 6px; }
.sc-manual div { display: flex; gap: 8px; }
.sc-manual input { flex: 1; min-width: 0; background: #2b2b2b; color: #fff; border: 1px solid #444; border-radius: 10px; padding: 12px; font: 16px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.sc-manual .btn { min-height: 48px; }
.sc-links { text-align: center; font-size: 14px; color: #888; margin: 0; }
.sc-links a { color: #bbb; }
/* Gutschein */
.sc-card { background: #fff; color: var(--text); border-radius: 18px; padding: 16px 18px; }
.sc-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sc-card-head span { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.sc-card-head b { display: block; font: 700 20px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .03em; word-break: break-all; }
.sc-card-head small { display: block; color: var(--text-muted); font-size: 14px; margin-top: 2px; }
.sc-bal { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; align-items: baseline; justify-content: space-between; }
.sc-bal span { color: var(--text-muted); font-size: 14px; }
.sc-bal b { font-size: 34px; color: var(--primary); letter-spacing: -.02em; }
.sc-amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-amt { min-height: 64px; border-radius: 14px; border: 2px solid #3a3a3a; background: #1f1f1f; color: #fff; font: 700 19px "Helvetica Neue", Arial, sans-serif; cursor: pointer; line-height: 1.1; }
.sc-amt small { font-weight: 400; font-size: 12px; color: #bbb; }
.sc-amt.on { border-color: var(--primary); background: rgba(232,98,44,.18); }
.sc-amt:disabled { opacity: .3; }
.sc-custom { display: flex; align-items: center; gap: 8px; background: #1f1f1f; border: 1px solid #333; border-radius: 14px; padding: 6px 12px; }
.sc-custom span { color: #aaa; font-size: 14px; white-space: nowrap; }
.sc-custom input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 700 24px "Helvetica Neue", Arial, sans-serif; text-align: right; padding: 8px 0; outline: none; }
.sc-custom em { font-style: normal; font-size: 20px; color: #aaa; }
.sc-receipt { display: block; }
.sc-receipt span { color: #aaa; font-size: 13px; }
.sc-receipt input, .sc-receipt-opt input { width: 100%; background: #2b2b2b; color: #fff; border: 1px solid #444; border-radius: 10px; padding: 12px; font-size: 16px; margin-top: 6px; }
.sc-receipt-opt { border: 0; padding: 0; color: #aaa; font-size: 14px; }
.sc-receipt-opt summary { font-weight: 400; color: #aaa; padding: 4px 0; }
.sc-go { width: 100%; min-height: 60px; border: 0; border-radius: 16px; background: #2e7d32; color: #fff; font: 700 20px "Helvetica Neue", Arial, sans-serif; cursor: pointer; margin-top: 4px; }
.sc-go:disabled { background: #333; color: #888; }
.sc-cancel { text-align: center; color: #aaa; font-size: 15px; padding: 12px; }
.sc-hint { color: #ccc; }
.sc-demo { background: #b3261e; color: #fff; text-align: center; font-weight: 700; border-radius: 10px; padding: 8px; }
.sc-recent { background: #fff4d6; color: #7a5200; border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.4; border: 2px solid #f2a65a; }
.scanner-app form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.scanner-app .sc-profile { flex-direction: row; }
.scanner-app .sc-manual { display: block; }
/* Bestätigung */
.sc-done { background: #1f1f1f; border-radius: 22px; padding: 28px 18px 20px; text-align: center; margin-top: 8px; }
.sc-check { width: 96px; height: 96px; border-radius: 50%; background: #2e7d32; color: #fff; display: grid; place-items: center; font-size: 56px; font-weight: 700; margin: 0 auto 10px; animation: pop .35s ease-out; }
.sc-done.warn .sc-check { background: #f2a65a; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sc-done h1 { margin: 0; font-size: 26px; }
.sc-amount { font-size: 44px; font-weight: 700; margin: 8px 0 0; letter-spacing: -.02em; }
.sc-rest { color: #ccc; font-size: 18px; margin: 4px 0; }
.sc-rest b { color: #fff; }
.sc-meta { color: #888; font-size: 14px; }
.sc-note { color: #f2a65a; }
.sc-next { display: block; background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; border-radius: 16px; padding: 18px; margin-top: 18px; }
.sc-auto { color: #888; font-size: 13px; }
.sc-ticket { background: #fff; color: var(--text); border-radius: 18px; padding: 16px 18px; }
.sc-ticket h2 { margin: 0 0 4px; font-size: 20px; }
.sc-ticket p { margin: 2px 0; color: var(--text-muted); }
@media (min-width: 700px) { .sc-cam { aspect-ratio: 4 / 3; } }
.sc-menu summary { text-decoration: none; border: 0; padding: 0; }
.scanner-app details.sc-menu { border: 0; padding: 0; }
.scanner-app form.sc-profile { flex-direction: row; align-items: center; gap: 10px; }

/* ======================================================================
   Version 2.1 – Plattform, Rollen & Rechte, Vorlagen, Sammelliste
   ====================================================================== */
/* Kopfleiste: Hotel-Auswahl wie in Housekeeping */
nav.bbn select.bbn-hotel { padding: 6px 10px; border-radius: 6px; border: none; width: auto; max-width: 340px; font: 14px "Helvetica Neue", Arial, sans-serif; background: #fff; color: var(--text); }
.bbn-menu .bbn-badge.app { background: #f4f2ee; color: var(--text-muted); font-weight: 500; }
@media (max-width: 900px) { nav.bbn select.bbn-hotel { order: 3; flex: 1 1 100%; max-width: none; font-size: 16px; padding: 9px 10px; } }

/* Karten wie /admin/manage */
.card > h3:first-child { margin-top: 0; font-size: 17px; }
.card-lead { font-size: 13px; color: var(--text-muted); margin: -2px 0 12px; line-height: 1.5; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #f4f2ee; color: var(--text-muted); vertical-align: middle; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
td.acts-cell { white-space: normal; }
.st-ok { color: var(--success); white-space: nowrap; } .st-warn { color: #b45309; } .st-err { color: var(--error); }
.inp.small, select.inp.small { min-height: 32px; padding: 4px 8px; font-size: 13px; width: auto; display: inline-block; margin: 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -6px 18px rgba(0,0,0,.06); }

/* Team / Rechte */
table.team td { vertical-align: top; }
.role-form select { min-width: 170px; }
.role-scope { margin-top: 6px; display: grid; gap: 6px; }
.role-scope .field { margin: 0; }
table.perm-matrix th, table.perm-matrix td { white-space: normal; font-size: 13px; }
table.perm-matrix th { text-align: center; min-width: 88px; }
table.perm-matrix th:first-child, table.perm-matrix td:first-child { text-align: left; min-width: 240px; }
table.perm-matrix td.c { text-align: center; }
table.perm-matrix input { width: 18px; height: 18px; accent-color: var(--primary); }
table.perm-matrix tr.grp td { background: #faf9f6; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.role-grid div { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.role-grid b { display: block; font-size: 14px; } .role-grid span { font-size: 12.5px; color: var(--text-muted); }

/* Unternehmen: Gesellschaft → Marke → Hotel */
.org-row { align-items: center; margin-bottom: 6px; }
.org-row .field { margin: 0; }
.org-count { flex: 0 0 auto !important; font-size: 12px; }
.org-tree { border-left: 3px solid var(--primary); padding-left: 14px; }
.org-company { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.org-brand { border-left: 2px solid var(--border); margin: 0 0 12px 6px; padding-left: 14px; }
.org-bname { font-weight: 600; margin-bottom: 6px; }
details.org-hotel { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; background: #fff; }
details.org-hotel summary { cursor: pointer; }
details.org-hotel form { margin-top: 8px; }

/* Vorlagen */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tpl-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.tpl-card.off { opacity: .6; }
.tpl-mini { position: relative; overflow: hidden; border-radius: 10px; padding: 14px; min-height: 110px; display: flex; flex-direction: column; gap: 4px; }
.tpl-mini::before { content: ""; position: absolute; right: -40px; top: -60px; width: 140px; height: 140px; border-radius: 50%; background: var(--design-accent); opacity: .25; }
.tpl-mini > * { position: relative; }
.tpl-mini img { max-height: 28px; max-width: 110px; object-fit: contain; align-self: flex-start; }
.tpl-mini small { font-size: 10px; letter-spacing: .15em; }
.tpl-mini b { font-size: 20px; margin-top: auto; border-top: 2px solid var(--design-accent); padding-top: 6px; }
.tpl-meta b { display: block; } .tpl-meta span { font-size: 12.5px; color: var(--text-muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.seg label { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 600; }
.seg label small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; }
.seg label:has(input:checked) { border-color: var(--primary); background: #fff4ee; }
.seg input { accent-color: var(--primary); margin-right: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid; cursor: pointer; position: relative; padding: 0; }
.swatch i { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; }
.tpl-preview-wrap { position: sticky; top: 80px; }
.pv-note { font-size: 13px; opacity: .9; }
.design-preview.v-item .preview-value { font-size: 28px; }

/* Ausstellen */
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.tpl-opt { position: relative; text-align: left; border-radius: 12px; padding: 12px 14px; min-height: 92px; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  background: var(--tb, #fff); color: var(--tt, var(--text)); border: 2px solid transparent; box-shadow: 0 1px 0 rgba(0,0,0,.04); font: 14px "Helvetica Neue", Arial, sans-serif; text-decoration: none; }
.tpl-opt small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.tpl-opt b { font-size: 15px; }
.tpl-opt span { font-size: 13px; opacity: .9; margin-top: auto; border-top: 2px solid var(--ta, var(--primary)); padding-top: 4px; }
.tpl-opt.plain, .tpl-opt.add { background: #fff; color: var(--text); border: 1px dashed var(--border); }
.tpl-opt.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,98,44,.25); }
.tpl-opt.on::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.issue-go { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn.big { min-height: 50px; font-size: 16px; padding: 12px 22px; flex: 1 1 220px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
details.more { border: 0; padding: 0; margin: 4px 0; }
details.more summary { cursor: pointer; color: var(--primary); font-size: 14px; font-weight: 600; }
.issued-list { display: grid; gap: 8px; }
.issued { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.issued b { font-size: 16px; } .issued span { color: var(--text-muted); flex: 1 1 auto; }
.tpl-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 14px; }
.tpl-chip { padding: 6px 12px; border-radius: 999px; background: var(--tb); color: var(--tt); border: 2px solid var(--ta); text-decoration: none; font-size: 13px; font-weight: 600; }

/* Sammelliste & Suche */
.bulkbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; padding: 8px 10px; background: #faf9f6; border-radius: 10px; }
.bulkbar .bbn-spacer { flex: 1 1 auto; }
table.coll td { vertical-align: middle; }
table.coll input.inp { min-width: 220px; }
.search-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr auto; gap: 10px; align-items: end; }
.search-grid .field { margin: 0; }
.search-grid .sg-btn { display: flex; gap: 6px; }
@media (max-width: 1100px) { .search-grid { grid-template-columns: 1fr 1fr; } .search-grid .sg-q { grid-column: 1 / -1; } }
@media (max-width: 600px) { .search-grid { grid-template-columns: 1fr; } }
ul.timeline { list-style: none; padding: 0; margin: 0; }
ul.timeline li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.send-box { margin-top: 12px; } .send-box label { font-size: 13px; color: var(--text-muted); } .send-box .row { flex-wrap: nowrap; gap: 6px; } .send-box .inp { flex: 1 1 auto; }

/* Kalender (wie Housekeeping) in Formularzeilen */
.field .bbd-trigger { margin-top: 4px; min-height: 40px; }
.report-filter .field { margin: 0; }

/* Plattform: Apps, Zahlung, Tarife */
.app-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.app-tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.app-tile.here { border-color: var(--primary); background: #fff9f5; }
.app-tile b { font-size: 15px; } .app-tile small { color: var(--text-muted); } .app-tile a { font-size: 13px; font-weight: 600; margin-top: 4px; }
.app-tile .pill { align-self: flex-start; }
.pay-cur { display: flex; gap: 14px; align-items: center; }
.pay-cur .ic { width: 44px; height: 44px; border-radius: 12px; background: #fdf1ea; display: grid; place-items: center; font-size: 22px; flex: none; }
.pay-cur b { display: block; font-size: 16px; } .pay-cur small { color: var(--text-muted); }
details.pay-change { margin-top: 12px; border: 0; padding: 0; }
details.pay-change summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.pay-opt { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.pay-opt.inline-opt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-opt.inline-opt small { color: var(--text-muted); flex: 1 1 200px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.plan { border: 1px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.plan:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,98,44,.15); }
.plan input { accent-color: var(--primary); }
.plan .price { font-size: 22px; font-weight: 700; } .plan .price small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.plan small { color: var(--text-muted); }
.steps-check div { font-size: 14px; margin: 12px 0 4px; } .steps-check .done { color: var(--success); } .steps-check .todo { color: var(--error); }
.steps3 { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.steps3 div { flex: 1 1 160px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--text-muted); }
.steps3 div b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eee; color: #555; margin-right: 6px; font-size: 12px; }
.steps3 .now { border-color: var(--primary); color: var(--text); } .steps3 .now b { background: var(--primary); color: #fff; }
.steps3 .done b { background: #e4f4e6; color: var(--success); }
.mono-area { font-family: ui-monospace, Menlo, Consolas, monospace !important; font-size: 13px !important; line-height: 1.5; }
.legal-doc { max-width: 820px; line-height: 1.6; font-size: 14.5px; }
.legal-doc h2 { font-size: 17px; margin: 22px 0 8px; }
#legalPrev { border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-top: 14px; background: #fffdfb; }

/* Einrichtung */
.progress { height: 10px; border-radius: 99px; background: #eee; overflow: hidden; margin: 6px 0; }
.progress i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
ol.setup-steps { list-style: none; padding: 0; margin: 0; }
ol.setup-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
ol.setup-steps li:last-child { border-bottom: 0; }
ol.setup-steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eee; font-weight: 700; }
ol.setup-steps li.done .n { background: #e4f4e6; color: var(--success); }
ol.setup-steps li.next .n { background: var(--primary); color: #fff; }
ol.setup-steps li div { flex: 1 1 auto; } ol.setup-steps b { display: block; } ol.setup-steps span { font-size: 13px; color: var(--text-muted); }

/* Scanner: Sachgutschein, Version */
.sc-itembox b { font-size: 22px !important; }
.sc-valid { font-size: 13px; opacity: .75; margin-top: 4px; }
.sc-go.sc-go-item { background: var(--success); }
.sc-amount.sc-item { font-size: 30px; }
.sc-menu-pop .sc-role { display: block; font-size: 12px; color: #999; margin: -4px 0 6px; }
.sc-menu-pop .sc-ver, .sc-ver-line { display: block; font-size: 11px; color: #888; margin-top: 8px; text-align: center; }

/* Druckansicht Gutscheine */
body.print-cards { background: #fff; padding: 16px; }
.pc-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
section.pc { display: grid; grid-template-columns: 1fr 190px; gap: 18px; align-items: center; page-break-inside: avoid; break-inside: avoid; margin: 0 0 18mm; }
section.pc .public-voucher { margin: 0; min-height: 300px; }
.pc-qr { text-align: center; } .pc-qr img { width: 170px; height: 170px; } .pc-qr b { display: block; font-size: 15px; margin-top: 6px; } .pc-qr span { font-size: 12px; color: #666; }
@media print { .no-print { display: none !important; } body.print-cards { padding: 0; } section.pc:nth-of-type(2n) { page-break-after: always; } }
/* v2.2 – Scanner-Zugang (Hotel-Code + PIN), zentrale Anmeldung */
.pin-big { font: 700 44px/1.1 "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .12em; text-align: center; padding: 14px; margin: 8px 0 14px; background: var(--bg); border-radius: 12px; color: var(--text); }
ul.checklist { list-style: none; padding: 0; margin: 12px 0 16px; }
ul.checklist li { padding: 4px 0 4px 26px; position: relative; }
ul.checklist li::before { content: "✓"; position: absolute; left: 4px; color: #2e7d32; font-weight: 700; }
.box .card { box-shadow: none; border: 0; padding: 0; margin: 0; }
.box hr { border: 0; border-top: 1px solid var(--border, #e2ded6); margin: 18px 0; }

.guest-top { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 10px 16px; }
.guest-brand { display: inline-flex; align-items: center; gap: 12px; }
.guest-logo { max-height: 44px; max-width: 180px; width: auto; display: block; }
.guest-name { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.guest-name.big { font-size: 20px; }
.guest-foot { font-size: 12px; }
[hidden] { display: none !important; }

/* Benutzermenü: QR-Code „Scanner aufs Handy“ */
.bbn-scanqr { display: flex; gap: 12px; align-items: center; padding: 10px 14px; }
.bbn-scanqr-img { flex: 0 0 104px; width: 104px; height: 104px; border: 1px solid var(--border); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bbn-scanqr-img img { width: 100%; height: 100%; }
.bbn-scanqr-img span { font-size: 11px; color: #888; text-align: center; padding: 4px; }
.bbn-scanqr b { display: block; font-size: 14px; }
.bbn-scanqr small { display: block; font-size: 12px; color: var(--muted, #6b625b); line-height: 1.35; margin-top: 2px; white-space: normal; }
/* Vorlagen-Designer: Vorschau Apple Wallet */
.wp-grid { display: flex; flex-direction: column-reverse; gap: 16px; }
.wp-prev-wrap { display: flex; flex-direction: column; align-items: center; background: #ece7e2; border-radius: 12px; padding: 14px 10px 18px; }
.wpass { width: 300px; border-radius: 14px; padding: 12px 0 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; overflow: hidden; margin-top: 8px; }
.wpass small { display: block; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.wpass b { display: block; font-weight: 400; }
.wp-top { display: flex; align-items: center; gap: 8px; padding: 0 14px 10px; min-height: 34px; }
.wp-logo img { max-height: 30px; max-width: 110px; display: block; }
.wp-ltext { flex: 1; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-head { text-align: right; }
.wp-head b { font-size: 15px; }
.wp-strip { padding: 10px 14px 12px; min-height: 60px; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; }
.wp-strip.banner { min-height: 115px; }
.wp-strip.logo { background-size: 42% auto; background-repeat: no-repeat; background-position: 88% center; }
.wp-strip b { font-size: 30px; line-height: 1.1; }
.wp-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px 0; }
.wp-row > div:last-child { text-align: right; }
.wp-row b { font-size: 13px; }
.wp-qr { display: flex; justify-content: center; padding-top: 14px; }
.wp-qr span { width: 92px; height: 92px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M0 0h7v7H0zM14 0h7v7h-7zM0 14h7v7H0z' fill='%23000'/%3E%3Cpath d='M1 1h5v5H1zM15 1h5v5h-5zM1 15h5v5H1z' fill='%23fff'/%3E%3Cpath d='M2 2h3v3H2zM16 2h3v3h-3zM2 16h3v3H2zM9 1h2v2H9zM8 4h3v2H8zM9 8h4v2H9zM14 9h3v3h-3zM8 12h2v4H8zM12 13h3v2h-3zM16 14h3v2h-3zM11 17h4v3h-4zM17 18h3v2h-3zM1 9h3v2H1zM4 11h2v2H4z' fill='%23000'/%3E%3C/svg%3E") center/80px no-repeat; border-radius: 6px; }

/* Speichern-Leiste bleibt bei langen Formularen sichtbar */
.sticky-save{position:sticky;bottom:0;z-index:5;background:var(--surface);padding:12px 0;margin-top:16px;border-top:1px solid var(--border);box-shadow:0 -6px 12px -8px rgba(0,0,0,.12)}
.wp-qr { flex-direction: column; align-items: center; gap: 4px; }
.wp-qr .wp-code { font-style: normal; font-size: 11px; letter-spacing: .04em; opacity: .85; }
.wp-row [hidden] { display: none; }
