:root {
  --cream: #faf6ee;
  --cream-strong: #f2ead9;
  --ink: #2c2420;
  --muted: #6f6459;
  --wine: #8c1c2b;
  --wine-deep: #6e131f;
  --line: rgba(44, 36, 32, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Karla", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.review-bar {
  display: block;
  position: sticky;
  top: 0;
  z-index: 10;
  text-align: center;
  padding: 12px 16px;
  background: var(--wine);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.review-bar:active { background: var(--wine-deep); }

.menu-header {
  text-align: center;
  padding: 38px 24px 20px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.menu-header h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--wine);
}

.menu-header h1 span { color: var(--ink); }

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(44px, 1fr));
  gap: 6px;
  width: min(100%, 248px);
  margin: 18px auto 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 246, 238, 0.76);
}

.language-switcher button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-switcher button:hover { color: var(--wine); }
.language-switcher button:active { transform: scale(0.96); }
.language-switcher button.active {
  background: var(--wine);
  color: var(--cream);
  box-shadow: 0 5px 14px rgba(140, 28, 43, 0.2);
}

.language-switcher button:focus-visible,
.hub-button:focus-visible,
.back-link:focus-visible,
.cat-nav a:focus-visible {
  outline: 3px solid rgba(140, 28, 43, 0.35);
  outline-offset: 3px;
}

.language-switcher-menu { margin-top: 18px; }

.cat-nav {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 45px;
  background: var(--cream);
  z-index: 9;
  -webkit-overflow-scrolling: touch;
}

.cat-nav a {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--cream-strong);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 20px 40px;
}

.menu-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.menu-section h2 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--wine);
}

.menu-section h2 span { color: var(--muted); font-size: 1.05rem; }

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.item-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.item-row h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.price {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--wine);
  font-variant-numeric: tabular-nums;
}

.price::after { content: " CHF"; font-size: 0.72rem; font-weight: 600; color: var(--muted); }

.menu-list li p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.menu-footer {
  text-align: center;
  padding: 36px 24px 50px;
  background: var(--cream-strong);
}

.footer-name {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--wine);
  margin: 0 0 6px;
}

.menu-footer p { margin: 0 0 4px; color: var(--muted); font-size: 0.86rem; }

.review-link {
  display: inline-block;
  margin: 16px 0;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.footer-credit {
  margin-top: 20px;
  font-size: 0.72rem;
  opacity: 0.6;
}

/* ---------- Table hub ---------- */

.hub-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 18px;
}

.hub-card {
  width: 100%;
  max-width: 380px;
  background: var(--cream-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 28px 30px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(44, 36, 32, 0.1);
}

.hub-logo {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--wine);
}

.hub-logo span { color: var(--ink); }

.hub-table {
  margin: 4px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hub-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.hub-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  text-align: left;
}

.hub-icon { font-size: 1.2rem; }

.hub-button-accent {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}

.hub-note {
  margin: 22px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.hub-credit {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
}

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Feedback flow ---------- */

.feedback-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-form[hidden] { display: none; }

.feedback-question {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.star-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.star {
  border: none;
  background: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
}

.star.active { color: var(--wine); }

.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
}

.feedback-submit { justify-content: center; }

.feedback-error {
  margin: 0;
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 600;
}

.thank-you {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thank-you[hidden] { display: none; }

.thank-you-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--wine);
}

.thank-you-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.skip-link {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher button { transition: none; }
}

@media (max-width: 380px) {
  .hub-body { padding: 14px; }
  .hub-card { padding: 30px 20px 26px; }
  .language-switcher { width: 100%; }
}
