/* ==========================================================================
   Mr. Bistro — Main Stylesheet
   Mobile-first responsive design
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. @font-face — Inter Variable Font
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. CSS Reset
   -------------------------------------------------------------------------- */

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   3. CSS Custom Properties
   -------------------------------------------------------------------------- */

:root {
  --color-primary: #0099FF;
  --color-primary-dark: #0077CC;
  --color-accent: #D4A017;
  --color-accent-light: #FFD700;
  --color-bg: #FDF6EE;
  --color-bg-card: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-light: #555555;
}

/* --------------------------------------------------------------------------
   4. Base Styles
   -------------------------------------------------------------------------- */

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  display: block;
}

/* --------------------------------------------------------------------------
   5. Container
   -------------------------------------------------------------------------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

/* Hero variant — bold buttons on blue background */
.hero .btn-primary {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary:hover {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: #1a1a1a;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.hero .btn-secondary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn-secondary:hover {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: #1a1a1a;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg-card);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-phone:hover {
  color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   8. Navigation — Mobile First
   -------------------------------------------------------------------------- */

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-bg-card);
  z-index: 999;
  transition: right 0.3s ease;
  padding-top: 5rem;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.main-nav.is-open {
  right: 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 1.5rem;
}

.nav-link {
  display: block;
  padding: 0.875rem 0;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   9. Nav Toggle Button
   -------------------------------------------------------------------------- */

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.nav-toggle:hover {
  color: var(--color-primary);
}

.icon-close {
  display: none;
}

.icon-open {
  display: block;
}

body.nav-open .icon-close {
  display: block;
}

body.nav-open .icon-open {
  display: none;
}

/* --------------------------------------------------------------------------
   10. Body Overlay (mobile nav backdrop)
   -------------------------------------------------------------------------- */

body.nav-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

/* --------------------------------------------------------------------------
   11. Hero Section
   -------------------------------------------------------------------------- */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 10c-2 0-3 1-3 3v6c0 1-1 2-2 2s-2-1-2-2c0-2-1-3-3-3s-3 1-3 3c0 3 2 6 5 7v2c0 2 1 3 3 3s3-1 3-3v-2c3-1 5-4 5-7 0-2-1-3-3-3z' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='15' cy='55' r='6' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1.5'/%3E%3Ccircle cx='15' cy='55' r='2' fill='rgba(255,255,255,0.03)'/%3E%3Cpath d='M60 45c0-1 1-2 2-2h8c1 0 2 1 2 2v3c0 1-1 2-2 2h-2v5c0 1 0 2-1 2h-2c-1 0-1-1-1-2v-5h-2c-1 0-2-1-2-2z' fill='rgba(255,255,255,0.04)'/%3E%3Cpath d='M55 70l3-6h-6z' fill='rgba(255,255,255,0.035)'/%3E%3Ccircle cx='70' cy='72' r='4' fill='none' stroke='rgba(255,255,255,0.035)' stroke-width='1.2'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 50%, rgba(0, 170, 255, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 100, 200, 0.5) 0%, transparent 70%),
    linear-gradient(135deg, #0088ee 0%, #0066bb 50%, #004499 100%);
  padding: 3rem 1.5rem;
}

.hero-content {
  max-width: 700px;
  width: 100%;
  position: relative;
}

/* Hero Intro Animation */
.hero-intro {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.intro-line {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-line-1 {
  font-size: 1.8rem;
  font-weight: 500;
}

.intro-line-2 {
  font-size: 2.6rem;
}

.intro-line-2.shake {
  animation: belly-shake 0.6s ease;
}

.intro-line-3 {
  font-size: 3rem;
}

@keyframes belly-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px) rotate(-2deg); }
  30% { transform: translateX(8px) rotate(2deg); }
  45% { transform: translateX(-6px) rotate(-1deg); }
  60% { transform: translateX(6px) rotate(1deg); }
  75% { transform: translateX(-3px); }
}

.hero-intro.done {
  display: none;
}

/* Hero Reveal */
.hero-reveal {
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.hero-reveal.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Skip button */
.hero-skip {
  position: absolute;
  bottom: -2rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
  padding: 0.5rem;
}

.hero-skip:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-skip.hidden {
  display: none;
}

@media (min-width: 768px) {
  .hero-intro { gap: 3rem; }
  .intro-line-1 { font-size: 2.2rem; }
  .intro-line-2 { font-size: 3.2rem; }
  .intro-line-3 { font-size: 3.8rem; }
}

@media (min-width: 1024px) {
  .intro-line-1 { font-size: 3.2rem; }
  .intro-line-2 { font-size: 4.8rem; }
  .intro-line-3 { font-size: 5.5rem; }
}

.hero-logo {
  max-width: 90vw;
  width: 640px;
  height: auto;
  margin: 0 auto 1.5rem;
  animation: hero-float 2.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-tagline {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   12. Section Base
   -------------------------------------------------------------------------- */

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   13. Highlights Grid
   -------------------------------------------------------------------------- */

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.highlight-card {
  background-color: var(--color-bg-card);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.highlight-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  color: var(--color-text);
}

.highlight-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.highlight-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.highlight-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   14. Offer Section
   -------------------------------------------------------------------------- */

.offer-section {
  background-color: var(--color-bg-card);
}

.offer-box {
  border: 3px solid var(--color-accent);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(212, 160, 23, 0.04),
    rgba(255, 215, 0, 0.08)
  );
}

.offer-title {
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.offer-text {
  font-size: 1.1rem;
  margin: 1rem 0;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   15. Info Strip
   -------------------------------------------------------------------------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.info-item img {
  margin: 0 auto 0.5rem;
}

.info-item h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.info-item p {
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   16. CTA Section
   -------------------------------------------------------------------------- */

.cta-section {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  text-align: center;
  padding: 4rem 0;
}

.cta-section .section-title {
  color: #ffffff;
}

.cta-phone {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent-light);
  text-decoration: none;
  margin: 1rem 0;
  transition: opacity 0.2s ease;
}

.cta-phone:hover {
  color: var(--color-accent-light);
  opacity: 0.85;
}

.cta-sub {
  opacity: 0.8;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   17. Menu Page — Page Title
   -------------------------------------------------------------------------- */

main {
  padding-bottom: 4rem;
}

.page-title {
  font-size: 2.5rem;
  margin: 2rem 0;
  text-align: center;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   18. Menu Category Navigation
   -------------------------------------------------------------------------- */

.menu-category-nav {
  position: sticky;
  top: 70px;
  z-index: 100;
  background-color: var(--color-bg-card);
  border-bottom: 1px solid #eeeeee;
  padding: 0.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.menu-category-nav::-webkit-scrollbar {
  display: none;
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0 0.5rem;
}

.category-tab {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-text-light);
  background-color: #f0f0f0;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.category-tab.active {
  background-color: var(--color-primary);
  color: #ffffff;
}

.category-tab:hover:not(.active) {
  background-color: #e0e0e0;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   19. Menu Category
   -------------------------------------------------------------------------- */

.menu-category {
  margin-bottom: 3.5rem;
  scroll-margin-top: 140px;
}

.category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-title::before,
.category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to var(--_dir, right),
    transparent,
    var(--color-accent)
  );
}

.category-title::before {
  --_dir: right;
}

.category-title::after {
  --_dir: left;
}

.category-note {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  text-align: center;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   20. Menu Items
   -------------------------------------------------------------------------- */

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   21. Menu Item — Compact Row
   -------------------------------------------------------------------------- */

.menu-item {
  background-color: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
  border-left: 3px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.menu-item[data-has-detail="1"] {
  cursor: pointer;
}

.menu-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
  border-left-color: var(--color-accent);
}

.menu-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  min-height: 3.5rem;
}

/* --------------------------------------------------------------------------
   22. Menu Item — Thumbnail (left)
   -------------------------------------------------------------------------- */

.menu-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.menu-item-thumb .menu-item-nr {
  position: absolute;
  bottom: 3px;
  left: 3px;
  min-width: 1.4rem;
  height: 1.4rem;
  font-size: 0.6rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.menu-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.menu-item:hover .menu-item-thumb img {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   23. Menu Item — Row elements
   -------------------------------------------------------------------------- */

.menu-item-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.menu-item-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  flex: 1;
  min-width: 0;
}

.menu-item-short-desc {
  display: none;
  font-size: 0.82rem;
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

@media (min-width: 768px) {
  .menu-item-short-desc {
    display: block;
  }
}

.menu-item-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   24. Bottom Sheet — Detail Overlay
   -------------------------------------------------------------------------- */

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 500;
  pointer-events: none;
  transition: background 0.35s ease;
}

.bottom-sheet-overlay.is-active {
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 501;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow: visible;
}

.bottom-sheet.is-active {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: #d1d5db;
  border-radius: 2px;
  margin: 12px auto 0;
}

.bottom-sheet-close {
  position: absolute;
  top: -14px;
  right: -8px;
  background: #ef4444;
  border: 3px solid #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bottom-sheet-close:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.bottom-sheet-content {
  padding: 1rem 1.5rem 2rem;
  max-height: calc(85vh - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Bottom Sheet — Image */
.bs-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.bs-image img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

/* Bottom Sheet — Header */
.bs-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bs-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bs-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
}

.bs-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

/* Bottom Sheet — Description */
.bs-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Bottom Sheet — Allergens */
.bs-allergens-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.bs-allergens-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bs-allergen-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 24px;
}

.bs-allergen-item .allergen-badge {
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
}

.bs-allergen-name {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

@media (min-width: 768px) {
  .bottom-sheet {
    max-width: 520px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-radius: 20px 20px 0 0;
  }
  .bottom-sheet.is-active {
    transform: translateX(-50%) translateY(0);
  }
}

/* --------------------------------------------------------------------------
   25. Allergens (badge style — used in detail + legend)
   -------------------------------------------------------------------------- */

.allergen-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: none;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   26. Allergen Legend
   -------------------------------------------------------------------------- */

.allergen-legend {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: none;
  text-align: center;
}

.allergen-legend-toggle {
  background: none;
  border: 1.5px solid var(--color-accent);
  padding: 0.7rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.allergen-legend-toggle:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.25);
}

.allergen-legend-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.allergen-legend-content.is-open {
  max-height: 500px;
}

.allergen-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.625rem;
  padding: 1.5rem 0;
  text-align: left;
}

.allergen-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.allergen-entry dt {
  margin: 0;
}

.allergen-entry dd {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   27. Anfahrt (Directions)
   -------------------------------------------------------------------------- */

.anfahrt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.anfahrt-map {
  border-radius: 12px;
  overflow: hidden;
}

.anfahrt-map a {
  position: relative;
  display: block;
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.anfahrt-map:hover .map-overlay {
  opacity: 1;
}

.anfahrt-card {
  background-color: var(--color-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  margin-bottom: 1rem;
}

.anfahrt-card:last-child {
  margin-bottom: 0;
}

.anfahrt-card h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   28. Kontakt (Contact)
   -------------------------------------------------------------------------- */

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.kontakt-card {
  background-color: var(--color-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  margin-bottom: 1rem;
}

.kontakt-card:last-child {
  margin-bottom: 0;
}

.kontakt-card h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.hotline-box {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  border-radius: 16px;
  padding: 3rem 2rem;
}

.hotline-icon {
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hotline-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent-light);
  text-decoration: none;
  margin: 1rem 0;
  transition: opacity 0.2s ease;
}

.hotline-number:hover {
  color: var(--color-accent-light);
  opacity: 0.85;
}

.hotline-sub {
  font-size: 1.1rem;
  opacity: 0.9;
}

.hotline-hours {
  opacity: 0.8;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   29. Legal Pages
   -------------------------------------------------------------------------- */

.page-legal .legal-content {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.legal-content h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.legal-content p,
.legal-content li {
  line-height: 1.8;
  color: var(--color-text-light);
}

.legal-content ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-content address {
  font-style: normal;
}

.legal-content .cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
}

.legal-content .cookie-table th,
.legal-content .cookie-table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.legal-content .cookie-table th {
  background: #f5f5f5;
  font-weight: 600;
  color: var(--color-text);
}

.legal-content .cookie-table code {
  background: #f0f0f0;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   30. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: #1a1a2e;
  color: #ffffff;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-col h3 {
  color: var(--color-accent-light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col p,
.footer-col address {
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  line-height: 1.8;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-col img {
  vertical-align: middle;
  margin-right: 0.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  display: inline;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 1;
}

.social-links img {
  filter: brightness(0) invert(1);
  display: block;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0 5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Floating Order Button
   -------------------------------------------------------------------------- */

.floating-order {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 400;
  transition: bottom 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: float-pulse 2s ease-in-out infinite;
}

.floating-order:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(212, 160, 23, 0.5), 0 3px 12px rgba(0, 0, 0, 0.2);
}

.floating-order img {
  filter: brightness(0) invert(1);
}

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(212, 160, 23, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15); }
  50% { box-shadow: 0 4px 28px rgba(212, 160, 23, 0.6), 0 2px 12px rgba(0, 0, 0, 0.2); }
}

/* --------------------------------------------------------------------------
   31. Animations
   -------------------------------------------------------------------------- */

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.animated {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   32. Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   RESPONSIVE — Tablet (min-width: 768px)
   ========================================================================== */

@media (min-width: 768px) {

  /* Header */
  .header-phone {
    display: flex;
  }

  /* Navigation */
  .main-nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background-color: transparent;
    padding-top: 0;
    overflow: visible;
    box-shadow: none;
    transition: none;
  }

  .main-nav.is-open {
    right: auto;
  }

  .nav-toggle {
    display: none;
  }

  body.nav-open::after {
    display: none;
  }

  .nav-list {
    flex-direction: row;
    gap: 0.25rem;
    padding: 0;
  }

  .nav-link {
    padding: 0.5rem 0.875rem;
    border-bottom: none;
    border-radius: 6px;
  }

  .nav-link.active {
    border-bottom: 2px solid var(--color-primary);
    border-radius: 0;
    padding-bottom: calc(0.5rem - 2px);
  }

  /* Hero */
  .hero-logo {
    width: 840px;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  /* Highlights grid — 2 columns */
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Info grid — 3 columns */
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Menu item with image — row layout */
  .menu-item--with-image {
    flex-direction: row;
  }

  .menu-item-image {
    width: 220px;
    flex-shrink: 0;
    border-radius: 14px 0 0 14px;
  }

  .menu-item-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    object-fit: cover;
    border-radius: 14px 0 0 14px;
  }
}

/* ==========================================================================
   RESPONSIVE — Desktop (min-width: 1024px)
   ========================================================================== */

@media (min-width: 1024px) {

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero-logo {
    width: 1000px;
  }

  .hero-tagline {
    font-size: 1.75rem;
  }

  /* Highlights grid — 4 columns */
  .highlights-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Anfahrt grid — 2fr 1fr */
  .anfahrt-grid {
    grid-template-columns: 2fr 1fr;
  }

  /* Kontakt grid — 1fr 1fr */
  .kontakt-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer grid — 3 columns */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Nav links — slightly larger tap area */
  .nav-link {
    padding: 0.5rem 1rem;
  }
}
