/*HEADER*/

header {
  position: relative;
  width: 100vw;
  z-index: 2;
  background-color: white;
  display: flex;
  justify-content: space-between;
  padding: 2vw 0;
}

header .inner {
  display: flex;
  height: 100%;
  gap: calc(var(--gap-l) - 10px);
  padding-left: calc(var(--gap-l) - var(--gap-m));
}

header img {
  margin: 0 !important;
}

div#theme-logo {
  width: 12.5vw;
  height: auto;
  margin-right: calc(var(--gap-l) - var(--gap-m));
  z-index: 9;
}

/*HEADER ICONS*/

header.nav-open div#header-icons {
  display: none;
}

div#header-icons {
  z-index: 101;
  display: flex;
  gap: calc(var(--gap-l) - 10px);
  margin-top: 8px;
}

#header-icons .icon {
  float: left;
  width: auto;
  height: 20px;
  display: flex;
  flex-direction: row-reverse;
  font-size: 0.789rem;
  gap: var(--gap-s);
  font-weight: 500;
}

#header-icons a {
  display: flex;
  gap: var(--gap-s);
  color: var(--color-anthrazit);
  font-size: 0.789rem;
  align-items: center;
  transition: all 0.5s ease-in-out;
}

#header-icons a::before {
  content: "";
  display: block;
  --my-size: 1.467em;
  width: var(--my-size);
  height: var(--my-size);
  background-image: url(/wp-content/themes/gerhardter-bau/img/icon-phone.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.5s ease-in-out;
}

#header-icons a.phone:hover::before {
  background-image: url(/wp-content/themes/gerhardter-bau/img/icon-phone-green.svg);
}

#header-icons .mail::before {
  --my-size: 1.9em;
  width: var(--my-size);
  height: calc(var(--my-size) * 0.7);
  background-image: url(/wp-content/themes/gerhardter-bau/img/icon-mail.svg);
}

#header-icons a.mail:hover::before {
  background-image: url(/wp-content/themes/gerhardter-bau/img/icon-mail-green.svg);
}

@media all and (max-width: 1024px) {
  #header-icons {
    gap: var(--gap-m) !important;
  }

  header .inner {
    gap: var(--gap-m);
  }
}

@media all and (max-width: 767px) {
  div#header-icons {
    display: none;
  }
}

/* Slideshow */

#slideshow {
  background: white;
  display: flex;
  position: relative;
}

#slideshow::after {
  content: "";
  display: block;
  width: 100vw;
  height: 5vw;
  bottom: -0.5%;
  left: 0;
  background-color: var(--color-hell-grau);
  position: absolute;
}

#slideshow .slideshow {
  justify-self: flex-end;
  width: 55vw;
}

#slideshow .slideshow .slideshow-swiper {
  width: 100%;
  height: 100%;
  /*max-width: 1063px;
  max-height: 760px;*/
}

#slideshow .slideshow .slideshow-swiper img {
  width: 100%;
  height: 100%;
}

#slideshow .swiper-pagination {
  height: 100%;
  width: 100%;
}

#slideshow .swiper-button {
  position: absolute;
  top: -50%;
  left: 20px;
  height: 50px;
}
#slideshow .swiper-button.swiper-button-next {
  right: 20px;
  left: unset;
}

#slideshow .swiper-button svg path {
  fill: white !important;
}

#slideshow #header-text {
  width: 45vw;
  padding: var(--gap-l) 17.71vw 17.71vw 9vw;
  position: relative;
}

#slideshow #header-text h2 {
  padding: 0 !important;
  margin: 0 !important;
}

#slideshow #header-text::after {
  content: "";
  display: block;
  /* 216, 97 px */
  --my-size: clamp(6.063rem, 4.257rem + 7.7vw, 13.5rem);
  height: var(--my-size);
  width: var(--my-size);
  bottom: calc(var(--gap-l) + 5vw) !important;
  right: var(--gap-l);
  background-image: url(../img/icon-baumeister.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  position: absolute;
}

#slideshow #header-text .text-field h2 {
  font-weight: 900;
  font-family: var(--headlinefont);
  font-size: clamp(
    24.5px,
    calc(24.5px + (55 - 24.5) * ((100vw - 375px) / (1920 - 375))),
    55px
  );
  text-transform: uppercase;
}

#slideshow #header-text .text-field h2 em {
  color: white;
  background-color: var(--color-green);
  font-style: normal;
  padding: 0 7px;
  border-radius: 3px;
}

#slideshow .slideshow-wrapper {
  max-width: 55vw;
  height: 40vw;
}

@media (max-width: 1500px) and (min-width: 1024px) {
  #slideshow #header-text::after {
    --my-size: 120px;
    bottom: calc(var(--gap-m) + 5vw) !important;
    right: var(--gap-m) !important;
  }
}

@media (max-width: 1024px) and (min-width: 767px) {
  #slideshow #header-text {
    padding: calc(var(--gap-m) * 1.5) 50vw 12vw calc(var(--gap-m) * 1.5) !important;
  }
}

@media (max-width: 1024px) {
  #slideshow {
    flex-direction: column-reverse;
  }
  #slideshow .slideshow {
    width: 100vw;
  }
  #slideshow .slideshow-wrapper {
    max-width: unset;
    height: unset;
  }

  #slideshow #header-text {
    width: 100vw;
    padding: calc(var(--gap-m) * 1.5) 29vw 29vw calc(var(--gap-m) * 1.5);
  }

  #slideshow #header-text::after {
    bottom: calc(var(--gap-m) * 1.5) !important;
    right: calc(var(--gap-m) * 1.5) !important;
  }
  #slideshow::after {
    display: none;
  }
}

@media (max-width: 767px) {
  header {
    align-items: center;
  }

  #theme-logo {
    width: 30vw !important;
  }

  #slideshow .swiper-button {
    width: 15px;
    height: 25px;
  }
  header.nav-open {
    position: fixed;
    top: 0;
  }

  #slideshow .swiper-button {
    background: url("../img/icon-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 22px;
    height: 50px;
  }
  #slideshow .swiper-button svg {
    display: none;
  }
  #slideshow .swiper-button.swiper-button-prev {
    transform: rotate(180deg);
  }
}

@media all and (min-width: 767px) {
  #mobile-anfrage {
    display: none !important;
  }
}

#mobile-anfrage {
  position: fixed;
  background: var(--color-anthrazit);
  bottom: 0;
  width: 100vw;
  left: 0;
  display: flex;
  z-index: 99;
}

#mobile-anfrage .textwidget {
  width: 50%;
}

#mobile-anfrage .textwidget:has(.mail) {
  background-color: var(--color-green);
}

#mobile-anfrage p {
  margin: 0 !important;
}

#mobile-anfrage a {
  color: white;
  display: flex;
  justify-content: center;
  gap: 15px;
  font-weight: 400;
  font-size: 12px;
  align-items: center;
  padding: var(--gap-s);
}

#mobile-anfrage a::before {
  content: "";
  display: block;
  --my-size: 1.467em;
  width: var(--my-size);
  height: var(--my-size);
  background-image: url(/wp-content/themes/gerhardter-bau/img/icon-phone-white.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.5s ease-in-out;
}

#mobile-anfrage a.mail::before {
  background-image: url(/wp-content/themes/gerhardter-bau/img/icon-mail-white.svg);
}
