/* Power X-Change landing — mirrors einhell.de/en/battery-system/.
   Layered on top of the shared campaign styles (amg.css).
   Rule: images are shown at their natural aspect ratio — never cropped or zoomed. */

:root {
  --pxc-red: #d50c1f;
}

/* ---- Intro / section headings reuse .campaign-source-heading from amg.css ---- */
.pxc-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--pxc-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.pxc-sub {
  display: block;
  margin: -0.4rem 0 1.1rem;
  color: #161616;
  font-family: "Open Sans Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}

.pxc-sub--red {
  color: var(--pxc-red);
}

/* ---- Video (reuse .campaign-video from amg.css) ---- */

/* ---- Billboard bands (decorative full-bleed background with white copy) ---- */
.pxc-billboard {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(260px, 34vw, 460px);
  padding: clamp(32px, 6vw, 80px) 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.pxc-billboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0) 75%);
}

.pxc-billboard .container {
  position: relative;
  z-index: 1;
}

.pxc-billboard__inner {
  max-width: 640px;
}

.pxc-billboard__eyebrow {
  display: block;
  margin: 0 0 0.5rem;
  font-family: "Open Sans Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
}

.pxc-billboard__title {
  margin: 0 0 1.4rem;
  font-family: "Open Sans Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
}

/* ---- Red pill CTA, matches the site button language ---- */
.pxc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 0.4rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--pxc-red);
  background: var(--pxc-red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pxc-cta:hover,
.pxc-cta:focus-visible {
  background: #bf0b1c;
  border-color: #bf0b1c;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(213, 12, 31, 0.24);
}

/* ---- Trio: three "cordless freedom" columns, aligned by subgrid (find the max) ---- */
.pxc-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  gap: 0.6rem clamp(24px, 3vw, 48px);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.pxc-trio-card {
  display: grid;
  grid-row: 1 / span 3;
  grid-template-rows: subgrid;
  gap: 1rem;
}

.pxc-trio-card__head {
  margin: 0;
}

.pxc-trio-card__head .hl {
  display: block;
  color: #161616;
  font-family: "Open Sans Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
}

.pxc-trio-card__head .sl {
  display: block;
  color: var(--pxc-red);
  font-family: "Open Sans Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 700;
  line-height: 1.2;
}

.pxc-trio-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #f1f1f1;
}

.pxc-trio-card p {
  margin: 0;
  color: #282828;
  font-size: 16px;
  line-height: 1.62;
}

/* ---- Technology cards: PXC PLUS / SEALED / MULTI-AH / PXC ABS ---- */
.pxc-tech-grid {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(16px, 1.6vw, 24px);
}

.pxc-tech-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border, #e6e6e6);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pxc-tech-card:hover {
  transform: translateY(-3px);
  border-color: #dcdcdc;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
}

/* Product-on-red-bg shots are square at source — show them whole, no crop */
.pxc-tech-media {
  background: #fff;
}

.pxc-tech-media img {
  display: block;
  width: 100%;
  height: auto;
}

.pxc-tech-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.1rem 1.15rem 1.3rem;
}

.pxc-tech-tag {
  align-self: flex-start;
  margin-bottom: 0.6rem;
  padding: 0.28rem 0.66rem;
  border-radius: 999px;
  background: rgba(213, 12, 31, 0.08);
  color: var(--pxc-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.pxc-tech-body h3 {
  margin: 0 0 0.5rem;
  color: #161616;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.pxc-tech-body p {
  margin: 0;
  color: #4a4a4a;
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---- Keyfacts ---- */
.pxc-keyfacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 6vw, 90px);
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
}

.pxc-fact {
  text-align: center;
}

.pxc-fact__value {
  display: block;
  color: var(--pxc-red);
  font-family: "Open Sans Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 700;
  line-height: 1;
}

.pxc-fact__label {
  display: block;
  margin-top: 0.4rem;
  color: #161616;
  font-family: "Open Sans Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---- Final call-to-action cards (Newsletter / Garden / Tools) ---- */
.pxc-final-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
}

.pxc-final-card {
  display: grid;
  grid-row: 1 / span 2;
  grid-template-rows: subgrid;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border, #e6e6e6);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pxc-final-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

.pxc-final-card img {
  display: block;
  width: 100%;
  height: auto;
}

.pxc-final-card__body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.pxc-final-card__eyebrow {
  display: block;
  margin-bottom: 0.3rem;
  color: #666;
  font-size: 13px;
  font-weight: 600;
}

.pxc-final-card__title {
  display: block;
  color: #161616;
  font-family: "Open Sans Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
}

/* Intro split: give the video column more room so the preview reads big,
   like the original page. Only affects this one section. */
.campaign-split--pxc-video {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
}

.campaign-split--pxc-video .campaign-video {
  width: 100%;
  max-width: none;
  margin-top: 0;
}

/* ---- Reverse the image/text order for rhythm (used on campaign-split) ---- */
.campaign-split--reverse .campaign-copy {
  order: 2;
}

@media (max-width: 900px) {
  .pxc-trio {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: clamp(28px, 6vw, 40px);
  }

  .pxc-trio-card {
    grid-row: auto;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
  }

  .pxc-tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pxc-final-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .pxc-final-card {
    grid-row: auto;
    grid-template-rows: none;
  }

  /* On mobile the reversed split should still read image-then-text */
  .campaign-split--reverse .campaign-copy {
    order: 0;
  }

  /* Intro video split stacks like every other split on small screens */
  .campaign-split--pxc-video {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pxc-tech-grid {
    grid-template-columns: 1fr;
  }

  .pxc-cta {
    width: 100%;
  }
}
