/* Liebi Softwareentwickler:inne wos bis hie here hei gschafft:
i cha nid programmiere also don't judge me pls danke*/

@font-face {
    font-family: ABCFavorit;
    src: url('ABCFavorit-Light-Trial.otf') format('opentype');
    font-weight: 300;
}


body {
    background-color: black;
    overflow-x: hidden;
    padding-bottom: 50px;
}

@media (max-width: 1200px) {
    body {
        padding-bottom: 0px;
    }
}

@media (max-width: 1200px) {
    nav {
        margin-top: 20px;
    }
}

.grundtext {
    font-family: 'ABCFavorit';
    font-weight: 300;
    font-size: 50px;
    line-height: 120%;
    margin-top: 50px;
    margin-left: 50%;
    margin-bottom: 50px;
    margin-right: 100px;
    color: aliceblue;
    width: 46%;
    overflow-wrap: break-word;

}

@media (max-width: 1200px) {
    .grundtext {
        font-size: 25px;
        margin-left: 40px;
        padding-right: 65px;
        width: 100vw;
        word-wrap: break-word;
    
    }
}

.grundtext_klein {
    font-size: 30px;
    margin-right: 50px;
    line-height: 120%;

}



@media (max-width: 1200px) {
    .grundtext_klein {
        font-size: 25px;
        padding-right: 60px;
        width: 100vw;
    }
}

.navigation_projekttitel {
    align-items: center;
}

.projekttitel {
    display: inline-block;
    position: relative;
    max-width: 100%;

}

.projekttitel img {
    width: 100vw;
    top: 0;
    height: auto;
    display: block;
    pointer-events: pointer;
}

.projekttitel a {
    position: absolute; /* Position link to cover the entire figure */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none; /* Remove default link styling */
    z-index: 1; /* Ensure the link is above the figcaption */
}
.projekttitel figcaption {
    max-width: 100%;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    transition: opacity 3s ease-in-out;
    font-family: 'ABCFavorit';
    font-weight: 300;
    font-size: 220px;
    line-height: 95%;
    color: white;
    z-index: -1; /* Keep figcaption in the background */
    pointer-events: none; /* Prevent figcaption from receiving pointer events */
}

.projekttitel:hover figcaption {
    opacity: 1;
    pointer-events: auto; /* Allow figcaption to receive pointer events when visible */
}

.projekttitel figcaption:hover {
    opacity: 1; /* Ensure figcaption remains visible when hovered */
}

  

@media (max-width: 1200px) {
    .projekttitel figcaption {
        font-size: 70px;
        opacity: 1;
    }
}



.matedeckel {
    display: block;
    position: fixed;
    top: 50px;
    left: 50px;
    max-width: 100px;
    z-index: 2;
}

@media (max-width: 1200px) {
    .matedeckel {
        padding-top: 30px;
position: relative;
align-items: center;
max-width: 100px;
left: 50%;
transform: translate(-50px, -50px);
    }
}


.matedeckel:hover {
    animation: rotateEndless 5s linear infinite;
    /* Endless rotation */
}

@keyframes rotateEndless {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

footer {
    max-height: 100vw;
    position: fixed;
    top: 0;
    right: 0;
    font-family: 'ABCFavorit';
    font-size: 20px;
    padding-top: 50px;
    padding-bottom: 50px;
    padding-right: 50px;
        z-index: 10;
}

@media (max-width: 1200px) {
    footer {
        position: relative;
        text-align: center;
        font-family: 'ABCFavorit';
        font-size: 18px;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-right: 20px;
        padding-left: 20px;
        border-top: 1px solid white;

    }
}

a {
    text-decoration: none;
    color: white;
    padding-right: 20px;

}

.links a:hover {
    cursor: pointer;
    font-style: italic;
}

a .links:hover {
    cursor: pointer;
    font-style: italic;
}

.projekt_beschrieb {
    padding-bottom: 50px;
    font-family: 'ABCFavorit';
    font-size: 22px;
    line-height: 130%;
    max-width: 600px;
    text-align: left;
    color: white;
    display: block;
}


.projekt img {
    width: 100vw;
    cursor: pointer;

}

.details {
    font-family: 'ABCFavorit';
    font-size: 17px;
    line-height: 130%;
    color: white;
    display: flex;
}

details {
    font-family: 'ABCFavorit';
    font-weight: 400;
    font-size: 22px;
    font-kerning: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-left: 50px;
    margin-right: 50px;
    color: white;
    border-top: 1.5px solid white;
    border-bottom: 1.5px solid white;
    align-items: center;
    flex: 1;
}

@media (max-width: 1200px) {
    details {
        border-bottom: 0px;
        margin-left: 0px;
        margin-right: 0px;
    }
}

details>summary {
    list-style-type: none;
    border: 5px white;
}

details>summary:hover {
    font-style: italic;
    cursor: pointer;
}

details>summary::-webkit-details-marker {
    display: none;
}

details>summary::before {
    content: '→';
}

details[open]>summary::before {
    content: '↓';
}

.prozess {
    display: block;
    max-width: 100%;
}

.prozess img {
    flex: 1;
    max-height: 350px;
    height: auto;

}

.prozess video {
    flex: 1;
    max-height: 350px;
    height: auto;
}

@media (max-width: 1200px) {
    .prozess img {
        max-height: 250px;
    }
}

.verlinkungen:hover {
font-style: italic;
cursor: pointer;
}



iframe {
    width: 100vw;
}

@media (max-width: 1200px) {
    iframe {
        width: 100vw;
        height: 70vw;
    }
}

.gif {
    margin-left: 10%;
   max-width: 83%;
    align-items: center;
    text-align: center;
}