/*
 * Product page sections below the decision zone (design style.css, c0fa158): benefits head with situations
 * (.bhead/.bsit), benefit photo card (.bhero), daily dose note (.ings-note), Spar-Abo benefits (.sabo),
 * cross-sell grid (.xsell-grid → ll/xsell around the shop's product cards), icon list variants.
 */
:root .ll-bhero {   /* Vorteile-Block der PDP: Foto mit dunklem Panel und drei Vorteilen (Titel steht darüber in .ll-bhead) */
  /* Placeholder photo of the design (licence open, to be replaced before launch): shown until the team chooses a photo
     per product page (sidebar «Foto», inc/blocks/benefits-photo.php → .ll-bhero--photo below). In the editor the chosen
     photo comes in through these variables (--ll-bhero-img, --ll-bhero-focal*). */
  --ll-bhero-img: url("../images/hund-spaziergang.webp");
  --ll-bhero-shade: linear-gradient(180deg, color-mix(in srgb, var(--ll-petrol-deep) 55%, transparent) 0%, color-mix(in srgb, var(--ll-petrol-deep) 15%, transparent) 45%, color-mix(in srgb, var(--ll-petrol-deep) 25%, transparent) 100%);
  position: relative;
  border-radius: var(--ll-r-xl);
  overflow: hidden;
  min-height: var(--ll-bhero-min);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    var(--ll-bhero-shade),
    var(--ll-bhero-img) var(--ll-bhero-focal, center 120%) / cover no-repeat var(--ll-petrol);
}
:root .ll-bhero__panel {
  background: var(--ll-petrol-deep);
  padding: clamp(var(--ll-space-32), 3.6vw, var(--ll-space-48)) clamp(var(--ll-space-32), 5vw, var(--ll-space-80)) clamp(var(--ll-space-40), 4vw, var(--ll-space-48));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--ll-space-24), 3vw, var(--ll-space-40));
}
:root .ll-bhero__item :is(svg, .ll-icon) {
  width: var(--ll-icon-xl);
  height: var(--ll-icon-xl);
  color: var(--ll-cyan); /* .ll-icon: the mask is drawn in the text colour */
  stroke: var(--ll-cyan);
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: var(--ll-space-16);
}
:root .ll-bhero__item h3 { font-size: var(--ll-h4); font-weight: 700; color: var(--ll-white); margin-bottom: var(--ll-space-8); line-height: var(--ll-lh-tight); }
:root .ll-bhero__item p { font-size: var(--ll-small); line-height: var(--ll-lh-relaxed); color: var(--ll-on-dark-soft); }
/* A photo the team chose (inc/blocks/benefits-photo.php): a band above the panel on every device, cropped (cover) to
   the band around the focal point per device (centre without one). On the desktop the block keeps its height and the
   band takes what the panel leaves (the part of today's photo that shows above the panel). On the website the band is
   a real image (.ll-bhero__img); the editor has no image of the server render, there the block's ::before draws it
   (class ll-bhero--band and --ll-bhero-img, assets/js/hero-focal-editor.js). The shade lies over the block as before,
   the panel above it. Without a chosen photo nothing of this applies. */
:root .ll-bhero--photo {
  --ll-bhero-img: none;
}
:root .ll-bhero--photo .ll-bhero__img {
  display: block;
  margin: 0; /* a block in the flow layout: no content spacing below it */
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: var(--ll-bhero-focal, 50% 50%);
}
:root .ll-bhero--band::before {
  content: "";
  display: block;
  flex: 1 1 0;
  min-height: 0;
  background: var(--ll-bhero-img) var(--ll-bhero-focal, 50% 50%) / cover no-repeat;
}
:root :is(.ll-bhero--photo, .ll-bhero--band)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ll-bhero-shade);
  pointer-events: none;
}
:root :is(.ll-bhero--photo, .ll-bhero--band) .ll-bhero__panel {
  position: relative;
  z-index: 1;
}
/* No block spacing inside the benefits block, wherever it stands: WordPress's flow layout puts its block gap above every
   block but the first and Blocksy its content spacing below it. On a product page these are 0 already; in the editor
   and on other pages they made the panel grow (and, as the block aligns its content to the bottom, a strip of the
   photo showed below the panel), and with a chosen photo the panel is no longer the first child (gap above it). Own
   margins stay (heading, icon). */
:root .ll-bhero :is(.ll-bhero__panel, .ll-bhero__item, .ll-bhero__item > *) {
  margin-block-start: 0;
}
:root .ll-bhero :is(.ll-bhero__panel, .ll-bhero__item, .ll-bhero__item > :not(h3)) {
  margin-block-end: 0;
}
/* Editor only: the benefits block as on the website.
   - The block appender («+») of the selected block, its panel or an item takes no room (the website has none).
   - Its width: on the website Blocksy keeps content in a section off the window edges (--theme-container-edge-spacing);
     the editor lets every section's content run to the canvas edges, so the panel's text wrapped differently.
   - The icon: on the website it stands in a line of text (its block box has display: contents), whose line height adds
     a little space below it; in the editor the block box stays (to select the icon) and is laid out as that line. */
:root .editor-styles-wrapper .is-layout-constrained > .ll-bhero {
  width: var(--theme-container-edge-spacing);
  margin-inline: auto;
}
:root .editor-styles-wrapper .ll-bhero__item > .ll-icon-box {
  display: block;
}
:root .editor-styles-wrapper .ll-bhero__item > .ll-icon-box > .ll-icon {
  display: inline-block;
}
:root .editor-styles-wrapper .ll-bhero .block-list-appender {
  position: absolute;
  right: var(--ll-space-8);
  bottom: var(--ll-space-8);
  z-index: 2;
  margin: 0;
}
@media (max-width: 999.98px) {   /* Tablet + Phone: Foto als Band über dem Panel */
  :root .ll-bhero { min-height: 0; background: var(--ll-petrol-deep); }
  :root .ll-bhero::before { content: ""; display: block; height: var(--ll-bhero-band); background: var(--ll-bhero-img) var(--ll-bhero-focal-t, center 70%) / cover no-repeat; }
  :root .ll-bhero--photo::before,
  :root :is(.ll-bhero--photo, .ll-bhero--band)::after { display: none; }
  :root .ll-bhero--band::before { flex: none; }
  :root .ll-bhero--photo .ll-bhero__img {
    flex: none;
    height: var(--ll-bhero-band);
    object-position: var(--ll-bhero-focal-t, 50% 50%);
  }
}
@media (max-width: 689.98px) {
  /* 3 Benefits nie als 2+1 — auf dem Phone auf eine Spalte stapeln */
  :root .ll-bhero__panel { grid-template-columns: 1fr; }
  :root .ll-bhero::before { background-position: var(--ll-bhero-focal-m, center 70%); }
  :root .ll-bhero--photo .ll-bhero__img { object-position: var(--ll-bhero-focal-m, 50% 50%); }
}

:root .ll-ings-note {
  margin-bottom: 0;
  padding: var(--ll-space-16) var(--ll-space-24);
  background: var(--ll-petrol-soft);
  border-radius: var(--ll-r-md);
  width: fit-content;
  display: flex;
  align-items: center;
  gap: var(--ll-space-16);
}
:root .ll-ings-note__label {
  font-size: var(--ll-overline); line-height: var(--ll-lh-tight);
  font-weight: 700;
  letter-spacing: var(--ll-tracking-caps);
  text-transform: uppercase;
  color: var(--ll-petrol);
}
:root .ll-ings-note__cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: var(--ll-space-16);
  border-left: 1px solid color-mix(in srgb, var(--ll-ink) 12%, transparent);
  font-size: var(--ll-tiny); line-height: var(--ll-lh-relaxed);
  white-space: nowrap;
}
:root .ll-ings-note__cells { display: flex; align-items: center; gap: var(--ll-space-16); }
:root .ll-ings-note__cell strong { font-size: var(--ll-small); line-height: var(--ll-lh-relaxed); color: var(--ll-ink); font-variant-numeric: tabular-nums; }
:root .ll-ings-note__cell span { color: var(--ll-ink-soft); }
@media (max-width: 689.98px) {
  /* Label auf eigene Zeile, 3 Zellen darunter — Box schrumpft auf die Zellen-Reihe */
  :root .ll-ings-note { flex-direction: column; align-items: flex-start; gap: var(--ll-space-12); }
  :root .ll-ings-note__cells .ll-ings-note__cell:first-child { border-left: 0; padding-left: 0; }
}

/* Cross-sell (design .xsell-grid): the shop's product cards of the other products (ll/xsell). Desktop three columns,
   tablet a swipe row (2-up with peek), phone compact horizontal cards. */
:root .ll-xsell [data-products] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ll-gap-grid); }
@media (min-width: 690px) and (max-width: 999.98px) {
  :root .ll-xsell [data-products] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--ll-pad-x)); padding: var(--ll-space-4) var(--ll-pad-x) var(--ll-space-8); scroll-padding-inline: var(--ll-pad-x); }
  :root .ll-xsell [data-products]::-webkit-scrollbar { display: none; }
  :root .ll-xsell [data-products] > .product { flex: 0 0 46%; scroll-snap-align: start; }
}
@media (max-width: 689.98px) {
  :root .ll-xsell [data-products] { grid-template-columns: 1fr; gap: var(--ll-space-12); }
  :root .ll-xsell [data-products] > .product { display: grid; grid-template-columns: var(--ll-xsell-thumb) minmax(0, 1fr); align-content: start; column-gap: 0; padding: 0; }
  :root .ll-xsell [data-products] > .product:hover { transform: none; }
  :root .ll-xsell [data-products] > .product > * { grid-column: 2; margin-inline: var(--ll-space-16); }
  :root .ll-xsell [data-products] > .product > :nth-child(2) { margin-top: var(--ll-space-12); }
  :root .ll-xsell [data-products] > .product > :last-child { margin-bottom: var(--ll-space-12); }
  :root .ll-xsell [data-products] > .product > figure { grid-column: 1; grid-row: 1 / span 4; inline-size: auto; block-size: 100%; min-block-size: var(--ll-xsell-thumb-min); margin: 0; border-radius: var(--ll-r-lg) 0 0 var(--ll-r-lg); overflow: visible; display: flex; align-items: center; }
  :root .ll-xsell [data-products] .product figure::before { opacity: var(--ll-xsell-pattern-opacity); border-radius: inherit; }
  :root .ll-xsell [data-products] .product figure img { aspect-ratio: auto !important; max-height: 84%; max-width: 86%; margin: auto; scale: none; translate: none; }
  :root .ll-xsell [data-products] .product .entry-excerpt, :root .ll-xsell .ll-pcard__tiers { display: none; }
  :root .ll-xsell [data-products] .woocommerce-loop-product__title { font-size: var(--ll-body); }
  :root .ll-xsell [data-products="type-2"] .product .ct-woo-card-actions { inline-size: auto; padding-block-start: var(--ll-space-8); border-block-start: 0; align-items: flex-end; }
  :root .ll-xsell [data-products] > .product > figure .ct-media-container { block-size: auto; }
  :root .ll-xsell [data-products="type-2"] .product .ct-woo-card-actions .price, :root .ll-xsell .ll-pcard__price .final-price { font-size: var(--ll-body); }
  :root .ll-xsell [data-products] .product .ll-pcard__badges { top: var(--ll-space-8); left: var(--ll-space-8); gap: var(--ll-space-4); }
  :root .ll-xsell [data-products] .product .ll-pcard__badge { padding: var(--ll-space-4) var(--ll-space-8); }
}



/* Spar-Abo-Vorteile (PDP): Icon-Liste mit Icon im weissen Kreis */
:root .ll-sabo { display: grid; grid-template-columns: 1fr; gap: var(--ll-space-32); align-items: center; }
:root .ll-sabo__media { border-radius: var(--ll-r-xl); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--ll-shadow-float); }
:root .ll-sabo__media figure { margin: 0; height: 100%; }
:root .ll-sabo__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
:root .ll-sabo__body .is-style-ll-lead { margin-top: var(--ll-space-12); }
:root .ll-sabo__list { gap: var(--ll-space-24); margin-top: clamp(var(--ll-space-24), 3vw, var(--ll-space-40)); }
@media (min-width: 690px) {
	:root .ll-sabo { gap: var(--ll-gap-split); }
	:root .ll-sabo__media { order: 2; aspect-ratio: 4 / 5; }
	:root .ll-sabo__media img { object-position: 38% center; }
	:root .ll-sabo__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ll-space-32); }
}
@media (min-width: 690px) and (max-width: 999.98px) {
	:root .ll-sabo { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
	:root .ll-sabo__list { grid-template-columns: 1fr; }
}
@media (min-width: 1000px) {
	:root .ll-sabo { grid-template-columns: var(--ll-sabo-columns); } /* image column like .vet */
}

:root .ll-ilist--compact .ll-ilist__item { align-items: center; gap: var(--ll-space-12); font-size: var(--ll-small); line-height: var(--ll-lh-snug); font-weight: 700; color: var(--ll-ink); }   /* nur ein Label je Eintrag */
:root .ll-ilist--tiles .ll-ilist__item { padding: var(--ll-space-12) var(--ll-space-16); border-radius: var(--ll-r-md); background: var(--ll-beige); }

:root .ll-bhead { margin-bottom: clamp(var(--ll-space-32), 4vw, var(--ll-space-48)); }
:root .ll-bhead .is-style-ll-lead { margin-top: var(--ll-space-12); max-width: 60ch; }
:root .ll-bsit { margin-top: var(--ll-space-24); }
:root .ll-bsit__label { margin-bottom: var(--ll-space-12); font-size: var(--ll-overline); font-weight: 700; letter-spacing: var(--ll-tracking-caps); text-transform: uppercase; color: var(--ll-ink-mute); }
:root .ll-bsit__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ll-space-16); }
@media (max-width: 689.98px) { :root .ll-bsit__list { grid-template-columns: 1fr; gap: var(--ll-space-12); } }
@media (min-width: 1000px) {
  :root .ll-bhead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ll-gap-split); align-items: end; }   /* zwei gleich breite Spalten wie andere Zweispalter */
  :root .ll-bsit { margin-top: 0; }
  :root .ll-bsit__list { gap: var(--ll-space-24) var(--ll-space-32); }
}
