:root {
  --blue: #0092d0;
  --green: #5c9a17;
  --pink: #d82a4d;
  --ink: #141414;
  --mute: #666;
  --soft: #f2f2f2;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --pad: max(16px, calc((100vw - 720px) / 2));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 68px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
body.has-cart { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Selfservice-Hinweis */
.selfservice { background: var(--ink); color: #fff; padding: 10px var(--pad); font-size: .9rem; }

/* Kopfbereich in den Farben der Karte */
.hero { color: #fff; }
.hero-blue { background: var(--blue); padding: calc(20px + env(safe-area-inset-top)) var(--pad) 4px; }
.kicker { margin: 0; font: 900 clamp(1rem, 5.4vw, 1.5rem)/1.12 var(--display); text-transform: uppercase; }
.hero h1 {
  margin: 0;
  font: 900 clamp(3rem, 19vw, 7rem)/.92 var(--display);
  text-transform: uppercase;
  letter-spacing: -.035em;
}
.hero h1 span { display: block; }
.h1-a { background: var(--blue); padding: 0 var(--pad) 6px; }
.h1-b { background: var(--green); padding: 10px var(--pad) 18px; border-bottom: 10px solid var(--ink); }
.hero-box { background: var(--pink); display: flex; align-items: center; gap: 14px; padding: 16px var(--pad); }
.hero-box img { border-radius: 50%; flex: none; }
.hero-box-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.1; }
.hero-box-text span { font-size: .85rem; }
.hero-box-text strong { font: 900 1.6rem/1.1 var(--display); text-transform: uppercase; }
.ghost {
  background: transparent; border: 2px solid #fff; color: #fff;
  border-radius: 999px; padding: 10px 18px; font-weight: 700; min-height: 44px;
}

/* Kategorie-Leiste */
.cats {
  position: sticky; top: 0; z-index: 10;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px var(--pad);
  background: #fff; border-bottom: 2px solid var(--ink);
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap;
}
.chip.active { background: var(--ink); color: #fff; }

/* Karte */
.cat { padding: 28px var(--pad) 8px; }
.cat h2 {
  margin: 0 0 8px;
  font: 900 clamp(1.5rem, 6vw, 2rem)/1.05 var(--display);
  text-transform: uppercase; letter-spacing: -.01em;
}
.items { list-style: none; margin: 0; padding: 0; }
.sub { margin: 14px 0 6px; font-weight: 600; color: var(--mute); }
.item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--ink);
}
.item.gap { margin-top: 22px; }
.name { font-size: 1.05rem; line-height: 1.25; }
.codes { margin-left: 3px; font-size: .68rem; color: var(--mute); }
.meta { margin-top: 2px; color: var(--mute); font-size: .95rem; font-variant-numeric: tabular-nums; }
.price { color: var(--ink); font-weight: 700; }

/* Plus/Minus */
.ctl { display: flex; align-items: center; border-radius: 999px; }
.item.has .ctl { background: var(--soft); }
.rbtn {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  font: 700 1.5rem/1 system-ui, sans-serif; display: grid; place-items: center; padding: 0;
}
.plus { background: var(--pink); color: #fff; }
.minus { background: transparent; color: var(--ink); }
.qty { min-width: 1.6em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.item:not(.has) .minus, .item:not(.has) .qty { display: none; }

/* Info-Fuß */
.info { margin-top: 28px; padding: 24px var(--pad) 8px; background: var(--soft); }
.info h2 { margin: 0 0 8px; font: 900 1.3rem/1.1 var(--display); text-transform: uppercase; }
.info p { margin: 0 0 12px; }
.small { font-size: .85rem; color: var(--mute); }
.noscript { margin: 0; padding: 16px; background: var(--pink); color: #fff; }

/* Warenkorb-Leiste */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 0; background: var(--ink); color: #fff; text-align: left;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
}
.cartbar-sum { display: flex; flex-direction: column; line-height: 1.2; }
.cartbar-sum strong { font-size: .85rem; font-weight: 600; opacity: .85; }
#cartbar-total { font: 900 1.3rem/1.2 var(--display); }
.cta {
  display: flex; align-items: center; min-height: 48px; padding: 0 20px;
  background: var(--pink); border-radius: 999px; font-weight: 700;
}

/* Dialoge */
dialog { padding: 0; border: 0; color: var(--ink); background: #fff; }
dialog::backdrop { background: rgba(0, 0, 0, .55); }

html:has(dialog[open]) { overflow: hidden; } /* Seite hinter offenem Dialog scrollt nicht mit */
.gate { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; overflow-y: auto; overscroll-behavior: contain; }
.gate[open] { display: flex; flex-direction: column; padding-top: calc(24px + env(safe-area-inset-top)); }
.gate-logo { align-self: flex-start; margin: 0 var(--pad); border-radius: 50%; }
.gate h2 { margin: 14px var(--pad) 4px; font: 900 clamp(2.2rem, 12vw, 4rem)/1 var(--display); text-transform: uppercase; }
.gate p { margin: 0 var(--pad) 18px; color: var(--mute); }
.gate-boxes { flex: 1; display: flex; flex-direction: column; }
.gate-btn {
  flex: 1; min-height: 96px; border: 0; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); text-align: left;
  font: 900 clamp(2rem, 11vw, 3.4rem)/1 var(--display); text-transform: uppercase;
}
.gate-btn .cur { font: 700 .9rem system-ui, sans-serif; text-transform: none; border: 2px solid #fff; border-radius: 999px; padding: 4px 10px; }
.b1 { background: var(--blue); }
.b2 { background: var(--green); }
.b3 { background: var(--pink); }
.gate .link { padding: 16px; }

.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; text-decoration: underline; min-height: 44px; }

.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh;
  margin: auto auto 0; border-radius: 22px 22px 0 0;
  overflow: auto; overscroll-behavior: contain;
}
#sheet-body { padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet h2 { margin: 0; font: 900 1.6rem/1.1 var(--display); text-transform: uppercase; }
.sheet h3 { margin: 0 0 4px; font: 900 1rem/1.2 var(--display); text-transform: uppercase; }
.x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); font-size: 1.6rem; line-height: 1; }
.sheet-box { margin: 10px 0 6px; }

.lines { list-style: none; margin: 8px 0 0; padding: 0; }
.line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ink); }
.line .ctl { background: var(--soft); }

.field { display: block; margin-top: 14px; }
.field > span { display: block; margin-bottom: 4px; font-weight: 700; font-size: .9rem; }
.field input, .field textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: 12px; padding: 12px;
  font: inherit; color: inherit; background: #fff;
}
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 12px; font: 900 1.4rem/1.2 var(--display); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.send, .btn-alt {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 10px;
  border: 2px solid var(--pink); border-radius: 14px; background: var(--pink); color: #fff;
  font: 900 1.05rem/1.2 var(--display); text-transform: uppercase; text-decoration: none; text-align: center; padding: 0 16px;
}
.btn-alt { background: #fff; color: var(--ink); border-color: var(--ink); }
.send[disabled] { opacity: .6; cursor: wait; }
.notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.notice.err { background: #fde8ec; }
.hint { margin: 12px 0 0; font-size: .85rem; color: var(--mute); }

.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 2rem; margin-bottom: 10px; }
.tick.warn { background: var(--pink); }
.done p { margin: 8px 0 0; }
.pay { margin-top: 18px; padding: 14px; border: 2px solid var(--ink); border-radius: 14px; }
.pay p { margin: 4px 0 8px; }
.preview { margin: 12px 0 0; padding: 12px; border-radius: 12px; background: var(--soft); white-space: pre-wrap; font: .9rem/1.45 ui-monospace, Menlo, monospace; }
