/* Göllner's Kulinarium — design tokens first; change colours here only. */
:root {
  --bg: #0e0c0a;
  --bg-2: #15120f;
  --surface: #1b1713;
  --line: rgba(214, 178, 94, 0.22);
  --gold: #d1ab55;
  --gold-2: #ecd08a;
  --gold-grad: linear-gradient(135deg, #b8913a 0%, #ecd08a 45%, #c79d43 100%);
  --ink: #f3ece0;
  --muted: #b2a792;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --radius: 4px;
  --header-h: 76px;
  --topbar-h: 38px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 1.0625rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.eyebrow {
  font: 500 .78rem/1 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font: 500 .82rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); border: 0; background: transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-gold { background: var(--gold-grad); color: #17120a; box-shadow: 0 6px 24px rgba(209, 171, 85, .18); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(209, 171, 85, .3); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .74rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(14, 12, 10, .86); backdrop-filter: blur(12px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

/* Contact bar above the header; collapses once the page is scrolled */
.topbar {
  height: var(--topbar-h); overflow: hidden;
  border-bottom: 1px solid var(--line); background: rgba(14, 12, 10, .5);
  font-size: .8rem; letter-spacing: .03em; color: var(--muted);
  transition: height .3s ease, opacity .3s ease, border-color .3s ease;
}
.site-header.scrolled .topbar, .site-header.menu-open .topbar { height: 0; opacity: 0; border-color: transparent; }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-group { display: flex; align-items: center; gap: 28px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; white-space: nowrap; transition: color .2s; }
.topbar a:hover { color: var(--gold-2); }
.topbar svg { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: flex; white-space: nowrap; align-items: center; gap: 12px; text-decoration: none; font: 500 1.35rem/1 var(--serif); }
.brand em { font-style: italic; color: var(--gold-2); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  white-space: nowrap; text-decoration: none; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--gold-2); }
.nav-toggle { display: none; }
.social-icons { display: flex; align-items: center; gap: 2px; }
.social-icons a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); transition: color .2s; }
.social-icons a:hover { color: var(--gold-2); }
.social-icons svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.social-icons svg path { fill: currentColor; stroke: none; }
.social-icons svg .fill { fill: currentColor; stroke: none; }
.nav .nav-social { margin: 0 -6px 0 -10px; }
.header-social { display: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  filter: saturate(.85);
  transform: scale(1.04);
  animation: slowzoom 24s ease-out forwards;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(14,12,10,.55) 0%, rgba(14,12,10,.82) 60%, rgba(14,12,10,.97) 100%),
    linear-gradient(to bottom, rgba(14,12,10,.3), rgba(14,12,10,1));
}
.hero-content { position: relative; z-index: 1; padding-top: calc(var(--topbar-h) + var(--header-h) + 48px); padding-bottom: 64px; max-width: 860px; }
.hero-logo { width: clamp(150px, 22vw, 220px); height: auto; margin: 0 auto 18px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.hero h1 { font-weight: 400; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #ddd3c2; max-width: 620px; margin: 0 auto 2.2rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.status { margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.status::before { content: ""; display: inline-block; vertical-align: middle; margin: -2px 10px 0 0; width: 8px; height: 8px; border-radius: 50%; background: #8a8170; }
.status.open::before { background: #7cc58a; box-shadow: 0 0 0 4px rgba(124, 197, 138, .18); }
@keyframes slowzoom { to { transform: scale(1); } }

/* Notice bar */
.notice { background: var(--gold-grad); color: #17120a; }
.notice .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; text-align: center; }
.notice p { margin: 0; font-weight: 400; }
.notice-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #17120a; }

/* Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-text p:not(.eyebrow) { color: #d9cfbd; }
.about-media { position: relative; margin: 0; padding: 0 0 56px 0; }
.about-media > img:first-child { aspect-ratio: 4 / 5; object-fit: cover; width: 85%; margin-left: auto; border-radius: var(--radius); }
.about-media-small {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover;
  border: 8px solid var(--bg); border-radius: var(--radius);
}

/* Menu */
.menu { background: var(--bg-2); border-block: 1px solid var(--line); }
.menu-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; margin-bottom: 48px; }
.menu-tab {
  background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted); cursor: pointer;
  font: 400 .82rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 12px 16px;
  transition: color .2s, border-color .2s;
}
.menu-tab:hover { color: var(--ink); }
.menu-tab[aria-selected="true"] { color: var(--gold-2); border-color: var(--gold); }
.menu-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 72px; max-width: 980px; margin: 0 auto; animation: fade .4s ease; }
.menu-panel[hidden] { display: none; }
.dish { padding: 18px 0; border-bottom: 1px solid rgba(214, 178, 94, .1); }
.dish-top { display: flex; align-items: baseline; gap: 12px; }
.dish-name { font: 500 1.4rem/1.25 var(--serif); margin: 0; }
.dish-line { flex: 1; border-bottom: 1px dotted rgba(214, 178, 94, .35); transform: translateY(-5px); min-width: 20px; }
.dish-price { font: 500 1.3rem/1 var(--serif); color: var(--gold-2); white-space: nowrap; }
.dish-desc { margin: 4px 0 0; color: var(--muted); font-size: .97rem; }
.dish-options { display: flex; flex-wrap: wrap; gap: 2px 20px; margin: 8px 0 0; color: var(--gold-2); font-size: .95rem; }
.tag { display: inline-block; margin-left: 8px; font: 500 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #9fc49d; border: 1px solid rgba(159, 196, 157, .4); padding: 3px 6px; border-radius: 2px; vertical-align: middle; }
.menu-note { margin-top: 44px; font-size: .9rem; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.9) brightness(.9); transition: filter .4s; }
.gallery img:hover { filter: none; }

/* Highlight cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 40px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; }
.card::before { content: ""; position: absolute; top: -1px; left: 32px; width: 40px; height: 2px; background: var(--gold-grad); }
.card h3 { color: var(--gold-2); }
.card p { color: var(--muted); margin: 0; }

/* Visit */
.visit { background: var(--bg-2); border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.hours { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
.hours th, .hours td { padding: 13px 0; border-bottom: 1px solid rgba(214, 178, 94, .12); text-align: left; font-weight: 300; }
.hours th { font: 500 1.25rem/1.2 var(--serif); }
.hours td { text-align: right; color: #d9cfbd; }
.hours .closed td { color: var(--muted); font-style: italic; }
.closures { color: var(--gold-2); margin: 0 0 8px; }
.hours .today th, .hours .today td { color: var(--gold-2); }
.hours .today th::after { content: "Heute"; margin-left: 10px; font: 500 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #17120a; background: var(--gold-grad); padding: 3px 6px; border-radius: 2px; vertical-align: middle; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(32px, 4vw, 48px); }
address { font-style: normal; font-size: 1.15rem; margin-bottom: 20px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(214, 178, 94, .12); }
.contact-list span { color: var(--muted); }
.contact-list a { text-decoration: none; color: var(--gold-2); word-break: break-all; text-align: right; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nowrap { white-space: nowrap; }
.social, .legal { display: flex; gap: 28px; }
.social a, .legal a { text-decoration: none; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.social a:hover, .legal a:hover { color: var(--gold-2); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .32s; }
.hero .reveal:nth-child(6) { transition-delay: .4s; }

/* Legal pages */
.legal-page { padding: calc(var(--header-h) + 60px) 0 100px; max-width: 760px; }
.legal-page h2 { font-size: 1.8rem; margin-top: 2em; }
.legal-page h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
.legal-page li { margin: .4em 0; }
.legal-page h1 { hyphens: auto; }
.legal-page a { overflow-wrap: anywhere; }
.legal-page .placeholder { border: 1px dashed var(--line); padding: 16px 20px; color: var(--muted); }

/* Reservation dialog */
body.modal-open { overflow: hidden; }
.reserve {
  width: min(640px, calc(100% - 32px)); max-height: min(880px, calc(100% - 48px));
  padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--bg-2); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.reserve[open] { display: flex; flex-direction: column; animation: pop .25s ease; }
.reserve::backdrop { background: rgba(5, 4, 3, .74); backdrop-filter: blur(4px); }
.reserve-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; } /* not flex: 1 – Safari collapses it to 0 height */
.reserve-form[hidden] { display: none; }
.reserve-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 32px 4px; }
.reserve-head h2 { outline: none; margin: 0; font-size: clamp(1.9rem, 4vw, 2.3rem); }
.reserve-head .eyebrow { margin-bottom: .7rem; }
.reserve-close {
  flex: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: none; color: var(--ink); font-size: 1.5rem; line-height: 1;
}
.reserve-close:hover { border-color: var(--gold); color: var(--gold-2); }
.reserve-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 32px 8px; }
.reserve-foot { padding: 16px 32px 22px; border-top: 1px solid var(--line); }
.reserve-foot .btn { width: 100%; }
.reserve-foot .hint { text-align: center; }
fieldset.field { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.field legend, .field .label { font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.field legend { padding: 0; margin-bottom: 12px; }
.field .label em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 300; font-size: .85rem; }
label.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.field input:not([type="radio"]), .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  font: 300 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid rgba(214, 178, 94, .25);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(209, 171, 85, .15); }
.field [aria-invalid] { border-color: #d98b7a !important; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 10px; margin: -2px -2px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.chip { position: relative; flex: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 52px; min-height: 44px; padding: 8px 14px; white-space: nowrap; cursor: pointer;
  border: 1px solid rgba(214, 178, 94, .25); border-radius: var(--radius); font-size: .95rem;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chips-scroll .chip span { min-width: 68px; height: 100%; padding: 10px 12px; }
.chip small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chip:hover span { border-color: var(--gold); }
.chip.is-closed span { opacity: .45; cursor: not-allowed; border-style: dashed; }
.chip.is-closed:hover span { border-color: rgba(214, 178, 94, .25); }
.chip .chip-note { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chip input:checked + span { background: var(--gold-grad); color: #17120a; border-color: transparent; font-weight: 400; }
.chip input:checked + span small { color: #3d3116; }
.chip input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.chip-group { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.chips + .chip-group { margin-top: 16px; }
.hint { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.hint a { color: var(--gold-2); }
.form-error { color: #f0a493; font-size: .92rem; margin: 0 0 12px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.reserve-done { padding: 56px 32px 44px; text-align: center; overflow-y: auto; }
.reserve-done #r-summary { color: #d9cfbd; max-width: 440px; margin: 0 auto; }
.reserve-done .btn { margin-top: 28px; }
.done-mark {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-grad); color: #17120a; font-size: 1.7rem;
}
.demo-note { margin: 22px auto 0; padding: 10px 14px; max-width: 420px; border: 1px dashed var(--line); color: var(--muted); font-size: .85rem; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .menu-panel { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .header-social { display: flex; margin-left: auto; margin-right: 6px; }
  .header-social a { width: 44px; height: 44px; }
  .nav .nav-social { display: none; }
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 1px; background: var(--ink); transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 24px;
    background: rgba(14, 12, 10, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { width: 100%; padding: 16px 0; border-bottom: 1px solid rgba(214, 178, 94, .1); font-size: .9rem; }
  .nav .btn { margin-top: 20px; width: 100%; min-height: 48px; }
  .site-header.menu-open { background: rgba(14, 12, 10, .97); }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; --topbar-h: 34px; }
  .topbar { font-size: .76rem; }
  .topbar-inner { justify-content: center; }
  .topbar-group { gap: 20px; }
  .topbar-address { display: none !important; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav { padding: 8px 16px 24px; }
  .brand span { font-size: 1.15rem; }
  .hero { min-height: 0; }
  .hero-content { padding-top: calc(var(--topbar-h) + var(--header-h) + 36px); padding-bottom: 56px; }
  .hero-logo { width: 128px; margin-bottom: 14px; }
  .notice-dot { display: none; }
  .brand img { width: 36px; height: 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .dish-name { font-size: 1.25rem; }
  .contact-actions .btn { flex: 1; }
  .reserve { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; }
  .reserve-head, .reserve-body, .reserve-foot { padding-left: 16px; padding-right: 16px; }
  .reserve-head { padding-top: 20px; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
