/* Napoli 030 – Stylesheet
   Farben aus dem Logo: Ofenschwarz, Blattgold, Mozzarella, Pomodoro (030), Basilico (Trikolore). */

@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Gloock';
  src: url('../fonts/gloock-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;

  --ofen: #000000;
  --gold: #e6b865;
  --gold-ink: #7a5a1e;
  --mozzarella: #f8f0da;
  --pomodoro: #c8101e;
  --pomodoro-deep: #a50c18;
  --basilico: #0b7a35;
  --tricolore-green: #009830;

  --paper: #ffffff;
  --ink: #1b1612;
  --muted: #6b625a;
  --line: #e9e3d9;
  --wash: #f5f1ea;
  --on-dark-muted: #b8ab98;

  --font-display: 'Gloock', 'Georgia', serif;
  --font-ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: 0.875rem;  /* 14 */
  --step-0: 1rem;       /* 16 */
  --step-1: 1.125rem;   /* 18 */
  --step-2: 1.3125rem;  /* 21 */
  --step-3: 1.5rem;     /* 24 */
  --step-4: 2.25rem;    /* 36 */
  --step-5: 3rem;       /* 48 */

  --gutter: 16px;
  --radius-control: 10px;
  --radius-sheet: 18px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink);
  --shadow-sheet: 0 -8px 40px rgb(27 22 18 / 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
address { font-style: normal; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-control);
  background: var(--paper); color: var(--ink); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }
.text-link { color: var(--pomodoro); font-weight: 600; text-underline-offset: 3px; }

/* ——— Buttons ——— */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-control);
  font-weight: 600; font-size: var(--step-0); line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn--primary { background: var(--pomodoro); color: #fff; }
.btn--primary:hover { background: var(--pomodoro-deep); }
.btn--primary[disabled], .btn--primary[aria-disabled='true'] {
  background: #d9d2c7; color: #5d554d; cursor: not-allowed;
}
.btn--large { min-height: 54px; padding: 0 30px; font-size: var(--step-1); }
.btn--block { width: 100%; }
.btn--quiet { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn--quiet:hover { border-color: var(--ink); }
.btn__meta { font-weight: 500; opacity: 0.9; }
.btn__spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.4); border-top-color: #fff;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— Header ——— */

.site-header { background: var(--ofen); color: var(--mozzarella); }
.site-header__inner {
  max-width: 1320px; margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 12px;
}
@media (min-width: 760px) { .site-header__inner { gap: 24px; } }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: auto;
}
.brand img { width: 40px; height: 40px; }
.brand__name { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: 0.01em; color: var(--mozzarella); }
.brand .brand__logo { width: 132px; height: auto; }

.site-nav { display: none; gap: 28px; font-size: var(--step--1); }
.site-nav a { color: var(--mozzarella); text-decoration: none; padding: 6px 0; }
.site-nav a:hover { color: var(--gold); }
.site-nav__phone { font-weight: 600; color: var(--gold) !important; }

/* Sprachwahl */
.lang-switch {
  display: inline-flex; flex: none; gap: 2px; padding: 3px;
  border: 1px solid rgb(230 184 101 / 0.45); border-radius: 999px;
}
.lang-switch button {
  min-width: 36px; min-height: 32px; padding: 0 8px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--on-dark-muted); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.03em;
}
.lang-switch button:hover { color: var(--mozzarella); }
.lang-switch button[aria-pressed='true'] { background: var(--gold); color: var(--ofen); }
.lang-switch button:focus-visible { box-shadow: 0 0 0 2px var(--ofen), 0 0 0 4px var(--gold); }

.header-cart {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--mozzarella);
  border: 1px solid rgb(230 184 101 / 0.45); border-radius: 999px;
}
.header-cart__count { font-weight: 700; }
.header-cart:focus-visible { box-shadow: 0 0 0 3px var(--ofen), 0 0 0 5px var(--gold); }

@media (min-width: 760px) { .site-nav { display: flex; } .brand__name { font-size: var(--step-2); } }
@media (min-width: 960px) { .header-cart { display: none; } }

/* ——— Hero: der Ofen ——— */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ofen); color: var(--mozzarella);
  padding: 8px var(--gutter) 44px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
/* Glut hinter der Flamme im Logo; das Logo wird per `screen` über die Glut gelegt,
   sodass sein schwarzer Grund transparent wirkt. */
.hero__glow {
  position: absolute; z-index: -1;
  left: 50%; top: 0; width: min(900px, 180vw); aspect-ratio: 1;
  transform: translate(-50%, -38%);
  background: radial-gradient(closest-side, rgb(214 72 20 / 0.34), rgb(160 40 12 / 0.12) 55%, transparent 100%);
  animation: ember 2200ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes ember {
  from { opacity: 0; transform: translate(-50%, -34%) scale(0.82); }
  to { opacity: 1; transform: translate(-50%, -38%) scale(1); }
}
.hero__logo { width: min(520px, 88vw); }
.hero__logo img { width: 100%; mix-blend-mode: screen; }
.hero__lede {
  max-width: 34ch; margin-top: 8px;
  font-size: var(--step-1); line-height: 1.55; color: var(--mozzarella);
}
.hero__facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  margin: 20px 0 28px; font-size: var(--step--1); color: var(--on-dark-muted);
}
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li:empty { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-dark-muted); }
.status-dot--open { background: #3fbf6b; box-shadow: 0 0 0 4px rgb(63 191 107 / 0.18); }
.hero__facts strong { color: var(--mozzarella); font-weight: 600; }

@media (min-width: 760px) {
  .hero { padding-bottom: 56px; }
  .hero__lede { font-size: var(--step-2); }
}

.tricolore { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 4px; }
.tricolore span:nth-child(1) { background: var(--tricolore-green); }
.tricolore span:nth-child(2) { background: #fff; box-shadow: inset 0 -1px 0 var(--line); }
.tricolore span:nth-child(3) { background: var(--pomodoro); }

/* ——— Bestellbereich ——— */

.order {
  max-width: 1320px; margin: 0 auto;
  padding: 0 var(--gutter) 64px;
  display: grid; grid-template-columns: minmax(0, 1fr);
}
.order:focus { outline: none; }

/* Kategorien: auf kleinen Bildschirmen eine klebende Leiste */
.cat-nav {
  position: sticky; top: 0; z-index: 20;
  margin: 0 calc(var(--gutter) * -1);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.cat-nav__list {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 10px var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.cat-nav__list::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: block; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: var(--step--1);
}
.cat-nav a:hover { color: var(--ink); background: var(--wash); }
.cat-nav a[aria-current='true'] { background: var(--ink); color: var(--paper); }
.cat-nav a.is-empty { display: none; }

.menu { min-width: 0; padding-top: 20px; }

.menu-search {
  position: relative; display: flex; align-items: center;
  margin-bottom: 8px;
}
.menu-search > svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.menu-search input {
  width: 100%; min-height: 48px; padding: 0 44px;
  border: 1px solid var(--line); border-radius: var(--radius-control);
  background: var(--wash);
  font-size: var(--step-0);
}
.menu-search input::placeholder { color: var(--muted); }
.menu-search input:focus { outline: none; background: var(--paper); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.menu-search input::-webkit-search-cancel-button { display: none; }
.menu-search__clear {
  position: absolute; right: 4px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
}

/* Kategorie */
.menu-cat { padding-top: 36px; }
.menu-cat[hidden] { display: none; }
.menu-cat__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.menu-cat__title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.1; letter-spacing: -0.005em; }
.menu-cat__range { color: var(--muted); font-size: var(--step--1); white-space: nowrap; }
.menu-cat__note { margin-top: 10px; color: var(--muted); font-size: var(--step--1); }

/* Gericht – gesetzt wie auf der gedruckten Karte */
.dish {
  position: relative;
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 0 10px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.dish[hidden] { display: none; }
.dish__nr { display: flex; flex-direction: column; align-items: flex-start; padding-top: 2px; color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.dish__head { display: flex; align-items: baseline; gap: 8px; }
.dish__name { font-size: var(--step-1); font-weight: 650; line-height: 1.3; }
.dish__portion { color: var(--muted); font-weight: 500; font-size: var(--step--1); white-space: nowrap; }
.dish__leader { display: none; }
.dish__price { margin-left: auto; font-weight: 650; white-space: nowrap; }
.dish__from { font-weight: 500; color: var(--muted); font-size: var(--step--1); }
.dish__desc { margin-top: 2px; color: var(--muted); font-size: var(--step--1); line-height: 1.45; max-width: 60ch; }
.dish__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.dish__meta:empty { display: none; }
.allergen {
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  text-decoration: none; letter-spacing: 0.02em;
}
.allergen-list { font-size: 0.75rem; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.tag--vegan { color: var(--basilico); background: #e7f3eb; }
.tag--scharf { color: var(--pomodoro); background: #fbeaea; }

.dish__add {
  align-self: center;
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-left: 6px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--ink);
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.dish:hover .dish__add, .dish__add:hover { background: var(--pomodoro); border-color: var(--pomodoro); color: #fff; }
.dish:hover .dish__name { color: var(--pomodoro-deep); }
.dish__in-cart {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 22px; margin-top: 6px; padding: 0 6px; border-radius: 999px;
  background: var(--pomodoro); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.dish__in-cart[hidden] { display: none; }

@media (min-width: 640px) {
  .dish { grid-template-columns: 3rem minmax(0, 1fr) auto; padding: 18px 0; }
  .dish__nr { font-size: var(--step-0); padding-top: 1px; }
  /* Punktlinie zwischen Name und Preis */
  .dish__leader {
    display: block; flex: 1; min-width: 24px;
    border-bottom: 2px dotted #cfc6b8; transform: translateY(-5px);
  }
  .dish__price { margin-left: 0; }
  .menu-cat__title { font-size: var(--step-4); }
}

.menu-empty { padding: 48px 0 16px; max-width: 46ch; }
.menu-empty__title { font-family: var(--font-display); font-size: var(--step-3); margin-bottom: 8px; }
.menu-empty .btn { margin-top: 20px; }

.menu-footnote { margin-top: 32px; color: var(--muted); font-size: var(--step--1); max-width: 60ch; }
.menu-footnote a { color: var(--ink); }

/* ——— Warenkorb ——— */

.cart-panel { display: none; }

.cart { display: flex; flex-direction: column; min-height: 0; }
.cart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart__title { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); }
.icon-button {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: var(--wash); color: var(--ink);
}
.icon-button:hover { background: var(--line); }

.mode-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin: 14px 0 0; padding: 4px; border: 0; min-width: 0;
  border-radius: 12px; background: var(--wash);
}
.mode-switch label {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 8px 6px; border-radius: 9px; cursor: pointer; text-align: center;
}
.mode-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mode-switch__name { font-weight: 600; font-size: var(--step--1); }
.mode-switch__time { font-size: 0.75rem; color: var(--muted); }
.mode-switch label:has(input:checked) { background: var(--paper); box-shadow: 0 1px 3px rgb(27 22 18 / 0.14); }
.mode-switch label:has(input:focus-visible) { box-shadow: var(--focus); }

.cart__notice {
  margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-control);
  background: #fff6e2; color: #5c4415; font-size: var(--step--1);
}

.cart__empty { padding: 32px 4px 12px; text-align: center; }
.cart__empty-title { font-weight: 600; margin-bottom: 4px; }
.cart__empty p { color: var(--muted); font-size: var(--step--1); }

.cart__lines { margin-top: 12px; }
.cart-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-line__name { font-weight: 600; line-height: 1.3; }
.cart-line__nr { color: var(--muted); font-weight: 500; margin-right: 4px; }
.cart-line__details, .cart-line__note { grid-column: 1 / -1; color: var(--muted); font-size: var(--step--1); }
.cart-line__note { font-style: italic; }
.cart-line__price { font-weight: 600; text-align: right; white-space: nowrap; }
.cart-line__controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cart-line__remove {
  border: 0; background: none; padding: 8px 0; color: var(--muted);
  font-size: var(--step--1); text-decoration: underline; text-underline-offset: 3px;
}
.cart-line__remove:hover { color: var(--pomodoro); }

.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
}
.stepper button {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: none;
}
.stepper button:hover { background: var(--wash); }
.stepper button[disabled] { color: #c3bab0; cursor: not-allowed; background: none; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; }
.stepper--large button { width: 44px; height: 44px; }

.cart__progress { margin-top: 16px; font-size: var(--step--1); }
.cart__progress-bar { height: 6px; margin-top: 8px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.cart__progress-bar span { display: block; height: 100%; background: var(--gold-ink); border-radius: inherit; transition: width 240ms ease; }

.totals { margin-top: 16px; display: grid; gap: 6px; font-size: var(--step--1); }
.totals__row { display: flex; justify-content: space-between; gap: 16px; }
.totals__row dt { color: var(--muted); }
.totals__row dd { margin: 0; text-align: right; }
.totals__row--total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-size: var(--step-1); font-weight: 700; }
.totals__row--total dt { color: var(--ink); }
.totals__hint { color: var(--muted); font-size: 0.8125rem; }

.cart__checkout { margin-top: 18px; }

/* Mobile Leiste */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 70%, rgb(255 255 255 / 0));
}
.cart-bar[hidden] { display: none; }
.cart-bar__button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 0 18px;
  border: 0; border-radius: 14px;
  background: var(--pomodoro); color: #fff; font-weight: 600; font-size: var(--step-0);
  box-shadow: 0 8px 24px rgb(200 16 30 / 0.28);
}
.cart-bar__count {
  display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: 999px; background: rgb(255 255 255 / 0.2); font-size: var(--step--1);
}
.cart-bar__label { margin-right: auto; }
.cart-bar__button:focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--pomodoro); }
body.has-cart-bar { padding-bottom: 88px; }

@media (min-width: 960px) {
  .order { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 40px; }
  .cat-nav { grid-column: 1 / -1; }
  .menu { grid-column: 1; }
  .cart-panel {
    display: block; grid-column: 2; grid-row: 2;
    position: sticky; top: 76px; align-self: start;
    margin-top: 20px; padding: 20px;
    max-height: calc(100vh - 96px); overflow-y: auto;
    border: 1px solid var(--line); border-radius: 14px;
  }
  .cart-bar, body.has-cart-bar .cart-bar { display: none; }
  body.has-cart-bar { padding-bottom: 0; }
}

@media (min-width: 1200px) {
  .order { grid-template-columns: 180px minmax(0, 1fr) 360px; column-gap: 48px; }
  .cat-nav {
    grid-column: 1; grid-row: 1 / span 2;
    position: sticky; top: 24px; align-self: start;
    margin: 56px 0 0; background: none; backdrop-filter: none; border: 0;
  }
  .cat-nav__list { flex-direction: column; padding: 0; gap: 2px; overflow: visible; }
  .cat-nav a { border-radius: 8px; padding: 9px 12px; font-size: var(--step-0); }
  .menu { grid-column: 2; grid-row: 1 / span 2; }
  .cart-panel { grid-column: 3; grid-row: 1 / span 2; top: 24px; margin-top: 56px; max-height: calc(100vh - 48px); }
  html { scroll-padding-top: 24px; }
}

/* ——— Dialoge (Bottom Sheet auf dem Handy, zentriert ab Tablet) ——— */

.sheet {
  width: 100%; max-width: 100%; max-height: 92dvh;
  margin: auto 0 0; padding: 0;
  border: 0; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-sheet);
  overscroll-behavior: contain;
}
.sheet::backdrop { background: rgb(12 9 6 / 0.55); }
.sheet[open] { animation: sheet-up 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
.sheet__body { padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }

@media (min-width: 640px) {
  .sheet {
    width: min(560px, calc(100% - 48px)); margin: auto;
    border-radius: var(--radius-sheet); max-height: min(88dvh, 820px);
  }
  .sheet__body { padding: 28px; }
}

html:has(dialog[open]) { overflow: hidden; }

/* Produktdetails */
.product[open] { display: flex; flex-direction: column; overflow: hidden; }
.product__form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.product__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 24px var(--gutter) 8px; }
.product__portion { font-family: var(--font-ui); font-size: var(--step-0); color: var(--muted); }
.field-label { display: block; font-weight: 700; }
.field-label .muted { font-weight: 400; }
.product__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product__nr { color: var(--gold-ink); font-weight: 600; font-size: var(--step--1); }
.product__title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.12; margin-top: 2px; }
.product__desc { margin-top: 10px; color: var(--muted); max-width: 52ch; }
.product__meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.product__allergens { margin-top: 12px; font-size: var(--step--1); color: var(--muted); }
.product__allergens strong { color: var(--ink); font-weight: 600; }

.fieldset { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.fieldset legend { padding: 0; font-weight: 700; font-size: var(--step-0); }
.fieldset__hint { color: var(--muted); font-size: var(--step--1); margin-top: 2px; }

.choice-list { display: grid; gap: 8px; margin-top: 12px; }
.choice {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-control);
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { width: 20px; height: 20px; accent-color: var(--pomodoro); margin: 0; flex: none; }
.choice__label { flex: 1; }
.choice__price { font-weight: 600; }

.ingredient-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ingredient { position: relative; }
.ingredient input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ingredient span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: var(--step--1); font-weight: 500;
}
.ingredient span::before {
  content: ''; width: 14px; height: 14px; flex: none;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ingredient input:not(:checked) + span { border-color: var(--line); color: var(--muted); text-decoration: line-through; }
.ingredient input:not(:checked) + span::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.ingredient input:focus-visible + span { box-shadow: var(--focus); }

.textarea {
  width: 100%; min-height: 76px; margin-top: 10px; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper);
}
.textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.product__footer {
  display: flex; align-items: center; gap: 12px;
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--paper);
}
.product__footer .btn { flex: 1; justify-content: space-between; }

@media (min-width: 640px) {
  .product__scroll { padding: 28px 28px 8px; }
  .product__footer { padding: 16px 28px; }
  .product__title { font-size: var(--step-4); }
}

/* Hinweis unten */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-size: var(--step--1); font-weight: 500;
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 32px; } }

/* ——— Info ——— */

.info { background: var(--wash); border-top: 1px solid var(--line); }
.info__inner { max-width: 1120px; margin: 0 auto; padding: 56px var(--gutter) 64px; }
.info__title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.15; max-width: 20ch; }
.info__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 32px; }
.info__block { min-width: 0; }
.info__block h3, .allergens h3 { font-size: var(--step-1); font-weight: 700; margin-bottom: 12px; }
.info__block p + p { margin-top: 8px; }
.info__block address { line-height: 1.6; margin-bottom: 8px; }

.hours { width: 100%; max-width: 360px; font-size: var(--step-0); }
.hours th { text-align: left; font-weight: 400; padding: 5px 16px 5px 0; }
.hours td { text-align: right; padding: 5px 0; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours__today { font-weight: 400; color: var(--muted); }

.table-scroll { overflow-x: auto; margin-top: 12px; }
.zones { width: 100%; min-width: 440px; font-size: var(--step--1); }
.zones th, .zones td { padding: 8px 12px 8px 0; text-align: left; border-bottom: 1px solid var(--line); }
.zones thead th { font-weight: 600; color: var(--muted); }
.zones td:nth-child(3), .zones td:nth-child(4), .zones th:nth-child(3), .zones th:nth-child(4) { text-align: right; }

.allergens { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.allergens__list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 24px; margin: 20px 0 0;
}
.allergens__list div { display: flex; gap: 12px; font-size: var(--step--1); }
.allergens__list dt { font-weight: 700; width: 1.25rem; }
.allergens__list dd { margin: 0; }

@media (min-width: 760px) {
  .info__title { font-size: var(--step-5); }
  .info__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; }
  .info__block--wide { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .info__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); }
  .info__block--wide { grid-column: auto; }
}

/* ——— Footer ——— */

.site-footer { background: var(--ofen); color: var(--on-dark-muted); font-size: var(--step--1); }
.site-footer__inner {
  max-width: 1120px; margin: 0 auto; padding: 40px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px;
}
.site-footer__logo { width: 110px; mix-blend-mode: screen; }
.site-footer__links { display: flex; gap: 24px; margin-left: auto; }
.site-footer a { color: var(--mozzarella); text-underline-offset: 3px; }
.site-footer a:focus-visible { box-shadow: 0 0 0 3px var(--ofen), 0 0 0 5px var(--gold); }

/* ——— Kasse ——— */

.checkout-header .site-header__inner { padding-top: 12px; padding-bottom: 12px; }
.back-link { color: var(--mozzarella); font-size: var(--step--1); text-underline-offset: 3px; }
.back-link:focus-visible { box-shadow: 0 0 0 3px var(--ofen), 0 0 0 5px var(--gold); }

.checkout {
  max-width: 1120px; margin: 0 auto; padding: 32px var(--gutter) 80px;
  display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr);
}
.checkout__title { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 1.1; }
.checkout__form { display: grid; gap: 0; }
.step { padding: 28px 0; border-bottom: 1px solid var(--line); }
.step:first-of-type { padding-top: 20px; }
.step__title { font-size: var(--step-2); font-weight: 700; margin-bottom: 16px; display: flex; gap: 12px; align-items: baseline; }
.step__nr {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none;
  border-radius: 50%; background: var(--ink); color: var(--paper);
  font-size: var(--step--1); font-weight: 700; transform: translateY(-2px);
}

.option-cards { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.option-card {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.option-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-card__name { font-weight: 700; }
.option-card__hint { color: var(--muted); font-size: var(--step--1); }
.option-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option-card:has(input:focus-visible) { box-shadow: var(--focus); }
.option-card:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
.option-cards--stack { grid-template-columns: 1fr; }

.fields { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fields--spaced { margin-top: 20px; }
.fields[hidden] { display: none; }
.field[hidden] { display: none; }
.field { grid-column: span 6; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field__optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #cfc6b8; border-radius: var(--radius-control); background: var(--paper);
  font-size: var(--step-0);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field[data-invalid] input, .field[data-invalid] select { border-color: var(--pomodoro); box-shadow: 0 0 0 1px var(--pomodoro); }
.field__error { color: var(--pomodoro); font-size: var(--step--1); font-weight: 500; }
.field__error:empty { display: none; }
.field__hint { color: var(--muted); font-size: var(--step--1); }
.field__hint--ok { color: var(--basilico); }
@media (min-width: 640px) {
  .field--half { grid-column: span 3; }
  .field--third { grid-column: span 2; }
  .field--two-thirds { grid-column: span 4; }
}

.time-choice { display: grid; gap: 12px; }
.time-choice select { margin-top: 4px; }

.alert {
  padding: 14px 16px; border-radius: var(--radius-control);
  border: 1px solid; font-size: var(--step--1);
}
.alert--error { background: #fdf0f0; border-color: #efc2c4; color: #7c0a13; }
.alert--info { background: #fff6e2; border-color: #f0dcae; color: #5c4415; }
.alert strong { display: block; font-size: var(--step-0); margin-bottom: 2px; }
.alert ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.alert a { color: inherit; font-weight: 600; }

.submit-area { padding-top: 24px; display: grid; gap: 14px; }
.legal-note { color: var(--muted); font-size: var(--step--1); max-width: 60ch; }
.legal-note a { color: var(--ink); }

.summary {
  align-self: start; padding: 20px;
  border: 1px solid var(--line); border-radius: 14px;
}
.summary__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary__title { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); }
.summary__edit { font-size: var(--step--1); color: var(--ink); text-underline-offset: 3px; }
.summary__lines { margin-top: 8px; }
.summary__alert { margin-top: 14px; }
.summary-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.summary-line__qty { font-weight: 700; }
.summary-line__name { font-weight: 600; }
.summary-line__details { grid-column: 2; color: var(--muted); }
.summary-line__price { font-weight: 600; text-align: right; }

@media (min-width: 960px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 56px; padding-top: 44px; }
  .checkout__title { grid-column: 1 / -1; font-size: var(--step-5); }
  .summary { position: sticky; top: 24px; }
}

.confirmation { max-width: 640px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.confirmation__mark {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #e7f3eb; color: var(--basilico);
}
.confirmation__title { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: 1.1; margin-top: 20px; }
.confirmation__lede { margin-top: 12px; font-size: var(--step-1); }
.confirmation__facts { margin: 28px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.confirmation__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.confirmation__facts dt { color: var(--muted); }
.confirmation__facts dd { margin: 0; font-weight: 600; text-align: right; }
.confirmation .summary { margin-top: 12px; }
.confirmation__mark--warn { background: #fbeaea; color: var(--pomodoro); }
.confirmation__mark--wait { background: var(--wash); color: var(--ink); }
.confirmation__alert:empty { display: none; }
.confirmation__alert { margin-top: 20px; }
.spinner {
  display: inline-block; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--ink);
  animation: spin 800ms linear infinite;
}
.empty-state .spinner { margin-bottom: 12px; }
.pay-hint { color: var(--muted); font-size: var(--step--1); }
.confirmation__help { margin-top: 24px; }
.confirmation__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.empty-state { max-width: 560px; margin: 0 auto; padding: 72px var(--gutter); text-align: center; }
.empty-state h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 1.15; }
.empty-state p { margin: 12px auto 28px; color: var(--muted); max-width: 42ch; }

/* ——— Rechtliche Seiten ——— */

.legal { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: 1.1; margin-bottom: 24px; }
.legal h2 { font-size: var(--step-2); margin: 32px 0 8px; }
.legal p, .legal address { margin-bottom: 12px; line-height: 1.6; }
.legal__notice { margin-bottom: 24px; }
.legal .placeholder { background: #fff6e2; padding: 0 4px; border-radius: 4px; }

/* Überschriften erhalten den Fokus nur programmatisch (für Screenreader) – ohne sichtbaren Rahmen. */
h1[tabindex='-1']:focus, h2[tabindex='-1']:focus { outline: none; box-shadow: none; }

/* Nicht verfügbare Gerichte */
.dish--unavailable { cursor: default; }
.dish--unavailable .dish__name, .dish--unavailable .dish__price, .dish--unavailable .dish__desc { color: #9a9087; }
.dish--unavailable:hover .dish__name { color: #9a9087; }
.dish__add--disabled { width: 44px; height: 44px; margin-left: 6px; }
.tag--unavailable { color: var(--ink); background: var(--wash); }
.cart-line--unavailable .cart-line__name, .cart-line--unavailable .cart-line__price { color: #9a9087; text-decoration: line-through; }
.cart-line__warning { grid-column: 1 / -1; color: var(--pomodoro); font-size: var(--step--1); font-weight: 600; }
.cart__notice a { color: inherit; font-weight: 600; }
.btn--danger { background: var(--pomodoro); color: #fff; }
.btn--danger:hover { background: var(--pomodoro-deep); }
