#menu {
    width: 100vi;
    position: sticky;
    background-color: transparent;
    height: 27px;
    
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: top 0.8s ease;
    /* Füge eine Übergangsanimation hinzu, um das Erscheinen und Verschwinden zu glätten */
}



#titelmenu {
    position: relative;
    height: 98%;
    width: 90%;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #b90fe4;
    background-color: #06047270;
    text-align: center;
    text-decoration: underline;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 2px 2px 4px #000;
    z-index: 98;
    border-radius: 10px;
}
/*dropdown*/
.dropdown-content {
    display: none;
    background-color: rgba(23, 10, 207, 0.322);

    z-index: 99;

    position: fixed;

    top: 0px;
    /* Vertikal in der Mitte des Bildschirms positionieren */
    left: 50%;
    /* Horizontal in der Mitte des Bildschirms positionieren */
    transform: translate(-50%, -0%);
    /* Zentriert das Element sowohl horizontal als auch vertikal */
    width: 100%;
    max-width: 900px;
    text-align: center;
    border-radius: 10px;
}


.dropdown-content a {
    color: rgb(0, 0, 0);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
}

#menu:hover .dropdown-content {
    display: block;
    position: absolute;
    top: 27px;
}



#dropdownRechner {
    width: 160px;
    position: absolute;
    top: 100px;
    left: 60%;
    border-radius: 10px;

    background-color: aqua;
    
    
    display: none;
}

#menuRechner:hover+#dropdownRechner,
#dropdownRechner:hover {
    display: block;
    
}







@media (max-width: 912px) {

    .dropdown-content {

        top: 28px;
        /* Vertikal in der Mitte des Bildschirms positionieren */
        left: 50%;
        /* Horizontal in der Mitte des Bildschirms positionieren */
        transform: translate(-50%, -0%);
        /* Zentriert das Element sowohl horizontal als auch vertikal */
        width: 100%;
        max-width: 900px;
        text-align: center;
    }
}

@media (max-height: 800px) {

    .dropdown-content {

        top: 28px;
        /* Vertikal in der Mitte des Bildschirms positionieren */
        left: 50%;
        /* Horizontal in der Mitte des Bildschirms positionieren */
        transform: translate(-50%, -0%);
        /* Zentriert das Element sowohl horizontal als auch vertikal */
        width: 100%;
        max-width: 900px;
        text-align: center;
    }

}
