/* GP Theme 269 – Hero- und Navigations-Feinschliff, fest in Theme integriert.
   Keine übergreifenden Button-, Filter- oder Produktbild-Overrides. */

/* Produkt-Archive behalten ihren flächigen Hero; die Startseite wird in home.css gestaltet. */
.gp-product-archive .gp-product-catalog-hero {
  border-radius: 0 !important;
}

/* PRODUKTWELTEN: H1 ist die einzige sichtbare Bereichsüberschrift.
   Bei einzelnen Kategorien bleibt "Produktwelt" als sinnvolle Einordnung. */
.gp-product-archive:not([data-fixed-taxonomy]) .gp-product-catalog-hero__eyebrow {
  display: none !important;
}
.gp-product-archive:not([data-fixed-taxonomy]) .gp-product-catalog-hero h1 {
  margin-top: 0;
}

/* Desktop: Bild sitzt hinter einer variabel berechneten Überblendung.
   Die CSS-Variablen werden aus der tatsächlichen rechten Textkante ermittelt.
   Ohne JavaScript gelten robuste responsive Fallbacks. */
.gp-product-archive .gp-product-catalog-hero {
  --gp-hero-base: #f7f8f0;
  --gp-hero-fade-from: 43%;
  --gp-hero-fade-to: 70%;
  position: relative;
  overflow: hidden;
  background: var(--gp-hero-base) !important;
  border: 0;
  border-bottom: 1px solid #e1e9e3;
  box-shadow: none;
}
.gp-product-archive .gp-product-catalog-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  min-height: clamp(27rem, 32vw, 34rem);
  gap: 0;
}
.gp-product-archive .gp-product-catalog-hero__media {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 68%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  display: block;
}
.gp-product-archive .gp-product-catalog-hero__media::before {
  content: none !important;
}
.gp-product-archive .gp-product-catalog-hero__media picture,
.gp-product-archive .gp-product-catalog-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.gp-product-archive .gp-product-catalog-hero__inner::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
      var(--gp-hero-base) 0%,
      var(--gp-hero-base) var(--gp-hero-fade-from),
      transparent var(--gp-hero-fade-to));
}
.gp-product-archive .gp-product-catalog-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  width: min(55%, 53rem);
  min-width: 0;
  padding: clamp(2.5rem, 4vw, 4.4rem) clamp(1.5rem, 3.6vw, 4.4rem);
}
.gp-product-archive .gp-product-catalog-hero h1 {
  max-width: 100%;
  margin-bottom: 0;
  color: #24473e;
  font-size: clamp(2.55rem, 3.5vw, 4.2rem);
  font-weight: 625;
  line-height: 1.075;
  letter-spacing: -.034em;
  text-wrap: balance;
  overflow-wrap: normal;
}
.gp-product-archive .gp-product-catalog-hero__copy p {
  max-width: 35rem;
  margin: clamp(.95rem, 1.6vw, 1.3rem) 0 0;
  color: #5c7068;
  font-size: clamp(.94rem, .88rem + .18vw, 1.08rem);
  line-height: 1.66;
  text-wrap: pretty;
  hyphens: auto;
}
.gp-product-archive .gp-product-catalog-hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.25rem;
  margin-top: clamp(1.15rem, 2vw, 1.65rem);
}
.gp-product-archive .gp-product-catalog-hero__links a {
  min-height: 2.65rem;
  padding: .35rem 0;
  border-radius: 0;
  background: transparent;
  color: #266b6b;
  line-height: 1.25;
  text-decoration: none;
}
.gp-product-archive .gp-product-catalog-hero__links a:hover {
  background: transparent;
  color: #21554d;
}
.gp-product-archive .gp-product-catalog-hero__links a:focus-visible {
  outline: 2px solid #28797b;
  outline-offset: 4px;
}

/* Tablet: Bild unter die Copy, mit sanftem vertikalem Übergang.
   Kein Beschneiden der Copy und keine leere "55%-Spalte". */
@media (max-width: 64rem) {
  .gp-product-archive .gp-product-catalog-hero__inner {
    display: grid;
    grid-template-rows: auto clamp(13rem, 29vw, 19rem);
    min-height: 0;
  }
  .gp-product-archive .gp-product-catalog-hero__copy {
    width: 100%;
    min-height: 0;
    padding: clamp(1.6rem, 3.2vw, 2.7rem) clamp(1rem, 3.2vw, 2.2rem) 1.35rem;
  }
  .gp-product-archive .gp-product-catalog-hero__copy p {
    max-width: 65ch;
  }
  .gp-product-archive .gp-product-catalog-hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .gp-product-archive .gp-product-catalog-hero__inner::before {
    background: linear-gradient(180deg,
      var(--gp-hero-base) 0%,
      var(--gp-hero-base) 42%,
      rgba(247,248,240,.85) 54%,
      transparent 74%);
  }
  .gp-product-archive .gp-product-catalog-hero__media img {
    object-position: 55% center;
  }
}
@media (max-width: 48rem) {
  .gp-product-archive .gp-product-catalog-hero {
    margin-inline: 0;
    border-radius: 0 !important;
  }
  .gp-product-archive .gp-product-catalog-hero h1 {
    font-size: clamp(2.05rem, 8vw, 3rem);
    overflow-wrap: anywhere;
  }
  .gp-product-archive .gp-product-catalog-hero__inner {
    grid-template-rows: auto clamp(11rem, 50vw, 17rem);
  }
  .gp-product-archive .gp-product-catalog-hero__links {
    gap: .35rem 1rem;
  }
}
@media (max-width: 30rem) {
  .gp-product-archive .gp-product-catalog-hero__copy {
    padding: 1.55rem .9rem 1.3rem;
  }
  .gp-product-archive .gp-product-catalog-hero h1 {
    font-size: clamp(1.88rem, 8.5vw, 2.5rem);
  }
}

/* Product categories without an assigned hero picture retain full-width, readable copy. */
.gp-product-archive .gp-product-catalog-hero:not(.gp-product-catalog-hero--with-media) .gp-product-catalog-hero__copy{width:100%;max-width:72rem;}
.gp-product-archive .gp-product-catalog-hero:not(.gp-product-catalog-hero--with-media) .gp-product-catalog-hero__inner::before{content:none;}
@media(max-width:64rem){
 .gp-product-archive .gp-product-catalog-hero:not(.gp-product-catalog-hero--with-media) .gp-product-catalog-hero__inner{display:block;}
 .gp-product-archive .gp-product-catalog-hero:not(.gp-product-catalog-hero--with-media) .gp-product-catalog-hero__copy{max-width:100%;}
}

