.sticky-navbar {
    position: fixed;
    top: 50%;
    right: -135px; /* Verschiebt das Menü weiter nach rechts */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sticky-navbar-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #333;
    border-radius: 5px 0 0 5px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    right: 0; /* Stellt sicher, dass die Icons am Rand bleiben */
}

.sticky-navbar-item .icon {
    font-size: 24px;
}

.sticky-navbar-item .title {
    margin-left: 10px;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.sticky-navbar-item:hover {
    background-color: #444;
    padding-right: 20px;
    right: 135px; /* Verschiebt das Menü bei Hover */
}

.sticky-navbar-item:hover .title {
    opacity: 1;
}

/* Spezifische Farbgestaltung */
.button-red {
    background-color: red;
}

.button-red:hover {
    background-color: darkred;
}

.button-blue {
    background-color: blue;
}

.button-blue:hover {
    background-color: darkblue;
}

.button-green {
    background-color: green;
}

.button-green:hover {
    background-color: darkgreen;
}

/* Weißes Icon und weiße Schrift für alle Buttons */
.sticky-navbar-item .icon,
.sticky-navbar-item .title {
    color: white;
}


/* Keyframe-Animation für die Drehung */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Drehung beim Hover */
.sticky-navbar-item:hover .icon {
    animation: rotate 0.5s linear;
}