body.ekp-page-datenschutz .legacy-content > .ekp-legal-heading {
  display: block;
  margin-top: 40px;
  margin-bottom: 14px;
  font-style: normal;
}

body.ekp-page-datenschutz .legacy-content > .ekp-legal-heading:first-of-type {
  margin-top: 0;
}

body.ekp-page-datenschutz .legacy-content > .ekp-legal-subheading {
  display: block;
  margin-top: 28px;
  margin-bottom: 10px;
}

@media (max-width: 440px) {
  body.ekp-text-cleaned .legacy-hero {
    aspect-ratio: 2 / 1;
    height: auto;
  }

  body.ekp-text-cleaned .legacy-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
  }

  body.ekp-page-unternehmen .legacy-hero img {
    object-position: right center;
  }

  body.ekp-page-unternehmen .legacy-hero {
    aspect-ratio: 2.2 / 1;
  }

  body.ekp-page-leistungen .legacy-content .icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
    align-items: start;
    width: calc(100% + 64px);
    margin-left: -32px;
    margin-right: -32px;
  }

  body.ekp-page-leistungen .legacy-content .icons a {
    display: flex;
    width: 100%;
    justify-content: center;
    overflow: visible;
  }

  body.ekp-page-leistungen .legacy-content .icons img {
    width: 100%;
    max-width: 212px;
    aspect-ratio: 232 / 146;
    object-fit: contain;
    object-position: center top;
  }

  body.ekp-page-leistungen .legacy-content .icons a:first-child img {
    transform: translateX(5px);
  }
}

@media (min-width: 600px) and (max-width: 932px) and (max-height: 500px) {
  body.ekp-text-cleaned .legacy-content .icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    align-items: start;
  }

  body.ekp-text-cleaned .legacy-content .icons a {
    display: flex;
    width: 100%;
    justify-content: center;
    overflow: visible;
  }

  body.ekp-text-cleaned .legacy-content .icons img {
    width: 100%;
    max-width: 232px;
    aspect-ratio: 232 / 146;
    object-fit: contain;
    object-position: center top;
  }

  body.ekp-text-cleaned .legacy-content .icons a:first-child img {
    transform: translateX(14px);
  }

  body.ekp-text-cleaned .legacy-footer-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 28px;
    align-items: start;
    justify-content: initial;
    min-height: 0;
    padding: 22px 32px 26px;
    text-align: left;
  }

  body.ekp-text-cleaned .legacy-footer-inner .copyright {
    grid-column: 1 / -1;
  }

  body.ekp-text-cleaned .legacy-footer-inner a {
    display: block;
    width: auto;
  }
}

body.ekp-page-impressum .legacy-content > b {
  display: block;
  margin-top: 28px;
  margin-bottom: 6px;
}

body.ekp-page-impressum .legacy-content > b:first-of-type {
  margin-top: 0;
}

body.ekp-text-cleaned .legacy-content .text .header,
body.ekp-text-cleaned .legacy-content .text .header_2zeilig {
  margin-top: 40px;
  margin-bottom: 24px;
}

body.ekp-text-cleaned .legacy-content .text .header:first-child,
body.ekp-text-cleaned .legacy-content .text .header_2zeilig:first-child {
  margin-top: 0;
}

body.ekp-text-cleaned .legacy-content .text .titel_hellblau {
  margin-top: 40px;
  margin-bottom: 18px;
}
