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

:root {
  --blue: #1a6bb5;
  --blue-dark: #134f8a;
  --blue-light: #e8f1fa;
  --blue-mid: #c5daf5;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #dce8f5;
  --white: #fff;
  --bg: #f4f8fd;
  --max-w: 740px;
  --header-h: 74px;
  --nav-h: 42px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  padding: 14px 20px 10px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(26,107,181,0.10);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo-img {
  width: 180px;
  max-width: 50vw;
  height: auto;
  display: block;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
}

.header-address {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 5px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* ── LANG TOGGLE ── */
.lang-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 112px;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 0;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.lang-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(26,107,181,0.3);
}

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

/* ── SECTION NAV ── */
.section-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 12px;
  scrollbar-width: none;
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.section-nav::-webkit-scrollbar { display: none; }

.section-nav a {
  display: inline-block;
  padding: 6px 13px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.18s;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.section-nav a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.section-nav a.active {
  color: var(--white);
  background: var(--blue);
  font-weight: 600;
}

/* ── MAIN ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* ── SECTION ── */
.menu-section {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-h) + var(--nav-h) + 12px);
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(26,107,181,0.07);
}

.section-header {
  background: var(--blue);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
}

.section-note {
  font-size: 0.75rem;
  color: var(--blue);
  font-style: italic;
  padding: 8px 20px 0;
  background: var(--blue-light);
}

.item-list {
  padding: 4px 0;
}

/* ── ITEM ── */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: default;
}

.menu-item:last-child { border-bottom: none; }

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

.item-info { flex: 1; }

.item-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.item-allergens {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.allergen-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  background: var(--blue-mid);
  color: var(--blue-dark);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  cursor: help;
  transition: background 0.15s;
}

.allergen-tag:hover {
  background: var(--blue);
  color: var(--white);
}

.item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  min-width: 54px;
  text-align: right;
}

.item-price::after {
  content: ' €';
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.item-price-raw::after { content: ''; }

/* ── BACK TO TOP ── */
#back-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,107,181,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
#back-top.visible {
  opacity: 1;
  pointer-events: all;
}
#back-top:hover { transform: translateY(-3px); }

/* ── FOOTER ── */
footer {
  background: var(--white);
  border-top: 3px solid var(--blue-light);
  padding: 28px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.allergen-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 7px 20px;
  margin-bottom: 20px;
}

.allergen-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.allergy-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ── TOOLTIP (alergeno hover) ── */
.allergen-tag[data-tooltip] {
  position: relative;
}
.allergen-tag[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 400;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 400;
}
.allergen-tag[data-tooltip]:hover::after { opacity: 1; }

/* ── SEOCLARO BAR ── */
.seoclaro-bar {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: block;
  width: 100%;
}

.seoclaro-bar a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-style: normal;
}

.seoclaro-bar a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  :root { --header-h: 74px; }
  .logo-img { width: 140px; }
  .section-title { font-size: 1rem; }
  .item-name { font-size: 0.84rem; }
  .menu-item { padding: 10px 14px; }
}
