/* Poison Karaoke Bar – Drinks. Look 1:1 aus der Canva-Karte (Juli 2026):
   anthrazit #231f20, Signalrot, Open Sans, rot gerahmter Kasten mit Titel
   und Logo auf der Rahmenlinie. */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/open-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/open-sans-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/open-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/open-sans-700.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/open-sans-800.woff2) format("woff2"); }

:root {
  --bg: #231f20;          /* exakt der Seitengrund des PDFs */
  --red: #ff3131;         /* Titel, Rahmen, Linien */
  --text: #ffffff;
  --muted: #cfcbcc;       /* Beschreibungen: 10,6:1 auf --bg */
  --rule: #8a8486;        /* graue Trennlinien (Flaschenbier, Virgin, Shots) */
  --radius: 22px;
  --frame-w: 2px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px; /* Sprungziele nicht unter der festen Leiste */
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  padding: calc(28px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) env(safe-area-inset-bottom) max(var(--gutter), env(safe-area-inset-left));
  line-height: 1.35;
  font-size: 16px;
  overflow-x: clip;
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* ---------- Rahmen ---------- */
.frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border: var(--frame-w) solid var(--red);
  border-radius: var(--radius);
  padding: 8px 18px 56px;
}

.title {
  /* sitzt auf der oberen Rahmenlinie, wie im PDF */
  margin: -1.05em auto 0;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 0 .35em;
  background: var(--bg);
  color: var(--red);
  font-weight: 700;
  font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -.01em;
}

.deposit { margin: 4px 0 14px; text-align: center; font-size: 1.05rem; }
.deposit strong { color: var(--red); font-size: 1.9em; font-weight: 800; vertical-align: -.12em; margin: 0 .12em; }

/* ---------- Kategorien: alle auf einen Blick, nichts zu wischen ----------
   Gedacht fuer Leute mit ein paar Drinks intus: grosse Kacheln, alles sichtbar,
   ein Tipp springt hin. Beim Lesen bringt "Alle Kategorien" oben zurueck. */
.cats { margin: 0 0 10px; }
.cats__hint { margin: 0 0 10px; text-align: center; font-size: .85rem; color: var(--muted); }
.cats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 6px 10px;
  border: 2px solid var(--red);
  border-radius: 14px;
  color: var(--text); text-decoration: none; text-align: center;
  font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  hyphens: auto; overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cat:active { background: var(--red); }
@media (hover: hover) and (pointer: fine) { .cat:hover { background: rgba(255, 49, 49, .18); } }

/* feste Leiste: erscheint erst, wenn die Kacheln aus dem Bild sind (nur mit JS) */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: var(--bg);
  border-bottom: 2px solid var(--red);
  transform: translateY(-110%);
  visibility: hidden;
}
.bar.on { transform: none; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .bar { transition: transform .25s ease, visibility 0s linear .25s; }
  .bar.on { transition: transform .25s ease; }
}
.bar__in {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 8px max(var(--gutter), env(safe-area-inset-right)) 8px max(var(--gutter), env(safe-area-inset-left));
}
.bar__now {
  flex: 1 1 auto; min-width: 0;
  font-weight: 700; font-size: 1.15rem; color: var(--red);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar__btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px;
  border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1rem;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.bar__btn::before { /* Raster-Symbol: "alle Kacheln" */
  content: ""; width: 16px; height: 16px; flex: 0 0 16px;
  background:
    linear-gradient(#fff 0 0) 0 0 / 7px 7px no-repeat,
    linear-gradient(#fff 0 0) 100% 0 / 7px 7px no-repeat,
    linear-gradient(#fff 0 0) 0 100% / 7px 7px no-repeat,
    linear-gradient(#fff 0 0) 100% 100% / 7px 7px no-repeat;
}

/* kurzes Aufleuchten der angesprungenen Rubrik: "hier bist du gelandet" */
@keyframes landen { from { background: rgba(255, 49, 49, .28); } to { background: transparent; } }
@media (prefers-reduced-motion: no-preference) { .sec.gelandet .sec__title { animation: landen 1.2s ease-out; } }

/* ---------- Sektionen ---------- */
.cols { display: block; }
.sec { padding-top: 18px; break-inside: avoid; }

.sec__title {
  border-radius: 6px 6px 0 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 6px;
  padding: 0 2px 7px;
  border-bottom: 2px solid var(--red);
  font-weight: 700; font-size: 1.15rem;
}
#flaschenbier .sec__title, #virgin .sec__title, #shots .sec__title, #softdrinks .sec__title { border-bottom: 1px solid var(--rule); }
.sec__cols { font-weight: 400; font-size: .85rem; color: var(--muted); }

.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 2px;
}
.item + .item { border-top: 1px solid rgba(255, 255, 255, .07); }
.item--abstand { margin-top: 14px; }
.item__text { display: flex; flex-direction: column; min-width: 0; }
.item__name { font-size: 1.02rem; }
.item__info { font-style: italic; font-size: .82rem; color: var(--muted); margin-top: 2px; }

#house-specials .item__name, #mischwerke .item__name, #mix-shots .item__name { font-size: 1.08rem; }
#mix-shots .item__name { font-style: italic; }

.prices { display: flex; gap: 0; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.price { text-align: right; min-width: 3.3em; font-size: 1.02rem; }
.prices--2 > * { min-width: 3.6em; text-align: right; }
.prices--2 > * + * { padding-left: .9em; position: relative; }
.prices--2 > .price + .price::before { content: "/"; position: absolute; left: .25em; color: var(--rule); }
.leer { color: var(--rule); }

#mix-shots .sec__title span:first-child { color: var(--red); font-style: italic; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
#mix-shots .sec__title { border-bottom: 0; }

/* ---------- Angebot + Fuß ---------- */
.offer {
  margin: 34px auto 0;
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  line-height: 1.25;
}

.foot { text-align: center; padding-bottom: 28px; }
.logo {
  display: block;
  width: 132px; height: auto;
  margin: -64px auto 10px;        /* Logo sitzt auf der unteren Rahmenlinie */
  position: relative;
  padding: 0 10px;
  background: var(--bg);
  box-sizing: content-box;
}
.addr { font-style: normal; font-size: 1.05rem; }
.stand { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }

/* ---------- breitere Bildschirme: zweispaltig wie das PDF ---------- */
@media (min-width: 480px) { .cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (min-width: 760px) {
  body { padding-top: 48px; }
  .frame { padding: 8px 36px 64px; }
  .cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols { columns: 2; column-gap: 56px; }
  .sec { display: inline-block; width: 100%; }
}

/* sehr schmale Handys: Knopf kuerzer, damit der Rubrikname Platz hat */
@media (max-width: 359px) {
  .bar__alle { display: none; }
  .bar__now { white-space: normal; font-size: 1rem; line-height: 1.15; overflow-wrap: anywhere; }
}
/* zweispaltig ist "die aktuelle Rubrik" nicht eindeutig - nur der Knopf */
@media (min-width: 760px) { .bar__now { visibility: hidden; } }
