@import "about.css";
@import "services.css";
@import "contact.css";
@import "impressum.css";
@import "datenschutz.css";
@import "cookies.css"; 

@font-face {
    font-family: JostLight;
    src: url('/assets/fonts/Jost/static/Jost-Light.ttf');
}
@font-face{
    font-family: Roboto;
    src: url('/assets/fonts/Roboto/Roboto-Medium.ttf');
}

*{
    font-family: Roboto;
    box-sizing: border-box;
    color: black;
    margin: 0%;
}
a{
    text-decoration: none;
}
ul{
    list-style-type: none;
}
body{
    margin: 0%;
}

header{
    z-index: 1;
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    background-color: black;
    color: white;
    position: fixed;
    animation: scroll 1s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll)*-1s);
    animation-iteration-count: 1;
    animation-fill-mode: both;
    animation-duration: 0.5s;
}

#headerimg{
    height: 35px;
    padding-top: 1px;
    padding-left: 10px;
    padding-bottom: 3px;
    opacity: 100%;
    animation: titlevanish 1s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll)*-1s);
    animation-iteration-count: 1;
    animation-fill-mode: both;
    animation-duration: 0.5s;
}

@keyframes titlevanish{
    0% {opacity: 100%;}
    100% {opacity: 0%}
}

#headerimg2{
    height: 32px;
    padding-top: 1px;
    padding-left: 10px;
    position: absolute;
    left: 10px;
    opacity: 0%;
    animation: logoopacity 1s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll)*-1s);
    animation-iteration-count: 1;
    animation-fill-mode: both;
    animation-duration: 0.5s;
}

@keyframes logoopacity{
    0% {opacity: 0%;}
    100% {opacity: 100%;}
}

#socials a img{
    height: 30px;
    width: 30px;
}

#logodiv{
    padding: 10px 10px;
    color: inherit;
    width: 25%;
    height: 100%;
}

#headerul{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: unset;
    color: inherit;
}
#headerul li{
    padding: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#headerul li a{
    font-size: 20px;
    color: white;
    transition: 0.5s all;
    transition-timing-function: ease;
}

#socials{
    width: 25%;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}
#socials a{
    padding: 10px 10px;
}

header a{
    color: white;
    animation: textscroll 1s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll)*-1s);
    animation-iteration-count: 1;
    animation-fill-mode: both;
    animation-duration: 0.5s;
}
@keyframes textscroll
{
    0% {color: white;}
    100% {color: black}
}

#headerul li a:hover{
    font-size: 25px;
}

#toggle_button{
    visibility: hidden;
    position: absolute;
}

.toggle_button{
    visibility: hidden;

    width: 30px;
    height: 23px;

    position: absolute;
    top: 15px;
    right: 15px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bar{
    height: 4px;
    width: 100%;
    background: white;
    border-radius: 100px;
    animation: backscroll 1s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll)*-1s);
    animation-iteration-count: 1;
    animation-fill-mode: both;
    animation-duration: 0.5s;
}

@keyframes scroll
{
   0% {background-color: black;}
   100% {background-color: white;}
}

@keyframes backscroll
{
    0% {background-color: white;}
   100% {background-color: black;}
}

.begruessung{
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 800px;
    background-image: url("../img/_DSC1518.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    animation: begruessungskroll 1s;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll)*-1s);
    animation-iteration-count: 1;
    animation-fill-mode: both;
    animation-duration: 0.5s;
}
@keyframes begruessungskroll{
    0% {opacity: 100%;}
    100% {opacity: 0%;}
}
.begruessung h1{
    color: white;
    font-size: 70px;
    mix-blend-mode: difference;
}
.begruessung h2{
    color: white;
    font-size: 40px;
    mix-blend-mode: difference;
}
.anspruch{
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    animation: anspruchscroll 1s;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll)*-1s);
    animation-iteration-count: 1;
    animation-fill-mode: both;
    animation-duration: 0.5s;
}
@keyframes anspruchscroll{
    0% {background-color: white;}
    100% {background-color: black;}
}

.anspruch h2, .anspruch p{
    color: black;
    animation: anspruchskroll 1s;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll)*-1s);
    animation-iteration-count: 1;
    animation-fill-mode: both;
    animation-duration: 0.5s;
    padding: 20px;
}

@keyframes anspruchskroll{
    0% {color: black;}
    100% {color: white;}
}

.anspruch h2{
    font-size: 40px;
}

.anspruch p{
    font-size: 25px;
    text-align: justify;
}

.letztesprojekt{
    margin-top: 30px;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 45px;
}
#ytplayer{
    margin-top: 20px;
    aspect-ratio: 16/9;
    width: 80%;
    height: auto;
}

#ytplayer p{
    text-align: center;
}

footer{
    background: black;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer a{
    color: white;
    padding: 10px 10px;
}

@media screen and (max-width: 790px) {
    .toggle_button{
        visibility: visible;
    }
    header{
        flex-direction: column;
    }

    #logodiv{
        align-self: flex-start;
    }
    #headerul{
        margin-top: 15px;
        padding: 0;
        opacity: 0%;
        flex-direction: column;
        width: 100%;
        background: black;
        animation: scroll 1s linear infinite;
        animation-play-state: paused;
        animation-delay: calc(var(--scroll)*-1s);
        animation-iteration-count: 1;
        animation-fill-mode: both;
        animation-duration: 0.5s;
    }
    #headerul li{
        width: 100%;
        display: flex;
        align-items: center;
    }
    #socials{
        justify-content: flex-end;
        opacity: 0%;
        width: 100%;
        background: black;
        animation: scroll 1s linear infinite;
        animation-play-state: paused;
        animation-delay: calc(var(--scroll)*-1s);
        animation-iteration-count: 1;
        animation-fill-mode: both;
        animation-duration: 0.5s;
    }

    #toggle_button:checked ~ ul{
        opacity: 100%;
    }

    #toggle_button:checked ~ div{
        opacity: 100%;
    }
    #headerimg{
        padding-top: 1px;
        padding-left: 5px;
        position: absolute;
        z-index: 5;
    }
    #headerimg2{
        left: 4.5px;
    }
}
@media screen and (max-width: 940px){
    .begruessung h1{
        font-size: 60px;
        width: 400px;
        text-align: center;
    }
    .begruessung h2{
        font-size: 30px;
        width: 400px;
        text-align: center;
    }

    .anspruch p{
        font-size: 18px;
        text-align: left;
    }
    html,body{
        overflow-x: hidden;
    }

    .anspruch{
        padding: 30px;
    }
}
@media screen and (max-width: 1150px){
    .begruessung h1{
        font-size: 55px;
    }
    .begruessung h2{
        font-size: 30px;
    }
}