/* HUKKA: Grundlagen.
   Eine Schrift (Schibsted Grotesk), zwei Farbwelten über dieselben Tokens:
   .night  für alles, was Gäste sehen (Startseite, Reservation, Verwalten): dunkel wie die Lounge am Abend,
           Knöpfe in Neonweiss, Uhrzeiten und gewählter Tisch in warmem Glutorange.
   hell    (:root und .light) für das Cockpit und das Sitzplan-Band der Startseite, Akzent Samtrot.
   Die Bausteine unten (Knöpfe, Chips, Felder, Sitzplan) lesen nur Tokens und passen sich selbst an. */
:root {
  --night: #171312;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.22, .7, .18, 1);

  /* ältere Namen, das Cockpit nutzt sie noch */
  --ink: var(--bg); --ink-2: #fbfaf9; --ink-3: var(--bg-2); --ink-4: var(--bg-3);
  --line-soft: #efebe8;
  --smoke: var(--mute); --smoke-2: #9b928d;
  --marble: var(--fg); --marble-2: var(--fg-2);
  --brass: var(--velvet); --brass-hi: var(--velvet); --brass-lo: #cfa9b0;
  --ember: #c4531a; --leaf: var(--ok); --leaf-lo: #8cc2a6; --wine: var(--bad);
  --serif: var(--sans);
}

:root, .light {
  --bg: #ffffff;
  --bg-2: #f6f4f2;
  --bg-3: #eeeae6;
  --fg: #1d1917;
  --fg-2: #4d4643;
  --mute: #7b726d;
  --dim: #c3bab4;
  --line: #e7e2de;
  --line-2: #d4ccc6;
  --line-3: #b9afa8;
  --velvet: #8b1e2f;
  --velvet-2: #6e1524;
  --velvet-50: #f9eff1;
  --velvet-100: #f0dade;
  --ok: #17784b;
  --ok-50: #e8f4ed;
  --warn: #a8670f;
  --warn-50: #fbf2e4;
  --bad: #b3261e;
  --bad-50: #fdeeec;

  /* Schrift auf gefüllten Flächen */
  --on-fg: #fff; --on-velvet: #fff; --on-ok: #fff;
  --fg-hover: #000;
  --primary: var(--velvet); --primary-2: var(--velvet-2); --on-primary: #fff;
  --focus: var(--velvet);
  --field-bg: var(--bg);
  --placeholder: #a39a94;
  --focus-halo: rgba(29, 25, 23, .08);
  --seg-bg: var(--bg-2); --seg-on: var(--bg); --seg-on-fg: var(--fg); --seg-on-shadow: var(--shadow-1), 0 0 0 1px var(--line);
  --bar-bg: rgba(255, 255, 255, .94);
  --sheet-bg: rgba(255, 255, 255, .97);
  --veil: rgba(246, 244, 242, .72);
  --shadow-1: 0 1px 2px rgba(29, 25, 23, .06), 0 1px 1px rgba(29, 25, 23, .04);
  --shadow-2: 0 1px 2px rgba(29, 25, 23, .05), 0 10px 30px -8px rgba(29, 25, 23, .16);
  --shadow-3: 0 2px 6px rgba(29, 25, 23, .06), 0 24px 60px -20px rgba(29, 25, 23, .3);

  /* Sitzplan: Architektenplan auf hellem Papier */
  --pl-floor: #fcfbfa; --pl-room: #2b2523; --pl-area: #a1978f; --pl-text: #8f847c;
  --pl-wall: #e9e4df; --pl-wall-l: #cfc6bf;
  --pl-bench: #efe6e2; --pl-bench-l: #d8c9c3; --pl-bench-line: #dccfc9;
  --pl-bar: #f1ece7; --pl-bar-l: #b8aca3; --pl-bar-in: #d6ccc4;
  --pl-backbar: #ebe5df; --pl-backbar-l: #cbbfb6;
  --pl-stool: #fff; --pl-pillar: #d9d1ca;
  --pl-plant: #e3ece0; --pl-leaf: #c5d8c0; --pl-leaf2: #b2cbac;
  --pl-window: #e9f0f3; --pl-window-l: #a9bcc5;
  --pl-part: #f2e3e6; --pl-part-l: #d9b9bf; --pl-curtain: #cfa3ab;
  --pl-neon: var(--velvet); --pl-neon-glow: none;
  --pl-top: #fff; --pl-top-l: #2b2523;
  --pl-sofa: #ece6e2; --pl-sofa-l: #c9bdb6; --pl-sofa-back: #d9cfc9;
  --pl-seat: #f5f1ee; --pl-seat-l: #b9aca5;
  --pl-tstool: #fff; --pl-tstool-l: #9d918a;
  --pl-busy: #ece7e3; --pl-busy-l: #cdc3bc; --pl-busy-t: #a39890;
  --pl-busy-seat: #efebe8; --pl-busy-seat-l: #d6cdc7;
  --pl-busy-sofa: #f1edea; --pl-busy-sofa-l: #ddd5cf;
  --pl-unfit-l: #c9bfb8;
  color-scheme: light;
}

/* Dunkel wie die Lounge am Abend: Travertin im Halbdunkel, Cognac-Leder, Neonweiss, Glut */
.night {
  --night: #120f0d;
  --bg: var(--night);
  --bg-2: #1b1714;
  --bg-3: #29221e;
  --fg: #f4ece2;
  --fg-2: #cfc4b8;
  --mute: #9a8d81;
  --dim: rgba(244, 236, 226, .26);
  --line: rgba(244, 236, 226, .12);
  --line-2: rgba(244, 236, 226, .26);
  --line-3: rgba(244, 236, 226, .42);
  --cream: #f4ece2;
  --stone: #ece4d9;
  --glow: #f39a3d;
  --velvet: var(--glow);
  --velvet-2: #e0852a;
  --velvet-50: rgba(243, 154, 61, .12);
  --velvet-100: rgba(243, 154, 61, .3);
  --ok: #6fcf97;
  --ok-50: rgba(111, 207, 151, .14);
  --warn: #e3c15a;
  --warn-50: rgba(227, 193, 90, .13);
  --bad: #ff8a7a;
  --bad-50: rgba(255, 138, 122, .12);

  --on-fg: #15110e; --on-velvet: #1a0f05; --on-ok: #0d2418;
  --fg-hover: #fff;
  --primary: var(--cream); --primary-2: #fff; --on-primary: #15110e;
  --focus: var(--cream);
  --field-bg: rgba(244, 236, 226, .05);
  --placeholder: rgba(244, 236, 226, .36);
  --focus-halo: rgba(244, 236, 226, .12);
  --seg-bg: rgba(244, 236, 226, .05); --seg-on: var(--cream); --seg-on-fg: #15110e; --seg-on-shadow: none;
  --bar-bg: rgba(18, 15, 13, .88);
  --sheet-bg: rgba(27, 23, 20, .96);
  --veil: rgba(18, 15, 13, .66);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -10px rgba(0, 0, 0, .6);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 70px -20px rgba(0, 0, 0, .75);

  /* Sitzplan bei Nacht: Bänke in Cognac wie die echten Lederbänke, Neon in Weiss.
     Linien und Beschriftungen hell genug, dass man den Raum auch auf dem Handy liest. */
  --pl-floor: #1f1915; --pl-room: #cdbfae; --pl-area: #ae9f90; --pl-text: #ab9d8f;
  --pl-wall: #41372f; --pl-wall-l: #625449;
  --pl-bench: #5d3d29; --pl-bench-l: #8b5f40; --pl-bench-line: #714b33;
  --pl-bar: #352c26; --pl-bar-l: #8f8174; --pl-bar-in: #4c4139;
  --pl-backbar: #302822; --pl-backbar-l: #66594d;
  --pl-stool: #3a3029; --pl-pillar: #4a3f37;
  --pl-plant: #213022; --pl-leaf: #36533a; --pl-leaf2: #466b44;
  --pl-window: #23343c; --pl-window-l: #7090a0;
  --pl-part: #3f2631; --pl-part-l: #6c4254; --pl-curtain: #946079;
  --pl-neon: #fff4e8; --pl-neon-glow: drop-shadow(0 0 5px rgba(255, 236, 214, .55));
  --pl-top: #3b322b; --pl-top-l: #d8cab8;
  --pl-sofa: #5d3d29; --pl-sofa-l: #8b5f40; --pl-sofa-back: #714b33;
  --pl-seat: #483d35; --pl-seat-l: #7f7064;
  --pl-tstool: #3b322b; --pl-tstool-l: #9a8b7e;
  --pl-busy: #2b241f; --pl-busy-l: #5a4d43; --pl-busy-t: #a09284;
  --pl-busy-seat: #2f2722; --pl-busy-seat-l: #52463d;
  --pl-busy-sofa: #3d2c21; --pl-busy-sofa-l: #574030;
  --pl-unfit-l: #75675b;
  color-scheme: dark;
}
body.night { background: var(--bg); color: var(--fg); }
.night ::selection { background: var(--glow); color: #1a0f05; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.55 var(--sans); font-variant-numeric: proportional-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--velvet-100); color: var(--fg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typografie ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.018em; color: var(--fg); }
h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--mute); }
.small { font-size: 14px; line-height: 1.5; }
.display { font-weight: 600; letter-spacing: -.025em; line-height: 1.05; margin: 0; }
.lede { font-size: 18px; line-height: 1.55; color: var(--fg-2); max-width: 36em; }

/* ---------- Knöpfe ---------- */
.btn {
  --b: var(--bg); --c: var(--fg); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--bd);
  background: var(--b); color: var(--c); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { --bd: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn.primary { --b: var(--primary); --c: var(--on-primary); --bd: var(--primary); }
.btn.primary:hover { --b: var(--primary-2); --bd: var(--primary-2); }
.btn.dark { --b: var(--fg); --c: var(--on-fg); --bd: var(--fg); }
.btn.dark:hover { --b: var(--fg-hover); }
.btn.ghost { --bd: transparent; --b: transparent; padding: 0 12px; }
.btn.ghost:hover { --b: var(--bg-2); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn .ico { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 0; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-size: inherit; font-weight: 600; }
.link:hover { color: var(--velvet); }

/* ---------- Wortmarke (echtes HUKKA-Logo, siehe plan.js) ---------- */
.wordmark { display: inline-block; color: var(--fg); }
.wordmark svg { height: 100%; width: auto; overflow: visible; }

/* ---------- Kopfzeile ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bar-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .tb { height: 64px; display: flex; align-items: center; gap: 28px; }
.topbar .wordmark { height: 19px; }
.tb-links { display: flex; gap: 22px; margin-right: auto; margin-left: 12px; }
.tb-links a { text-decoration: none; font-size: 15px; color: var(--fg-2); padding: 6px 0; }
.tb-links a:hover { color: var(--fg); }
.tb-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.tb-phone:hover { color: var(--fg); }
.tb-phone .ico { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .tb-links { display: none; }
  .topbar .tb { gap: 10px; }
  .topbar .wordmark { margin-right: auto; }
  .tb-phone span { display: none; }
  .tb-phone { width: 40px; height: 40px; justify-content: center; border-radius: 10px; border: 1px solid var(--line-2); color: var(--fg); }
}

/* ---------- Fuss ---------- */
.foot { background: var(--night); color: #b9b0aa; padding: 56px 0 34px; font-size: 15px; --wm-bg: var(--night); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot .wordmark { height: 16px; color: #fff; margin-bottom: 18px; }
.foot h3 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.foot a { text-decoration: none; color: #e9e3df; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot p { margin: 0 0 6px; }
.foot .fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; padding-top: 24px; margin-top: 12px; border-top: 1px solid #2c2523; color: #8a807a; font-size: 13px; }
@media (max-width: 820px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 500; color: var(--fg-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--field-bg); color: var(--fg); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px var(--focus-halo); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field.invalid input { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-50); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; color: var(--fg-2); cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--line-3); border-radius: 6px; background: var(--field-bg); display: grid; place-items: center; transition: background .15s, border-color .15s; cursor: pointer; }
.check input:hover { border-color: var(--fg); }
.check input:checked { background: var(--fg); border-color: var(--fg); }
.check input:checked::after { content: ''; width: 5px; height: 10px; border: solid var(--on-fg); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

/* Segmente, Zähler, Chips */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--seg-bg); border: 1px solid var(--line); }
.seg button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; color: var(--fg-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.seg button:hover { color: var(--fg); }
.seg button[aria-checked="true"] { background: var(--seg-on); color: var(--seg-on-fg); font-weight: 600; box-shadow: var(--seg-on-shadow); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); font-size: 18px; line-height: 1; color: var(--fg); display: grid; place-items: center; }
.stepper button:hover { border-color: var(--fg); }
.stepper output { min-width: 30px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.big button { width: 40px; height: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--on-fg); }
.chip em { font-style: normal; font-size: 12px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--ok-50); color: var(--ok); }
.chip em.none { background: var(--bg-3); color: var(--mute); }
.chip[aria-pressed="true"] em { background: color-mix(in srgb, var(--on-fg) 18%, transparent); color: var(--on-fg); }

/* Hinweisboxen */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 10px; background: var(--bg-2); font-size: 15px; color: var(--fg-2); line-height: 1.45; }
.note .ico { margin-top: 1px; color: var(--fg); }
.note.velvet { background: var(--velvet-50); }
.note.velvet .ico { color: var(--velvet); }
.note.warn { background: var(--warn-50); }
.note.warn .ico { color: var(--warn); }
.note p { margin: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--fg); color: var(--on-fg); padding: 12px 18px; border-radius: 12px; font-weight: 500; font-size: 15px; max-width: calc(100% - 32px); width: max-content;
  box-shadow: var(--shadow-3); transition: transform .35s var(--ease), opacity .35s var(--ease); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.bad { background: var(--bad); }

/* ======================================================================
   Sitzplan (gemeinsam für Startseite, Buchung und Cockpit)
   Gezeichnet wie ein Architektenplan: klare Linien, Farben aus den --pl-Tokens
   (hell im Cockpit und auf der Startseite, dunkel auf der Reservation).
   ====================================================================== */
.plan-box { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.plan-box.zoomed { touch-action: none; }
.plan { width: 100%; height: auto; overflow: visible; }
.plan .pl-floor-bg { fill: var(--pl-floor); }
.plan .pl-room { fill: none; stroke: var(--pl-room); stroke-width: 3; stroke-linejoin: round; }
.plan .pl-area-label { font: 500 12px var(--sans); fill: var(--pl-area); pointer-events: none; }
.plan .pl-wall { fill: var(--pl-wall); stroke: var(--pl-wall-l); stroke-width: 1; }
.plan .pl-bench { fill: var(--pl-bench); stroke: var(--pl-bench-l); stroke-width: 1; }
.plan .pl-bench-line { stroke: var(--pl-bench-line); stroke-width: 1; }
.plan .pl-bar { fill: var(--pl-bar); stroke: var(--pl-bar-l); stroke-width: 1.2; }
.plan .pl-bar-in { fill: none; stroke: var(--pl-bar-in); stroke-width: .8; }
.plan .pl-backbar { fill: var(--pl-backbar); stroke: var(--pl-backbar-l); }
.plan .pl-bottle { fill: var(--pl-backbar-l); }
.plan .pl-stool { fill: var(--pl-stool); stroke: var(--pl-bar-l); stroke-width: 1.2; }
.plan .pl-plant { fill: var(--pl-plant); }
.plan .pl-leaf { fill: var(--pl-leaf); }
.plan .pl-leaf2 { fill: var(--pl-leaf2); }
.plan .pl-door { fill: none; stroke: var(--pl-text); stroke-width: 1.2; stroke-dasharray: 3 4; }
.plan .pl-door-gap { fill: var(--pl-floor); }
.plan .pl-window { fill: var(--pl-window); stroke: var(--pl-window-l); stroke-width: 1; }
.plan .pl-window-line { stroke: var(--pl-window-l); }
.plan .pl-partition { fill: var(--pl-part); stroke: var(--pl-part-l); stroke-width: 1; }
.plan .pl-curtain { stroke: var(--pl-curtain); stroke-width: 1; fill: none; }
.plan .pl-dj { fill: var(--pl-bar); stroke: var(--pl-bar-l); }
.plan .pl-dj-disc { fill: none; stroke: var(--pl-bar-l); }
.plan .pl-pillar { fill: var(--pl-pillar); stroke: var(--pl-bar-l); }
.plan .pl-wardrobe { fill: var(--pl-bar); stroke: var(--pl-backbar-l); }
.plan .pl-wardrobe-line { stroke: var(--pl-bar-in); }
.plan .pl-text { font: 500 10.5px var(--sans); fill: var(--pl-text); pointer-events: none; }
.plan .pl-bar-text { font: 600 11px var(--sans); fill: var(--pl-text); letter-spacing: .12em; pointer-events: none; }
.plan .pl-neon { font: italic 600 17px var(--sans); fill: var(--pl-neon); filter: var(--pl-neon-glow); pointer-events: none; letter-spacing: .01em; }

/* Tische */
.plan .pl-t { cursor: default; }
.plan .pl-t .hit { fill: transparent; }
.plan .pl-t .top { fill: var(--pl-top); stroke: var(--pl-top-l); stroke-width: 1.4; transition: fill .2s, stroke .2s; }
.plan .pl-t .top.dark { fill: var(--pl-top); }
.plan .pl-t .sofa { fill: var(--pl-sofa); stroke: var(--pl-sofa-l); stroke-width: 1; transition: fill .2s, stroke .2s; }
.plan .pl-t .sofa-back { stroke: var(--pl-sofa-back); }
.plan .pl-t .seat { fill: var(--pl-seat); stroke: var(--pl-seat-l); stroke-width: 1; transition: fill .2s, stroke .2s; }
.plan .pl-t .stool { fill: var(--pl-tstool); stroke: var(--pl-tstool-l); stroke-width: 1.3; transition: fill .2s, stroke .2s; }
.plan .pl-t .lbl { font: 600 11.5px var(--sans); fill: var(--fg); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.plan .pl-t .lbl.on-dark { fill: var(--fg); }
.plan .pl-t .ring { fill: none; stroke: transparent; stroke-width: 2; pointer-events: none; transition: stroke .2s; }
.plan .pl-t .badge { pointer-events: none; opacity: 0; transition: opacity .2s; }
.plan .pl-t .badge rect { fill: var(--fg); }
.plan .pl-t .badge text { font: 600 10px var(--sans); fill: var(--on-fg); text-anchor: middle; dominant-baseline: central; }

.plan.interactive .pl-t[data-state="free"], .plan.interactive .pl-t[data-state="combo"] { cursor: pointer; }
.plan .pl-t[data-state="free"] .top { stroke: var(--ok); stroke-width: 1.8; }
.plan .pl-t[data-state="free"] .lbl { fill: var(--ok); }
.plan.interactive .pl-t[data-state="free"]:hover .ring, .plan .pl-t.hover .ring { stroke: var(--fg); stroke-width: 2; }
.plan .pl-t[data-state="combo"] .top { stroke: var(--ok); stroke-dasharray: 4 3; }
.plan .pl-t[data-state="combo"] .lbl { fill: var(--ok); }
.plan .pl-t[data-state="busy"] .top, .plan .pl-t[data-state="held"] .top, .plan .pl-t[data-state="blocked"] .top, .plan .pl-t[data-state="walkin"] .top { fill: var(--pl-busy); stroke: var(--pl-busy-l); }
.plan .pl-t[data-state="busy"] .lbl, .plan .pl-t[data-state="held"] .lbl, .plan .pl-t[data-state="blocked"] .lbl, .plan .pl-t[data-state="walkin"] .lbl { fill: var(--pl-busy-t); }
.plan .pl-t[data-state="busy"] .seat, .plan .pl-t[data-state="held"] .seat, .plan .pl-t[data-state="blocked"] .seat, .plan .pl-t[data-state="walkin"] .seat,
.plan .pl-t[data-state="busy"] .stool, .plan .pl-t[data-state="held"] .stool, .plan .pl-t[data-state="blocked"] .stool, .plan .pl-t[data-state="walkin"] .stool { fill: var(--pl-busy-seat); stroke: var(--pl-busy-seat-l); }
.plan .pl-t[data-state="busy"] .sofa, .plan .pl-t[data-state="held"] .sofa, .plan .pl-t[data-state="blocked"] .sofa { fill: var(--pl-busy-sofa); stroke: var(--pl-busy-sofa-l); }
.plan .pl-t[data-state="unfit"] .top { stroke: var(--pl-unfit-l); stroke-dasharray: 2 3; }
.plan .pl-t[data-state="unfit"] .lbl { fill: var(--pl-busy-t); }
.plan .pl-t[data-state="held"] .pulse { fill: var(--warn); animation: hk-pulse 1.4s ease-in-out infinite; }
.plan .pl-t .seat.on, .plan .pl-t .stool.on { fill: var(--velvet); stroke: var(--velvet-2); }
.plan .pl-t.rec .ring { stroke: var(--velvet); stroke-width: 2; stroke-dasharray: 5 4; animation: hk-dash 5s linear infinite; }
.plan .pl-t.rec .badge { opacity: 1; }
.plan .pl-t.rec .badge rect { fill: var(--velvet); }
.plan .pl-t.sel .top { fill: var(--velvet); stroke: var(--velvet-2); stroke-dasharray: none; }
.plan .pl-t.sel .lbl { fill: var(--on-velvet); }
.plan .pl-t.sel .ring { stroke: var(--velvet); stroke-width: 2.5; stroke-dasharray: none; animation: none; opacity: .35; }
.plan .pl-t.sel .badge { opacity: 1; }
.plan .pl-t.sel .badge rect { fill: var(--velvet); }
.plan.has-sel .pl-t:not(.sel)[data-state="free"] .top { stroke-width: 1.4; }
@keyframes hk-dash { to { stroke-dashoffset: -90; } }
@keyframes hk-pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* Erscheinen beim ersten Zeigen */
.plan.draw .pl-tables .pl-t { opacity: 0; }
.plan.drawn .pl-tables .pl-t { opacity: 1; transition: opacity .45s var(--ease) calc(var(--d, 0) * .3ms); }
.plan.draw .pl-room { stroke-dasharray: 3400; stroke-dashoffset: 3400; }
.plan.drawn .pl-room { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease); }

/* Tooltip */
.plan-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 180px; max-width: 250px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px;
  box-shadow: var(--shadow-2); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s var(--ease);
  font-size: 14px; line-height: 1.4; color: var(--fg-2);
}
.plan-tip.show { opacity: 1; transform: none; }
.plan-tip b { display: block; font-weight: 600; font-size: 15px; color: var(--fg); margin-bottom: 1px; }
.plan-tip .st { margin-top: 6px; font-weight: 600; font-size: 13px; }
.plan-tip .st.free { color: var(--ok); } .plan-tip .st.no { color: var(--mute); } .plan-tip .st.held { color: var(--warn); }
.plan-tip .feat { color: var(--mute); }

.plan-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--mute); }
.plan-legend span { display: inline-flex; align-items: center; gap: 7px; }
.plan-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.plan-legend .lg-free { border: 1.8px solid var(--ok); background: var(--pl-top); }
.plan-legend .lg-busy { background: var(--pl-busy); border: 1px solid var(--pl-busy-l); }
.plan-legend .lg-rec { border: 1.8px dashed var(--velvet); }
.plan-legend .lg-sel { background: var(--velvet); }
.plan-legend .lg-held { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }

.plan-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; z-index: 4; border-radius: 10px; background: var(--bg); box-shadow: var(--shadow-2); border: 1px solid var(--line); overflow: hidden; }
.plan-zoom button { width: 38px; height: 38px; border: 0; background: var(--bg); color: var(--fg); font-size: 19px; line-height: 1; }
.plan-zoom button + button { border-top: 1px solid var(--line); }
.plan-zoom button:hover { background: var(--bg-2); }
.plan .pl-t.has-badge .badge { opacity: 1; }
