@font-face {
    font-family: favorit;
    src: url(../fonts/ABCFavoritVariableEdu.ttf);
}

html {
    scroll-behavior: smooth;
    cursor: url('/bilder/cursornormal.png') , auto;
}

body {
    background-color: rgb(255, 115, 0);
    margin: 0;
    padding: 0;
    height: 100%; 
    scroll-behavior: smooth;
    cursor: url('/bilder/cursornormal.png') , auto;
}

a {
    cursor: url('/bilder/cursorpointer.png'), auto;
}


.page {
    height: auto;
    width: 100vw;
    display: flex; 
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5%;
}

.oben {
    display: flex;
    flex-direction: column; 
    padding-left: 0;
    margin-left: 0;
    box-sizing: border-box; 
    overflow: hidden;
}

.oben h1 {
    font-size: 3em; 
    margin: 0; 
    overflow-wrap: break-word; 
    font-family: favorit;
    width: 100%;
    margin-top: 20vh;
    text-align: left;
    font-size: 3em;
    font-weight: 400;
    line-height: 1;
    padding-left: 0;
    margin-left: 0;
    text-indent: 0;
}

.oben h1 .überschrift {
    text-decoration: underline;
}

.oben h1 .unterüberschrift {
    text-decoration: none; 
}

.oben h1 .seitenzahl {
    font-style: italic;
}


/* #texte {
    font-family: favorit;
    
    font-weight: 300;
    width: 50%;  
    margin: 0 auto;
    hyphens: auto;
    font-size: calc(0.4rem + 1vw);
} */


#texte {
    font-family: favorit;
    /* font-size: 1.2em; */
    font-weight: 300;
    width: 50%;  
    margin: 0 auto;
    hyphens: auto;
    font-size: clamp(1.2rem, 1vw, 8rem);
}







#texte h1 {
    font-size: calc(2rem + 1vw);
}

#quellen {
    font-family: favorit;
    font-size: 0.8em;
    font-weight: 300;
    width: 50%;  
    margin: 0 auto;
}


#textüberschrift {
    text-align: center;
    font-weight: 400;
    font-family: favorit;
    font-size: calc(2rem + 1vw);
}


.grid {
        display: grid;
        grid-template-columns: 1fr;  
        justify-items: center;
        align-items: center;
        gap: 5vh;
}


#burgerMenu {
    position: fixed;
    top: 5vh;
    left: 5vh;
    z-index: 1000;
    width: 3%;
    cursor: url('/bilder/cursorpointer.png'), auto;
}

.menu-container {
    position: relative; /* Positionierung für die Icons */
    width: 50px; /* Breite des Containers */
    height: 50px; /* Höhe des Containers */
    cursor: pointer; /* Zeigt an, dass es klickbar ist */
}

.menu-icon {
    position: absolute; /* Absolute Positionierung */
    top: 0; /* Oben ausrichten */
    left: 0; /* Links ausrichten */
    transition: opacity 0.3s; /* Sanfter Übergang für die Opazität */
    opacity: 1;
}

#closeMenu {
    position: fixed;
    top: 5vh;
    left: 5vh;
    z-index: 1000;
    width: 3%;
    cursor: url('/bilder/cursorpointer.png'), auto;
}


#navMenu {
    position: fixed;
    top: 10vh;
    left: 5vh;
    display: none;
    height: 110%;
    background-color: rgb(255, 115, 0);
    z-index: 900;
}

#navMenu a {
    display: block;
    margin: 2vh 0;
    
}

#flaeche {
    display: none;
    width: 0;
    height: 0;
}

#links {
    font-family: favorit;
    font-size: 1.2em;
    text-decoration: none;
    color: black;
}

#aktuellerlink {
    font-family: favorit;
    font-size: 1.2em;
    color: rgb(70, 70, 70);
    text-decoration: none;
}

#projektlogo {
    position: fixed;
    right: 5%;
    top: 5%;
    z-index: 999;
    width: 10vw;
}

.slideshow-container {
    width: 50vw; 
    height: 70vh;
    overflow: hidden;
    margin-top: 5vh;
}

.mySlides, .mySlides2 {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}


.mySlides img, .mySlides2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.mySlides.active, .mySlides2.active {
    opacity: 1;
    display: block;
}

.pfeilwrapper {
    width: 50%;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0;
}



.prev, .next {
    cursor: pointer;
    width: auto;
    padding: 1em;
    font-weight: bold;
    font-size: 18px;
    font-size: calc(.6rem + 1vw);
    transition: 0.6s ease;
    user-select: none;
    font-family: favorit;
    margin-top: 0;
    font-weight: 300;
    cursor: url('/bilder/cursorpointer.png'), auto;
}

.prev:hover, .next:hover {
    color: rgb(70, 70, 70);
}



.navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding: 0;
}

.pfeilwrapper2 {
    width: 50%;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0;
    margin-bottom: 5vh;
}

.navigation-buttons2 {
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding: 0;
}

.prev2, .next2 {
    width: auto;
    padding: 1em;
    font-weight: bold;
    font-size: calc(.6rem + 1vw);
    font-family: favorit;
    margin-top: 0;
    font-weight: 300;
    cursor: url('/bilder/cursorpointer.png'), auto;
    text-decoration: none;
    color: black;
}

.prev2:hover, .next2:hover {
    color: rgb(70, 70, 70);
}


.myCaptions, .myCaptions2 {
    opacity: 100;
    transition: opacity 0.5s ease-in-out;
    display: none;
    font-family: favorit;
    margin-top: 0;
    font-size: calc(0.2rem + 1vw);
    text-align: center;
    padding-right: 10vw;
    padding-left: 10vw;
    width: 40vw;
    height: 3vh;
}

.myCaptions.active, .myCaptions2.active {
    opacity: 1;
    display: block;
}

#progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 1vh; 
    background-color: black; 
    width: 0; 
    transition: width 0.2s;
    z-index: 999;
}

.container {
    margin-top: 10vh; /* Abstand unterhalb des Burger-Menüs */
    margin-bottom: 20vh;
    text-align: center; /* Zentriert den Text */
    width: 80vw;
    height: auto;
    margin-left: 10vw;
}

.gif-container {
    display: grid; /* Verwenden Sie Grid für das Layout */
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten für Desktop */
    gap: 20px; /* Abstand zwischen den Boxen */
    height: auto;
    margin-top: 10vh;
}

.gif-box {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Versteckt Überlauf */
    position: relative;
}

.gif-box img {
    width: 100%; 
    height: 100%; 
    object-fit: contain
}

#kapiteltexte {
        font-family: favorit;
        font-size: 1.2em;
        font-weight: 300;
        color: black;
        text-decoration: none;
}

.einleitung {
    margin-top: 50px;
}

.gif {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    top: 0; 
    left: 0;
    z-index: 0; 
    opacity: 0; 
    transition: opacity 0.3s;
}

.static-image {
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    position: absolute; 
    top: 0; 
    left: 0;
    z-index: 1;
    transition: opacity 0.3s; 
}

.gif-box:hover .static-image {
    opacity: 0; 
}

.gif-box:hover .gif {
    opacity: 1; 
}

.navMenuHome {
    padding-right: 20px;
}

.herzgif {
    width: 40vw;
}

.impressum {
    text-align: center;
    margin-bottom: 30vh;
}


.intro-container {
    max-width: 50vw;
    margin-top: 15vh;
}

.intro-text {
    font-family: favorit;
    font-size: calc(1.5rem + 1vw);
    /* font-size: 3em; */
    font-weight: 500;
    text-align: center;
}

#oben-intro h1 {
    margin-top: 10vh;
}

.impressum {
    justify-content: center;
    align-items: center;
}

#grid {
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-left: 25vw;
    height: auto;
    width: 50vw;
}









.buch-gif-container {
    display: flex; /* Flexbox für zentrierten Inhalt */
    justify-content: center; /* Horizontale Zentrierung */
    margin: 20px 0; /* Außenabstand oben und unten */
    overflow: hidden;
    width: 100vw;
}

.responsive-gif {
    width: 30%; /* Breite für Handys */
    max-width: 100%; /* Verhindert, dass das GIF über den Container hinausgeht */
    height: auto; /* Höhe automatisch anpassen, um das Seitenverhältnis zu wahren */
}



#textüberschrift {
    font-size: calc(2rem + 1vw);
}



.oben h1 {
    font-size: calc(2.5rem + 1vw);
}






/* Grundlegende Stile, die für alle Geräte gelten */










/* Media Query für Mobilgeräte */
@media (max-width: 828px) {


    .page {
        height: auto;
    }

    .grid {
        display: flex;
        flex-direction: column; 
        margin-top: 0vh;
    }

    .oben {
        width: 95%;
    }

    .oben h1 {
        font-size: 2.2em; 
        width: 100%;
        font-weight: 400;
        line-height: 1;
    }


    .oben h2 {
        font-size: 1.5em; 
    }

    #textüberschrift {
        font-weight: 400;
        font-size: 1.5em;
    }

    #texte {
        font-size: 1.2em;
        width: 90%;
    }

    #quellen {
        font-size: 0.8em;
        width: 90%;
    }

    #burgerMenu {
        position: fixed;
        left: 10%; 
        transform: translateX(-50%);
        top: 3%;
        width: 10vw;
        z-index: 1000;
    }

    #closeMenu {
        position: fixed;
        left: 10%; 
        transform: translateX(-50%);
        top: 3%;
        width: 10vw;
        z-index: 1000;
    }

    #navMenu {
        top: 10vh;
        position: fixed;
        width: 100%;
        left: 5vw;
        text-align: left;
        z-index: 990;
        line-height: 1.5em;
    }

    #navMenu a {
        display: block;
        margin: 1.5vh 0;
    }

    #flaeche {
        width: 100vw;
        height: 100vh;
        background-color: rgb(255, 115, 0);
        display: none;
        position: fixed;
        z-index: 980;
        top: 0;
    }

    #projektlogo {
        position: fixed;
        right: 5%;
        top: 3%;
        z-index: 999;
        width: 25vw;
    }


    .slideshow-container {
        width: 90vw; 
        height: 40vh;
    }

    .myCaptions, .myCaptions2 {
        height: 8vh;
    }


    .gif-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .gif-box {
        height: auto;
        text-decoration: none;
    }

    .static-image {
        display: none; 
    }

    .gif {
        opacity: 1; 
    }

    .herzgifcontainer {
        display: flex;
        width: 90vw;
        height: auto;
    }

    .herzgif {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    #impressumüberschrift {
        text-align: center;
    }

    .intro-container {
        max-width: 90vw;
        margin-top: 15vh;
    }
    
    .intro-text {
        font-family: favorit;
        font-size: 1.8em;
    }  

    #grid {
        width: 90vw;
        margin-left: 5vw;
    }   


    .responsive-gif {
        width: 70%; /* Breite für PCs */
    }




    .myCaptions, .myCaptions2 {
        font-size: 0.8em;
    }

    .prev, .prev2, .next, .next2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .gif-container {
        grid-template-columns: 1fr; 
    }


    .static-image {
        display: none; 
    }

    .gif {
        opacity: 1; 
    } 

    #grid {
        width: 90vw;
        margin-left: 5vw;
    } 
}

    
    

@media (min-width: 1500px) {
    #texte {
        font-size: 2rem;
    }
}
