:root {
    --color-primary-background1: #e7ffdc;
    --color-primary-background2: #fbeb8d;
    --color-primary-background3: #9be15e;
    --color-primary-main: #cbcbcb;
    --color-primary-text1: #353535;
    --color-primary-text2: #000000;

    --my-font-typewriter: "Zilla Slab", serif;
    --my-font-hand: "Just Another Hand";


}

[data-theme="dark"] {
    --color-primary-background1: #1b4e01;
    --color-primary-background2: #e98f29;
    --color-primary-background3: #5ea520;
    --color-primary-main: #cbcbcb;
    --color-primary-text1: #ccffb3;
    --color-primary-text2: #ffffff;

    --my-font-typewriter: "Zilla Slab", serif;
    --my-font-hand: "Just Another Hand";
}






.header {
    position: absolute;
    /* stays in place on screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100vw;

}



.header_stem {
    fill: var(--color-primary-background3);
}

.header_stem {
    position: absolute;
    /* stays in place on screen */
    top: 180%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: center;
    align-items: center;

    min-width: 100vw;
    z-index: 0;
}


h1 {
    font-family: var(--my-font-hand);
    color: var(--color-primary-text1);
    font-size: 400px;
    display: flex;
    position: relative;
    text-align: center;
    justify-content: center;
    z-index: 10;

}

h2 {
    font-family: var(--my-font-hand);
    color: var(--color-primary-text1);
}

h3 {
    font-family: var(--my-font-typewriter);
    font-size: 40px;
    margin: 10px;
    margin-left: 0;

}

.index-p {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

body {
    min-width: 400px;
    margin: 0;
}

section {
    min-height: 100dvh;           /* fills viewport but may grow if needed */
    display: flex;
    align-items: center;
    justify-content: center;

    p {
        font-family: var(--my-font-typewriter);
        color: var(--color-primary-text2);
        font-size: 40px;
        word-break: break-word;

    }
}



.trio p {
  font-size: clamp(1.5rem, 3.5vw, 1.8rem);
  max-height: 40vh;             /* stop text from blowing up layout */
}


.trio {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    max-height: 100%;             /* don't grow taller than viewport */
    max-width: 100%;
    box-sizing: border-box;   
}


.ticket-img {
    max-width: 365px;
    height: auto;
}

.card-img {
    max-width: 250px;
    height: auto;
}

.klee-img {
    max-width: 360px;
    height: auto;
}

.image-stack {
    position: relative;
    display: inline-block;
}

.trio-luck {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5%;




    img {
        width: 330px;
        height: auto;
    }
}

.klee-fg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  /* center on bg */

    z-index: 2;
}




#big_klee {
    width: 550px;
}


.trio-bg {
    gap: 12rem;
    width: 100%;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    z-index: 1;


    img {
        width: 40%;
        position: absolute;

    }
}

.klee-bg {
    z-index: 2;
    max-width: 35vw;
}



.container {
    position: fixed;
    /* stays in place on screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: center;
    align-items: center;

    width: 100vw;
    height: 100vh;
}

#image-change {
    height: 123vh;

    /* stays in place on screen 
    box-shadow: 7px 11px 24px -22px rgba(0,0,0,0.75);
    -webkit-box-shadow: 7px 11px 24px -22px rgba(0,0,0,0.75);
    -moz-box-shadow: 7px 11px 24px -22px rgba(0,0,0,0.75);

    */
    z-index: 10;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(-13px 12px 12px #a0a0a0);
}





main {
    background-color: var(--color-primary-background1);
}

.footer-bg {
    background: linear-gradient(180deg, var(--color-primary-background1) 0%, var(--color-primary-background2) 50%);
}

.couvert {
    max-width: 50vw;
    max-height: 50vh;
    z-index: 2;
}



.nav-letter {
    width: 571px;
    height: 413px;
    position: absolute;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(-13px 12px 12px #a0a0a0);
    z-index: 4;


    
}

.nav-bg {
    position: absolute;
    
    height: 90vh;
    z-index: 0;
}

#stamp {
        width: 92px;
        height: 104px;
        right: 10px;
        
}


.letter-animation-section {
    height: 500vh;
}


.letter-animation {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100vw;
    height: 100vh;
}



a {
    color: inherit;
}







.first-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0%;


    img {
        max-width: 50%;
        max-height: 50%;
    }
}


#stamp {
    position: relative;
}


footer {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-primary-background2);
    
    
}










/* --- Outer Container --- */
.outer {
  height: 413px;
  width: 571px;
  margin: 40px auto;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "top top"
    "bottom-left bottom-right";
    font-family: var(--my-font-typewriter);
    font-size: 24px;
    list-style-type: none;
    z-index: 5;
}



/* --- Sections --- */

.section {
  position: relative;
  box-sizing: border-box;
}

.top {
  grid-area: top;
}

.bottom-left {
  grid-area: bottom-left;
}

.bottom-right {
  grid-area: bottom-right;
  
  
}

/* --- Red boxes (content areas) --- */

.red-box {
  position: absolute;
}

/* Top large box */
.top .large {
  width: 60%;
  height: 45%;
  top: 15%;
  left: 5%;
}

/* Top small box (right) */
.top .small {
  width: 16%;
  height: 40%;
  top: 15%;
  right: 2%;
}

/* Bottom-left small box */
.bottom-left .small {
  width: 25%;
  height: 25%;
  bottom: 10%;
  left: 10%;
  display: flex;
}

/* Bottom-right large box */
.bottom-right .large {
  height: 45%;
  top: 0%;
  
}

.mode-button {
    max-height: 43px;
}


/* Footer zentriert (fixed) — Hintergrund bleibt sichtbar */
#siteFooter {
 
      /* passend zu der .outer Höhe */
  pointer-events: auto;
  background-image: url("/img_letter/svg/nav_light_kleeblatt.svg"); 
  background-repeat: no-repeat;
  background-position: center;
}

/* damit .outer und nav-letter unabhängig animieren */
#siteFooter .outer,
#siteFooter .nav-letter {
  transition: transform 0.8s ease-in-out;
  transform: translateY(0);
  will-change: transform;
}

/* CSS Variable: wie weit nach unten verschoben werden soll
   Standard ist 40vh (ca. halb unter den Viewport) */
:root {
  --footer-shift: 55vh;
}

/* Wenn Footer die Klasse .moved bekommt: verschiebe die beiden Elemente nach unten */
#siteFooter.moved .outer,
#siteFooter.moved .nav-letter {
  transform: translateY(var(--footer-shift));
  position: fixed;
}


.control-button {
    background: var(--color-primary-background2);
    padding-left: 10px;
    padding-right: 10px;
    height: 30px;
    border: none;
    border-radius: 10px;
}

.button {
    background: var(--color-primary-background2);
    padding-left: 10px;
    padding-right: 10px;
    height: 30px;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
}


/* Panel, das von unten reinfährt */
#aboutme_open {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: -620px; /* komplett unterhalb des Viewports */
  
  width: 552px;
  height: 606px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.25);
  
  transition: bottom 0.8s ease-in-out;
  z-index: 0; 
  
  padding: 50px;
  box-sizing: border-box;
  font-family: var(--my-font-typewriter);
}

/* Panel sichtbar bis ca. 75vh */
#aboutme_open.open {
  bottom: 5vh; /* ergibt: Top = 75vh */
}


#contactme_open {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: -620px; /* komplett unterhalb des Viewports */
  
  width: 552px;
  height: 606px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.25);
  
  transition: bottom 0.8s ease-in-out;
  z-index: 3; /* über Footer-Inhalt */
  
  padding: 50px;
  box-sizing: border-box;
  font-family: var(--my-font-typewriter);
}


/* Panel sichtbar bis ca. 75vh */
#contactme_open.open {
  bottom: 5vh; /* ergibt: Top = 75vh */
}



.impressum {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    

    h4, p {
        margin-top: 0;
    }
}

input {
    width: 100%;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
}

@media (min-width: 1024px) {

    .trio h2 {
        font-size: 5rem;
    }

    .trio-luck h2 {
        font-size: 5rem;
    }


  section { 
    height: 100dvh;
    position: relative; 
}

  .trio {
    flex-direction: row;
    align-items: center;
    max-height: none;
    gap: 3em;
  }

  .klee-bg {
    max-width: 35vw;
}

}

 .trio-luck {
        gap: 2em;
    }

    



@media(width < 1024px) {


     .trio h2 {
        font-size: 5rem;
    }

    .trio-luck h2 {
        font-size: 4rem;
        margin-bottom: -0.5rem;
        margin-top: -0.5rem;
        line-height: 98%;

    }





    section {
        height: 100vh;
    }


    .trio {
        flex-direction: column;
        text-align: center;


    }

    .trio-luck {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin: 5%;




        img {
            width: 330px;
            height: auto;
        }
    }

    #big_klee {
        width: 368px;
    }
}




@media (width < 768px) {
    h1 {
        font-size: 175px;
    }

    h3 {
        font-size: 36px;
    }

     .trio h2 {
        font-size: 5rem;
    }

    .trio-luck h2 {
        font-size: 4rem;
        margin-bottom: -0.5rem;
        margin-top: -0.5rem;
        line-height: 98%;

    }


    .header_stem {
        position: absolute;
        /* stays in place on screen */
        top: 130%;
        left: 50%;
        transform: translate(-50%, -50%);

        display: flex;
        justify-content: center;
        align-items: center;

        min-width: 100vw;
    }

    .trio {
        flex-direction: column;

        
    }

    .trio-luck {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin: 5%;




        img {
            width: 330px;
            height: auto;
        }
    }

    #big_klee {
        width: 277px;
    }

    

    .nav-letter {
        height: 240px;
        width: 332px;
    }


    #stamp {
        width: 63px;
        height: 70px;
        right: 5px;
        
}

.right {
    flex: 2;
}


.left {
    flex: 1;
}

footer .outer {
    height: 240px;
    width: 332px;
    font-size: 18px;

}
.bottom-right {
    width: 160%;
    right: 14%;

    }

    .small {
        padding-right: 2%;
    }

.bottom-left .mode-button {
        max-height: 33px;
}

.bottom-left .small {
  bottom: 30%;
  
}

#aboutme_open {
    width: 365px;
    padding: 25px;
    height: 520px;
    padding-top: 50px;
}

#contactme_open {
    width: 365px;
    padding: 25px;
    height: 520px;
    padding-top: 50px;
}

.index-p {
    font-size: 16px;
}

.impressum {
    font-size: 13.5px;
}


.ticket-img {
    max-width: 225px;
    height: auto;
}

.card-img {
    max-width: 155px;
    height: auto;
}

.klee-img {
    max-width: 220px;
    height: auto;
}

.klee-bg {
    max-width: 50vw;
}

#image-change {
    height: 77vh;
    

    /* stays in place on screen 
    box-shadow: 7px 11px 24px -22px rgba(0,0,0,0.75);
    -webkit-box-shadow: 7px 11px 24px -22px rgba(0,0,0,0.75);
    -moz-box-shadow: 7px 11px 24px -22px rgba(0,0,0,0.75);

    */
    z-index: 10;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(-13px 12px 12px #a0a0a0);
}


}








#scroll-section{
  height: 1200px; /* how much scrolling controls the animation */
  position: relative;
}

.stage{
  position: sticky;
  top: 0;
  height: 100vh;
  display:flex;
  justify-content:center;
  align-items:center;
}

.stage img{
  position:absolute;
  transform-origin:center;
}











.img-shadow {
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(-13px 12px 12px #a0a0a0);
    }