.footer-link-group {
  flex-wrap: wrap;
  min-width: 0;
}

.footer-site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(12px, 4vw, 26px);
}

.footer-site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .3em;
}

.footer-meta .footer-site-nav { justify-content: flex-end; }
.sc-footer .footer-site-nav { flex-basis: 100%; }
.sc-footer .footer-link-group { row-gap: 0; }

.footer-link-group .footer-contact-icons {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.footer-meta .footer-contact-icons {
  justify-self: end;
}

.footer-link-group :is(.footer-email, .footer-phone) {
  margin: 0;
  padding: 0;
  border: 0;
}

.footer-link-group .footer-email {
  display: none;
}

.footer-link-group .footer-icon {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 11px;
}

.footer-link-group summary.footer-icon {
  list-style: none;
  cursor: pointer;
}

.footer-link-group summary.footer-icon::-webkit-details-marker {
  display: none;
}

.footer-link-group .footer-icon > :is(span, svg) {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  color: #233e56;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.footer-contact-icons .footer-icon > span {
  position: relative;
  box-sizing: border-box;
  width: 19px;
  height: 19px;
  border: 1.5px solid;
  border-radius: 5px;
}

.footer-contact-icons .footer-icon > span::before,
.footer-contact-icons > a > span::after {
  position: absolute;
  content: "";
}

.footer-contact-icons > a > span::before {
  inset: 3px;
  border: 1.5px solid;
  border-radius: 50%;
}

.footer-contact-icons > a > span::after {
  inset-block-start: 2px;
  inset-inline-end: 2px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.footer-contact-icons .footer-email .footer-icon > span {
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
}

.footer-email .footer-icon > span::before {
  inset: -6px auto auto 2.5px;
  width: 11px;
  height: 11px;
  border-inline-end: 1.5px solid;
  border-block-end: 1.5px solid;
  transform: rotate(45deg);
}

.sc-footer .footer-icon > :is(span, svg) {
  color: #f4f9ff;
  filter: drop-shadow(0 0 2px #ebf7ff80) drop-shadow(0 0 5px #b9e1ff65);
}

.sc-footer .footer-icon:is(:hover, :focus-visible) > :is(span, svg),
.sc-footer .footer-contact-icons details[open] .footer-icon > :is(span, svg) {
  filter: drop-shadow(0 0 3px #ebf7ff9e) drop-shadow(0 0 6px #b9e1ff81);
}

.footer-link-group .footer-icon:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.footer-link-group :is(.footer-email-address, .footer-phone-number) {
  position: absolute;
  z-index: 2;
  inset-block-end: calc(100% + 6px);
  inset-inline-start: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #75a8b7;
  border-radius: 9px;
  background: #162f43;
  color: #effcff;
  text-decoration: underline;
  white-space: nowrap;
}

.footer-meta .footer-phone-number {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

@media (width > 760px) {
  .footer-mobile-layout .footer-site-nav,
  .footer-mobile-layout .footer-site-nav a[href="/about/"],
  .footer-mobile-layout .footer-contact-icons > a {
    order: -1;
  }
}

@media (max-width: 760px) {
  :is(.sc-footer > .sc-wrap, .footer-inner, .growth-footer, .site-footer).footer-mobile-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 6px;
    padding-block: 14px;
    padding-inline: 8px 13px;
  }

  .footer-mobile-layout::after {
    content: "";
    flex-basis: 100%;
    margin-top: 3px;
    order: -1;
  }

  .footer-mobile-layout > :is(a, img) {
    order: -3;
    max-inline-size: 45%;
    margin-inline-start: -8px;
  }

  .footer-mobile-layout > img,
  .footer-mobile-layout > a > img {
    width: 104px;
    max-width: 100%;
    height: auto;
  }

  .growth-footer.footer-mobile-layout > a { margin-block-end: 0; }

  :is(.sc-wrap, .footer-inner, .growth-footer, .site-footer).footer-mobile-layout > .footer-link-group,
  .footer-mobile-layout .footer-site-nav {
    display: contents;
  }

  .footer-mobile-layout .footer-site-nav a[href$="#contact"],
  .growth-footer.footer-mobile-layout > p,
  .site-footer.footer-mobile-layout > span,
  .footer-mobile-layout .footer-link-group > span:not([data-legal-de]) {
    display: none;
  }

  .footer-mobile-layout .footer-contact-icons {
    order: -2;
    margin-inline: auto -13px;
    gap: 4px;
  }

  .footer-mobile-layout .footer-contact-icons .footer-email {
    display: block;
  }

  .footer-mobile-layout details[open] > summary {
    background: #84a1c426;
  }

  .footer-mobile-layout .footer-contact-icons :is(.footer-email-address, .footer-phone-number) {
    inset-inline: auto 0;
    box-sizing: border-box;
    inline-size: max-content;
    max-inline-size: calc(100vw - 40px);
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .footer-mobile-layout .footer-site-nav a:not([href$="#contact"]),
  .footer-mobile-layout .footer-link-group > a,
  .footer-mobile-layout .footer-link-group > span[data-legal-de] > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 44px;
    min-inline-size: 44px;
    font-size: clamp(13px, 3.5vw, 14px);
    text-decoration: none;
  }
}
