/* =====================================================================
   GastroCMS – Frontend
   Farben kommen aus dem Backend (--brand, --accent) via <style> im Kopf.
   ===================================================================== */

:root {
  --brand: #C8321E;
  --brand-ink: #fff;
  --brand-dark: #9c2717;
  --accent: #2F6B3F;
  --accent-ink: #fff;

  --ink: #1F2328;
  --ink-2: #4A5058;
  --ink-3: #6E747C;
  --line: #E4E2DD;
  --bg: #FFFFFF;
  --bg-soft: color-mix(in srgb, var(--brand) 5%, #FAFAF8);
  --bg-tint: color-mix(in srgb, var(--brand) 10%, var(--surface));
  --surface: #FFFFFF;
  --surface-2: #EEF0F2;
  --field-border: #CDD1D5;
  --bar-bg: rgba(255,255,255,.92);
  --on-ink: #FFFFFF;
  --r-btn: 999px;
  --hero-bg: var(--bg-soft);
  --about-bg: var(--bg-soft);
  --brand-text: var(--brand-dark);
  --accent-text: var(--accent);
  --focus: #1F2328;

  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-pop: 0 18px 50px -18px rgba(31, 35, 40, .35);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 64px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-btn); border: 2px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font-weight: 650; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-3); }
.btn-wa { background: #0F7A3E; border-color: #0F7A3E; color: #fff; }
.btn-wa:hover { background: #0B6332; border-color: #0B6332; }

.icon-btn {
  display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; justify-content: center;
  padding: 0 10px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; text-decoration: none; font-weight: 600;
}
.icon-btn svg { font-size: 1.25rem; }
.icon-btn:hover { background: var(--bg-soft); }

/* ---------- Hinweisleiste ---------- */
.notice { background: var(--ink); color: var(--on-ink); text-align: center; padding: 10px var(--gutter); font-size: .9375rem; }
.notice a { color: inherit; }
.notice-vacation { background: var(--accent); color: var(--accent-ink); display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; }

/* ---------- Kopfzeile ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--bar-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.logo img { max-height: 44px; width: auto; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainnav { display: none; gap: 4px; margin-left: 8px; }
.mainnav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 550; }
.mainnav a:hover { background: var(--bg-soft); color: var(--ink); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hide-sm { display: none; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 999px; border: 0; background: var(--brand); color: var(--brand-ink); cursor: pointer;
}
.cart-btn svg { font-size: 1.3rem; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: .75rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (min-width: 900px) {
  .mainnav { display: flex; }
  .hide-sm { display: inline; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(32px, 5vw, 72px); background: var(--hero-bg); overflow: hidden; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 6.2vw, 4.1rem); font-weight: 800; max-width: 15ch; margin: 16px 0 16px; text-wrap: balance; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--ink-2); font-size: .9375rem; }
.hero-facts strong { display: block; color: var(--ink); font-size: .8125rem; font-weight: 650; }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9375rem; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #B9BEC4; }
.status.is-open .dot { background: #1E9E52; box-shadow: 0 0 0 4px rgba(30,158,82,.18); }
.status.is-closed .dot { background: var(--brand); }

/* Der Ofen-Bogen – Erkennungszeichen der Seite */
.hero-visual { display: flex; justify-content: center; }
.arch {
  position: relative; width: min(100%, 420px); aspect-ratio: 4 / 4.6;
  border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden;
  background: var(--brand); color: var(--brand-ink);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.08);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 45% at 50% 100%, rgba(255, 196, 92, .95), rgba(255, 140, 40, .55) 45%, transparent 75%),
    radial-gradient(40% 25% at 50% 100%, rgba(255, 245, 210, .9), transparent 70%);
  mix-blend-mode: screen;
  animation: flicker 5s ease-in-out infinite alternate;
}
@keyframes flicker { 0% { opacity: .85; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.04); } 100% { opacity: .9; transform: scaleY(.98); } }
.arch-today { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20% 16px 30%; }
.arch-today span { font-size: .9375rem; opacity: .9; margin-bottom: 6px; }
.arch-today strong { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.25fr 1fr; gap: 56px; }
  .hero-visual { justify-content: flex-end; }
}

/* ---------- Highlights ---------- */
.highlights { border-bottom: 1px solid var(--line); }
.highlights-inner { display: grid; gap: 0; }
.hl { padding: 22px 0; border-top: 1px solid var(--line); }
.hl:first-child { border-top: 0; }
.hl h2 { font-size: 1.125rem; font-weight: 750; display: flex; align-items: center; gap: 10px; }
.hl h2::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--brand); }
.hl p { color: var(--ink-2); margin-top: 6px; }
@media (min-width: 760px) {
  .highlights-inner { grid-template-columns: repeat(3, 1fr); }
  .hl { padding: 28px 28px 28px 0; border-top: 0; }
  .hl + .hl { padding-left: 28px; border-left: 1px solid var(--line); }
}

/* ---------- Speisekarte ---------- */
.menu-section { padding: clamp(40px, 6vw, 72px) 0 32px; }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 800; }
.menu-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.search { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 360px; min-height: 46px; padding: 0 16px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--ink-3); background: var(--surface); }
.search svg { color: var(--ink-3); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; min-width: 0; outline: none; }
.order-off { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--r-md); background: var(--bg-tint); border-left: 4px solid var(--brand); }
.order-off a { font-weight: 650; }

.catbar { position: sticky; top: var(--topbar-h); z-index: 30; background: var(--bar-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.catbar-inner { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.catbar-inner::-webkit-scrollbar { display: none; }
.catbar a { flex: none; scroll-snap-align: start; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid transparent; white-space: nowrap; }
.catbar a:hover { color: var(--ink); border-color: var(--line); }
.catbar a.active { background: var(--ink); color: var(--on-ink); }

.menu-layout { display: grid; gap: 32px; padding-top: 24px; }
.cat { padding: 20px 0 8px; }
.cat-head { margin-bottom: 8px; }
.cat-head h3 { font-size: 1.5rem; font-weight: 800; }
.cat-head p { color: var(--ink-3); margin-top: 4px; }

.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px dashed var(--line);
}
.item:last-child { border-bottom: 0; }
.num {
  min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--brand-text); font-weight: 750; font-size: .875rem; font-variant-numeric: tabular-nums;
}
.item:not(:has(.num)) { grid-template-columns: 1fr auto; }
.item-body h4 { font-size: 1.0625rem; font-weight: 750; font-family: var(--font-body); letter-spacing: 0; display: inline; margin-right: 6px; }
.desc { color: var(--ink-2); margin-top: 4px; font-size: .9375rem; }
.variants { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: .875rem; color: var(--ink-3); }
.variants b { color: var(--ink); font-weight: 650; }
.allergens { font-size: .75rem; color: var(--ink-3); margin-top: 6px; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; vertical-align: 2px; }
.tag { font-size: .6875rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag-vegetarisch, .tag-vegan { background: #E3F2E7; color: #1C6334; }
.tag-scharf { background: #FDE6E1; color: #A3260F; }
.tag-neu { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-text); }
.tag-beliebt { background: #FFF1D6; color: #8A5A00; }
.tag-glutenfrei { background: #EEE8FB; color: #5434A4; }

.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.thumb { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-md); }
.price { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-weight: 500; color: var(--ink-3); font-size: .8125rem; }
.add {
  width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--brand-text); background: var(--surface); color: var(--brand-text);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s;
}
.add svg { font-size: 1.35rem; }
.add:active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
@media (hover: hover) { .add:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); } }
.soldout { font-size: .75rem; font-weight: 700; color: var(--ink-3); background: var(--surface-2); padding: 4px 10px; border-radius: 999px; }
.is-soldout .item-body, .is-soldout .price { opacity: .5; }
.empty { padding: 32px 0; color: var(--ink-3); }

@media (min-width: 1080px) {
  .menu-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
  .no-order .menu-layout { grid-template-columns: minmax(0, 1fr); }
  .no-order .items { columns: 2; column-gap: 48px; }
  .no-order .item { break-inside: avoid; }
}

/* ---------- Warenkorb ---------- */
.cart { display: none; }
.cart-panel { background: var(--surface); display: flex; flex-direction: column; max-height: 100%; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.cart-head h2 { font-size: 1.25rem; font-weight: 800; }
.seg-toggle { margin: 4px 20px 8px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg-toggle label { position: relative; }
.seg-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-toggle span { display: block; text-align: center; padding: 9px 8px; border-radius: 999px; font-weight: 650; color: var(--ink-2); }
.seg-toggle input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-toggle input:focus-visible + span { outline: 3px solid var(--brand); }
.cart-lines { overflow-y: auto; padding: 0 20px; flex: 1; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-name { font-weight: 650; }
.line-meta { font-size: .8125rem; color: var(--ink-3); }
.line-note { flex: 1; min-width: 0; font: inherit; font-size: .8125rem; border: 0; border-bottom: 1px dashed var(--line); padding: 4px 0; background: transparent; color: var(--ink-2); }
.line-note:focus { outline: none; border-bottom-color: var(--ink-3); }
.line-price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.line-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; cursor: pointer; border-radius: 999px; }
.qty button:hover { background: var(--bg-soft); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-empty { padding: 12px 20px 24px; color: var(--ink-3); }
.plus-inline { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--brand-text); color: var(--brand-text); font-weight: 800; line-height: 1; }
.cart-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.sums { margin: 0 0 14px; }
.sums > div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-2); }
.sums dd { margin: 0; font-variant-numeric: tabular-nums; }
.sums .total { color: var(--ink); font-weight: 800; font-size: 1.125rem; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); }
.cart-hint { font-size: .875rem; color: var(--brand-text); background: var(--bg-tint); padding: 8px 12px; border-radius: var(--r-sm); margin-bottom: 12px; }

/* Desktop: Warenkorb als mitlaufende Spalte */
@media (min-width: 1080px) {
  .cart { display: block; position: sticky; top: calc(var(--topbar-h) + 76px); }
  .cart-panel { border: 1px solid var(--line); border-radius: var(--r-lg); max-height: calc(100vh - var(--topbar-h) - 100px); overflow: hidden; }
  .cart-close { display: none; }
}
/* Mobil/Tablet: Warenkorb als Schublade von unten */
@media (max-width: 1079.98px) {
  .cart.open { display: block; position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 88vh; max-height: 88dvh; }
  .cart.open .cart-panel { border-radius: var(--r-lg) var(--r-lg) 0 0; height: 100%; max-height: inherit; box-shadow: var(--shadow-pop); animation: sheet .25s ease-out; padding-bottom: env(safe-area-inset-bottom); }
  @keyframes sheet { from { transform: translateY(40px); opacity: .4; } }
  .mobile-cart {
    position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 10px;
    border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 650; cursor: pointer;
    box-shadow: var(--shadow-pop);
  }
  .mobile-cart strong { margin-left: auto; font-variant-numeric: tabular-nums; }
  .mc-count { min-width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.22); font-weight: 800; }
  body.has-items { padding-bottom: 84px; }
}
@media (min-width: 1080px) { .mobile-cart { display: none !important; } }
.scrim { position: fixed; inset: 0; background: rgba(20, 22, 25, .45); z-index: 55; }

/* ---------- Über uns ---------- */
.about { padding: clamp(48px, 7vw, 88px) 0; background: var(--about-bg); }
.about-inner { display: grid; gap: 32px; align-items: center; }
.about-text { max-width: 62ch; }
.prose { color: var(--ink-2); font-size: 1.0625rem; }
.prose p + p, .prose ul, .prose h2, .prose h3 { margin-top: 14px; }
.prose a { color: var(--brand-text); }
.about .section-title { margin-bottom: 16px; }
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 999px; }
.about-img { margin: 0; }
@media (min-width: 900px) { .about-inner.has-img { grid-template-columns: 1fr 1.1fr; gap: 64px; } }

/* ---------- Infos ---------- */
.info { padding: clamp(48px, 7vw, 88px) 0; }
.info-inner { display: grid; gap: 48px; }
.info .section-title { font-size: 1.6rem; margin-bottom: 18px; }
.hours { width: 100%; max-width: 440px; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 750; color: var(--brand-text); }
.hours tr.today th::after { content: " · heute"; font-weight: 500; color: var(--ink-3); }
address { font-style: normal; line-height: 1.7; }
.contact-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.contact-list a { color: var(--brand-text); font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sub { font-size: 1.125rem; margin: 28px 0 8px; font-weight: 750; }
.zones { list-style: none; padding: 0; margin: 0; }
.zones li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
@media (min-width: 760px) { .info-inner { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Rechtliches ---------- */
.legal h2 { font-size: 2rem; margin: 0 0 20px; }
.legal h3 { font-size: 1.25rem; margin: 28px 0 8px; }
.legal p, .legal ul { color: var(--ink-2); margin: 0 0 14px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 32px; color: var(--ink-3); font-size: .9375rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 20px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Dialoge ---------- */
.modal {
  border: 0; padding: 0; border-radius: var(--r-lg); width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  box-shadow: var(--shadow-pop); color: var(--ink); background: var(--surface);
}
.modal::backdrop { background: rgba(20, 22, 25, .5); }
.modal[open] { animation: pop .2s ease-out; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-body { padding: 22px 22px 24px; display: grid; gap: 14px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 1.375rem; font-weight: 800; }
.modal-actions { display: flex; gap: 12px; align-items: center; }
.modal-actions .btn { flex: 1; }
@media (max-width: 600px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

.field { display: grid; gap: 6px; }
.field > span { font-size: .875rem; font-weight: 650; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--field-border); background: var(--surface); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: #C42B1C; }
.grid-2 { display: grid; gap: 14px; }
.grid-zip { display: grid; grid-template-columns: 110px 1fr; gap: 14px; margin-top: 14px; }
@media (min-width: 520px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.variant-list { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.variant-list legend { font-size: .875rem; font-weight: 650; color: var(--ink-2); margin-bottom: 8px; }
.variant-opt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.variant-opt:has(input:checked) { border-color: var(--brand); background: var(--bg-tint); }
.variant-opt input { accent-color: var(--brand); width: 20px; height: 20px; }
.variant-opt b { margin-left: auto; font-variant-numeric: tabular-nums; }

.co-type { background: var(--bg-soft); border-radius: var(--r-sm); padding: 10px 14px; font-size: .9375rem; }
.pay { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.pay legend { font-size: .875rem; font-weight: 650; color: var(--ink-2); margin-bottom: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; font-weight: 600; }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt input { accent-color: var(--ink); width: 20px; height: 20px; }
.pay-ico { width: 28px; height: 28px; border-radius: 8px; flex: none; background-position: center; background-repeat: no-repeat; background-size: 18px; }
.pay-whatsapp { background-color: #1FA855; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.4-.7-2.8-1.1-4.6-4-4.8-4.2-.1-.2-1.1-1.5-1.1-2.9s.7-2.1 1-2.4c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.3 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.2.3.7 1.2 1.5 1.9 1 .9 1.9 1.2 2.2 1.3.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l2 1c.3.1.5.2.5.3.1.2.1.7-.1 1.4z'/%3E%3C/svg%3E"); }
.pay-cash { background-color: #3C7A4E; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M2 6h20v12H2V6zm2 2v8h16V8H4zm8 1.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z'/%3E%3C/svg%3E"); }
.pay-paypal { background-color: #003087; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7.5 21H4l2.8-18h6.4c3.2 0 5.3 1.8 4.8 5-.6 3.8-3.2 5.4-6.6 5.4H9.2L7.5 21z'/%3E%3C/svg%3E"); }
.pay-stripe { background-color: #635BFF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M2 6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6zm2 2v2h16V8H4zm0 5v5h16v-5H4z'/%3E%3C/svg%3E"); }

.form-error { background: #FDECEA; color: #8F1D11; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 550; }
.legal-hint { font-size: .8125rem; color: var(--ink-3); }

.done { text-align: center; justify-items: center; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: #E3F2E7; color: #1C6334; display: grid; place-items: center; }
.done-mark svg { font-size: 2rem; }
.done.is-pending .done-mark { background: #FFF1D6; color: #8A5A00; }
.done-lines { list-style: none; padding: 0; margin: 0; width: 100%; text-align: left; border-top: 1px solid var(--line); }
.done-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.done-lines li.sum { font-weight: 800; border-bottom: 0; }
.done-actions { width: 100%; display: grid; gap: 10px; }

/* Urlaubs-Popup */
.vacation-modal .modal-body { text-align: center; padding-top: 28px; }
.vac-dates { display: flex; justify-content: center; gap: 10px; }
.vac-dates span { display: grid; padding: 10px 18px; border-radius: var(--r-md); background: var(--bg-tint); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.vac-dates small { font-family: var(--font-body); font-weight: 600; font-size: .75rem; color: var(--ink-3); }
.vacation-modal h2 { font-size: 1.75rem; font-weight: 800; }
.vac-back { font-size: 1.0625rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 80;
  background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .9375rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1080px) { .toast { bottom: 32px; } }

/* =====================================================================
   Barrierefreiheit & Datenschutz
   ===================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
abbr[title] { text-decoration: none; }
.field abbr { color: var(--brand-text); }
.check-inline { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.check-inline input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.allergens a { color: inherit; text-underline-offset: 2px; }
#inhalt:focus { outline: none; }

/* Allergen-Legende */
.legend { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 18px; background: var(--surface); }
.legend summary { cursor: pointer; padding: 14px 0; font-weight: 650; min-height: 44px; }
.legend .prose { padding-bottom: 16px; font-size: .9375rem; }
.legend .prose p + p { margin-top: 10px; }

/* Footer */
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.foot-links a, .foot-links .link-btn { color: var(--ink-2); text-decoration: none; display: inline-block; padding: 4px 0; }
.foot-links a:hover, .foot-links .link-btn:hover { color: var(--ink); text-decoration: underline; }
.foot-links a[aria-current] { color: var(--ink); font-weight: 650; }
.site-foot { color: var(--ink-2); }

/* Karte (erst nach Einwilligung) */
.map-box { margin-top: 20px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16 / 10; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 20px; color: var(--ink-2); }
.map-placeholder .btn { margin-top: 4px; }

/* PayPal-Einwilligung */
.consent-inline { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); }

/* Cookie-Banner */
.consent { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
.consent-inner {
  pointer-events: auto; width: min(680px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop); padding: 20px 22px; display: grid; gap: 12px;
}
.consent h2 { font-size: 1.2rem; font-weight: 800; }
.consent p { color: var(--ink-2); font-size: .9375rem; }
.consent a { color: var(--brand-text); }
.consent-options { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.consent-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.consent-opt input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.consent-opt small { display: block; color: var(--ink-2); font-size: .8125rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .btn { flex: 1 1 auto; min-height: 46px; }
body.consent-open .mobile-cart { bottom: -100px; }
[data-theme="street"] .consent-inner { border: 3px solid #000; }
