/* =================================================================
   WM 2026 × easycosmetic — landing page styles (DEVR-4416)
   Same architecture as fc-zurich/DEVS-6166 — beat shell padding/box-sizing,
   then mirror the source HTML mockup (header_bag hero, stats frame, Startelf
   filter, WM-Deals, Ratgeber, footer band).
   ================================================================= */

/* ---- Shell overrides (scoped to wm2026 only via :has) ---- */
body:has(.vibe-wm2026-page) #basecontainer,
body:has(.vibe-wm2026-page) #content,
body:has(.vibe-wm2026-page) .ui-container,
body:has(.vibe-wm2026-page) .rubrik-container {
  overflow-y: visible !important;
}

@media (min-width: 769px) {
  body:has(.vibe-wm2026-page) #content {
    padding: 0 !important;
  }
}

/* ---- Design tokens ---- */
.vibe-wm2026-page {
  --ff-demi: 'Futura PT Demi', 'FuturaPT-Demi', 'Futura PT', Futura, 'Futura-Bold', 'Century Gothic', Arial, sans-serif;
  --ff-book: 'Futura PT Book', 'FuturaPT-Book', 'Futura PT', Futura, 'Century Gothic', Arial, sans-serif;

  --h1-size: 44px; --h1-lh: 55px;
  --h2-size: 40px; --h2-lh: 50px;
  --h3-size: 20px; --h3-lh: 28px;
  --copy-size: 18px; --copy-lh: 24px;
  --sec-copy-size: 18px; --sec-copy-lh: 24px;

  --c-black: #111;
  --c-gray: #555;
  --c-light-gray: #888;
  --c-border: #E0E0E0;
  --c-cream: #faf7f2;

  --max-w: 1200px;
  --pad-x: 24px;

  font-family: var(--ff-book);
  font-size: var(--copy-size);
  line-height: var(--copy-lh);
  color: var(--c-black);
  background: #fff;
}

/* Beat shell's `#content * { box-sizing: content-box !important }`. */
#content .vibe-wm2026-page,
#content .vibe-wm2026-page *,
#content .vibe-wm2026-page *::before,
#content .vibe-wm2026-page *::after {
  box-sizing: border-box !important;
}

#content .vibe-wm2026-page h1,
#content .vibe-wm2026-page h2 {
  font-family: var(--ff-demi) !important;
  font-weight: 700 !important;
  color: var(--c-black) !important;
  margin: 0 0 12px !important;
}

#content .vibe-wm2026-page h2 {
  font-size: var(--h2-size) !important;
  line-height: var(--h2-lh) !important;
}

#content .vibe-wm2026-page p {
  font-family: var(--ff-book) !important;
  font-size: var(--copy-size) !important;
  line-height: var(--copy-lh) !important;
  margin: 0 0 1em;
  color: inherit;
}

#content .vibe-wm2026-page p:last-child { margin-bottom: 0; }

/* Page-level section wrapper.
 * Reduced from 72px / 52px (source HTML) to 40px / 28px per DEVS-6259 QA
 * round 2 (Denice): "Bitte verringere die Abstände zwischen den einzelnen
 * Modulen auf der Landingpage." */
.vibe-wm2026-section {
  width: 100%;
  max-width: calc(var(--max-w) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 40px var(--pad-x);
}
.vibe-wm2026-section--tight {
  padding-top: 28px;
  padding-bottom: 28px;
}

/* Desktop: align every top-level section to the hero's 994px breakout
 * (same trick as fc-zurich — escape the 950px shell container). */
@media (min-width: 1025px) {
  .vibe-wm2026-page .vibe-wm2026-section,
  .vibe-wm2026-page .vibe-wm2026-stats-wrap,
  .vibe-wm2026-page .vibe-wm2026-footer-band-wrap {
    width: 994px;
    max-width: 994px;
    margin-left: -22px;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.vibe-wm2026-section__title {
  font-family: var(--ff-demi);
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  font-weight: 700;
  margin: 0 0 12px;
}
.vibe-wm2026-section__copy {
  font-size: var(--sec-copy-size);
  line-height: var(--sec-copy-lh);
  color: #222;                        /* match fc-zurich .intro__copy */
  margin: 0 0 36px;
}

/* =================================================================
   HERO — full-bleed at desktop (matches fc-zurich pattern)
   ================================================================= */
.vibe-wm2026-hero {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 7;
  max-height: 580px;
}

@media (min-width: 1025px) {
  .vibe-wm2026-hero {
    width: 994px;
    margin-left: -22px;
    max-width: none;
  }
}

.vibe-wm2026-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vibe-wm2026-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(0,0,0,0.8) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.1) 70%,
    rgba(0,0,0,0) 100%
  );
}
.vibe-wm2026-hero__scrim-b {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0) 60%
  );
}
.vibe-wm2026-hero__content {
  position: absolute;
  bottom: 44px;
  left: var(--pad-x);
  right: var(--pad-x);
  max-width: 700px;
  z-index: 2;
  color: #fff;
}

#content .vibe-wm2026-page .vibe-wm2026-hero__h1 {
  font-family: var(--ff-demi) !important;
  font-size: var(--h1-size) !important;
  line-height: var(--h1-lh) !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
#content .vibe-wm2026-page .vibe-wm2026-hero__sub {
  font-family: var(--ff-book) !important;
  font-size: 22px !important;
  line-height: 28px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.92) !important;
  margin: 0 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

/* =================================================================
 * Mobile: bump design tokens (fc-zurich pattern — see fczurich.css ~line 915).
 * Hero h1, h2, copy, intro list etc. all use these vars, so they scale up
 * together on small screens.
 * ================================================================= */
@media (max-width: 768px) {
  .vibe-wm2026-page {
    --h1-size: 60px; --h1-lh: 72px;
    --h2-size: 48px; --h2-lh: 60px;
    --h3-size: 36px; --h3-lh: 48px;
    --copy-size: 32px; --copy-lh: 44px;
    --sec-copy-size: 32px; --sec-copy-lh: 44px;
    --pad-x: 16px;
  }
  .vibe-wm2026-hero {
    aspect-ratio: 1955 / 2047;        /* fc-zurich's nearly-square mobile ratio */
    max-height: none;
  }
  /* Subline matches fc-zurich's explicit mobile rule (same 32/44 values).
   * h1 picks up the bumped --h1-size automatically. */
  #content .vibe-wm2026-page .vibe-wm2026-hero__sub {
    font-size: 32px !important;
    line-height: 44px !important;
  }
  .vibe-wm2026-hero__content { bottom: 28px; left: 20px; right: 20px; }
}

/* =================================================================
   STATS — fc-zurich pattern: 4-col grid desktop, 2x2 mobile with cell borders,
   footnote OUTSIDE the bordered frame.
   ================================================================= */
.vibe-wm2026-stats-wrap {
  width: 100%;
  max-width: calc(var(--max-w) + var(--pad-x) * 2);
  margin: 40px auto 0;
  padding: 0 var(--pad-x);
}
.vibe-wm2026-stats-frame {
  border: 4px solid var(--c-black);
  background: #fff;
}
.vibe-wm2026-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.vibe-wm2026-stat {
  text-align: center;
  padding: 36px 16px;
}
.vibe-wm2026-stat__num {
  display: block;
  font-family: var(--ff-demi);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--c-black);
}
.vibe-wm2026-stat__plus { font-size: 0.6em; vertical-align: super; }
.vibe-wm2026-stat__unit { font-size: 0.6em; vertical-align: super; }
.vibe-wm2026-stat__label {
  display: block;
  margin-top: 8px;
  font-family: var(--ff-book);
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-gray);
}
/* Footnote uses the same size/colour as .vibe-wm2026-stat__label.
 * !important + higher specificity beats the page-wide
 * `#content .vibe-wm2026-page p { font-size: var(--copy-size) !important }`. */
#content .vibe-wm2026-page .vibe-wm2026-stats__footnote {
  margin: 14px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: var(--c-gray) !important;
}

/* Mobile: 4→2x2 grid + bumped sizes (fc-zurich pattern). */
@media (max-width: 768px) {
  .vibe-wm2026-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .vibe-wm2026-stat {
    padding: 24px 8px;
    border-bottom: 1px solid #eee;
  }
  .vibe-wm2026-stat:nth-child(2n) { border-left: 1px solid #eee; }
  .vibe-wm2026-stat:nth-last-child(-n+2) { border-bottom: 0; }
  .vibe-wm2026-stat__num { font-size: 72px; }
  .vibe-wm2026-stat__label { font-size: 24px; }
  #content .vibe-wm2026-page .vibe-wm2026-stats__footnote {
    font-size: 24px !important;
  }
}

/* =================================================================
   INTRO
   ================================================================= */
.vibe-wm2026-intro__title {
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  margin: 0 0 24px;
}
.vibe-wm2026-intro__list {
  margin: 0;
  padding-left: 1.2em;
}
/* Same trick as fc-zurich p — !important beats any shell override on li. */
#content .vibe-wm2026-page .vibe-wm2026-intro__list li {
  font-family: var(--ff-book) !important;
  font-size: var(--copy-size) !important;
  line-height: var(--copy-lh) !important;
  margin: 6px 0;
  color: #222;
}

/* =================================================================
   STARTELF / DEALS — `.products` grid comes from shared-products.css
   (default 4 cols). Override to 5 cols on desktop for the WM2026 page.
   ================================================================= */
@media (min-width: 769px) {
  .vibe-wm2026-page .vibe-products ul.products {
    grid-template-columns: repeat(5, 1fr);
  }
}

.vibe-wm2026-startelf-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.vibe-wm2026-startelf-filter li {
  list-style: none;
  padding: 0 18px;
  line-height: 32px;
  background-color: transparent;
  border: 1px solid #9b9899;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: #9b9899;
  font-family: var(--ff-demi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  user-select: none;
}
.vibe-wm2026-startelf-filter li:hover {
  background-color: #f29400;
  border-color: #f29400;
  color: #fff;
}
.vibe-wm2026-startelf-filter li.active {
  background-color: var(--c-black);
  border-color: var(--c-black);
  color: #fff;
}

/* Hide-class for Startelf cards. shared-products.css has
 * `.vibe-products .products > li.product { display: flex !important }` on
 * mobile — specificity (0,3,1). Match the parent chain + add one extra
 * class for specificity (0,3,2) so our `display: none` wins. */
.vibe-products .products > li.product.vibe-wm2026-startelf-item--hidden {
  display: none !important;
}
/* Mobile bump — same numbers perfumers-detail.css uses (line 736–743). */
@media (max-width: 768px) {
  .vibe-wm2026-startelf-filter li {
    min-height: 44px;
    height: auto;
    display: flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 20px;
  }
}

/* =================================================================
   INSTAGRAM (DE + CH only — rendered conditionally)
   ================================================================= */
.vibe-wm2026-instagram__head { margin-bottom: 24px; }
.vibe-wm2026-instagram__head h2 { margin: 0 0 8px; }
.vibe-wm2026-instagram__head p { color: var(--c-gray); max-width: 560px; }

/* Initial height for the Elfsight iframe — matches fc-zurich's ec-insta
 * (500px). elf.site only sends an iframe-resizer Ready handshake and no
 * subsequent size messages, so this is effectively the rendered height.
 * Some empty space at the bottom is the lesser evil vs. an internal scroll. */
.vibe-wm2026-instagram iframe[id^="vibe-wm2026-instagram__iframe"] {
  min-height: 500px;
  display: block;
  width: 100%;
  border: 0;
}

/* =================================================================
   RATGEBER (3 article cards, no images — text only for now)
   ================================================================= */
.vibe-wm2026-rat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 16px;
}
.vibe-wm2026-rat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: box-shadow .25s;
}
.vibe-wm2026-rat-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  /* No card-level transform — only the inner image scales on hover (source HTML pattern) */
}
.vibe-wm2026-rat-card__img-wrap { overflow: hidden; flex-shrink: 0; }
.vibe-wm2026-rat-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.vibe-wm2026-rat-card:hover .vibe-wm2026-rat-card__img { transform: scale(1.04); }
.vibe-wm2026-rat-card__body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.vibe-wm2026-rat-card__title {
  font-family: var(--ff-demi);
  font-size: 18px !important;
  line-height: 27px !important;
  font-weight: 700;
  margin: 0 0 12px !important;
  color: var(--c-black);
}
.vibe-wm2026-rat-card__desc {
  font-size: 15px !important;
  line-height: 24px !important;
  color: var(--c-gray);
  margin: 0 0 16px !important;
  flex: 1;
}
.vibe-wm2026-rat-card__cta {
  font-family: var(--ff-demi);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-black);
  margin-top: auto;
}
.vibe-wm2026-rat-card:hover .vibe-wm2026-rat-card__cta { text-decoration: underline; }

/* Mobile: horizontal scroll with snap (source HTML lines 306–321). */
@media (max-width: 768px) {
  .vibe-wm2026-rat-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    margin-top: 24px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .vibe-wm2026-rat-card {
    flex: 0 0 80vw;
    scroll-snap-align: start;
  }
  .vibe-wm2026-rat-card__body { padding: 20px 16px 24px; }
  .vibe-wm2026-rat-card__title  { font-size: 28px !important; line-height: 36px !important; }
  .vibe-wm2026-rat-card__desc   { font-size: 22px !important; line-height: 32px !important; }
  .vibe-wm2026-rat-card__cta    { font-size: 20px; }
}
@media (max-width: 900px) and (min-width: 769px) {
  .vibe-wm2026-rat-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   FOOTER BAND — same wrap pattern as stats-wrap so the bordered box has
   horizontal padding from screen edges on mobile.
   ================================================================= */
.vibe-wm2026-footer-band-wrap {
  width: 100%;
  max-width: calc(var(--max-w) + var(--pad-x) * 2);
  margin: 0 auto 60px;
  padding: 0 var(--pad-x);
}
.vibe-wm2026-footer-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border: 4px solid var(--c-black);
  background: #fff;
  padding: 52px 60px;
}
.vibe-wm2026-footer-band__text { flex: 1; min-width: 280px; }
/* Reuse the existing --h1 design token so the headline scales with the rest
 * of the page (44/55 desktop, 60/72 mobile via the @media var redefinition). */
.vibe-wm2026-footer-band__hl {
  font-family: var(--ff-demi);
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--c-black);
}
.vibe-wm2026-footer-band__sub {
  font-size: 16px !important;
  line-height: 24px !important;
  color: var(--c-gray);
  margin: 0 !important;
}

/* =================================================================
   BUTTON (matches source HTML .btn — solid black with white text by default)
   ================================================================= */
.vibe-wm2026-btn {
  display: inline-block;
  font-family: var(--ff-demi);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: 1.5px solid var(--c-black);
  background: var(--c-black);
  color: #fff !important;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.vibe-wm2026-btn:hover {
  background: #fff;
  color: var(--c-black) !important;
}
/* Mobile: scale up the CTA to match fc-zurich's .vibe-fczurich-insta__cta. */
@media (max-width: 768px) {
  .vibe-wm2026-btn {
    font-size: 26px;
    padding: 24px 44px;
  }
}
