@font-face {
    font-family: "HelveticaNeueW01-Thin";
    src: url(../fonts/56be84de-9d60-4089-8df0-0ea6ec786b84.eot?#iefix);
    src: url(../fonts/56be84de-9d60-4089-8df0-0ea6ec786b84.eot?#iefix) format("eot"),url(../fonts/50d35bbc-dfd4-48f1-af16-cf058f69421d.woff) format("woff"),url(../fonts/278bef59-6be1-4800-b5ac-1f769ab47430.ttf) format("truetype"),url(../fonts/2e309b1b-08b8-477f-bc9e-7067cf0af0b3.svg#2e309b1b-08b8-477f-bc9e-7067cf0af0b3) format("svg")
}

@font-face {
    font-family: "HelveticaNeueW01-45Ligh";
    src: url(../fonts/ae1656aa-5f8f-4905-aed0-93e667bd6e4a.eot?#iefix);
    src: url(../fonts/ae1656aa-5f8f-4905-aed0-93e667bd6e4a.eot?#iefix) format("eot"),url(../fonts/530dee22-e3c1-4e9f-bf62-c31d510d9656.woff) format("woff"),url(../fonts/688ab72b-4deb-4e15-a088-89166978d469.ttf) format("truetype"),url(../fonts/7816f72f-f47e-4715-8cd7-960e3723846a.svg#7816f72f-f47e-4715-8cd7-960e3723846a) format("svg")
}

@font-face {
    font-family: "HelveticaNeueW02-65Medi";
    src: url(../fonts/55f60419-09c3-42bd-b81f-1983ff093852.eot?#iefix);
    src: url(../fonts/55f60419-09c3-42bd-b81f-1983ff093852.eot?#iefix) format("eot"),url(../fonts/5b4a262e-3342-44e2-8ad7-719998a68134.woff) format("woff"),url(../fonts/4a3ef5d8-cfd9-4b96-bd67-90215512f1e5.ttf) format("truetype"),url(../fonts/58ab5075-53ea-46e6-9783-cbb335665f88.svg#58ab5075-53ea-46e6-9783-cbb335665f88) format("svg")
}

@font-face {
    font-family: "EurostileLTW01-BoldEx2";
    src: url(../fonts/c1982565-45b6-44fa-84d5-bcdb29d746ea.eot?#iefix);
    src: url(../fonts/c1982565-45b6-44fa-84d5-bcdb29d746ea.eot?#iefix) format("eot"),url(../fonts/8ede3053-a8ab-4a0e-9530-6d4a6fe7c728.woff) format("woff"),url(../fonts/4f726320-7cfe-45f1-80a2-a0537d13b041.ttf) format("truetype"),url(../fonts/db8323ee-a212-4238-b0b2-978d47160852.svg#db8323ee-a212-4238-b0b2-978d47160852) format("svg")
}

@font-face {
    font-family: "EurostileLTW01-Ex2";
    src: url(../fonts/aaefe22a-b1b6-47a7-9695-0211ccdb32bd.eot?#iefix);
    src: url(../fonts/aaefe22a-b1b6-47a7-9695-0211ccdb32bd.eot?#iefix) format("eot"),url(../fonts/4c4362d1-7674-4e53-a249-7b1a25b4e9e9.woff) format("woff"),url(../fonts/2fb749ff-5f5a-43e3-b7c3-3e11d08fb4fc.ttf) format("truetype"),url(../fonts/09063c9b-bf25-4156-bace-c2dfdb87a87b.svg#09063c9b-bf25-4156-bace-c2dfdb87a87b) format("svg")
}

body,html{
    margin:0;
    padding:0;
}
body{
    scroll-timeline-name: --body;
}
*{
    box-sizing:border-box;
}
#page{
    width:100%;
    height:100vh;
    display:flex;
    flex-direction:column;
}
header{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 50px 0 24px;
    height: 80px;
    box-sizing:border-box;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(9px);
    position:fixed;
    top:0;
    left:0;
    z-index: 100;
}
header a{
    color:#fff;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links{
    display:flex;
    align-items:center;
}
.links{
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    font-family: 'EurostileLTW01-Ex2', sans-serif;
    display:flex;
    align-items:center;
    gap:50px;
}
.hamburger{
    width:20px;
    height:20px;
    position:relative;
    cursor:pointer;
    display:none;
}

.language-switcher{
    list-style:none;
    display:flex;
    gap:10px;
    margin:0;
    padding:0;
    color:#fff;
    cursor:pointer;
    font-size: 10px;
    font-style: normal;
}
.language-switcher .active{
    color:#AFCA05;
}

#logo img{
    height:clamp(30px, 4vw, 44px);
}

.content{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
}

.titles,.titles-mobile{
    display:flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}
.titles-mobile{
    display:none;
}
.titles div,.titles-mobile div{
    text-align: center;
    font-family: "EurostileLTW01-BoldEx2", sans-serif;
    font-size: clamp(32px, calc(6vw - 30px), 50px);
    font-style: normal;
    font-weight: 900;
    line-height: 50px;
    opacity:0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    color:#3772D0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: auto;
    padding: 0 50px;
}
.titles-mobile div{
    font-size:32px;
}
.titles div.active,.titles-mobile div.active{
    opacity:1;
}
.titles div:before,.titles-mobile div:before{
    content:"";
    background-color:#fff;
    transform: skew(-28deg);
    -o-transform: skew(-28deg);
    -moz-transform: skew(-28deg);
    -webkit-transform: skew(-28deg);
    z-index: -1;
    display: block;
    width: 100%;
    height: 90px;
    position: absolute;
}
.titles-mobile div:before{
    height:44px;
}
#backgrounds{
    position: fixed;
    width: 100%;
    height: 100lvh;
    bottom: 0;
    left: 0;
}
#backgrounds > div{
    width: 100%;
    height: 100lvh;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity:0;
    transform: scale(1.0);
    transition: all 0.3s ease-in-out;
    inset: 0;
    overflow: hidden;
}
#backgrounds > div.active{
    opacity:1;
    transform: scale(1.1);
}
#backgrounds > div img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}
/*
#all{
    background-image: url(../img/marquard-mitarbeiter-stage-visual.webp);
    background-position: bottom center;
    background-size: cover;
}
#engineering{
    background-image: url(../img/marquard-engineering-visual-s2.webp);
    background-position: center;
    background-size: cover;
    opacity:0;
    transition: opacity 1s ease-in-out;
}
#kraftwerkservice{
    background-image: url(../img/marquard-prisma-visual.webp);
    background-position: center;
    background-size: cover;
    opacity:0;
    transition: opacity 1s ease-in-out;
}
#tga{
    background-image: url(../img/marquard-tga-visual-sanitaersysteme.webp);
    background-position: center;
    background-size: cover;
    opacity:0;
    transition: opacity 1s ease-in-out;
}*/

.selections{
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 1560px;
    margin: 20px auto 50px auto;
    width: 90%;
}
.selections .box{
    border-radius: 5px;
    background: #FFF;
    width: 33.333333%;
}

.selections:hover .box:not(:hover){
    opacity:0.6;
}

a.box{
    text-decoration: none;
    padding:35px 24px 60px 24px;
    transition: all 0.3s ease;
}
a.box:hover{
    transform:scale(1.03);
}

.box .box-header{
    display: flex;
    align-items: center;
    gap: 16px;
}
.box .box-header img{
    height: clamp(28px, 4vw, 70px);
}
.box .naming{
    color: #3772D0; 
    font-size: clamp(16px, calc(4vw - 26px), 32px);
    font-style: normal;
    font-weight: 400;
    font-family: 'EurostileLTW01-Ex2', sans-serif;
    line-height: clamp(16px, calc(4vw - 22px), 28px);
}
.box .naming .naming-bold{
    font-weight: 900;
    font-family: 'EurostileLTW01-BoldEx2', sans-serif;
}

.box .box-content{
    margin-top:20px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    font-family: 'HelveticaNeueW02-65Medi', sans-serif;
    color: #333;
    display:flex;
    justify-content: space-between;
}
.box .box-btn{
    display: flex;
    width: 50px;
    height: 50px;
    padding: 18px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50%;
    background: #333;
    margin-left: 30px;
}
.selections-mobile{
    display:none;
}
.scrollTitle{
    display:none;
}
footer{
    background-color: #333;
    padding: 15px;
    position: relative;
    z-index: 1;
}
footer .footer-nav{
    display:flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
}
footer .footer-nav a{
    color:#fff;
    text-decoration: none;
    font-size: 14px;
    font-family: 'EurostileLTW01-Ex2', sans-serif;
    text-transform: uppercase;
}
.footer-content{
    display:flex;
    justify-content: space-between;
}

@keyframes flyin1 {
    0% {
        margin-bottom: -100px;
    }
    100% {
        margin-bottom: 0px;
    }
}
@keyframes flyin2 {
    0% {
        margin-bottom: -100px;
        transform: scale(0.95);
        filter:brightness(0.8);
    }
    100% {
        margin-bottom: 0px;
        transform: scale(1);
        filter:brightness(1);
    }
}
@keyframes flyin3 {
    0% {
        transform: scale(0.90);
        filter:brightness(0.6);
    }
    100% {
        transform: scale(1);
        filter:brightness(1);
    }
}
@keyframes flyout {
    0% {
        bottom:200px;
    }
    100% {
        bottom:100vh;
    }
}
@keyframes fadeIn {
    0% {
        opacity:0;
        bottom:230px;
    }
    50% {
        opacity:0;
    }
    100% {
        opacity:1;
        bottom:400px;
    }
}

@media(max-width:980px){
    .hamburger{
        display:block;
    }
    header{
        height: 55px;
        padding-right: 12px;
    }
    .links{
        position:fixed;
        left:0px;
        top:55px;
        width: 100%;
        background: rgba(0, 0, 0, 0.66);
        backdrop-filter: blur(9px);
        padding: 20px;
        flex-direction: column;
        gap:20px;
        display: none;
    }
    .links.active{
        display:flex;
    }

    #page{
        height:150vh;
    }
    .selections{
        display:none;
    }
    .selections .box{
        width: 100%;
    }
    .titles{
        display:none;
    }
    .titles-mobile{
        display:flex;
        position:fixed;
        bottom:200px;
        left: 50%;
        z-index: 0;
        transform: translateX(-50%);
        /* animation: flyout linear forwards;
        animation-timeline:scroll(); */
    }
    .selections-mobile{
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom:30px;
        display:flex;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        max-width: 600px;
        margin: 20px auto 0px auto;
        width: 90%;
    }
    .card{
        border-radius: 5px;
        background: #FFF;
        width: 100%;
        box-sizing: border-box;
        text-decoration: none;
        display: flex;
        overflow: hidden;
    }
    .card-content{
        padding: 18px 10px 10px 12px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .card .card-image{
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0px;
    }
    .card .card-image img{
        max-width: 100px;
        height: 100px;
        object-fit: cover;
    }
    .card .card-header{
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .card .card-header img{
        height: clamp(28px, 4vw, 70px);
    }

    .card .naming{
        color: #3772D0; 
        font-size: clamp(16px, calc(4vw - 26px), 32px);
        font-style: normal;
        font-weight: 400;
        font-family: 'EurostileLTW01-Ex2', sans-serif;
        line-height: clamp(16px, calc(4vw - 22px), 28px);
    }
    .card .naming .naming-bold{
        font-weight: 900;
        font-family: 'EurostileLTW01-BoldEx2', sans-serif;
    }
    .card .box-btn{
        display: flex;
        width: 20px;
        height: 20px;
        padding: 10px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-radius: 50%;
        background: #333;
        margin-left: auto;
        margin-top:4px;
    }
    .card .box-btn img{
        width: 8px;
        height: 8px;
    }

    .card:nth-child(1){
        margin-bottom:-100px;
        z-index: 3;
        /* animation: flyin1 linear forwards;
        animation-timeline:scroll(); */
    }
    .card:nth-child(2){
        margin-bottom:-100px;
        z-index: 2;
        transform: scale(0.95);
        filter: brightness(0.8);
        /* animation: flyin2 linear forwards;
        animation-timeline:scroll(); */
    }
    .card:nth-child(3){
        z-index: 1;
        transform: scale(0.90);
        filter: brightness(0.6);
        /* animation: flyin3 linear forwards;
        animation-timeline:scroll(); */
    }
    .scrollTitle{
        max-width: 600px;
        font-size: 24px;
        font-style: normal;
        font-weight: 400;
        line-height: 22px;
        position:fixed;
        bottom:230px;
        opacity:0;
        color:#fff;
        display:block;
        left: 50%;
        width: 90%;
        font-family: 'eurostileLTW01-Ex2', sans-serif;
        transform: translateX(-50%);
        /* animation: fadeIn linear forwards;
        /* animation-timeline:scroll(); */
    }
    .scrollTitle span{
        font-weight: 900;
        font-family: 'EurostileLTW01-BoldEx2', sans-serif;
    }

    footer{
        padding:5px 15px;
    }
    footer .footer-nav a{
        color:#fff;
        text-decoration: none;
        font-size: 12px;
        font-family: 'EurostileLTW01-Ex2', sans-serif;
        text-transform: uppercase;
    }
}