/* ============================================================
   Menu pages — Frühstück & Karte
   ============================================================ */

.menu-hero {
  padding-block: var(--space-2xl) var(--space-xl);
  background: var(--color-bg);
}
.menu-hero__inner {
  display: grid;
  gap: var(--space-md);
  max-width: 56rem;
}
.menu-hero h1 {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.05;
}
.menu-hero .lead { margin-top: var(--space-md); }

.menu-toc {
  position: sticky;
  /* Stick flush below the sticky header (height exposed as --header-h by
     site-chrome.js). 6.5rem fallback ≈ the header's default height. */
  top: var(--header-h, 6.5rem);
  z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-block: 1px solid var(--color-line);
}
.menu-toc__inner {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: var(--space-sm);
}
.menu-toc__inner::-webkit-scrollbar { display: none; }
/* The pill bar scrolls horizontally with a hidden scrollbar. On narrow
   screens it overflows — fade the right edge as a "there's more, swipe"
   affordance. */
@media (max-width: 700px) {
  .menu-toc__inner {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.25rem), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 2.25rem), transparent);
  }
}
.menu-toc__link {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background-color var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft);
}
.menu-toc__link.is-active,
.menu-toc__link:hover {
  background: var(--color-espresso);
  color: var(--color-creme);
}

.menu-sections {
  display: grid;
  gap: var(--space-2xl);
  padding-block: var(--space-xl) var(--space-3xl);
}
/* Anchor target offset: land headings below the sticky header + TOC, not
   hidden behind them. --header-h is the live header height; +5.5rem covers
   the sticky TOC bar plus a little breathing room. */
.menu-section { scroll-margin-top: calc(var(--header-h, 6.5rem) + 5.5rem); }
.menu-section .section-head { margin-bottom: var(--space-lg); }
.menu-section .section-head h2 {
  font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem);
}
.menu-section + .menu-section {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-line);
}
