:root {
  --bg: #f6efe6; --card: #fffaf4; --ink: #241f1c; --muted: #6f655d; --line: #e6d9ca;
  --accent: #ec7f52; --accent-ink: #fff; --accent-soft: #fbe3d6; --chip: #ddd0c0;
  --ok: #2f7d4f; --warn: #b5541c; --err: #b3261e; --radius: 14px;
  --shadow: 0 2px 10px rgba(60, 40, 20, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.hidden { display: none !important; }

.btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.light { background: var(--chip); color: var(--ink); }
.btn.block { width: 100%; }
.icon-btn { background: none; border: 0; padding: 6px; font-size: 20px; color: var(--ink); }

/* Kopfzeile */
header.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.logo { font-weight: 900; letter-spacing: .04em; font-size: 22px; text-decoration: none; color: var(--ink); line-height: 1; }
.logo small { display: block; font-size: 8.5px; letter-spacing: .12em; font-weight: 600; color: var(--muted); }
.top-inner .spacer { flex: 1; }
.mode-btn { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; white-space: nowrap; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
.chips { max-width: 1240px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 10px; scrollbar-width: thin; }
.chip { flex: none; background: var(--chip); border: 0; border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--ink); }
.chip.active { background: var(--accent); color: #fff; }

.banner { max-width: 1240px; margin: 12px auto 0; padding: 0 16px; }
.banner div { background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; font-size: 14px; }

/* Layout */
.layout { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding: 12px 16px 120px; }
.cat h2 { font-size: 24px; font-weight: 500; margin: 18px 0 12px; scroll-margin-top: 120px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; position: relative; }
.card .img { aspect-ratio: 16/10; border-radius: 10px; background: linear-gradient(135deg, #2b2623, #5a4a3f); display: grid; place-items: center; color: #f6efe6; font-weight: 800; font-size: 28px; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .add { position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 22px; line-height: 1; box-shadow: var(--shadow); }
.card h3 { font-size: 15px; font-weight: 500; margin: 10px 0 2px; text-align: center; }
.card .price { text-align: center; color: var(--muted); font-size: 14px; }
.card p { font-size: 12.5px; color: var(--muted); margin: 8px 0 4px; text-align: center; }
.card .info { font-size: 12px; text-align: center; color: var(--muted); background: none; border: 0; text-decoration: underline; }
.card .allergens { font-size: 12px; color: var(--muted); text-align: center; }

/* Warenkorb */
aside.cart { position: sticky; top: 120px; align-self: start; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; }
aside.cart h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.cart-items { overflow-y: auto; flex: 1; min-height: 60px; }
.cart-empty { color: var(--muted); text-align: center; padding: 40px 0; }
.ci { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ci .qty { display: flex; align-items: center; gap: 6px; }
.ci .qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.sum { font-size: 14px; margin-top: 10px; }
.sum .row { display: flex; justify-content: space-between; padding: 2px 0; }
.sum .total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.hint { font-size: 13px; color: var(--warn); margin: 8px 0; }
.ok { color: var(--ok); }
.err { color: var(--err); }
.voucher { display: flex; gap: 6px; margin-top: 10px; }
.voucher input { padding: 8px 10px; }
.voucher button { padding: 8px 12px; }
.small { font-size: 12.5px; color: var(--muted); }

/* Mobile Warenkorb-Leiste */
.cart-bar { display: none; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  aside.cart { display: none; position: fixed; inset: auto 0 0 0; top: auto; max-height: 85vh; border-radius: 18px 18px 0 0; z-index: 40; }
  aside.cart.open { display: flex; }
  .cart-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; }
  .cart-bar .btn { flex: 1; padding: 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* Dialoge */
.overlay { position: fixed; inset: 0; background: rgba(30, 20, 10, .45); z-index: 50; display: grid; place-items: center; padding: 16px; }
.dialog { background: var(--card); border-radius: 16px; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; padding: 20px; position: relative; }
.dialog.wide { width: min(980px, 100%); }
.dialog h2 { margin: 0 0 14px; font-size: 20px; font-weight: 500; padding-right: 30px; }
.dialog .close { position: absolute; top: 12px; right: 12px; }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; border: 0; border-radius: 999px; padding: 11px; background: var(--chip); font-weight: 600; }
.seg button.active { background: var(--accent); color: #fff; }
.seg.tips { flex-wrap: wrap; }
.seg.tips button { flex: 1 1 70px; padding: 9px 6px; font-size: 14px; line-height: 1.2; }
.seg.tips button small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
.plz-row { display: flex; gap: 8px; margin-top: 14px; }
.plz-row input { flex: 1; }
.result { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fff; font-size: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.three { display: grid; grid-template-columns: 2fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .two, .three { grid-template-columns: 1fr; } }
.checkout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }
.box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.box h3 { margin: 0 0 6px; font-size: 15px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink); margin: 10px 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.radio { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; color: var(--ink); }
.radio input { width: auto; }
.errors { background: #fdecea; color: var(--err); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.errors ul { margin: 0; padding-left: 18px; }
footer.legal { text-align: center; padding: 20px 16px 100px; font-size: 13px; color: var(--muted); }
footer.legal a { color: var(--muted); margin: 0 6px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 60; font-size: 14px; }
.page { max-width: 820px; margin: 24px auto; padding: 0 16px 60px; }
.status-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.status-steps span { padding: 6px 12px; border-radius: 999px; background: var(--chip); font-size: 13px; }
.status-steps span.on { background: var(--accent); color: #fff; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list td, table.list th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
