html {
  scroll-padding-top: 98px;
}

body {
  padding-top: 98px !important;
}

.site-header,
.site-header--overlay,
.site-header--solid {
  position: fixed !important;
  z-index: 1000 !important;
  inset: 0 0 auto !important;
  width: 100% !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  background: rgba(3, 16, 29, .96) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
}

.site-header .header-inner {
  min-height: 98px;
}

/* Das Logo liegt direkt auf dem Dunkelblau von Navigation und Footer. */
.site-header .brand,
.site-header .brand-wordmark,
.site-header .brand-groupmark,
.site-footer .footer-brand {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.site-footer .footer-brand {
  padding: 0 !important;
}

/*
 * Safari zeichnet den bisherigen Drop-Shadow teilweise als helle rechteckige
 * Compositing-Fläche. Ohne Filter liegt das Logo wirklich direkt auf dem
 * Dunkelblau der Navigation.
 */
.site-header .brand,
.site-header .brand-wordmark,
.site-header .brand-groupmark,
.site-header .brand img,
.site-footer .footer-brand,
.site-footer .footer-brand img {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

.site-header .brand-groupmark img {
  filter: brightness(0) invert(1) !important;
}

/* Das untere Logo wird exakt wie das Menüleisten-Logo aufgebaut. */
.site-footer .footer-brand {
  position: relative;
  display: block !important;
  flex: none;
  width: 145px !important;
  height: 51px;
  min-height: 0 !important;
  overflow: visible;
}

.site-footer .footer-brand > img {
  width: 145px !important;
  height: auto !important;
  opacity: 0;
}

.site-footer .footer-brand::before,
.site-footer .footer-brand::after {
  content: "";
  position: absolute;
  left: 0;
  display: block;
  width: 145px;
  background-image: url("/assets/onfer-logo-transparent-20260819.png");
  background-repeat: no-repeat;
  background-size: 145px auto;
  pointer-events: none;
}

.site-footer .footer-brand::before {
  top: 0;
  height: 39px;
  background-position: center top;
}

.site-footer .footer-brand::after {
  bottom: 0;
  height: 9px;
  background-position: center -42px;
  filter: brightness(0) invert(1) !important;
}

.hero {
  height: min(900px, calc(100svh - 98px)) !important;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 96px;
  }

  body {
    padding-top: 96px !important;
  }

  .site-header .header-inner {
    min-height: 96px;
  }

  .site-footer .footer-brand {
    width: 132px !important;
    height: 46px;
  }

  .site-footer .footer-brand::before,
  .site-footer .footer-brand::after {
    width: 132px;
    background-size: 132px auto;
  }

  .site-footer .footer-brand::before {
    height: 35px;
  }

  .site-footer .footer-brand::after {
    height: 8px;
    background-position: center -38px;
  }

  .hero {
    height: auto !important;
  }
}

/* Vollständige Firmen- und Rechtshinweise im Footer */
.site-footer {
  padding: 48px 0 38px !important;
}

.site-footer .footer-inner {
  display: grid !important;
  grid-template-columns: 150px minmax(290px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 24px 42px !important;
}

.site-footer .footer-company {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer .footer-company strong {
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.site-footer .footer-company a {
  width: fit-content;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.site-footer .footer-company a:hover,
.site-footer .footer-company a:focus-visible,
.site-footer .footer-inner nav a:hover,
.site-footer .footer-inner nav a:focus-visible {
  color: #19a7f4;
}

.site-footer .footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer .footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.site-footer .footer-social span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #19a7f4;
  border: 1px solid rgba(25, 167, 244, .55);
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  font-size: 0;
  line-height: 1;
}

.site-footer .footer-social--instagram span {
  background-image: url("/assets/instagram-logo.svg");
}

.site-footer .footer-social--tiktok span {
  background-image: url("/assets/tiktok-logo.svg");
}

.site-footer .footer-social:hover,
.site-footer .footer-social:focus-visible {
  border-color: #19a7f4;
  background: rgba(25, 167, 244, .1);
  transform: translateY(-1px);
}

.site-footer .footer-inner nav {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 24px !important;
  white-space: nowrap;
}

.site-footer .footer-inner nav a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s ease;
}

.site-footer .footer-inner nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #19a7f4;
  text-underline-offset: 5px;
}

@media (max-width: 1180px) {
  .site-footer .footer-inner {
    grid-template-columns: 145px minmax(260px, 1fr) auto !important;
  }

  .site-footer .footer-inner nav {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 38px 0 32px !important;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 24px !important;
  }

  .site-footer .footer-company,
  .site-footer .footer-socials,
  .site-footer .footer-inner nav {
    grid-column: 1;
  }

  .site-footer .footer-socials {
    flex-wrap: wrap;
  }

  .site-footer .footer-inner nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 22px !important;
  }
}
/* Lesbare Gliederung der getrennten Rechtstexte */
.legal-card h3 {
  color: var(--navy);
  margin: 30px 0 7px;
  font-size: 18px;
  font-weight: 760;
}

.legal-card h2 + h3 {
  margin-top: 32px;
}

.legal-card p + h3 {
  margin-top: 28px;
}

.legal-card a {
  color: #087fcf;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card a:hover {
  color: #055f9f;
}

/*
 * Cache-sichere, einteilige Logo-Darstellung.
 * Das Original-PNG besitzt echte Transparenz. Die bisherige Aufteilung in zwei
 * beschnittene Bilder wird deaktiviert, damit Safari keine helle
 * Compositing-Kante zwischen Wortmarke und Unterzeile erzeugt.
 */
.site-header .brand {
  width: 145px !important;
  height: 51px !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.site-header .brand-wordmark {
  display: block !important;
  width: 145px !important;
  height: 51px !important;
  overflow: visible !important;
  background: transparent !important;
}

.site-header .brand-wordmark img {
  display: block !important;
  width: 145px !important;
  height: auto !important;
  max-width: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  background: transparent !important;
}

.site-header .brand-groupmark {
  display: none !important;
}

.site-footer .footer-brand {
  width: 145px !important;
  height: 51px !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.site-footer .footer-brand::before,
.site-footer .footer-brand::after {
  content: none !important;
  display: none !important;
  background-image: none !important;
}

.site-footer .footer-brand > img {
  display: block !important;
  width: 145px !important;
  height: auto !important;
  max-width: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  background: transparent !important;
}

@media (max-width: 760px) {
  .site-header .brand,
  .site-header .brand-wordmark,
  .site-header .brand-wordmark img,
  .site-footer .footer-brand,
  .site-footer .footer-brand > img {
    width: 132px !important;
  }

  .site-header .brand,
  .site-header .brand-wordmark,
  .site-footer .footer-brand {
    height: 46px !important;
  }
}
