@media only screen and (min-width: 541px) {
    .logo {
        top: 25px;
        left: 5vw;
    }
    .navHandle {
        top: 35px;
        right: 5vw;
    }
    .infoWrapper {
        display: flex;
    }
    .mainContainer {
        padding: 8rem 6rem 14rem;
    }

    .head > .neos-contentcollection {
        flex-direction: column;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 1rem;
        margin: 0 5vw;
    }

    .head > .neos-contentcollection > .neos-nodetypes-text,
    .head > .neos-contentcollection > .neos-nodetypes-headline {
        display: flex;
        flex-basis: 50%;
        padding-bottom: 3vh;
        margin: 0;
    }

    .head > .neos-contentcollection > .neos-nodetypes-text *,
    .head > .neos-contentcollection > .neos-nodetypes-headline * {
        align-self: flex-end;
    }

    .contentPage .head > .neos-contentcollection > .neos-nodetypes-text *,
    .contentPage .head > .neos-contentcollection > .neos-nodetypes-headline * {
        align-self: center;
    }

    .teaserCollection {
        display: flex;
        flex-basis: 50%;
        height: auto;
        flex-direction: column;
        width: 100%;
    }
    .teaserGrid {
        align-items: stretch;
        flex-direction: row;
        flex-flow: row wrap;
        flex-grow: 1;
        flex-basis: 100%;
    }

    .teaser {
        border-left: none;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        transition: none;
        padding: 2vh 5vw;
        align-items: flex-end;
    }

    .teaser:nth-child(2n) {
        border-right: none;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }

    .teaser:last-child {
        border-right: none;
        border-bottom: none;
    }
    .teaser:nth-last-child(2):nth-child(odd) {
        border-bottom: none;
    }

    .teaser.noLinkTeaser {
        display: flex;
    }

    .videoElement iframe {
        min-height: 400px;
    }

    .subNavi {
        width: 100%;
        right: 0;
        padding: 2rem 6rem;
    }

    .subNavi.active {
        padding: 2rem 6rem 4rem;
    }

    /* .subNavi .navRenderer .navIndicator {
        bottom: 3.5vh;
        left: 6rem;
        width: 75vw;
    } */


    .socialTeaser {
        flex-basis: 100%;
        padding-bottom: 2rem;

        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .socialTeaser .socialIcons a {
        margin: .5rem;
    }

    .socialTeaser .socialIcons a:hover {
        text-decoration: none;
    }
}

@media only screen and (min-width: 961px) {
    .logo {
        position: fixed;
        left: 7vw;
        top: 50px;
    }

    .logo:hover {
        border-bottom: none;
    }

    .withHeaderBg .logoStretcher {
        background: rgb(231,231,235);
        background: linear-gradient(180deg, rgba(231,231,235,1) 0%, rgba(231,231,235,1) 75%, rgba(231,231,235,0) 100%);
        width: 70%;
        height: 165px;
        transition: all .2s;
    }

    /* .withHeaderBg.active .logoStretcher {
        background: transparent;
    } */

    .navHandle {
        top: 60px;
        right: 0;
        width: 7%;
        text-align: center;
        position: fixed;
    }
    .siteName {
        width: 7%;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        text-align: left;
        display: none;
    }

    .siteName span {
        transform: rotate(-90deg) translateX(-50vh) translateY(.5rem);
        color: rgba(43, 43, 43, 1);
        letter-spacing: 5px;
        text-transform: uppercase;
        font-size: 12px;
        display: block;
        white-space: nowrap;
        transform-origin:bottom
    }

    .servicePage .siteName span {
        color:  #fff;
    }

    .dingens {
        background-color: transparent;
        z-index: 90;
    }

    .head {
        overflow: auto;
        overflow-y: auto;
        top: 100px;
    }

    .content .head {
        height: auto;
        min-height: 80vh;
        display: flex;
    }


    .head > .neos-contentcollection {
        /* flex-direction: row; */
        padding: 0 7vw;
        /* justify-content: left; */
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 1rem;
        margin: 0;
    }
    .head.row > .neos-contentcollection {
        flex-direction: row;
    }
    .head.column > .neos-contentcollection {
        flex-direction: column;
        align-items: normal;
    }
    .head > .neos-contentcollection > .neos-nodetypes-text,
    .head > .neos-contentcollection > .neos-nodetypes-headline,
    .head > .neos-contentcollection > .contentCollection {
        /* display: flex;
        flex-basis: 50%; */
        margin: 0;
    }

    .head.column > .neos-contentcollection > .neos-nodetypes-text,
    .head.column > .neos-contentcollection > .neos-nodetypes-headline,
    .head.column > .neos-contentcollection > .contentCollection {
        align-self: start;
    }

    .contentGrid {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .teaserCollection {
        flex-basis: 50%;
    }
    .teaserGrid {
        flex-direction: row;
        flex-flow: row wrap;
    }
    .teaser {
        padding: 0 2.4vw 2.4vw;
        align-items: flex-end;
    }

    .teaser > * {
        transition: all .3s;
    }

    .teaser:hover > * {
        transform: translateY(-15px);
    }

    .teaser:hover {
        border-bottom: 1px solid rgba(255, 255, 255, 1);
        border-left: 1px solid rgba(255, 255, 255, 1);
        border-right: 1px solid rgba(255, 255, 255, 1);
        border-top: 1px solid rgba(255, 255, 255, 1);
    }

    .teaser:nth-child(2):hover {
        border-bottom: 1px solid rgba(255, 255, 255, 1);
        border-left: 1px solid rgba(255, 255, 255, 1);
        border-right: 1px solid rgba(255, 255, 255, 1);
    }

    .teaser:first-child:hover {
        border-right: 1px solid rgba(255, 255, 255, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 1);
        border-left: 1px solid rgba(255, 255, 255, 1);
    }

    .teaser:last-child:hover {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 1);
        border-top: 1px solid rgba(255, 255, 255, 1);
        border-left: 1px solid rgba(255, 255, 255, 1);
    }
    .teaser:nth-last-child(2):nth-child(odd):hover {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 1);
        border-top: 1px solid rgba(255, 255, 255, 1);
        border-left: 1px solid rgba(255, 255, 255, 1);
    }

    .teaser.noLinkTeaser:hover > * {
        transform: translateY(0) !important;
    }

    .contentPage .mainContainer {
        padding-left: 7vw;
        min-height: 100vh;
        height: 100%;
    }

    .contentPage .mainContainer p {
        hyphens: auto;
    }

    .contentPage .mainContainer .neos-contentcollection {
        padding-top: 130px;
        width: 70%;
        padding-right: 7vw;
        color: rgba(43, 43, 43, 1);
    }

    .contentPage .mainContainer .sliderWrapper .swiper-container .neos-contentcollection {
        padding-top: 0;
        width: 100%;
        padding-right: 0;
    }

    .videoElement iframe {
        min-height: 400px;
    }

    .mainContainer {
        padding: 2rem 3rem;
    }

    /* Sub Navi */

    .subNavi {
        position: fixed;
        top: 0;
        right: 7vw;
        width: 23%;
        border-right: 1px solid rgba(255, 255, 255, 0.35);
        border-left: 1px solid rgba(255, 255, 255, 0.35);
        height: 100vh;
        z-index: 2;
        padding: 0;
        transform: translate(0px, 0px);
    }

    .subNavi.service {
        background-color: transparent;
    }

    .subNavi.service ul {
        background-color: transparent;
    }

    .contentPage .subNavi {
        background-color: rgba(255, 255, 255, 1.0);
        border: none;
    }

    .subNavi .subHeader {
        border: none;
        /* padding: 9vw 2vw 2vw; */
        font-weight: bold;
        font-size: 10px;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.35);
        border-bottom: 1px solid rgba(255, 255, 255, 0.35);
        justify-content: flex-end;
        display: flex;
        flex-direction: column;
        height: 15%;
    }

    .subNavi .subHeader p {
        position: absolute;
        left: 2vw;
        bottom: 2vh;
    }

    .subNavi .subHeader i {
        display: none;
    }

    .contentPage .subNavi .subHeader {
        color: rgba(19, 41, 75, 0.5);
        border-color: rgba(19, 41, 75, 0.1);
    }

    .subNavi .subHeader p {
        margin: 0;
    }

    .subNavi .navRenderer {
        display: grid;
        align-items: stretch;
        grid-auto-flow: row;
        top: unset;
        height: 83%;
        overflow-y: scroll;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
        position: relative;
        border: none;
        grid-template-rows: none;
    }

    .subNavi .navRenderer .navIndicator {
        position: fixed;
        bottom: 0;
        width: 100%;
        height: 2%;
        left: 0;
        border: none;
        background-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        border-top: 1px solid rgba(255, 255, 255, 0.35);
    }

    .contentPage .subNavi .navRenderer .navIndicator {
        background-color: rgba(255, 255, 255, .1);
        color: rgba(19, 41, 75, 1);
        border-top: 1px solid rgba(19, 41, 75, 0.1);
    }

    .subNavi .navRenderer::-webkit-scrollbar {
        display: none;
    }

    .subNavi ul {
        border: none;
        padding: 0;
        margin: 0;
        list-style: none;
        display: block;
    }

    .subNavi ul li {
        display: grid;
        border-top: 1px solid transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.35);
        border-left: 1px solid transparent;
        border-right: 1px solid transparent;
        color: white;
        justify-self: stretch;
        align-self: stretch;
        align-items: center;
        text-transform: uppercase;
        word-wrap: break-word;
        position: relative;
        background-color: transparent;
    }

    .contentPage .subNavi ul li {
        color: #5f6d84;
        border-bottom: 1px solid rgba(19, 41, 75, 0.1);
    }

    .subNavi ul li:last-child {
        /* border-bottom: none; */
    }

    .subNavi ul li a {
        box-sizing: border-box;
        padding: 1.5rem 2vw;
        width: 100%;
        height: 100%;
        border-bottom: none;
        font-size: 12px;
        font-weight: 300;
        transition: all 0.25s ease-in-out;
        letter-spacing: 2px;
        display: flex;
        align-items: center;
    }

    .subNavi ul li a::before {
        width: 0;
        display: block;
        background-color: #e5e7eb;
        height: 1px;
        content: '';
        margin: 0 0 5px;
        z-index: 4 !important;
        position: absolute;
        top: 50%;
        left: 2vw;
        transition: all 0.25s ease-in-out;
    }

    .contentPage .subNavi ul li a::before {
        background-color: rgba(43, 43, 43, 1);
    }

    .subNavi ul li a:hover span,
    .subNavi ul li.active a span {
        text-decoration: none;
        border-bottom: none;
        transform: translateX(2vw);
    }
    .subNavi ul li a:hover::before,
    .subNavi ul li.active a::before {
        width: 1vw;
        transition: 0.25s ease-in-out;
    }

    .subNavi ul li a span {
        transition: 0.25s ease-in-out;
    }

    .subNavi ul li.active {
        background-color: #dedfe4;
        border: 1px solid #dedfe4;
    }
    .subNavi ul li.active a {
        pointer-events: none;
    }
    .servicePage .subNavi ul li.active {
        background-color: rgba(43, 43, 43, 0.6);
    }
    .servicePage .subNavi ul li.active a {
        background-color: transparent;
    }

    .socialTeaser {
        /* flex-basis: 50%; */
        height: calc(100vh - 90px);
        min-height: calc(100vh - 90px);
        padding-bottom: 2rem;

        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .socialTeaser .socialIcons a {
        margin: .5rem;
    }

    .socialTeaser .socialIcons a:hover {
        text-decoration: none;
    }

    .sliderWrapper .swiper-button-prev,
    .sliderWrapper .swiper-button-next {
        display: block;
    }

    .social {
        z-index: 3;
        width: 7vw;
        bottom: 0;
        right: 0;
        flex-direction: column;
    }

    .social.grey {
        color: rgba(43, 43, 43, 1);
        fill: rgba(43, 43, 43, 1);
    }
}


@media only screen and (min-width: 1400px) {
    .videoElement iframe {
        min-height: 609px;
    }
}
