/* ============================================================
   HOANG HA – Apple-inspiriertes Design
   ============================================================ */

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lato-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700.woff2') format('woff2');
}

:root {
  --accent:       #C62828;
  --accent-dark:  #A31F1F;
  --bg:           #FFFFFF;
  --bg-alt:       #F5F5F7;
  --text:         #1d1d1f;
  --text-muted:   #6e6e73;
  --text-light:   #a1a1a6;
  --white:        #FFFFFF;
  --border:       #d2d2d7;
  --radius-sm:    8px;
  --radius:       18px;
  --radius-lg:    24px;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.12);
  --nav-h:        52px;
  --ticker-h:     34px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, 'Lato', BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1000;
}

#navbar.scrolled {
  border-bottom-color: rgba(0,0,0,0.12);
}

#navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
}

.nav-links a {
  color: var(--text);
  font-size: .82rem;
  font-weight: 400;
  padding: 6px 12px;
  opacity: 0.8;
  transition: opacity .15s;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.8;
}

/* ── Ticker ─────────────────────────────────────────────── */
#ticker {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  height: var(--ticker-h);
  background: var(--accent);
  overflow: hidden;
  z-index: 998;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 50s linear infinite;
}

.ticker-item {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  letter-spacing: .06em;
  text-transform: uppercase;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Hero ───────────────────────────────────────────────── */
#hero {
  margin-top: calc(var(--nav-h) + var(--ticker-h));
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.38) 60%, rgba(0,0,0,0.62) 100%),
    url('../images/hero-food.jpeg') center/cover no-repeat;
  padding: 120px 24px 110px;
  text-align: center;
}

.hero-content { position: relative; }

#hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,.8);
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}

.hero-tagline {
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,.55);
  letter-spacing: .01em;
  margin-bottom: 20px;
}

.hero-phone {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-phone a {
  color: var(--white);
  letter-spacing: .01em;
  transition: opacity .15s;
}

.hero-phone a:hover { opacity: .75; text-decoration: none; }

.hero-phone-sep {
  color: rgba(255,255,255,.35);
  font-weight: 300;
}

.hero-hours {
  margin-bottom: 44px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.hero-hours-row {
  font-size: clamp(.78rem, 1.6vw, .88rem);
  color: rgba(255,255,255,.9);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-hours-days {
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: -.01em;
  border-radius: 980px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.btn:hover { transform: scale(1.02); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover { background: rgba(255,255,255,0.26); }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 96px 0; }

.bg-light { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
  opacity: 0.35;
}

.section-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 48px;
  font-size: .94rem;
}

/* ── Validity Notice ────────────────────────────────────── */
.validity-notice {
  text-align: center;
  font-size: .84rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  margin-bottom: 36px;
}

/* ── Menu Tabs ──────────────────────────────────────────── */
.menu-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

@media (max-width: 680px) {
  .menu-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .menu-tabs::-webkit-scrollbar { display: none; }
}

.tab-btn {
  padding: 8px 18px;
  border: none;
  background: var(--bg-alt);
  border-radius: 980px;
  font-size: .84rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

.tab-btn:hover { background: #e8e8ed; }

.tab-btn.active {
  background: var(--accent);
  color: var(--white);
}

/* ── Tab Panels ─────────────────────────────────────────── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.category-note {
  font-size: .84rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.all-category-group {
  margin-bottom: 40px;
}
.all-category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  padding: 10px 0 8px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 4px;
}

/* ── Menu Items ─────────────────────────────────────────── */
.items-header {
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  gap: 8px;
  padding: 8px 16px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}

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

.item-left {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.item-nr {
  font-size: .76rem;
  font-weight: 400;
  color: var(--text-light);
  min-width: 28px;
  padding-top: 3px;
}

.item-body { display: flex; flex-direction: column; gap: 3px; }

.item-name {
  font-weight: 600;
  font-size: .97rem;
  color: var(--text);
  letter-spacing: -.01em;
}

.item-desc {
  font-size: .84rem;
  color: var(--text-muted);
}

.item-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; align-items: center; }

.badge {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 980px;
}

.badge-hot    { background: #FEE2E2; color: #991B1B; }
.badge-mild   { background: #FEF3C7; color: #92400E; }
.badge-veg    { background: #DCFCE7; color: #166534; }

.allergen-code {
  font-size: .7rem;
  color: var(--text-muted);
  padding: 2px 6px;
  background: var(--bg-alt);
  border-radius: 4px;
}

.item-prices {
  display: grid;
  grid-template-columns: 90px 90px;
  gap: 0;
  text-align: right;
}

.price {
  font-weight: 600;
  font-size: .92rem;
  color: var(--accent);
  padding: 2px 16px 2px 0;
  letter-spacing: -.01em;
}

.price-na { color: var(--text-light); font-weight: 400; }

/* ── Mittagskarte ───────────────────────────────────────── */
.lunch-badge {
  font-size: .84rem;
  color: var(--text-muted);
  padding: 0;
  margin: 0 auto 32px;
  display: block;
  width: fit-content;
  text-align: center;
}

/* ── Info Section ───────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .info-grid { grid-template-columns: 1fr; }
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.bg-light .info-card {
  background: var(--white);
}

.info-card h3 {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  opacity: 0.9;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.hours-row:last-of-type { border-bottom: none; }

.hours-days { font-weight: 600; font-size: .92rem; letter-spacing: -.01em; min-width: 150px; }

.hours-times { text-align: right; font-size: .88rem; color: var(--text-muted); }
.hours-times span { display: block; }

.deadline {
  font-size: .84rem;
  color: var(--text-muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.delivery-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-bottom: 12px;
}

.delivery-table th {
  text-align: left;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--border);
}

.delivery-table td {
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}

.delivery-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.delivery-note {
  font-size: .84rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.delivery-bonus {
  font-size: .84rem;
  color: var(--text-muted);
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

/* ── Waiting Time Notice ────────────────────────────────── */
.waitingtime-notice {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.waitingtime-notice strong { color: var(--text); font-weight: 600; }

/* ── Map ────────────────────────────────────────────────── */
#standort { padding: 96px 0 0; }

#standort .container { margin-bottom: 28px; }

#map-container {
  width: 100%;
  overflow: hidden;
}

#map-frame {
  display: block;
  width: 100%;
  height: 440px;
  border: none;
}

#map-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-alt);
  flex-wrap: wrap;
  gap: 8px;
}

.btn-maps {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 400;
  font-size: .84rem;
  padding: 9px 22px;
  border-radius: 980px;
  transition: background .2s;
}

.btn-maps:hover { background: var(--accent-dark); text-decoration: none; }

.map-osm-note { font-size: .76rem; color: var(--text-light); }
.map-osm-note a { color: var(--text-light); }

/* ── Contact ────────────────────────────────────────────── */
.contact-grid {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-block {
  text-align: center;
  min-width: 140px;
}

.contact-block h4 {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-block p { font-size: 1rem; line-height: 1.8; }
.contact-block a { color: var(--accent); font-weight: 400; }
.contact-block a:hover { text-decoration: underline; }
.fax { color: var(--text-muted); font-size: .9rem; }

/* ── Allergens ──────────────────────────────────────────── */
.allergen-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 0;
}

.allergen-section details { padding: 0; }

.allergen-section summary {
  padding: 16px 24px;
  cursor: pointer;
  font-size: .84rem;
  color: var(--text-muted);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1080px;
  margin: 0 auto;
  transition: color .15s;
}

.allergen-section summary:hover { color: var(--text); }

.allergen-section summary::-webkit-details-marker { display: none; }

.allergen-section summary::before {
  content: '›';
  font-size: 1.1rem;
  transition: transform .2s;
  display: inline-block;
  line-height: 1;
}

.allergen-section details[open] summary::before { transform: rotate(90deg); }

.allergen-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 16px 24px 28px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 520px) { .allergen-cols { grid-template-columns: 1fr; } }

.allergen-cols strong {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.allergen-cols p {
  font-size: .8rem;
  color: var(--text-muted);
  padding: 2px 0;
}

.allergen-cols sup { color: var(--accent); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 44px 24px;
  text-align: center;
}

footer .container { display: flex; flex-direction: column; align-items: center; gap: 10px; }

#footer-name {
  color: var(--accent);
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: -.01em;
}

#footer-address { font-size: .86rem; }

.footer-links {
  display: flex;
  gap: 24px;
  margin-top: 6px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: .82rem;
  transition: color .15s;
}

.footer-links a:hover { color: var(--text); text-decoration: none; }

.footer-copy { font-size: .78rem; color: var(--text-light); margin-top: 6px; }

/* ── Subpages (Impressum / Datenschutz) ─────────────────── */
.subpage-header {
  background: var(--bg-alt);
  padding: 56px 24px 48px;
  margin-top: calc(var(--nav-h) + var(--ticker-h));
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.subpage-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
}

.subpage-content {
  max-width: 780px;
  margin: 52px auto;
  padding: 0 24px 80px;
}

.subpage-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.subpage-content h3 {
  font-size: .97rem;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 6px;
}

.subpage-content p { margin-bottom: 12px; line-height: 1.75; font-size: .95rem; color: var(--text-muted); }
.subpage-content ul { margin: 8px 0 12px 20px; }
.subpage-content li { margin-bottom: 4px; font-size: .95rem; line-height: 1.7; color: var(--text-muted); }
.subpage-content a { color: var(--accent); }

/* ── Scroll-to-top Button ───────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(220,220,220,0.85);
  color: var(--accent);
  border: 1px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .2s;
  z-index: 999;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scroll-top:hover { background: rgba(200,200,200,0.95); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 8px 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; font-size: .9rem; }

  .items-header,
  .item-prices { grid-template-columns: 1fr 80px 80px; }

  .price { font-size: .88rem; }

  section { padding: 72px 0; }
}

@media (max-width: 480px) {
  #hero { padding: 80px 16px 72px; }

  .items-header { display: none; }

  .menu-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .item-prices {
    display: flex;
    gap: 16px;
    padding-left: 42px;
  }

  .item-prices .price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: .88rem;
  }

  .item-prices .price::before {
    content: attr(data-label);
    font-size: .68rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1px;
  }
}

@media (max-width: 680px) {
  .menu-tabs::after {
    content: '';
    position: sticky;
    right: 0;
    min-width: 32px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
  }
}
