/* =========================================================
   DIONYSOS HAMBURG — "Die Bühne des Dionysos"
   Nocturnal petrol stage, single warm candle light.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink:      #0c1418;   /* deepest page base */
  --petrol:   #102026;   /* raised sections */
  --petrol-2: #162c34;   /* cards / surfaces */
  --line:     #294049;   /* hairlines */
  --amber:    #e2a55c;   /* candle gold — primary accent */
  --amber-bright: #f0bd7c;
  --amber-soft: rgba(226, 165, 92, 0.13);
  --wine:     #9a3b3b;   /* rare secondary */
  --paper:    #efe7d6;   /* headings / warm white */
  --text:     #c4cecd;   /* body */
  --muted:    #87958f;   /* captions */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--amber); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--paper);
  font-weight: 380;
  line-height: 1.06;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}
.display {
  font-size: clamp(2.9rem, 8vw, 6.4rem);
  font-weight: 360;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--amber); font-weight: 360; }

h2.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  margin-bottom: 0.4em;
}
h2.section-title em { font-style: italic; color: var(--amber); }

p { max-width: 64ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.66; color: #d7ddda; }

/* Eyebrow — small Greek mark + label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "Δ";
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
  opacity: 0.9;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }
.section--petrol { background: var(--petrol); }
.divider { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent); }

/* Warm candle glow utility */
.glow {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--amber-soft), transparent 72%);
  filter: blur(8px);
  z-index: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.85rem; --pad-x: 1.6rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--amber); color: #1a1208; }
.btn--solid:hover { background: var(--amber-bright); }
.btn--ghost { border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn svg { width: 1em; height: 1em; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 17, 20, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  padding-block: 0.8rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand span { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; padding: 0; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text);
  position: relative; padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--amber); transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1.1rem; }

/* Language toggle */
.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 100px; overflow: hidden;
}
.lang button {
  background: none; border: 0; color: var(--muted);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem; transition: color 0.3s, background 0.3s;
}
.lang button[aria-pressed="true"] { background: var(--amber); color: #1a1208; }

/* Mobile nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 0.4rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--paper); transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.8rem; padding: 2rem var(--gutter);
    background: rgba(10, 17, 20, 0.97); backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform 0.45s var(--ease);
  }
  .nav.is-open .nav-links { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 30%, rgba(226,165,92,0.16), transparent 45%),
    linear-gradient(180deg, rgba(10,16,19,0.55) 0%, rgba(10,16,19,0.35) 35%, rgba(10,16,19,0.92) 100%);
}
.hero__watermark {
  position: absolute; z-index: -1; left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 360;
  font-size: clamp(4rem, 22vw, 18rem); color: var(--paper);
  opacity: 0.05; letter-spacing: 0.04em; white-space: nowrap; pointer-events: none;
  user-select: none;
}
.hero__inner { position: relative; max-width: 60ch; }
.hero .display { margin-bottom: 1.4rem; }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #d7ddda; max-width: 46ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* "Seit 1972" vertical marker */
.since {
  position: absolute; right: var(--gutter); bottom: clamp(3rem, 8vw, 6rem);
  z-index: 1; display: flex; align-items: center; gap: 0.8rem;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted);
}
.since::before { content: ""; writing-mode: horizontal-tb; width: 1px; height: 64px; background: linear-gradient(var(--amber), transparent); }
@media (max-width: 880px) { .since { display: none; } }

/* ---------- Generic two-column feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.feature--reverse .feature__media { order: 2; }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.feature__media .tag {
  position: absolute; bottom: 1rem; left: 1rem;
  background: rgba(10,16,19,0.78); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.45rem 1rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
}
.feature p + p { margin-top: 1.1rem; }
.feature .btn { margin-top: 2rem; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 2.2rem; }
  .feature--reverse .feature__media { order: 0; }
}

/* ---------- Dish gallery ---------- */
.dishes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.dish { position: relative; overflow: hidden; border-radius: var(--radius); isolation: isolate; }
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.dish::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,13,15,0.88));
  z-index: 1; transition: opacity 0.5s var(--ease); opacity: 0.85;
}
.dish:hover img { transform: scale(1.06); }
.dish__label {
  position: absolute; left: 1.2rem; bottom: 1.1rem; right: 1.2rem; z-index: 2;
}
.dish__label .k { font-family: var(--font-display); font-size: 1.3rem; color: var(--paper); display: block; line-height: 1.1; }
.dish__label .d { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
.dish--tall { grid-column: span 4; aspect-ratio: 3 / 4; }
.dish--wide { grid-column: span 8; aspect-ratio: 16 / 10; }
.dish--half { grid-column: span 6; aspect-ratio: 5 / 4; }
.dish--third { grid-column: span 4; aspect-ratio: 3 / 4; }
@media (max-width: 820px) {
  .dish--tall, .dish--wide, .dish--half, .dish--third { grid-column: span 12; aspect-ratio: 16 / 11; }
}

/* ---------- Stats / strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem,4vw,3rem); text-align: center; }
.stat .n { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--amber); line-height: 1; }
.stat .l { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; }
@media (max-width: 620px) { .strip { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Section intro block ---------- */
.intro { max-width: 56ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.intro--center { margin-inline: auto; text-align: center; }
.intro--center .eyebrow { justify-content: center; display: flex; }

/* ---------- Menu page ---------- */
.menu-hero { padding-top: clamp(8rem, 16vw, 11rem); padding-bottom: clamp(2rem,5vw,3.5rem); text-align: center; }
.menu-cat { margin-top: clamp(3rem, 7vw, 5rem); }
.menu-cat__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.menu-cat__head h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); white-space: nowrap; }
.menu-cat__head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.menu-cat__head .gr { font-family: var(--font-display); font-style: italic; color: var(--amber); font-size: 1rem; opacity: 0.85; }

.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 3.5rem; }
.menu-item {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.6rem;
  padding: 0.85rem 0; border-bottom: 1px dotted var(--line);
}
.menu-item__name { font-family: var(--font-display); font-size: 1.12rem; color: var(--paper); font-weight: 400; }
.menu-item__desc { display: block; font-family: var(--font-body); font-size: 0.86rem; color: var(--muted); margin-top: 0.15rem; max-width: 46ch; }
.menu-item__price { font-family: var(--font-body); font-size: 0.95rem; color: var(--amber); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .menu-list { grid-template-columns: 1fr; } }

/* Menu accordion — native <details>, works without JavaScript */
details.menu-cat { margin-top: 0; border-top: 1px solid var(--line); }
details.menu-cat:last-of-type { border-bottom: 1px solid var(--line); }
.menu-cat__head { cursor: pointer; list-style: none; user-select: none; margin-bottom: 0; padding-block: 1.5rem; align-items: center; transition: color 0.3s var(--ease); }
.menu-cat__head::-webkit-details-marker { display: none; }
.menu-cat__head::marker { content: ""; }
.menu-cat__head:hover h3, details.menu-cat[open] .menu-cat__head h3 { color: var(--amber); }
.menu-cat__head:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.menu-cat__chev { flex: 0 0 auto; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); transition: transform 0.3s var(--ease); }
details.menu-cat[open] .menu-cat__chev { transform: rotate(45deg); }
details.menu-cat .menu-list { padding-bottom: 2rem; }

.menu-note { margin-top: 3rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--petrol); }
.menu-note p { font-size: 0.84rem; color: var(--muted); max-width: none; }
.menu-note .hl { color: var(--amber); font-style: italic; font-family: var(--font-display); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .legal-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; } }
.info-row { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.info-row:first-child { padding-top: 0; }
.info-row .ic { color: var(--amber); width: 22px; height: 22px; margin-top: 0.2rem; }
.info-row h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.info-row a:hover { color: var(--amber); }
.hours { list-style: none; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px dotted var(--line); max-width: 22rem; }
.hours .closed { color: var(--muted); }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); filter: grayscale(0.4) contrast(1.05) brightness(0.85); }
.contact-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Quote band ---------- */
.quote { text-align: center; max-width: 30ch; margin-inline: auto; }
.quote blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 360;
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.18; color: var(--paper);
}
.quote cite { display: block; margin-top: 1.6rem; font-family: var(--font-body); font-style: normal; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }

/* ---------- Footer ---------- */
.footer { background: #0a1013; border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 8vw, 5.5rem) 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.footer__brand .brand { font-size: 2rem; margin-bottom: 1rem; display: inline-block; }
.footer h4 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; font-weight: 600; }
.footer a { color: var(--text); transition: color 0.3s; }
.footer a:hover { color: var(--amber); }
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.footer__social { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: border-color 0.3s, color 0.3s; }
.footer__social a:hover { border-color: var(--amber); color: var(--amber); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.78rem; color: var(--muted); }
.footer__bottom a { color: var(--muted); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Scroll reveal (no-JS safe: visible unless JS is active) ---------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- i18n visibility ---------- */
[data-lang-de], [data-lang-en] { display: none; }
html[lang="de"] [data-lang-de] { display: revert; }
html[lang="en"] [data-lang-en] { display: revert; }

/* ---------- One-page anchors ---------- */
/* Offset so anchored sections clear the fixed nav when jumped to. */
section[id], div[id] { scroll-margin-top: 92px; }
