/* ============================================
   40ER FASCHT 2026 - Menu Page (essen.html)
   Speise- und Getränkekarten
   ============================================ */

/* ---- SECTION ---- */
.menu-section {
  background-color: var(--festival-bg-soft);
  padding-bottom: 3rem;
}

.menu-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}

/* ---- TABS ---- */
.menu-tabs {
  position: sticky;
  top: 60px;
  z-index: 20;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

@media (width >= 1024px) {
  .menu-tabs {
    top: 70px;
  }
}

/* Horizontal scroll on narrow screens so all three cards stay reachable */
.menu-tabs__inner {
  display: flex;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-tabs__inner::-webkit-scrollbar {
  display: none;
}

@media (width >= 640px) {
  .menu-tabs__inner {
    justify-content: center;
  }
}

.menu-tabs__btn {
  flex: 0 0 auto;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--festival-light);
  border-radius: 999px;
  background-color: var(--surface);
  color: var(--festival-dark-text);
  font-family: Roboto, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-normal);
}

.menu-tabs__btn:hover {
  border-color: var(--festival-teal);
  color: var(--festival-teal-dark);
}

.menu-tabs__btn--active,
.menu-tabs__btn--active:hover {
  background-color: var(--festival-teal);
  border-color: var(--festival-teal);
  color: var(--festival-white);
}

/* ---- PANEL ---- */

/* Deep links (/essen.html#menu-piazza) must clear the fixed header *and* the
   sticky tab bar, otherwise the panel title lands underneath them. */
.menu-panel {
  scroll-margin-top: 140px;
  background-color: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 1.25rem 2rem;
  margin-bottom: 2rem;
}

@media (width >= 768px) {
  .menu-panel {
    padding: 2.5rem 2.5rem 3rem;
  }
}

@media (width >= 1024px) {
  .menu-panel {
    scroll-margin-top: 150px;
  }
}

.menu-panel__header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--festival-light);
}

.menu-panel__title {
  font-family: Rubik, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--festival-teal-dark);
  margin-bottom: 0.25rem;
}

.menu-panel__subtitle {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  color: var(--festival-gray);
  margin-bottom: 1rem;
}

.menu-panel__hours {
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--festival-dark-text);
}

/* Inline rather than a flex child, so the icon can't end up alone on a line */
.menu-panel__hours svg {
  vertical-align: -0.2em;
  margin-right: 0.375rem;
  color: var(--festival-teal);
}

/* ---- VENUE PILLS ---- */
.menu-panel__venues {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.menu-panel__venue {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--festival-teal);
  border-radius: 999px;
  background-color: transparent;
  color: var(--festival-teal-dark);
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.menu-panel__venue:hover {
  background-color: var(--festival-teal);
  color: var(--festival-white);
}

.menu-panel__venue:focus-visible {
  outline: 2px solid var(--festival-teal);
  outline-offset: 2px;
}

.menu-panel__currency {
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  color: var(--festival-gray);
  margin-top: 0.5rem;
}

/* ---- GROUPS ---- */

/* Air between the last menu row and the closing note, so the card doesn't end
   abruptly on the divider. Padding, not margin: on mobile .menu-panel__groups is
   no multicol container, so a margin would collapse with .menu-group's own 2rem
   instead of adding to it. */
.menu-panel__groups {
  padding-bottom: 1.5rem;
}

/* Multi-column on wide screens; groups never split across a column break */
@media (width >= 768px) {
  .menu-panel__groups {
    column-count: 2;
    column-gap: 3rem;
    padding-bottom: 2rem;
  }
}

@media (width >= 1200px) {
  .menu-panel__groups {
    column-count: 3;
    column-gap: 2.5rem;
  }
}

.menu-group {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.menu-group__title {
  font-family: Rubik, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--festival-teal-dark);
  margin-bottom: 0.75rem;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  margin-bottom: 0.5rem;
}

.menu-item__row {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  line-height: 1.4;
}

.menu-item__name {
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  color: var(--festival-dark-text);
}

/* Dotted leader between item and price, as on the printed cards. The span is
   empty, so baseline alignment puts its bottom border on the text baseline. */
.menu-item__leader {
  flex: 1 1 auto;
  min-width: 1rem;
  border-bottom: 1px dotted var(--festival-gray);
  opacity: 0.6;
}

.menu-item__price {
  flex: 0 0 auto;
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--festival-dark-text);
  white-space: nowrap;
}

.menu-item__description {
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--festival-gray);
  margin-top: 0.125rem;
  padding-right: 3rem;
}

/* ---- DIET BADGES ---- */
.menu-item__diet {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.0625rem 0.4375rem;
  border-radius: 999px;
  font-family: Inter, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  white-space: nowrap;
  vertical-align: 0.05em;
}

.menu-item__diet--vegan {
  background-color: #dff3e4;
  color: #2c6b3f;
}

.menu-item__diet--vegetarisch {
  background-color: #e6f4f1;
  color: var(--festival-cyan);
}

/* ---- UNAVAILABLE POSITIONS ---- */

/*
 * A position printed on the card that is not being served. The linked PDFs are
 * the unmodified originals and still list it, so the row stays on the page,
 * struck through, rather than vanishing and leaving page and PDF in silent
 * disagreement. The strikethrough comes from the <s> element; this only dims
 * the row so it reads as secondary to what is actually available.
 */
.menu-item--unavailable .menu-item__name,
.menu-item--unavailable .menu-item__price {
  color: var(--festival-gray);
}

.menu-item__flag {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.0625rem 0.4375rem;
  border-radius: 999px;
  background-color: #f7e9eb;
  color: var(--festival-pink-dark);
  font-family: Inter, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: 0.05em;
}

/* ---- NOTE & CTA ---- */
.menu-panel__note {
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--festival-gray);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--festival-light);
}

.menu-panel__cta {
  text-align: center;
  margin-top: 1.5rem;
}

.menu-panel__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
