.container {
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    text-align: left;
}

button { /* Zurück Knopf*/
    padding: 5px 15px;
    font-size: 16px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: fixed;
    bottom: 10px;
    right: 1%;
}
button:hover {
    background-color: #dbdbdb;
    color: rgb(0, 0, 0);
}

.word { /*Buchstaben nicht Animiert */
    display: flex;
    align-items: center;
    font-family:  sans-serif, 'Arial Narrow Bold', sans-serif;
    font-weight: 400;
    gap: 1vw;
    font-style: normal;
    font-size: 11vw;
    color: rgb(0, 0, 0);
    overflow: visible;
    min-width: fit-content;
}
.letter.T svg,
.letter.T2 svg, 
.letter.M svg,
.letter.L svg,
.letter.N svg,
.letter.E svg {
    width: 26vw; 
    height: auto;
    fill: black;
}

.letter.T path{ /* Animationen */
    transition:  1.5s ease-out;
    animation-name: T-Stretch;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-delay: 1.5s;
}

.letter.T2 path{
    transition:  1.5s ease-out;
    animation-name: T2-Stretch;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-delay: 2.5s;
}
.letter.M path{
    transition:  1.5s ease-out;
 animation-name: M-Stretch;
 animation-duration: 4s;
 animation-iteration-count: infinite;
}
.letter.L path{
    transition:  1.5s ease-out;
 animation-name: L-Stretch;
 animation-duration: 4s;
 animation-iteration-count: infinite;
 animation-delay: 1s;
}
.letter.N path{
    transition:  1.5s ease-out;
 animation-name: N-Stretch;
 animation-duration: 4s;
 animation-iteration-count: infinite;
 animation-delay: 2s;
}
.letter.E path{
    transition:  1.5s ease-out;
 animation-name: E-Stretch;
 animation-duration: 4s;
 animation-iteration-count: infinite;
 animation-delay: 3s;
}


@keyframes M-Stretch { /* Animationen */
    0%{
        d: path("M201.86,214.75h-26.95V32.08l-61.23,182.67h-25.49L26.95,32.08v182.67H0V0h42.63l58.15,179L159.23,0h42.63v214.75Z"); 
    }
    
    50%{
        d: path("M710.86,214.75h-26.95V32.08l-315.23,182.67h-25.49L26.95,32.08v182.67H0V0h42.63l313.15,179L668.23,0h42.63v214.75Z"); 
    }
   
    100%{
        d: path("M201.86,214.75h-26.95V32.08l-61.23,182.67h-25.49L26.95,32.08v182.67H0V0h42.63l58.15,179L159.23,0h42.63v214.75Z"); 
    }
}

@keyframes L-Stretch {
    0%{
        d: path("M132.86,214.75H0V0h28.42v189.26h104.44v25.49Z"); 
    }
   
    50%{
        d: path("M710.4,214.75H0V0h28.42v189.26h681.98v25.49Z"); 
    }
   
    100%{
        d: path("M132.86,214.75H0V0h28.42v189.26h104.44v25.49Z"); 
    }
}

@keyframes T-Stretch {
    0%{
        d: path("M170.07,25.49h-71.04v189.26h-28.56V25.49H0V0h170.07v25.49Z"); 
    }
   
    50%{
        d: path("M710,25.49h-340.62v189.26h-28.56V25.49H0V0h710v25.49Z"); 
    }
   
    100%{
        d: path("M170.07,25.49h-71.04v189.26h-28.56V25.49H0V0h170.07v25.49Z"); 
    }
    
}

@keyframes T2-Stretch {
    0%{
        d: path("M170.07,25.49h-71.04v189.26h-28.56V25.49H0V0h170.07v25.49Z"); 
    }
   
    50%{
        d: path("M710,25.49h-340.62v189.26h-28.56V25.49H0V0h710v25.49Z"); 
    }
   
    100%{
        d: path("M170.07,25.49h-71.04v189.26h-28.56V25.49H0V0h170.07v25.49Z"); 
    }
    
}

@keyframes N-Stretch {
    0%{
        d: path("M168.6,214.75h-29.15L26.95,45.26v169.48H0V0h29l112.5,169.48V0h27.1v214.75Z"); 
    }
   
    50%{
        d: path("M710.6,214.75h-29.15L26.95,45.26v169.48H0V0h29l654.5,169.48V0h27.1v214.75Z"); 
    }
   
    100%{
        d: path("M168.6,214.75h-29.15L26.95,45.26v169.48H0V0h29l112.5,169.48V0h27.1v214.75Z"); 
    }
}


@keyframes E-Stretch{
    0%{
        d: path("M160.11,214.75H0V0h155.13v25.49H28.42v65.62h118.51v25.49H28.42v72.66h131.69v25.49Z");
    }

    50%{
        d: path("M710.11,214.75H0V0h705.13v25.49H28.42v65.62h668.51v25.49H28.42v72.66h681.69v25.49Z")
    }

    100%{
        d: path("M160.11,214.75H0V0h155.13v25.49H28.42v65.62h118.51v25.49H28.42v72.66h131.69v25.49Z");
    }
}

.kleinWort {
    text-align: left;
    font-size: 2vw;
    font-family: sans-serif, 'Arial Narrow Bold', sans-serif;
    font-weight: medium;
    font-style: normal;
    font-size: normal;
    color: black;
    overflow: visible;
    min-width: fit-content;
}
        .pos1{ /* for further*/
            grid-column: 1/4;
            grid-row: 2/3;
            transform: translateY(-4vh);
        }
        .pos2{ /* ted talks*/
            grid-column: 1/3;
            grid-row: 4/6;
            transform: translateY(5.5vh);
        }
        .pos3{ /*namensliste*/
            grid-column: 6/7;
            grid-row: 3/5;
            text-align: right;
            font-family:  sans-serif, 'Arial Narrow Bold', sans-serif;
            font-size: 1vw;
            transform: translateY(-12vh) translateX(-1vh)
            
        }
        .pos4{ /*rsvp only*/
            grid-column: 3/4;
            grid-row: 3/4;
            text-align: right;
            font-size: 2vw;
            font-family: 'Arial Narrow Bold', sans-serif;
            font-weight: medium;
            font-style: normal;
            font-size: normal;
            color: black;
            overflow: visible;
            min-width: fit-content;
            transform: translateY(11vh) 
            }
    
        
       
 /* Verschiebungen mit transform */
 .word:nth-child(1){
    transform: translateY(-2vh);
 }
 .word:nth-child(2) {
    transform: translateY(10vh) translateX(-3vh); /* PLEX leicht nach unten verschieben */
}
.word:nth-child(3) {
    transform: translateY(10vh) translateX(-14vh); /* ITY leicht nach unten verschieben */
}
.word:nth-child(5) {
    transform: translateY(8vh) translateX(10vh); /* MAT leicht nach unten und links verschieben */
}
.word:nth-child(6) {
    transform: translateY(3vh) translateX(-5vw); /* TER leicht nach unten verschieben */
} 


/* Positionierung */
.word:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; } /* COM */
.word:nth-child(2) { grid-column: 4 / 6; grid-row: 1 / 2; } /* PLEX */
.word:nth-child(3) { grid-column: 4 / 6; grid-row: 2 / 3; } /* ITY */
.word:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; } /* IN */
.word:nth-child(5) { grid-column: 4 / 6; grid-row: 3 / 4; } /* MAT */
.word:nth-child(6) { grid-column: 4 / 6; grid-row: 4 / 5; } /* TER */


/* Breakpoint für Handy max. 640px */
@media (max-width: 640px) {
    body {
        background-color: black; /* Stellt sicher, dass der gesamte Hintergrund schwarz ist */
        margin: 0;
        padding: 0;
    }
    .container {
        height: 100vh;
        width: 100vw;
        box-sizing: border-box;
        background-color: black;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
        text-align: left; 
        overflow: hidden;
        
    }

    button {
        font-size: 6px; 
        padding: 3px 8px; 
        position: fixed;
        bottom: 20px; 
        right: 1%; 
    }
    
    .word {
        font-size: 20vw; 
        text-align: center; 
        gap: 2vw; 
        color: white;
    }

    .letter.M svg,
    .letter.L svg,
    .letter.T svg,
    .letter.T2 svg,
    .letter.N svg,
    .letter.E svg {
        width: 47vw; 
        height: auto; 
        fill: white;
    }

    .word:nth-child(1), .word:nth-child(2), .word:nth-child(3), .word:nth-child(4), .word:nth-child(5), .word:nth-child(6) {
        transform: none; /* deaktiviert all die alten Positionierungen */
    }

    .word:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; transform: translateX(2vh);} /* COM */
    .word:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; transform: translateX(2vh);} /* PLEX */
    .word:nth-child(3) { grid-column: 1 / 2; grid-row: 3 / 4; transform: translateX(2vh);} /* ITY */
    .word:nth-child(4) { grid-column: 1 / 2; grid-row: 4 / 5; transform: translateX(2vh);} /* IN */
    .word:nth-child(5) { grid-column: 1 / 2; grid-row: 5 / 6; transform: translateX(2vh);} /* MAT */
    .word:nth-child(6) { grid-column: 1 / 2; grid-row: 6 / 7; transform: translateX(2vh);} /* TER */

    .kleinWort {
        font-size: 2vw; 
        text-align: left;
        font-size: normal;
        color: white;   
    }
        .pos1 { /* Further information */
            grid-column: 1 / 2; 
            grid-row: 1 / 2;
            transform: translateX(2vh) translateY(14vh);
        }
        .pos2 { /* Ted Talks */
            grid-column: 1 / 2; 
            grid-row: 2 / 4;
            transform: translateX(2vh) translateY(14vh);
        }
        .pos3 {  /*namensliste*/
            grid-column: 1 / 2;
            grid-row: 5/6;
            transform: translateX(2vh) translateY(5.7vh);
            text-align: right;
        }

        .pos4 { /* RSVP only */
            grid-column: 1/2;
            grid-row: 5/6;
            transform: translateY(14vh) translateX(2vh);
        }
}

