/* ==========================================================================
   LIEFEUROPA – Scroll-Website
   Konzept & Umsetzung: Bavarian Valley UG (haftungsbeschränkt)
   ========================================================================== */

:root {
  --red: #e43117;
  --red-deep: #b8240f;
  --orange: #ec4b1c;
  --gold: #cfa670;
  --ink: #141110;
  --ink-2: #1e1a17;
  --cream: #f6efe4;
  --cream-2: #ebe1d1;
  --muted: #8a8079;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', Helvetica, Arial, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }

.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--pad); }
.narrow { width: min(820px, 100%); }
.center { text-align: center; }

/* ---------- Progress bar ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .9rem var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s;
}
.topbar.is-solid {
  background: rgba(20, 17, 16, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  padding-top: .55rem; padding-bottom: .55rem;
}
.topbar__logo img { width: 132px; }
.topbar__nav { display: flex; gap: 2rem; }
.topbar__nav a, .topbar__phone {
  text-decoration: none; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; opacity: .85;
  transition: opacity .2s, color .2s;
}
.topbar__nav a:hover, .topbar__phone:hover { opacity: 1; color: var(--gold); }
.topbar__cta { display: flex; align-items: center; gap: 1.25rem; }

@media (max-width: 980px) { .topbar__nav { display: none; } }
@media (max-width: 560px) {
  .topbar__phone { display: none; }
  .topbar__logo img { width: 112px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.9rem; border-radius: 999px;
  font: 700 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--sm { min-height: 2.5rem; padding: 0 1.2rem; font-size: .72rem; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(228, 49, 23, .7); }
.btn--red:hover { background: var(--orange); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--red-deep); }
.btn--light:hover { background: #fff; }

/* ==========================================================================
   Video-Szenen (scroll-gesteuerte Bildsequenzen)
   ========================================================================== */
.scene {
  position: relative; z-index: 1;
  /* --pin (gepinnte Scroll-Strecke) wird per JS je Szene gesetzt */
  height: calc(100vh + var(--pin, 200vh));
  height: calc(100svh + var(--pin, 200svh));
  background: #000;
}
/* Jede Szene liegt bereits gepinnt unter dem vorherigen Content
   und wird freigelegt, sobald dieser nach oben wegscrollt. */
.content + .scene { margin-top: -100vh; margin-top: -100svh; }
/* …und jeder Content schiebt sich über das noch laufende Video der Szene davor. */
.scene + .content { margin-top: -100vh; margin-top: -100svh; }
.scene__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.scene__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
  will-change: transform;
  transform-origin: 50% 50%;
}
.scene__dim {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--ink); opacity: 0;
}
.scene__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 22%, transparent 60%, rgba(0,0,0,.6) 100%);
}

.scene__caption {
  position: absolute; z-index: 2;
  max-width: min(44rem, calc(100% - 2 * var(--pad)));
  opacity: var(--cap-o, 0);
  transform: translate3d(0, var(--cap-y, 30px), 0);
  will-change: opacity, transform;
  text-shadow: 0 2px 30px rgba(0,0,0,.55);
}
.scene__caption--left  { left: var(--pad); bottom: 14vh; }
.scene__caption--right { right: var(--pad); bottom: 14vh; text-align: right; }
.scene__caption--center {
  left: 50%; top: 50%; text-align: center; width: 100%; max-width: none;
  translate: -50% -50%;
}
.step {
  display: inline-block; margin-bottom: .75rem;
  font: 700 .75rem/1 var(--sans); letter-spacing: .3em; color: var(--gold);
}
.step::after {
  content: ''; display: inline-block; vertical-align: middle;
  width: 3rem; height: 1px; margin-left: .9rem; background: currentColor;
}
.scene__caption--right .step::after { display: none; }
.scene__caption--right .step::before {
  content: ''; display: inline-block; vertical-align: middle;
  width: 3rem; height: 1px; margin-right: .9rem; background: currentColor;
}
.scene__word {
  margin: 0; font: italic 600 clamp(2.8rem, 8vw, 7rem)/.95 var(--serif);
  letter-spacing: -.01em;
}
.scene__word--xl { font-size: clamp(3rem, 10vw, 9rem); }
.scene__line {
  margin: 1rem 0 0; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 300;
  letter-spacing: .04em; opacity: .9;
}

/* Hero */
.hero {
  left: var(--pad); bottom: 12vh;
  --cap-o: 1; --cap-y: 0px;
}
.hero__kicker { margin: 0 0 1.4rem; font: 700 .78rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.hero__title {
  margin: 0; font: 700 clamp(3rem, 8.5vw, 7.5rem)/.92 var(--serif); letter-spacing: -.02em;
}
.hero__title em { font-weight: 500; color: #fff; }
.hero__sub { margin: 1.4rem 0 2rem; font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 300; max-width: 30rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.scroll-hint {
  position: absolute; right: var(--pad); bottom: 2.2rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font: 700 .65rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: var(--hint-o, 1); transition: opacity .3s;
}
.scroll-hint span {
  width: 1px; height: 3.5rem; background: rgba(255,255,255,.35); position: relative; overflow: hidden;
}
.scroll-hint span::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: #fff; animation: hint 1.8s var(--ease) infinite;
}
@keyframes hint { to { top: 100%; } }

/* ==========================================================================
   Content-Sektionen
   ========================================================================== */
.content {
  position: relative; z-index: 3;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 16vh, 11rem) 0;
  --bg: var(--ink);
  background: var(--bg);
}
.content--cream { --bg: var(--cream); color: var(--ink); }
.content--dark  { --bg: var(--ink); color: var(--cream); }
.content--red   { --bg: var(--red); color: #fff; }
.content > .wrap { will-change: translate; }

.eyebrow {
  margin: 0 0 1.1rem; font: 700 .75rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--red);
}
.content--dark .eyebrow { color: var(--gold); }
.eyebrow--light, .content--red .eyebrow { color: rgba(255,255,255,.85); }

.h2 {
  margin: 0 0 1.5rem; font: 700 clamp(2.3rem, 5.4vw, 4.6rem)/1.02 var(--serif); letter-spacing: -.015em;
}
.h2 em { font-weight: 400; color: var(--red); }
.content--dark .h2 em { color: var(--gold); }
.content--red .h2 em { color: var(--ink); }
.h2--xl { font-size: clamp(3rem, 9vw, 7.5rem); }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.7; margin: 0 0 1.5rem; opacity: .92; }
.tiny { font-size: .85rem; opacity: .7; margin-top: 1.25rem; }
.tiny a { text-underline-offset: 3px; }

.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.section-head { margin-bottom: clamp(2.5rem, 6vh, 4rem); }

/* Facts */
.facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.facts li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid rgba(20,17,16,.15);
}
.facts li:last-child { border-bottom: 1px solid rgba(20,17,16,.15); }
.facts strong { font: 600 1.35rem/1.2 var(--serif); }
.facts span { color: var(--muted); font-size: .95rem; text-align: right; }

/* Menu grid */
.menu-grid {
  list-style: none; margin: 0 0 3rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  border-top: 1px solid rgba(20,17,16,.15); border-left: 1px solid rgba(20,17,16,.15);
}
.menu-grid li {
  position: relative; padding: 2rem 1.5rem 1.6rem; min-height: 8.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  font: 600 clamp(1.2rem, 1.8vw, 1.5rem)/1.2 var(--serif);
  border-right: 1px solid rgba(20,17,16,.15); border-bottom: 1px solid rgba(20,17,16,.15);
  transition: background .3s, color .3s;
}
.menu-grid li:hover { background: var(--ink); color: var(--cream); }
.menu-grid li.is-hot { background: var(--red); color: #fff; }
.menu-grid li.is-link { padding: 0; background: var(--ink); color: var(--cream); }
.menu-grid li.is-link a { flex: 1; display: flex; align-items: flex-end; padding: 2rem 1.5rem 1.6rem; text-decoration: none; }
.menu-grid li.is-link:hover { background: var(--red); }
.menu-grid__n {
  position: absolute; top: 1.2rem; left: 1.5rem;
  font: 700 .7rem/1 var(--sans); letter-spacing: .2em; opacity: .55;
}

/* Cards (Mittagsmenü) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 2.4rem 2rem 2rem; border-radius: 22px;
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.08);
}
.card--featured { background: var(--red); border-color: var(--red); }
.card__badge {
  position: absolute; top: 1.4rem; right: 1.4rem; margin: 0;
  padding: .35rem .7rem; border-radius: 999px; background: var(--ink); color: var(--gold);
  font: 700 .65rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.card__price { margin: 0; font: 700 clamp(2.4rem, 4vw, 3.2rem)/1 var(--serif); }
.card__title { margin: .5rem 0 1.4rem; font: 700 .8rem/1 var(--sans); letter-spacing: .25em; text-transform: uppercase; opacity: .8; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.12); }

/* Treuepunkte */
.stamps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.6rem, 1.5vw, 1rem);
  max-width: 440px; justify-self: center; width: 100%;
}
.stamps span {
  aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.55);
  display: grid; place-items: center; font-size: clamp(1.4rem, 3vw, 2rem);
  transition: background .4s var(--ease), border-color .4s, transform .4s var(--ease);
}
.stamps.is-in span { background: rgba(255,255,255,.95); border-style: solid; border-color: #fff; }
.stamps.is-in span.stamps__wine { background: var(--ink); border-color: var(--ink); transform: scale(1.12) rotate(-8deg); }
.stamps span:nth-child(1)  { transition-delay: .05s; }
.stamps span:nth-child(2)  { transition-delay: .12s; }
.stamps span:nth-child(3)  { transition-delay: .19s; }
.stamps span:nth-child(4)  { transition-delay: .26s; }
.stamps span:nth-child(5)  { transition-delay: .33s; }
.stamps span:nth-child(6)  { transition-delay: .40s; }
.stamps span:nth-child(7)  { transition-delay: .47s; }
.stamps span:nth-child(8)  { transition-delay: .54s; }
.stamps span:nth-child(9)  { transition-delay: .61s; }
.stamps span:nth-child(10) { transition-delay: .80s; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1rem;
  padding: 1.3rem 0; border-top: 1px solid rgba(20,17,16,.15);
}
.steps li:last-child { border-bottom: 1px solid rgba(20,17,16,.15); }
.steps li::before {
  content: '0' counter(s); grid-row: span 2;
  font: italic 600 2rem/1 var(--serif); color: var(--red);
}
.steps strong { font: 600 1.35rem/1.2 var(--serif); }
.steps span { color: #5e5650; }
.order-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 3.5rem; }

/* Öffnungszeiten */
.hours { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.hours th, .hours td { padding: 1.3rem 0; border-top: 1px solid rgba(255,255,255,.12); vertical-align: top; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid rgba(255,255,255,.12); }
.hours th { text-align: left; font: 600 1.3rem/1.3 var(--serif); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; opacity: .9; }
.hours tr.is-today th { color: var(--gold); }
.hours tr.is-today th::after { content: ' · heute'; font: 700 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }

.status { display: inline-flex; align-items: center; gap: .7rem; margin: .5rem 0 0; padding: .6rem 1.1rem; border-radius: 999px; background: rgba(255,255,255,.06); font-weight: 700; font-size: .9rem; }
.status__dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); }
.status.is-open .status__dot { background: #3ecf6e; box-shadow: 0 0 0 0 rgba(62,207,110,.6); animation: pulse 2s infinite; }
.status.is-closed .status__dot { background: var(--red); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62,207,110,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,110,0); } }

/* Kontakt */
.address { font-style: normal; font-size: 1.2rem; line-height: 1.7; }
.contact-list { display: grid; }
.contact-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.15rem 0; border-top: 1px solid rgba(20,17,16,.15);
  text-decoration: none; font: 600 clamp(1.1rem, 1.8vw, 1.35rem)/1.3 var(--serif);
  transition: color .2s, padding .3s var(--ease);
}
.contact-list a:last-child { border-bottom: 1px solid rgba(20,17,16,.15); }
.contact-list a:hover { color: var(--red); padding-left: .5rem; }
.contact-list span { font: 700 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Finale */
.bigphone {
  display: inline-block; margin: .5rem 0 0; text-decoration: none;
  font: italic 500 clamp(2rem, 6vw, 4.2rem)/1 var(--serif);
  border-bottom: 2px solid rgba(255,255,255,.4); padding-bottom: .3rem;
  transition: border-color .2s;
}
.bigphone:hover { border-color: #fff; }
.content--red .order-cta { margin-top: 2.5rem; }

/* Footer */
.footer { position: relative; z-index: 3; background: var(--ink); padding: 3.5rem 0 2.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.footer__inner img { width: 120px; opacity: .9; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.footer nav a, .footer__credit { font-size: .82rem; letter-spacing: .08em; text-decoration: none; opacity: .7; }
.footer nav a:hover { opacity: 1; }
.footer__credit { margin: 0; }
.footer__credit a { color: var(--gold); text-decoration: none; }
.footer__credit a:hover { text-decoration: underline; }

/* ---------- Reveal-Animationen ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.menu-grid li[data-reveal] { transition-delay: calc(var(--i, 0) * 45ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-hint span::after, .status.is-open .status__dot { animation: none; }
}

/* ---------- Mobile ---------- */
.scene--hero .scene__shade {
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 22%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.8) 100%);
}
@media (max-width: 600px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .menu-grid li { min-height: 6.5rem; padding: 1.6rem 1rem 1rem; font-size: 1.05rem; }
  .menu-grid li.is-link a { padding: 1.6rem 1rem 1rem; }
  .menu-grid__n { left: 1rem; top: 1rem; }
  .scene__caption--left, .scene__caption--right { bottom: 10vh; }
  .facts li { flex-direction: column; gap: .2rem; }
  .facts span { text-align: left; }
}
