* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
        font-family: "Caveat Brush";
        font-weight: 400;
        font-style: normal;
       
      
      
}

body{
    background-color: white;
    position: relative;
    overflow: hidden;

   
   
}





h1{
    font-size: clamp(1em, 5vw, 5em);

}

h2{
    color: white;
    font-size: clamp(1em, 3vw, 2.5em);
    z-index: 5;
    
}

.Ueberschrift h1{
    font-size: clamp(3em, 5vw, 5em);
}

.Titel h1{
    font-size: clamp(3em, 7vw, 5em)
}

.Inhalt h2{
    font-size: clamp(1.5em, 3vw, 2.5em);
    text-align: center;
}


nav{
    background-color: white;
    width: 100%;
    height: clamp(6vh, 2vw, 7vh);
    position: fixed;
    z-index: 999;
    top: 0;
}

nav h2{
    color: #ffff;
}

nav .schwarzBalken{
    position: absolute;
    background-color: black;
    width: 100%;
    height: 60%;
    bottom: 0;
    z-index: 0;
    
}

nav .logo{
    width: clamp(100px, 10vw, 300px);
}


nav .Navigation {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    height: 100%;
    align-items: center;
    z-index: 2; 
}

nav .flagge {
    width: clamp(20px, 3vw, 40px);
    mix-blend-mode: normal;
    z-index: 999;
    border-radius: 1em;

    
   
    
}

nav .arrow{
    width: clamp(20px, 3vw, 40px);
   height: clamp(20px, 3vw, 32px);
    z-index: 100;
    transition: 1s;
    mix-blend-mode: difference;
    align-self: center;
}

nav .Referenzlink{
    margin-right: clamp(0.5em, 3vw, 2em);
}

nav .Navigation .Sprache {
    display: flex;
    align-items: center;
    margin-right: clamp(1em, 3vw, 5em);
    
  
    
}

nav .dropdown{
    display: flex;
    align-items: center;
}


nav .Spanisch.clicked:hover,
nav .Englisch.clicked:hover,
nav .Deutsch.clicked:hover{
    background-color: rgb(221, 218, 218);
}





@keyframes dropdown1 {
    0%{
        height: 0;
        display: none;
    }
    20%{
        display: flex;
    }
    100%{
        height: 100%;
        display: flex;
    }
}

@keyframes dropdown {
    0%{
        height: 0;
        
    }
    
    100%{
        height:100%;
        
    }
}

nav .arrow.clicked{
    transform: rotateZ(180deg);
}





nav .Navigation div:hover{
   cursor: pointer;
}

nav .Navigation div div{
    margin-right: 0;
   
}


nav .Leiste{
    mix-blend-mode: difference;
}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(40vh, 60vw, 70vh);
    position: relative;
    z-index: -2;
   
}

header img{
    position: absolute;
    left:0;
    top:0;
    width: 100%;
    height:100%;
    z-index: -3;
}

header .grau{
    position: absolute;
    width: 100%;
    height:100%;
    background-color: #8A8A8A;
    z-index: -2;
    opacity: 0.7;

}

header::after{
    position: absolute;
    content: '';
    bottom: 0;
    z-index: -1;
    border-left: 100vw solid transparent;
    border-bottom: 10vw solid white;
    
}

header div{
    width: 40%;
    transition: all 3s;
   
    
}
header .headertext{
    margin: auto;
}
header .headertext h1,
header .headertext h2{
    transition: all 3s;
}

header ul{
    list-style: none;
}







.book{
    position: relative;
    width: 15vw;
    height: 50vh;
    perspective: 1000px;
    transform-style: preserve-3d;
    margin: auto; 
    margin-top: 4em; 
    
}
@media (max-width: 1024px) {
    .book{
        width: 20vw;
        height: 30vh;
    }
}

@media (max-width: 767px ){
    .book{
        width: 30vw;
        height: 28vh;
    }
}

.front img{
    width: 100%;
    height: 100%;
    border-radius: 5px;
    
  
}

.front li{
    border-radius:10px;
}

.back li{
    background: black;
    border-radius: 10px;
    width: 97.5% !important;
    
}
.page > li{

    background: white;

    box-shadow: inset 0px -1px 2px rgba(50,50, 50, 0.1),
        inset -1px 0px 1px rgba(150, 150, 150, 0.2);

        border-radius: 0px 5px 5px 0px;
        width:100%;
        height:100%;
        transform-origin: left center;     
}





.front{
    transform: rotateY(-34deg) translateZ(8px);
}

.back{
    transform: rotateY(-26deg) translateZ(-8px);
    transition-duration: 0.6s;
    position: relative;    
}



.page li:nth-child(1){
    transform: rotateY(-28deg);
   
}
.page li:nth-child(2){
    transform: rotateY(-30deg);
}
.page li:nth-child(3){
    transform: rotateY(-32deg);
}
.page li:nth-child(4){
    transform: rotateY(-34deg);
}
.page li:nth-child(5){
    transform: rotateY(-36deg);
}

.front,
.back,
.front li,
.back li{
    position: absolute;
    width: 100%;
    height:100%;
    transform-style: preserve-3d;
}

.front,
.back{
    transform-origin: 0% 100%;
}




.front{
    transition: all 0.8s ease, z-index 0.6s;
}

.front li:last-child{
    transform: rotateY(180deg) translateZ(2px);
    background-color: black;
}

.page,
.page > li {
    position: absolute;
    transform-style: preserve-3d;
}

.page{
    width: 100%;
    height:98%;
    top:1%;
    left:3%;
    
}

.back{
    left: 6%;
}
.page li{
    transition-duration: 0.6s;
}



.front.scrolled{
    transform: rotateY(-179deg) translateX(8px);  
}

.page li:nth-child(1).scrolled{
    transform: rotateY(-178deg) translateZ(-3px); 
    transition-delay: .5s;  
}

.page li:nth-child(2).scrolled{
    transform: rotateY(-176deg) translateZ(-3px); 
    transition-delay: .2s;  
}

.page li:nth-child(3).scrolled{
    transform: rotateY(-2deg);
    transition-delay: .5s; 
     
}
.page li:nth-child(4).scrolled{
    transform: rotateY(-2deg); 
    transition-delay: .3s;
     
}
.page li:nth-child(5).scrolled{
    transform: rotateY(-2deg); 
    transition-delay: .2s;
     
}

.back.scrolled{
    transform: rotateY(0deg) translateX(10px); 
}

.book.scrolled{
    perspective: none;
    width: 49.5vw;
    height: 95vh;
}

.book .Themen{
    
    position: absolute;
    transform: translateZ(100px);
    top:1%;
    left: -92%;
    width: 190%;
    display: none;
    flex-direction: column;
 
}



.Titel{
    position: absolute;
    z-index: 900;
    width: auto;
}
.Titel::after{
    content: '';
    position: absolute;
    background-color: white;
    width: 200%;
    height: 100%;
    z-index: 1;
    left: 0;
    top:0;
    animation-name: textani;
    animation-duration: 3s;
    animation-fill-mode: forwards;
}

@keyframes textani {
    0%{
        transform: translateX(0%);
    }
    100%{
        transform: translateX(101%); 
        display: none;
    }
}

.Themen #Keywords{
    width: 100%;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    
   
}

.Themen .container{
    display: grid;
    width: 80%;
    height: 90vh;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: clamp(10vh, 10vw, 13.5vh) clamp(10vh, 10vw, 13.5vh) clamp(10vh, 10vw, 13.5vh) clamp(10vh, 10vw, 13.5vh) clamp(10vh, 10vw, 13.5vh) clamp(10vh, 10vw, 13.5vh);
    grid-template-areas: 
    'eins zwei drei drei'
    'vier vier drei drei'
    'vier vier fünf sechs'
    'sieben sieben acht acht'
    'sieben sieben acht acht'
    'neun zehn elf zwölf';
}

@media (max-width: 768px) {
.Themen .container  {
    width: 100%;
}
}

.item{
    position: relative; /* Change to relative */
    display: flex;
    justify-content: center;
    width: 100%;
}

#Keywords .item .img-klein{
    width: 100%;
    z-index: 100;
    height: clamp(9.5vh, 10vw, 12.6vh);
    transition: 0.35s;
    
    
}

#Keywords .img-groß{
    width: 100%;
    z-index: 100;
    transition: 0.35s;
    height: clamp(19.5vh, 13.05vw, 32.6vh);;
}

.item div{
    position: absolute;
}

#Keywords .item:nth-child(1){
    grid-area: eins;
}

#Keywords .item:nth-child(2){
    grid-area: zwei;
}

#Keywords .item:nth-child(3){
    grid-area: drei;
}

#Keywords .item:nth-child(4){
    grid-area: vier;
}

#Keywords .item:nth-child(5){
    grid-area: fünf;
}

#Keywords .item:nth-child(6){
    grid-area: sechs;
}

#Keywords .item:nth-child(7){
    grid-area: sieben;
}

#Keywords .item:nth-child(8){
    grid-area: acht;
}

#Keywords .item:nth-child(9){
    grid-area: neun;
}

#Keywords .item:nth-child(10){
    grid-area: zehn;
}

#Keywords .item:nth-child(11){
    grid-area: elf;
}

#Keywords .item:nth-child(12){
    grid-area: zwölf;
}

#Keywords .item:nth-child(13){
    grid-area: dreizehn;
}

#Keywords .item:nth-child(14){
    grid-area: vierzehn;
}

#Keywords .item:nth-child(15){
    grid-area: fünfzehn;
}

#Keywords .item div{
    position: absolute; /* Remain absolute */
    left: 0;
    z-index: 100; /* Set z-index higher than img */
}

#Keywords .item .item1{ /* "Liebe" */
    top: 10%;
    left:20%; /* Adjust to position "Liebe" */
   
}

#Keywords .item .item2{ /* "Love" */
    top: 35%;
    left:55%;  /* Adjust to position "Love" below "Liebe" */
}

#Keywords .item .item3{ /* "Amoire" */
    top: 60%;
    left:25%;  /* Position "Amoire" below "Love" */
}

#Keywords .item .border{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -100;
}

#Keywords .item:nth-child(1) .border{
    background-color: #D0383B;
}

#Keywords .item:nth-child(2) .item2,
#Keywords .item:nth-child(4) .item2
{
    left: 40%;
}
#Keywords .item:nth-child(10) .item3{
    left: 35%;
}


#Keywords .item:nth-child(3) .border{
    background-color: #F25D00;
}

#Keywords .item:nth-child(4) .border{
    background-color: #76C762;
}

#Keywords .item:nth-child(5) .border{
    background-color: #8EF48E;
}

#Keywords .item:nth-child(6) .border{
    background-color: #A1450B;
}

#Keywords .item:nth-child(7) .border{
    background-color: #AA4ACA;
}

#Keywords .item:nth-child(8) .border{
    background-color: #8A8A8A;
}

#Keywords .item:nth-child(9) .border{
    background-color: #D2DF6B;
}

#Keywords .item:nth-child(10) .border{
    background-color: #006BB8;
}

#Keywords .item:nth-child(11) .border{
    background-color: #EB0898;
}
#Keywords .item:nth-child(12) .border{
    background-color: #EBEB08;
}



#Keywords .item:nth-child(2) .border{
    background-color: #FFB833;
}

#Keywords .container h1{
    font-size: clamp(1em, 3vw, 8em);
    color: #ffffff;
}

#Keywords h2 {
    font-size: clamp(0.5em, 2vw, 5em);
    color: #ffffff;
}

#Keywords img{
    animation-name: image;
    animation-duration: 3s;
    animation-fill-mode: forwards;
}

@keyframes image {
    0%{
        display: none;
        scale: 0;
        opacity: 0;
    }
    100%{
        display: block;
        scale: 1;
        opacity: 1;
    }
}

.border::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: -1;
    animation-name: borderani;
    animation-duration: 3s;
    animation-fill-mode: forwards;
}

@keyframes borderani {
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(100%);
        display: none;
    }
}

#Info{
  display: none; 
}

body #Info img{
    position: absolute;
}

#Info .Ueberschrift{
    display: none;
    mix-blend-mode: difference;
}

#Info .Ueberschrift h1{
    color: white;
}

#Info .Inhalt{
    display: none;
}

#Info div .Ueberschrift.scrolled{
    display: block;
    z-index: 500;
    position: absolute;
    left: 20%;
    transform: translateY(50%);
    overflow: hidden;
    white-space: nowrap;
    animation-name: textanimation;
    animation-duration: 1s;
    animation-fill-mode: forwards;

}

@keyframes textanimation {
    0%{
        width: 0;
    }
    100%{
        width: 100%;
    }
}

.Ueberschrift .Item1.scrolled{
    position: absolute;
    left: 30%;
    width: 100%;
}

.Ueberschrift .Item2.scrolled{
    position: absolute;
    left: 50%;
    margin-top: 10vh;
    width: 100%;
}

.Ueberschrift .Item3.scrolled{
    position: absolute;
    left: 20%;
    margin-top: 20vh;
    width: 100%;
}

.Ueberschrift .Item1.scrolled h1,
.Ueberschrift .Item2.scrolled h1,
.Ueberschrift .Item3.scrolled h1{
    font-size: 7em;
}








































