/* Grundlage für alle drei Entwürfe: Lesbarkeit, Barrierefreiheit, gemeinsame Bausteine.
   Farben und Schriften setzt jeder Entwurf über die Variablen unten. */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #555555;
  --accent: #a3231c;
  --accent-text: #ffffff;
  --line: #d9d9d9;
  --focus: #0b57d0;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
  --bar-height: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 100;
  background: #000; color: #fff; padding: 0.75rem 1rem; border-radius: 0.25rem;
}
.skip-link:focus { top: 0.5rem; }

.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1rem; }

/* Hinweis, dass dies ein Entwurf ist */
.draft-note {
  margin: 0; padding: 0.4rem 1rem; font-size: 0.8125rem; text-align: center;
  background: #1a1a1a; color: #ffffff; font-family: var(--font-body);
}
.draft-note a { color: #ffffff; }

/* Marke für unbestätigte Angaben */
.check {
  display: inline-block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  font-style: normal; letter-spacing: 0; text-transform: none; white-space: nowrap;
  padding: 0 0.3em; border-radius: 0.2em; vertical-align: middle;
  background: #fff3b0; color: #4a3b00; border: 1px solid #b89b00;
}

.badge {
  display: inline-block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  padding: 0.1em 0.5em; border-radius: 1em; vertical-align: middle;
  background: var(--accent); color: var(--accent-text);
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 3rem; padding: 0.6rem 1.2rem; border-radius: 0.5rem;
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; text-decoration: none;
  background: var(--accent); color: var(--accent-text); border: 2px solid var(--accent);
}
.btn--ghost { background: transparent; color: var(--text); border-color: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Speisekarte: gemeinsamer Aufbau */
.menu-item__head { display: flex; align-items: baseline; gap: 0.5rem; }
.menu-item__name { font-weight: 700; }
.menu-item__dots { flex: 1 1 1rem; min-width: 1rem; border-bottom: 1px dotted currentColor; opacity: 0.45; transform: translateY(-0.25em); }
.menu-item__price { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.menu-item__desc { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.menu-item { padding: 0.6rem 0; }
.menu-group { scroll-margin-top: 4.5rem; }
.menu-group__note, .menu-allergen-note { color: var(--muted); font-size: 0.9375rem; }

/* Öffnungszeiten */
.hours th, .hours td { padding: 0.45rem 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-today th, .hours .is-today td { font-weight: 700; }
.hours__check, .house__check { font-size: 0.875rem; color: var(--muted); margin-top: 0.75rem; }

/* Leiste unten am Handy: Anrufen, Speisekarte, Anfahrt */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(3, 1fr);
  min-height: var(--bar-height); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--accent); color: var(--accent-text);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  min-height: var(--bar-height); padding: 0.4rem 0.25rem;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; text-decoration: none; color: inherit;
}
.action-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.3); }
.action-bar svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action-bar a:focus-visible { outline-color: #ffffff; outline-offset: -5px; }

@media (min-width: 60rem) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Platzhalter für Fotos, die noch fehlen */
.photo-slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 12rem; padding: 1rem; border: 2px dashed var(--line); border-radius: 0.5rem;
  color: var(--muted); font-family: var(--font-body); font-size: 0.9375rem;
}

.site-footer { padding: 2rem 0; font-size: 0.9375rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { display: inline-block; padding: 0.4rem 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Nichts darf am Handy seitlich über den Rand ragen */
.menu, .two-col, .hero__grid, .house { grid-template-columns: minmax(0, 1fr); }
.menu-item__name { min-width: 0; overflow-wrap: anywhere; }
.hours td { white-space: nowrap; }
.hours__today-mark { white-space: nowrap; }

/* Speisekarte zum Blättern: Leiste oben, Suche, eine Seite je Bereich, Weiter und Zurück */
.menu-nav { position: sticky; top: var(--nav-top, 0px); z-index: 30; background: var(--bg); }
.menu-nav__list { position: relative; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0.15rem 0 0.25rem; }
.menu-nav__list::-webkit-scrollbar { display: none; }
.menu-nav__link { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; white-space: nowrap; text-decoration: none; }
.menu-nav__count { font-size: 0.75rem; font-weight: 400; opacity: 0.75; font-variant-numeric: tabular-nums; }
.menu-nav__link[aria-current="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.menu-nav__link:focus-visible { outline-offset: -3px; }

.menu-search { margin: 0 0 1rem; }
.menu-search__input {
  width: 100%; min-height: 3rem; padding: 0.6rem 1rem; border-radius: 0.5rem;
  font: inherit; font-size: 1.0625rem; color: var(--text); background: transparent;
  border: 2px solid var(--line);
}
.menu-search__input::placeholder { color: var(--muted); opacity: 1; }
.menu-search__status { margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--muted); }

.menu { display: block; overflow-x: clip; max-width: 46rem; margin-inline: auto; }
.menu .menu-group + .menu-group { margin-top: 1.25rem; }
.menu-pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem; margin-top: 1.5rem; }
.menu-pager__link {
  display: flex; flex-direction: column; justify-content: center; min-height: 3.5rem; padding: 0.5rem 0.9rem;
  border: 2px solid currentColor; border-radius: 0.5rem; text-decoration: none;
  font-family: var(--font-body); font-weight: 700; overflow-wrap: anywhere;
}
.menu-pager__link--next { grid-column: 2; text-align: right; background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.menu-pager__link--prev { grid-column: 1; }
.menu-pager__hint { font-size: 0.8125rem; font-weight: 400; }
.menu-pager__pos { grid-column: 1 / -1; margin: 0; text-align: center; font-family: var(--font-body); font-size: 0.875rem; color: var(--muted); }
.menu.is-searching .menu-pager { display: none; }
.menu-search, .menu-allergen-note { max-width: 46rem; margin-inline: auto; }
.menu-allergen-note { margin-top: 1.25rem; }

@keyframes lg-page-next { from { opacity: 0; transform: translateX(2.5rem); } }
@keyframes lg-page-prev { from { opacity: 0; transform: translateX(-2.5rem); } }
.menu-group.is-enter-next { animation: lg-page-next 0.25s ease-out; }
.menu-group.is-enter-prev { animation: lg-page-prev 0.25s ease-out; }

/* Fotos */
.photo { position: relative; margin: 0; overflow: hidden; }
.photo__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo__sample {
  position: absolute; left: 0.5rem; bottom: 0.5rem; padding: 0.1rem 0.45rem; border-radius: 0.25rem;
  font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.72); color: #ffffff;
}
.photo__caption { font-family: var(--font-body); font-size: 0.875rem; padding: 0.4rem 0; }
.menu-group__photo { aspect-ratio: 16 / 9; margin: 0 0 1rem; border-radius: 0.5rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.gallery .photo__img { aspect-ratio: 4 / 5; height: auto; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.tiles__link { display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none; }
.tiles__img, .tiles__blank { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.5rem; background: var(--line); }
.tiles__title { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; margin-top: 0.35rem; }
.tiles__count { font-size: 0.8125rem; color: var(--muted); }
.credits { font-size: 0.8125rem; margin-top: 1rem; }
.credits__title { cursor: pointer; padding: 0.4rem 0; }
.credits__list { list-style: disc; padding-left: 1.2rem; }
.motion-toggle {
  font: inherit; font-size: 0.8125rem; min-height: 2.75rem; padding: 0.4rem 0.9rem; cursor: pointer;
  background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 2rem;
}
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; }
@media (min-width: 46rem) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
