/* GP1021.3: restore one calm status language on desktop, mobile and search.
   Green means an observed positive shop indication, NOT a stock guarantee. */
body #gp-main .gp-product-loop-stock-indicator:is(.is-stock-yes,.is-stock-orderable858),
body #gp-main .gp-product-archive .gp-product-loop-stock-indicator:is(.is-stock-yes,.is-stock-orderable858),
body.single-gp_product #gp-main .gp-related-stock1021:is(.is-active,.is-orderable),
body.single-gp_product #gp-main .gp-head-hero-offer-facts :is(.is-availability,.is-availability-orderable) dd,
body #gp-main .gp-article-product896__availability.is-active,
body .gp636-search-portal .gp539-suggest-stock:is(.is-stock,.is-orderable){
  color:#26764b!important;
  font-weight:700;
}

/* A seven-pixel solid dot replaces the checkmark and yellow status symbol. */
body #gp-main .gp-product-loop-stock-indicator:is(.is-stock-yes,.is-stock-orderable858)>i,
body #gp-main .gp-product-archive .gp-product-loop-stock-indicator:is(.is-stock-yes,.is-stock-orderable858)>i,
body #gp-main .gp-article-product896__availability.is-active>i,
body.single-gp_product #gp-main .gp-head-hero-offer-facts dd>.gp-availability-dot1021{
  display:inline-block!important;position:static!important;
  flex:0 0 7px!important;width:7px!important;height:7px!important;
  min-width:7px!important;min-height:7px!important;
  margin:0 4px 0 0!important;padding:0!important;border:0!important;
  border-radius:50%!important;background:#29975a!important;
  box-shadow:none!important;vertical-align:middle!important;
}
body.single-gp_product #gp-main .gp-related-stock1021:is(.is-active,.is-orderable)::before{
  content:"";display:inline-block;width:7px;height:7px;
  margin-right:7px;vertical-align:middle;border-radius:50%;background:#29975a;
}
body .gp636-search-portal .gp539-suggest-stock:is(.is-stock,.is-orderable)::before{
  content:"";display:inline-block!important;flex:0 0 7px;
  width:7px!important;height:7px!important;border-radius:50%;background:#29975a!important;
}
body .gp636-search-portal .gp539-suggest-stock.has-status-check::before{display:inline-block!important}

/* Merkliste and comparison are rendered by the Suite, not the catalogue. */
body .gp-collection .gp-availability-label1021{
  display:inline-flex;align-items:center;gap:6px;
  color:#26764b!important;font-weight:700;
}
body .gp-collection .gp-availability-label1021::before{
  content:"";display:inline-block;flex:none;width:7px;height:7px;
  border-radius:50%;background:#29975a;
}

/* The card footer has a documented per-field date in the DOM/accessible name
   and the status tooltip. It must not create an extra visual card row. */
body #gp-main .gp-product-loop-datastand1021,
body.single-gp_product #gp-main .gp-related-datastand1021{
  position:absolute!important;display:block!important;width:1px!important;
  height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip-path:inset(50%)!important;
  white-space:nowrap!important;border:0!important;
}

/* Product image zoom belongs bottom-right of the photograph, never on top
   of the category chips or in the thumbnail strip. */
body .gp-product-loop-media>.gp-card-zoom983-trigger,
body .gp-home-product-card__image>.gp-card-zoom983-trigger,
body .gp-article-product896__media>.gp-card-zoom983-trigger{
  top:auto!important;right:11px!important;bottom:11px!important;
  width:35px!important;height:35px!important;
  min-width:35px!important;min-height:35px!important;
}
body .gp-product-loop-media.has-gallery>.gp-card-zoom983-trigger{
  bottom:calc(var(--gp-loop-gallery-h,58px) + 11px)!important;
}
@media(max-width:599px){
  body .gp-product-loop-media>.gp-card-zoom983-trigger,
  body .gp-home-product-card__image>.gp-card-zoom983-trigger,
  body .gp-article-product896__media>.gp-card-zoom983-trigger{
    right:9px!important;bottom:9px!important;
    width:27px!important;height:27px!important;
    min-width:27px!important;min-height:27px!important;
  }
  body .gp-product-loop-media.has-gallery>.gp-card-zoom983-trigger{
    bottom:calc(var(--gp-loop-gallery-h,58px) + 9px)!important;
  }
}

/* Fewer ornaments in the single-item substance summary, full-width copy. */
body.single-gp_product .gp-product-substance-summary>article{
  grid-template-columns:minmax(0,1fr)!important;
  gap:.45rem!important;padding:clamp(.9rem,1.6vw,1.25rem)!important;
}
body.single-gp_product .gp-product-substance-summary>article>div{gap:.4rem}
body.single-gp_product .gp-product-substance-summary .gp-product-substance-more{
  justify-self:start;margin-top:.15rem;
}
body.single-gp_product .gp-product-substance-info-content__footer{
  grid-template-columns:minmax(0,1fr);gap:.85rem;
}
body.single-gp_product .gp-product-substance-info-content__footer p{
  text-wrap:pretty;max-width:none;
}
body.single-gp_product .gp-product-substance-info-content__sources{
  border-left:0;border-top:1px solid #d8e5dc;
  padding:.75rem 0 0;flex-flow:row wrap;gap:.45rem 1rem;
}

/* A visible paragraph break before the editorial warning/context, not a
   cramped bold label glued to the preceding manufacturer's instruction. */
body.single-gp_product .gp-notice-accordion854__body .gp-notice-context855{
  margin:1.15rem 0 0!important;padding-top:.85rem;
  border-top:1px solid #e0eae3;line-height:1.65;
}
body.single-gp_product .gp-notice-context855>strong{
  display:block;margin-bottom:.4rem;color:#37584b;
}

/* Balance only this ingredient sentence; do not narrow the general knowledge
   footer or disturb quantified ingredient tables. */
body.single-gp_product .gp-product-detail__ingredients .gp-product-detail__declaration>p{
  width:100%;max-width:none!important;text-wrap:balance;
  line-height:1.65;hyphens:none;overflow-wrap:normal;word-break:normal;
}
body.single-gp_product .gp-ingredient-glossary1021{
  margin-top:1.1rem;border:1px solid #dce9e0;border-radius:.8rem;
  background:#f7faf8;overflow:hidden;
}
body.single-gp_product .gp-ingredient-glossary1021>summary{
  padding:.85rem 1rem;cursor:pointer;list-style:none;
  color:#2b5b43;font-size:.91rem;font-weight:700;
}
body.single-gp_product .gp-ingredient-glossary1021>summary::-webkit-details-marker{display:none}
body.single-gp_product .gp-ingredient-glossary1021>summary::after{
  content:"⌄";float:right;font-size:1.2rem;line-height:1;
}
body.single-gp_product .gp-ingredient-glossary1021[open]>summary::after{content:"⌃"}
body.single-gp_product .gp-ingredient-glossary1021>dl{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;
  padding:0 1rem 1rem;margin:0;
}
body.single-gp_product .gp-ingredient-glossary1021>dl>div{
  min-width:0;padding:.8rem;border:1px solid #e1ebe4;border-radius:.65rem;background:#fff;
}
body.single-gp_product .gp-ingredient-glossary1021 dt{font-weight:720;color:#284c3c;margin:0 0 .25rem}
body.single-gp_product .gp-ingredient-glossary1021 dd{margin:0;color:#51695d;line-height:1.58;font-size:.86rem}
body.single-gp_product .gp-ingredient-glossary1021>p{margin:0;padding:0 1rem 1rem;font-size:.79rem;color:#62786b}
@media(max-width:680px){
  body.single-gp_product .gp-ingredient-glossary1021>dl{grid-template-columns:minmax(0,1fr)}
  body.single-gp_product .gp-product-detail__ingredients .gp-product-detail__declaration>p{
    text-wrap:pretty;overflow-wrap:break-word;
  }
}

/* GP1021.4: A manufacturer's long compound name must NEVER escape its card.
   Older GP963 rules forced two separate nowrap blocks; in a three-column grid
   that clipped HomocysteinModulator and NattoKinase on the right edge.
   Word-balanced inline spans preserve the entire title and can wrap safely. */
body #gp-main .gp-card-title-wrap.gp-title-two-line963,
body #gp-main .gp-card-title-wrap.gp-title-two-line963 .gp-product-loop-title{
  min-width:0!important;max-width:100%!important;
  max-height:none!important;height:auto!important;
}
body #gp-main .gp-card-title-wrap.gp-title-two-line963 .gp-product-loop-title a{
  display:block!important;width:100%!important;max-width:100%!important;
  min-width:0!important;white-space:normal!important;
  text-wrap:balance!important;overflow-wrap:anywhere!important;
  word-break:normal!important;hyphens:none!important;
}
body #gp-main .gp-card-title-wrap.gp-title-two-line963 .gp-card-title-line963{
  display:inline!important;width:auto!important;max-width:100%!important;
  white-space:normal!important;overflow:visible!important;
  text-overflow:clip!important;overflow-wrap:anywhere!important;
  text-wrap:inherit!important;hyphens:none!important;
}
body #gp-main .gp-product-loop-card .gp-product-loop-main{
  min-width:0;
}

/* Real h2, visibly identical to Eckdaten: theme owns the heading; import JSON
   contains only paragraphs and may not introduce a second h1. */
body.single-gp_product #gp-main .gp-product-detail__editorial-overview>
  .gp-product-detail__section-head,
body.single-gp_product #gp-main .gp-product-detail__editorial-overview>
  .gp-product-detail__section-head h2{
  display:block!important;visibility:visible!important;opacity:1!important;
  position:static!important;max-height:none!important;overflow:visible!important;
}
body.single-gp_product #gp-main .gp-product-detail__editorial-overview>
  .gp-product-detail__section-head h2{
  font:inherit;font-family:var(--gp-display);font-weight:700;
  font-size:clamp(1.5rem,2.3vw,2rem);line-height:1.2;
  color:#234b39;margin:0;
}

/* Keep verifiable technical facts in a calm two-column definition list.
   If only an odd number is known, span the final fact instead of inventing one. */
@media(min-width:701px){
  body.single-gp_product #gp-main .gp-eckdaten218__rows>div:last-child:nth-child(odd){
    grid-column:1/-1;
  }
}
body.single-gp_product #gp-main .gp-manufacturer-dosage1021{
  padding:clamp(1rem,2vw,1.5rem);border:1px solid #dce7df;
  border-radius:1rem;background:#fff;
}
body.single-gp_product #gp-main .gp-manufacturer-dosage1021__details{
  overflow:hidden;border:1px solid #dce7df;border-radius:.8rem;
  background:#f8fbf9;
}
body.single-gp_product #gp-main .gp-manufacturer-dosage1021__details>summary{
  cursor:pointer;display:list-item;padding:.8rem 1rem;
  font-weight:650;color:#305743;line-height:1.5;
}
body.single-gp_product #gp-main .gp-manufacturer-dosage1021__details>summary:focus-visible{
  outline:3px solid #50946b;outline-offset:-3px;
}
body.single-gp_product #gp-main .gp-manufacturer-dosage1021__content{
  border-top:1px solid #e1eae4;padding:.9rem 1rem;
  color:#405d4d;line-height:1.65;
}
body.single-gp_product #gp-main .gp-manufacturer-dosage1021__content p{
  margin:0 0 .6rem;overflow-wrap:break-word;
}
body.single-gp_product #gp-main .gp-manufacturer-dosage1021__content p:last-child{
  margin-bottom:0;
}
body.single-gp_product #gp-main .gp-manufacturer-dosage1021__note{
  font-size:.82rem;color:#64786c;
}
