/* ============================================================
   LA WALLY /weine — Slide 1: Kino-Story (Traube → Saft → Flasche)
   Slide 2: PRIMO (Infos + Assets) · Slide 3: Wisch-Section (Wine-Galerie)
   Wird NACH tasca.css + tasca-overrides.css geladen.
   ============================================================ */

/* ---------- Shell: weiße Seite, vertikal scrollend (.view bleibt Scroller) ---------- */
body { background: #FFFFFF; }
.page--weine {
  display: block;
  width: auto;
  min-width: 0;
  height: auto;
  color: #1c1616;
  font-weight: 300;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.view { scroll-behavior: smooth; }

/* Tasca-Mobilregel (Seitenkinder bekommen 8vh unten) gezielt ersetzen */
@media screen and (max-width: 63.99em) {
  .page--weine > .lw-stage-wrap,
  .page--weine > .lw-fallback,
  .page--weine > .hd-wines { padding-bottom: 0 !important; }
  .page--weine > .lw-bottles { padding-bottom: clamp(104px, 20vw, 150px) !important; }
}

/* ---------- Header: weinrot auf Weiß ---------- */
/* Farben nur im Desktop-Wrap — eine breite .navbar__link-Regel färbt sonst das mobile Menü rot-auf-rot */
.header--weine .header__wrap,
.header--weine .header__wrap a,
.header--weine .header__langs { color: #5d1010; }
.header--weine .lang-selector__item a { color: #5d1010; }
.header--weine .header__wrap .navbar__active { background-color: #5d1010; }
.header--weine .hamburger__line { background-color: #5d1010; }
/* Mobiles Menü-Overlay: Links + Sprachwahl weiß */
.header--weine .header__navigator .navbar__link,
.header--weine .header__navigator .lang-selector,
.header--weine .header__navigator .lang-selector a { color: #ffffff; }
.header--weine .header__navigator .navbar__active { background-color: #ffffff; }
/* Menü offen (Klasse am Header): Wappen + Burger weiß, Scrim aus */
.menu-open .header__logo { filter: brightness(0) invert(1); }
.menu-open .hamburger__line { background-color: #ffffff; }
.menu-open .header__bg { display: none !important; }
/* Sanfter weißer Scrim hinter dem Header: hält Wappen/Menü auch auf dunklen Story-Passagen lesbar */
.header--weine .header__bg {
  display: block !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0) 100%);
}

/* ---------- Loader: zwei Wappen (weiß → weinrot) ---------- */
.hd-loader-stack { position: relative; display: block; line-height: 0; }
.loader__logo--red { position: absolute; left: 0; top: 0; opacity: 0; }

/* ============================================================
   SLIDE 1 — Kino-Story (Pinned Scroll-Lock, Video-Scrub)
   ============================================================ */
.lw-stage-wrap { position: relative; height: 100vh; height: 100svh; }
.lw-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #FFFFFF;
}
#lw-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s linear;
  will-change: opacity;
}

/* Dunkle Saft-Vignette — verdichtet den Rand, während die Flasche auftaucht */
.lw-neck {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(46% 38% at 50% 38%, rgba(20,8,8,0) 0%, rgba(20,8,8,0.45) 48%, rgba(10,4,4,0.96) 100%);
}

/* Weißes Licht beim Herausfahren aus dem Hals (inaktiv) */
.lw-bloom {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
  transform-origin: 50% 38%;
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #ffffff 38%, rgba(255, 255, 255, 0) 62%);
}

/* Traubensaft-Vorhang: liegt über der Flasche und rinnt beim Hochkommen nach unten ab */
.lw-sap {
  position: absolute;
  inset: -12% 0 0 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  background:
    radial-gradient(42% 34% at 24% 22%, rgba(58, 8, 9, 0.9), rgba(58, 8, 9, 0) 70%),
    radial-gradient(48% 38% at 76% 44%, rgba(58, 8, 9, 0.8), rgba(58, 8, 9, 0) 72%),
    radial-gradient(70% 48% at 50% 96%, rgba(91, 13, 14, 0.95), rgba(91, 13, 14, 0) 78%),
    linear-gradient(180deg, rgba(91, 13, 14, 0) 0%, rgba(91, 13, 14, 0.55) 30%, rgba(58, 8, 9, 0.85) 72%);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  will-change: transform, opacity;
}

/* Flaschen-Overlay: echtes Produktfoto — steigt aus dem Traubensaft empor */
.lw-bottle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: min(38vh, 46vw);
  transform: translate(-50%, -50%) perspective(1100px) rotateY(160deg) scale(5.2);
  transform-origin: 50% 50%;
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform, opacity, filter;
}
.lw-bottle img { display: block; width: 100%; height: auto; }

/* ---------- Captions ---------- */
.lw-cap {
  position: absolute;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}
.lw-cap-inner {
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(91, 13, 14, 0.16);
  padding: clamp(20px, 3vw, 34px) clamp(22px, 3.4vw, 40px);
  max-width: 480px;
}
.lw-cap-title {
  margin: 0;
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.02;
  text-transform: uppercase;
  color: #5b0d0e;
}
.lw-cap-h {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.1;
  text-transform: uppercase;
  color: #5b0d0e;
}
.lw-cap--4 .lw-cap-h { letter-spacing: 0.14em; }
.lw-cap-p {
  margin: 12px 0 0;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #1c1616;
}
.lw-cap-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.lw-cap--1 { left: clamp(24px, 6.5vw, 140px); top: 50%; transform: translateY(-50%); text-align: left; width: auto; max-width: none; }
.lw-cap--1 .lw-cap-inner { background: transparent; border: none; backdrop-filter: none; -webkit-backdrop-filter: none; max-width: none; padding: 0; }
.lw-cap--1 .lw-cap-title { font-size: clamp(48px, 7.5vw, 140px); white-space: nowrap; line-height: 1; }
.lw-cap--2 { left: clamp(20px, 6vw, 90px); top: 50%; transform: translateY(-50%); }
.lw-cap--3 { left: clamp(20px, 6vw, 90px); top: 50%; transform: translateY(-50%); }
.lw-cap--4 { left: clamp(20px, 6vw, 90px); bottom: clamp(24px, 7vh, 90px); }
.lw-cap--2 .lw-cap-h, .lw-cap--3 .lw-cap-h { white-space: nowrap; }

/* Scroll-Cue */
.lw-cue {
  margin-top: 34px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b0d0e;
}
.lw-cue-txt--mob { display: none; }
@media (max-width: 900px) {
  .lw-cue-txt--desk { display: none; }
  .lw-cue-txt--mob { display: inline; }
}
.lw-cue-bar {
  display: block;
  width: 1px;
  height: 46px;
  background: #5b0d0e;
  position: relative;
  overflow: hidden;
}
.lw-cue-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: #ffffff;
  animation: lw-cue-drop 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes lw-cue-drop {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lw-cue-bar::after { animation: none; }
}

/* ---------- Buttons ---------- */
.lw-btn {
  display: inline-block;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #5b0d0e;
  border: 1px solid #5b0d0e;
  padding: 13px 32px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.lw-btn:hover, .lw-btn:focus-visible { background: #3a0809; border-color: #3a0809; }
.lw-btn--ghost { background: transparent; color: #5b0d0e; }
.lw-btn--ghost:hover, .lw-btn--ghost:focus-visible { background: #5b0d0e; color: #ffffff; }

/* ---------- Fallback (reduzierte Bewegung / kein JS) ---------- */
.lw-fallback {
  display: none;
  background: #FFFFFF;
  padding: 90px clamp(20px, 5vw, 60px) 60px;
  text-align: center;
}
.lw-fallback .lw-fb-poster {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 auto 36px;
  border: 1px solid rgba(91, 13, 14, 0.14);
}
.lw-fallback .lw-fb-bottle {
  display: block;
  width: min(52vh, 70vw);
  height: auto;
  margin: 34px auto 0;
}
html.lw-static .lw-stage-wrap { display: none; }
html.lw-static .lw-fallback { display: block; }

/* ============================================================
   SLIDE 2 — PRIMO (Infos + Assets)
   ============================================================ */
.lw-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #5b0d0e;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.lw-h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.05;
  text-transform: uppercase;
  color: #5b0d0e;
  text-align: center;
}
.lw-lead {
  margin: 0 auto 26px;
  text-align: center;
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #1c1616;
}
.lw-copy {
  margin: 0 auto;
  max-width: 62ch;
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.75;
  color: #1c1616;
}
.lw-copy strong { font-weight: 500; color: #5b0d0e; }
.lw-copy p { margin: 0 0 16px; }
.lw-copy p:last-child { margin-bottom: 0; }

.lw-sec { padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 60px); }

/* PRIMO-Headline: schlank, gleiche Breite wie die Lead-Zeile */
.lw-wine-head { display: inline-block; max-width: 100%; position: relative; z-index: 3; }
.lw-wine-head .lw-h2 {
  display: inline-block;
  font-weight: 300;
  letter-spacing: 0.14em;
  white-space: nowrap;
  margin-bottom: 18px;
}
.lw-wine-head .lw-lead { max-width: none; white-space: nowrap; }

/* ---------- Flaschen-Reihe (Shafer-Stil) ---------- */
.lw-bottles {
  background: #FFFFFF;
  border-top: 1px solid rgba(91, 13, 14, 0.14);
  text-align: center;
}
.lw-bottles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.4vw, 34px);
  max-width: 1120px;
  margin: 48px auto 44px;
  align-items: end;
}
.lw-bottles-grid figure {
  margin: 0;
  background: transparent;
  border: none;
  padding: 0;
}
.lw-bottles-grid img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  height: auto;
  margin: 0 auto;
}
.lw-bottles-grid figcaption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lw-b-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b0d0e;
}
.lw-b-view {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d5f5f;
}
.lw-b-crop { display: block; }

/* Desktop: Bilder auf den Inhalt beschnitten → gleiche sichtbare Abstände */
@media (min-width: 901px) {
  .lw-bottles-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(28px, 3vw, 52px);
    --s: clamp(0.17px, 0.0164vw, 0.2356px);
  }
  .lw-bottles-grid figure { flex: 0 0 auto; width: calc(var(--cw) * var(--s)); }
  .lw-bottles-grid figure:nth-child(1) { --cw: 329;  --ch: 1104; --x0: 409; --y0: 125; }
  .lw-bottles-grid figure:nth-child(2) { --cw: 673;  --ch: 1350; --x0: 403; --y0: 0; }
  .lw-bottles-grid figure:nth-child(3) { --cw: 1080; --ch: 731;  --x0: 0;   --y0: 185; }
  .lw-bottles-grid figure:nth-child(4) { --cw: 673;  --ch: 1340; --x0: 15;  --y0: 0; }
  .lw-b-crop {
    position: relative;
    overflow: hidden;
    width: calc(var(--cw) * var(--s));
    height: calc(var(--ch) * var(--s));
  }
  .lw-b-crop img {
    position: absolute;
    left: calc(-1 * var(--x0) * var(--s));
    top: calc(-1 * var(--y0) * var(--s));
    width: calc(1080 * var(--s));
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
  }
  .lw-bottles-grid figcaption { min-height: 52px; }
}

@media (max-width: 900px) {
  .lw-bottles-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    margin: calc(16px - 0.137 * min(125vw, 78svh)) calc(-1 * clamp(20px, 5vw, 60px)) 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .lw-bottles-grid::-webkit-scrollbar { display: none; }
  .lw-bottles-grid figure { flex: 0 0 100%; scroll-snap-align: center; }
  .lw-bottles-grid figure:nth-child(1) { display: none; }
  .lw-bottles-grid figure:nth-child(2) { order: 2; }
  .lw-bottles-grid figure:nth-child(3) { order: 1; }
  .lw-bottles-grid figure:nth-child(4) { order: 3; }
  .lw-bottles-grid figcaption { display: none; }
  .lw-wine-head .lw-h2 { white-space: normal; font-weight: 600; margin-bottom: 22px; }
  .lw-wine-head .lw-lead { white-space: normal; margin-bottom: 8px; }
  .lw-bottles-grid img { width: 100%; max-height: 78svh; object-fit: contain; }
  /* Flaschen-Slide (Quadrat) hat unten ~32 % Weißraum: Text schiebt sich übers Bild zur Flasche */
  #primo .lw-copy { margin-top: calc(8px - 0.322 * min(125vw, 78svh)); position: relative; }
  .lw-bottles { padding-bottom: clamp(104px, 20vw, 150px); }
}

/* ============================================================
   SLIDE 3 — Wisch-Section (Wine-Galerie, seitlich ziehen/wischen)
   ============================================================ */
.hd-wines {
  --hd-wine-w: min(78vw, 880px);
  position: relative;
  height: 100vh;
  height: 100svh;
  background: #FFFFFF;
  border-top: 1px solid rgba(91, 13, 14, 0.14);
  overflow: hidden;
}
.hd-wines__scroller {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x pan-y;
}
.hd-wines__scroller::-webkit-scrollbar { display: none; }
.hd-wines__scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.hd-wines__strip {
  display: flex;
  align-items: center;
  gap: clamp(30px, 6vw, 110px);
  width: max-content;
  padding: 0 max(20px, calc((100vw - var(--hd-wine-w)) / 2));
  user-select: none;
  -webkit-user-select: none;
}
.hd-wine {
  flex: 0 0 var(--hd-wine-w);
  width: var(--hd-wine-w);
  margin: 0;
  scroll-snap-align: center;
}
.hd-wine__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: min(58svh, 580px);
}
.hd-wine__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  pointer-events: none;
}
.hd-wine__data { margin-top: clamp(16px, 3vh, 30px); text-align: center; }
.hd-wine__title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5d1010;
}
.hd-wine__name {
  display: block;
  margin-top: 9px;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1c1616;
  opacity: 0.7;
}

/* Rand-Buttons (weiße Verläufe) */
.hd-wines__btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(64px, 9vw, 150px);
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s;
}
.hd-wines__btn--prev { left: 0; background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)); }
.hd-wines__btn--next { right: 0; background: linear-gradient(-90deg, #fff 30%, rgba(255, 255, 255, 0)); }
.hd-wines__btn[disabled] { opacity: 0; pointer-events: none; }
.hd-wines__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-top: 1.5px solid rgba(93, 16, 16, 0.55);
  border-right: 1.5px solid rgba(93, 16, 16, 0.55);
}
.hd-wines__btn--prev::after { left: 34%; transform: translateY(-50%) rotate(-135deg); }
.hd-wines__btn--next::after { right: 34%; transform: translateY(-50%) rotate(45deg); }

/* Wisch-Hinweis (animierte Linie) */
.hd-wines__drag {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4.5vh, 44px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  color: #5d1010;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  pointer-events: none;
}
.hd-wines.is-scrollable:not(.hint-hidden) .hd-wines__drag { opacity: 1; visibility: visible; }
.hd-wines__drag-label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.hd-wines__drag-line {
  position: relative;
  width: 34px;
  height: 1px;
  margin-left: 12px;
  background: rgba(93, 16, 16, 0.3);
  overflow: hidden;
}
.hd-wines__drag-line-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: #5d1010;
  animation: hd-wines-line 1.9s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes hd-wines-line {
  0% { transform-origin: right; transform: scaleX(0); }
  45% { transform: scaleX(1); transform-origin: right; }
  55% { transform: scaleX(1); transform-origin: left; }
  100% { transform: scaleX(0); transform-origin: left; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-wines__drag-line-inner { animation: none; }
  .hd-wines__drag { display: none; }
}

@media (max-width: 767.98px) {
  .hd-wines { --hd-wine-w: 86vw; }
  .hd-wine__media { height: min(52svh, 520px); }
}

/* ============================================================
   Mobile Stage-Feinschliff (29.09.26 aus dem Kopf-Workaround übernommen)
   ============================================================ */
@media (max-width: 900px) {
  #lw-video { object-position: 74% 50%; }
  .lw-cap--1 { left: 50%; top: auto; bottom: clamp(20px, 7vh, 70px); transform: translateX(-50%); text-align: center; }
  .lw-cap--1 .lw-cap-title { font-size: clamp(38px, 13vw, 96px); }
  .lw-cap--2, .lw-cap--3 { left: 50%; top: auto; bottom: clamp(18px, 6vh, 70px); transform: translateX(-50%); }
  .lw-cap--2 .lw-cap-inner, .lw-cap--3 .lw-cap-inner { max-width: min(92vw, 480px); }
  .lw-cap--2 .lw-cap-h, .lw-cap--3 .lw-cap-h { white-space: nowrap; letter-spacing: normal; font-size: 26px; }
  .lw-cap--4 { left: 50%; bottom: clamp(16px, 3svh, 48px); transform: translateX(-50%); }
  .lw-cap--4 .lw-cap-inner { width: min(94vw, 480px); max-width: none; padding: 16px 18px; }
  .lw-cap--4 .lw-cap-h { font-size: clamp(24px, 7vw, 32px); }
  .lw-cap--4 .lw-cap-p { font-size: 13.5px; margin-top: 8px; line-height: 1.5; }
  .lw-cap--4 .lw-cap-cta { margin-top: 14px; gap: 10px; }
  .lw-cap--4 .lw-btn { padding: 11px 18px; font-size: 12px; }
  .lw-bottle { width: min(42vh, 66vw); top: 44%; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .lw-bottle { width: min(33svh, 55vw); }
}
@media (max-width: 600px) {
  .lw-cap--1 .lw-cap-title { font-size: clamp(36px, 12.5vw, 80px); }
}


/* ---------- Cursor: weinrotes Weinglas statt Punkt (30.09.26) ---------- */
.cursor__glass svg { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
