/* Ayela QR – Digitale Speisekarte (geteiltes Template) */
:root {
  --bg: #111111;
  --bg-2: #181818;
  --card: #1d1d1d;
  --line: #2a2a2a;
  --ink: #f5f5f4;
  --muted: #a3a3a0;
  --faint: #6f6f6c;
  --accent: #e3262b;
  --accent-ink: #ffffff;
  --ok: #34c46a;
  --warn: #f2a93b;
  --radius: 14px;
  --pad: clamp(16px, 4.5vw, 28px);
  --maxw: 760px;
  --bar-h: 58px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.45 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 30px;
  background:
    radial-gradient(120% 80% at 50% 0%, #262626 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero::after { /* leichte Tafel-Körnung wie im Flyer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-img { position: absolute; z-index: 1; pointer-events: none; user-select: none; }
.hero-img.left {
  left: max(-40px, calc(50% - 470px)); bottom: -20px; width: clamp(92px, 22vw, 150px);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.hero-img.right {
  right: max(-90px, calc(50% - 560px)); bottom: -10px; width: clamp(170px, 46vw, 340px);
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
@media (max-width: 560px) {
  .hero-img { opacity: .38; }
}
.hero-addr { margin: 0 0 14px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.hero h1 {
  margin: 0; font-weight: 900; line-height: .9; letter-spacing: .02em;
  font-size: clamp(64px, 19vw, 118px); text-transform: uppercase;
}
.hero-tag {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 12px auto 0; max-width: 420px;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: clamp(18px, 5vw, 24px);
}
.hero-tag::before, .hero-tag::after { content: ""; flex: 1; height: 2px; background: var(--ink); opacity: .9; }

.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0;
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06);
  border: 1px solid var(--line); font-size: 14px; color: var(--ink);
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.status.open .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(52,196,106,.18); }
.status.soon .dot { background: var(--warn); }
.status small { color: var(--muted); font-size: 13px; }

.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); text-decoration: none; font-weight: 700; font-size: 16px;
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn .sub { display: block; font-weight: 400; font-size: 12px; opacity: .85; line-height: 1.1; }
.btn .two { text-align: left; line-height: 1.15; }

/* ---------- Sticky Kategorie-Leiste ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(17,17,17,.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-inner { display: flex; align-items: center; gap: 8px; height: var(--bar-h); max-width: var(--maxw); margin: 0 auto; padding: 0 0 0 var(--pad); }
.search-btn {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); display: grid; place-items: center; cursor: pointer;
}
.search-btn svg { width: 18px; height: 18px; }
.chips {
  position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad) 0 2px;
  scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 28px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; white-space: nowrap; text-decoration: none;
  padding: 8px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
  border: 1px solid transparent; transition: background .2s, color .2s;
}
.chip.active { background: var(--ink); color: #111; }
.searchbox { display: none; flex: 1; align-items: center; gap: 8px; padding-right: var(--pad); }
.bar.searching .chips { display: none; }
.bar.searching .searchbox { display: flex; }
.searchbox input {
  flex: 1; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); padding: 0 16px; font-size: 16px; outline: none;
}
.searchbox input:focus { border-color: #555; }
.searchbox button { background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; padding: 8px 4px; }

/* ---------- Sektionen ---------- */
main { padding: 8px 0 120px; }
.sec { padding-top: 26px; }
.sec-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #050505; border-left: 4px solid var(--accent);
  padding: 11px 14px; border-radius: 4px;
}
.sec-head h2 { margin: 0; font-size: clamp(21px, 5.6vw, 27px); font-weight: 900; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.sec-note { margin: 10px 2px 0; color: var(--muted); font-size: 13.5px; font-style: italic; }
.sec-note.small { font-style: normal; font-size: 12px; color: var(--faint); margin-top: 6px; }
.badge-new {
  display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .06em; padding: 3px 7px; border-radius: 4px; vertical-align: middle; font-style: normal;
}

.sizes { display: flex; margin: 14px 0 2px; padding: 4px; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.sizes button {
  flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px 4px; cursor: pointer; line-height: 1.15;
  font-weight: 700; font-size: 15px; color: var(--muted); -webkit-tap-highlight-color: transparent;
}
.sizes button small { display: block; font-weight: 400; font-size: 11.5px; opacity: .8; }
.sizes button[aria-pressed="true"] { background: var(--ink); color: #111; }

.items { list-style: none; margin: 6px 0 0; padding: 0; }
.item { display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 10px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item.nonr { grid-template-columns: 1fr auto; }
.nr { color: var(--faint); font-size: 14px; font-weight: 700; padding-top: 1px; }
.name { font-weight: 700; font-size: 16.5px; }
.name .badge-new { margin-left: 6px; font-size: 10px; padding: 2px 6px; }
.name .hot { margin-left: 4px; font-size: 14px; }
.desc { grid-column: 2; color: var(--muted); font-size: 13.5px; margin-top: 1px; }
.item.nonr .desc { grid-column: 1; }
.price { grid-row: 1; grid-column: 3; text-align: right; font-weight: 800; font-size: 16.5px; white-space: nowrap; }
.item.nonr .price { grid-column: 2; }
.price .alt { display: block; font-weight: 400; font-size: 12px; color: var(--faint); margin-top: 2px; }
.variants { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.variants span { font-weight: 800; }
.variants em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; margin-right: 8px; }
.item.extra .name { font-weight: 600; color: var(--muted); }
.item.extra .price { color: var(--muted); font-weight: 600; }
mark { background: rgba(227,38,43,.35); color: inherit; border-radius: 3px; padding: 0 1px; }

.empty { display: none; text-align: center; padding: 50px 10px; color: var(--muted); }
.empty.show { display: block; }

/* ---------- Info ---------- */
.info { margin-top: 40px; display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 4px 0; vertical-align: top; }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.group td { padding-top: 12px; }
.hours .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; display: block; }
.hours .note { color: var(--muted); font-weight: 400; font-size: 12.5px; display: block; }
.card .big { font-size: 22px; font-weight: 800; text-decoration: none; display: block; margin-bottom: 4px; }
details.card summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; font-size: 22px; color: var(--muted); line-height: 1; }
details.card[open] summary::after { content: "–"; }
details.card p { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
details.card p b { color: var(--ink); }

footer { text-align: center; color: var(--faint); font-size: 12.5px; padding: 30px var(--pad) 40px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Schwebender Anruf-Button ---------- */
.fab {
  position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 10px 30px rgba(0,0,0,.55); min-height: 54px; padding: 0 24px; border-radius: 999px; white-space: nowrap;
}
.fab.show { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (min-width: 900px) { .fab { left: auto; right: 28px; transform: translateY(140%); } .fab.show { transform: none; } }
