#theme-logo {
  z-index: 99999;
  width: 27vw;
  max-width: 120px;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

#theme-logo img {
  transition: transform 0.5s ease;
}

header#header[header-color="dark"] .theme-logo:first-child {
  display: none;
}

header#header:not([header-color="dark"]) .theme-logo:last-child {
  display: none;
}

/* when menu is active */

body.impmenu-active .theme-logo:first-child {
  display: block !important;
}

body.impmenu-active .theme-logo:last-child {
  display: none;
}

header#header {
  pointer-events: none;
}

header#header[header-color="light"] {
  background-color: var(--ast-global-color-1);
}

header#header[header-color="green"] {
  background-color: var(--ast-global-color-4);
}

header#header[header-color="dark"] {
  background-color: var(--ast-global-color-0);
}

header#header[header-color="dark"] div#nav-icon4 > span {
  background-color: var(--ast-global-color-4);
}

/*
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
*/

#header {
  transition: all 0.5s ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

#header.dissolve-header {
  opacity: 0;
  top: calc(var(--header-height) * -1);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-m);
  padding: 18px 80px;
}

.header-wrapper > a.impmenu-toggle {
  position: relative;
  width: var(--nav-icon-height);
  height: var(--nav-icon-height);
}

div#header-btn {
  pointer-events: all;
  margin-left: auto;
}

header#header[header-color="dark"] div#header-btn a {
  color: var(--ast-global-color-4) !important;
  border-color: var(--ast-global-color-4) !important;
}

div#header-btn a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mainfont) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: 500 !important;
  padding: 0.9em 1.5em !important;
  line-height: 1 !important;
  height: auto;
  transition: all 0.5s ease 0s;
  border: 1px solid var(--ast-global-color-3) !important;
  color: var(--ast-global-color-3) !important;
  border-radius: 20em;
  text-transform: capitalize;
}

div#header-btn a::after {
  content: "";
  display: inline-block;
  --my-size: 0.7em;
  width: calc(var(--my-size) / 1.6955);
  height: var(--my-size);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.5s ease 0s;
  background-image: url(../img/button-arrow.svg);
}

header#header[header-color="dark"] div#header-btn a::after,
div#header-btn a:hover::after {
  background-image: url(../img/button-arrow-green.svg);
}

/* hover */
div#header-btn a:hover {
  background: var(--ast-global-color-3);
  color: var(--ast-global-color-4) !important;
}

header#header[header-color="dark"] div#header-btn a:hover {
  color: var(--ast-global-color-3) !important;
  background: var(--ast-global-color-4);
}

header#header[header-color="dark"] div#header-btn a:hover::after {
  background-image: url(../img/button-arrow.svg);
}

/*----------------- PROJEKTE -------------*/
.projekte-header {
  background-color: var(--ast-global-color-0);
}

.projekte-header * {
  color: #fff;
  font-size: var(--listing-font-size);
}

.projekte-header-wrapper {
  display: flex;
  justify-content: space-between;
  width: 1050px;
  max-width: 90vw;
  margin: 0 auto;
  padding-top: calc(var(--gap-xl) + var(--gap-l));
  padding-bottom: var(--gap-l);
}

@media (max-width: 576px) {
  .projekte-header-wrapper {
    padding-top: calc(var(--gap-xl) * 3);
  }

  #theme-logo {
    max-width: 100px;
    min-width: unset;
  }
}

.projekte-header-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
}

.projekte-header-col > span {
  font-family: var(--mainfont) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: 500 !important;
  line-height: 1;
}

.projekte-header-col.col-kunde p {
  font-family: var(--headlinefont);
  font-size: var(--h6-font-size);
  font-weight: 700;
  font-style: normal;
  line-height: 1.11;
  letter-spacing: 0.01em;
}

.col-projektumfang-line-wrapper {
  display: flex;
}

.col-projektumfang-line-wrapper
  > p:not(:only-of-type):not(:last-of-type)::after {
  content: "+";
  font-size: 1em;
  margin: 0 0.4em;
}

@media (max-width: 576px) {
  .projekte-header-col > span {
    font-size: calc(var(--h6-small-font-size) * 0.85) !important;
  }

  .projekte-header-col.col-kunde p {
    font-size: var(--h5-font-size);
  }
}

/*----------------- HEADER ICONS -------------*/

#header-icons {
  z-index: 100;
  display: flex;
  pointer-events: all;
  position: absolute;
  top: calc((100vh - var(--height-calculus)) / 2);
  right: 4vw;
  gap: 20px;
}

#header-icons img {
  height: 38px !important;
  display: block;
  width: auto;
}

.icon {
  height: 62px;
  display: flex;
  text-align: center;
  vertical-align: top;
  transition: all 0.3s ease 0s;
}

.icon a {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/**------------------------ SLIDESHOW -------------------------*/

#slider-wrapper.postthumb {
  max-width: 1170px;
  margin: 0 auto;
}

/*---------------- WPML SPRACHENSWITCH -------------*/

.wpml-ls-legacy-list-horizontal a {
  padding-top: 13px !important;
  line-height: 1;
  color: #fff;
  font-family: var(--mainfont);
  font-weight: bold;
  font-size: 19px;
}

.wpml-ls-legacy-list-horizontal {
  border: 0;
  padding: 0;
}

.schatten {
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/*---------------- GTRANSLATE -------------*/

html:lang(auto) .icon a[title="German"],
html:lang(en) .icon a[title="English"],
html:lang(de-DE) .icon a[title="German"] {
  display: none;
  opacity: 0;
}

a.glink {
  font-size: 0;
}

a.glink:after {
  height: 26px;
  width: 26px;
  background-image: url(/wp-content/themes/astra-impuls-child/img/icon-lang.svg);
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/*----------------- HEADERBILD -------------*/
div#slideshow {
  background-color: var(--ast-global-color-0);
  position: relative;
}

div#slideshow:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 16%;
  background-color: #fff;
  bottom: 0;
  z-index: 9;
}

.slider-wrapper {
  z-index: 99;
  position: relative;
}

.slider-wrapper.slider-wrapper-desktop,
.slider-wrapper.slider-wrapper-mobile {
  max-width: 1200px;
  position: relative;
  z-index: 99;
  margin: 0 auto;
}

/* VIDEO **/

.slider-wrapper.slider-wrapper-desktop:has(.header-video-container) {
  height: 100vh;
  max-width: unset;
}

.header-video-container:not():has(.header-video-mobile) {
  position: relative;
  width: 100vw;
}

.header-video:not(.header-video-mobile) {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  margin-top: var(--header-height);
}

#slideshow:has(.header-video-mobile.header-video) {
  margin-top: var(--header-height);
}

#slideshow .slider-wrapper:has(.header-video-mobile.header-video) {
  background-color: var(--ast-global-color-0);
}

.header-video-container:has(.header-video-mobile) {
  padding-bottom: 50px;
}

.header-video-container .header-video-mobile.header-video {
  width: 100%;
}

/*----------------- Responsive -------------*/

@media (max-width: 990px) {
  .shiftnav-toggle-button,
  .shiftnav-toggle-button:hover {
    display: flex;
  }
}

@media (max-width: 576px) {
  .header-wrapper {
    padding: 18px 20px;
    z-index: 999;
  }

  .header-wrapper #header-btn {
    display: none;
  }

  div#nav-icon4 {
    margin-top: 2px !important;
  }

  #nav-wrapper.impmenu-active {
    margin-top: var(--header-height);
  }

  #header:has(.impmenu-active) {
    background-color: var(--ast-global-color-4) !important;
  }

  .menu-col:has(#menu-hauptmenu.menu-child-sub-active) + #nav-footer {
    margin-bottom: 20vh;
  }

  #nav-footer {
    padding-bottom: 0;
    transition: padding-bottom 0.5s ease 0.5s;
  }
}

@media (max-height: 900px) {
  #nav-footer > .textwidget:first-child {
    padding-bottom: 10px !important;
  }
}
