/* =========================================================
   Ristorante Paganini — Design System & Layout
   Mobile-first (375px base) → 600 → 900 → 1200
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Colour */
  --ink:        #1c1814;
  --ink-soft:   #2a241e;
  --ivory:      #f6f1e7;
  --ivory-dim:  #ece4d5;
  --stone:      #8d8676;
  --stone-dark: #5d574c;
  --gold:       #b0863f;
  --gold-bright:#caa15a;
  --wine:       #5a2230;
  --line:       rgba(28, 24, 20, .14);
  --line-dark:  rgba(246, 241, 231, .16);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --fs-hero:    clamp(2.7rem, 7vw, 5.5rem);
  --fs-h2:      clamp(2rem, 4.5vw, 3.4rem);
  --fs-h3:      clamp(1.3rem, 2.4vw, 1.7rem);
  --fs-body:    clamp(1rem, 1.1vw, 1.125rem);
  --fs-lead:    clamp(1.06rem, 1.4vw, 1.28rem);
  --fs-small:   .8125rem;
  --fs-eyebrow: .78rem;

  /* Spacing */
  --sp-2:.5rem; --sp-3:.75rem; --sp-4:1rem; --sp-6:1.5rem;
  --sp-8:2rem; --sp-12:3rem; --sp-16:4rem;
  --section-y: clamp(4rem, 10vw, 9rem);
  --inset:     clamp(1.25rem, 5vw, 3rem);
  --maxw:      1200px;

  /* Surface */
  --r-sm: 4px;
  --r-md: 8px;
  --shadow:    0 18px 50px -28px rgba(28, 24, 20, .45);
  --shadow-lg: 0 34px 80px -36px rgba(28, 24, 20, .6);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
/* author display rules (flex) would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--inset); }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--ivory); }
/* anchor offset so the fixed header never covers a section heading */
section[id], main[id] { scroll-margin-top: clamp(68px, 9vh, 88px); }

/* Tighter spacing + hairline divider between same-surface sections.
   Sections with different backgrounds (dark↔ivory) already separate visually. */
.section:not(.section--dark):has(+ .section:not(.section--dark)),
.section--dark:has(+ .section--dark) { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.section:not(.section--dark) + .section:not(.section--dark),
.section--dark + .section--dark {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}
.section:not(.section--dark) + .section:not(.section--dark)::before,
.section--dark + .section--dark::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: clamp(64px, 9vw, 110px);
  height: 1px;
  background: var(--gold);
  opacity: .9;
}

.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-200%);
  background: var(--ink); color: var(--ivory); padding: .7rem 1.4rem;
  z-index: 200; border-radius: 0 0 var(--r-md) var(--r-md); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

.eyebrow {
  font-size: var(--fs-eyebrow); letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--gold); margin-bottom: var(--sp-4);
}
.eyebrow--light { color: var(--gold-bright); }

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2); line-height: 1.08; font-weight: 500;
  letter-spacing: -.01em; text-wrap: balance;
}
.section__title--light { color: var(--ivory); }
.section__head { max-width: 38ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--stone-dark); }
.lead--light { color: rgba(246, 241, 231, .82); }
.storia__body p + p, .feiern__body .lead + p { margin-top: var(--sp-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .9rem 1.7rem;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; border-radius: var(--r-sm);
  background: var(--gold); color: var(--ink);
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-bright); }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--ink-soft); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: transparent; }
.btn--ghost-light { color: var(--ivory); border-color: rgba(246,241,231,.4); }
.btn--ghost-light:hover { border-color: var(--ivory); }
.btn--sm { min-height: 44px; padding: .6rem 1.2rem; font-size: .88rem; }
.btn--block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding-block: clamp(.7rem, 2vw, 1.1rem);
}
.site-header[data-state="top"] { background: transparent; }
.site-header[data-state="top"] .brand,
.site-header[data-state="top"] .nav a,
.site-header[data-state="top"] .header__phone { color: var(--ivory); }
.site-header[data-state="top"] .burger span { background: var(--ivory); }
.site-header[data-state="scrolled"] {
  background: var(--ivory);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(28,24,20,.5);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); }

.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand__mark {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 600;
  letter-spacing: .02em;
}
.brand__sub {
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-top: .35rem; font-weight: 600;
}
.site-header[data-state="top"] .brand__sub { color: var(--gold-bright); }

.nav { display: none; }
.nav__list { display: flex; gap: clamp(1.1rem, 2.4vw, 2.2rem); }
.nav a {
  text-decoration: none; font-size: .92rem; font-weight: 500;
  padding-block: .4rem; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
.nav a:hover::after { width: 100%; }

.header__actions { display: none; align-items: center; gap: var(--sp-6); }
.header__phone { text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.header__phone:hover { color: var(--gold); }

.burger {
  width: 44px; height: 44px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px; flex: none;
}
.burger span {
  width: 24px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease), background-color .3s var(--ease);
}
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* while the overlay is open the header sits on a dark surface — keep it transparent + light */
body.menu-open .site-header { background: transparent; box-shadow: none; }
body.menu-open .site-header .brand,
body.menu-open .site-header .brand__sub { color: var(--ivory); }
body.menu-open .site-header .burger span { background: var(--ivory); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: auto; }
.mobile-menu__inner {
  text-align: center; padding: var(--inset); width: 100%; max-width: 420px;
}
.mobile-menu__inner ul { display: flex; flex-direction: column; gap: .35rem; margin-bottom: var(--sp-8); }
.mobile-menu__inner a {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 500;
  text-decoration: none; display: block; padding: .55rem; color: var(--ivory);
}
.mobile-menu__inner a:hover { color: var(--gold-bright); }
.mobile-menu__cta { display: flex; flex-direction: column; gap: var(--sp-3); }
.mobile-menu__cta .btn--ghost { color: var(--ivory); border-color: rgba(246,241,231,.4); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(7rem, 16vh, 11rem) clamp(4rem, 9vh, 7rem);
  color: var(--ivory); overflow: hidden;
  background: var(--ink);
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(.82) brightness(.78) contrast(1.04);
  z-index: 0;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(20,17,13,.95) 0%, rgba(20,17,13,.45) 45%, rgba(20,17,13,.55) 100%),
    radial-gradient(120% 80% at 80% 0%, rgba(176,134,63,.22), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; max-width: 920px; }
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: var(--sp-6); text-wrap: balance;
}
.hero__lead {
  font-size: var(--fs-lead); line-height: 1.55; max-width: 52ch;
  color: rgba(246, 241, 231, .9); margin-bottom: var(--sp-8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__actions .btn { flex: 1 1 auto; min-width: 0; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px; border: 1.5px solid rgba(246,241,231,.5);
  border-radius: 20px; display: flex; justify-content: center; padding-top: 7px;
}
.hero__scroll span {
  width: 3px; height: 8px; background: var(--gold-bright); border-radius: 2px;
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(11px); }
}

/* =========================================================
   Storia
   ========================================================= */
.storia__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.storia__media { position: relative; }
.storia__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-md); box-shadow: var(--shadow);
}
.storia__media::after {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 60%; height: 60%; border: 1px solid var(--gold); border-radius: var(--r-md);
  z-index: -1;
}
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3); margin-top: var(--sp-8);
  border-top: 1px solid var(--line); padding-top: var(--sp-6);
}
.facts__num {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--gold); font-weight: 600;
}
.facts__label { display: block; font-size: var(--fs-small); color: var(--stone); margin-top: .2rem; }

/* =========================================================
   Küche / Signature cards
   ========================================================= */
.cards { display: grid; gap: var(--sp-4); }
.card {
  background: var(--ivory-dim); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: var(--gold); transition: height .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { height: 100%; }
.card__index {
  font-family: var(--font-display); font-size: 1rem; color: var(--gold);
  font-weight: 600; letter-spacing: .1em;
}
.card__title {
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500;
  margin: var(--sp-3) 0 var(--sp-2);
}
.card__text { color: var(--stone-dark); font-size: .98rem; }

/* =========================================================
   Speisekarte — interaktive Karte (dark)
   ========================================================= */
.menu__head { max-width: 56ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.menu__phone { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid currentColor; white-space: nowrap; }
.menu__phone:hover { color: var(--ivory); }

/* Active page indicator (nav) */
.nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"]::after { width: 100%; }
.mobile-menu__inner a[aria-current="page"] { color: var(--gold-bright); }

/* ---- tabs + search ---- */
.menu__controls {
  display: grid; gap: var(--sp-4); align-items: center;
  margin-bottom: var(--sp-6);
}
.menu-tabs {
  position: relative; display: inline-flex; gap: 0;
  background: rgba(246,241,231,.06); border-radius: 999px; padding: 4px;
  align-self: start;
}
.menu-tab {
  position: relative; z-index: 1;
  padding: .7rem 1.4rem; min-height: 44px;
  font-weight: 600; font-size: .92rem; letter-spacing: .02em;
  color: rgba(246,241,231,.72); border-radius: 999px;
  transition: color .25s var(--ease);
}
.menu-tab.is-active { color: var(--ink); }
.menu-tabs__indicator {
  position: absolute; top: 4px; left: 4px; height: calc(100% - 8px);
  background: var(--gold); border-radius: 999px;
  transition: transform .35s var(--ease), width .35s var(--ease);
  z-index: 0;
}

.menu-search {
  position: relative; display: flex; align-items: center;
  background: rgba(246,241,231,.06); border: 1px solid var(--line-dark);
  border-radius: 999px; padding: 0 .5rem 0 1rem;
  max-width: 360px; min-height: 48px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.menu-search:focus-within { border-color: var(--gold); background: rgba(246,241,231,.09); }
.menu-search__icon { color: var(--gold-bright); font-size: 1.1rem; }
.menu-search__input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--ivory); font: inherit; padding: .6rem .7rem;
  min-height: 44px;
}
.menu-search__input::placeholder { color: rgba(246,241,231,.45); }
.menu-search__clear {
  width: 32px; height: 32px; border-radius: 50%;
  color: rgba(246,241,231,.7); font-size: 1.2rem;
}
.menu-search__clear:hover { color: var(--ivory); }

/* ---- category chips (sticky) ---- */
.menu-chips {
  position: sticky; top: clamp(56px, 9vh, 78px); z-index: 5;
  margin: 0 calc(-1 * var(--inset)) var(--sp-8);
  padding: var(--sp-3) var(--inset);
  background: linear-gradient(to bottom, var(--ink) 75%, rgba(28,24,20,0));
}
.menu-chips__rail {
  display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .25rem;
  scrollbar-width: thin; scrollbar-color: var(--stone) transparent;
  scroll-behavior: smooth;
}
.menu-chips__rail::-webkit-scrollbar { height: 4px; }
.menu-chips__rail::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 4px; }
.menu-chip {
  flex: none; padding: .55rem 1rem; min-height: 38px;
  font-size: .86rem; font-weight: 500; letter-spacing: .01em;
  color: rgba(246,241,231,.78);
  border: 1px solid var(--line-dark); border-radius: 999px;
  background: rgba(246,241,231,.04); white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), transform .15s var(--ease);
}
.menu-chip:hover { color: var(--ivory); border-color: var(--gold-bright); }
.menu-chip.is-active {
  color: var(--ink); background: var(--gold); border-color: var(--gold);
}

/* ---- category section ---- */
.menu-cat { margin-bottom: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: clamp(120px, 18vh, 170px); }
.menu-cat__title {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.1;
  margin: 0 0 var(--sp-4); padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line-dark);
  color: var(--ivory);
}
.menu-cat__title span { color: var(--ivory); }
.menu-cat__title em {
  font-style: italic; font-family: var(--font-display); font-weight: 400;
  color: var(--gold-bright); font-size: clamp(.95rem, 1.6vw, 1.15rem);
  letter-spacing: .02em;
}
.menu-cat__sub {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  color: var(--gold-bright);
  margin: var(--sp-8) 0 var(--sp-3);
  display: flex; align-items: baseline; gap: .6rem;
}
.menu-cat__sub small {
  font-family: var(--font-body); font-size: .82rem;
  color: var(--stone); font-weight: 400;
}
.menu-cat__note {
  margin-top: var(--sp-4); font-size: .92rem; color: var(--stone);
  font-style: italic;
}

/* ---- dish list ---- */
.menu-list { display: grid; gap: var(--sp-4); }
.menu-dish {
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--line-dark);
  transition: background-color .25s var(--ease);
}
.menu-dish:last-child { border-bottom: 0; }
.menu-dish.is-hidden { display: none; }
.menu-dish.is-match { background: rgba(176,134,63,.07); border-radius: 4px; padding-inline: .5rem; }

.menu-dish__head {
  display: flex; align-items: baseline; gap: .6rem;
}
.menu-dish__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--ivory); flex: 0 1 auto;
}
.menu-dish__name small {
  font-family: var(--font-body); font-size: .78rem;
  color: var(--stone); font-weight: 400; letter-spacing: .02em;
  margin-left: .25rem;
}
.menu-dish__aller {
  font-family: var(--font-body); font-style: normal;
  font-size: .72rem; font-weight: 500; letter-spacing: .03em;
  color: var(--stone); margin-left: .35rem;
  white-space: nowrap;
}
.menu-dish__leader {
  flex: 1 1 auto; min-width: 1.5rem;
  align-self: end; margin-bottom: .45em;
  border-bottom: 1px dotted rgba(246,241,231,.22);
  height: 1px;
}
.menu-dish__price {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--gold-bright); font-variant-numeric: tabular-nums;
  white-space: nowrap; flex: none; line-height: 1.35;
  text-align: right;
}
.menu-dish__desc {
  font-size: .92rem; line-height: 1.55;
  color: rgba(246,241,231,.66);
  margin-top: .25rem; max-width: 64ch;
}
.menu-dish--feature {
  position: relative;
  padding-left: .8rem;
}
.menu-dish--feature::before {
  content: ""; position: absolute; left: 0; top: var(--sp-3); bottom: var(--sp-3);
  width: 2px; background: var(--gold);
}
.menu-dish--feature .menu-dish__name::after {
  content: "Empfehlung";
  display: inline-block;
  margin-left: .55rem; padding: .12rem .5rem;
  font-family: var(--font-body); font-size: .65rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); border-radius: 2px;
  vertical-align: middle;
}

/* ---- panels ---- */
.menu-panel[hidden] { display: none !important; }

/* ---- empty state ---- */
.menu-empty {
  text-align: center; padding: 3rem 1rem;
  color: var(--stone); font-style: italic;
}

/* ---- foot ---- */
.menu-foot {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: flex-start; justify-content: space-between;
}
.menu-allergens { max-width: 56rem; flex: 1 1 320px; }
.menu-allergens summary {
  cursor: pointer; padding: .5rem 0;
  font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-bright);
  list-style: none;
}
.menu-allergens summary::-webkit-details-marker { display: none; }
.menu-allergens summary::before {
  content: "+"; display: inline-block; margin-right: .5rem;
  font-family: var(--font-display); color: var(--gold); font-size: 1rem;
  transition: transform .25s var(--ease);
}
.menu-allergens[open] summary::before { transform: rotate(45deg); }
.menu-allergens__body { padding: var(--sp-3) 0; font-size: .86rem; color: rgba(246,241,231,.72); }
.menu-allergens__body p + p { margin-top: var(--sp-3); }
.menu-foot__btn { flex: none; }

/* =========================================================
   Atmosphäre — editorial "Hausführung"
   ========================================================= */
.atmo__head { max-width: 46ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.atmo__intro { margin-top: var(--sp-4); }

/* shared image frame (clickable → lightbox) */
.atmo__frame {
  display: block; width: 100%; padding: 0; overflow: hidden;
  position: relative; background: var(--ivory-dim);
  border-radius: var(--r-md);
}
.atmo__frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.92) brightness(.97);
  transition: transform .6s var(--ease), filter .5s var(--ease);
}
.atmo__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,13,.42), transparent 58%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.atmo__frame:hover img,
.atmo__frame:focus-visible img { transform: scale(1.045); filter: saturate(1.04) brightness(1.02); }
.atmo__frame:hover::after { opacity: 1; }

/* --- focal moment --- */
.atmo__focal { position: relative; margin: 0 0 clamp(3rem, 8vw, 6rem); }
.atmo__frame--focal img { aspect-ratio: 4 / 3; }
.atmo__frame--inset { margin-top: var(--sp-4); }
.atmo__frame--inset img { aspect-ratio: 5 / 4; }

.atmo__caption {
  background: var(--ivory); box-shadow: var(--shadow);
  border-radius: var(--r-md); position: relative; z-index: 2;
  padding: clamp(1.3rem, 4vw, 2rem);
  margin: -2.4rem var(--sp-4) 0;
  border-top: 2px solid var(--gold);
}
.atmo__caption-eyebrow {
  display: block; font-size: var(--fs-eyebrow); letter-spacing: .2em;
  text-transform: uppercase; font-weight: 600; color: var(--gold);
  margin-bottom: var(--sp-3);
}
.atmo__caption p {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.35;
  color: var(--ink);
}

/* --- chapters: rooms & moods --- */
.atmo__chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 9vw, 6.5rem); }
.atmo__chapter { display: grid; gap: clamp(1.1rem, 4vw, 2rem); align-items: center; }
.atmo__frame--chapter img { aspect-ratio: 4 / 3; }

.atmo__num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: .9; letter-spacing: .01em;
  color: var(--gold);
  -webkit-text-stroke: 1.4px var(--gold);
  -webkit-text-fill-color: transparent;
}
.atmo__zone-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h3); margin: .5rem 0 0;
}
.atmo__rule {
  display: block; width: 46px; height: 2px; background: var(--gold);
  margin: var(--sp-4) 0;
}
.atmo__text { color: var(--stone-dark); max-width: 38ch; }

/* =========================================================
   Feiern
   ========================================================= */
.feiern__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feiern__media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--r-md); box-shadow: var(--shadow);
}
.ticks { margin: var(--sp-6) 0 var(--sp-8); display: grid; gap: .6rem; }
.ticks li {
  padding-left: 1.8rem; position: relative; color: var(--stone-dark);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 7px; border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* =========================================================
   Reservierung / Kontakt
   ========================================================= */
.res__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact-card {
  margin-top: var(--sp-8); border: 1px solid var(--line-dark); border-radius: var(--r-md);
  overflow: hidden;
}
.contact-card__row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .2s var(--ease);
}
.contact-card__row:last-child { border-bottom: 0; }
.contact-card__row:hover { background: rgba(246,241,231,.05); }
.contact-card__label {
  font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-bright);
}
.contact-card__value { font-weight: 600; }

.res-form {
  background: var(--ivory); color: var(--ink);
  border-radius: var(--r-md); padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: var(--sp-4); }
.field-row { display: grid; gap: var(--sp-4); }
.field label {
  display: block; font-size: var(--fs-small); font-weight: 600;
  letter-spacing: .04em; margin-bottom: .4rem;
}
.field__opt { color: var(--stone); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .8rem .9rem; color: var(--ink);
  background: var(--ivory-dim); border: 1px solid var(--line);
  border-radius: var(--r-sm); transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input[aria-invalid="true"] { border-color: var(--wine); }
.form-error {
  background: rgba(90,34,48,.1); color: var(--wine);
  border-radius: var(--r-sm); padding: .7rem .9rem; margin-bottom: var(--sp-4);
  font-size: .92rem; font-weight: 500;
}
.form-note { font-size: var(--fs-small); color: var(--stone); margin-top: var(--sp-3); }
.form-note a { color: var(--stone-dark); }

/* Honeypot — hide from humans, keep visible to dumb bots */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Form status banners (set visible by JS after ?anfrage=ok|fehler redirect) */
.form-status {
  margin: 0 0 var(--sp-6);
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  font-size: .98rem; line-height: 1.5;
}
.form-status strong { color: inherit; font-weight: 600; }
.form-status--ok {
  background: rgba(176,134,63,.14);
  border: 1px solid var(--gold);
  color: var(--ivory);
}
.form-status--fail {
  background: rgba(90,34,48,.22);
  border: 1px solid var(--wine);
  color: var(--ivory);
}
.form-status--fail a { color: var(--gold-bright); }

/* =========================================================
   Anfahrt
   ========================================================= */
.anfahrt__grid { display: grid; gap: var(--sp-6); }
.hours {
  background: var(--ink); color: var(--ivory);
  border-radius: var(--r-md); padding: clamp(1.6rem, 4vw, 2.6rem);
}
.hours__title {
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500;
  margin-bottom: var(--sp-4);
}
.hours__list { margin-bottom: var(--sp-6); }
.hours__row {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .7rem 0; border-bottom: 1px solid var(--line-dark);
}
.hours__row dt { font-weight: 600; }
.hours__row dd { color: rgba(246,241,231,.78); }
.hours__row--off dd { color: var(--gold-bright); font-weight: 600; }
.hours__addr { font-style: normal; margin-bottom: var(--sp-6); line-height: 1.7; color: rgba(246,241,231,.85); }
.hours__addr strong { color: var(--ivory); }

.map-card {
  display: flex; align-items: center; gap: var(--sp-4);
  text-decoration: none; min-height: 220px;
  background:
    repeating-linear-gradient(45deg, rgba(176,134,63,.05) 0 18px, transparent 18px 36px),
    var(--ivory-dim);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.map-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.map-card__pin {
  width: 38px; height: 38px; flex: none; position: relative;
  background: var(--gold); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.map-card__pin::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 13px; height: 13px; background: var(--ivory); border-radius: 50%;
}
.map-card__text strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.map-card__text { color: var(--stone-dark); font-size: .95rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink-soft); color: rgba(246,241,231,.78); padding-top: var(--section-y); }
.footer__grid {
  display: grid; gap: var(--sp-8);
  padding-bottom: var(--sp-12); border-bottom: 1px solid var(--line-dark);
}
.footer__brand .brand__mark { font-size: 1.7rem; color: var(--ivory); }
.footer__brand p { margin-top: var(--sp-3); max-width: 34ch; font-size: .95rem; }
.footer__col h3 {
  font-size: var(--fs-small); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: var(--sp-4); font-weight: 600;
}
.footer__col address { font-style: normal; line-height: 1.9; font-size: .95rem; }
.footer__col p { font-size: .95rem; line-height: 1.9; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--gold-bright); }
.footer__links { display: grid; gap: .45rem; }
.footer__base { padding-block: var(--sp-6); }
.footer__base p { font-size: var(--fs-small); color: var(--stone); }

/* =========================================================
   Sticky mobile CTA
   ========================================================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; gap: 1px; background: var(--line-dark);
  transform: translateY(110%); transition: transform .35s var(--ease);
  box-shadow: 0 -10px 30px -18px rgba(28,24,20,.6);
}
.sticky-cta[data-show="true"] { transform: translateY(0); }
.sticky-cta__btn {
  flex: 1; min-height: 58px; display: flex; align-items: center; justify-content: center;
  gap: .5rem; text-decoration: none; font-weight: 600; font-size: .98rem;
}
.sticky-cta__btn--call { background: var(--ink); color: var(--ivory); }
.sticky-cta__btn--book { background: var(--gold); color: var(--ink); }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(16, 13, 10, .94);
  display: flex; align-items: center; justify-content: center; padding: var(--inset);
  opacity: 0; transition: opacity .25s var(--ease);
}
.lightbox[data-open="true"] { opacity: 1; }
.lightbox__img {
  max-width: 100%; max-height: 86vh; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 48px; height: 48px; font-size: 2rem; line-height: 1;
  color: var(--ivory); border-radius: 50%;
}
.lightbox__close:hover { color: var(--gold-bright); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__scroll span { animation: none; }
}

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }

  /* Atmosphäre: focal caption tucks under the image edge, offset for asymmetry */
  .atmo__caption { margin: -3rem clamp(2rem, 8vw, 5rem) 0 var(--sp-6); max-width: 34rem; }

  /* Speisekarte: search next to tabs */
  .menu__controls { grid-template-columns: auto 1fr; }
  .menu-search { justify-self: end; width: 100%; max-width: 360px; }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .header__actions { display: flex; }
  .burger { display: none; }

  .storia__grid { grid-template-columns: 1.05fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .feiern__grid { grid-template-columns: 1fr 1.1fr; }
  /* Menu dish list 2-col on desktop for non-drink categories */
  .menu-panel[data-panel="essen"] .menu-list { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); row-gap: var(--sp-4); }
  .menu-panel[data-panel="trinken"] .menu-list--drinks { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); row-gap: var(--sp-4); }
  .res__grid { grid-template-columns: 1fr 1.15fr; }
  .anfahrt__grid { grid-template-columns: 1fr 1.2fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .field-row:has(.field--narrow) { grid-template-columns: 1fr 1fr .8fr; }

  .hero__actions .btn { flex: 0 0 auto; }
  .sticky-cta { display: none; }

  /* Atmosphäre — layered focal moment */
  .atmo__focal { margin-bottom: clamp(4.5rem, 9vw, 8rem); }
  .atmo__frame--focal img { aspect-ratio: 21 / 9; }
  .atmo__caption {
    position: absolute; left: 0; bottom: clamp(-3.5rem, -5vw, -2.5rem);
    margin: 0; max-width: 27rem;
  }
  .atmo__frame--inset {
    position: absolute; right: clamp(1.5rem, 4vw, 3rem);
    bottom: clamp(-3rem, -4.5vw, -2rem);
    width: clamp(180px, 17vw, 250px); margin: 0;
    border: 4px solid var(--ivory); box-shadow: var(--shadow-lg);
    will-change: transform;
  }
  .atmo__frame--inset img { aspect-ratio: 3 / 4; }

  /* Atmosphäre — alternating editorial chapters */
  .atmo__chapter { grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
  .atmo__chapter:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
  .atmo__chapter:nth-child(even) .atmo__frame--chapter { order: 2; }
  .atmo__zone { max-width: 30rem; }
}

@media (min-width: 1200px) {
  .section__head { margin-bottom: 4.5rem; }
}

/* =========================================================
   Utility
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================
   Subpage shell — no-hero body + page-hero block
   ========================================================= */
body.no-hero .site-header[data-state="top"] {
  background: var(--ivory);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(28,24,20,.5);
}
body.no-hero .site-header[data-state="top"] .brand,
body.no-hero .site-header[data-state="top"] .nav a,
body.no-hero .site-header[data-state="top"] .header__phone { color: var(--ink); }
body.no-hero .site-header[data-state="top"] .brand__sub { color: var(--gold); }
body.no-hero .site-header[data-state="top"] .burger span { background: var(--ink); }

.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  padding-block: clamp(7rem, 16vh, 11rem) clamp(3rem, 8vh, 5.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 60% at 18% 0%, rgba(176,134,63,.18), transparent 70%),
    radial-gradient(55% 50% at 100% 100%, rgba(176,134,63,.10), transparent 70%);
}
.page-hero__inner { position: relative; max-width: 760px; }
.page-hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.04;
  letter-spacing: -.015em; margin: 0 0 var(--sp-6);
  color: var(--ivory);
}
.page-hero__lead {
  font-size: var(--fs-lead); line-height: 1.55;
  color: rgba(246,241,231,.86); max-width: 56ch;
}
.page-hero__lead .menu__phone { color: var(--gold-bright); }

/* =========================================================
   Buttons — large size
   ========================================================= */
.btn--lg { padding: 1.1rem 2.2rem; font-size: 1rem; min-height: 60px; }

/* =========================================================
   Home — Menu teaser (dark)
   ========================================================= */
.menu-teaser__head { max-width: 56ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.menu-teaser__grid {
  display: grid; gap: var(--sp-4);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.menu-teaser__card {
  background: rgba(246,241,231,.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}
.menu-teaser__card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 0;
  background: var(--gold); transition: height .35s var(--ease);
  z-index: 2;
}
.menu-teaser__card:hover {
  border-color: var(--gold);
  background: rgba(176,134,63,.07);
  transform: translateY(-3px);
}
.menu-teaser__card:hover::after { height: 100%; }
.menu-teaser__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-soft);
  position: relative;
}
.menu-teaser__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.95) brightness(.96);
  transition: transform .5s var(--ease), filter .4s var(--ease);
}
.menu-teaser__card:hover .menu-teaser__media img { transform: scale(1.05); filter: saturate(1.04) brightness(1); }
.menu-teaser__media--ph {
  background:
    repeating-linear-gradient(45deg, rgba(176,134,63,.08) 0 8px, rgba(176,134,63,.02) 8px 16px),
    var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
}
.menu-teaser__media--ph span {
  font-family: var(--font-body); font-size: .62rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-bright); opacity: .55;
}
.menu-teaser__body {
  padding: clamp(1.2rem, 2.5vw, 1.6rem);
  display: flex; flex-direction: column; gap: var(--sp-3);
  flex: 1;
}
.menu-teaser__cat {
  font-size: var(--fs-eyebrow); letter-spacing: .18em;
  text-transform: uppercase; font-weight: 600;
  color: var(--gold-bright);
}
.menu-teaser__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin: 0; color: var(--ivory); line-height: 1.18;
}
.menu-teaser__desc {
  font-size: .92rem; color: rgba(246,241,231,.66);
  line-height: 1.5; margin: 0;
}
.menu-teaser__price {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.3rem; color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-top: auto;
}

.menu-teaser__cats {
  list-style: none; padding: 0;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: .55rem .7rem;
}
.menu-teaser__cats li {
  font-size: .82rem; color: rgba(246,241,231,.72);
  border: 1px solid var(--line-dark);
  padding: .35rem .9rem; border-radius: 999px;
  letter-spacing: .02em;
}

.menu-teaser__cta {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  align-items: center;
}

@media (min-width: 600px) {
  .menu-teaser__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}
@media (min-width: 900px) {
  .menu-teaser__grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
}

/* =========================================================
   Subpage — dish photo variant + page-menu wrapper
   ========================================================= */
.menu--page .menu-chips { top: clamp(56px, 9vh, 78px); }

.menu-dish--photo {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--sp-4);
  align-items: start;
}
.menu-dish--photo .menu-dish__head { flex-wrap: wrap; }
.menu-dish--photo.menu-dish--feature { padding-left: 0; }
.menu-dish--photo.menu-dish--feature::before { display: none; }

.menu-dish__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(176,134,63,.08) 0 8px, rgba(176,134,63,.02) 8px 16px),
    var(--ink-soft);
  border: 1px solid rgba(176,134,63,.18);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.menu-dish__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.menu-dish__photo-ph {
  font-family: var(--font-body); font-size: .62rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-bright); opacity: .55;
  text-align: center; padding: .5rem; line-height: 1.2;
}
.menu-dish__body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }

@media (min-width: 600px) {
  .menu-dish--photo { grid-template-columns: 130px 1fr; gap: var(--sp-6); }
}
@media (min-width: 900px) {
  .menu-dish--photo { grid-template-columns: 170px 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
  /* in 2-col dish lists on desktop, photo dishes span the full row */
  .menu-panel[data-panel="essen"] .menu-list > .menu-dish--photo,
  .menu-panel[data-panel="trinken"] .menu-list--drinks > .menu-dish--photo { grid-column: 1 / -1; }
}
