/* Scoped repair for referenzen.html.
   Prevent broad legacy header and hero rules from affecting page content. */

body.reference-page .page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: 520px;
  overflow: hidden;
  background: #eaf5ed;
}

body.reference-page .page-hero .page-copy {
  position: relative;
  inset: auto;
  z-index: 1;
  display: flex;
  min-width: 0;
  min-height: 520px;
  padding: 64px max(34px, calc((100vw - 1460px) / 2 + 34px));
  padding-right: clamp(34px, 5vw, 78px);
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  background: linear-gradient(135deg, #eaf5ed 0%, #f5faf6 100%);
}

body.reference-page .page-hero .page-copy .kicker,
body.reference-page .page-hero .page-copy h1,
body.reference-page .page-hero .page-copy .lead,
body.reference-page .page-hero .page-copy .actions {
  position: static;
  width: auto;
  max-width: 680px;
  visibility: visible;
  opacity: 1;
  transform: none;
}

body.reference-page .page-hero .page-copy h1 {
  margin: 18px 0 21px;
  color: #10231a;
}

body.reference-page .page-hero .page-copy .lead {
  margin: 0;
  color: #33493d;
}

body.reference-page .page-hero .page-copy .actions {
  display: flex;
  margin: 27px 0 0;
}

body.reference-page .page-hero .page-visual {
  min-width: 0;
  min-height: 520px;
  background-position: center;
  background-size: cover;
}

body.reference-page header.mc29-case-head {
  position: static;
  top: auto;
  z-index: auto;
  display: block;
  width: 100%;
  max-width: 1020px;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0 0 52px;
  padding: 0;
  overflow: visible;
  color: #10231a;
  background: transparent;
  border: 0;
}

body.reference-page header.mc29-case-head .kicker {
  position: static;
  display: block;
  width: auto;
  margin: 0 0 14px;
}

body.reference-page header.mc29-case-head h2 {
  position: static;
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: #10231a;
}

@media (max-width: 1100px) {
  body.reference-page .page-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  body.reference-page .page-hero .page-copy {
    min-height: 0;
    padding: 56px max(28px, calc((100vw - 900px) / 2 + 28px));
  }

  body.reference-page .page-hero .page-visual {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  body.reference-page .page-hero .page-copy {
    padding: 48px 20px;
  }

  body.reference-page .page-hero .page-copy .actions,
  body.reference-page .page-hero .page-copy .btn {
    width: 100%;
  }

  body.reference-page .page-hero .page-visual {
    min-height: 270px;
  }

  body.reference-page header.mc29-case-head {
    margin-bottom: 32px;
  }
}
