/* Reservierungsbuch Zur Post – Grundlayout (ab Tablet) */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --rb-ink: #14201d;
  --rb-ink-2: #2c3d38;
  --rb-muted: #5f6b66;
  --rb-bg: #f5f3ee;
  --rb-card: #ffffff;
  --rb-line: #e2ddd3;
  --rb-line-2: #d8d2c6;
  --rb-accent: #24563f;
  --rb-accent-dark: #163a2a;
  --rb-alc: #b42318;
  --rb-va: #6941c6;
  --rb-pub: #b7791f;   /* öffentliche Veranstaltung (Wine & Dine) */
  --rb-cat: #5b6470;
  --rb-warn-bg: #fdf1dc;
  --rb-warn-line: #ecd2a2;
  --rb-warn-ink: #5c3304;
  --rb-err-bg: #f8e6e3;
  --rb-err-ink: #7a1c13;
  --rb-ok-bg: #e3efe9;
  --rb-ok-ink: #1f5a44;
  --bs-body-font-family: 'IBM Plex Sans', system-ui, sans-serif;
  --bs-body-color: var(--rb-ink);
  --bs-body-bg: var(--rb-bg);
  --bs-link-color-rgb: 36, 86, 63;
  --bs-link-hover-color-rgb: 22, 58, 42;
}

body { background: var(--rb-bg); color: var(--rb-ink); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; min-width: 768px; }
@media (max-width: 767.98px) { body { min-width: 0; } }

/* ---- Kopfzeile ---- */
.rb-header { background: var(--rb-ink); color: #fff; padding-top: env(safe-area-inset-top); }
.rb-header-inner { max-width: 1440px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.rb-brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.rb-brand:hover { color: #fff; }
.rb-brand span, .rb-muted-light { color: #b9c7c1; font-weight: 400; }
.rb-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.rb-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; color: #d7e2dd; text-decoration: none; }
.rb-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.rb-nav a.active { background: var(--rb-ink-2); color: #fff; font-weight: 600; }
.rb-nav a .bi { margin-right: 6px; }
.rb-user { display: flex; align-items: center; gap: 10px; }
.rb-avatar { width: 34px; height: 34px; border-radius: 50%; background: #3f7a5f; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.rb-link-btn { background: none; border: 0; color: #d7e2dd; text-decoration: underline; min-height: 44px; padding: 0 8px; font: inherit; cursor: pointer; }
.rb-link-btn:hover { color: #fff; }

/* ---- Inhalt ---- */
.rb-main { max-width: 1440px; margin: 0 auto; padding: 20px 24px 48px; display: flex; flex-direction: column; gap: 16px; }
.rb-card { background: var(--rb-card); border: 1px solid var(--rb-line); border-radius: 12px; }
.rb-card-pad { padding: 16px 18px; }
.rb-h1 { font-size: 24px; font-weight: 700; margin: 0; }
.rb-h2 { font-size: 17px; font-weight: 700; margin: 0; }
.rb-muted { color: var(--rb-muted); }
.rb-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.rb-grow { flex: 999 1 560px; min-width: 0; }
.rb-side { flex: 1 1 340px; min-width: 0; }

.btn { min-height: 44px; border-radius: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-sm { min-height: 36px; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }
.btn-rb { background: var(--rb-accent); border-color: var(--rb-accent); color: #fff; }
.btn-rb:hover, .btn-rb:focus { background: var(--rb-accent-dark); border-color: var(--rb-accent-dark); color: #fff; }
.btn-rb-outline { background: #fff; border: 1px solid var(--rb-accent); color: var(--rb-accent); }
.btn-rb-outline:hover { background: var(--rb-ok-bg); color: var(--rb-accent-dark); border-color: var(--rb-accent-dark); }
.btn-plain { background: #fff; border: 1px solid var(--rb-line-2); color: var(--rb-ink); }
.btn-plain:hover { background: #faf8f4; }
.btn-danger-soft { background: #fff; border: 1px solid var(--rb-line-2); color: var(--rb-err-ink); }
.btn-danger-soft:hover { background: var(--rb-err-bg); color: var(--rb-err-ink); }

.form-control, .form-select { min-height: 44px; border-radius: 10px; border-color: #8a948f; background-color: #fff; }
.rb-field-kuerzel { flex: 0 0 110px; }
.rb-device-name { min-width: 200px; }
.form-control:focus, .form-select:focus { border-color: var(--rb-accent); box-shadow: 0 0 0 .2rem rgba(36,86,63,.2); }
.form-label { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.form-text { color: var(--rb-muted); }
.form-check-input { width: 1.25em; height: 1.25em; }
.form-check-input:checked { background-color: var(--rb-accent); border-color: var(--rb-accent); }

.rb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rb-table th { background: #faf8f4; font-size: 13px; font-weight: 600; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rb-line); white-space: nowrap; }
.rb-table td { padding: 10px 14px; border-bottom: 1px solid #ece8df; vertical-align: middle; }
.rb-table tr.is-selected td { background: #eef4f1; }
.rb-table-wrap { overflow-x: auto; position: relative; }   /* .rb-sr in Tabellen bleibt im Scrollbereich */

.rb-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #efece5; color: #3c4744; white-space: nowrap; }
.rb-chip-ok { background: var(--rb-ok-bg); color: var(--rb-ok-ink); }
.rb-chip-warn { background: var(--rb-warn-bg); color: #8a4b06; }
.rb-chip-err { background: var(--rb-err-bg); color: var(--rb-err-ink); }
.rb-chip-dark { background: var(--rb-ink); color: #fff; }
.rb-stempel { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .08em; }

.rb-flash { max-width: 1392px; width: calc(100% - 48px); margin: 14px auto 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.rb-flash-ok { background: var(--rb-ok-bg); color: var(--rb-ok-ink); }
.rb-flash-err { background: var(--rb-err-bg); color: var(--rb-err-ink); }
.rb-flash-warn { background: var(--rb-warn-bg); color: var(--rb-warn-ink); border: 1px solid var(--rb-warn-line); }
.rb-note { background: var(--rb-warn-bg); border: 1px solid var(--rb-warn-line); color: var(--rb-warn-ink); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.rb-info { background: #faf8f4; border-radius: 10px; padding: 12px 14px; font-size: 14px; }

/* ---- Anmeldung ---- */
body.rb-login { background: var(--rb-ink); color: #fff; min-height: 100vh; }
.rb-login-wrap { max-width: 960px; margin: 0 auto; padding: calc(48px + env(safe-area-inset-top)) 24px 64px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; justify-content: center; }
.rb-login-intro { flex: 1 1 360px; min-width: 0; }
.rb-login-intro .rb-kicker { font-size: 14px; color: #b9c7c1; }
.rb-login-intro h1 { font-size: 30px; font-weight: 700; margin: 6px 0 16px; }
.rb-login-intro p { color: #b9c7c1; font-size: 14px; }
.rb-seg { display: inline-flex; border: 1px solid var(--rb-ink-2); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.rb-seg a { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; color: #fff; text-decoration: none; font-weight: 600; }
.rb-seg a:hover { background: rgba(255,255,255,.06); color: #fff; }
.rb-seg a.active { background: #3f7a5f; }
.rb-login-card { flex: 0 1 360px; min-width: 300px; background: #1f2e2a; border-radius: 18px; padding: 24px; }
.rb-login-card h2 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.rb-login-card .rb-sub { font-size: 13px; color: #b9c7c1; margin-bottom: 18px; }
.rb-login-card .form-label { color: #fff; }
.rb-login-card .form-control { background: var(--rb-ink); color: #fff; border-color: #8fb3a4; }
.rb-login-card .form-control::placeholder { color: #8fa69c; }
.rb-login-error { background: #4a1f1a; color: #f7cfc8; border-radius: 10px; padding: 10px 12px; font-weight: 600; margin-bottom: 14px; }
.rb-login-msg { background: #2c3d38; color: #e6efeb; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.rb-pin-dots { display: flex; gap: 14px; justify-content: center; margin-bottom: 18px; }
.rb-pin-dot { width: 44px; height: 52px; border-radius: 10px; border: 2px solid #8fb3a4; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.rb-pin-dot.filled::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: #8fb3a4; }
.rb-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rb-key { height: 64px; border-radius: 14px; border: 0; background: #34463f; color: #fff; font: inherit; font-size: 24px; font-weight: 600; cursor: pointer; }
.rb-key:hover { background: #3d5249; }
.rb-key:active { background: #4a6158; }
.rb-key-fn { background: var(--rb-ink-2); font-size: 18px; }
.rb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rb-device-line { font-size: 13px; color: #b9c7c1; margin-top: 14px; }
.btn-login { background: #3f7a5f; border: 0; color: #fff; min-height: 52px; width: 100%; font-size: 16px; }
.btn-login:hover, .btn-login:focus { background: #4b8a6d; color: #fff; }

/* ---- Offline ---- */
.rb-offline { max-width: 560px; margin: 80px auto; padding: 24px; text-align: center; }

/* Leerlauf-Hinweis (60 s vor automatischer Abmeldung) */
.rb-idle { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1080; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; width: min(560px, calc(100% - 32px)); padding: 14px 16px; border-radius: 14px; background: var(--rb-ink); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.rb-idle[hidden] { display: none; }
.rb-idle-text { flex: 1 1 260px; font-size: 16px; }
.rb-idle .btn { min-height: 48px; }

/* Mein Zugang, Protokoll */
.rb-user-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 8px; border-radius: 8px; color: #fff; text-decoration: none; }
.rb-user-link:hover, .rb-user-link.active { background: rgba(255,255,255,.08); color: #fff; }
.rb-h3 { font-size: 15px; font-weight: 700; }
.rb-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.rb-dl dt { font-weight: 400; color: var(--rb-muted, #5f6b66); }
.rb-dl dd { margin: 0; font-weight: 600; }
.rb-loglist { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rb-loglist .rb-chip { margin-right: 6px; }
.rb-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rb-line, #e2ddd3); }
.rb-filter .form-select, .rb-filter .form-control { min-height: 44px; }
.rb-filter-date { width: 170px; }
.rb-filter-sel { min-width: 190px; }
.rb-log-detail { font-size: 13px; color: var(--rb-muted, #5f6b66); }
.rb-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--rb-line, #e2ddd3); }

/* Fehlversuchssperre am Tastenfeld */
.rb-keypad.is-locked .rb-key { opacity: .35; cursor: not-allowed; }
.rb-lock-line { margin-top: 12px; font-size: 14px; color: #f7cfc8; }
.rb-login-help { margin-top: 4px; font-size: 14px; color: #b9c7c1; }
.rb-login-help summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }

/* Einstellungen: Unternavigation links (Entwurf C) */
.rb-settings { flex-direction: row; align-items: flex-start; gap: 20px; }
.rb-subnav { flex: 0 0 230px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; }
.rb-subnav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--rb-ink); text-decoration: none; }
.rb-subnav a:hover { background: #ece8df; }
.rb-subnav a.active { background: var(--rb-ink); color: #fff; font-weight: 600; }
.rb-settings-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1023.98px) {
  .rb-settings { flex-direction: column; align-items: stretch; }
  .rb-subnav { position: static; flex-direction: row; flex-wrap: wrap; flex-basis: auto; }
}
/* Raum-Reiter, Fakten, Schalter */
.rb-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--rb-line-2); background: #fff; color: var(--rb-ink); text-decoration: none; font-weight: 600; }
.rb-tabs a.active { background: var(--rb-ink); border-color: var(--rb-ink); color: #fff; }
.rb-tabs a.is-off { color: var(--rb-muted); font-weight: 400; }
.rb-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.rb-fact { background: #faf8f4; border-radius: 10px; padding: 10px 12px; }
.rb-fact-k { font-size: 12px; color: var(--rb-muted); }
.rb-fact-v { font-weight: 600; }
.rb-toggle { min-height: 36px; min-width: 64px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rb-line-2); background: #fff; color: var(--rb-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rb-toggle.on { background: var(--rb-ok-bg); border-color: #b8d3c6; color: var(--rb-ok-ink); }
.rb-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--rb-line); }
.rb-table td.rb-num, .rb-table th.rb-num { text-align: right; }
/* sortierbare Spaltenköpfe (Gäste, 22.11.) */
.rb-th-sort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.rb-th-sort:hover { text-decoration: underline; }
.rb-th-sort .bi { font-size: 11px; opacity: .45; }
.rb-th-sort.active .bi { opacity: 1; }
.rb-table tr.is-off td { color: var(--rb-muted); }
.rb-table a.rb-rowlink { color: inherit; font-weight: 700; text-decoration: none; }
.rb-table a.rb-rowlink:hover { text-decoration: underline; }
.rb-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rb-checks .form-check { min-height: 32px; display: flex; align-items: center; gap: 6px; margin: 0; padding-left: 0; }
.rb-checks .form-check-input { margin: 0; float: none; }
.rb-num-input { max-width: 110px; }
.rb-time-input { max-width: 130px; }
.rb-settings .rb-table th, .rb-settings .rb-table td { padding-left: 10px; padding-right: 10px; }
.rb-settings .rb-side { flex-basis: 320px; }
.rb-toggle { min-width: 56px; }

/* =========================================================================
   Tagesbuch (Entwurf C)
   ========================================================================= */
.rb-daybar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.rb-daynav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rb-jump { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rb-line-2); border-radius: 10px; padding: 0 4px 0 12px; min-height: 44px; }
.rb-jump-label { font-weight: 600; white-space: nowrap; margin: 0; }
.rb-jump .form-control { border: 0; min-height: 40px; width: 160px; padding: 0 6px; }
.rb-daytitle { margin: 0; text-align: right; }
.rb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* Tagesbuch: Liste/Zeitleiste links, Raum-Filter rechtsbündig (Wunsch 17.11.) */
.rb-toolbar > .rb-chips { margin-left: auto; justify-content: flex-end; }
.rb-chip-toggle { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rb-line-2); background: #fff; color: var(--rb-muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.rb-chip-toggle.on { background: var(--rb-ink-2); border-color: var(--rb-ink-2); color: #fff; }
.rb-book-row { align-items: flex-start; }
.rb-book-main { overflow: hidden; }
.rb-detail { position: sticky; top: 12px; }
.rb-detail-name { font-size: 20px; }

.rb-tl { overflow-x: auto; }
.rb-tl-head, .rb-tl-row { display: grid; grid-template-columns: 150px minmax(720px, 1fr); }
.rb-tl-head { position: sticky; top: 0; z-index: 4; background: #faf8f4; border-bottom: 1px solid var(--rb-line); }
.rb-tl-label { padding: 6px 12px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--rb-line); background: inherit; position: sticky; left: 0; z-index: 3; }
.rb-tl-head .rb-tl-label { font-size: 13px; font-weight: 600; }
.rb-tl-name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.rb-tl-sub { font-size: 11px; color: var(--rb-muted); line-height: 1.2; }
.rb-tl-track { position: relative; min-height: 38px; }
.rb-tl-hours { min-height: 30px; }
.rb-tl-hour { position: absolute; top: 7px; transform: translateX(4px); font-size: 12px; color: var(--rb-muted); white-space: nowrap; }
.rb-tl-row { border-bottom: 1px solid #ece8df; background: #fff; }
.rb-tl-area { background: #faf8f4; border-bottom-color: var(--rb-line); }
.rb-tl-area .rb-tl-name { font-size: 14px; font-weight: 700; }
.rb-tl-area .rb-tl-track { min-height: 44px; }
.rb-tl-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: #ece8df; }
.rb-tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rb-ink); z-index: 2; }
.rb-tl-seg { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; }
.rb-tl-seg-buffer { background: repeating-linear-gradient(135deg, #d8d2c6 0 4px, #f5f3ee 4px 8px); }
.rb-tl-seg-room { background: repeating-linear-gradient(135deg, #e7d9f7 0 4px, #f7f2fd 4px 8px); }
.rb-tl-seg-room-sperre { background: repeating-linear-gradient(135deg, #9aa29e 0 4px, #e4e6e5 4px 8px); }
.rb-tl-seg-room-fruehstueck { background: repeating-linear-gradient(135deg, #e3cfb8 0 4px, #f8f1e9 4px 8px); }

.rb-bar { position: absolute; top: 4px; bottom: 4px; box-sizing: border-box; border-radius: 6px; padding: 0 6px; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; font-size: 12px; text-decoration: none; z-index: 1; min-width: 18px; }
.rb-bar:hover { filter: brightness(.97); }
.rb-bar-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.rb-bar-chain { flex: 0 0 auto; font-size: 15px; line-height: 1; }
.rb-bar-extra { flex: 0 1000 auto; min-width: 0; height: 16px; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.rb-bar-extra > * { flex: 0 0 auto; height: 16px; line-height: 16px; }
.rb-bar-code { font-size: 11px; opacity: .85; }
.rb-bar-alc { background: #fff; color: var(--rb-ink); border: 2px solid var(--rb-alc); }
.rb-bar-alc-plat { background: var(--rb-alc); color: #fff; }
.rb-bar-va { background: var(--rb-va); color: #fff; }
.rb-bar-cat { background: var(--rb-cat); color: #fff; }
.rb-bar-fr { background: #8a5a2f; color: #fff; }
.rb-bar-sperre { background: repeating-linear-gradient(135deg, #2b3431 0 6px, #6b7570 6px 12px); color: #fff; }
.rb-bar-sperre .rb-bar-name { background: rgba(20,32,29,.75); padding: 0 4px; border-radius: 4px; }
.rb-bar-done { background: #f6d7d3; color: #7a271a; }
.rb-bar-done-veranstaltung { background: #e3dbf6; color: #4a2a8f; }
.rb-bar-done-catering { background: #e2e4e7; color: #3c4250; }
.rb-bar-done-fruehstueck { background: #eadccd; color: #5c3a1e; }
.rb-bar-done-sperre { background: #e4e6e5; color: #3c4744; }
.rb-bar-noshow { background: #f8e6e3; color: #7a1c13; border: 2px dashed #a1261b; }
.rb-bar.is-open { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.rb-bar.is-sel { box-shadow: 0 0 0 3px var(--rb-ink); z-index: 3; -webkit-mask-image: none; mask-image: none; }
.rb-bar.is-dim { opacity: .45; }
.rb-stripe { border-left-width: 6px !important; border-left-style: solid !important; }
.rb-stripe-1 { border-left-color: #1d4f80 !important; }
.rb-stripe-2 { border-left-color: #0f766e !important; }
.rb-stripe-3 { border-left-color: #b45309 !important; }
.rb-stripe-4 { border-left-color: #7c3aed !important; }
.rb-stripe-5 { border-left-color: #be185d !important; }
.rb-stripe-6 { border-left-color: #4d7c0f !important; }

.rb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px; border-top: 1px solid var(--rb-line); font-size: 13px; color: #3c4744; }
.rb-legend .rb-lg { display: inline-block; width: 18px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; box-sizing: border-box; }

.rb-list .rb-list-group th { background: #faf8f4; font-size: 14px; }
.rb-list .rb-list-act { width: 1%; white-space: nowrap; }   /* Knopf „Tisch frei“ zwischen Art und Status (18.11.) */
.rb-list .rb-list-act .btn { padding: 2px 10px; font-size: 13px; }
.rb-kind-alacarte { background: #fde8e6; color: #a3211a; }
.rb-kind-veranstaltung { background: #efe9fb; color: #5b34ad; }
.rb-kind-catering { background: #eceef0; color: #3e454e; }
.rb-kind-sperre { background: #e4e6e5; color: #2b3431; }
.rb-kind-fruehstueck { background: #f3ebe1; color: #6e4524; }
.rb-st-angefragt { background: var(--rb-warn-bg); color: #8a4b06; }
.rb-st-bestaetigt { background: var(--rb-ok-bg); color: var(--rb-ok-ink); }
.rb-st-platziert { background: #2f6b52; color: #fff; }
.rb-st-beendet, .rb-st-storniert { background: #efece5; color: #3c4744; }
.rb-st-storniert, .rb-st-noshow { color: var(--rb-err-ink); }
.rb-st-noshow { background: var(--rb-err-bg); }
.rb-st-gesperrt { background: #2b3431; color: #fff; }
.rb-resnote { background: #faf8f4; border-radius: 10px; padding: 10px 12px; white-space: pre-line; }
.rb-openreq .rb-openpast-list li .rb-openreq-note { flex-basis: 100%; order: 4; font-size: 13px; background: #faf8f4; border-radius: 8px; padding: 6px 10px; white-space: pre-line; }
.rb-warnbox { background: var(--rb-warn-bg); border: 1px solid var(--rb-warn-line); color: var(--rb-warn-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.rb-infobox { background: var(--rb-ok-bg); border: 1px solid #cfe3d8; color: var(--rb-ok-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }   /* Raum wird geteilt – passt (18.11.) */
.rb-move { border-top: 1px solid var(--rb-line); padding-top: 12px; }
.btn-warn-soft { background: #fff; border: 1px dashed #c27a12; color: #8a4b06; }
.btn-warn-soft:hover { background: var(--rb-warn-bg); color: #5c3304; }
.rb-history summary { cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; font-weight: 600; }
@media (max-width: 1199.98px) { .rb-daytitle { text-align: left; } .rb-detail { position: static; } }

/* Tagesüberblick (Kennzahlen + Veranstaltungen/Sperren) */
.rb-daykpis { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-kpi { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 14px; background: #fff; border: 1px solid var(--rb-line); border-radius: 10px; border-left: 4px solid var(--rb-line-2); }
.rb-kpi-k { font-size: 12px; color: var(--rb-muted); line-height: 1.2; }
.rb-kpi-v { font-size: 16px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.rb-kpi-alc { border-left-color: var(--rb-alc); }
.rb-kpi-va { border-left-color: var(--rb-va); }
.rb-kpi-cat { border-left-color: var(--rb-cat); }
.rb-kpi-sp { border-left-color: #2b3431; }
.rb-dayevents { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rb-dayevent { display: inline-flex; align-items: baseline; gap: 8px; min-height: 36px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--rb-line); color: var(--rb-ink); text-decoration: none; font-size: 14px; }
.rb-dayevent:hover { background: #faf8f4; color: var(--rb-ink); }
.rb-dayevent::before { content: ''; width: 10px; height: 10px; border-radius: 3px; align-self: center; background: var(--rb-va); }
.rb-dayevent-sperre::before { background: repeating-linear-gradient(135deg, #2b3431 0 2px, #6b7570 2px 4px); }
.rb-dayevent-time { font-weight: 700; white-space: nowrap; }
.rb-dayevent-where { color: var(--rb-muted); white-space: nowrap; }

/* =========================================================================
   Neue Reservierung (Assistent) und Walk-in
   ========================================================================= */
.rb-wizard { display: flex; flex-direction: column; gap: 16px; }
.rb-artpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rb-art { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 60px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--rb-line-2); background: #fff; color: var(--rb-ink); font: inherit; text-align: left; cursor: pointer; border-left: 6px solid var(--rb-line-2); }
.rb-art span { font-size: 12px; color: var(--rb-muted); }
.rb-art-alacarte { border-left-color: var(--rb-alc); }
.rb-art-veranstaltung { border-left-color: var(--rb-va); }
.rb-art-catering { border-left-color: var(--rb-cat); }
.rb-art-sperre { border-left-color: #2b3431; }
.rb-art.active { background: var(--rb-ink); color: #fff; border-color: var(--rb-ink); }
.rb-art.active span { color: #b9c7c1; }
.rb-date-input { width: 180px; }
.rb-persons { font-size: 18px; font-weight: 700; text-align: center; }
.rb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.rb-slot { min-height: 44px; border-radius: 10px; border: 1px solid #8a948f; background: #fff; color: var(--rb-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rb-slot.is-full { border-style: dashed; border-color: #c9c2b5; color: #8a948f; text-decoration: line-through; }
.rb-slot.is-past { opacity: .55; }
.rb-slot.active { background: var(--rb-accent); border: 0; color: #fff; text-decoration: none; opacity: 1; }
.rb-slot.active.is-full { background: #a1261b; }
.rb-cands { display: flex; flex-direction: column; gap: 8px; }
.rb-cand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 52px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--rb-line-2); background: #fff; cursor: pointer; margin: 0; }
.rb-cand input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rb-cand:focus-within { box-shadow: 0 0 0 .2rem rgba(36,86,63,.25); }
.rb-cand.active { border: 2px solid var(--rb-accent); background: #eef4f1; }
.rb-cand-rank { font-size: 12px; font-weight: 700; color: var(--rb-ok-ink); min-width: 84px; }
.rb-cand-label { min-width: 140px; }
.rb-cand-note { font-size: 13px; color: var(--rb-muted); margin-left: auto; }
.rb-cand-second { border: 2px dashed #d9a85c; }
.rb-cand-second .rb-cand-rank, .rb-cand-second .rb-cand-note { color: #8a4b06; }
.rb-cand-second.active { border: 2px solid #c27a12; background: var(--rb-warn-bg); }
.rb-seconds { border-top: 1px solid var(--rb-line); padding-top: 10px; }
.rb-roompick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.rb-room { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rb-line-2); background: #fff; cursor: pointer; margin: 0; position: relative; }
.rb-room input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rb-room:focus-within { box-shadow: 0 0 0 .2rem rgba(36,86,63,.25); }
.rb-room.active { border: 2px solid var(--rb-va); background: #f4f0fc; }
.rb-tagpick { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rb-line-2); background: #fff; font-size: 13px; cursor: pointer; margin: 0; position: relative; }
.rb-tag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rb-tag:focus-within { box-shadow: 0 0 0 .2rem rgba(36,86,63,.25); }
.rb-tag.active { background: #e1ecf7; border-color: #1d4f80; color: #1d4f80; font-weight: 600; }
.rb-walk-sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.rb-walk-size { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--rb-line-2); background: #fff; color: var(--rb-ink); font-size: 24px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.rb-walk-size.active { background: var(--rb-ink); border-color: var(--rb-ink); color: #fff; }
.rb-walk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rb-walk-table { width: 100%; min-height: 120px; border-radius: 14px; border: 2px solid #2f6b52; background: #fff; color: var(--rb-ink); font: inherit; text-align: left; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.rb-walk-table.is-short { border: 2px dashed #c27a12; }
.rb-walk-table.is-second { border: 2px dashed #c27a12; background: #fffaf2; }
.rb-walk-table .rb-walk-code { font-size: 24px; font-weight: 700; }
.rb-walk-until { font-size: 15px; font-weight: 600; color: var(--rb-ok-ink); }
.rb-walk-table.is-short .rb-walk-until, .rb-walk-table.is-second .rb-walk-until { color: #8a4b06; }
.rb-walk-name { max-width: 420px; }
.rb-footer { max-width: 1440px; margin: 0 auto; padding: 0 24px 24px; font-size: 12px; color: var(--rb-muted); }
body.rb-login .rb-footer { color: #6f8079; text-align: center; }

/* ---- Tagesliste (Cockpit) und Druck ---- */
.rb-ck-head { display: flex; flex-direction: column; gap: 4px; }
.rb-ck-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
.rb-ck-sec { display: flex; flex-direction: column; gap: 6px; break-inside: auto; }
.rb-ck-table { width: 100%; border-collapse: collapse; background: var(--rb-card, #fff); font-size: 14px; }
.rb-ck-table th, .rb-ck-table td { border-bottom: 1px solid var(--rb-line, #dfe5e2); padding: 6px 8px; text-align: left; vertical-align: top; }
.rb-ck-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--rb-muted); }
.rb-ck-table .rb-num { text-align: right; }
.rb-ck-group th { background: var(--rb-bg); font-weight: 600; }
.rb-ck-time { white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; }
.rb-ck-where { white-space: nowrap; }
.rb-ck-small { font-size: 12px; color: var(--rb-muted); }
.rb-ck-note { font-size: 13px; }
.rb-ck-check { width: 28px; text-align: center; }
td.rb-ck-check::after { content: ""; display: inline-block; width: 14px; height: 14px; border: 1.5px solid #8a9a93; border-radius: 3px; }
.rb-cockpit { gap: 16px; }
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body { background: #fff !important; }
  .rb-header, .rb-footer, .rb-noprint, .rb-idle, .rb-flash, .rb-alert { display: none !important; }
  .rb-main { padding: 0 !important; max-width: none !important; }
  .rb-ck-table { font-size: 11px; }
  .rb-ck-table th, .rb-ck-table td { padding: 3px 5px; }
  .rb-ck-table tr { break-inside: avoid; }
  .rb-ck-sec h2 { break-after: avoid; font-size: 14px; }
  .rb-h1 { font-size: 18px; }
  a { color: inherit; text-decoration: none; }
}

/* ---- Kalender-Aufklapper (Entwurf C) ---- */
.rb-daynav { position: relative; }
.rb-calwrap { position: static; }
.rb-calbtn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rb-calbtn[aria-expanded="true"] { border-color: var(--rb-ink); }
.rb-calbtn-day { font-weight: 400; color: #3c4744; }
.rb-cal { position: absolute; top: 52px; left: 0; z-index: 40; width: 340px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--rb-line-2); border-radius: 14px; box-shadow: 0 16px 40px rgba(20, 32, 29, .18); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.rb-cal[hidden] { display: none; }
.rb-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rb-cal-head strong { font-size: 16px; }
.rb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.rb-cal-dow { font-size: 12px; font-weight: 600; color: var(--rb-muted); text-align: center; }
.rb-cal-day { height: 44px; border-radius: 10px; border: 1px solid transparent; color: var(--rb-ink); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 14px; }
.rb-cal-day:hover { background: var(--rb-bg); color: var(--rb-ink); }
.rb-cal-day.is-closed { color: #9aa5a0; }
.rb-cal-day.is-today { border-color: var(--rb-accent); font-weight: 700; }
.rb-cal-day.is-sel { background: var(--rb-ink); color: #fff; font-weight: 700; }
.rb-cal-dots { display: flex; gap: 3px; height: 6px; }
.rb-cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rb-va); }
.rb-cal-dots i.sp { border-radius: 1px; background: #2b3431; }
.rb-cal-day.is-sel .rb-cal-dots i { box-shadow: 0 0 0 1px #fff; }
.rb-cal-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #3c4744; }
.rb-cal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rb-va); margin-right: 4px; }
.rb-cal-legend i.sp { border-radius: 1px; background: #2b3431; }
.rb-cal-foot { display: flex; gap: 8px; }
.rb-cal-foot .btn { flex: 1 1 0; }

/* ---- Infoleiste „Aktuelles“ ---- */
.rb-info { background: #fff8e6; border: 1px solid #ecd2a2; border-radius: 12px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #5c3304; }
.rb-info-h { margin: 0; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.rb-info-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 4px 0 12px; border-radius: 999px; background: #fff; border: 1px solid #ecd2a2; font-size: 14px; font-weight: 600; margin: 0; }
.rb-info-to { font-weight: 400; opacity: .8; }
.rb-info-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.rb-info-x:hover { background: #fdecc8; }
.rb-info-empty { font-size: 14px; opacity: .75; }
.rb-info-add { display: flex; gap: 6px; margin: 0 0 0 auto; flex: 0 1 460px; min-width: 240px; }
.rb-info-add .form-control { min-height: 40px; border-color: #c9b48a; }
.rb-info-add .rb-info-bis { flex: 0 0 140px; }
.rb-info-btn { min-height: 40px; background: #5c3304; color: #fff; font-weight: 600; border: 0; }
.rb-info-btn:hover { background: #452602; color: #fff; }

/* ---- Nächste Veranstaltungen ---- */
.rb-events { overflow: hidden; margin-top: 12px; }
.rb-event { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--rb-line); color: var(--rb-ink); text-decoration: none; min-height: 44px; }
.rb-event:hover { background: var(--rb-bg); color: var(--rb-ink); }
.rb-event-date { flex: 0 0 52px; text-align: center; border-radius: 8px; background: #efe9fb; color: #5b34ad; padding: 4px 0; line-height: 1.15; display: flex; flex-direction: column; }
.rb-event-date span { font-size: 11px; font-weight: 600; }
.rb-event-date strong { font-size: 15px; }
.rb-event-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rb-event-p { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--rb-muted); }
@media (max-width: 640px) { .rb-info-add { margin-left: 0; flex-basis: 100%; } }

/* ---- Gäste im Assistenten ---- */
.rb-guest-sugg { display: flex; flex-direction: column; border: 1px solid var(--rb-line-2); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(20, 32, 29, .12); }
.rb-guest-sugg[hidden] { display: none; }
.rb-guest-opt { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; text-align: left; padding: 10px 12px; min-height: 44px; border: 0; border-top: 1px solid var(--rb-line); background: #fff; font: inherit; font-size: 14px; color: var(--rb-ink); }
.rb-guest-opt:first-child { border-top: 0; }
.rb-guest-opt:hover, .rb-guest-opt:focus { background: var(--rb-bg); outline: none; }
.rb-guest-opt .rb-muted { flex-basis: 100%; font-size: 13px; }
.rb-guest-known { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #e3efe9; color: #1f5a44; font-size: 14px; }

/* ---- Serien, Sondertage ---- */
.rb-kpi-warn { border-left-color: #b54708; background: #fff8e6; }
.rb-kpi-warn .rb-kpi-v { color: #8a4b06; }
.rb-chip-series { background: #e3efe9; color: #1f5a44; text-decoration: none; }
.rb-chip-series:hover { background: #cfe3d9; color: #1f5a44; }
.rb-repeat { border: 1px solid var(--rb-line); border-radius: 10px; padding: 10px 12px; margin: 0; }
.rb-repeat .form-select, .rb-repeat input[type=date] { min-height: 40px; width: auto; }
.rb-cal-dots i.sd { border-radius: 50%; background: #d97706; }
.rb-cal-legend i.sd { border-radius: 50%; background: #d97706; }
.rb-series-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-sw-name { width: 120px; }
.rb-log-cb { width: 36px; }
.rb-log-del { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-top: 1px solid var(--rb-line); }
.rb-files { display: flex; flex-direction: column; gap: 6px; }
.rb-file { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--rb-line); }
.rb-file a { font-weight: 600; word-break: break-all; }
.rb-file-up { display: flex; gap: 6px; align-items: center; }
.rb-file-up .form-control { min-height: 40px; }
.rb-offline { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 10px; align-items: flex-start; max-width: 760px; margin: 0 auto; padding: 12px 16px; border-radius: 12px; background: #7a1c13; color: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.25); font-size: 14px; }
.rb-offline .bi { font-size: 18px; }
@media print { .rb-offline { display: none !important; } }
.rb-row > * { min-width: 0; }   /* breite Tabellen scrollen in .rb-table-wrap statt die Seite zu verbreitern */
@media screen { .rb-ck-sec { overflow-x: auto; position: relative; } }
.rb-tabs-wrap { flex-wrap: wrap; }
.rb-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.rb-mailpreview { border: 1px dashed var(--rb-line-2); border-radius: 10px; padding: 12px 14px; background: #fcfbf8; }
.rb-mailpreview pre, .rb-mailbody { white-space: pre-wrap; font-family: inherit; font-size: 14px; margin: 6px 0 0; }
.rb-mailbody { font-size: 12px; }
.rb-daybar > * { min-width: 0; max-width: 100%; }
.rb-daybar .rb-chip { white-space: normal; }
.rb-info-edit { color: inherit; text-decoration: none; }
.rb-info-edit:hover { text-decoration: underline; color: inherit; }
.rb-info-edit.is-editing { text-decoration: underline; text-decoration-thickness: 2px; }
.rb-info-add { flex-basis: 660px; }
.rb-info-add { flex-wrap: wrap; }
.rb-info-add #ni-t { flex: 1 1 220px; min-width: 0; }

/* ---- Tagesabschluss: offene Reservierungen der Vortage ---- */
.rb-openpast { background: #fff; border: 1px solid #ecd2a2; border-left: 4px solid #b54708; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.rb-openpast-h { margin: 0; font-size: 15px; font-weight: 700; color: #8a4b06; display: flex; align-items: center; gap: 6px; }
.rb-openpast-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rb-openpast-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 6px 0; border-top: 1px solid var(--rb-line); }
.rb-openpast-what { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--rb-ink); text-decoration: none; min-width: 0; }
.rb-openpast-what:hover { text-decoration: underline; color: var(--rb-ink); }
.rb-openpast > summary { cursor: pointer; list-style: none; min-height: 32px; }
.rb-openpast > summary::-webkit-details-marker { display: none; }
.rb-openpast > summary::after { content: "▾"; margin-left: auto; font-size: 13px; }
.rb-openpast:not([open]) > summary::after { content: "▸"; }
.rb-openpast-all { padding-top: 6px; border-top: 1px solid var(--rb-line); }
.rb-openreq-via { font-size: 13px; color: var(--rb-muted); }
.rb-openreq .rb-openpast-list li .rb-openreq-via { flex-basis: 100%; order: 3; margin-top: -4px; }
.rb-info-pen { font-size: 11px; opacity: .55; margin-left: 2px; }
.rb-move-all > summary { cursor: pointer; font-size: 14px; color: var(--rb-accent); min-height: 32px; display: flex; align-items: center; }
.rb-move-area { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.rb-move-area .btn { min-width: 52px; }

/* ---- Handy: Hauptnavigation einzeilig, horizontal wischbar (Wunsch 11.11.) ---- */
@media (max-width: 767.98px) {
  .rb-header-inner { padding: 8px 16px; gap: 6px 16px; }
  .rb-nav { flex: 1 1 100%; order: 3; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); }
  .rb-nav::-webkit-scrollbar { display: none; }
  .rb-nav a { flex: 0 0 auto; white-space: nowrap; min-height: 40px; padding: 0 12px; }
  .rb-user { flex: 1 1 100%; min-width: 0; }
  .rb-user-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .rb-user form { margin-left: auto; }
}

/* ---- Öffentliche Veranstaltungen (Wine & Dine) – Gold (Wunsch 11.11.) ---- */
.rb-bar-pub, .rb-lg.rb-bar-pub { background: var(--rb-pub); color: #fff; }
.rb-chip-pub { background: #fff1cc; color: #7a4f00; }
tr.is-public > td, tr.is-public > th { background: #fff8e6; }
tr.is-public > td:first-child { box-shadow: inset 4px 0 0 var(--rb-pub); }
.rb-dayevent-public { background: #fff8e6; border-color: #ecd2a2; }
.rb-dayevent-public::before { background: var(--rb-pub); }
.rb-event.is-public { background: #fff8e6; }
.rb-event.is-public .rb-event-date { background: #fbe7b8; color: #7a4f00; }
.rb-cal-dots i.pub, .rb-cal-legend i.pub { background: var(--rb-pub); }
.rb-pubcheck { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rb-line-2); background: #fff; cursor: pointer; margin: 0; font-weight: 600; }
.rb-pubcheck input { accent-color: var(--rb-pub); }
.rb-pubcheck.active { background: #fff1cc; border-color: var(--rb-pub); color: #7a4f00; }
.rb-events-list { max-height: 520px; overflow-y: auto; }
.rb-events .rb-h2 .bi { color: var(--rb-pub); }

/* ---- Adresse einzeln (Veranstaltung) ---- */
.rb-addr-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 12px; }
.rb-addr-company, .rb-addr-contact { grid-column: span 3; }
.rb-addr-street { grid-column: span 3; }
.rb-addr-zip { grid-column: span 1; }
.rb-addr-city { grid-column: span 2; }
@media (max-width: 640px) {
  .rb-addr-company, .rb-addr-contact, .rb-addr-street { grid-column: span 6; }
  .rb-addr-zip { grid-column: span 2; }
  .rb-addr-city { grid-column: span 4; }
}
/* Häkchen-Zeile linksbündig ohne Bootstrap-Einzug (Übersicht im Assistenten) */
.rb-checkline { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; cursor: pointer; text-align: left; }
.rb-checkline .form-check-input { float: none; margin: 0; flex: 0 0 auto; }
/* Tablet hochkant: Navigation einzeilig halten (Platz sparen, Wunsch 11.11.) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .rb-header-inner { padding: 8px 16px; gap: 4px 16px; }
  .rb-nav { gap: 2px; }
  .rb-nav a { padding: 0 11px; }
}

/* ---- Preise öffentliche Veranstaltung ---- */
.rb-prices { border: 1px solid #ecd2a2; background: #fffaf0; border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.rb-prices legend { float: none; width: auto; padding: 0 4px; margin: 0; font-size: 15px; }
.rb-price-row { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 4px 12px; }
.rb-price-row > label:first-child { margin: 0; font-weight: 600; }
.rb-price-in { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rb-price-in .form-control { width: 110px; text-align: right; }
.rb-price-row .invalid-feedback { grid-column: 2; }
@media (max-width: 540px) { .rb-price-row { grid-template-columns: 1fr; } .rb-price-row .invalid-feedback { grid-column: 1; } }
.rb-event-prices { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.35; color: #7a5a1c; margin-top: 2px; }
.rb-va-search input[type=search] { flex: 1 1 180px; min-width: 180px; }
@media (max-width: 575.98px) { .rb-va-search { width: 100%; } }

/* ---- frei wählen: weitere freie Tische (Wunsch 12.11.) ---- */
.rb-morefree { border: 1px dashed var(--rb-line, #d9d4c7); border-radius: 10px; padding: 10px 12px; }
.rb-morefree > summary { cursor: pointer; font-weight: 600; list-style: revert; }
.rb-morefree > summary:focus-visible { outline: 2px solid var(--rb-accent, #2f5d50); outline-offset: 2px; }

/* ---- Tischbelegung bei Veranstaltungen (Wunsch 12.11.) ---- */
.rb-eg-box { border: 1px solid var(--rb-line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.rb-eg-grid { display: grid; grid-template-columns: minmax(180px, 2fr) 140px minmax(120px, 1fr) 110px 110px 110px; gap: 10px 12px; align-items: start; }
.rb-eg-grid .rb-eg-note { grid-column: 1 / -1; }
.rb-eg-grid .rb-num-input { width: 100%; }
@media (max-width: 900px) { .rb-eg-grid { grid-template-columns: 1fr 1fr 1fr; } .rb-eg-grid .rb-eg-name { grid-column: 1 / -1; } }
@media (max-width: 480px) { .rb-eg-grid { grid-template-columns: 1fr 1fr; } }
.rb-eg-table tfoot th { border-top: 2px solid var(--rb-line-2); }

/* Detail: Art, Status, Raum … untereinander, X bleibt oben rechts (Wunsch 12.11.) */
.rb-detail-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.rb-detail-x { flex-shrink: 0; }

/* Veranstaltungen: Monat wählen (Wunsch 12.11.) */
.rb-monthnav { display: inline-flex; align-items: center; gap: 4px; }
.rb-monthnav .form-select { width: auto; min-width: 170px; }
.rb-monthnav.is-on .form-select { border-color: var(--rb-ink); font-weight: 600; }
.rb-g-zip { width: 96px; flex-shrink: 0; }

/* ---- Tischbelegung: Karten je Tisch, Namensliste (12.11.) ---- */
.rb-eg2-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rb-eg2-sum { font-size: 16px; }
.rb-eg2-sum strong { font-size: 22px; }
.rb-eg2-bar .rb-tabs { margin-left: auto; }
.rb-eg2-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.rb-eg2-card { background: #fff; border: 1px solid var(--rb-line); border-left: 5px solid var(--rb-accent); border-radius: 12px; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 4px; break-inside: avoid; }
.rb-eg2-card.is-over { border-left-color: #b4532a; }
.rb-eg2-card.is-none { border-left-color: var(--rb-line-2); }
.rb-eg2-card header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 8px; margin-bottom: 2px; }
.rb-eg2-no { white-space: nowrap; }
.rb-eg2-bar .rb-tabs a i { margin-right: 6px; }
.rb-eg2-no { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.rb-eg2-seats { font-size: 13px; color: #4b5652; white-space: nowrap; }
.rb-eg2-card.is-over .rb-eg2-seats { color: #b4532a; font-weight: 600; }
.rb-eg2-fam { display: flex; flex-direction: column; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: inherit; text-decoration: none; }
.rb-eg2-fam + .rb-eg2-fam { border-top: 1px solid var(--rb-line); border-radius: 0 0 8px 8px; }
.rb-eg2-fam:hover { background: #f4f1ea; }
.rb-eg2-fam span { font-size: 14px; color: #3c4744; }
.rb-eg2-fam em { font-size: 13px; color: #7a5a1c; font-style: normal; }
.rb-eg2-add { font-size: 13px; color: var(--rb-accent); text-decoration: none; padding-top: 2px; }
.rb-eg2-free { background: #fff; border: 1px dashed var(--rb-line-2); border-radius: 12px; padding: 10px 14px; }
.rb-eg2-free summary { cursor: pointer; }
.rb-eg2-freelist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rb-eg2-freelist a { border: 1px solid var(--rb-line-2); border-radius: 8px; padding: 4px 8px; color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; }
.rb-eg2-freelist a span { font-weight: 400; color: #6b7471; font-size: 12px; }
.rb-eg2-freelist a:hover { border-color: var(--rb-accent); }
@media print { .rb-eg2-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; } .rb-eg2-card { border-left-width: 3px; } }

/* öffentliche Veranstaltung ausgebucht (Wunsch 13.11.) */
.rb-chip-full { background: #fbe4e1; color: #9b2c1f; border-color: #f0c2bb; font-weight: 600; }
.rb-event-p .rb-chip-full { display: block; margin-top: 4px; font-size: 11px; }

.rb-mailpreview-privacy { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rb-line); font-size: 11px; line-height: 1.45; color: #555; }
.rb-mailpreview-imprint { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rb-line); font-size: 13px; line-height: 1.45; color: #333; }