/* ---------------------------------------------------------------
   Vorbestellen — vorbestellen.html, the pre-order page.

   A page of its own, separate from the book, built like the Vorschau it was
   approved from: cream cards on the site's paper, serif dishes, uppercase
   labels, terracotta for what can be pressed. Tokens and fonts come from
   style.css and fonts.css (self-hosted Cormorant Garamond, Montserrat,
   Permanent Marker). Light only, like the rest of the site.
   --------------------------------------------------------------- */

.bk-page {
  font-variant-numeric: lining-nums tabular-nums;
  --bk-surface: #fffaee;
  --bk-surface-2: #f2e8cf;
  --bk-rule: #e2d4b4;
  --bk-muted: #7d7062;
  --bk-accent-soft: #f3dcd3;
  --bk-ok: #3f7a4a;
  --bk-ok-soft: #dcebd9;
  --bk-warn: #9a6a12;
  --bk-warn-soft: #f4e5c2;
  --bk-err: #b3261e;
  --bk-err-soft: #f7dcd8;
  --bk-shadow: 0 1px 0 rgba(43, 39, 35, 0.06), 0 8px 24px -12px rgba(43, 39, 35, 0.18);

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
:where(.bk-page) button { font: inherit; color: inherit; }
.bk-page :focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* ---------- the way back: always in view ---------- */
.bk-top {
  display: flex; align-items: center; gap: 10px;
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 241, 219, 0.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bk-rule);
  padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top, 0px));
}
.bk-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--terracotta);
  color: var(--terracotta); background: var(--paper); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.bk-back:hover { background: var(--terracotta); color: #fff; }
.bk-back-arrow { font-size: 16px; line-height: 1; }

/* ---------- page frame ---------- */
.bk-wrap { max-width: 1040px; margin: 0 auto; padding: 28px 16px 120px; }
.bk-brand { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 28px; text-decoration: none; color: var(--terracotta); }
/* the logo (images/terracotta-logo.png, 1200 x 364, transparent) has an empty margin round the lettering
   (6 % left, 12 % top, 15 % bottom of its height): it is pulled out of the box, so the lettering lines up with
   the content below and the page label sits on the tagline's baseline */
.bk-brand-logo { --w: clamp(220px, 52vw, 300px); display: block; width: var(--w); height: auto; margin: calc(var(--w) * -0.036) 0 calc(var(--w) * -0.045) calc(var(--w) * -0.0625); }
/* "ADMIN ACCOUNT" beside the logo on the pre-order page while an admin address is signed in (js/booking.js sets [hidden]) */
.bk-brand-admin { align-self: center; flex: none; font-weight: 700; font-size: clamp(12.5px, 2.4vw, 15px); letter-spacing: 0.1em; line-height: 1.3; color: #12100e; }
.bk-brand-admin[hidden] { display: none; }
.bk-brand-admin span { display: block; white-space: nowrap; }
.bk-brand-sub { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bk-muted); }
.bk-footer { max-width: 1040px; margin: 0 auto; padding: 0 16px 90px; font-size: 12px; color: var(--bk-muted); }
.bk-footer a { color: inherit; }
/* the kitchen and newsletter pages: a little broader, so names and the register have room */
.bk-wrap--admin, .bk-footer--admin { max-width: 1180px; }
.bk-lede { color: var(--bk-muted); margin: 0 0 22px; max-width: 58ch; }

.bk-root.is-busy { opacity: 0.65; pointer-events: none; transition: opacity 0.15s ease; }
/* the login card stays as filled as it is while a code is being sent or checked (no fade, only the busy cursor) */
.bk-signin .bk-root.is-busy { opacity: 1; cursor: progress; }

/* ---------- Vorschau strip (demo only): a full-width band, as in the Vorschau ---------- */
.bk-pv-in { background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 12.5px; }
.bk-pv-wrap { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.bk-pv-wrap--col { display: grid; gap: 12px; }
.bk-pv-tag { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; border: 1px solid currentColor; border-radius: 3px; padding: 2px 7px; }
.bk-pv-clock { opacity: 0.85; font-variant-numeric: tabular-nums; }
.bk-pv-clock b { font-weight: 500; }
.bk-pv-sp { flex: 1; }
.bk-seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px; overflow: hidden; }
.bk-seg a { padding: 5px 14px; font-size: 12.5px; font-weight: 500; color: inherit; text-decoration: none; }
.bk-seg a[aria-current="page"] { background: var(--terracotta); color: #fff; }
.bk-pv-link { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-size: 12.5px; opacity: 0.85; }
.bk-pv-link:hover { opacity: 1; }
.bk-pv-drawer { background: var(--bk-surface); border-bottom: 1px solid var(--bk-rule); padding: 14px 16px 16px; font-size: 13px; }
.bk-pv-drawer[hidden] { display: none; }
.bk-pv-lede { margin: 0; color: var(--bk-muted); line-height: 1.55; }
.bk-pv-lede code { font-family: "Montserrat", sans-serif; font-size: 12px; background: var(--bk-surface-2); padding: 1px 5px; border-radius: 4px; }
.bk-pv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bk-pv-row label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bk-muted); }
.bk-pv-check { display: inline-flex; align-items: center; gap: 6px; }
.bk-pv-drawer select, .bk-pv-drawer input[type="datetime-local"] {
  font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--bk-rule); border-radius: 6px; background: var(--paper); max-width: 100%;
}
.bk-pv-row button { appearance: none; cursor: pointer; font-size: 12.5px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--bk-rule); background: var(--paper); }
.bk-pv-row button:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ---------- gate: e-mail, code, name ---------- */
.bk-gate { max-width: 440px; }
.bk-title {
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: clamp(24px, 4.2vw, 32px); letter-spacing: -0.01em;
  line-height: 1.08; margin: 0 0 10px; text-wrap: balance; outline: none;
}
.bk-lede { color: var(--bk-muted); margin: 0 0 22px; max-width: 58ch; }
.bk-form { display: grid; gap: 0; }
.bk-field { display: grid; gap: 6px; margin-bottom: 14px; }
.bk-field label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bk-muted); }
.bk-opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.bk-field input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bk-surface); border: 1px solid var(--bk-rule); border-radius: 8px;
}
.bk-field input:focus { border-color: var(--terracotta); outline: none; box-shadow: 0 0 0 3px var(--bk-accent-soft); }
.bk-code { font-size: 28px !important; letter-spacing: 0.5em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-hint { font-size: 13px; color: var(--bk-muted); margin: 16px 0 0; }
.bk-hint code { font-family: "Montserrat", sans-serif; font-size: 12px; background: var(--bk-surface-2); padding: 1px 5px; border-radius: 4px; }
.bk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.bk-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 12px 22px; border-radius: 8px; border: 1px solid var(--terracotta);
  background: var(--terracotta); color: #fff; font-weight: 600; font-size: 14px;
}
.bk-btn:hover { filter: brightness(1.06); }
a.bk-btn { text-decoration: none; }
.bk-btn[disabled] { opacity: 0.45; cursor: default; filter: none; }
.bk-btn--ghost { background: transparent; color: var(--terracotta); }
/* the login's buttons answer the pointer: grey while hovered, darker grey while pressed, and that dark grey stays for as long as a code is being sent or checked, on the pressed button only (.is-pressed); the other buttons keep their look */
.bk-login .bk-btn--block, .bk-login-choice .bk-btn { transition: background-color .12s ease, border-color .12s ease, transform .12s ease; }
@media (hover: hover) { .bk-login .bk-btn--block:not([disabled]):hover { filter: none; background: #8a8680; border-color: #8a8680; } } /* not on touch, where the last tap leaves the hover stuck */
/* the code screen's "Anmelden" is grey only while it is off (empty field) or pressed: the pointer is often still over it from the click that brought the guest here, which made it look blocked once the code was typed */
.bk-login #bk-f-code .bk-btn--block:not([disabled]):hover { filter: brightness(1.06); background: var(--terracotta); border-color: var(--terracotta); }
.bk-login #bk-f-code .bk-btn--block:not([disabled]):active, .bk-signin .bk-root.is-busy #bk-f-code .bk-btn--block.is-pressed { filter: none; background: #67635d; border-color: #67635d; color: #fff; }
.bk-login .bk-btn--block:not([disabled]):active, .bk-signin .bk-root.is-busy .bk-btn--block.is-pressed { filter: none; background: #67635d; border-color: #67635d; color: #fff; }
.bk-login .bk-btn--block:not([disabled]):active { transform: scale(0.985); }
.bk-login-choice .bk-btn--ghost:hover { filter: none; background: rgba(43, 39, 35, 0.1); border-color: #8a8680; color: #2b2723; }
.bk-login-choice .bk-btn--ghost:active, .bk-signin .bk-root.is-busy .bk-login-choice .bk-btn--ghost.is-pressed { filter: none; background: rgba(43, 39, 35, 0.2); border-color: #67635d; color: #2b2723; }
.bk-link {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; font-size: 14px;
}
/* ---------- sign-in: the e-mail, code and first-name screens as a login page ----------
   body.bk-signin is set by js/booking.js render(). The whole page is the colour drawing of Konstanz, a frosted
   card carries the form. The login carries the logo, so the page's own one (.bk-brand) steps aside. */
.bk-signin { background: #dfe9ea url("../images/konstanz-farbe-poster.jpg") 50% 42% / 118% auto no-repeat fixed; }
@media (max-aspect-ratio: 1/1) { .bk-signin { background-size: auto 140%; background-position: 40% 35%; } }
/* the same drawing moving: sits exactly where the still picture above is, fades in once it plays */
.bk-signin-video { position: fixed; z-index: -1; pointer-events: none; left: -9vw; width: 118vw; height: auto; top: calc((100vh - 118vw * 1.3529) * 0.42); opacity: 0; transition: opacity 0.6s ease; }
.bk-signin-video.is-playing { opacity: 1; }
@media (max-aspect-ratio: 1/1) { .bk-signin-video { width: auto; height: 140vh; left: calc((100vw - 103.5vh) * 0.4); top: -14vh; } }
.bk-signin .bk-brand { display: none; }
.bk-signin .bk-top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.bk-signin .bk-wrap { min-height: calc(100svh - 51px); display: flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }
.bk-signin .bk-footer { display: none; }
.bk-signin .bk-root { width: 100%; }
.bk-login { width: 100%; max-width: 420px; margin: 0 auto; text-align: center; }
.bk-login-main { background: rgba(248, 241, 219, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 20px; padding: 32px 34px 26px; box-shadow: 0 18px 50px -20px rgba(20, 30, 40, 0.55); }
.bk-login-main { position: relative; }
/* "Zurück" in the card's top-left corner (a link on the front page, a button on the other screens) */
.bk-login-home { position: absolute; top: 12px; left: 14px; display: inline-flex; align-items: center; gap: 3px; margin: 0; padding: 6px 10px 6px 6px; border: 0; border-radius: 999px; background: transparent; color: #12100e; font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s; }
.bk-login-home + .bk-login-brand { margin-top: 16px; }
.bk-login-home:hover { background: rgba(173, 83, 64, 0.14); }
.bk-login-home:focus-visible { outline: 2px solid #ad5340; outline-offset: 1px; }
.bk-login-brand { display: block; pointer-events: none; user-select: none; width: max-content; max-width: 100%; margin: 0 auto 22px; }
.bk-login-brand--admin { display: flex; align-items: center; justify-content: center; gap: 12px; }
.bk-login-brand--admin .bk-login-logo { width: 170px; flex: 0 1 auto; }
.bk-login-badge { flex: none; text-align: left; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; line-height: 1.3; color: #12100e; }
.bk-login-badge span { display: block; white-space: nowrap; }
.bk-login-badge.is-new { animation: bk-badge-in .45s ease both; }
@keyframes bk-badge-in { from { opacity: 0; } to { opacity: 1; } }
.bk-login-logo { display: block; width: 220px; max-width: 100%; height: auto; margin: -8px 0 -10px; }
.bk-login .bk-title { margin-bottom: 8px; font-size: clamp(26px, 6vw, 30px); }
.bk-login .bk-lede { margin: 0 auto 24px; font-size: 14.5px; line-height: 1.5; color: #12100e; }
.bk-login .bk-field label { color: #12100e; } /* the labels over the fields are near-black, like the rest of the page text */
.bk-login .bk-form { text-align: left; }
.bk-login .bk-msg { text-align: left; }
.bk-input { position: relative; }
.bk-input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--bk-muted); pointer-events: none; }
.bk-input input { padding-left: 44px; }
.bk-login .bk-field { margin-bottom: 16px; }
.bk-login .bk-field input { padding-block: 13px; background: var(--paper); }
.bk-login .bk-field input:focus, .bk-login .bk-field input:not(:placeholder-shown) { background: var(--bk-surface); } /* a field that is filled in stays white */
.bk-login .bk-field input.bk-code { background: var(--bk-surface); } /* the code field is white from the start */
.bk-reg-ok { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 16px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #2b2723; text-align: left; }
.bk-reg-ok[hidden] { display: flex; visibility: hidden; } /* keeps its room, so the field does not jump when it appears */
.bk-reg-ok span { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bk-ok); color: #fff; font-size: 12px; line-height: 1; }
.bk-login .bk-field input::placeholder { color: #b3a690; }
.bk-paste { justify-self: center; display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--terracotta); background: transparent; border: 1px solid var(--bk-line, #e3d6bd); border-radius: 999px; cursor: pointer; }
.bk-paste:hover { background: var(--bk-accent-soft); }
.bk-paste:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bk-accent-soft); }
.bk-btn--block { width: 100%; padding: 14px 22px; font-size: 15px; }
.bk-login .bk-row { margin-top: 4px; }
.bk-login-alt { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.bk-login .bk-hint { margin: 20px 0 0; font-size: 12px; line-height: 1.5; text-align: center; }
.bk-login .bk-hint a { color: inherit; text-underline-offset: 3px; }
.bk-login .bk-link { font-size: 13.5px; }

/* the two doors: Registrieren / Ich habe bereits ein Konto */
.bk-login-choice { display: grid; gap: 12px; margin-top: 0; }
.bk-login-head { margin: 0 0 14px; font-size: 20px; font-weight: 600; text-align: left; color: var(--ink-strong, #2b2723); }
.bk-login-rule { width: 56px; height: 0; border: 0; border-top: 3px solid rgba(173, 83, 64, 0.35); border-radius: 3px; margin: 24px auto; }
.bk-login-choice .bk-btn { width: 100%; padding: 14px 22px; font-size: 15px; }
.bk-login-choice .bk-btn--ghost { background: transparent; }

/* Registrieren: name and company first */
.bk-reg-names { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.bk-reg-names .bk-field { min-width: 0; }
.bk-login .bk-form--reg .bk-field input { padding-left: 14px; }
.bk-login .bk-form--reg .bk-input input { padding-left: 44px; }
.bk-login .bk-form--reg .bk-btn--block { margin-top: 4px; }
.bk-login .bk-login-alt + .bk-hint { margin-top: 16px; }
@media (max-width: 380px) { .bk-reg-names { grid-template-columns: 1fr; } }

/* after Registrieren: the success page, then on to the pre-order */
.bk-welcome-ok { width: 64px; height: 64px; margin: 6px auto 18px; border-radius: 50%; background: var(--bk-ok); color: #fff; display: grid; place-items: center; font-size: 32px; line-height: 1; }
.bk-welcome-bar { height: 3px; margin: 26px auto 6px; max-width: 220px; border-radius: 3px; background: var(--bk-rule); overflow: hidden; }
.bk-welcome-bar span { display: block; height: 100%; width: 100%; background: var(--terracotta); transform-origin: left; animation: bk-welcome-fill linear forwards; }
@keyframes bk-welcome-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .bk-welcome-bar span { animation: none; } }

@media (max-width: 480px) {
  .bk-login-main { padding: 26px 20px 22px; border-radius: 16px; }
  .bk-login-logo { width: 200px; }
}
/* a desktop: a bigger card with bigger fields */
@media (min-width: 900px) {
  .bk-login { max-width: 560px; }
  .bk-login-main { padding: 44px 52px 36px; border-radius: 24px; }
  .bk-login-home { top: 18px; left: 20px; font-size: 15px; }
  .bk-login-logo { width: 280px; }
  .bk-login .bk-title { font-size: 36px; margin-bottom: 12px; }
  .bk-login .bk-lede { font-size: 16px; margin-bottom: 30px; }
  .bk-login .bk-field { margin-bottom: 20px; }
  .bk-login .bk-field label { font-size: 13px; }
  .bk-login .bk-field input { padding-block: 18px; font-size: 18px; border-radius: 12px; }
  .bk-input input { padding-left: 54px; }
  .bk-input-ico { left: 18px; width: 22px; height: 22px; }
  .bk-login .bk-code { font-size: 36px !important; }
  .bk-login .bk-btn--block, .bk-login-choice .bk-btn { padding: 18px 24px; font-size: 17px; border-radius: 12px; }
  .bk-login-choice { gap: 14px; margin-top: 0; }
  .bk-login-rule { width: 64px; margin: 30px auto; }
  .bk-login-head { font-size: 24px; margin-bottom: 18px; }
  .bk-login .bk-hint { font-size: 13px; }
  .bk-login .bk-link { font-size: 15px; }
  .bk-login-alt { margin-top: 22px; }
  .bk-reg-names { gap: 0 16px; }
  .bk-welcome-ok { width: 80px; height: 80px; font-size: 40px; }
}
/* ... and compact on a low window, so the longest form (Registrieren) fits without scrolling */
@media (min-width: 900px) and (max-height: 820px) {
  .bk-signin .bk-wrap { padding-block: 8px 16px; }
  .bk-login-main { padding: 26px 48px 22px; }
  .bk-login-brand { margin-bottom: 10px; }
  .bk-login-logo { width: 220px; }
  .bk-login .bk-title { font-size: 30px; margin-bottom: 6px; }
  .bk-login .bk-lede { margin-bottom: 16px; }
  .bk-login .bk-field { margin-bottom: 12px; }
  .bk-login .bk-field input { padding-block: 14px; }
  .bk-login .bk-btn--block, .bk-login-choice .bk-btn { padding-block: 15px; }
  .bk-login-alt { margin-top: 14px; }
  .bk-login .bk-hint { margin-top: 12px; }
}

.bk-msg { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
.bk-msg--err { background: var(--bk-err-soft); color: var(--bk-err); }
.bk-msg--warn { background: var(--bk-warn-soft); color: var(--bk-warn); }
.bk-msg--ok { background: var(--bk-ok-soft); color: var(--bk-ok); }
.bk-msg--tick { display: flex; align-items: flex-start; gap: 10px; }
.bk-tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bk-ok); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; line-height: 1;
}

.bk-split { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 820px) { .bk-split { grid-template-columns: 1fr; } }

/* ---------- a mail, shown where it would be sent (demo) ---------- */
.bk-inbox { display: grid; gap: 8px; }
.bk-inbox-h { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bk-muted); display: flex; justify-content: space-between; gap: 12px; }
.bk-mailframe { border: 1px dashed var(--bk-rule); border-radius: 10px; overflow: hidden; background: #e9dec8; }
.bk-mailmeta { background: var(--bk-surface); padding: 8px 12px; font-size: 12.5px; color: var(--bk-muted); border-bottom: 1px dashed var(--bk-rule); display: grid; gap: 1px; overflow-wrap: anywhere; }
.bk-mailmeta b { color: var(--ink); font-weight: 600; }
.bk-mailbody { max-height: 560px; overflow: auto; }
.bk-after { margin-top: 36px; display: grid; gap: 10px; }

/* ---------- the week ---------- */
/* greeting on the left, the buttons on the right, on one level */
.bk-who { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; margin-bottom: 8px; }
.bk-who-acts { grid-column: 2; grid-row: 1; }
.bk-name { font-family: "Montserrat", sans-serif; font-size: 24px; font-weight: 600; line-height: 1.1; }
.bk-meta { color: var(--bk-muted); font-size: 14px; overflow-wrap: anywhere; }
.bk-rules {
  display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: #4a4036; font-weight: 500;
  border-block: 1px solid var(--bk-rule); padding-block: 10px; margin: 18px 0 26px;
}
.bk-rules b { color: var(--ink); font-weight: 700; }
.bk-rules .bk-rules-warn { color: #b3261e; font-weight: 700; }
.bk-kw { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.bk-kw-num { font-family: "Montserrat", sans-serif; font-weight: 600; letter-spacing: 0.04em; color: var(--terracotta); font-size: 18px; }
.bk-kw-range { color: var(--bk-muted); font-size: 14px; }

.bk-days, .bk-kitchen { display: grid; gap: 18px; }
.bk-day, .bk-rep { background: var(--bk-surface); border: 1px solid var(--bk-rule); border-radius: 12px; box-shadow: var(--bk-shadow); }
.bk-day--closed { box-shadow: none; background: transparent; }
.bk-day--soon { box-shadow: none; }
.bk-day-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 18px; border-bottom: 1px solid var(--bk-rule); }
.bk-day-h h3 { font-family: "Montserrat", sans-serif; font-size: 18px; font-weight: 600; line-height: 1.15; margin: 0; }
.bk-day-note { font-size: 13px; color: var(--bk-muted); }
.bk-day-note b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-sp { flex: 1; }
.bk-sumline { font-size: 13px; color: var(--bk-muted); font-variant-numeric: tabular-nums; }
.bk-chip { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; background: var(--bk-surface-2); color: var(--bk-muted); }
.bk-chip--open, .bk-chip--ok { background: var(--bk-ok-soft); color: var(--bk-ok); }
.bk-chip--dirty { background: var(--bk-warn-soft); color: var(--bk-warn); }
.bk-chip--off { background: var(--bk-err-soft); color: var(--bk-err); }
.bk-chip--next, .bk-badge--warn.bk-badge--next { background: #fde3c8; color: #d85f05; }
.bk-chip--tiny { font-size: 9.5px; padding: 1px 6px; }

.bk-grp { padding: 6px 18px 12px; }
.bk-grp + .bk-grp { border-top: 1px dashed var(--bk-rule); }
.bk-grp-h { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bk-muted); padding: 10px 0 2px; }
.bk-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 16px; align-items: center; padding: 10px 0; }
.bk-item + .bk-item { border-top: 1px solid var(--bk-rule); }
.bk-item-text { display: grid; gap: 1px; min-width: 0; }
.bk-kind { font-family: "Montserrat", sans-serif; font-weight: 500; color: var(--terracotta); font-size: 12px; line-height: 1.1; }
.bk-dish { font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.bk-item.is-on .bk-dish { font-weight: 600; }
.bk-price { font-size: 13px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.bk-qty { font-weight: 600; min-width: 2rem; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .bk-item { grid-template-columns: minmax(0, 1fr) auto; }
  .bk-price { grid-column: 1; text-align: left; }
  .bk-step, .bk-qty, .bk-so-b, .bk-soldout { grid-column: 2; grid-row: 1 / span 2; }
}
.bk-step { display: inline-grid; grid-template-columns: 36px 34px 36px; align-items: center; border: 1px solid var(--bk-rule); border-radius: 8px; overflow: hidden; background: var(--paper); }
.bk-step button { appearance: none; height: 36px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--terracotta); }
.bk-step button:hover:not([disabled]) { background: var(--bk-accent-soft); }
.bk-step button[disabled] { color: var(--bk-muted); opacity: 0.4; cursor: default; }
.bk-step output { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-item.is-on .bk-step { border-color: var(--terracotta); }
.bk-closed-note { margin: 0; padding: 14px 18px; font-size: 14px; color: var(--bk-muted); }

/* ---------- Ausverkauft: guest ("Ausverkauft" where the counter was) and Küche (the button) ---------- */
.bk-soldout { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; background: var(--bk-err-soft); color: var(--bk-err); white-space: nowrap; }
.bk-item.is-soldout .bk-dish, .bk-item.is-soldout .bk-price { color: var(--bk-muted); }
.bk-item.is-soldout .bk-price { font-weight: 400; }
.bk-so-have { font-size: 12.5px; color: var(--bk-muted); line-height: 1.4; }
.bk-so { margin: 0 0 22px; }
.bk-so-intro { margin: 0 0 10px; }
.bk-so-lede { margin: 0; font-size: 13px; color: var(--bk-muted); max-width: 70ch; }
.bk-so-b { appearance: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; min-height: 36px; border-radius: 8px; border: 1px solid var(--bk-rule); background: var(--paper); color: var(--ink); white-space: nowrap; }
.bk-so-b:hover { border-color: var(--bk-err); color: var(--bk-err); }
.bk-so-b.is-on { background: var(--bk-err); border-color: var(--bk-err); color: #fff; }
.bk-so-b.is-on:hover { filter: brightness(0.94); color: #fff; }
.bk-so-b:focus-visible { outline: 3px solid var(--bk-err-soft); outline-offset: 1px; }
.bk-so-box { flex: none; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid currentColor; position: relative; }
.bk-so-b.is-on .bk-so-box::before, .bk-so-b.is-on .bk-so-box::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 2px; margin: -1px 0 0 -4.5px; background: currentColor; border-radius: 1px; transform: rotate(45deg); }
.bk-so-b.is-on .bk-so-box::after { transform: rotate(-45deg); }
.bk-modal-box--small { max-width: 420px; }

/* ---------- save bar, toast ---------- */
.bk-savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--bk-surface); border-top: 1px solid var(--bk-rule); box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, 0.4);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.bk-savebar[hidden] { display: none; }
.bk-savebar-in { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; text-align: left; }
.bk-savebar-txt { margin: 0; font-size: 14px; }
.bk-savebar-sum { margin: 0 6px 0 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-savebar-sum[hidden] { display: none; }
.bk-savebar-sum span { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bk-muted); }
.bk-savebar-sum b { font-size: 20px; font-weight: 700; color: var(--ink); }
.bk-savebar-in > .bk-row { flex-wrap: nowrap; margin-left: auto; }
.bk-savebar-in .bk-btn { white-space: nowrap; }
@media (max-width: 520px) {
  .bk-savebar-in > .bk-row { width: 100%; gap: 12px; }
  .bk-savebar-sum { margin-right: auto; align-items: flex-start; }
  .bk-savebar-sum b { font-size: 19px; }
  .bk-savebar-in .bk-btn { padding-inline: 16px; }
}
.bk-toast {
  position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; text-align: center;
  box-shadow: var(--bk-shadow);
}
.bk-toast[hidden] { display: none; }

/* ---------- kitchen list (demo) ---------- */
.bk-rep-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
@media (max-width: 760px) { .bk-rep-b { grid-template-columns: 1fr; } }
.bk-rep-col { padding: 12px 18px 16px; min-width: 0; }
.bk-rep-col + .bk-rep-col { border-left: 1px solid var(--bk-rule); }
@media (max-width: 760px) { .bk-rep-col + .bk-rep-col { border-left: 0; border-top: 1px solid var(--bk-rule); } }
.bk-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.bk-tbl th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bk-muted); padding: 4px 0 6px; }
.bk-tbl th.bk-r { text-align: right; }
.bk-tbl td { padding: 7px 0; border-top: 1px solid var(--bk-rule); vertical-align: top; }
.bk-tbl td.bk-q { text-align: right; font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; width: 3.5em; }
.bk-tbl-grp { display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.bk-tbl-dish { font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 14px; line-height: 1.3; }
.bk-tbl td.bk-g { padding-right: 12px; width: 42%; }
.bk-co { display: block; font-size: 12.5px; color: var(--bk-muted); }
.bk-empty { margin: 0; padding: 16px 18px; color: var(--bk-muted); font-size: 14px; }
.bk-rep-mail { padding: 0 18px 18px; }

@media (prefers-reduced-motion: reduce) {
  .booking *, .bk-toast { transition: none !important; animation: none !important; }
}

/* ---------- terms, blocked, thank-you ---------- */

.bk-gate--wide { max-width: 640px; }
.bk-terms {
  max-height: 340px; overflow-y: auto; margin: 0 0 16px; padding: 16px 18px;
  background: var(--bk-surface); border: 1px solid var(--bk-rule); border-radius: 10px; font-size: 14px;
}
.bk-terms h3 { margin: 16px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); }
.bk-terms h3:first-child { margin-top: 0; }
.bk-terms p { margin: 0 0 8px; }
.bk-terms a { color: var(--terracotta); }
.bk-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 14px; cursor: pointer; }
.bk-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--terracotta); flex: none; }

.bk-thanks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: start; }
@media (max-width: 800px) { .bk-thanks { grid-template-columns: 1fr; } }

/* the receipt: a till slip with a torn edge */
.bk-receipt {
  --rc-edge: 8px;
  position: relative; background: #fffdf6; color: #2b2723; padding: 22px 22px 26px;
  font-family: "Montserrat", sans-serif; font-size: 13px; line-height: 1.5;
  box-shadow: var(--bk-shadow); transform: rotate(0.6deg);
  --tooth: conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) bottom / 14px 100% repeat-x;
  -webkit-mask: var(--tooth); mask: var(--tooth);
  padding-bottom: calc(26px + var(--rc-edge));
}
.bk-rc-head { display: grid; justify-items: center; text-align: center; color: var(--terracotta); margin-bottom: 8px; }
.bk-rc-pre { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 16px; }
.bk-rc-mark { font-family: "Permanent Marker", cursive; font-size: 26px; line-height: 1.1; }
.bk-rc-addr { font-size: 11px; color: var(--bk-muted); margin-top: 2px; }
.bk-rc-title { margin: 12px 0; padding: 6px 0; border-block: 1px dashed #b9ab8e; text-align: center; letter-spacing: 0.3em; text-transform: uppercase; font-size: 12px; }
.bk-rc-meta { margin: 0 0 12px; display: grid; gap: 2px; }
.bk-rc-meta div { display: flex; justify-content: space-between; gap: 12px; }
.bk-rc-meta dt { color: var(--bk-muted); }
.bk-rc-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.bk-rc-day { padding: 10px 0; border-top: 1px dashed #b9ab8e; }
.bk-rc-dayh { margin: 0 0 6px; font-weight: 700; }
.bk-rc-line { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 6px; padding: 2px 0; }
.bk-rc-q { font-weight: 700; }
.bk-rc-t small { display: block; color: var(--bk-muted); font-size: 11px; }
.bk-rc-p { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-rc-sub { display: flex; justify-content: space-between; margin-top: 6px; color: var(--bk-muted); font-size: 12px; }
.bk-rc-total { display: flex; justify-content: space-between; padding: 8px 0; margin-top: 4px; border-block: 2px solid #2b2723; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.bk-rc-note { margin: 12px 0 0; text-align: center; font-size: 11px; color: var(--bk-muted); }
.bk-rc-thx { margin: 12px 0 0; text-align: center; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }

/* the thank-you receipt comes out of a printer slot (printReceipt() in js/booking.js moves .bk-paper).
   Without script, or once printed, the slip simply stands there. */
.bk-printer { position: relative; }
.bk-slot {
  position: relative; z-index: 2; height: 14px; border-radius: 8px;
  background: linear-gradient(#4a423b, #26211d); box-shadow: 0 3px 6px -2px rgba(43, 39, 35, 0.45), inset 0 -3px 0 rgba(0, 0, 0, 0.45);
  transition: opacity 0.5s ease 0.15s;
}
.bk-slot::before { content: ""; position: absolute; inset: 4px 14px auto; height: 4px; border-radius: 2px; background: #0d0b0a; } /* the slit */
.bk-slot::after { content: ""; position: absolute; right: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #9aa89a; }
.bk-printer.is-printing .bk-slot::after { background: var(--bk-ok); box-shadow: 0 0 5px var(--bk-ok); }
.bk-printer.is-done .bk-slot { opacity: 0; }
.bk-feed { margin-top: -6px; clip-path: inset(0 -40px -90px -40px); }
.bk-paper { transform: rotate(0.6deg); transform-origin: 50% 0; filter: drop-shadow(0 6px 8px rgba(43, 39, 35, 0.16)); will-change: transform; }
.bk-printer .bk-receipt { transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .bk-paper { transform: none; } }

/* ---------- kitchen: side menu and the no-show register ---------- */

.bk-adm { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.bk-adm-main { min-width: 0; }
.bk-side { position: sticky; top: 12px; display: grid; gap: 2px; padding: 14px; background: var(--bk-surface); border: 1px solid var(--bk-rule); border-radius: 12px; }
.bk-side-who { display: grid; padding: 2px 8px 10px; border-bottom: 1px solid var(--bk-rule); margin-bottom: 4px; }
.bk-side-k { font-family: "Montserrat", sans-serif; font-size: 18px; font-weight: 600; line-height: 1.1; color: var(--terracotta); }
.bk-side-m { font-size: 12px; color: var(--bk-muted); overflow-wrap: anywhere; }
.bk-side-h { margin: 12px 8px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.bk-side-b { text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 14px; }
.bk-side-b:hover { background: var(--bk-surface-2); }
.bk-side-b[aria-current="page"] { background: var(--terracotta); color: #fff; font-weight: 600; }
.bk-side-out { margin-top: 14px; border-top: 1px solid var(--bk-rule); border-radius: 0 0 8px 8px; padding-top: 12px; color: var(--terracotta); }
@media (max-width: 800px) {
  .bk-adm { grid-template-columns: 1fr; gap: 20px; }
  .bk-side { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; align-items: center; gap: 4px; padding: 8px; }
  .bk-side-who, .bk-side-h { display: none; }
  .bk-side-out { margin-top: 0; border-top: 0; padding-top: 9px; }
}
.bk-adm-main .bk-title { margin-bottom: 14px; }
.bk-sub { margin: 28px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bk-muted); }
.bk-lookup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; max-width: 560px; margin-bottom: 18px; }
.bk-lookup .bk-field { flex: 1 1 260px; margin: 0; }
.bk-ns-card { background: var(--bk-surface); border: 1px solid var(--bk-rule); border-radius: 12px; padding: 16px 18px; box-shadow: var(--bk-shadow); }
.bk-ns-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: center; margin-bottom: 12px; }
.bk-ns-strikes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.bk-pips { display: inline-flex; gap: 4px; vertical-align: middle; }
.bk-pip { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bk-rule); background: transparent; }
.bk-pip.is-on { background: var(--bk-err); border-color: var(--bk-err); }
.bk-ns-t td { vertical-align: top; }
.bk-ns-t tr.is-noshow td { background: var(--bk-err-soft); }
.bk-cb { width: 36px; }
.bk-cb input { width: 18px; height: 18px; accent-color: var(--terracotta); }
.bk-cb input:disabled { opacity: .3; cursor: not-allowed; }
.bk-cb-l { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -10px 0; cursor: pointer; }
.bk-ns-day { cursor: pointer; }
.bk-ns-st { margin-top: 4px; max-width: 11.5em; white-space: normal; font-weight: 400; }
.bk-ns-st .bk-chip { white-space: normal; text-transform: none; letter-spacing: 0; line-height: 1.35; }
.bk-ns-t tr.is-off td:not(.bk-cb) { color: var(--bk-muted, #8a7d6f); }
.bk-nowrap { white-space: nowrap; }
.bk-scroll { overflow-x: auto; }
.bk-note { font-size: 13px; color: var(--bk-muted); }
.bk-ns-card .bk-row { margin-top: 14px; }
.bk-confirm { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--bk-warn-soft); color: var(--ink); }
.bk-confirm p { margin: 0 0 10px; }
.bk-co { display: block; font-size: 12px; font-weight: 400; color: var(--bk-muted); }
.bk-empty { margin: 8px 0; color: var(--bk-muted); }
.bk-opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .bk-receipt { transform: none; } }
.bk-ns-t td { padding-right: 14px; }
/* the register: space inside the frame, and room for a full name */
.bk-reg th, .bk-reg td { padding-left: 16px; padding-right: 8px; }
.bk-reg th:last-child, .bk-reg td:last-child { padding-right: 16px; }
@media (min-width: 801px) { .bk-reg th:first-child, .bk-reg td:first-child { min-width: 17em; } }
.bk-reg td { padding-top: 10px; padding-bottom: 10px; }

/* ---------- terms pop-up (every order) ---------- */

.bk-noscroll { overflow: hidden; }
.bk-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.bk-modal[hidden] { display: none; }
.bk-modal-bg { position: absolute; inset: 0; background: rgba(43, 39, 35, 0.55); }
.bk-modal-box {
  position: relative; width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--paper); border-radius: 14px; padding: 24px 24px 20px; box-shadow: 0 24px 60px -16px rgba(43, 39, 35, 0.5); outline: none;
}
.bk-modal-box .bk-title { font-size: clamp(20px, 3.4vw, 26px); }
.bk-modal-box .bk-lede { margin-bottom: 12px; }
.bk-modal-order { margin: 0 0 14px; padding: 10px 14px; list-style: none; background: var(--bk-surface-2); border-radius: 8px; font-size: 14px; display: grid; gap: 4px; }
.bk-modal-box .bk-terms { max-height: 38dvh; }
.bk-unconf { margin: 0; padding: 10px 18px; font-size: 13px; background: var(--bk-warn-soft); color: var(--bk-warn); border-top: 1px solid var(--bk-rule); }
.bk-msg .bk-row { margin-top: 10px; }

/* ---------- kitchen: day tabs, table, history, dashboard ---------- */

.bk-page {
  --bkc-classic: #b4553f; --bkc-veggie: #5f8a3c; --bkc-special: #c9962b; --bkc-starter1: #4a6b8a; --bkc-starter2: #7a4b6e;
  --bkc-dessert: #8a7d6f; --bkc-bar: #ad5340; --bkc-peak: #c9962b;
}
.bk-ic { width: 12px; height: 12px; flex: none; }
.bk-dtabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; border-bottom: 2px solid var(--bk-rule); }
.bk-dtab { display: grid; gap: 1px; text-align: left; padding: 8px 14px 9px; background: var(--bk-surface-2); border: 1px solid var(--bk-rule); border-bottom: 0; border-radius: 8px 8px 0 0; cursor: pointer; min-width: 100px; margin-bottom: -2px; }
.bk-dtab-d { font-weight: 600; }
.bk-dtab-s { font-size: 11px; color: var(--bk-muted); display: flex; align-items: center; gap: 4px; }
.bk-dtab.is-locked { color: var(--bk-muted); }
.bk-dtab[aria-selected="true"] { background: var(--bk-surface); border-bottom: 2px solid var(--bk-surface); }
.bk-dtab[aria-selected="true"] .bk-dtab-d { color: var(--terracotta); }
.bk-live { color: var(--bk-ok); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.bk-next { color: #e0690c; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.bk-closed { color: var(--bk-err); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.bk-dtab--arch { margin-left: auto; }
/* tabs of a new week beside the running week's: a black rule between them, "Neue Woche" over the first new tab.
   On a phone the tabs wrap, so the rule becomes a break: the new week starts its own row under the header. */
.bk-dtabs--wk { padding-top: 20px; }
.bk-wsep { position: relative; flex: none; width: 2px; background: #12100e; margin: 0 4px; border-radius: 1px; }
.bk-wsep b { position: absolute; left: 8px; bottom: calc(100% + 5px); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #12100e; white-space: nowrap; }
@media (max-width: 640px) {
  .bk-dtabs--wk { padding-top: 0; }
  .bk-wsep { flex: 0 0 100%; width: auto; height: auto; background: none; margin: 8px 0 0; border-top: 2px solid #12100e; border-radius: 0; padding-top: 3px; }
  .bk-wsep b { position: static; display: block; }
}
/* "Als nächstes": a small header over the one tab that opens next (same look as "Neue Woche"), a thin black line
   under it as wide as the tab. On a phone the tabs wrap, so there is room for the header over every row. */
.bk-dtab--nx { position: relative; }
.bk-dtab--nx::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% + 3px); height: 2px; border-radius: 1px; background: #12100e; }
.bk-nx-h { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #12100e; white-space: nowrap; pointer-events: none; }
/* narrow tabs: the header starts at the tab's left edge and runs to the right; right before a week break it runs to the left
   instead, so it never meets "Neue Woche" */
@media (max-width: 640px) { .bk-nx-h { right: auto; width: max-content; font-size: 10px; letter-spacing: 0.04em; } .bk-dtab--nxl .bk-nx-h { left: auto; right: 0; } }
.bk-dtabs--nx { padding-top: 24px; row-gap: 24px; }
/* first tab of a new week that is also the next one: "Neue Woche" and, right under it, "Als nächstes" */
.bk-dtabs--both { padding-top: 46px; }
.bk-wsep--both::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; background: #12100e; border-radius: 1px; }
.bk-wsep--both b { bottom: calc(100% + 29px); }
@media (max-width: 640px) {
  .bk-dtabs--both { padding-top: 0; }
  .bk-wsep--both { margin-bottom: 24px; }
  .bk-wsep--both::after { display: none; }
  .bk-wsep--both b { bottom: auto; }
}
.bk-dpanel { background: var(--bk-surface); border: 1px solid var(--bk-rule); border-top: 0; border-radius: 0 0 12px 12px; padding: 16px; box-shadow: var(--bk-shadow); min-width: 0; }
.bk-ph { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.bk-ph h3 { margin: 0; font-family: "Montserrat", sans-serif; font-size: 20px; font-weight: 600; line-height: 1.1; }
.bk-badge { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--bk-surface-2); color: var(--bk-muted); }
.bk-badge--ok { background: var(--bk-ok-soft); color: var(--bk-ok); }
.bk-badge--warn { background: var(--bk-warn-soft); color: var(--bk-warn); }
.bk-badge--err { background: var(--bk-err-soft); color: var(--bk-err); }
.bk-badge .bk-ic { width: 12px; height: 12px; vertical-align: -1px; margin-right: 5px; }
.bk-sp { flex: 1; }

.bk-dsum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 14px; margin-bottom: 14px; background: var(--bk-surface-2); border-radius: 10px; }
.bk-dsum h4 { margin: 0; font-family: "Montserrat", sans-serif; font-size: 17px; font-weight: 600; }
.bk-dsum-c { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--k) 20%, var(--bk-surface)); border: 1px solid color-mix(in srgb, var(--k) 45%, transparent); }
.bk-dsum-c b { font-variant-numeric: tabular-nums; }

.bk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.bk-tools label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bk-muted); display: flex; align-items: center; gap: 8px; }
.bk-tools input, .bk-tools select { padding: 7px 10px; border: 1px solid var(--bk-rule); border-radius: 6px; background: var(--paper); font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400; min-width: 0; }
.bk-tools input { width: 200px; max-width: 100%; }
.bk-scroll { overflow: auto; border: 1px solid var(--bk-rule); border-radius: 8px; background: var(--bk-surface); max-height: 640px; }
.bk-ptbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.bk-ptbl th, .bk-ptbl td { padding: 8px 10px; border-bottom: 1px solid var(--bk-rule); border-right: 1px solid var(--bk-rule); text-align: left; vertical-align: top; background: var(--bk-surface); }
.bk-ptbl th:last-child, .bk-ptbl td:last-child { border-right: 0; }
.bk-ptbl thead th { position: sticky; top: 0; z-index: 2; background: var(--bk-surface-2); font-weight: 600; white-space: nowrap; border-bottom: 2px solid var(--bk-rule); }
.bk-ptbl tbody tr.bk-prow:nth-child(odd) td { background: color-mix(in srgb, var(--bk-surface-2) 40%, var(--bk-surface)); }
.bk-ptbl tbody tr:hover td { background: color-mix(in srgb, var(--bk-surface-2) 85%, var(--bk-surface)); }
.bk-ptbl tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--bk-surface-2); font-weight: 600; border-top: 2px solid var(--ink); }
.bk-ptbl .bk-r { text-align: right; white-space: nowrap; }
.bk-ptbl .bk-nw { white-space: nowrap; }
.bk-ptbl .bk-co2 { color: var(--bk-muted); }
.bk-ptbl td.bk-mail { max-width: 15em; }
.bk-mailto { color: #1f5fae; text-decoration: none; font-weight: inherit; overflow-wrap: anywhere; }
.bk-mailto:hover, .bk-mailto:focus-visible { text-decoration: underline; }
.bk-mailb { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.bk-ptbl tr.is-tg { cursor: pointer; }
.bk-ptbl .bk-pdish { min-width: 220px; }
.bk-ptbl .bk-pk { display: block; font-size: 11.5px; color: var(--bk-muted); }
.bk-ptbl tr.bk-grp td { background: var(--bk-surface-2) !important; font-weight: 600; border-top: 1px solid var(--bk-rule); }
.bk-ptbl tr.bk-sub td { background: color-mix(in srgb, var(--bk-surface-2) 55%, var(--bk-surface)) !important; font-size: 13px; }
.bk-ptbl tr.bk-sub td.bk-pdish { padding-left: 24px; }
.bk-ptbl tr.is-open td { border-bottom-color: transparent; }
.bk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--k); margin-right: 6px; vertical-align: -1px; }
.bk-pmore { display: inline-block; font-size: 12px; font-weight: 600; color: var(--terracotta); background: var(--bk-accent-soft); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.bk-tg { width: 22px; height: 22px; margin-right: 6px; border: 1px solid var(--bk-rule); border-radius: 5px; background: var(--paper); color: var(--terracotta); cursor: pointer; line-height: 1; padding: 0; vertical-align: middle; }
.bk-tg-sp { display: inline-block; width: 28px; }
.bk-sort { cursor: pointer; user-select: none; }
.bk-ar { color: var(--terracotta); margin-left: 4px; }

.bk-lockwrap { position: relative; }
.bk-skel { filter: blur(3.5px); opacity: 0.55; pointer-events: none; user-select: none; }
.bk-bar { display: block; height: 11px; border-radius: 3px; background: var(--bk-rule); }
.bk-lockcard { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 24px)); background: var(--bk-surface); border: 1px solid var(--bk-rule); border-radius: 12px; padding: 20px 22px; text-align: center; box-shadow: 0 18px 40px -18px rgba(43, 39, 35, 0.45); }
.bk-lockcard .bk-ic { width: 30px; height: 30px; color: var(--terracotta); margin-bottom: 6px; }
.bk-lockcard h4 { margin: 0 0 6px; font-family: "Montserrat", sans-serif; font-size: 20px; font-weight: 600; }
.bk-lockcard p { margin: 0 0 6px; color: var(--bk-muted); }
.bk-lockcard .bk-next--card { display: block; width: fit-content; margin: 0 auto 8px; padding: 5px 16px; border-radius: 999px; background: #fde3c8; color: #d85f05; font: 600 16px "Montserrat", sans-serif; letter-spacing: 0.04em; }
.bk-lockcard .bk-opens { margin: 4px 0 0; font: 500 17px "Montserrat", sans-serif; color: var(--ink); }
.bk-lockcard .bk-opens b { font-weight: 700; }
.bk-lockcard .bk-opens .bk-cd { margin: 0 0 0 6px; font: 600 17px "Montserrat", sans-serif; color: var(--terracotta); white-space: nowrap; }
.bk-lockcard .bk-opens.bk-closes { margin-top: 2px; }
.bk-lockcard .bk-cd { margin-top: 8px; font: 600 15px "Montserrat", sans-serif; color: var(--ink); }

.bk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 14px; }
.bk-csep { color: var(--bk-muted); }
.bk-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bk-folder { display: grid; gap: 4px; text-align: left; padding: 14px 14px 12px; border: 1px solid var(--bk-rule); border-radius: 10px; background: var(--paper); cursor: pointer; }
.bk-folder:hover { background: var(--bk-surface-2); border-color: var(--terracotta); }
.bk-folder svg { width: 58px; height: 46px; margin-bottom: 2px; }
.bk-fn { font-family: "Montserrat", sans-serif; font-size: 18px; font-weight: 600; line-height: 1.1; }
.bk-fm { font-size: 12.5px; color: var(--bk-muted); }
.bk-fm b { color: var(--ink); font-weight: 600; }

/* dashboard */
.bk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bk-kpi { display: grid; gap: 4px; padding: 14px 16px; background: var(--bk-surface); border: 1px solid var(--bk-rule); border-radius: 12px; box-shadow: var(--bk-shadow); }
.bk-kpi-l { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bk-muted); }
.bk-kpi-v { font-family: "Montserrat", sans-serif; font-size: 26px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.bk-kpi-d { font-size: 12px; color: var(--bk-muted); }
.bk-kpi-wide { grid-column: 1 / -1; }
.bk-delta { font-weight: 600; }
.bk-delta.is-up { color: var(--bk-ok); }
.bk-delta.is-down { color: var(--bk-err); }
.bk-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .bk-dgrid { grid-template-columns: 1fr; } }
.bk-card { background: var(--bk-surface); border: 1px solid var(--bk-rule); border-radius: 12px; padding: 16px; box-shadow: var(--bk-shadow); min-width: 0; display: grid; gap: 10px; align-content: start; }
.bk-card > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.bk-card h3, .bk-wdet h4 { margin: 0; font-family: "Montserrat", sans-serif; font-size: 17px; font-weight: 600; }
.bk-wdet { background: var(--bk-surface); border: 1px solid var(--bk-rule); border-radius: 12px; padding: 16px; box-shadow: var(--bk-shadow); display: grid; gap: 12px; align-content: start; min-width: 0; }
.bk-wstats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--bk-muted); }
.bk-wstats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-ctrls { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.bk-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--bk-rule); border-radius: 8px; overflow: hidden; }
.bk-segb { padding: 5px 11px; border: 0; border-right: 1px solid var(--bk-rule); background: var(--paper); font-size: 12.5px; cursor: pointer; }
.bk-segb:last-child { border-right: 0; }
.bk-segb[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bk-chart { width: 100%; height: auto; display: block; overflow: visible; }
.bk-gl { stroke: var(--bk-rule); stroke-width: 1; }
.bk-ax { font-size: 11.5px; fill: var(--bk-muted); font-family: "Montserrat", sans-serif; }
.bk-avg { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: 0.55; }
.bk-hit { cursor: pointer; }
.bk-hit:hover { fill: rgba(173, 83, 64, 0.1); }
.bk-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-lg { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--bk-rule); border-radius: 999px; background: var(--paper); font-size: 12px; cursor: pointer; }
.bk-lg i { width: 10px; height: 10px; border-radius: 2px; }
.bk-lg[aria-pressed="false"] { opacity: 0.45; text-decoration: line-through; }
.bk-hbars { display: grid; gap: 6px; }
.bk-hb { display: grid; grid-template-columns: minmax(110px, 46%) minmax(40px, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.bk-hbl { line-height: 1.25; overflow-wrap: anywhere; }
.bk-hbt { height: 12px; background: var(--bk-surface-2); border-radius: 3px; position: relative; }
.bk-hbt i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px 5px 5px 3px; }
.bk-hb b { font-variant-numeric: tabular-nums; }
.bk-tip { position: fixed; z-index: 120; pointer-events: none; background: var(--ink); color: var(--paper); padding: 7px 10px; border-radius: 7px; font-size: 12px; line-height: 1.4; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); max-width: 280px; }
.bk-note { font-size: 13px; color: var(--bk-muted); }

/* guest week: blocked-out days, same treatment as the kitchen's locked days */
.bk-gpanel { margin-top: 14px; }
.bk-day--closed, .bk-day--soon { background: var(--bk-surface); box-shadow: none; }
.bk-day .bk-lockwrap { min-height: 220px; }
.bk-day .bk-lockcard { top: 50%; }
.bk-day .bk-skel .bk-item { padding-block: 14px; }
/* steppers: larger and darker so they are easy to hit and read */
.bk-step { grid-template-columns: 44px 38px 44px; border-width: 2px; border-color: var(--ink); }
.bk-step button { height: 44px; font-size: 22px; }
.bk-step output { font-size: 18px; font-weight: 700; }

/* guest page: "Meine Bestellungen" is one button in the left column; it opens a short overview with the ticket */
.bk-adm--guest { grid-template-columns: 272px minmax(0, 1fr); }
.bk-side--mine { position: sticky; top: 12px; padding: 8px; z-index: 5; }
.bk-mine-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; font-weight: 600; }
.bk-mine-end { display: inline-flex; align-items: center; gap: 12px; }
.bk-mine-n { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--bk-surface-2); color: var(--bk-muted); font-variant-numeric: tabular-nums; }
.bk-mine-n.is-on { background: var(--terracotta); color: #fff; }
.bk-mine-btn[aria-current="page"] .bk-mine-n.is-on { background: #fff; color: var(--terracotta); }
.bk-mine-pop { position: absolute; left: 0; top: calc(100% + 8px); width: 340px; max-height: calc(100vh - 90px); overflow-y: auto; display: grid; gap: 8px; padding: 14px; background: var(--bk-surface); border: 1px solid var(--bk-rule); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(43, 39, 35, 0.45); animation: bk-pop 0.18s ease-out both; }
@keyframes bk-pop { from { opacity: 0; transform: translateY(-6px); } }
.bk-mine { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--bk-rule); border-radius: 8px; background: var(--paper); cursor: pointer; }
.bk-mine:hover, .bk-mine.is-cur { border-color: var(--terracotta); }
.bk-mine-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bk-mine-l { font-size: 13px; color: var(--ink); }
.bk-mine-t { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.bk-mine-empty { margin: 4px 2px; font-size: 13px; color: var(--bk-muted); }
.bk-mine-ticket { margin: 6px 4px 4px; }
.bk-mine-ticket .bk-receipt { font-size: 12px; padding: 16px 14px 20px; padding-bottom: calc(20px + var(--rc-edge)); }
@media (max-width: 800px) {
  .bk-adm--guest { grid-template-columns: 1fr; }
  .bk-left { display: contents; }
  .bk-side--mine { position: relative; display: block; overflow: visible; order: 1; }
  .bk-adm--guest > .bk-adm-main { order: 2; }
  .bk-side--help { order: 3; }
  .bk-mine-pop { position: static; width: auto; max-height: none; margin-top: 8px; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .bk-mine-pop { animation: none; } }

/* guest page: the own Verlauf (same folders as the kitchen's), a week as a list, a day as its receipt */
.bk-gfiles td { vertical-align: top; }
.bk-gdish { font-size: 13.5px; line-height: 1.45; min-width: 14em; }
.bk-gday { max-width: 360px; margin: 6px 0 10px; }
.bk-hist-btn { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; font-weight: 600; }
.bk-hist-ic svg { display: block; width: 24px; height: 19px; }
.bk-hist-btn[aria-current="page"] .bk-hist-ic svg path:first-child { fill: #f3d6cb; }
.bk-hist-btn[aria-current="page"] .bk-hist-ic svg path:last-child { fill: #fff; }
.bk-mine-hist { justify-self: start; margin: 2px 2px 0; font-size: 13px; }
@media (max-width: 520px) { .bk-gday { max-width: none; } .bk-gdish { min-width: 10em; } }

/* ---------- the kitchen area's tabs: Küche | Newsletter ---------- */
.bk-tabs { display: flex; gap: 4px; margin: -8px 0 26px; border-bottom: 1px solid var(--bk-rule); }
.bk-tab {
  padding: 10px 22px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; margin-bottom: -1px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bk-muted); text-decoration: none;
}
.bk-tab:hover { color: var(--terracotta); }
.bk-tab[aria-current="page"] { background: var(--bk-surface); border-color: var(--bk-rule); color: var(--terracotta); }
/* thin black line between Newsletter and the Vorbestellen tab (which leaves the kitchen area for the guest page) */
.bk-tab[href^="vorbestellen"] { position: relative; margin-left: 12px; }
.bk-tab[href^="vorbestellen"]::before { content: ""; position: absolute; left: -9px; top: 6px; bottom: 6px; border-left: 1px solid var(--ink); }
/* "Admin Account" label at the right end of the tab row, level with the tabs (not a link) */
.bk-tabs-who { margin: 0 2px 0 auto; padding: 10px 0; align-self: flex-end; font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
@media (max-width: 640px) { .bk-tabs-who { display: none; } } /* no room next to three tabs on a phone */
@media (max-width: 480px) { .bk-tab[href^="vorbestellen"] { margin-left: 0; } .bk-tab[href^="vorbestellen"]::before { left: -3px; } } /* phone: the tabs are already tight, the line sits in the gap */

/* ---------- back / forward arrows in the top bar (js/nav.js) ---------- */
.bk-nav { display: inline-flex; gap: 6px; }
.bk-nav-b {
  appearance: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--terracotta); background: var(--paper); color: var(--terracotta);
  font-size: 17px; line-height: 1; transition: background 0.2s ease, color 0.2s ease;
}
.bk-nav-b:hover:not(:disabled) { background: var(--terracotta); color: #fff; }
.bk-nav-b:disabled { opacity: 0.35; cursor: default; }

/* ---------- Küche / Newsletter next to Abmelden (order page, kitchen admins only) ---------- */
.bk-who-acts { margin-left: auto; gap: 10px; }
.bk-btn--admin { border-color: var(--bk-err); color: var(--bk-err); }
/* small header above the admin buttons only; Abmelden stays in the row, level with the buttons */
.bk-who-acts { align-items: flex-end; }
.bk-adm-grp { display: grid; gap: 6px; }
/* thin vertical line between Newsletter and Abmelden, level with the buttons only */
.bk-adm-grp .bk-row { gap: 10px; padding-right: 10px; border-right: 1px solid var(--ink); }
.bk-adm-h { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); line-height: 1; }

/* kitchen: cancel an order on its own day (column "Storno") */
.bk-cx { text-align: right; }
.bk-cancel { color: var(--bk-warn); font-weight: 600; }
.bk-cancel-hint { margin: 0 0 10px; }
/* the Storno column stays in view when the table scrolls sideways on a narrow screen */
.bk-ptbl th.bk-cx, .bk-ptbl td.bk-cx { position: sticky; right: 0; border-left: 1px solid var(--bk-rule); }
.bk-ptbl th.bk-cx { z-index: 3; }
.bk-ptbl td.bk-cx { z-index: 1; }
.bk-ptbl:has(th.bk-cx) .bk-pdish { min-width: 170px; }
.bk-ptbl td.bk-cx, .bk-ptbl th.bk-cx { padding-left: 8px; padding-right: 8px; }
.bk-card--wide { grid-column: 1 / -1; }

/* narrow screens: Küche, Newsletter and Abmelden stay on one line */
@media (max-width: 480px) {
  /* admins: three buttons do not fit beside the greeting, so they take their own row under it, one line */
  .bk-who--admin .bk-who-acts { grid-column: 1 / -1; grid-row: 2; gap: 8px; width: 100%; margin: 4px 0 0; flex-wrap: nowrap; }
  .bk-who--admin .bk-who-acts .bk-btn { padding: 12px 12px; font-size: 13px; flex: 1 1 auto; }
  .bk-who--admin .bk-who-acts { margin-top: 12px; }
  .bk-who--admin .bk-who-acts .bk-adm-grp { flex: 2 1 auto; }
  .bk-who--admin .bk-who-acts .bk-adm-grp .bk-row { flex-wrap: nowrap; gap: 8px; }
  .bk-who-acts .bk-btn { padding: 10px 14px; font-size: 13px; }
}
.bk-si { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: 16px; align-items: start; }
.bk-si-kpis { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 0; }
.bk-si-main { display: grid; gap: 10px; min-width: 0; }
.bk-si-live { margin: 0; font-size: 12px; }
@media (max-width: 700px) { .bk-si { grid-template-columns: 1fr; } .bk-si-kpis { grid-template-columns: 1fr 1fr; } .bk-si-live { grid-column: 1 / -1; } }
i.bk-live { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--bk-ok); animation: bk-live 2s ease-in-out infinite; }
@keyframes bk-live { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { i.bk-live { animation: none; } }

/* ---------- Hilfe ---------- */
/* guest: a second box in the left column, under "Meine Bestellungen" */
.bk-left { position: sticky; top: 12px; display: grid; gap: 14px; align-self: start; z-index: 5; }
.bk-left .bk-side--mine { position: relative; top: 0; }
.bk-side--help { position: static; padding: 14px; gap: 0; }
.bk-help-h { margin: 0 0 2px; font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 600; color: var(--terracotta); }
.bk-help-lede { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--bk-muted); }
.bk-help-form .bk-field { margin-bottom: 12px; }
.bk-help-form select, .bk-help-form textarea {
  width: 100%; padding: 10px 8px 10px 10px; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--bk-rule); border-radius: 8px;
}
.bk-help-form textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
.bk-help-form select:focus, .bk-help-form textarea:focus { border-color: var(--terracotta); outline: none; box-shadow: 0 0 0 3px var(--bk-accent-soft); }
.bk-help-count { justify-self: end; font-size: 11.5px; color: var(--bk-muted); font-variant-numeric: tabular-nums; }
.bk-help-form .bk-btn { width: 100%; }
.bk-help-form .bk-msg { margin: 0 0 12px; font-size: 13px; }
.bk-help-ok { display: grid; gap: 8px; justify-items: start; font-size: 13.5px; line-height: 1.45; }
.bk-help-ok p { margin: 0; }
@media (max-width: 800px) { .bk-side--help { display: block; } .bk-help-form textarea { min-height: 130px; } }

/* kitchen: the inbox, like a mail program */
.bk-side-b--row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk-hl { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); border: 1px solid var(--bk-rule); border-radius: 12px; background: var(--bk-surface); overflow: hidden; min-height: 420px; }
.bk-hl-list { border-right: 1px solid var(--bk-rule); display: flex; flex-direction: column; min-width: 0; }
.bk-hl-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--bk-rule); }
.bk-hl-n { margin-left: 4px; font-variant-numeric: tabular-nums; opacity: 0.7; }
.bk-hl-rows { overflow-y: auto; max-height: 640px; }
.bk-hl-row { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 6px; row-gap: 1px; width: 100%; text-align: left; padding: 11px 14px 11px 10px; border: 0; border-bottom: 1px solid var(--bk-rule); background: transparent; cursor: pointer; font: inherit; color: var(--ink); }
.bk-hl-row > :not(.bk-hl-dot) { grid-column: 2; }
.bk-hl-row:hover { background: var(--bk-surface-2); }
.bk-hl-row.is-cur { background: var(--bk-accent-soft); }
.bk-hl-dot { grid-row: 1; grid-column: 1; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.bk-hl-row.is-unread .bk-hl-dot { background: var(--terracotta); }
.bk-hl-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.bk-hl-from { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-hl-row.is-unread .bk-hl-from { font-weight: 700; }
.bk-hl-when { flex: none; font-size: 11.5px; color: var(--bk-muted); font-variant-numeric: tabular-nums; }
.bk-hl-mail { font-size: 12px; color: var(--bk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-hl-ord { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--terracotta); }
.bk-hl-snip { font-size: 13px; color: var(--bk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-hl-row.is-unread .bk-hl-snip { color: var(--ink); }
.bk-hl-detail { padding: 20px 22px; min-width: 0; }
.bk-hl-none { display: grid; place-items: center; min-height: 300px; color: var(--bk-muted); font-size: 14px; }
.bk-hl-msg { display: grid; gap: 14px; max-width: 640px; }
.bk-hl-msg-h h3 { margin: 0 0 2px; font-family: "Montserrat", sans-serif; font-size: 20px; font-weight: 600; }
.bk-hl-back { display: none; justify-self: start; font-size: 14px; }
.bk-hl-order { border: 1px solid var(--bk-rule); border-radius: 10px; background: var(--paper); padding: 10px 12px; display: grid; gap: 4px; font-size: 13.5px; }
.bk-hl-order--none { color: var(--bk-muted); font-size: 13px; }
.bk-hl-order-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-hl-order-l, .bk-hl-order-t { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.bk-hl-order-l span:last-child { white-space: nowrap; }
.bk-hl-order-t { border-top: 1px dashed var(--bk-rule); padding-top: 4px; margin-top: 2px; }
.bk-hl-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
.bk-hl-acts .bk-btn { padding: 10px 16px; }
@media (max-width: 800px) {
  .bk-hl { grid-template-columns: 1fr; border-radius: 10px; }
  .bk-hl-list { border-right: 0; }
  .bk-hl-rows { max-height: none; }
  .bk-hl.has-sel .bk-hl-list { display: none; }
  .bk-hl:not(.has-sel) .bk-hl-detail { display: none; }
  .bk-hl-back { display: inline-block; }
  .bk-hl-detail { padding: 16px; }
}
@media (max-width: 800px) { .bk-left { display: contents; position: static; } }

.bk-hl-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 18px; margin: 0; padding: 12px 14px; background: var(--paper); border: 1px solid var(--bk-rule); border-radius: 10px; font-size: 13.5px; }
.bk-hl-c { display: grid; gap: 1px; min-width: 0; }
.bk-hl-c dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bk-muted); }
.bk-hl-c dd { margin: 0; overflow-wrap: anywhere; }
.bk-hl-c .bk-muted { color: var(--bk-muted); }
.bk-hl-reply { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--bk-rule); }
.bk-hl-reply label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bk-muted); }
.bk-hl-reply textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); background: #fff; border: 1px solid var(--bk-rule); border-radius: 8px; resize: vertical; min-height: 110px; }
.bk-hl-reply textarea:focus { border-color: var(--terracotta); outline: none; box-shadow: 0 0 0 3px var(--bk-accent-soft); }
.bk-hl-reply .bk-hint { margin: 0; }
.bk-hl-reply textarea[readonly] { opacity: 0.7; }
.bk-hl-reply .bk-msg { margin: 0; }
.bk-hl-sent { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin-bottom: 14px; background: #f1f8f2; border: 1px solid #cfe3d3; border-radius: 10px; }
.bk-hl-sent-b { min-width: 0; flex: 1; }
.bk-hl-sent-h { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--bk-muted); }
.bk-hl-sent-h b { color: #2f6b3a; font-size: 14px; }
.bk-hl-sent-t { margin-top: 6px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.bk-hl-done { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #2f6b3a; }
.bk-hl-done .bk-tick { width: 16px; height: 16px; font-size: 11px; }

/* Hilfe box: one header row, the form only after a click */
.bk-side--help { padding: 8px; }
.bk-help-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; font-weight: 600; color: var(--terracotta); font-size: 15px; }
.bk-help-arrow { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.15s ease; }
.is-open .bk-help-arrow { transform: rotate(-135deg) translate(-2px, -2px); }
.bk-help-body { padding: 4px 8px 8px; }
@media (prefers-reduced-motion: reduce) { .bk-help-arrow { transition: none; } }

/* Hilfe: pick the order(s) the message is about: this week's orders as one calm list, round tick on the right */
.bk-help-pick { border: 0; padding: 0; min-width: 0; margin: 0 0 12px; gap: 8px; }
.bk-help-pickhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bk-help-lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bk-muted); }
.bk-help-all { flex: none; appearance: none; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--terracotta); }
.bk-help-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.bk-help-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--bk-rule); border-radius: 12px; background: var(--paper); }
.bk-help-pick .bk-help-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 1px; padding: 11px 14px; font-size: 14px; line-height: 1.3; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); transition: background 0.12s ease; }
.bk-help-opt + .bk-help-opt { border-top: 1px solid var(--bk-rule); }
.bk-help-pick .bk-help-opt:hover { background: var(--bk-surface-2); }
.bk-help-d { grid-column: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-help-m { grid-column: 1; font-size: 13px; color: var(--bk-muted); }
.bk-help-opt input.bk-tickbox { grid-column: 2; grid-row: 1 / 3; }
.bk-form input.bk-tickbox, input.bk-tickbox { flex: none; padding: 0; min-width: 22px; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid #bdb5a8; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; transition: background 0.12s ease, border-color 0.12s ease; }
input.bk-tickbox::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.12s ease; }
input.bk-tickbox:checked { background: var(--terracotta); border-color: var(--terracotta); }
input.bk-tickbox:checked::after { transform: rotate(45deg) scale(1); }
input.bk-tickbox:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
input.bk-tickbox:disabled { opacity: 0.4; cursor: default; }
input.bk-tickbox:disabled ~ span { opacity: 0.5; }
.bk-help-none { margin: 0; font-size: 14px; color: var(--bk-muted); }
.bk-help-sel { font-size: 11.5px; color: var(--bk-muted); }
.bk-help-allbtn { appearance: none; justify-self: start; margin-top: 4px; padding: 7px 14px; border: 1px solid var(--bk-rule); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.12s ease; }
.bk-help-allbtn:hover { background: var(--bk-surface-2); }
/* the big page: week table with a tick in the first column, the message underneath */
.bk-hp-wkhead { display: flex; justify-content: flex-end; margin: 4px 0 8px; }
.bk-hp-l { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.bk-hp-tbl td { vertical-align: middle; }
.bk-hp-msg { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--bk-rule); max-width: 640px; }
.bk-hp-form { display: grid; gap: 10px; }
.bk-hp-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--bk-rule); border-radius: 12px; background: var(--paper); font: inherit; font-size: 15px; line-height: 1.45; resize: vertical; min-height: 140px; color: var(--ink); }
/* the message field is white inside, so typed text stands out from the cream page */
.bk-help-form textarea, .bk-hp-form textarea { background: #fff; }
.bk-hp-form textarea:focus { border-color: var(--terracotta); outline: none; box-shadow: 0 0 0 3px var(--bk-accent-soft); }
.bk-hp-form .bk-btn { justify-self: start; min-width: 160px; }
@media (max-width: 800px) { .bk-hp-form .bk-btn { width: 100%; justify-self: stretch; } }
@media (prefers-reduced-motion: reduce) { .bk-help-pick .bk-help-opt, .bk-tickbox, .bk-tickbox::after { transition: none; } }
.bk-hl-orders { display: grid; gap: 8px; }

.bk-card > .bk-si-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
.bk-si-head .bk-note { grid-column: 1 / -1; grid-row: 2; }
.bk-si-tools { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 8px; }
.bk-si-time { white-space: nowrap; }
.bk-si-time { font-size: 12px; color: var(--bk-muted); font-variant-numeric: tabular-nums; }
.bk-si-time.is-err { color: var(--bk-err); }
.bk-refresh { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--bk-rule); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.bk-refresh:hover { border-color: var(--ink); }
.bk-refresh:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bk-refresh.is-busy { cursor: progress; }
.bk-refresh.is-busy svg { animation: bk-spin .8s linear infinite; }
@keyframes bk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bk-refresh.is-busy svg { animation-duration: 2.4s; } }

/* ---------- laptops and desktops: use more of the screen ----------
   From 1100 px up the kitchen pages, the Vorbestellung and the Newsletter tab get a broader frame,
   larger table type and more room per row. Below 1100 px (tablets, phones) nothing changes. */
@media (min-width: 1100px) {
  .bk-wrap--admin, .bk-wrap--guest, .bk-footer--admin { max-width: 1600px; padding-inline: clamp(20px, 2.4vw, 56px); }
  .bk-wrap--guest { max-width: 1500px; }
  .bk-wrap--nl, .bk-footer--nl { max-width: 1360px; }
  .bk-savebar-in { max-width: 1500px; }
  .bk-savebar { padding-inline: clamp(20px, 2.4vw, 56px); }

  /* kitchen: side menu and the work area */
  .bk-adm { grid-template-columns: 230px minmax(0, 1fr); gap: 36px; }
  .bk-adm--guest { grid-template-columns: 300px minmax(0, 1fr); }
  .bk-dpanel { padding: 20px 20px; }
  .bk-dtab { min-width: 120px; padding: 10px 18px 11px; }
  .bk-dtab-d { font-size: 15px; }
  .bk-dsum { padding: 14px 18px; }
  .bk-tools { gap: 12px 20px; margin-bottom: 14px; }
  .bk-tools input { width: 260px; }

  /* the tables */
  .bk-scroll { max-height: max(640px, calc(100vh - 280px)); }
  .bk-ptbl { font-size: 15px; }
  .bk-ptbl th, .bk-ptbl td { padding: 12px 10px; }
  .bk-ptbl thead th { font-size: 13px; padding-block: 13px; }
  .bk-ptbl tr.bk-sub td { font-size: 14px; }
  .bk-ptbl tr.bk-sub td.bk-pdish { padding-left: 32px; }
  .bk-ptbl .bk-pdish { min-width: 230px; }
  .bk-ptbl:has(th.bk-cx) .bk-pdish { min-width: 200px; }
  .bk-ptbl td.bk-mail { max-width: 12.5em; }
  .bk-ptbl .bk-pk { font-size: 12.5px; }
  .bk-reg th, .bk-reg td { padding-left: 20px; padding-right: 12px; }
  .bk-reg td { padding-top: 13px; padding-bottom: 13px; }
  .bk-ns-card { padding: 22px 24px; }
  .bk-ns-t td { padding-right: 18px; }
  .bk-tbl { font-size: 15px; }
  .bk-tbl td { padding: 10px 0; }

  /* dashboard and Hilfe inbox */
  .bk-kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
  .bk-dgrid { gap: 22px; }
  .bk-card, .bk-wdet { padding: 22px 24px; }
  .bk-hl { grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); min-height: 520px; }
  .bk-hl-rows { max-height: max(640px, calc(100vh - 330px)); }
  .bk-hl-row { padding: 14px 18px 14px 12px; }
  .bk-hl-detail { padding: 28px 34px; }
  .bk-hl-msg { max-width: 820px; }

  /* guest: the days and their dishes */
  .bk-day-h { padding: 22px 34px; }
  .bk-day-h h3 { font-size: 22px; }
  .bk-grp { padding: 10px 34px 20px; }
  .bk-grp-h { font-size: 12.5px; padding-top: 14px; }
  .bk-item { padding: 20px 0; gap: 6px 36px; }
  .bk-dish { font-size: 18.5px; line-height: 1.35; }
  .bk-kind { font-size: 14px; margin-bottom: 3px; }
  .bk-price { font-size: 17px; min-width: 5em; }
  .bk-step { grid-template-columns: 52px 46px 52px; }
  .bk-step button { height: 52px; font-size: 25px; }
  .bk-step output { font-size: 20px; }
  .bk-kw-num { font-size: 22px; }
  .bk-kw-range { font-size: 16px; }
  .bk-dtabs .bk-dtab { min-width: 150px; padding: 12px 22px 13px; }
  .bk-dtabs .bk-dtab-d { font-size: 17px; }
  .bk-dtabs .bk-dtab-s { font-size: 12.5px; }
  .bk-closed-note, .bk-unconf { padding-inline: 34px; font-size: 15px; }
  .bk-dtabs .bk-dtab { flex: 0 1 auto; }
  .bk-gdish { font-size: 15px; min-width: 22em; }
  .bk-gfiles td { padding-block: 14px; }

  /* the Newsletter tab: the list of issues and the form get more air */
  .nl-sec, .nl-send { padding: 22px 26px; }
  .nl-issues { font-size: 15px; }
  .nl-issues td { padding-block: 13px; }
}
@media (min-width: 1500px) { .bk-ptbl td.bk-mail { max-width: 18em; } }
@media (min-width: 1800px) { .bk-ptbl td.bk-mail { max-width: 24em; } .bk-ptbl .bk-pdish { min-width: 340px; } }

/* ---------- guest overview: calmer main area (Entwurf B, 2026-10-17) ----------
   The left column (Meine Bestellungen, Verlauf, Hilfe) stays as it is. In the main area the rules sit in one soft
   box, the days are a segmented switch across the width and the dishes get a little less weight. Only how it
   looks; the tabs, ordering and cancelling work as before (js/booking.js is untouched).
   Comes last so it also wins over the wide-screen block above. */
.bk-adm--guest .bk-name { font-size: 22px; }
.bk-adm--guest .bk-rules { border: 0; background: var(--bk-surface); border-radius: 12px; padding: 10px 14px; margin: 14px 0 20px; font-size: 12.5px; gap: 3px 16px; }
.bk-adm--guest .bk-kw { justify-content: center; margin-bottom: 10px; }
.bk-adm--guest .bk-dtabs { display: flex; flex-wrap: nowrap; gap: 4px; padding: 4px; background: var(--bk-surface-2); border: 0; border-radius: 14px; }
.bk-adm--guest .bk-dtabs .bk-dtab { flex: 1 1 0; min-width: 0; margin: 0; padding: 8px 6px 9px; text-align: center; justify-items: center; background: none; border: 0; border-radius: 10px; }
.bk-adm--guest .bk-dtabs .bk-dtab-d { font-size: 14px; }
.bk-adm--guest .bk-dtabs .bk-dtab-s { justify-content: center; text-align: center; flex-wrap: wrap; font-size: 10.5px; line-height: 1.25; }
.bk-adm--guest .bk-dtabs .bk-dtab[aria-selected="true"] { background: var(--bk-surface); box-shadow: 0 1px 3px rgba(43, 39, 35, 0.22); }
.bk-adm--guest .bk-day-h h3 { font-size: 20px; }
.bk-adm--guest .bk-item { padding: 14px 0; }
.bk-adm--guest .bk-step { grid-template-columns: 40px 34px 40px; border-width: 1.5px; }
.bk-adm--guest .bk-step button { height: 40px; }
/* the rule between two weeks stays a thin line inside the switch, on phones too ("Neue Woche" above it) */
.bk-adm--guest .bk-dtabs--wk { padding-top: 24px; }
.bk-adm--guest .bk-dtabs--wk .bk-wsep { flex: none; width: 2px; height: auto; margin: 0 2px; padding: 0; border: 0; border-radius: 1px; background: #12100e; }
.bk-adm--guest .bk-dtabs--wk .bk-wsep b { position: absolute; display: block; left: 8px; bottom: calc(100% + 5px); }
.bk-adm--guest .bk-dtabs--nx { padding-top: 28px; row-gap: 0; }
@media (max-width: 520px) {
  .bk-adm--guest .bk-dtabs .bk-dtab-d { font-size: 12.5px; }
  .bk-adm--guest .bk-dtabs .bk-dtab-s { font-size: 9.5px; }
  .bk-adm--guest .bk-dtabs .bk-dtab-s svg { display: none; }
}

/* ---------- guest: "Meine Bestellungen" opens Aktiv / Verlauf; Excel of all orders ---------- */
.bk-mine-menu { display: grid; gap: 4px; margin: 6px 0 2px; padding-top: 8px; border-top: 1px solid var(--bk-rule); }
.bk-mine-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; }
.bk-mine-opt:hover { background: var(--bk-surface-2); }
.bk-mine-opt.is-cur { background: var(--terracotta); color: #fff; }
.bk-mine-oc { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--bk-muted); font-variant-numeric: tabular-nums; }
.bk-mine-opt.is-cur .bk-mine-oc { color: #fff; }
.bk-mine-opt .bk-hist-ic svg { display: block; width: 22px; height: 17px; }
.bk-xlsx { white-space: nowrap; }
.bk-xlsx[disabled] { opacity: 0.5; cursor: default; }

/* guest Verlauf: the two buttons under "Ihr Verlauf" (back to the order page, Excel) */
.bk-adm--guest .bk-vacts { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }

/* Küche: calendar week(s) of the tabs, in black next to the "Vorbestellungen" heading */
.bk-title-kw { margin-left: 10px; font-size: 0.55em; font-weight: 600; letter-spacing: 0.04em; color: #12100e; white-space: nowrap; }

/* ---------- guest: Profil box (between "Meine Bestellungen" and Hilfe) ---------- */
.bk-side--prof { position: static; padding: 8px; gap: 0; }
.bk-prof-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; font-weight: 600; color: var(--terracotta); font-size: 15px; }
.is-open > .bk-prof-toggle .bk-help-arrow { transform: rotate(-135deg) translate(-2px, -2px); }
.bk-prof-form { display: grid; gap: 12px; }
.bk-prof-form .bk-field { margin: 0; }
.bk-prof-form .bk-msg { margin: 0; font-size: 13px; }
.bk-prof-form .bk-btn { width: 100%; }
.bk-prof-form .bk-btn[disabled] { background: var(--bk-surface-2); color: var(--bk-muted); border-color: var(--bk-rule); cursor: default; box-shadow: none; }
.bk-prof-form input[readonly] { color: var(--bk-muted); background: var(--bk-surface-2); cursor: default; }
/* phone: Profil and Hilfe sit as two buttons right under "Meine Bestellungen"; an opened one takes the full width */
@media (max-width: 800px) {
  .bk-left { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: static; }
  .bk-left > .bk-side { order: 0; }
  .bk-left .bk-side--mine { grid-column: 1 / -1; }
  .bk-left .bk-side--prof.is-open, .bk-left .bk-side--help.is-open { grid-column: 1 / -1; }
  .bk-side--prof { display: block; }
}
/* guest side index: Meine Bestellungen, Profil and Hilfe sit in ONE card, all in black */
.bk-help-toggle, .bk-prof-toggle { color: var(--ink); }
@media (min-width: 801px) {
  .bk-left { gap: 0; padding: 0; background: var(--bk-surface); border: 1px solid var(--bk-rule); border-radius: 12px; }
  .bk-left > .bk-side { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .bk-left > .bk-side + .bk-side { border-top: 1px solid var(--bk-rule); }
}
/* the tab that opens next: "als Nächstes" inside the tab, under the day (Tuesday to Friday) */
.bk-dtab--nx .bk-next { font-weight: 700; }
/* guest: the same stacking, the guest rules above set the week divider at every width */
.bk-adm--guest .bk-dtabs--both { padding-top: 48px; }
.bk-adm--guest .bk-dtabs--both .bk-wsep b { bottom: calc(100% + 29px); }
