/* ═══════════════════════════════════════════════════════════
   DEMO-MENÜKARTE — „AURUM" (fiktives Fine-Dining-Restaurant)
   Eigenes Farb- und Typo-System: Die Karte soll wie ein fremdes
   Restaurant wirken, nicht wie die Kaiser-Agency-Seite.
   Wird NUR von demo-menu.html geladen.
   ═══════════════════════════════════════════════════════════ */

:root {
  --night:     #0a0908;
  --night-2:   #100e0b;
  --card:      #17140f;
  --card-hi:   #1e1a13;
  --gold:      #c9a961;
  --gold-soft: #e3cd96;
  --gold-deep: #8c7239;
  --cream:     #f3efe4;
  --muted:     rgba(243, 239, 228, .58);
  --faint:     rgba(243, 239, 228, .34);
  --line:      rgba(201, 169, 97, .20);
  --line-soft: rgba(243, 239, 228, .09);

  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --sans: 'Sora', system-ui, -apple-system, sans-serif;
  --pad: clamp(18px, 4vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--night); }

/* ── Demo-Hinweis ──────────────────────────────────────── */
.demo-bar {
  background: var(--gold);
  color: var(--night);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  text-align: center; padding: 9px var(--pad);
  position: relative; z-index: 60;
}
.demo-bar a { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }

/* ── Kopf ──────────────────────────────────────────────── */
.m-head {
  text-align: center;
  padding: clamp(38px, 7vw, 74px) var(--pad) clamp(22px, 4vw, 34px);
  position: relative;
}
.m-head::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%); width: 42px; height: 1px; background: var(--gold-deep);
}
.m-crest {
  width: 34px; height: 34px; margin: 0 auto 20px;
  border: 1px solid var(--gold-deep); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.m-crest svg { width: 17px; height: 17px; stroke: var(--gold); fill: none; stroke-width: 1.2; }
.m-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(37px, 8vw, 74px); line-height: 1;
  letter-spacing: .28em; text-indent: .28em;
  color: var(--cream);
}
.m-tagline {
  margin-top: 16px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
}
.m-sub {
  margin-top: 14px; font-size: 13px; color: var(--muted);
  max-width: 46ch; margin-inline: auto; line-height: 1.75;
}

/* ── Sprachen ──────────────────────────────────────────── */
.m-langs { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.m-lang {
  font: inherit; cursor: pointer;
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  padding: 7px 13px; border-radius: 2px;
  background: transparent; border: 1px solid var(--line);
  color: var(--faint);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.m-lang:hover { color: var(--cream); border-color: var(--gold-deep); }
.m-lang[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }
.m-lang:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }

/* ── Kategorie-Icons (klebrig) ─────────────────────────── */
.m-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 8, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  padding: 0 var(--pad);
}
.m-nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: center; gap: clamp(6px, 3vw, 30px);
}
.m-tab {
  flex: 0 1 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px clamp(12px, 3vw, 22px) 12px;
  border: none; background: transparent; cursor: pointer;
  color: var(--faint); font: inherit;
  border-bottom: 2px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.m-tab svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.m-tab span {
  font-size: 9.5px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  white-space: nowrap;
}
.m-tab:hover { color: var(--cream); }
.m-tab.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.m-tab:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -4px; }

/* ── Kategorien ────────────────────────────────────────── */
.m-body { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad) 20px; }
.m-cat { padding-top: clamp(46px, 7vw, 82px); scroll-margin-top: 84px; }
.m-cat-head { text-align: center; margin-bottom: clamp(26px, 4vw, 42px); }
.m-cat-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(25px, 4vw, 40px); letter-spacing: .1em;
  text-indent: .1em; color: var(--cream);
}
.m-cat-head p { margin-top: 9px; font-size: 12px; color: var(--faint); letter-spacing: .05em; }

/* ── Gerichte ──────────────────────────────────────────── */
.m-dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.m-dish {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .35s ease, transform .35s ease;
}
.m-dish:hover { border-color: var(--line); transform: translateY(-3px); }
.m-photo { aspect-ratio: 1; overflow: hidden; background: var(--night-2); position: relative; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.m-dish:hover .m-photo img { transform: scale(1.05); }
.m-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,.55), transparent 42%);
  pointer-events: none;
}
.m-info { padding: 18px 19px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.m-title-row { display: flex; align-items: baseline; gap: 14px; }
.m-dish h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 19px; letter-spacing: .015em; line-height: 1.28; color: var(--cream);
  flex: 1;
}
.m-price {
  font-size: 15px; font-weight: 600; color: var(--gold);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.m-desc { font-size: 12.5px; line-height: 1.72; color: var(--muted); }
.m-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.m-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  border: 1px solid var(--line); color: var(--gold-deep);
}
.m-tag.veg { border-color: rgba(138, 168, 106, .35); color: #8aa86a; }

/* Allergene aufklappbar — zeigt, dass Pflichtangaben die Karte nicht zumüllen */
.m-allerg { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.m-allerg-btn {
  font: inherit; cursor: pointer; background: none; border: none; padding: 0;
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--faint); display: flex; align-items: center; gap: 7px;
  transition: color .25s ease;
}
.m-allerg-btn:hover { color: var(--gold); }
.m-allerg-btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.m-allerg-btn::after {
  content: ''; width: 5px; height: 5px; margin-top: -2px;
  border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg); transition: transform .3s ease;
}
.m-allerg-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 2px; }
.m-allerg-list {
  font-size: 11.5px; line-height: 1.7; color: var(--muted);
  padding-top: 9px; display: none;
}
.m-allerg-list[data-open="true"] { display: block; }

/* ── Fuß ───────────────────────────────────────────────── */
.m-foot {
  text-align: center; padding: clamp(40px, 6vw, 66px) var(--pad);
  border-top: 1px solid var(--line-soft); margin-top: clamp(50px, 7vw, 84px);
}
.m-foot .m-hint { font-size: 11.5px; color: var(--faint); max-width: 52ch; margin-inline: auto; line-height: 1.8; }

/* Kaiser-Agency-Abbinder */
.m-cta {
  background: var(--night-2); border-top: 1px solid var(--line);
  padding: clamp(44px, 7vw, 76px) var(--pad); text-align: center;
}
.m-cta .eyebrow-d {
  font-size: 10.5px; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold);
}
.m-cta h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 4vw, 39px); line-height: 1.2; margin: 16px 0 0;
  letter-spacing: .01em;
}
.m-cta p { margin: 15px auto 28px; font-size: 13.5px; color: var(--muted); max-width: 50ch; line-height: 1.75; }
.m-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.m-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--gold); color: var(--night);
  transition: transform .25s ease, box-shadow .25s ease;
}
.m-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 169, 97, .22); }
.m-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--cream); }
.m-btn.ghost:hover { border-color: var(--gold); box-shadow: none; }
.m-btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

/* ── Arabisch ──────────────────────────────────────────
   Flexbox und Textausrichtung dreht der Browser über dir="rtl" bereits selbst —
   ein zusätzliches row-reverse würde die Zeile wieder zurückdrehen.
   Zu korrigieren ist nur die Sperrung: arabische Buchstaben werden verbunden,
   letter-spacing reißt das Schriftbild auseinander. */
[dir="rtl"] .m-name { letter-spacing: .05em; text-indent: 0; }
[dir="rtl"] .m-cat-head h2 { letter-spacing: .02em; text-indent: 0; }
[dir="rtl"] .m-tagline,
[dir="rtl"] .m-tab span,
[dir="rtl"] .m-tag,
[dir="rtl"] .m-allerg-btn,
[dir="rtl"] .eyebrow-d { letter-spacing: .04em; }

/* ── Reveal ────────────────────────────────────────────── */
.dv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.dv.on { opacity: 1; transform: none; }

/* ── Schmale Screens ───────────────────────────────────── */
@media (max-width: 900px) {
  .m-dishes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .m-dishes { grid-template-columns: 1fr; gap: 14px; }
  .m-nav-inner { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .m-nav-inner::-webkit-scrollbar { display: none; }
  .m-tab { padding-inline: 16px; }
  .m-name { font-size: clamp(31px, 11vw, 46px); letter-spacing: .2em; text-indent: .2em; }
  .m-photo { aspect-ratio: 16 / 10; }
  .m-lang { padding: 11px 16px; } /* größeres Touch-Ziel am Tisch */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dv { opacity: 1; transform: none; transition: none; }
  .m-dish, .m-photo img, .m-btn { transition: none; }
}
