#header {
  background-color: var(--ast-global-color-2);
  border-top: 10px solid var(--ast-global-color-4);
  padding: var(--gap-m) 0px;
  position: fixed;
  width: 100%;
  z-index: 99;
  height: clamp(87px, 15vw, 127px);
}

#header .header-wrapper #theme-logo {
  width: clamp(179px, 16.49vw, 285px);
  pointer-events: all;
  margin-right: var(--gap-l);
  margin-left: auto;
}

/*---------------- Header Text -------------*/
#header-text {
  margin-top: var(--header-height);
  background-color: var(--ast-global-color-2);
  margin-bottom: var(--cont-gap);
  padding-left: 23.97vw;
  padding-right: 11vw;
  height: 20.14vw;
  position: relative;
}

:not(.home)#header-text {
  height: 100%;
  padding-bottom: var(--gap-xl);
}

:not(.home)#header-text .text-field {
  position: relative;
  z-index: 1;
}

#header-text .text-field {
  display: flex;
  flex-direction: row !important;
  padding-top: clamp(0rem, -1.714rem + 7.31vw, 7.063rem);
  width: 46.59vw;
}

#header-text .text-field h2 {
  color: var(--ast-global-color-0);
  max-width: 805px;
  align-self: center;
}

#header-text .text-field h2 em {
  color: var(--ast-global-color-4);
  font-style: normal !important;
}

#header-text::after {
  content: "";
  display: block;
  --my-size: clamp(147px, 24.04vw, 329px);
  width: var(--my-size);
  height: calc(var(--my-size) * 0.9);
  background-image: url(../img/icon-leitn-franz.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /*transform: translate(-6%, 14%);*/
  transition: all 0.5s ease 0s;
  justify-self: flex-end;
  transition: all 0.5s ease 0s;
  justify-self: flex-end;
  position: absolute;
  bottom: 0;
  right: 10.94%;
}

/* on home */
.home #header-text {
  padding-left: 16.2vw;
  padding-right: 16.2vw;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  height: clamp(160px, 30vw, 420px);
  z-index: 0;
}

.home #header-text .text-field {
  padding-top: calc(var(--cont-gap) * 1.1) !important;
  max-width: unset !important;
}

.home #header-text .text-field h2 {
  font-size: clamp(1.389rem, 0.556rem + 4vw, 4.822rem);
  padding-top: 0 !important;
  max-width: 67.71vw;
}

.home #header-text:after {
  --my-size: clamp(147px, 27.78vw, 480px);
  height: var(--my-size);
  transform: translate(-20%, 14%);
}

@media (max-width: 576px) {
  body:not(.home) #header-text {
    padding: calc(var(--gap-xl) * 2) 8vw var(--gap-l);
    height: unset;
  }

  body:not(.home) #header-text h2 {
    font-size: calc(var(--h2-font-size));
  }

  #header-text .text-field {
    width: 60vw;
  }

  #header-text::after {
    right: 0;
  }

  /* on home */
  .home #header-text:after {
    transform: translate(5%, 11%);
  }

  .home #header-text {
    padding-left: 7vw;
  }
  .home #header-text .text-field {
    width: unset;
  }

  .home #header-text .text-field h2 {
    font-size: calc(var(--h2-font-size) * 1.5);
  }
}

/*---------------- 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 -------------*/

/*
.gtranslate_wrapper > a > img {
  display: none !important;
}

.gt-current-lang {
  display: none !important;
  opacity: 0;
}

.glink-dsgvo-wrapper > a > img {
  display: none !important;
}

.gtranslate_wrapper {
  cursor: pointer;
}

.popup-inner {
  background-color: var(--ast-global-color-0);
}

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;
}

@media (max-width: 1025px) {
  a.glink:after {
    background-image: url(/wp-content/themes/astra-impuls-child/img/icon-globe-mobile.svg);
  }
}

*/

.gtranslate_wrapper {
  height: 100% !important;
}

.gt_selected {
  display: flex;
}

.gt_switcher,
.gtranslate_wrapper {
  width: 27px !important;
}

.gt_switcher {
  overflow: visible !important;
  height: 100% !important;
}

.gt_switcher .gt_option {
  width: 200% !important;
  transform: translateX(-25%);
  margin-top: 5px;
  border: none;
  padding: 10px 0 5px 0;
  transition: all 0.5s ease-in-out !important;
  background-color: var(--ast-global-color-2) !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.gt_switcher .gt_option a {
  padding: 0 !important;
  max-height: 27px;
  margin-bottom: 5px;
}

.gt_switcher a {
  display: flex !important;
}

.gt_option a,
.gt_selected a {
  font-size: 0 !important;
  height: auto;
}

.gt_selected a:hover {
  background: none !important;
}
.gt_option a:hover {
  background-color: transparent !important;
}

.gt_switcher .gt_selected a::before {
  content: "";
  display: block;
  width: 27px;
  height: 27px;
  background: center / contain no-repeat url(../img/icon-lang.svg);
  z-index: 100;
}

.gt_switcher .gt_selected a:after {
  display: none !important;
}

.icon:has(.gtranslate_wrapper) .gt_switcher .gt_selected img {
  display: none !important;
}

.gt_switcher .gt_selected {
  background: transparent !important;
}

.gt_switcher .gt_selected a {
  padding: 0 !important;
  border: none !important;
}

.gt_switcher .gt_current {
  display: none !important;
}

@media (max-width: 1025px) {
  .gt_switcher .gt_selected a::before {
    background: center / contain no-repeat url(../img/icon-lang-mobile.svg);
  }

  #header-icons-mobile {
    align-items: start;
  }

  .gt_switcher .gt_option {
    background-color: var(--ast-global-color-1) !important;
  }
}

/*----------------- HEADERBILD -------------*/

#slider-wrapper.postthumb.desktop {
  max-height: 580px;
  overflow: hidden;
  position: relative;
}

#slider-wrapper.postthumb.mobile {
  max-height: 580px;
  overflow: hidden;
  line-height: 0;
  position: relative;
}

#slider-wrapper.postthumb.desktop img {
  width: 100%;
  height: auto;
}

#slider-wrapper.postthumb.mobile img {
  width: 100%;
  height: auto;
}

#slider-wrapper.postthumb::before {
  display: block;
  position: absolute;
  background: -moz-linear-gradient(
    top,
    rgba(7, 1, 1, 0.3) 0%,
    rgba(7, 1, 1, 0.3) 1%,
    rgba(0, 0, 0, 0) 100%
  );
  background: -webkit-linear-gradient(
    top,
    rgba(7, 1, 1, 0.3) 0%,
    rgba(7, 1, 1, 0.3) 1%,
    rgba(0, 0, 0, 0) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(7, 1, 1, 0.3) 0%,
    rgba(7, 1, 1, 0.3) 1%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#4d070101', endColorstr='#00000000', GradientType=0);
  height: 100%;
  width: 100%;
  content: "";
}

#slider-wrapper.postthumb.desktop img.fallback {
  margin-top: -10vw;
}

@media (max-width: 1450px) {
  .home #header-text .text-field {
    padding-top: calc(var(--cont-gap) * 1.3) !important;
  }
}

@media (max-width: 1024px) {
  #header-text {
    height: 100%;
  }
}

@media (max-width: 990px) {
  .shiftnav-toggle-button,
  .shiftnav-toggle-button:hover {
    display: flex;
  }
}

@media (max-width: 576px) {
  .home #header-text .text-field {
    padding-top: calc(var(--cont-gap) * 1.05) !important;
  }
}
