/* BAKU – Digitale Speisekarte
   Design-Tokens: hier zentral anpassen. */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #555555;
  --ink-3: #8a8a8a;
  --line: #e8e8e8;
  --soft: #f6f6f6;
  --accent: #111111;
  --radius: 14px;
  --max: 1120px;
  --header-h: 64px;
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 34px; width: auto; }
.order {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.order::after { content: "↗"; font-size: 12px; }
.order:hover { background: var(--ink); color: #fff; }

/* Category nav */
.cats { border-top: 1px solid var(--line); }
.cats__track {
  height: var(--nav-h); display: flex; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.cats__track::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; scroll-snap-align: start;
  padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background .15s, color .15s;
}
.cats a:hover { color: var(--ink); background: var(--soft); }
.cats a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Intro */
.intro { padding: 40px 0 8px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.intro h1 { margin: 0; font-size: clamp(34px, 7vw, 56px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.intro__meta { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.search {
  margin-top: 24px; display: flex; align-items: center; gap: 10px;
  max-width: 420px; padding: 0 14px; height: 46px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--ink-3);
}
.search:focus-within { border-color: var(--ink); background: #fff; color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* Sections */
.cat { padding-top: 40px; }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.cat__title { margin: 0; font-size: clamp(22px, 4vw, 28px); letter-spacing: -.02em; line-height: 1.2; }
.cat__count { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.cat__desc { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

.item { border-bottom: 1px solid var(--line); }
.item__btn {
  width: 100%; display: grid; grid-template-columns: 1fr 104px; gap: 16px; align-items: start;
  padding: 18px 0; background: none; border: 0; text-align: left; cursor: pointer;
}
@media (min-width: 480px) { .item__btn { grid-template-columns: 1fr 120px; } }
.item__btn:hover .item__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.item__name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.item__desc {
  margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.item__meta { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.price { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price--old { font-weight: 400; color: var(--ink-3); text-decoration: line-through; font-size: 14px; }
.tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.tag--sale { border-color: var(--ink); color: var(--ink); }
.codes { font-size: 12px; color: var(--ink-3); }

.thumb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: var(--soft);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--none { display: grid; place-items: center; text-align: center; padding: 8px; font-size: 11px; line-height: 1.3; color: var(--ink-3); }

.loading, .empty { padding: 48px 0; text-align: center; color: var(--ink-3); }

/* Footer */
.foot { margin-top: 72px; background: var(--soft); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.foot__grid { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: 1fr 1fr 2fr; } }
.foot h2 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.foot p { margin: 0 0 6px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.hours dt { color: var(--ink); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.legend { font-size: 13px; line-height: 1.6; }
.legend b { color: var(--ink); font-weight: 600; }
.order--foot { margin-top: 8px; color: var(--ink); }
.foot__base { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--ink-3); }
.foot__base a { color: var(--ink-2); }

/* Detail sheet */
.sheet {
  width: min(560px, 100%); max-height: min(92vh, 900px); margin: auto auto 0; padding: 0;
  border: 0; border-radius: 20px 20px 0 0; background: #fff; color: var(--ink);
  box-shadow: 0 -10px 40px rgba(0,0,0,.15); overflow: hidden;
}
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 20px; } }
html:has(.sheet[open]) { overflow: hidden; }
.sheet::backdrop { background: rgba(0,0,0,.45); }
.sheet[open] { animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }
.sheet__body { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.sheet__close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 1px 6px rgba(0,0,0,.18); cursor: pointer;
}
.sheet__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.sheet__noimg { aspect-ratio: auto; padding: 72px 24px 8px; color: var(--ink-3); font-size: 13px; }
.sheet__content { padding: 20px 20px calc(28px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .sheet__content { padding: 24px 28px 32px; } }
.sheet h2 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.sheet__price { margin-top: 8px; display: flex; align-items: baseline; gap: 10px; }
.sheet__price .price { font-size: 20px; }
.sheet__desc { margin: 14px 0 0; color: var(--ink-2); white-space: pre-line; }
.sheet h3 { margin: 24px 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.sheet__note { margin: 0; font-size: 14px; color: var(--ink-2); }
.codes-list { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.codes-list li { padding: 2px 0; }
.codes-list b { display: inline-block; min-width: 26px; color: var(--ink); }
.opts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.opts li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.opts span:last-child { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt-kind { font-weight: 400; color: var(--ink-3); text-transform: none; letter-spacing: 0; font-size: 13px; }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; margin-top: 16px; font-size: 20px; line-height: 1; color: var(--ink-2); }
.more[open] summary::after { content: "–"; }
.sheet__hint { margin-top: 24px; font-size: 12px; color: var(--ink-3); }
