/* ==========================================================================
   1. DESIGN-TOKENS — pro Kunde nur diesen Block anpassen
   ========================================================================== */
:root {
  /* Farben vom Ladenschild abgenommen: Rot, Gelb, weiße Wand */
  --rot:        #cf2317;
  --rot-dunkel: #a11a10;
  --gelb:       #f7c200;
  --gruen:      #1c6b3f;   /* nur für "geöffnet" und vegetarisch */

  --text:       #1c1a18;
  --text-grau:  #5c554e;
  --linie:      #ddd6cc;
  --papier:     #ffffff;   /* Grundfläche: weiß */
  --papier-2:   #f7f3ec;   /* leicht getönt, nur für einzelne Bänder */

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --maxw: 1060px;
}

/* ==========================================================================
   2. Grundlagen
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--papier);
  overflow-wrap: break-word;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(40px, 7vw, 72px) 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 10px; top: -60px; z-index: 200;
  background: var(--rot); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Überschrift mit gelbem Balken darunter – wie die Schilder am Laden */
.section-head { margin-bottom: 28px; max-width: 60ch; }
.section-head h2 { display: inline-block; position: relative; padding-bottom: 6px; }
.section-head h2::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px; background: var(--gelb);
}
.section-head p { color: var(--text-grau); margin: 14px 0 0; }

/* Buttons: eckig, kräftig, kein Schnickschnack ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700;
  padding: 13px 24px;
  border: 2px solid var(--rot);
  background: var(--rot); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background-color .12s;
}
.btn:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.btn-weiss { background: #fff; color: var(--rot); }
.btn-weiss:hover { background: var(--gelb); border-color: var(--rot); color: var(--text); }
.btn-grau { background: #fff; color: var(--text); border-color: var(--linie); }
.btn-grau:hover { background: var(--papier-2); border-color: var(--text-grau); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-wa { background: #128c4a; border-color: #128c4a; color: #fff; }
.btn-wa:hover { background: #0d6e39; border-color: #0d6e39; }

/* Schmaler Hinweisstreifen ganz oben – die Seite ist eine Demo */
.demo-band {
  margin: 0; padding: 7px 20px;
  background: var(--text); color: #fff;
  font-size: .82rem; text-align: center;
}

/* ==========================================================================
   3. Kopfzeile
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 3px solid var(--rot);
}
.header .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }

.logo {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none; color: var(--text); margin-right: auto;
}
.logo b {
  background: var(--rot); color: #fff;
  font-size: 1.25rem; font-weight: 800; letter-spacing: .5px;
  padding: 4px 10px;
}
.logo span { font-size: .95rem; color: var(--text-grau); }
@media (max-width: 560px) { .logo span { display: none; } }

.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .97rem;
  padding: 4px 0; border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--gelb); }
@media (max-width: 820px) { .nav { display: none; } }

/* Warenkorb im Kopf: nur Icon mit Zähler, ohne Fläche */
.cart-btn {
  font: inherit; font-weight: 700; cursor: pointer;
  background: none; border: 0; color: var(--text);
  padding: 8px 4px;
  display: inline-flex; align-items: center; gap: 7px;
}
.cart-btn:hover { color: var(--rot); }
.cart-count {
  font-variant-numeric: tabular-nums; font-size: .95rem;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--gelb); color: var(--text);
}
/* Ist etwas drin, springt der Zähler auf Rot */
.cart-btn[data-gefuellt="true"] .cart-count { background: var(--rot); color: #fff; }
@media (max-width: 820px) { .header .cart-btn { display: none; } }

/* ==========================================================================
   4. Kopfbereich mit Foto
   ========================================================================== */
.hero { padding-bottom: 4px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  align-items: stretch;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-text { padding: clamp(32px, 5vw, 60px) 0; align-self: center; }
.hero-text .kicker {
  display: inline-block; background: var(--gelb);
  font-weight: 700; font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; margin-bottom: 16px;
}
.hero-text h1 { margin-bottom: .3em; }
.hero-text .satz { font-size: 1.15rem; color: var(--text-grau); margin-bottom: 24px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-foto { position: relative; min-height: 300px; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; }

/* Kennzeichnung auf Platzhalter-Fotos */
.foto-hinweis {
  position: absolute; left: 0; bottom: 0;
  background: rgba(28, 26, 24, .78); color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 12px;
}
@media (max-width: 820px) { .hero-foto { min-height: 230px; order: -1; } }

/* Geöffnet-Anzeige: schlichtes Kästchen, kein Pulsieren */
.status {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .95rem;
  margin-bottom: 18px;
}
.status .punkt { width: 11px; height: 11px; background: var(--gruen); flex: none; }
.status[data-open="false"] { color: var(--text-grau); }
.status[data-open="false"] .punkt { background: #b3aca3; }

/* Info-Band – läuft auf Inhaltsbreite mit, nicht über die ganze Seite */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border: 1px solid var(--linie);
  background: var(--papier-2);
  margin: 28px 0 0;
}
.fact { padding: 16px 20px; border-right: 1px solid var(--linie); }
.fact:last-child { border-right: 0; }
@media (max-width: 700px) {
  .fact { border-right: 0; border-bottom: 1px solid var(--linie); }
  .fact:last-child { border-bottom: 0; }
}
.fact dt { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-grau); font-weight: 700; }
.fact dd { margin: 3px 0 0; font-weight: 700; }

/* ==========================================================================
   5. Speisekarte – wie die Karte an der Wand
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 30px; border-bottom: 2px solid var(--linie); }
.chip {
  font: inherit; font-weight: 700; font-size: .97rem;
  padding: 10px 18px; cursor: pointer;
  background: none; border: 0; border-bottom: 4px solid transparent;
  color: var(--text-grau); margin-bottom: -2px;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--rot); }

.cat-title {
  font-size: 1.4rem; font-weight: 800; margin: 44px 0 4px;
  padding-bottom: 8px; border-bottom: 2px solid var(--text);
}
.cat-title:first-of-type { margin-top: 0; }

.dish { padding: 18px 0; border-bottom: 1px solid var(--linie); display: flex; gap: 18px; }
.dish-foto { width: 96px; height: 96px; flex: none; object-fit: cover; border: 1px solid var(--linie); }
.dish-main { flex: 1; min-width: 0; }

/* Name ..... Preis, mit Punktlinie wie auf einer gedruckten Karte */
.dish-zeile { display: flex; align-items: baseline; gap: 8px; }
.dish-zeile h4 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.dish-punkte { flex: 1; border-bottom: 2px dotted var(--linie); transform: translateY(-4px); min-width: 20px; }
.dish-preis { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-desc { color: var(--text-grau); font-size: .95rem; margin: 4px 0 0; }

.tag {
  display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px;
  background: var(--gelb); color: var(--text);
}
.tag[data-kind="veg"] { background: var(--gruen); color: #fff; }

/* Am Handy wird es eng: kleineres Foto, Punktlinie darf kürzer werden */
@media (max-width: 560px) {
  .dish { gap: 12px; }
  .dish-foto { width: 72px; height: 72px; }
  .dish-punkte { min-width: 10px; }
}

.dish-foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.add-btn {
  font: inherit; font-weight: 700; font-size: .93rem; cursor: pointer;
  padding: 8px 16px; border: 2px solid var(--rot); background: #fff; color: var(--rot);
}
.add-btn:hover { background: var(--rot); color: #fff; }
.add-btn.added { background: var(--gruen); border-color: var(--gruen); color: #fff; }

/* Extras */
.opts { margin: 0; }
.opts summary {
  cursor: pointer; font-size: .9rem; font-weight: 700; color: var(--rot);
  list-style: none; display: inline-block; padding: 4px 0;
  border-bottom: 1px dashed var(--rot);
}
.opts summary::-webkit-details-marker { display: none; }
.opt-group { margin: 14px 0 0; border: 0; padding: 0; }
.opt-group legend {
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-grau); padding: 0;
}
.opt-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opt {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .88rem; padding: 6px 12px; cursor: pointer; user-select: none;
  border: 1px solid var(--linie); background: #fff;
}
.opt:hover { border-color: var(--text-grau); }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt:has(input:checked) { border-color: var(--rot); background: var(--gelb); font-weight: 700; }
.opt:has(input:focus-visible) { outline: 3px solid var(--rot); outline-offset: 2px; }
.opt .plus { color: var(--text-grau); font-size: .85em; }

/* ==========================================================================
   6. Über uns
   ========================================================================== */
.about { background: var(--papier-2); border-block: 1px solid var(--linie); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

.punkte { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.punkte li { display: flex; gap: 12px; }
.punkte .haken { color: var(--rot); font-weight: 800; font-size: 1.1rem; line-height: 1.4; }
.punkte b { display: block; }
.punkte span { color: var(--text-grau); font-size: .95rem; }

.foto-paar { display: grid; gap: 12px; }
.foto-paar img { width: 100%; border: 1px solid var(--linie); }

/* ==========================================================================
   7. Kontakt
   ========================================================================== */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 820px) { .kontakt-grid { grid-template-columns: 1fr; } }

.kontakt-liste { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.kontakt-liste li { display: flex; gap: 10px; }
.kontakt-liste a { font-weight: 700; }
.telefon-gross { font-size: 1.5rem; font-weight: 800; color: var(--rot); text-decoration: none; }
.telefon-gross:hover { text-decoration: underline; }

.hours { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours th, .hours td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr[data-today="true"] { background: var(--gelb); font-weight: 800; }
.hours .closed { color: var(--text-grau); }

.kontakt-foto { width: 100%; border: 1px solid var(--linie); margin-bottom: 12px; }

/* ==========================================================================
   8. Fußzeile + Leiste unten am Handy
   ========================================================================== */
.footer { background: var(--text); color: #ddd6cc; padding: 36px 0; font-size: .92rem; }
.footer a { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.demo-note {
  margin: 24px 0 0; padding: 14px 16px;
  border: 1px dashed #6b6259; font-size: .88rem;
}
.demo-note b { color: #fff; }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 0;
  background: #fff; border-top: 2px solid var(--text);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 820px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 64px; }
}
.mobile-bar .btn { flex: 1; border-width: 0; padding: 16px 10px; }
.mobile-bar .btn-weiss { border-right: 1px solid var(--linie); }

/* ==========================================================================
   9. Warenkorb
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(28, 26, 24, .5);
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.overlay.open { opacity: 1; visibility: visible; }

.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: #fff; border-left: 3px solid var(--rot);
  transform: translateX(100%); transition: transform .2s ease;
}
.cart.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 2px solid var(--text);
}
.cart-head h2 { margin: 0; font-size: 1.25rem; flex: 1; }
.icon-btn {
  width: 36px; height: 36px; flex: none; cursor: pointer;
  background: #fff; border: 2px solid var(--linie); color: var(--text);
  font-size: 1.1rem; line-height: 1;
}
.icon-btn:hover { border-color: var(--rot); color: var(--rot); }

.cart-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.cart-empty { text-align: center; color: var(--text-grau); padding: 40px 10px; }

.line { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--linie); }
.line-main { flex: 1; min-width: 0; }
.line-name { font-weight: 700; margin: 0; }
.line-opts { margin: 2px 0 0; font-size: .85rem; color: var(--text-grau); }
.line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; border: 1px solid var(--linie); }
.qty button {
  width: 30px; height: 30px; border: 0; background: #fff; cursor: pointer;
  font-size: 1.05rem; font-weight: 800; color: var(--rot); line-height: 1;
}
.qty button:hover { background: var(--gelb); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; align-self: center; font-variant-numeric: tabular-nums; }

.totals { margin-top: 16px; display: grid; gap: 6px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .sum {
  font-size: 1.2rem; font-weight: 800;
  padding-top: 10px; margin-top: 4px; border-top: 2px solid var(--text);
}

.hint { margin-top: 12px; padding: 10px 12px; background: var(--gelb); font-size: .88rem; font-weight: 600; }
.hint-grau { background: var(--papier-2); color: var(--text-grau); font-weight: 500; }

.form { margin-top: 24px; display: grid; gap: 13px; }
.form h3 { margin: 0; padding-bottom: 6px; border-bottom: 2px solid var(--text); }
.field { display: grid; gap: 4px; }
.field label { font-size: .85rem; font-weight: 700; }
.field input, .field textarea {
  font: inherit; padding: 10px 12px; width: 100%;
  border: 1px solid var(--text-grau); background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus { border-color: var(--rot); }
.field textarea { resize: vertical; min-height: 62px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.segmented label {
  text-align: center; padding: 11px 8px; cursor: pointer; font-weight: 700; font-size: .95rem;
  border: 2px solid var(--linie); background: #fff;
}
.segmented label:first-child { border-right: 0; }
.segmented label:has(input:checked) { border-color: var(--rot); background: var(--gelb); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--rot); outline-offset: 2px; }
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; }

.cart-foot {
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--text); display: grid; gap: 9px;
}
.cart-foot .small { font-size: .8rem; color: var(--text-grau); text-align: center; margin: 0; }
.send-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 120; padding: 12px 20px;
  background: var(--text); color: #fff; font-weight: 700; font-size: .92rem;
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.toast.show { opacity: 1; visibility: visible; }
@media (max-width: 820px) { .toast { bottom: 80px; } }
