/* Marika Büfé v2
   A büfé fotóin minden étel ugyanott áll: fehér tányér, piros-fehér kockás
   abrosz. Az oldal ezt veszi át — a mai menü az abroszon fekszik, a fogások
   kerek tányérokként. Minden más csendes: zománckék tinta, fehér. */

:root {
  --ink: #1d2b4f;          /* zománcos bögre pereme */
  --ink-soft: #4b5878;
  --paprika: #c2261b;      /* abrosz piros */
  --paprika-deep: #9c1d14;
  --plate: #ffffff;
  --enamel: #eef1f5;       /* oldal háttér */
  --oak: #d8b98c;          /* fa asztal, csak apró jelzésekre */
  --line: #d5dbe5;

  /* szerepek: ezeket cseréli a sötét mód */
  --text: var(--ink);            /* szöveg */
  --bg: var(--enamel);           /* oldal háttér */
  --surface: #ffffff;            /* kártyák, fehér szakaszok */
  --bordo: #6b1f2b;             /* bordó, mint a régi oldalon (#693939) – kicsit borosabb */
  --rim: var(--bordo);           /* perem: kártya keret, kódkarika */
  --strip: var(--bordo);         /* sötét sávok: futószöveg, Gyere be, inverz sáv, kijelölt nap */
  --strip-soft: #ecc9cd;         /* halvány szöveg a bordó sávon */
  --tint: #fff3ef;               /* leves, megjegyzés háttér */
  --accent-text: var(--paprika-deep);
  --cloth: #ffffff;              /* abrosz alapszín */
  --shadow: rgba(29,43,79,.55);

  --f: "Bricolage Grotesque", system-ui, sans-serif;
  --s-0: .875rem;
  --s-1: 1rem;
  --s-2: 1.25rem;
  --s-3: 1.6rem;
  --s-4: 2.25rem;
  --s-5: clamp(2.6rem, 6vw, 4.2rem);

  --wrap: 72rem;
  --gingham: 44px;
  color-scheme: light;
}

/* Sötét mód: este, sötétben olvasva ne vakítson. Az abrosz mélyebb alapra kerül,
   a tányérok fehérek maradnak (mint a valóságban), a piros kicsit világosabb,
   hogy a sötét háttéren is olvasható legyen. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #e8ecf5;
  --ink-soft: #a9b3ca;
  --bg: #0f1526;
  --surface: #192139;
  --enamel: #222b46;
  --line: #2f3b5c;
  --rim: #a3505d;
  --strip: #3a0f17;
  --strip-soft: #e3b9bf;
  --tint: #2b2234;
  --accent-text: #ff8a7a;
  --paprika: #e0483b;
  --cloth: #26304d;
  --shadow: rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: var(--s-1);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: .18em; }
a:hover { color: var(--paprika); }
:focus-visible { outline: 3px solid var(--paprika); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.015em; }
h2 { font-size: var(--s-4); font-variation-settings: "wdth" 85; }
h3 { font-size: var(--s-3); font-variation-settings: "wdth" 90; }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--strip); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* --- fejléc ---------------------------------------------------------- */
.top {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto; padding: .75rem 1.25rem;
}
.brand img { width: 92px; height: auto; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-weight: 600; }
.nav a { color: var(--text); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--paprika); color: var(--text); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.open {
  margin: 0; font-weight: 600; font-size: var(--s-0);
  display: flex; align-items: center; gap: .5rem; white-space: nowrap;
}
/* kis négyzetes ikongombok: világos/sötét mód, admin */
.icon-btn {
  width: 2.5rem; height: 2.5rem; flex: 0 0 auto; border-radius: 10px; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--text); background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none;
}
.icon-btn:hover { box-shadow: inset 0 0 0 2px var(--rim); color: var(--text); }
.icon-btn svg { width: 1.3rem; height: 1.3rem; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.open::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ink-soft); flex: 0 0 auto; }
.open.is-open::before { background: #2f8a4a; box-shadow: 0 0 0 4px rgba(47,138,74,.18); }

/* --- az abrosz ------------------------------------------------------- */
.table {
  background-color: var(--cloth);
  background-image:
    linear-gradient(90deg, rgba(194,38,27,.55) 50%, transparent 50%),
    linear-gradient(rgba(194,38,27,.55) 50%, transparent 50%);
  background-size: var(--gingham) var(--gingham);
  padding: clamp(1.5rem, 5vw, 4.5rem) 0;
  overflow: hidden;
}
.table-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem;
  display: grid; grid-template-columns: minmax(0, 40rem) 1fr; gap: 2rem; align-items: center;
}
.card {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 0 0 7px var(--rim), 0 24px 50px -18px var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  position: relative;
}
.card h1 { font-size: var(--s-5); font-variation-settings: "wdth" 78; margin: 0; }
.card-date { font-size: var(--s-2); color: var(--accent-text); font-weight: 600; margin: .1rem 0 1.4rem; }
.card-foot { font-size: var(--s-0); color: var(--ink-soft); margin: 1.2rem 0 0; }
.loading, .empty { color: var(--ink-soft); }
.empty a { font-weight: 600; }

.dish-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.dish {
  display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .9rem; align-items: center;
  padding: .55rem 0; border-top: 1px dashed var(--line);
}
.dish:first-child { border-top: 0; }
.dish-code {
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: var(--s-2);
  background: var(--enamel); color: var(--text); box-shadow: inset 0 0 0 3px var(--rim);
  overflow: hidden; position: relative;
}
.dish-code img { width: 100%; height: 100%; object-fit: cover; }
.dish-code .tag {
  position: absolute; right: -2px; bottom: -2px; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--strip); color: #fff; font-size: .78rem; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.dish.is-soup .dish-code { background: var(--tint); }
.dish-name { font-size: var(--s-2); font-weight: 600; line-height: 1.25; }
.dish-name small { display: block; font-size: var(--s-0); font-weight: 400; color: var(--ink-soft); margin-top: .1rem; }
.dish-price { font-size: var(--s-2); font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish-price span { font-size: var(--s-0); font-weight: 600; margin-left: .15em; }
.soup-label { font-size: var(--s-0); color: var(--ink-soft); font-weight: 400; display: block; }
.day-note { background: var(--tint); border-left: 4px solid var(--paprika); padding: .6rem .9rem; border-radius: 0 8px 8px 0; margin: .8rem 0 0; }

/* tányérok az abroszon */
.plates { position: relative; min-height: 26rem; }
.plate {
  position: absolute; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 10px #fff, 0 0 0 11px #e5e8ee, 0 26px 40px -16px rgba(0,0,0,.45);
  overflow: hidden;
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate:nth-child(1) { width: 17rem; height: 17rem; left: 6%;  top: 3%; }
.plate:nth-child(2) { width: 13rem; height: 13rem; left: 52%; top: 0; }
.plate:nth-child(3) { width: 14rem; height: 14rem; left: 40%; top: 50%; }
.plate:nth-child(4) { width: 10rem; height: 10rem; left: 4%;  top: 66%; }

@media (prefers-reduced-motion: no-preference) {
  .plate { animation: setdown .7s cubic-bezier(.2,.8,.25,1) both; }
  .plate:nth-child(2) { animation-delay: .12s; }
  .plate:nth-child(3) { animation-delay: .24s; }
  .plate:nth-child(4) { animation-delay: .36s; }
  @keyframes setdown {
    from { opacity: 0; transform: translateY(-18px) scale(1.06) rotate(-6deg); box-shadow: 0 0 0 10px #fff, 0 0 0 11px #e5e8ee, 0 50px 60px -10px rgba(0,0,0,.25); }
  }
}

.ticker {
  margin: 0; max-width: none; background: var(--strip); color: #fff; text-align: center;
  padding: .7rem 1.25rem; font-weight: 500;
}

/* --- heti menü ------------------------------------------------------- */
.week { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.week-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; margin-bottom: 1.2rem; }
.week-head h2 { margin: 0; }
.week-range { margin: 0; color: var(--ink-soft); font-weight: 600; }
.week-switch { margin-left: auto; display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.week-switch button, .days button {
  font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--text); cursor: pointer;
  padding: .45rem 1rem; border-radius: 999px;
}
.week-switch button[aria-pressed="true"] { background: var(--strip); color: #fff; }

.days { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.days button {
  flex: 1 0 auto; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  padding: .65rem 1rem; text-align: left; line-height: 1.2;
}
.days button small { display: block; font-weight: 400; color: var(--ink-soft); font-size: var(--s-0); }
.days button[aria-selected="true"] { background: var(--strip); color: #fff; box-shadow: inset 0 0 0 1.5px var(--rim); }
.days button[aria-selected="true"] small { color: var(--strip-soft); }
.days button.is-past:not([aria-selected="true"]) { opacity: .55; }
.days button.is-today::after { content: "ma"; display: inline-block; margin-left: .4rem; font-size: .72rem; background: var(--paprika); color: #fff; border-radius: 999px; padding: 0 .45rem; vertical-align: .15em; }

.day-panel { background: var(--surface); border-radius: 16px; padding: clamp(1rem, 3vw, 1.8rem); margin-top: .6rem; box-shadow: inset 0 0 0 1px var(--line); }
.allergen-key { margin-top: 1.2rem; color: var(--ink-soft); font-size: var(--s-0); }
.allergen-key summary { cursor: pointer; font-weight: 600; color: var(--text); }
.allergen-key p { margin-top: .6rem; max-width: 80ch; }

/* --- állandó --------------------------------------------------------- */
.perm { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--surface); }
.lede { color: var(--ink-soft); font-size: var(--s-2); }
.perm-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.perm-table th { text-align: right; font-size: var(--s-0); color: var(--ink-soft); font-weight: 600; padding: .4rem .6rem; border-bottom: 2px solid var(--rim); }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; padding-left: 0; }
.perm-table td { padding: .8rem .6rem; border-bottom: 1px dashed var(--line); text-align: right; font-weight: 700; white-space: nowrap; }
.perm-table td:first-child { font-weight: 500; white-space: normal; font-size: var(--s-2); }
.fineprint { font-size: var(--s-0); color: var(--ink-soft); margin-top: 1rem; }

/* --- rólunk ---------------------------------------------------------- */
.about { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.about-grid h2 { font-size: var(--s-4); max-width: 18ch; }
.photo { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 6px var(--surface), 0 20px 40px -20px var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo-b { order: 4; }
.photo-b img { aspect-ratio: 4 / 3.4; }
.about-grid > .about-text:nth-of-type(2) { order: 3; }

/* --- hol vagyunk ----------------------------------------------------- */
.visit { background: var(--strip); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.visit a { color: #fff; }
.visit-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; }
.addr { font-size: var(--s-3); font-weight: 650; line-height: 1.2; margin-bottom: .4rem; }
.hours { font-size: var(--s-2); color: var(--strip-soft); }
.btn {
  display: inline-block; background: var(--paprika); color: #fff; text-decoration: none; font-weight: 700;
  padding: .8rem 1.3rem; border-radius: 999px;
}
.btn:hover { background: var(--paprika-deep); color: #fff; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: var(--s-2); font-weight: 600; }

.foot { background: var(--surface); padding: 1.5rem 0; font-size: var(--s-0); color: var(--ink-soft); }
.foot-row { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: center; }
.foot-row p { margin: 0; }
.admin-link { margin-left: auto; color: var(--ink-soft); }

/* --- mobil ----------------------------------------------------------- */
@media (max-width: 900px) {
  .table-inner { grid-template-columns: 1fr; }
  .plates { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .photo-b, .about-grid > .about-text:nth-of-type(2) { order: 0; }
  .visit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gingham: 30px; }
  .top { gap: .4rem 1rem; padding-top: .5rem; padding-bottom: .5rem; }
  .nav { order: 3; width: 100%; gap: 1.1rem; font-size: var(--s-0); overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; scrollbar-width: none; }
  .ticker { font-size: var(--s-0); }
  .brand img { width: 60px; }
  .dish { grid-template-columns: 2.9rem 1fr auto; gap: .7rem; }
  .dish-code { width: 2.9rem; height: 2.9rem; font-size: var(--s-1); }
  .dish-name, .dish-price { font-size: 1.07rem; }
  .week-switch { margin-left: 0; }
  .perm-table td:first-child { font-size: var(--s-1); }
  .perm-table th, .perm-table td { padding-left: .3rem; padding-right: .3rem; }
}

/* elfogyott */
.sold-tag { display: inline-block; margin-left: .5rem; vertical-align: .15em; font-size: .78rem; font-weight: 700;
  background: var(--paprika); color: #fff; border-radius: 999px; padding: .05rem .55rem; }
.dish.is-soldout .dn { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--paprika); color: var(--ink-soft); }
.dish.is-soldout .dish-code, .dish.is-soldout .dish-price { opacity: .45; }

/* felolvasás */
.listen {
  position: absolute; top: clamp(1rem, 3vw, 1.6rem); right: clamp(1rem, 3vw, 1.6rem);
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font: inherit; font-weight: 700; font-size: var(--s-0); color: var(--text);
  background: var(--enamel); border: 0; border-radius: 999px; padding: .55rem 1rem .55rem .75rem;
  box-shadow: inset 0 0 0 2px var(--rim);
}
.listen:hover { background: var(--surface); }
.listen svg { width: 1.4rem; height: 1.4rem; flex: 0 0 auto; }
.listen .i-pause, .listen .listen-spin { display: none; }
.listen[aria-pressed="true"] { background: var(--strip); color: #fff; }
.listen[aria-pressed="true"] .i-play { display: none; }
.listen[aria-pressed="true"] .i-pause { display: block; }
.listen.is-loading .i-play, .listen.is-loading .i-pause { display: none; }
.listen.is-loading .listen-spin { display: block; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  border: 3px solid rgba(29,43,79,.2); border-top-color: var(--paprika); }
@media (prefers-reduced-motion: no-preference) { .listen.is-loading .listen-spin { animation: listen-spin .8s linear infinite; } }
@keyframes listen-spin { to { transform: rotate(360deg); } }
/* inverz sáv a kártya alján, gyengénlátó ikonnal */
.card { --pad: clamp(1.4rem, 4vw, 2.6rem); }
.assist {
  display: flex; align-items: center; gap: .9rem;
  margin: 1.3rem calc(-1 * var(--pad)) calc(-1 * var(--pad)); padding: .9rem var(--pad);
  background: var(--strip); color: #fff; border-radius: 0 0 22px 22px;
}
.assist p { margin: 0; font-size: var(--s-1); font-weight: 500; line-height: 1.4; }
.assist-open {
  flex: 0 0 auto; width: 3.4rem; height: 2.7rem; border: 0; border-radius: 12px; cursor: pointer;
  background: #fff; color: var(--ink); display: grid; place-items: center; padding: 0;
}
.assist-open svg { width: 2.4rem; height: 1.8rem; }
.assist-open svg path:nth-of-type(2) { stroke: #fff; }
.assist-open:hover { background: var(--enamel); }

/* nagybetűs nézet */
.assist-big {
  border: 0; border-radius: 26px; padding: clamp(1.6rem, 5vw, 3rem); width: min(44rem, 94vw);
  color: var(--text); background: var(--surface); box-shadow: 0 0 0 8px var(--rim), 0 40px 80px -20px rgba(0,0,0,.6); text-align: center;
}
.assist-big::backdrop { background: rgba(14, 20, 38, .82); }
.assist-big p { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 650; line-height: 1.25; margin: .6rem auto 1.6rem; max-width: 22ch; }
.assist-big-icon svg { width: 5rem; height: 3.8rem; color: var(--text); }
.assist-big-icon svg path:nth-of-type(2) { stroke: var(--surface); }
.assist-close {
  position: absolute; top: .9rem; right: .9rem; width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--enamel); color: var(--text); font-size: 1.3rem;
}
.listen.listen-big {
  position: static; font-size: clamp(1.4rem, 4vw, 2rem); padding: 1rem 2rem 1rem 1.6rem; gap: .8rem;
  box-shadow: inset 0 0 0 3px var(--rim);
}
.listen.listen-big svg { width: 2.6rem; height: 2.6rem; }
.listen.listen-big.is-loading .listen-spin { width: 2.2rem; height: 2.2rem; border-width: 4px; }
@media (max-width: 640px) {
  .listen.listen-big .listen-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (max-width: 640px) {
  .listen { padding: .7rem; }
  .listen .listen-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* sötét módban a kép nélküli "tányér" és a gombsor apró igazítása */
:root[data-theme="dark"] .listen.is-loading .listen-spin { border-color: rgba(255,255,255,.2); border-top-color: var(--paprika); }
:root[data-theme="dark"] .assist-open { background: var(--text); }
@media (max-width: 640px) {
  .top-tools { gap: .4rem; }
  .icon-btn { width: 2.25rem; height: 2.25rem; }
}

/* --- banner fotó a mai menü mögött (az abrosz-minta helyett) ------------------
   Gépen a fotó a teljes sáv háttere: a kártya balra, a fotó lényege (a lábas és a
   tálalás) jobbra látszik, ezért a kis tányérképek itt nem kellenek.
   Mobilon a fotó sávként a kártya fölé kerül, a kártya kicsit rácsúszik. */
.table.has-banner { position: relative; background: var(--bg); padding: clamp(2rem, 5vw, 4.5rem) 0; min-height: min(46vw, 640px); display: flex; align-items: center; }
.table.has-banner .table-inner { position: relative; z-index: 1; width: 100%; }
.table.has-banner .plates { display: none; }
.banner { position: absolute; inset: 0; z-index: 0; margin: 0; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
/* a kártya felőli oldalon enyhe sötétítés, hogy a kártya pereme ne vesszen el a fotóban */
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,26,.45) 0%, rgba(10,14,26,.12) 42%, transparent 60%); }
:root[data-theme="dark"] .banner::after { background: linear-gradient(90deg, rgba(5,8,16,.7) 0%, rgba(5,8,16,.35) 50%, rgba(5,8,16,.2) 100%); }
@media (max-width: 900px) {
  .table.has-banner { display: block; min-height: 0; padding: 0 0 clamp(1.5rem, 5vw, 2.5rem); }
  .banner { position: relative; display: block; height: clamp(190px, 46vw, 340px); }
  .banner::after { background: linear-gradient(180deg, transparent 55%, rgba(10,14,26,.35) 100%); }
  .table.has-banner .table-inner { margin-top: -3.2rem; }
}

/* napi ajánlat sor a mai menüben */
.dish.is-offer .dish-code { background: var(--tint); color: var(--paprika); box-shadow: inset 0 0 0 3px var(--paprika); }
.offer-label { color: var(--accent-text); font-weight: 700; }
