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

:root {
  --red: #e31e24;
  --red-dark: #b51519;
  --red-light: #fdf0f0;
  --red-mid: #f5c0c0;
  --black: #111;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #f0dede;
  --white: #fff;
  --bg: #fafafa;
  --max-w: 740px;
  --header-h: 76px;
  --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: 4px solid var(--red);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 14px rgba(0,0,0,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;
  gap: 12px;
}

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

.logo-sub {
  font-size: 0.62rem;
  color: #999;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
}

/* ── 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 #ddd;
  border-radius: 16px;
  background: transparent;
  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(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(227,30,36,0.35);
}

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

/* ── 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.05);
}
.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;
  white-space: nowrap;
}

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

.section-nav a.active {
  color: var(--white);
  background: var(--red);
  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(0,0,0,0.07);
}

.section-header {
  background: var(--black);
  padding: 14px 20px;
  border-left: 5px solid var(--red);
  display: flex;
  align-items: center;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

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

.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(--red-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(--red-mid);
  color: var(--red-dark);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  cursor: help;
  transition: background 0.15s;
  position: relative;
}

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

.allergen-tag[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  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; }

.item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  min-width: 54px;
  text-align: right;
  font-family: 'Oswald', sans-serif;
}

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

/* ── BACK TO TOP ── */
#back-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(227,30,36,0.4);
  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(--red);
  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(--red);
  margin-bottom: 14px;
  font-family: 'Oswald', sans-serif;
}

.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);
}

/* ── 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%;
  margin-top: 14px;
}

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

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

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