header#header {
  pointer-events: all;
  padding-top: clamp(17px, 2.86vw, 55px);
  padding-bottom: clamp(17px, 2.03vw, 39px);
  top: 0;
  z-index: 99;
  width: 100vw;
  position: absolute;
}

header#header::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.79) 8.1%,
    rgba(0, 0, 0, 0.761) 15.5%,
    rgba(0, 0, 0, 0.717) 22.5%,
    rgba(0, 0, 0, 0.66) 29%,
    rgba(0, 0, 0, 0.593) 35.3%,
    rgba(0, 0, 0, 0.518) 41.2%,
    rgba(0, 0, 0, 0.44) 47.1%,
    rgba(0, 0, 0, 0.36) 52.9%,
    rgba(0, 0, 0, 0.282) 58.8%,
    rgba(0, 0, 0, 0.207) 64.7%,
    rgba(0, 0, 0, 0.14) 71%,
    rgba(0, 0, 0, 0.083) 77.5%,
    rgba(0, 0, 0, 0.039) 84.5%,
    rgba(0, 0, 0, 0.011) 91.9%,
    rgba(0, 0, 0, 0) 100%
  );
  width: 100%;
  height: calc(var(--header-height) * 2);
}

#header-icons .icon a {
  font-size: 0;
}

#header-icons .icon .textwidget a::before {
  content: "" !important;
  display: block !important;
  background-image: url(/wp-content/themes/astra-impuls-child/img/icon-phone-white.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 18px;
  height: 18px;
  transition: all 0.5s ease-in-out;
}

#header-icons .icon .textwidget {
  display: flex;
  gap: 1.5vw;
}

#header-icons .icon .textwidget a.mail::before {
  background-image: url(/wp-content/themes/astra-impuls-child/img/icon-mail-white.svg);
  width: 23px;
  height: 23px;
}

#header .header-wrapper {
  position: relative;
}

#header #theme-logo {
  width: 20.37vw;
  z-index: 9999;
  max-width: 352px;
  min-width: 188px;
  max-height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}

#header #theme-logo .theme-logo {
  transition: opacity 0.5s ease-in-out;
}

body:not(.impmenu-active) #header #theme-logo .theme-logo:last-child {
  opacity: 0;
  width: 0;
}

body.impmenu-active #header #theme-logo .theme-logo:first-child {
  opacity: 0;
  width: 0;
}

#header #claim {
  width: fit-content;
  right: calc(var(--gap-xl) + 6px);
  top: 52px;
  position: fixed;
}

#header #claim p {
  color: var(--ast-global-color-5);
  text-shadow: 0 4px 10px #000;
  font-family: var(--headlinefont);
  font-size: 1.765rem;
  font-weight: 500;
  line-height: 1.25;
}

#header #contact-btns {
  position: fixed;
  transform: translateY(75%);
  z-index: 999;
  top: var(--nav-icon-padding-Y);
  left: calc(var(--nav-icon-padding-X) + var(--nav-icon-width) + var(--gap-m));
}

#header #contact-btns .textwidget {
  display: flex;
  gap: var(--gap-m);
  margin: 0 10px;
  width: 100%;
}

#header #contact-btns a {
  color: var(--ast-global-color-5) !important;
  font-size: var(--btn-font-size);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--gap-s);
}

#header #contact-btns a:hover:before {
  transform: scale(1.1);
}

#header #contact-btns a::before {
  content: "" !important;
  display: block !important;
  background-image: url(/wp-content/themes/astra-impuls-child/img/icon-phone-white.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 1.385em;
  height: 1.385em;
  transition: all 0.5s ease-in-out;
}

#header #contact-btns p:last-child a::before {
  background-image: url(/wp-content/themes/astra-impuls-child/img/icon-mail-white.svg);
}

@media (max-width: 1200px) {
  #header #claim {
    right: var(--gap-m);
  }
  #header #claim p {
    font-size: 1.7rem;
  }
}

@media (max-width: 1024px) {
  body:not(:has(#slideshow)) #header #claim {
    display: none;
  }

  #header #contact-btns a {
    font-size: 0;
  }

  #header #contact-btns a::before {
    width: 20px;
    height: 20px;
  }
  #header #contact-btns .textwidget {
    gap: 0;
  }
}

@media (max-width: 768px) {
  #header #theme-logo {
    width: 150px;
    min-width: unset;
  }

  #header #claim {
    position: absolute;
    right: unset !important;
    transform: translate(-50%, 40vw);
    z-index: 99;
    left: 50%;
  }

  #header #claim p {
    font-size: 1.286rem;
  }

  #header-icons {
    right: 7.2vw !important;
  }
  #header #contact-btns {
    display: none;
  }

  body.impmenu-active #header #theme-logo .theme-logo:last-child {
    opacity: 0;
    width: 0;
  }

  #header-icons .icon .textwidget {
    display: flex;
    gap: 3vw;
  }
}
