/* 
 * General styles
 */
@media screen and (max-width: 767px) {
    body h2 {
        font-size: 1.8rem;
        line-height: 1.25;
    }
}

@media screen and (min-width: 1000px) {
    .hide-desktop {
        /* display: none; */
        height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 999px) {
    body .hide-mobile {
        /* display: none; */
        height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 !important;
        margin: 0 !important;
    }
}


/* 
 * just temporary style to test icon as cards 
 */ 
 /* FIRST Version 
.mobile-alt-icons .nw-custom-icon-with-text {
    position: relative;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-alt-icons .nw-custom-icon-with-text .custom-icon-wrapper {
    margin-bottom: 0;
    display: flex;
    justify-content: start;
    aspect-ratio: 1 / 1;
    z-index: 0;
    max-width: 100% !important;
    width: 100%;
}

.mobile-alt-icons .nw-custom-icon-with-text .custom-icon-wrapper svg {
    aspect-ratio: unset;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
}

.mobile-alt-icons .nw-custom-icon-with-text .content {
    z-index: 9;
    padding: 0rem 1rem 0 1rem;
    text-align: center;
}

.mobile-alt-icons .nw-custom-icon-with-text h3 {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    line-height: 1.5;
}

.mobile-alt-icons .nw-custom-icon-with-text p {
    font-weight: 300;
    padding-top: 0;
    margin-top: 0;
    line-height: 1.75;
}
*/


/* SECOND Version */ 
/*
@media screen and (max-width: 767px) {
    .mobile-alt-icons .nw-custom-icon-with-text {
        border-left: solid 3px #008eea;
        background: #fdfdfd;
        position: relative;
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
    }

    .mobile-alt-icons .nw-custom-icon-with-text .custom-icon-wrapper {
        margin-bottom: 0;
        display: flex;
        justify-content: start;
        aspect-ratio: 1 / 1;
        z-index: 0;
        max-width: 100% !important;
        width: 100%;
    }

    .mobile-alt-icons .nw-custom-icon-with-text .custom-icon-wrapper svg {
        aspect-ratio: unset;
        width: 100%;
        padding: 1rem;
    }

    .mobile-alt-icons .nw-custom-icon-with-text .content {
        z-index: 9;
        padding: 0rem 1rem 0 1rem;
    }

    .mobile-alt-icons .nw-custom-icon-with-text h3 {
        margin-top: 0;
        margin-bottom: 0;
        padding-bottom: 0.5rem;
        line-height: 1.5;
    }

    .mobile-alt-icons .nw-custom-icon-with-text p {
        font-weight: 300;
        padding-top: 0;
        margin-top: 0;
        line-height: 1.75;
    }
}
*/

@media screen and (max-width: 767px) {
    .mobile-alt-icons .nw-custom-icon-with-text {
        /* border: solid 3px #f4f4f4; */
        /* border-left: solid 3px #008eea; */
        /* border-bottom: solid 3px #008eea; */
        /* border-top: solid 3px #f4f4f4; */
        /* border-right: solid 3px #f4f4f4; */
        /* border: solid 3px #008eea; */
        background: #fdfdfd;
        /* border-top: solid 3px #008eea; */
        /* padding: 1rem 1rem 0rem calc(1rem - 3px); */
        position: relative;
        /* background: #f4f4f4; */
        /* box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 0px 4px 24px rgba(0, 0, 0, 0.05); */
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
        /* border-radius: 0px 1rem; */
    }

    .mobile-alt-icons .nw-custom-icon-with-text .custom-icon-wrapper {
        margin-bottom: 0;
        display: flex;
        /* align-items: start; */
        justify-content: start;
        aspect-ratio: 1 / 1;
        /* position: absolute; */
        z-index: 0;
        /* opacity: 0.66; */
        /* right: 1rem; */
        /* filter: brightness(5); */
        max-width: 100% !important;
        /* max-height: 100% !important; */
        width: 100%;
        background: #008cea;
        padding: 1rem 0 1rem 1rem;
        justify-content: space-between !important;
    }

    .mobile-alt-icons .nw-custom-icon-with-text h3 {
        margin-top: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        line-height: 1.5;
        color: #fff;
    }

    .mobile-alt-icons .nw-custom-icon-with-text .custom-icon-wrapper svg {
        aspect-ratio: unset;
        /* max-width: 44px; */
        /* max-height: unset !important; */
        width: 100%;
        /* max-width: 100%; */
        /* filter: brightness(0.0); */
        padding: 1rem;
    }

    .mobile-alt-icons .nw-custom-icon-with-text .custom-icon-wrapper svg path {
        fill: #008dea !important;
        fill: #ffffff !important;
    }


    .mobile-alt-icons .nw-custom-icon-with-text .content {
        /* width: 64%; */
        z-index: 9;
        padding: 1rem 1rem 0 1rem;
        /* text-align: center; */
    }
    .mobile-alt-icons .nw-custom-icon-with-text p {
        font-weight: 300;
        padding-top: 0;
        margin-top: 0;
        line-height: 1.75;
    }
}





/** Icon with text element */ 
.nw-icon-with-text {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.nw-icon-with-text span.vc_icon_element-icon:before {
    background: #008dea;
    color: #fff;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 999px;
    display: block;
    width: 40px;
    height: 40px;
    text-align: center;
}

.nw-icon-with-text h3 {
    padding-top: 0;
    margin: 0;
    line-height: 40px;
}

.nw-icon-with-text p {
    font-size: 1rem;
    line-height: 1.8;
    text-wrap: pretty;
    margin-top: 0.5rem;
}



/* Service Grid */ 
.service-grid-content {
    max-width: 1500px !important;
    width: 100% !important;
    margin: auto;
    padding: 0 30px;
}

.service-grid-bg {
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 80%;
    max-height: 125vh;
    position: absolute;
    z-index: -1;
}
.service-grid-bg:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, black, rgba(0,0,0,0.33));
}

.service-grid-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 0 6rem 0;
    color: #fff;
}
.service-grid-intro h2 {
    font-size: 3rem;
    line-height: 3.6rem;
    text-wrap: balance;
    margin: 1rem 0;
}
.service-grid-intro a {
    background: #008cea;
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: #fff !important;
    transition: all 0.3s ease-in-out;
}
.service-grid-intro a:hover {
    background: #0181d7;
}
.service-grid-intro p {
    max-width: 1000px;
    margin-bottom: 2.5em;
}

.service-grid .tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.tiles p {
    line-height: 1.8;
    font-weight: 300;
}

.service-grid .one-tile {
    width: 100%;
}

.service-grid .two-tiles {
    width: calc(50% - 2rem);
}

.service-grid .three-tiles {
    width: calc(33.333% - (4rem / 3));
}

.service-grid .four-tiles {
    width: calc(25% - (6rem / 4));
}

.service-grid .multi-tiles {
    width: 25%; /* oder eine andere Berechnung für mehr als 4 Tiles */
}


.service-grid .tile {
    box-sizing: border-box;
    background: #fff;
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;

    box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
    border-bottom: 6px solid #008cea;
}

.service-grid .tile img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 1300px) {
    .service-grid .tile {
        width: calc(50% - 1rem) !important;
    }
}
@media screen and (max-width: 768px) {
    .service-grid-bg {
        max-height: 112vh;
    }
    .service-grid .tile {
        width: 100% !important;
    }

    .service-grid-intro h2 {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    .service-grid-intro h3.tagline {
        margin: 0;
    }
}



/* Overwrite vc styles */ 
.vc_btn3-style-flat {
    background: #008cea !important;
    font-size: 1rem !important;
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: #fff !important;
    transition: all 0.3s ease-in-out;
}
.vc_btn3-style-flat:hover {
    background: #0181d7 !important;
}

/* Overwrite theme styles */ 
body {
    overflow-x: hidden;
}

.iw-header .iw-header_main-navigation #primary-menu > li > a {
    letter-spacing: 0.05em !important;
}

/* Menu styles */ 
@media screen and (max-width: 1300px) {
     .iw-header .iw-header_main-navigation {
        position: absolute;
        display: flex;
        right: -100%;
        top: 0;
        z-index: 2;
        padding: 0px;
        /* min-width: 300px; */
        /* height: 100vh; */
        padding-top: 90px;
        pointer-events: none;
        opacity: 0;
        transition: right 0.5s ease-in-out, opacity 0.5s ease-in-out;
    }
}
@media (max-width: 1300px) {
    .menu-toggle.iw-header_mobilemenu-trigger {
        display: block;
    }
}
   
/* Custom Icon with Text */
.nw-custom-icon-with-text .custom-icon-wrapper svg {
    aspect-ratio: 1 / 1;
    max-width: 96px;
    width: 100%;
}

.nw-custom-icon-with-text {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    text-wrap: balance;
}
.nw-custom-icon-with-text.text-center {
    align-items: center;
    text-align: center;
}
.nw-custom-icon-with-text .custom-icon-wrapper {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    aspect-ratio: 1 / 1;
    
}
.nw-custom-icon-with-text h3 {
    margin-top: 0;
    margin-bottom: 0;
}
.nw-custom-icon-with-text .content {
    width: 100%;
}
.nw-custom-icon-with-text p {
    font-weight: 300;
    padding-top: 0;
    margin-top: 0;
}
.custom-icon-wrapper svg path {
    /* fill: #008dea !important; */
    fill: #333333 !important;
}
.nw-custom-icon-with-text .custom-icon-wrapper svg path {
    fill: #008dea !important;
    /* fill: #333333 !important; */
}



.nw-custom-icon-with-text h3.icon-headline {
    display: none;
}
@media screen and (max-width: 767px) {
    .mobile-alt-icons .nw-custom-icon-with-text .content h3 {
        display: none;
    }
    .mobile-alt-icons .nw-custom-icon-with-text h3.icon-headline {
        display: block;
    }
}
/* @media screen and (min-width: 768px) {
    .mobile-alt-icons .custom-icon-wrapper h3.icon-headline {
        display: none;
    }
} */


.icon-next-to-text .nw-custom-icon-with-text {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    text-wrap: balance;
    gap: 2rem;
}
