/* ================================================================
   LA TRATTORIA – Speisekarte Page Styles
   ================================================================
   Nutzt --lt-* Variablen aus custom.css.
   Alle Klassen mit lt- Prefix.
   ================================================================ */

/* ─── FIX: overflow-x:hidden bricht position:sticky ─── */
/* clip verhindert horizontales Scrollen genauso wie hidden,
   erstellt aber keinen neuen Scroll-Kontext → sticky funktioniert.
   Diese Datei wird NUR auf der Speisekarte-Seite geladen. */
html, body {
  overflow-x: clip !important;
}

/* ─── STICKY NAV VARIABLES (Fallback, wird per JS überschrieben) ─── */
:root {
  --lt-nav-height: 68px;
  --lt-controls-height: 46px;
}

/* Admin-Bar Korrektur: wenn eingeloggt, Nav ist 32px weiter unten */
.admin-bar {
  --lt-nav-height: 68px;
}

/* ─── PAGE HERO ─── */
.lt-page-hero {
  padding: calc(68px + 4rem) 3rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lt-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201,169,110,0.06), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(139,47,47,0.05), transparent 50%),
    var(--lt-bg);
}

.lt-page-hero-content {
  position: relative;
  z-index: 1;
}

.lt-eyebrow {
  font-family: var(--lt-font-body);
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--lt-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.lt-eyebrow::before,
.lt-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--lt-gold-dim);
}

.lt-page-hero h1 {
  font-family: var(--lt-font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--lt-cream);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.lt-page-hero h1 em {
  font-style: italic;
  color: var(--lt-gold);
}

.lt-page-hero .lt-subtitle {
  color: var(--lt-cream-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  font-style: italic;
  font-family: var(--lt-font-display);
}

/* ─── CONTROLS BAR ─── */
.lt-controls-bar {
  position: sticky;
  top: var(--lt-nav-height, 68px);
  z-index: 50;
  background: var(--lt-bg, #0C0A08);
  border-bottom: 1px solid var(--lt-line);
  padding: 0.7rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lt-lang-switch {
  display: flex;
  gap: 0;
}

.lt-lang-btn {
  padding: 0.45rem 0.9rem;
  background: none;
  border: 1px solid var(--lt-line);
  color: var(--lt-text-muted);
  font-family: var(--lt-font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--lt-ease-expo);
}

.lt-lang-btn + .lt-lang-btn {
  border-left: none;
}

.lt-lang-btn.lt-active {
  background: var(--lt-gold);
  border-color: var(--lt-gold);
  color: var(--lt-bg);
  font-weight: 500;
}

.lt-lang-btn:hover:not(.lt-active) {
  border-color: var(--lt-gold-dim);
  color: var(--lt-gold);
}

.lt-filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.lt-filter-pill {
  padding: 0.4rem 0.85rem;
  background: none;
  border: 1px solid var(--lt-line);
  color: var(--lt-text-muted);
  font-family: var(--lt-font-body);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s var(--lt-ease-expo);
  white-space: nowrap;
}

.lt-filter-pill:hover,
.lt-filter-pill.lt-active {
  border-color: var(--lt-gold-dim);
  color: var(--lt-gold);
}

.lt-filter-pill.lt-active {
  background: rgba(201,169,110,0.08);
}

/* ─── CATEGORY NAVIGATION ─── */
.lt-cat-nav {
  position: sticky;
  top: calc(var(--lt-nav-height, 68px) + var(--lt-controls-height, 46px));
  z-index: 49;
  background: var(--lt-bg-warm, #1A1510);
  border-bottom: 1px solid var(--lt-line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.lt-cat-nav-inner {
  display: flex;
  gap: 0;
  min-width: max-content;
  padding: 0 3rem;
}

.lt-cat-link {
  padding: 0.85rem 1.3rem;
  color: var(--lt-text-muted);
  text-decoration: none;
  font-family: var(--lt-font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
}

.lt-cat-link:hover {
  color: var(--lt-cream);
}

.lt-cat-link.lt-active {
  color: var(--lt-gold);
  border-bottom-color: var(--lt-gold);
}

.lt-cat-link.lt-filter-hidden {
  display: none;
}

/* ─── MENU BODY ─── */
.lt-menu-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 3rem 2rem;
}

.lt-menu-section {
  padding-top: 3rem;
  margin-bottom: 1rem;
}

.lt-menu-section.lt-filter-hidden {
  display: none;
}

.lt-cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.lt-cat-icon {
  font-size: 1.8rem;
}

.lt-cat-title {
  font-family: var(--lt-font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--lt-cream);
}

.lt-cat-title em {
  font-style: italic;
  color: var(--lt-gold);
}

.lt-cat-sub {
  font-size: 0.85rem;
  color: var(--lt-text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.6;
  font-style: italic;
}

.lt-cat-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--lt-gold), transparent);
  margin-bottom: 2rem;
}

/* ─── DISH ─── */
.lt-dish {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(201,169,110,0.07);
  transition: background 0.3s;
}

.lt-dish:hover {
  background: rgba(201,169,110,0.02);
}

.lt-dish.lt-filter-hidden {
  display: none;
}

.lt-dish-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.25rem;
}

.lt-dish-name {
  font-family: var(--lt-font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--lt-cream);
}

.lt-dish-dots {
  flex: 1;
  min-width: 20px;
  border-bottom: 1px dotted rgba(201,169,110,0.2);
  height: 0;
  position: relative;
  top: -0.3rem;
}

.lt-dish-price {
  font-family: var(--lt-font-display);
  font-size: 1.1rem;
  color: var(--lt-gold);
  white-space: nowrap;
  font-weight: 400;
}

.lt-dish-desc {
  font-size: 0.9rem;
  color: var(--lt-text-muted);
  line-height: 1.7;
}

.lt-dish-extras {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--lt-text-muted);
  font-style: italic;
}

/* ─── TAGS ─── */
.lt-tag {
  display: inline-block;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  font-weight: 500;
  vertical-align: middle;
  line-height: 1.3;
  margin-left: 0.45rem;
  position: relative;
  top: -1px;
}

.lt-tag-v {
  background: rgba(74,124,89,0.15);
  color: #6aad7a;
  border: 1px solid rgba(74,124,89,0.25);
}

.lt-tag-mf {
  background: rgba(70,130,180,0.12);
  color: #7bb8d9;
  border: 1px solid rgba(70,130,180,0.22);
}

.lt-tag-s {
  background: rgba(139,47,47,0.12);
  color: #c66;
  border: 1px solid rgba(139,47,47,0.2);
}

/* ─── CATEGORY NOTE ─── */
.lt-cat-note {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--lt-line);
  background: rgba(201,169,110,0.02);
  font-family: var(--lt-font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--lt-cream-muted);
  line-height: 1.7;
  position: relative;
}

.lt-cat-note::before {
  content: '✦';
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  background: var(--lt-bg);
  padding: 0 0.5rem;
  color: var(--lt-gold-dim);
  font-style: normal;
  font-size: 0.8rem;
}

/* ─── AUßER HAUS DIVIDER ─── */
.lt-ah-divider {
  text-align: center;
  padding: 4rem 0 1rem;
  margin-top: 2rem;
}

.lt-ah-divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lt-gold-dim), transparent);
  margin-bottom: 2.5rem;
}

.lt-ah-divider-title {
  font-family: var(--lt-font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--lt-cream);
  margin-bottom: 0.5rem;
}

.lt-ah-divider-sub {
  color: var(--lt-text-muted);
  font-size: 0.95rem;
  font-style: italic;
  font-family: var(--lt-font-display);
}

/* ─── FOOTER CTA ─── */
.lt-menu-cta {
  text-align: center;
  padding: 4rem 3rem;
  border-top: 1px solid var(--lt-line);
}

.lt-menu-cta p {
  color: var(--lt-cream-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ─── SCROLL REVEAL (Speisekarte-eigene Reveal – überschreibt GSAP) ─── */
body.page-speisekarte .lt-reveal {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: opacity 0.7s var(--lt-ease-expo), transform 0.7s var(--lt-ease-expo) !important;
}

body.page-speisekarte .lt-reveal.lt-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .lt-page-hero {
    padding: calc(56px + 3rem) 1.5rem 3rem;
  }

  .lt-controls-bar {
    padding: 0.7rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .lt-lang-switch {
    justify-content: center;
  }

  .lt-filter-pills {
    justify-content: center;
  }

  .lt-cat-nav {
    top: calc(var(--lt-nav-height, 56px) + var(--lt-controls-height, 46px));
  }

  .lt-cat-nav-inner {
    padding: 0 1rem;
  }

  .lt-cat-link {
    padding: 0.7rem 1rem;
    font-size: 0.63rem;
  }

  .lt-menu-body {
    padding: 0 1.5rem 4rem;
  }

  .lt-menu-cta {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 520px) {
  .lt-dish-dots {
    display: none;
  }

  .lt-dish-top {
    flex-wrap: wrap;
  }

  .lt-menu-cta .lt-btn-primary {
    display: block;
    width: 100%;
    text-align: center;
  }

  .lt-menu-cta .lt-btn-secondary {
    margin-left: 0;
    margin-top: 0.8rem;
    display: block;
    width: 100%;
    text-align: center;
  }
}
