/* home/home.css — jiroo storefront homepage.
   Modern, editorial reading of jiroo.de built on the jiroo Design System
   (Schiefer / Lavendel / Lorbeer · TT Fors + Champ · sharp buttons, soft cards).
   Reuses the new navigation (nav/nav.css) and the catalog product card (.pc,
   from shop/shop.css). Everything else is prefixed .hp-. */

:root {
  --gen-indica: var(--c-lavendel);
  --gen-sativa: var(--c-lorbeer-700);
  --gen-hybrid: var(--c-schiefer-500);
  --hp-max: 1280px;
  --hp-pad: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--c-reinweiss); color: var(--fg); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }

.hp-wrap { max-width: var(--hp-max); margin: 0 auto; padding: 0 var(--hp-pad); }

/* shared section header */
.hp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.hp-head__l { max-width: 60ch; }
.hp-eyebrow { font: 600 12px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-lorbeer-700); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 9px; }
.hp-eyebrow .tick { width: 6px; height: 6px; border-radius: 999px; background: var(--c-lavendel); }
.hp-title { font: 500 clamp(34px, 4.4vw, 56px)/1.02 var(--font-display); letter-spacing: -0.02em; color: var(--c-schiefer); margin: 0; text-wrap: balance; }
.hp-sub { font: 300 18px/1.55 var(--font-sans); color: var(--c-schiefer); margin: 16px 0 0; max-width: 54ch; }
.hp-seclink { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font: 600 14px var(--font-sans); color: var(--c-schiefer); text-decoration: none; border-bottom: 1.5px solid var(--c-schiefer); padding-bottom: 3px; transition: gap var(--dur-base) var(--ease-out), color var(--dur-fast); }
.hp-seclink svg { transition: transform var(--dur-base) var(--ease-out); }
.hp-seclink:hover { color: var(--c-schiefer-500); gap: 12px; }
.hp-seclink:hover svg { transform: translateX(2px); }

/* ============================================================
   HERO
   ============================================================ */
.hp-hero { background: var(--c-schiefer); color: var(--c-lorbeer-hell); position: relative; overflow: hidden; }
.hp-hero::before { /* soft lavender glow top-right */
  content: ""; position: absolute; top: -180px; right: -140px; width: 520px; height: 520px; border-radius: 999px;
  background: radial-gradient(circle, rgba(197,171,219,0.32) 0%, rgba(197,171,219,0) 70%); pointer-events: none;
}
.hp-hero__grid { position: relative; max-width: var(--hp-max); margin: 0 auto; padding: 72px var(--hp-pad) 0;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hp-hero__copy { padding-bottom: 80px; }
.hp-hero__eyebrow { font: 600 12px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-lavendel); margin: 0 0 22px; display: inline-flex; align-items: center; gap: 10px; }
.hp-hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--c-lavendel); box-shadow: 0 0 0 4px rgba(197,171,219,0.22); }
.hp-hero__h { font: 500 clamp(46px, 6.4vw, 92px)/0.96 var(--font-display); letter-spacing: -0.025em; color: var(--c-lorbeer-hell); margin: 0; text-wrap: balance; }
.hp-hero__h em { font-style: normal; color: var(--c-lavendel); }
.hp-hero__sub { font: 300 19px/1.55 var(--font-sans); color: rgba(234,240,230,0.86); margin: 26px 0 0; max-width: 42ch; }
.hp-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hp-hero__trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(234,240,230,0.16); }
.hp-trustitem { display: inline-flex; align-items: center; gap: 9px; font: 400 13.5px var(--font-sans); color: rgba(234,240,230,0.9); }
.hp-trustitem svg { color: var(--c-lavendel); flex: none; }

/* hero media + floating card */
.hp-hero__media { position: relative; align-self: stretch; min-height: 520px; }
.hp-hero__img { position: absolute; inset: 40px 0 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; background: var(--c-lorbeer-hell); }
/* <picture> is inline by default — it has to fill the frame itself, otherwise the
   img's height:100% resolves against an auto-height wrapper. */
.hp-hero__img picture { display: block; width: 100%; height: 100%; }
.hp-hero__img img { width: 100%; height: 100%; object-fit: cover; }
/* Hero rating pill — white rounded pill split into 3 segments (Google · ★ · 🌿),
   each linking to its review source. Collapsed to icon + score; on hover the
   platform name types in and pushes the other segments aside. Ported from the
   Saleor storefront (.hp-hero__rate / .hp-rate-seg). */
.hp-hero__rate { position: absolute; left: -44px; top: 90px; z-index: 3; display: inline-flex; align-items: stretch;
  background: #fff; border: 1px solid var(--c-schiefer-100); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-lg); }
.hp-rate-seg { display: flex; align-items: center; padding: 9px 15px; text-decoration: none; color: var(--c-schiefer);
  font: 600 14px var(--font-sans); border-radius: 999px; transition: background 0.2s ease; }
.hp-rate-seg + .hp-rate-seg { border-left: 1px solid var(--c-schiefer-100); }
.hp-rate-seg:hover { background: var(--bg-muted); }
.hp-rate-ic { display: inline-flex; flex: none; margin-right: 8px; }
.hp-rate-ic svg { width: 18px; height: 18px; display: block; }
.hp-rate-ic--star { color: #2F7A4A; }
.hp-rate-ic--leaf { color: var(--c-lorbeer-700); }
.hp-rate-sc { font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-rate-nm { box-sizing: border-box; display: inline-block; white-space: nowrap; overflow: hidden; max-width: 0;
  padding-right: 7px; opacity: 0; transition: max-width 0.38s ease, opacity 0.28s ease 0.05s; }
.hp-rate-seg:first-child .hp-rate-nm { max-width: var(--w); opacity: 1; }
.hp-hero__rate:hover .hp-rate-seg .hp-rate-nm { max-width: 0; opacity: 0; }
.hp-hero__rate:hover .hp-rate-seg:hover .hp-rate-nm { max-width: var(--w); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hp-rate-nm { transition: none; } }
.hp-hero__live { position: absolute; right: 20px; bottom: 28px; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-radius: var(--r-lg); padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; }
.hp-hero__live .pulse { width: 9px; height: 9px; border-radius: 999px; background: #2F7A4A; box-shadow: 0 0 0 4px rgba(47,122,74,0.18); flex: none; }
.hp-hero__live b { font: 600 13px var(--font-sans); color: var(--c-schiefer); display: block; }
.hp-hero__live span { font: 400 12px var(--font-sans); color: var(--fg-muted); }

/* ============================================================
   CATEGORY BENTO
   ============================================================ */
/* Horizontal padding uses --hp-pad (was 0, which clobbered the .hp-wrap side
   padding and let SORTIMENT/NEU/FAQ run to the screen edge on mobile). */
.hp-cats { padding: 96px var(--hp-pad) 8px; }
.hp-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.hp-tile { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); text-decoration: none;
  background: var(--c-schiefer); isolation: isolate; }
.hp-tile--lg { grid-column: span 2; grid-row: span 2; }
.hp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.hp-tile::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10,54,54,0.86) 0%, rgba(10,54,54,0.30) 46%, rgba(10,54,54,0.04) 100%); transition: opacity var(--dur-base) var(--ease-out); }
.hp-tile:hover img { transform: scale(1.05); }
.hp-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 22px; color: var(--c-reinweiss); }
.hp-tile__cnt { font: 600 11px var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.74); }
.hp-tile__name { font: 500 24px/1.05 var(--font-display); letter-spacing: -0.015em; margin: 6px 0 0; display: flex; align-items: center; gap: 10px; }
.hp-tile--lg .hp-tile__name { font-size: 36px; }
.hp-tile__name .go { width: 30px; height: 30px; border-radius: 999px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28);
  display: inline-flex; align-items: center; justify-content: center; flex: none; opacity: 0; transform: translateX(-6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background var(--dur-fast); margin-left: auto; }
.hp-tile:hover .hp-tile__name .go { opacity: 1; transform: translateX(0); }
.hp-tile:hover .hp-tile__name .go { background: var(--c-lavendel); color: var(--c-schiefer); border-color: var(--c-lavendel); }
.hp-tile__blurb { font: 300 14px/1.45 var(--font-sans); color: rgba(255,255,255,0.85); margin: 8px 0 0; max-width: 36ch;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out), opacity var(--dur-base), margin var(--dur-base); }
.hp-tile--lg:hover .hp-tile__blurb { max-height: 80px; opacity: 1; margin-top: 8px; }

/* ============================================================
   NEW PRODUCTS RAIL
   ============================================================ */
.hp-new { padding: 96px 0; background: var(--c-hellgrau); }

/* ------------------------------------------------------------
   HOME CAROUSEL — shared by the Neuheiten rail and testimonials.
   Mirrors the .pdp-gallery__track / checkout OTC scroll-snap pattern:
   a horizontal scroll-snap track with overlay arrows + dots below,
   swipeable on touch. JS (initHomeCarousels in shop.js) wires the
   arrows/dots and hides the nav when the track does not overflow.
   3-up on desktop keeps the .pc card the SAME size as the .cat-grid.
   ------------------------------------------------------------ */
.hp-carousel { position: relative; }
.hp-carousel__track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 4px 2px; margin: -4px -2px;
}
.hp-carousel__track::-webkit-scrollbar { display: none; }
/* 3-up on desktop: (100% − 2×22px gap) / 3 → identical card width to .cat-grid. */
.hp-carousel__slide { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; scroll-snap-align: start; display: flex; }
.hp-carousel__slide > * { flex: 1; min-width: 0; }
/* Neuheiten rail: 4-up on desktop across the full content width
   ((100% − 3×22px gap) / 4). Desktop only (min-width) so it never fights the
   tablet/mobile overrides below. */
@media (min-width: 1025px) {
  .hp-carousel--products .hp-carousel__slide,
  .hp-carousel--4up .hp-carousel__slide { flex: 0 0 calc((100% - 66px) / 4); }
}
/* Overlay arrows — circular, on the track edges (same idea as the OTC arrows). */
.hp-carousel__arrow {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 999px; z-index: 3;
  border: 1px solid var(--c-schiefer-100); background: #fff; color: var(--c-schiefer);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.hp-carousel__arrow--prev { left: -16px; }
.hp-carousel__arrow--next { right: -16px; }
.hp-carousel__arrow:hover { border-color: var(--c-schiefer); background: var(--c-hellgrau); }
.hp-carousel__arrow[hidden] { display: none; }
/* Dots — centered below the track. */
.hp-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.hp-carousel__dots[hidden] { display: none; }
.hp-carousel__dot { width: 8px; height: 8px; border-radius: 999px; flex: none; padding: 0; border: 0; cursor: pointer;
  background: var(--c-schiefer-100); transition: background var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out); }
.hp-carousel__dot.is-on { background: var(--c-schiefer); width: 22px; }

/* ============================================================
   ORDER STEPS BAND
   ============================================================ */
.hp-band { background: var(--c-schiefer); color: var(--c-lorbeer-hell); position: relative; overflow: hidden; }
.hp-band::before { content: ""; position: absolute; bottom: -160px; left: -120px; width: 460px; height: 460px; border-radius: 999px;
  background: radial-gradient(circle, rgba(197,171,219,0.20) 0%, rgba(197,171,219,0) 70%); pointer-events: none; }
.hp-band__inner { position: relative; max-width: var(--hp-max); margin: 0 auto; padding: 88px var(--hp-pad); }
.hp-band__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 52px; flex-wrap: wrap; }
.hp-band__eyebrow { font: 600 12px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-lavendel); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 9px; }
.hp-band__eyebrow .tick { width: 6px; height: 6px; border-radius: 999px; background: var(--c-lavendel); }
.hp-band__h { font: 500 clamp(34px, 4.2vw, 54px)/1.02 var(--font-display); letter-spacing: -0.02em; color: var(--c-lorbeer-hell); margin: 0; max-width: 18ch; }
.hp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-step { border-top: 2px solid rgba(234,240,230,0.22); padding-top: 24px; position: relative; }
.hp-step__num { font: 500 20px var(--font-display); color: var(--c-lavendel); letter-spacing: -0.01em; }
.hp-step__t { font: 600 21px var(--font-sans); color: var(--c-lorbeer-hell); margin: 16px 0 8px; letter-spacing: -0.01em; }
.hp-step__b { font: 300 15.5px/1.55 var(--font-sans); color: rgba(234,240,230,0.82); margin: 0; max-width: 34ch; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.hp-test { padding: 96px 0; background: var(--c-hellgrau); }
.hp-test__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.hp-rates { display: flex; gap: 12px; }
.hp-rate { display: flex; flex-direction: column; gap: 5px; background: #fff; border: 1px solid var(--c-schiefer-100);
  border-radius: var(--r-md); padding: 14px 18px; min-width: 150px; }
.hp-rate__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hp-rate__src { font: 600 13px var(--font-sans); color: var(--c-schiefer); }
.hp-rate__stars { display: inline-flex; gap: 1px; color: var(--c-lavendel); }
.hp-rate__num { font: 500 22px var(--font-display); color: var(--c-schiefer); letter-spacing: -0.01em; }
.hp-rate__num small { font: 400 12px var(--font-sans); color: var(--fg-muted); margin-left: 4px; }
.hp-tcard { background: #fff; border: 1px solid var(--c-schiefer-100); border-radius: var(--r-lg); padding: 30px 30px 26px;
  /* margin:0 kills the UA default figure margin (1em 40px), which shrank each
     card 80px inside its slide and pushed the verified badge past the edge. */
  margin: 0;
  display: flex; flex-direction: column; transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.hp-tcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.hp-tcard__stars { display: inline-flex; gap: 2px; color: var(--c-lavendel); margin-bottom: 16px; }
.hp-tcard__quote { font: 400 19px/1.5 var(--font-sans); color: var(--c-schiefer); letter-spacing: -0.005em; margin: 0 0 22px; text-wrap: pretty; }
.hp-tcard__quote::before { content: "\201C"; }
.hp-tcard__quote::after { content: "\201D"; }
.hp-tcard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--c-schiefer-100); }
.hp-tcard__who { min-width: 0; }
.hp-tcard__avatar { width: 42px; height: 42px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--c-lorbeer-hell); color: var(--c-lorbeer-700); font: 600 15px var(--font-sans); }
.hp-tcard__who b { font: 600 14.5px var(--font-sans); color: var(--c-schiefer); display: block; }
.hp-tcard__who span { font: 300 13px var(--font-sans); color: var(--fg-muted); }
/* Badge sits on its own full-width row below the name — long author names
   were wrapping it inconsistently, leaving card footers at different heights. */
.hp-tcard__verified { flex-basis: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 5px; font: 500 11.5px var(--font-sans); color: var(--c-success); }

/* ============================================================
   FAQ
   ============================================================ */
.hp-faq { padding: 96px var(--hp-pad) 110px; }
.hp-faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.hp-faq__aside { position: sticky; top: 130px; }
.hp-faq__aside .hp-sub { margin-top: 16px; }
.hp-faq__help { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hp-faq__list { border-top: 1px solid var(--c-schiefer-100); }
.hp-faqi { border-bottom: 1px solid var(--c-schiefer-100); }
.hp-faqi__q { width: 100%; background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 24px 4px; text-align: left; font: 500 19px var(--font-sans); color: var(--c-schiefer); letter-spacing: -0.005em;
  transition: color var(--dur-fast) var(--ease-out); }
.hp-faqi__q:hover { color: var(--c-schiefer-500); }
.hp-faqi__ico { flex: none; position: relative; width: 18px; height: 18px; color: var(--c-schiefer-300); }
.hp-faqi__ico::before, .hp-faqi__ico::after { content: ""; position: absolute; background: currentColor; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.hp-faqi__ico::before { left: 0; right: 0; top: 8px; height: 2px; }
.hp-faqi__ico::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.hp-faqi.is-open .hp-faqi__ico { color: var(--c-schiefer); }
.hp-faqi.is-open .hp-faqi__ico::after { transform: rotate(90deg); opacity: 0; }
.hp-faqi__a { max-height: 0; overflow: hidden; transition: max-height var(--dur-base) var(--ease-out); }
.hp-faqi.is-open .hp-faqi__a { max-height: 360px; }
.hp-faqi__a p { font: 300 16px/1.65 var(--font-sans); color: var(--c-schiefer); margin: 0; padding: 0 4px 26px; max-width: 64ch; text-wrap: pretty; }

/* ============================================================
   FOOTER (mirrors shop chrome.js footer)
   ============================================================ */
/* uses .jk-footer + .jk-trust + .jk-reg from kit.css / shop.css */

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hp-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .hp-reveal.is-in { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --hp-pad: 28px; }
  .hp-hero__grid { grid-template-columns: 1fr; gap: 0; padding-top: 56px; }
  .hp-hero__copy { padding-bottom: 8px; }
  .hp-hero__media { min-height: 360px; margin-top: 40px; }
  .hp-hero__img { inset: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  /* Grid stacks: anchor the floating pill near the top of the stacked image
     so it sits just inside the image top edge, not off-canvas at the bottom. */
  .hp-hero__rate { left: 12px; top: 16px; }
  .hp-bento { grid-auto-rows: 170px; }
  .hp-prow { grid-template-columns: repeat(2, 1fr); }
  .hp-steps { grid-template-columns: 1fr; gap: 0; }
  .hp-step { border-top: 0; border-bottom: 1px solid rgba(234,240,230,0.18); padding: 22px 0; }
  .hp-step:first-child { border-top: 2px solid rgba(234,240,230,0.22); }
  /* Carousels: 2-up on tablet — track overflows → swipeable + nav shown. */
  .hp-carousel__slide { flex: 0 0 calc((100% - 22px) / 2); }
  .hp-faq__grid { grid-template-columns: 1fr; gap: 32px; }
  .hp-faq__aside { position: static; }
}
@media (max-width: 720px) {
  .hp-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hp-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .hp-tile--lg { grid-column: span 2; grid-row: span 1; }
  .hp-cats, .hp-new, .hp-test, .hp-faq { padding-top: 64px; padding-bottom: 64px; }
  /* Mobile: ~1.15 cards peeking → clearly swipeable, never a stacked column. */
  .hp-carousel__slide { flex: 0 0 86%; }
  .hp-carousel__arrow { top: 44%; width: 40px; height: 40px; }
  .hp-carousel__arrow--prev { left: 8px; }
  .hp-carousel__arrow--next { right: 8px; }
}
@media (max-width: 520px) {
  .hp-prow { grid-template-columns: 1fr; }
  .hp-rates { width: 100%; }
}

/* Verified badge doubles as the card's outbound link to the review platform. */
a.hp-tcard__verified { text-decoration: none; }
a.hp-tcard__verified:hover { text-decoration: underline; text-underline-offset: 2px; }
