:root {
  /* Modro-bílo-zlatá: bavorská modrá, bílá, pivní zlatá */
  --wood: #0f2448;      /* tmavá námořnická modř (pozadí tmavých sekcí) */
  --wood-2: #16336a;
  --blue: #1f4e9c;      /* bavorská modrá – barva loga */
  --blue-l: #e8eff9;
  --cream: #f3f6fb;
  --paper: #ffffff;
  --surface: #fff;
  --bg: #f3f6fb;
  --gold: #e0a526;
  --accent: #e0a526;
  --gold-d: #a36f06;
  --foam: #fff8e6;
  --ink: #0f2448;
  --muted: #5b6b86;
  --line: #dbe3f0;
  --ok: #3f7d3a;
  --warn: #c96a1f;
  --block: #5d6b7a;
  --plank: #c99a62;     /* dřevo pivních stolů */
  --plank-d: #a97a45;
  --radius: 14px;
  --head: "Zilla Slab", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 5vw, 48px); color: var(--blue); }
h3 { font-size: 22px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: 12px; color: var(--gold-d); margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); max-width: 660px; margin: 0; }
.muted { color: var(--muted); }

/* Logo – chmel v kolečku */
.hop { display: inline-block; flex: none; width: 1em; height: 1em; }

/* Bavorské kosočtverce – tenká linka */
.rauten {
  height: 10px;
  background:
    linear-gradient(135deg, var(--blue) 25%, transparent 25%) -5px 0 / 10px 10px,
    linear-gradient(225deg, var(--blue) 25%, transparent 25%) -5px 0 / 10px 10px,
    linear-gradient(315deg, var(--blue) 25%, transparent 25%) 0 0 / 10px 10px,
    linear-gradient(45deg, var(--blue) 25%, transparent 25%) 0 0 / 10px 10px,
    #fff;
}

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700;
  background: var(--gold); color: var(--wood); padding: 14px 26px; border-radius: 999px;
  transition: transform .15s, background .15s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(224,165,38,.3);
}
.btn:hover { background: #ecb53f; transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.dark { background: var(--blue); color: #fff; box-shadow: none; }
.btn.danger { background: #b23a2a; color: #fff; box-shadow: none; }

/* ---------- Mapa stolů: každý stůl = lavice pro 8 lidí ---------- */
.hall {
  background: var(--wood-2); border-radius: var(--radius); padding: 22px; color: var(--cream);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 48px);
}
.hall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.bench-label { font-size: 12px; opacity: .75; margin: 0 0 4px 2px; font-weight: 600; }
.bench-label span { font-weight: 400; opacity: .8; }
/* jedna souvislá deska stolu, nahoře a dole souvislá lavice */
.table-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 4px; }
.table-row::before, .table-row::after { content: ""; position: absolute; left: 0; right: 0; height: 7px; background: #7d5a35; border-radius: 4px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.table-row::before { top: 9px; }
.table-row::after { bottom: 9px; }
.unit {
  position: relative; z-index: 1; font: inherit; color: inherit; cursor: pointer; border: 0; background: transparent; padding: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 5px;
}
.unit .seat { display: flex; justify-content: center; }
.unit .seat i { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.3); transition: background .15s; }
.unit .plank {
  background: var(--plank); color: var(--wood); font-weight: 700; font-size: 11px; text-align: center;
  padding: 9px 0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); transition: background .15s;
}
.unit + .unit .plank { box-shadow: inset 0 -3px 0 rgba(0,0,0,.15), inset 1px 0 0 rgba(15,36,72,.18); }
.unit:first-child .plank { border-radius: 5px 0 0 5px; }
.unit:last-child .plank { border-radius: 0 5px 5px 0; }
.unit:hover:not(:disabled) .plank { background: #dcb07a; }
.unit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.unit.selected .seat i, .unit.selected .plank { background: var(--gold); }
.unit.taken, .unit:disabled { cursor: not-allowed; }
.unit.taken .seat i, .unit.taken .plank { background: #4c5a72; color: #9aa9c2; box-shadow: none; }
.unit.closed .seat i { background: #9aa6ba; }
.unit.closed .plank { background: #8a6d4c; color: #c9b39a; }
.unit.pending .seat i, .unit.pending .plank { background: var(--warn); color: #fff; }
.unit.paid .seat i, .unit.paid .plank { background: var(--ok); color: #fff; }
.unit.blocked .seat i, .unit.blocked .plank { background: var(--block); color: #fff; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin: 12px 0 0; padding: 0; list-style: none; }
.legend span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }

.meter { height: 5px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; }
.meter > div { height: 100%; background: var(--gold); border-radius: 99px; transition: width .4s; }

/* ---------- Počítadlo obsazenosti: tuplák, který se plní ---------- */
.gauge { display: flex; align-items: center; gap: 14px; }
.mug { position: relative; width: 40px; height: 54px; flex: none; }
.mug .glass { position: absolute; inset: 0 8px 0 0; border: 3px solid currentColor; border-top: 0; border-radius: 0 0 7px 7px; overflow: hidden; }
.mug .handle { position: absolute; right: 0; top: 12px; width: 13px; height: 24px; border: 3px solid currentColor; border-left: 0; border-radius: 0 10px 10px 0; }
.mug .fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #f2bd3c, var(--gold)); transition: height 1s ease; }
.mug .fill::before { content: ""; position: absolute; left: -2px; right: -2px; top: -6px; height: 8px; background: #fff; border-radius: 6px; opacity: .95; }
.mug .fill[style*="height: 0%"]::before { display: none; }
.gauge-txt b { display: block; font-family: var(--head); font-size: 26px; line-height: 1; }
.gauge-txt span { display: block; font-size: 13px; font-weight: 600; opacity: .8; margin-bottom: 3px; }
.gauge.hot .gauge-txt b { color: #ffb347; }
.gauge.full .gauge-txt b { color: #ff7a6b; }

@media (max-width: 560px) {
  section { padding: 64px 0; }
  .hall { padding: 12px; }
  .hall-grid { gap: 12px; }
  .unit .seat i { width: 13px; height: 13px; }
  .unit .plank { padding: 7px 0; font-size: 10px; }
  .table-row::before { top: 6px; } .table-row::after { bottom: 6px; }
}
