/* ── Menu pages (speisekarte.php, getraenke.php) ─────────── */

.menu-page { background: var(--dark); min-height: 100vh; }

/* Page hero */
.menu-hero {
  background: var(--dark2);
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.menu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/holz.png');
  background-size: cover;
  opacity: 0.04;
}

.menu-hero-inner { position: relative; z-index: 1; }
.menu-hero .section-subtitle { color: var(--gold); }
.menu-hero .section-title { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); }
.menu-hero p { color: rgba(255,255,255,0.55); font-size: 0.95rem; max-width: 520px; margin: 1rem auto 0; }

/* Order banner */
.order-banner {
  background: var(--burgundy);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.order-banner span { color: rgba(255,255,255,0.9); font-size: 0.88rem; }

.order-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  color: var(--burgundy);
  padding: 0.4rem 1.1rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.order-banner-btn:hover { opacity: 0.9; }

/* Category sticky nav */
.cat-nav-wrapper {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  /* position: sticky is a positioned element → acts as containing block for absolute children */
}

.cat-nav {
  overflow-x: auto;
  scrollbar-width: none;
  overflow-anchor: none;
}

.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1rem;
  white-space: nowrap;
}

/* Scroll arrow buttons */
.cat-nav-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52px;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.25s;
  padding: 0;
  user-select: none;
}
.cat-nav-arrow--left {
  left: 0;
  justify-content: flex-start;
  padding-left: 6px;
  background: linear-gradient(to right, rgba(17,17,17,1) 40%, transparent);
}
.cat-nav-arrow--right {
  right: 0;
  justify-content: flex-end;
  padding-right: 6px;
  background: linear-gradient(to left, rgba(17,17,17,1) 40%, transparent);
}
/* Visible circle-chevron indicator */
.cat-nav-arrow::after {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(201,168,76,0.18);
  border: 1.5px solid rgba(201,168,76,0.55);
  flex-shrink: 0;
}
.cat-nav-arrow--left::after  { content: '‹'; color: var(--gold); font-size: 1.2rem; font-weight: 600; line-height: 1; padding-right: 1px; }
.cat-nav-arrow--right::after { content: '›'; color: var(--gold); font-size: 1.2rem; font-weight: 600; line-height: 1; padding-left: 1px; }
.cat-nav-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.cat-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.cat-nav-link:hover { color: rgba(255,255,255,0.85); }
.cat-nav-link.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Category section */
.menu-section { padding: 3.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.menu-section:last-child { border-bottom: none; }

.menu-section-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.menu-section-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.menu-section-title {
  font-size: 1.6rem;
  color: var(--white);
  font-family: 'Playfair Display', serif;
}

/* Item grid */
.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}

.menu-item {
  background: var(--dark2);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  transition: background 0.2s;
}

.menu-item:hover { background: var(--dark3); }

.menu-item-body { flex: 1; min-width: 0; }

.menu-item-name {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.menu-item-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  font-style: italic;
}

.menu-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 0.2rem;
}

.menu-item-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  font-family: 'Playfair Display', serif;
}

.menu-item-groesse {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  transition: color 0.2s;
  margin-bottom: 2rem;
}

.back-link:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 600px) {
  .menu-items { grid-template-columns: 1fr; }
  .cat-nav-link { padding: 0.8rem 0.7rem; font-size: 0.75rem; }
  .cat-nav-arrow { width: 38px; font-size: 1.3rem; }
}
