#theme-logo {
    z-index: 100;
    pointer-events: all;
}

#theme-logo a {
    display: flex;
    flex-direction: column;
    gap: var(--gap-logo);
    align-items: center;
}

#theme-logo .theme-logo {
    display: flex;
    width: fit-content;
}

#theme-logo .theme-logo img {
    width: auto;
}

#header.small .theme-logo:last-child {
    height: 0 !important;
}

#header .theme-logo:last-child {
    transition: all var(--trans-dur) cubic-bezier(0.46, 0.03, 0.52, 0.96) 0s;
    height: var(--height-logo-txt) !important;
    overflow: hidden;
}

#theme-logo .theme-logo:first-child img {
    height: var(--height-logo-wappen) !important;
}

#theme-logo .theme-logo:last-child img {
    height: var(--height-logo-txt) !important;
}

header#header {
    pointer-events: none;
    position: fixed;
    width: 100%;
    z-index: 9999;
    background-color: var(--ast-global-color-0);
    top: 0;
    box-shadow: #00000014 0 0 20px;
}

.header-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    padding: var(--nav-bar-pad) 0;
}

#heading-absolute-wrapper {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--nav-icon-padding-X);
    align-items: flex-start;
    pointer-events: all;
    top: var(--nav-icon-padding-Y);
}

#heading-absolute-wrapper>div {
    display: flex;
    gap: 60px;
}

.imp-widget-area {
    display: flex;
    gap: 15px;
}

.imp-widget-area .icon * {
    color: var(--ast-global-color-3);
    stroke: var(--ast-global-color-3);
}


/**custom menu*/

#menu-custom-menu * {
    font-size: 14px;
    font-weight: 400;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: var(--Colors-font-color, #a31717);
    letter-spacing: 0.1em;
}

.custom-menu-wrapper ul,
.custom-menu-2-wrapper ul {
    display: flex;
    gap: var(--gap-m);
    list-style: none;
}

#imp-custom-menu-nav-statonary {
    pointer-events: all;
    transition: all var(--trans-dur) cubic-bezier(0.46, 0.03, 0.52, 0.96) 0s;
    max-height: 0;
    overflow: hidden;
    background-color: var(--ast-global-color-0);
    position: fixed;
    width: 100%;
    top: calc( (var(--nav-bar-pad) * 2) + var(--height-logo-wappen) + var(--height-logo-txt) + var(--gap-logo)) !important;
    left: 0;
}

.small #imp-custom-menu-nav-statonary {
    top: calc( (var(--nav-bar-pad) * 2) + var(--height-logo-wappen) + var(--gap-logo)) !important;
}

#imp-custom-menu-nav-statonary.visible {
    max-height: 100vh;
}

.imp-custom-menu-nav-wrapper {
    display: flex;
    border-bottom: 1px solid var(--ast-global-color-3);
    border-top: 1px solid var(--ast-global-color-3);
    padding: 2em 2em 2em 3em;
}

h4.imp-custom-menu-nav-col-title {
    color: var(--ast-global-color-3);
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: var(--Colors-font-color, #a31717);
}

.imp-custom-menu-nav-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, clamp(120px, 15vw, 190px));
    gap: var(--gap-m);
}

.imp-custom-menu-nav-collection-grid-img-wrapper {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.imp-custom-menu-nav-collection-grid-img-wrapper-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: 100%;
    overflow: hidden;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.46, 0.03, 0.52, 0.96) 0s;
}

.imp-custom-menu-nav-collection-grid-img-wrapper-inner:hover {
    height: 110%;
    width: 100%;
}

.imp-custom-menu-nav-collection-grid-img-wrapper-inner>img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.imp-custom-menu-nav-col.imp-custom-menu-nav-col-collection {
    display: flex;
}

.imp-custom-menu-nav-col-collection .imp-custom-menu-nav-col-title {
    /*border-right: 1px solid var(--ast-global-color-3);*/
    padding-right: var(--gap-xl);
    line-height: 1;
}

.imp-custom-menu-nav-collection-grid-wrapper {}

.imp-custom-menu-nav-collection-grid-item p {
    color: var(--ast-global-color-3);
    font-family: var(--mainfont);
    font-size: var(--h5-font-size);
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: var(--gap-s) !important;
}


/* alle cols */

.imp-custom-menu-nav-col {
    display: flex;
    flex-direction: column;
    gap: var(--gap-m);
    padding-left: var(--gap-xl);
}

.imp-custom-menu-nav-col .imp-custom-menu-nav-col-title {}


/* overview */

.imp-custom-menu-nav-col-overview {
    border-right: 1px solid var(--ast-global-color-3);
    padding-right: var(--gap-xl);
    padding-left: 0 !important;
}

.imp-custom-menu-nav-col-overview a img {
    width: 190px;
    min-width: 190px;
    height: 190px;
    object-fit: cover;
}

.imp-custom-menu-nav-col-overview a h4 {
    margin-bottom: var(--gap-m) !important;
}

.imp-custom-menu-nav-col-title {
    line-height: 1;
}

#imp-custom-menu-nav-statonary-typ {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
}

#imp-custom-menu-nav-statonary-typ .imp-nav-target {
    font-family: var(--mainfont) !important;
    font-size: var(--h5-font-size);
}

#imp-custom-menu-nav-statonary-typ>li {
    line-height: 1.3;
}


/**WPML*/


/*
.icon.icon-lang ul {
  display: flex;
}

.icon.icon-lang .wpml-ls-native {
  display: none;
}


.icon.icon-lang .wpml-ls-link::after {
  content: "";
  display: block;
  width: var(--nav-icon-height);
  height: var(--nav-icon-height);
  background-image: url(../img/icon-lang.svg);
  height: 25px;
  width: 25px;
}

.icon.icon-lang .wpml-ls-statics-shortcode_actions {
  padding: 0 !important;
}

.wpml-ls-display {
  display: none;
}

.wpml-ls-item.wpml-ls-current-language:not(:only-of-type) {
  display: none;
}
*/

.icon.icon-lang {
    margin-right: 2vw;
}

.wpml-ls-legacy-dropdown-click a {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ast-global-color-3);
    display: block;
}

.wpml-ls-legacy-dropdown-click {
    width: unset;
}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle:after {
    left: 100%;
    margin-left: 0.4em;
}


/* TODO Rotation of arrow* */

.wpml-ls-slot-shortcode_actions:has() .wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle:after {}

.wpml-ls-legacy-dropdown-click .wpml-ls-current-language:hover>a,
.wpml-ls-legacy-dropdown-click a:focus,
.wpml-ls-legacy-dropdown-click a:hover {
    color: var(--ast-global-color-3);
    background: transparent;
}


/* hover widget icons */

.imp-widget-icon * {
    transition: all 0.5s ease-in-out;
}

.imp-widget-icon:hover * {
    stroke: #000;
}

.icon.icon-favorite:hover .simplefavorites-user-count {
    -webkit-text-stroke-color: #000 !important;
}


/**cart*/

.icon.icon-cart {
    transform: translateY(-2.8%);
}

.ast-modern-checkout .icon.icon-cart {
    display: none;
}


/**Favorite*/

.icon.icon-favorite .simplefavorites-user-count {
    position: absolute;
    color: var(--ast-global-color-3);
    top: 0;
    right: 0;
    transform: translate(9px, -4px);
    font-size: 11px;
    line-height: 1;
    font-family: var(--mainfont);
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: var(--Colors-font-color, #a31717);
}

.icon.icon-favorite {
    position: relative;
}

.icon.icon-favorite path {
    fill: transparent;
    transition: fill 0.5s ease-in-out, stroke 0.5s ease-in-out;
}

.icon.icon-favorite:hover path {
    fill: var(--ast-global-color-3);
    stroke: var(--ast-global-color-3);
}


/**Account*/

.imp-widget-icon {
    content: "";
    display: block;
    width: var(--nav-icon-height);
    height: var(--nav-icon-height);
}

.icon.icon-my-account .imp-widget-icon {
    background-image: url(../img/icon-account.svg);
    background-repeat: no-repeat;
    width: 25px;
    height: 25px;
}

.icon.icon-my-account:hover .imp-widget-icon {
    background-image: url(../img/icon-account-hover.svg);
}


/**Search*/

a#open-search-popup * {
    fill: var(--ast-global-color-3);
    transition: fill 0.5s ease-in-out;
}

.icon.icon-search form.searchwp-form input.swp-input--search {
    background-image: url("/wp-content/uploads/2025/06/icon-search.svg");
}

.icon.icon-search input.swp-input--search.swp-input {
    border-bottom: 1px solid var(--ast-global-color-3);
    border: none !important;
    border-bottom: 1px solid var(--ast-global-color-3) !important;
    background-color: transparent !important;
    font-family: var(--headlinefontalternative);
    color: var(--ast-global-color-3);
    font-size: var(--btn-font-size);
}

.search-submit.swp-button {
    display: none;
}

.icon.icon-search {
    margin-right: 2vw;
}

#open-search-popup:hover * {
    fill: #000;
}

#open-search-popup:hover {
    border-bottom: 1px solid #000;
}

@media (max-width: 1300px) {
    .icon.icon-search {
        margin-right: 3vw;
    }
}


/**------------------------ SLIDESHOW -------------------------*/

div#imp-thumbnail {
    margin-top: calc( (var(--nav-bar-pad) * 2) + var(--height-logo-wappen) + var(--height-logo-txt) + var(--gap-logo)) !important;
    transition: all var(--trans-dur) cubic-bezier(0.46, 0.03, 0.52, 0.96) 0s;
    width: 100%;
}

.small div#imp-thumbnail {
    margin-top: calc( (var(--nav-bar-pad) * 2) + var(--height-logo-wappen) + var(--gap-logo)) !important;
}

div#imp-thumbnail img {
    width: 100%;
}


/*---------------- 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 -------------*/

#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 (min-width: 1920px) {
    /*----------------- ELEMENT -------------*/
    /*----------------- END ELEMENT ---------*/
}

@media (max-width: 1300px) {
    #imp-custom-menu-nav-statonary {
        z-index: 9999;
        top: 100px !important;
    }
    #imp-custom-menu-nav-statonary .imp-custom-menu-nav-col-overview {
        border-right: none;
    }
    #imp-custom-menu-nav-statonary .imp-custom-menu-nav-wrapper {
        flex-direction: column;
        gap: var(--gap-xl);
    }
    #imp-custom-menu-nav-statonary .imp-custom-menu-nav-col {
        padding-left: 0;
    }
    #imp-custom-menu-nav-statonary #imp-custom-menu-nav-statonary-typ a.menu-link {
        border: none;
        padding: 2px 5px;
    }
    #imp-custom-menu-nav-statonary .back-btn {
        position: absolute;
        right: var(--gap-m);
        top: var(--gap-m);
        color: var(--ast-global-color-3);
        font-weight: 500;
    }
}

@media (min-width: 1300px) {
    #imp-custom-menu-nav-statonary .back-btn {
        display: none;
    }
}

@media (max-width: 1200px) {
    /*----------------- ELEMENT -------------*/
    /*----------------- END ELEMENT ---------*/
}

@media (max-width: 1024px) {
    /*----------------- ELEMENT -------------*/
    /*----------------- END ELEMENT ---------*/
}

@media (max-width: 990px) {
    .shiftnav-toggle-button,
    .shiftnav-toggle-button:hover {
        display: flex;
    }
    .imp-custom-menu-nav-collection-grid-item p {
        font-weight: 400;
    }
}

@media (max-width: 768px) {
    #imp-custom-menu-nav-statonary .imp-custom-menu-nav-col-overview a img {
        display: none;
    }
    .imp-custom-menu-nav-col-overview a h4 {
        margin-bottom: 0 !important;
    }
    .imp-custom-menu-nav-wrapper {
        padding: 3em 2em 2em 2em;
    }
}

@media (max-width: 576px) {
    /*----------------- ELEMENT -------------*/
    /*----------------- END ELEMENT ---------*/
}

@media (max-width: 420px) {
    /*----------------- ELEMENT -------------*/
    /*----------------- END ELEMENT ---------*/
}

@media (max-width: 320px) {
    /*----------------- ELEMENT -------------*/
    /*----------------- END ELEMENT ---------*/
}

@media (min-width: 2350px) {
    .custom-menu-2-wrapper {
        display: none;
    }
}

@media (max-width: 2350px) {
    #menu-custom-menu-1 li:nth-child(3),
    #menu-custom-menu-1 li:nth-child(4) {
        display: none;
    }
    .wrapper-left {
        width: 100%;
    }
    .custom-menu-wrapper {
        display: flex;
        margin: 0 var(--gap-m) 0 var(--gap-xl);
        width: 100%;
    }
    .custom-menu-wrapper .custom-menu-1-wrapper {
        margin-left: 6vw;
        width: 100%;
    }
    .custom-menu-wrapper .custom-menu-2-wrapper {}
}

@media (max-width: 1500px) {
    #header .menu-item>a.menu-link {
        font-size: calc(var(--h4-font-size) * 0.8) !important;
    }
}

@media (min-width: 1300px) {
    .menu-col.col-menu-1 .custom-menu-main {
        display: none;
    }
}

@media (max-width: 1300px) {
    .menu-col.col-menu-1 {
        flex-direction: column;
        height: unset !important;
        gap: var(--gap-xl);
        align-items: start !important;
    }
    #heading-absolute-wrapper .custom-menu-wrapper {
        display: none;
    }
    .menu-col.col-menu-1 .custom-menu-main .custom-menu-wrapper,
    .menu-col.col-menu-1 .custom-menu-main .custom-menu-1-wrapper ul,
    .menu-col.col-menu-1 .custom-menu-main .custom-menu-2-wrapper ul {
        flex-direction: column;
        margin: 0;
    }
    .menu-col.col-menu-1 #menu-hauptmenu .menu-link {
        border-bottom: none;
        padding: var(--gap-s) 0 !important;
    }
}

@media (max-width: 820px) {
    .imp-widget-area .icon:not(.icon-search) {
        display: none;
    }
    a#open-search-popup svg {
        margin-bottom: 10px;
    }
}

@media (max-width: 400px) {
    .menu-col.col-menu-1 {
        gap: var(--gap-l);
    }
    #main-nav .menu-item>a.menu-link {
        padding: 4px;
    }
    .menu-col.col-menu-1:has(.menu.menu-child-sub-active) {
        margin-top: -40vw;
    }
    .menu-col.col-menu-1 #menu-hauptmenu .sub-menu .menu-link {
        height: 1.6rem;
    }
}