/* ============================================================================
   MARILLE — styles.css
   Токены → база → компоненты. Ни одного цвета/размера мимо переменных.
   Палитра: лоден-зелёный, абрикос (сдержанно), известь, латунь, слива.
   ============================================================================ */

:root {
  /* ---- Color ---- */
  --loden:        #13291F;
  --loden-tief:   #0C1712;
  --loden-line:   #1E3B2D;
  --kalk:         #E8E3D6;
  --kalk-soft:    #EEEAE0;
  --marille:      #E39B54;
  --marille-hell: #F2C88C;
  --messing:      #B0904E;
  --zwetschke:    #43263A;
  --kreide:       #F3EEE3;
  --kreide-dim:   rgba(243, 238, 227, 0.66);
  --ink:          #17251C;   /* текст на светлом */
  --ink-dim:      rgba(23, 37, 28, 0.62);

  /* ---- Type ---- */
  --f-display: 'Bodoni Moda', 'Times New Roman', serif;
  --f-body:    'Karla', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;
  --fs-hero:   clamp(2.6rem, 7.5vw, 5.6rem);
  --fs-h2:     clamp(1.7rem, 3.4vw, 2.7rem);
  --fs-label:  0.72rem;
  --fs-body:   clamp(1rem, 0.6vw + 0.85rem, 1.075rem);
  --fs-mono:   0.8125rem;

  /* ---- Space / geometry ---- */
  --rail-w:  clamp(2.6rem, 6vw, 5rem);
  --pad-x:   clamp(1.25rem, 5vw, 5rem);
  --sec-y:   clamp(4rem, 9vw, 8.5rem);
  --maxw:    1320px;
  --r-card:  2px;
  --r-token: 999px;
  --ease:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --line-messing: rgba(176, 144, 78, 0.42);
}

/* ============================ RESET / BASE ============================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--kreide);
  background: var(--loden);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--marille); outline-offset: 3px; border-radius: 1px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: var(--marille); color: var(--loden-tief); padding: .6rem 1rem;
  font-weight: 700; border-radius: 2px; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ============================ SECTIONS / RAIL ============================ */
.section, .hero {
  position: relative;
  padding: var(--sec-y) var(--pad-x) var(--sec-y) calc(var(--pad-x) + var(--rail-w));
}
.section > *, .hero > * { max-width: var(--maxw); margin-inline: auto; }

.section--dark   { background: var(--loden); color: var(--kreide); }
.section--darker { background: var(--loden-tief); color: var(--kreide); }
.section--light  { background: var(--kalk); color: var(--ink); }
.section--soft   { background: var(--kalk-soft); }

/* латунный рельс с номером секции — signature опора вёрстки */
[data-rail]::before {
  content: attr(data-rail);
  position: absolute;
  left: calc(var(--pad-x) - .1rem);
  top: var(--sec-y);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: .1em;
  color: var(--messing);
  writing-mode: vertical-rl;
  padding-top: 2.4rem;
}
[data-rail]::after {
  content: '';
  position: absolute;
  left: calc(var(--pad-x) + .35rem);
  top: var(--sec-y);
  width: 1px; height: 1.9rem;
  background: linear-gradient(var(--messing), transparent);
}

/* ============================ HEADINGS ============================ */
.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-label {
  font-family: var(--f-body); font-size: var(--fs-label); font-weight: 700;
  text-transform: uppercase; letter-spacing: .26em; color: var(--messing);
  margin-bottom: .9rem;
}
.section-title {
  font-family: var(--f-display); font-weight: 500; font-size: var(--fs-h2);
  line-height: 1.04; letter-spacing: -0.01em;
}
.section-lead {
  max-width: 46ch; margin: 1rem auto 0; color: var(--kreide-dim);
  font-size: 1.02rem;
}
.section--light .section-lead { color: var(--ink-dim); }
.section-head[style*="left"] .section-lead,
.section-head[style*="left"] { margin-inline: 0; }
.section-head[style*="left"] .section-lead { margin-left: 0; }

/* ============================ BUTTONS / CHIPS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem; font-weight: 700; font-size: .92rem;
  border-radius: var(--r-card); letter-spacing: .01em;
  transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--marille); color: var(--loden-tief); }
.btn-accent:hover { background: var(--marille-hell); box-shadow: 0 6px 22px -8px var(--marille); }
.btn-ghost {
  border: 1px solid var(--line-messing); color: inherit; background: transparent;
}
.btn-ghost:hover { border-color: var(--messing); color: var(--messing); }
.btn-block { width: 100%; }

.chip {
  padding: .38rem .9rem; border-radius: var(--r-token); font-size: .82rem; font-weight: 500;
  border: 1px solid var(--line-messing); color: var(--kreide-dim);
  transition: all .16s var(--ease); white-space: nowrap;
}
.section--light .chip { color: var(--ink-dim); }
.chip:hover { border-color: var(--messing); color: var(--messing); }
.chip.is-active { background: var(--marille); color: var(--loden-tief); border-color: var(--marille); font-weight: 700; }

/* ============================ HEADER ============================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), backdrop-filter .35s, box-shadow .35s, padding .3s;
  padding: clamp(.8rem, 2vw, 1.5rem) var(--pad-x);
}
.site-header.is-stuck {
  background: rgba(12, 23, 18, 0.86); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line-messing);
  padding-top: .7rem; padding-bottom: .7rem;
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.logo { display: flex; align-items: baseline; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .02em; }
.logo-mark { color: var(--marille); font-weight: 600; }
.logo-word { font-weight: 400; }
.main-nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: .92rem; }
.main-nav a { color: var(--kreide-dim); transition: color .16s; position: relative; }
.main-nav a:hover { color: var(--kreide); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--marille); transition: width .22s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }

.status-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .72rem; color: var(--kreide-dim);
  padding: .32rem .7rem; border: 1px solid var(--line-messing); border-radius: var(--r-token);
  white-space: nowrap;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--zwetschke); }
.status-pill.is-open .status-dot { background: var(--marille); box-shadow: 0 0 0 0 var(--marille); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(227,155,84,.6);} 70%{box-shadow:0 0 0 7px rgba(227,155,84,0);} 100%{box-shadow:0 0 0 0 rgba(227,155,84,0);} }

.lang-switch { display: flex; gap: .1rem; }
.lang-switch button {
  font-family: var(--f-mono); font-size: .72rem; color: var(--kreide-dim);
  padding: .3rem .4rem; letter-spacing: .05em; transition: color .15s;
}
.lang-switch button:hover { color: var(--kreide); }
.lang-switch button.is-active { color: var(--marille); font-weight: 700; }

/* ============================ HERO ============================ */
.hero { padding-top: clamp(7rem, 13vh, 10rem); min-height: 100svh; display: flex; align-items: center; }
.hero-grid {
  width: 100%; display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--r-card); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-cap {
  position: absolute; left: 0; bottom: 0; right: 0;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em;
  padding: 1.4rem 1rem .8rem; color: var(--kreide);
  background: linear-gradient(transparent, rgba(12,23,18,.88));
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.kicker {
  font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .24em;
  color: var(--messing); font-weight: 700; margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--f-display); font-weight: 600; font-size: var(--fs-hero);
  line-height: .92; letter-spacing: .04em; display: flex; gap: .04em; margin-bottom: 1rem;
}
.hero-title span { display: inline-block; }
.hero-title span:nth-child(1) { color: var(--marille); }
.hero-sub { font-family: var(--f-mono); font-size: .78rem; color: var(--kreide-dim); letter-spacing: .03em; margin-bottom: 1.8rem; }
.hero-tagline { font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.7rem); color: var(--kreide); margin-bottom: 2rem; }
.hero-meta { width: 100%; max-width: 27rem; border-top: 1px solid var(--line-messing); padding-top: 1rem; }
.hero-price-line { display: flex; align-items: baseline; gap: .5rem; font-family: var(--f-mono); font-size: .82rem; color: var(--kreide-dim); }
.dotfill { flex: 1; border-bottom: 1px dotted var(--line-messing); transform: translateY(-3px); }
#heroPrice { color: var(--marille); font-weight: 700; }
.seats { margin-top: .7rem; font-size: .74rem; color: var(--marille-hell); }
.hero-scroll { margin-top: 2rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--kreide-dim); border-bottom: 1px solid var(--line-messing); padding-bottom: .3rem; }
.hero-scroll:hover { color: var(--marille); border-color: var(--marille); }

/* ============================ MENU ============================ */
.menu-controls { margin-bottom: 2.4rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--line-messing); margin-bottom: 1.4rem; }
.tab {
  font-family: var(--f-body); font-weight: 500; font-size: .95rem;
  padding: .7rem 1.1rem; color: var(--kreide-dim); position: relative; transition: color .16s;
}
.tab:hover { color: var(--kreide); }
.tab.is-active { color: var(--kreide); font-weight: 700; }
.tab.is-active::after { content: ''; position: absolute; left: 1.1rem; right: 1.1rem; bottom: -1px; height: 2px; background: var(--marille); }
.menu-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-print { flex-shrink: 0; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.card {
  background: var(--loden-line); border: 1px solid rgba(176,144,78,.16);
  border-radius: var(--r-card); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease), border-color .28s, box-shadow .28s, opacity .35s, scale .35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-messing); box-shadow: 0 18px 40px -22px rgba(0,0,0,.7); }
.card.is-hidden { display: none; }
.card.filtering { opacity: 0; scale: .97; }
.card.soldout { opacity: .55; }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--loden-tief); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.badge-ai {
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(12,23,18,.75); color: var(--marille-hell); padding: .25rem .5rem; border-radius: var(--r-token);
  border: 1px solid var(--line-messing); backdrop-filter: blur(4px);
}
.card-soldout-flag {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(12,23,18,.55); font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--kreide);
}
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.card-name { font-family: var(--f-display); font-weight: 500; font-size: 1.16rem; line-height: 1.15; }
.card-price { font-family: var(--f-mono); font-weight: 700; font-size: .92rem; color: var(--marille); white-space: nowrap; }
.card-price .unit { color: var(--kreide-dim); font-weight: 400; font-size: .72rem; display: block; text-align: right; }
.card-desc { font-size: .92rem; color: var(--kreide-dim); line-height: 1.5; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .3rem; }
.allergens { display: flex; gap: .28rem; flex-wrap: wrap; }
.allergen {
  font-family: var(--f-mono); font-size: .66rem; width: 1.35rem; height: 1.35rem;
  display: grid; place-items: center; border: 1px solid var(--line-messing);
  border-radius: 50%; color: var(--messing); cursor: help; position: relative;
}
.allergen:hover, .allergen:focus-visible { border-color: var(--marille); color: var(--marille); }
.allergen[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
  background: var(--loden-tief); color: var(--kreide); font-family: var(--f-body); font-size: .72rem;
  padding: .35rem .6rem; border-radius: 3px; white-space: nowrap; border: 1px solid var(--line-messing);
  z-index: 5; pointer-events: none;
}
.tags { display: flex; gap: .3rem; }
.tag {
  font-size: .68rem; padding: .2rem .5rem; border-radius: var(--r-token);
  background: rgba(176,144,78,.12); color: var(--messing); border: 1px solid transparent; white-space: nowrap;
}

.menu-empty { text-align: center; padding: 3.5rem 1rem; border: 1px dashed var(--line-messing); border-radius: var(--r-card); margin-top: 1rem; }
.empty-title { font-family: var(--f-display); font-size: 1.4rem; margin-bottom: .5rem; }
.empty-body { color: var(--kreide-dim); margin-bottom: 1.4rem; }

.legend { margin-top: 3rem; border-top: 1px solid var(--line-messing); padding-top: 1.4rem; }
.legend-title { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .2em; color: var(--messing); margin-bottom: .9rem; font-weight: 700; }
.legend-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .4rem .9rem; }
.legend-list li { font-family: var(--f-mono); font-size: .74rem; color: var(--kreide-dim); }
.legend-list b { color: var(--marille); margin-right: .4rem; }

/* ============================ WEINBEGLEITUNG ============================ */
.pairings { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.pair {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem;
  padding: 1rem 1.2rem; border: 1px solid rgba(23,37,28,.14); border-radius: var(--r-card);
  background: rgba(255,255,255,.35); transition: border-color .2s, background .2s;
}
.pair:hover { border-color: var(--messing); background: rgba(255,255,255,.6); }
.pair-dish, .pair-wine { display: flex; flex-direction: column; gap: .15rem; }
.pair-wine { text-align: right; }
.pair-label { font-family: var(--f-mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-dim); }
.pair-name { font-family: var(--f-display); font-size: 1rem; line-height: 1.15; transition: color .2s; }
.pair:hover .pair-name { color: var(--zwetschke); }
.pair-link { color: var(--messing); font-size: 1.2rem; transition: transform .3s var(--ease); }
.pair:hover .pair-link { transform: rotate(90deg) scale(1.15); color: var(--marille); }

/* ============================ MITTAGSMENÜ ============================ */
.lunch { max-width: 720px; margin-inline: auto; }
.lunch-tabs { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.lunch-tab {
  padding: .5rem .9rem; border-radius: var(--r-token); font-size: .85rem; font-weight: 500;
  border: 1px solid rgba(23,37,28,.16); color: var(--ink-dim); transition: all .16s; position: relative;
}
.lunch-tab:hover { border-color: var(--messing); }
.lunch-tab.is-active { background: var(--loden); color: var(--kreide); border-color: var(--loden); }
.lunch-tab .today-flag {
  position: absolute; top: -.55rem; right: -.35rem; background: var(--marille); color: var(--loden-tief);
  font-family: var(--f-mono); font-size: .52rem; text-transform: uppercase; letter-spacing: .05em;
  padding: .1rem .35rem; border-radius: var(--r-token); font-weight: 700;
}
.lunch-panel {
  border: 1px solid rgba(23,37,28,.14); border-radius: var(--r-card); overflow: hidden;
  display: grid; grid-template-columns: 130px 1fr; background: rgba(255,255,255,.4);
}
.lunch-img { aspect-ratio: 1; overflow: hidden; }
.lunch-img img { width: 100%; height: 100%; object-fit: cover; }
.lunch-text { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.lunch-text .lunch-name { font-family: var(--f-display); font-size: 1.35rem; }
.lunch-text .lunch-desc { font-size: .92rem; color: var(--ink-dim); }
.lunch-text .lunch-price { font-family: var(--f-mono); color: var(--messing); font-weight: 700; }

/* ============================ GESCHICHTE ============================ */
.story-grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.story-copy .section-label, .story-copy .section-title { text-align: left; }
.story-p { color: var(--kreide-dim); margin-top: 1.1rem; max-width: 52ch; }
.story-quote { margin-top: 2rem; padding-left: 1.4rem; border-left: 2px solid var(--marille); }
.story-quote p { font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; color: var(--kreide); }
.story-quote cite { display: block; margin-top: .8rem; font-family: var(--f-mono); font-style: normal; font-size: .74rem; color: var(--messing); letter-spacing: .04em; }
.story-photo { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--r-card); position: relative; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================ GALERIE ============================ */
.masonry { columns: 3; column-gap: 1rem; }
.masonry figure { break-inside: avoid; margin-bottom: 1rem; overflow: hidden; border-radius: var(--r-card); cursor: pointer; position: relative; }
.masonry img { width: 100%; transition: transform .5s var(--ease), filter .3s; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figure::after { content: '⤢'; position: absolute; top: .6rem; right: .7rem; color: var(--kreide); opacity: 0; transition: opacity .2s; font-size: 1rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.masonry figure:hover::after { opacity: 1; }

/* ============================ RESERVIERUNG ============================ */
.reserve-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.reserve-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-dim); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .7rem .8rem; color: var(--ink);
  background: rgba(255,255,255,.55); border: 1px solid rgba(23,37,28,.2); border-radius: var(--r-card);
  transition: border-color .16s, background .16s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--messing); background: #fff; outline: none; }
.field textarea { resize: vertical; }
.field-error { color: var(--zwetschke); font-size: .78rem; font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: .4rem; }
.slot {
  font-family: var(--f-mono); font-size: .82rem; padding: .5rem 0; text-align: center;
  border: 1px solid rgba(23,37,28,.2); border-radius: var(--r-card); color: var(--ink); transition: all .14s;
}
.slot:hover:not(:disabled) { border-color: var(--messing); }
.slot.is-active { background: var(--loden); color: var(--kreide); border-color: var(--loden); }
.slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slot .taken { display: block; font-size: .52rem; text-transform: uppercase; letter-spacing: .05em; }

.reserve-ok { border: 1px solid var(--messing); border-radius: var(--r-card); padding: 2rem; background: rgba(255,255,255,.5); }
.reserve-ok h3 { font-family: var(--f-display); font-size: 1.8rem; color: var(--loden); margin-bottom: .8rem; }
.reserve-ok .ok-num { font-family: var(--f-mono); font-size: 1.6rem; font-weight: 700; color: var(--messing); letter-spacing: .06em; margin: .8rem 0; }
.reserve-ok .ok-note { color: var(--ink-dim); font-size: .92rem; margin-bottom: 1.4rem; }
.btn-spinner { width: 15px; height: 15px; border: 2px solid rgba(12,23,18,.35); border-top-color: var(--loden-tief); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ ADMIN ============================ */
.admin-panel { max-width: 760px; margin-inline: auto; border: 1px solid var(--line-messing); border-radius: var(--r-card); overflow: hidden; }
.admin-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid rgba(176,144,78,.16); }
.admin-row:last-child { border-bottom: none; }
.admin-head { background: var(--loden-tief); font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--messing); }
.admin-dish { font-family: var(--f-display); font-size: 1.05rem; }
.admin-price-input { font-family: var(--f-mono); width: 5.5rem; padding: .45rem .6rem; background: var(--loden); color: var(--kreide); border: 1px solid var(--line-messing); border-radius: var(--r-card); text-align: right; }
.admin-price-input:focus { border-color: var(--marille); outline: none; }
.toggle { position: relative; width: 46px; height: 25px; border-radius: var(--r-token); background: var(--zwetschke); transition: background .2s; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--kreide); transition: transform .2s var(--ease); }
.toggle.on { background: var(--marille); }
.toggle.on::after { transform: translateX(21px); }

/* ============================ QR / PHONE ============================ */
.qr-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.qr-code { width: 150px; height: 150px; margin-top: 1.6rem; background: #fff; padding: 10px; border-radius: var(--r-card); }
.qr-code svg { width: 100%; height: 100%; }
.qr-scan { margin-top: .8rem; font-size: .72rem; color: var(--ink-dim); }
.phone {
  width: 300px; max-width: 100%; margin-inline: auto; border-radius: 34px; background: var(--loden-tief);
  padding: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); border: 1px solid var(--line-messing);
}
.phone-screen { background: var(--loden); border-radius: 24px; overflow: hidden; color: var(--kreide); height: 560px; display: flex; flex-direction: column; }
.phone-top { padding: 1rem 1.1rem .8rem; border-bottom: 1px solid var(--line-messing); display: flex; justify-content: space-between; align-items: center; }
.phone-table { font-family: var(--f-mono); font-size: .8rem; color: var(--marille); }
.phone-waiter { font-size: .68rem; border: 1px solid var(--line-messing); border-radius: var(--r-token); padding: .3rem .6rem; color: var(--kreide-dim); }
.phone-list { flex: 1; overflow-y: auto; padding: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.phone-item { display: flex; gap: .6rem; align-items: center; background: var(--loden-line); border-radius: var(--r-card); padding: .5rem; }
.phone-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 2px; }
.phone-item .pi-name { font-size: .8rem; flex: 1; }
.phone-item .pi-price { font-family: var(--f-mono); font-size: .74rem; color: var(--marille); }
.phone-item .pi-add { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--messing); color: var(--marille); font-size: 1rem; line-height: 1; }
.phone-bill { border-top: 1px solid var(--line-messing); padding: .8rem 1.1rem; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .82rem; }
.phone-bill b { color: var(--marille); }

/* ============================ ANFAHRT ============================ */
.find-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.find-map { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-messing); min-height: 340px; }
.find-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.3) sepia(.15) brightness(.92); }
.find-info { display: grid; gap: 1.6rem; }
.info-block h3 { font-family: var(--f-body); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .18em; color: var(--messing); margin-bottom: .5rem; font-weight: 700; }
.info-block p { color: var(--kreide-dim); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .35rem 0; font-size: .88rem; color: var(--kreide-dim); border-bottom: 1px solid rgba(176,144,78,.14); }
.hours td:last-child { text-align: right; font-family: var(--f-mono); font-size: .8rem; }
.hours tr.is-today td { color: var(--marille); font-weight: 700; }
.hours tr.is-today td:first-child::before { content: '● '; color: var(--marille); }

/* ============================ FOOTER ============================ */
.site-footer { padding: 3.5rem var(--pad-x); text-align: center; }
.footer-inner { max-width: var(--maxw); margin-inline: auto; }
.footer-logo { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .1em; color: var(--kreide); }
.footer-by { margin-top: 1rem; font-size: .88rem; color: var(--kreide-dim); }
.footer-by a { color: var(--marille); }
.footer-by a:hover { color: var(--marille-hell); }
.footer-legal { margin-top: .8rem; font-size: .72rem; color: rgba(243,238,227,.3); font-family: var(--f-mono); }

/* ============================ ANTON — KELLNERBLOCK (signature) ============================ */
.anton-fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 120;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--marille); color: var(--loden-tief); padding: .8rem 1.2rem;
  border-radius: var(--r-token); font-weight: 700; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6);
  transition: transform .2s var(--ease), background .2s;
}
.anton-fab:hover { transform: translateY(-3px); background: var(--marille-hell); }
.anton-fab-icon { font-size: 1.1rem; }
.anton.is-open ~ .anton-fab, body.anton-open .anton-fab { transform: translateY(140%); opacity: 0; pointer-events: none; }

.anton {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: 0; z-index: 130;
  width: min(340px, calc(100vw - 2rem));
  transform: translateY(105%); transition: transform .5s var(--ease);
  pointer-events: none;
}
.anton.is-open { transform: translateY(0); pointer-events: auto; }
.anton-block {
  position: relative; background: #f6f1e4; color: #22201a;
  box-shadow: 0 -8px 40px -12px rgba(0,0,0,.55);
  padding: 1.4rem 1.1rem 1rem;
  /* рваный чековый верх */
  clip-path: polygon(0 12px,4% 4px,8% 12px,12% 3px,16% 11px,20% 4px,24% 12px,28% 5px,32% 11px,36% 3px,40% 12px,44% 5px,48% 11px,52% 3px,56% 12px,60% 4px,64% 11px,68% 4px,72% 12px,76% 3px,80% 11px,84% 5px,88% 12px,92% 3px,96% 11px,100% 5px,100% 100%,0 100%);
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.012) 0 27px, rgba(0,0,0,.05) 27px 28px);
}
.anton-perf { position: absolute; left: 6px; top: 20px; bottom: 60px; width: 2px; background-image: radial-gradient(circle, rgba(0,0,0,.28) 1px, transparent 1.4px); background-size: 3px 9px; opacity: .5; }
.anton-head { display: flex; justify-content: space-between; align-items: flex-start; padding-left: 1rem; border-bottom: 1px dashed rgba(0,0,0,.22); padding-bottom: .7rem; margin-bottom: .7rem; }
.anton-name { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .16em; }
.anton-sub { font-size: .64rem; color: #6a6455; margin-top: .1rem; }
.anton-x { font-size: .9rem; color: #6a6455; padding: .2rem .4rem; }
.anton-x:hover { color: var(--zwetschke); }
.anton-log { padding-left: 1rem; max-height: 42vh; overflow-y: auto; display: flex; flex-direction: column; gap: .7rem; font-family: var(--f-mono); font-size: .8rem; line-height: 1.5; }
.anton-msg { white-space: pre-wrap; }
.anton-msg.from-anton { color: #22201a; }
.anton-msg.from-guest { color: var(--marille); text-align: right; font-weight: 500; }
.anton-msg.from-guest::before { content: '› '; }
.anton-typing { display: inline-flex; gap: 3px; padding-left: 1rem; }
.anton-typing span { width: 5px; height: 5px; border-radius: 50%; background: #6a6455; animation: blink 1.2s infinite; }
.anton-typing span:nth-child(2){ animation-delay: .2s; } .anton-typing span:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{opacity:.25;} 30%{opacity:1;} }
.anton-dishcard { display: flex; gap: .6rem; align-items: center; background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.1); border-radius: 2px; padding: .5rem; margin-top: .3rem; }
.anton-dishcard img { width: 42px; height: 42px; object-fit: cover; border-radius: 2px; }
.anton-dishcard .adc-body { flex: 1; }
.anton-dishcard .adc-name { font-family: var(--f-display); font-size: .92rem; font-family: var(--f-body); font-weight: 700; }
.anton-dishcard .adc-price { color: var(--messing); font-weight: 700; font-size: .76rem; }
.anton-dishcard .adc-btn { font-size: .68rem; text-decoration: underline; color: var(--zwetschke); }
.anton-quicks { padding-left: 1rem; display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.anton-quick { font-family: var(--f-body); font-size: .72rem; padding: .3rem .6rem; border: 1px solid rgba(0,0,0,.25); border-radius: var(--r-token); color: #4a4638; transition: all .15s; }
.anton-quick:hover { background: var(--marille); border-color: var(--marille); color: var(--loden-tief); }
.anton-total { padding-left: 1rem; margin-top: .8rem; border-top: 1px dashed rgba(0,0,0,.3); padding-top: .6rem; font-size: .78rem; }
.anton-total .at-row { display: flex; justify-content: space-between; }
.anton-total .at-sum { font-weight: 700; color: var(--zwetschke); border-top: 1px solid rgba(0,0,0,.2); margin-top: .3rem; padding-top: .3rem; }
.anton-input { display: flex; gap: .5rem; padding-left: 1rem; margin-top: .8rem; }
.anton-input input { flex: 1; font-family: var(--f-mono); font-size: .78rem; padding: .5rem .6rem; background: rgba(0,0,0,.03); border: 1px solid rgba(0,0,0,.2); border-radius: 2px; color: #22201a; }
.anton-input input:focus { border-color: var(--marille); outline: none; }
.anton-input button { width: 34px; background: var(--loden); color: var(--kreide); border-radius: 2px; font-size: 1rem; }

/* ============================ LIGHTBOX ============================ */
.lightbox { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.is-open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(8,15,11,.9); backdrop-filter: blur(4px); }
.lightbox-panel { position: relative; z-index: 2; max-width: 940px; width: 100%; max-height: 88vh; overflow-y: auto; background: var(--loden-line); border: 1px solid var(--line-messing); border-radius: var(--r-card); }
.lb-dish { display: grid; grid-template-columns: 1fr 1fr; }
.lb-dish img { width: 100%; height: 100%; object-fit: cover; max-height: 88vh; }
.lb-body { padding: 2rem 2.2rem; }
.lb-cat { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--messing); }
.lb-name { font-family: var(--f-display); font-size: 2rem; line-height: 1.05; margin: .5rem 0 .3rem; }
.lb-price { font-family: var(--f-mono); font-weight: 700; color: var(--marille); font-size: 1.1rem; margin-bottom: 1.2rem; }
.lb-desc { color: var(--kreide-dim); margin-bottom: 1.4rem; }
.lb-detail { border-top: 1px solid var(--line-messing); padding-top: 1rem; margin-top: 1rem; }
.lb-detail dt { font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--messing); margin-bottom: .2rem; }
.lb-detail dd { margin: 0 0 1rem; font-size: .92rem; color: var(--kreide-dim); }
.lb-allergens { display: flex; gap: .3rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.lb-img-only img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; }
.lightbox-x { position: absolute; top: 1.2rem; right: 1.4rem; z-index: 3; font-size: 1.3rem; color: var(--kreide); width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(12,23,18,.6); }
.lightbox-x:hover { background: var(--zwetschke); }
.lightbox-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); font-size: 2rem; color: var(--kreide); width: 3rem; height: 3rem; border-radius: 50%; background: rgba(12,23,18,.6); }
.lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }
.lightbox-nav:hover { background: var(--marille); color: var(--loden-tief); }

/* ============================ SKELETON / IMG GRADING ============================ */
.skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, var(--loden-line) 30%, rgba(176,144,78,.12) 50%, var(--loden-line) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card-media img, .hero-photo img, .story-photo img, .masonry img, .lunch-img img {
  filter: saturate(1.02) contrast(1.03) brightness(.98) sepia(.05);
}
img.loaded + .skeleton, .is-loaded .skeleton { display: none; }
img[data-loading] { opacity: 0; transition: opacity .5s; }
img.loaded { opacity: 1; }

/* ============================ TOASTS ============================ */
.toasts { position: fixed; bottom: clamp(1rem, 3vw, 2rem); left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.toast {
  background: var(--loden-tief); color: var(--kreide); border: 1px solid var(--messing);
  border-radius: var(--r-token); padding: .7rem 1.3rem; font-size: .88rem; font-weight: 500;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.7); animation: toastin .3s var(--ease);
}
.toast b { color: var(--marille); }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } }

/* ============================ REVEAL ============================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-anim] { opacity: 0; }
.hero.play [data-anim] { animation: heroin .8s var(--ease) forwards; }
.hero.play [data-anim="1"]{ animation-delay:.1s; } .hero.play [data-anim="2"]{ animation-delay:.45s; }
.hero.play [data-anim="3"]{ animation-delay:.6s; } .hero.play [data-anim="4"]{ animation-delay:.85s; }
.hero.play [data-anim="5"]{ animation-delay:1s; } .hero.play [data-anim="6"]{ animation-delay:1.15s; }
.hero.play [data-anim="7"]{ animation-delay:1.3s; }
@keyframes heroin { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero.play .hero-title span { animation: letterin .6s var(--ease) backwards; }
.hero.play .hero-title span:nth-child(1){animation-delay:.6s;} .hero.play .hero-title span:nth-child(2){animation-delay:.67s;}
.hero.play .hero-title span:nth-child(3){animation-delay:.74s;} .hero.play .hero-title span:nth-child(4){animation-delay:.81s;}
.hero.play .hero-title span:nth-child(5){animation-delay:.88s;} .hero.play .hero-title span:nth-child(6){animation-delay:.95s;}
.hero.play .hero-title span:nth-child(7){animation-delay:1.02s;}
@keyframes letterin { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .hero-grid, .story-grid, .reserve-grid, .find-grid, .qr-grid { grid-template-columns: 1fr; }
  .story-photo { max-width: 440px; }
  .masonry { columns: 2; }
  .main-nav { display: none; }
}
@media (max-width: 720px) {
  .header-actions { gap: .6rem; }
  .status-pill .status-text { display: none; }
  .anton-fab-label { display: none; }
  .anton-fab { padding: .9rem; }
  .reserve-form { grid-template-columns: 1fr; }
  .lb-dish { grid-template-columns: 1fr; }
  .lb-dish img { max-height: 40vh; }
  .lunch-panel { grid-template-columns: 1fr; }
  .lunch-img { aspect-ratio: 16/9; }
  .hero-title { font-size: clamp(3rem, 16vw, 5rem); }
  .qr-grid { justify-items: center; text-align: center; }
  .section-head[style*="left"] { text-align: center !important; }
}
@media (max-width: 480px) {
  .masonry { columns: 1; }
  .header-actions .btn-accent { display: none; }
}

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  [data-anim] { opacity: 1; }
  .skeleton { animation: none; }
}

/* ============================ PRINT ============================ */
@media print {
  .site-header, .anton, .anton-fab, .hero-scroll, .lang-switch, .btn, .toasts,
  #wine, #lunch, #story, #gallery, #reserve, #admin, #qr, #find, .site-footer, .find-map,
  .status-pill, .menu-empty, .card-media, .masonry { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding: 1rem 0 !important; }
  [data-rail]::before, [data-rail]::after { display: none; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: .4rem; }
  .card { background: none; border: none; border-bottom: 1px solid #ccc; page-break-inside: avoid; }
  .card-name, .section-title { color: #000; }
  .card-price { color: #000; }
  .hero { min-height: auto; }
  .hero-photo { display: none; }
  .hero-title span:nth-child(1) { color: #000; }
}
