/*
 * Reference pages inherit the shared homepage shell/header contract. Keep this
 * stylesheet focused on reference content so the menu cannot drift from the
 * Startseite.
 */
html body .site[data-ktw-route^="ktw-application-referenz"] .ktw-application__hero {
  min-height: 42rem;
}

html body .site[data-ktw-route^="ktw-application-referenzen"] {
  --ktw-reference-home-grid-gutter: max(32px, calc((100vw - 1512px) / 2));
}

html body .site[data-ktw-route="ktw-application-referenzen"] .ktw-reference__hub-hero .ktw-application__inner {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  padding-left: var(--ktw-reference-home-grid-gutter) !important;
  padding-right: var(--ktw-reference-home-grid-gutter) !important;
}

html body .site[data-ktw-route="ktw-application-referenzen/etera-aargau"] .ktw-reference__detail-hero {
  padding-left: var(--ktw-reference-home-grid-gutter) !important;
  padding-right: var(--ktw-reference-home-grid-gutter) !important;
}

html body .site[data-ktw-route="ktw-application-referenzen/etera-aargau"] .ktw-reference__detail-grid {
  max-width: 1512px !important;
}

html body .site[data-ktw-route^="ktw-application-referenzen"] :is(
  .ktw-reference__hub-hero,
  .ktw-reference__detail-hero
) {
  color: #fff !important;
}

html body .site[data-ktw-route^="ktw-application-referenzen"] :is(
  .ktw-reference__hub-hero,
  .ktw-reference__detail-hero
) .ktw-application__eyebrow {
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, .82) !important;
  padding-left: 0 !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
}

html body .site[data-ktw-route^="ktw-application-referenzen"] :is(
  .ktw-reference__hub-hero,
  .ktw-reference__detail-hero
) .ktw-application__eyebrow::before,
html body .site[data-ktw-route^="ktw-application-referenzen"] :is(
  .ktw-reference__hub-hero,
  .ktw-reference__detail-hero
) .ktw-application__eyebrow::after {
  content: none !important;
  display: none !important;
}

html:root:root body .site[data-ktw-route^="ktw-application-referenzen"] :is(
  .ktw-reference__hub-hero.ktw-reference__hub-hero,
  .ktw-reference__detail-hero.ktw-reference__detail-hero
) .ktw-application__eyebrow.ktw-application__eyebrow {
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
  text-underline-offset: 0 !important;
}

html body .site[data-ktw-route^="ktw-application-referenzen"] :is(
  .ktw-reference__hub-hero,
  .ktw-reference__detail-hero
) h1 {
  color: #fff !important;
}

html body .site[data-ktw-route^="ktw-application-referenzen"] .ktw-reference__hub-hero .ktw-application__answer,
html body .site[data-ktw-route^="ktw-application-referenzen"] .ktw-reference__detail-hero .ktw-reference__detail-copy > p {
  border-left: 0 !important;
  color: rgba(255, 255, 255, .84) !important;
  padding-left: 0 !important;
}

html body .site[data-ktw-route^="ktw-application-referenzen"] .ktw-reference__hub-hero .ktw-application__secondary {
  border: 1px solid rgba(255, 255, 255, .52) !important;
  color: #fff !important;
  display: inline-flex !important;
  font-weight: 800 !important;
  min-height: 53px !important;
  padding: 0 1.25rem !important;
  text-decoration: none !important;
}

html body .site[data-ktw-route^="ktw-application-referenzen"] .ktw-reference__hub-hero .ktw-application__secondary:hover,
html body .site[data-ktw-route^="ktw-application-referenzen"] .ktw-reference__hub-hero .ktw-application__secondary:focus-visible {
  background: rgba(255, 255, 255, .12) !important;
  border-color: rgba(255, 255, 255, .74) !important;
}

.ktw-reference__hub-hero .ktw-application__answer {
  max-width: 58rem;
}

.ktw-reference__section-head {
  align-items: end;
  display: grid;
  gap: clamp(2rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .85fr);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.ktw-reference__section-head h2,
.ktw-reference__detail-copy h1,
.ktw-reference__evidence h2 {
  margin: .7rem 0 0;
}

.ktw-reference__section-head p {
  color: rgba(7, 58, 90, .72);
  line-height: 1.75;
  margin: 0;
}

.ktw-reference__feature {
  align-items: center;
  background: #073a5a;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(19rem, .8fr) minmax(0, 1.2fr);
  min-height: 0;
}

.ktw-reference__feature-media,
.ktw-reference__feature-media picture,
.ktw-reference__feature-media img {
  display: block;
  width: 100%;
}

.ktw-reference__feature-media {
  align-self: center;
  aspect-ratio: 1 / 1.03;
  overflow: hidden;
}

.ktw-reference__feature-media picture {
  height: 100%;
}

.ktw-reference__feature-media img {
  height: 100%;
  object-fit: cover;
  /* The approved installation view: tanks, control panel and installer. */
  object-position: 50% 38%;
  transition: transform .35s ease;
}

.ktw-reference__feature-media:hover img {
  transform: scale(1.018);
}

.ktw-reference__feature-copy {
  align-self: center;
  padding: clamp(2.25rem, 4.5vw, 4.75rem);
}

.ktw-reference__feature-copy h3 {
  color: #fff;
  font-size: clamp(2rem, 3.7vw, 3.8rem);
  font-weight: 500;
  line-height: 1.04;
  margin: 1rem 0 1.4rem;
  max-width: 14ch;
}

.ktw-reference__feature-copy > p {
  color: rgba(255, 255, 255, .78);
  line-height: 1.75;
  max-width: 42rem;
}

.ktw-reference__status {
  color: #ef7d30;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ktw-reference__facts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2rem 0;
}

.ktw-reference__facts div {
  background: rgba(255, 255, 255, .08);
  min-width: 0;
  padding: 1rem;
}

.ktw-reference__facts dt {
  color: #ef7d30;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ktw-reference__facts dd {
  color: inherit;
  font-size: .92rem;
  line-height: 1.45;
  margin: .45rem 0 0;
}

.ktw-reference__text-link {
  border-bottom: 2px solid #ef7d30;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  padding-bottom: .35rem;
  text-decoration: none;
}

.ktw-reference__detail-hero {
  background: #073a5a;
  color: #fff;
  min-height: 52rem;
  padding: 118px max(32px, calc((100vw - 1433px) / 2)) clamp(4rem, 8vw, 8rem);
}

.ktw-reference__detail-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .72fr);
  margin: 0 auto;
  max-width: 1433px;
}

.ktw-reference__detail-copy h1 {
  color: #fff;
  font-size: clamp(3.2rem, 6.7vw, 7rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .94;
  max-width: 10ch;
}

.ktw-reference__detail-copy > p {
  color: rgba(255, 255, 255, .8);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
  margin: 2rem 0 0;
  max-width: 43rem;
}

.ktw-reference__hero-media {
  margin: 0;
}

.ktw-reference__hero-media picture,
.ktw-reference__hero-media img {
  display: block;
  width: 100%;
}

.ktw-reference__hero-media picture {
  aspect-ratio: 1 / 1.03;
  overflow: hidden;
}

.ktw-reference__hero-media img {
  height: 100%;
  object-fit: cover;
  /* Match the crop used in the reference overview. */
  object-position: 50% 38%;
}

.ktw-reference__hero-media figcaption {
  color: rgba(255, 255, 255, .66);
  font-size: .75rem;
  line-height: 1.5;
  margin-top: .75rem;
}

.ktw-reference__system-cards .ktw-application__card > span {
  color: #ef7d30;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.ktw-reference__evidence {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .9fr);
}

.ktw-reference__facts--large {
  border-bottom: 1px solid rgba(7, 58, 90, .18);
  border-top: 1px solid rgba(7, 58, 90, .18);
  margin: 0;
}

.ktw-reference__facts--large div {
  background: transparent;
  border-bottom: 1px solid rgba(7, 58, 90, .12);
  padding: 1.2rem .2rem;
}

.ktw-reference__facts--large dd {
  color: #073a5a;
}

.ktw-reference__cta {
  background: #073a5a;
  color: #fff;
}

.ktw-reference__cta :is(h2, p) {
  color: #fff;
}

.ktw-reference__cta .ktw-application__links a {
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

@media (max-width: 900px) {
  .ktw-reference__section-head,
  .ktw-reference__feature,
  .ktw-reference__detail-grid,
  .ktw-reference__evidence {
    grid-template-columns: 1fr;
  }

  .ktw-reference__feature {
    min-height: 0;
  }

  .ktw-reference__detail-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .ktw-reference__detail-copy h1 {
    font-size: clamp(2.6rem, 12vw, 4.5rem);
    max-width: 11ch;
  }

  .ktw-reference__hero-media {
    max-width: 34rem;
  }
}

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

  .ktw-reference__feature-copy {
    padding: 1.6rem;
  }

  .ktw-reference__feature-copy h3 {
    font-size: 2rem;
  }

  .ktw-reference__detail-hero {
    min-height: 0;
    padding-top: 104px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .ktw-reference__feature-media img {
    transition: none;
  }
}
