header section {
    z-index: 9;
}

.site-main .elementor-section-wrap .line {
    position: relative;
}

.site-main .elementor-section-wrap .line:after {
    content: '';
    width: 2px;
    height: 82px;
    display: block;
    position: absolute;
    bottom: -41px;
    left: 50%;
    z-index: 8;
    background-color: #fff;
    -webkit-animation: wiggle 1s infinite alternate;
    animation: wiggle 1s infinite alternate;
}

@media screen and (max-width: 767px) {
    .image-block .elementor-column {
        margin: 30px 30px 0;
    }

    .site-main .elementor-section-wrap .line:after {
        content: initial;
        content: unset;
    }
}

@-webkit-keyframes wiggle {
    from {
        -webkit-transform: translateY(0px);
        transform: translateY(0px);
    }

    to {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
}

@keyframes wiggle {
    from {
        -webkit-transform: translateY(0px);
        transform: translateY(0px);
    }

    to {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
}

p:last-child {
    margin-bottom: 0;
}

.elementor-widget-text-editor h1,
.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3,
.elementor-widget-text-editor h4 {
    margin-bottom: .5em;
    margin-top: 1.5em;
}

/* HEADER */
header .elementor-section {
    position: relative;
}

header .elementor-section:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -50px;
    transition: bottom .5s;
    background: linear-gradient(180deg, var(--e-global-color-text), rgba(52, 52, 52, 0));
    opacity: 1;
}

@media screen and (max-width: 767px) {
    header .elementor-section:before {
        bottom: 0;
    }
}

.menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0;
    list-style: none;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 70px;
    -webkit-transition: padding-top .5s, height .5s;
    -o-transition: padding-top .5s, height .5s;
    transition: padding-top .5s, height .5s;
    position: relative;
    height: 36px;
}

.menu .menu-item {
    padding-right: 1.5em;
    padding-left: 1.5em;
}

.menu .menu-item a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
    text-align: center;
}

.menu .menu-item a span {
    text-transform: uppercase;
    font-family: 'Gotham Bold';
    font-size: 17px;
}

.menu .menu-item a span.menu-item-description {
    font-size: 12px;
    line-height: 1;
    opacity: .47;
}

.menu-item a {
    display: block;
    position: relative;
}

.site-main a,
header a,
footer a {
    background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(255, 255, 255, .47), rgba(255, 255, 255, .47));
    background-position: 0% 100%, 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px, 100% 1px;
    transition: background-size .3s, background-position .3s;
}

.site-main a:hover,
footer a:hover,
header a:hover {
    background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(255, 255, 255, .47), rgba(255, 255, 255, .47));
    background-size: 100% 1px, 100% 1px !important;
}

header a {
    padding-bottom: 2px;
    background-image: linear-gradient(rgba(255, 255, 255, .47), rgba(255, 255, 255, .47));
    background-position: 50% 100%;
    background-size: 50% 5%;
    transition: background-size .3s, background-position .3s, background-image .3s;
}

header a:hover,
.current-menu-item a {
    background-image: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));
    background-size: 100% 5% !important;
}

.elementor-toggle-title {
    background-image: none !important;
}


.elementor-tab-title {
    position: relative;
    padding-right: 40px !important;
}

.elementor-tab-title:before,
.elementor-tab-title:after {
    content: "";
    position: absolute;
    background-color: #fff;
    transition: transform 0.25s ease-out;
}

/* Vertical line */
.elementor-tab-title:before {
    top: 20px;
    right: 21px;
    width: 3px;
    height: 15px;
}

/* horizontal line */
.elementor-tab-title:after {
    top: 26px;
    right: 15px;
    width: 15px;
    height: 3px;
}

.elementor-tab-title.elementor-active:before {
    transform: rotate(90deg);
}

.elementor-tab-title.elementor-active:after {
    transform: rotate(180deg);
}

.elementor-widget-image a,
.elementor-widget-social-icons a,
.elementor-button-link,
.elementor-gallery-item {
    background-image: none !important;
}

.menu-item.menu-logo a span {
    display: none;
}

.menu-item.menu-logo {
    position: relative;
    padding: 0;
    width: 0;
    -webkit-transition: padding 2s, width .5s, max-height 2s, opacity 2s;
    -o-transition: padding 2s, width .5s, max-height 2s, opacity 2s;
    transition: padding 2s, width .5s, max-height 2s, opacity 2s;
}

.menu-item.menu-logo a {
    position: absolute;
    top: -100px;
    -webkit-transition: top .5s;
    -o-transition: top .5s;
    transition: top .5s;
    left: calc(50% - 106px);
}

.menu-item.menu-logo a {
    display: block;
    background-image: url('/wp-content/uploads/2021/11/hanswagner_grafiken_hanswagner_unternehmen.svg');
    width: 212px;
    height: 82px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover !important;
}

.hide-effect {
    -webkit-transition: max-height .5s, opacity .5s;
    -o-transition: max-height .5s, opacity .5s;
    transition: max-height .5s, opacity .5s;
    overflow: hidden;
    max-height: 150px;
    opacity: 1;
}

.page-template-default .site-main {
    margin-top: -146px;
}

@media screen and (max-width: 767px) {
    .page-template-default .site-main {
        margin-top: -58px;
    }
}

@media screen and (min-width: 768px) {
    .elementor-sticky--effects .menu-item.menu-logo {
        padding-left: 1.5em;
        padding-right: 1.5em;
        width: 212px;
    }

    .elementor-sticky--effects .menu-item.menu-logo a {
        top: -40px;
    }

    .elementor-sticky--effects .hide-effect {
        max-height: 0;
        opacity: 0;
    }

    .elementor-sticky--effects .menu {
        padding-top: 0;
        height: 80px;
    }

    .elementor-sticky--effects:before {
        bottom: -10px !important;
    }
}

.burger-menu {
    display: none;
}

.mobile-nav-overlay {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 0;
    background-color: var(--e-global-color-text);
    -webkit-transition: opacity .5s, height .5s;
    -o-transition: opacity .5s, height .5s;
    transition: opacity .5s, height .5s;
}

.mobile-menu-active {
    overflow: hidden;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .elementor-sticky--effects .menu-item.menu-logo {
        max-height: 0;
        opacity: 0;
        padding-left: 0;
        padding-right: 0;
        width: 0;
    }
}

@media screen and (max-width: 767px) {
    .menu {
        position: absolute;
        padding-top: 0;
        z-index: 2;
    }

    .menu-item:not(.menu-logo) {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        width: 100%;
        -webkit-transition: max-height .5s, opacity .5s, padding-top .5s, padding-bottom .5s;
        -o-transition: max-height .5s, opacity .5s, padding-top .5s, padding-bottom .5s;
        transition: max-height .5s, opacity .5s, padding-top .5s, padding-bottom .5s;
    }

    .menu-item:not(.menu-logo) a {
        width: 100%;
        margin: auto;
    }

    .menu-item.menu-logo a {
        left: calc(50vw - 75px);
        position: relative;
        top: 0;
        width: 150px;
        height: 58px;
    }

    .hide-effect,
    .service-menu {
        position: fixed !important;
        bottom: 0;
        z-index: 9;
        left: 0;
        opacity: 0 !important;
        pointer-events: none;
        -webkit-transition: opacity .5s;
        -o-transition: opacity .5s;
        transition: opacity .5s;
    }

    .service-menu {
        bottom: 8vh;
        padding: 2em;
    }

    .mobile-menu-active .hide-effect,
    .mobile-menu-active .service-menu {
        opacity: 1 !important;
        pointer-events: initial;
    }

    .burger-menu {
        display: flex;
        justify-content: flex-end;
        padding: 17px;
    }

    .menu-item.menu-logo {
        -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
        order: -1;
        -webkit-transition: unset;
        -o-transition: unset;
        transition: unset;
        width: 100%;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .menu {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .mobile-menu-active .mobile-nav-overlay {
        opacity: 1;
        pointer-events: initial;
        height: 100vh;
    }

    .mobile-menu-active .menu-item {
        max-height: 80px;
        width: 100%;
        padding-top: .5em;
        padding-bottom: 1em;
        opacity: 1;
    }

    .menu-item:first-child {
        margin-top: 2em;
    }

    .hide-effect p {
        padding-left: 2em;
        padding-right: 2em;
    }
}

/* BURGER */

.burger-menu label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
    z-index: 99;
    position: relative;
}

.burger-menu label span {
    background: #fff;
    border-radius: 10px;
    height: 2px;
    margin: 3px 0;
    -webkit-transition: .4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    -o-transition: .4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transition: .4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    width: 100%;
}

.burger-menu input[type="checkbox"] {
    display: none;
}

.burger-menu input[type="checkbox"]:checked~span:nth-of-type(1) {
    -webkit-transform-origin: bottom;
    -ms-transform-origin: bottom;
    transform-origin: bottom;
    -webkit-transform: rotatez(45deg) translate(5px, 8px);
    -ms-transform: rotate(45deg) translate(5px, 8px);
    transform: rotatez(45deg) translate(5px, 8px);
    width: 100%;
}

.burger-menu input[type="checkbox"]:checked~span:nth-of-type(2) {
    -webkit-transform-origin: top;
    -ms-transform-origin: top;
    transform-origin: top;
    width: 50%;
    -webkit-transform: rotatez(-45deg) translate(-5px, 5px);
    -ms-transform: rotate(-45deg) translate(-5px, 5px);
    transform: rotatez(-45deg) translate(-5px, 5px);
}

.burger-menu input[type="checkbox"]:checked~span:nth-of-type(3) {
    -webkit-transform-origin: bottom;
    -ms-transform-origin: bottom;
    transform-origin: bottom;
    width: 50%;
    -webkit-transform: translate(12px, -12px) rotatez(-45deg);
    -ms-transform: translate(12px, -12px) rotate(-45deg);
    transform: translate(12px, -12px) rotatez(-45deg);
}

/* BUTTONS */

.buttons-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.buttons .elementor-button-wrapper {
    display: inline-block;
    margin-bottom: 10px;
    margin-left: 20px;
}

.buttons .elementor-button-wrapper:first-child {
    margin-left: 0;
}

.elementor-button span {
    margin-bottom: -1px;
}

.site-main .elementor-widget-container .elementor-button-link,
.site-main .elementor-widget-container .elementor-button {
    transition: background-size .3s ease, color .3s ease;
    background-image: linear-gradient(#fff, #fff) !important;
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0 0 !important;
}

.site-main .elementor-widget-container .elementor-button-link:hover,
.site-main .elementor-widget-container .elementor-button:hover {
    background-size: 100% 100% !important;
    color: #000 !important;
}

footer {
    font-size: 16px;
}

.elementor-widget-text-editor ul {
    margin-bottom: 1.2em;
    margin-top: 1.2em;
    padding-left: 0;
}

.elementor-widget-text-editor li {
    list-style: none;
    padding-left: 40px;
    margin-bottom: 1em;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#fff));
    background-image: -o-linear-gradient(#fff, #fff);
    background-image: linear-gradient(#fff, #fff);
    background-position: 0% 13px;
    background-repeat: no-repeat;
    background-size: 30px 2px;
}

.service-menu {
    font-size: 10px;
    font-family: 'Gotham Bold';
    text-transform: uppercase;
    opacity: 1;
}

.service-menu a {
    margin-left: 1em;
}

/* ELEMENTOR FIX */
body table tbody>tr:nth-child(2n+1)>td,
body table tbody>tr:nth-child(2n+1)>th,
body table tbody tr:hover>td,
body table tbody tr:hover>th {
    background: initial;
}

body {
    background-image: url('/wp-content/uploads/hanswagner_hg-1-scaled.jpg');
    background-size: 100%;
    background-position: center;
}

/* HEADER TRANSITION SLIDER PFUSCH */
.header-slider-pfusch-container {
    position: relative;
}

.header-slider-pfusch {
    position: absolute !important;
    z-index: 5;
    top: 75%;
    width: 100%;
}

@media screen and (max-width: 767px) {
    .header-slider-pfusch {
        top: 95%;
    }
}

/* HEADER ACCORDION */
.header-accordion {
    height: 50vh;
    width: 100vw;
    display: flex;
    flex-direction: row-reverse;
}

.header-accordion--item {
    height: 100%;
    opacity: 0.4;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: var(--header-accordion-width);
}

.header-accordion--item:hover,
.header-accordion--item:last-child {
    width: 50%;
    opacity: 1;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.header-accordion--item:hover~.header-accordion--item:last-child {
    opacity: 0.4;
    width: var(--header-accordion-width);
}

.header-accordion--item::before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, .4);
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.header-accordion--item:first-of-type {
    background-position: center right;
}


.dialog-lightbox-widget-content .elementor-slideshow__footer {
    display: none;
}