/* Styling für den immer sichtbaren Navigationsbereich */
#navigation {
    position: fixed;
    top:50%;
    right: -140px;
    transform: translateY(-50%); /* echte vertikale Zentrierung, unabhängig von Viewport- und Eigenhöhe */
    display: flex;
    flex-direction: column;
    gap: clamp(3px, 0.75vw, 10px); /* Abstand zwischen den Quadraten; ab 400px Breite keine weitere Verkleinerung */
    z-index: 1000; /* Sicherstellen, dass die Navigation über allem liegt */
    transition: right 0.5s ease, opacity 0.5s ease; /* Übergangsanimation */
    background-color: #d8d8d8;
    padding: clamp(3px, 0.75vw, 10px);
    opacity: 1;
}
#navigation:hover {
    right:0px;
    opacity: 1;
    background-color: #c5c5c5;
}
/* per JS gesetzt nach Linkklick, damit das Menü trotz :hover wieder zufährt */
#navigation.force-closed {
    right: -140px !important;
}
/* Styling für die Navigationsquadrate */
.nav-square {
    width: auto; /* Größe der Navigationsquadrate */
    height: clamp(26px, 6.5vw, 50px);
    background-color:#adadad;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Elemente innerhalb nach rechts ausrichten */
    color:#ffffff; /* Schriftfarbe */
    font-size: clamp(0.75rem, 3vw, 1.125rem); /* Schriftgröße; ab 400px Breite keine weitere Verkleinerung */
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Schatten hinzugefügt für bessere Sichtbarkeit */
    transition: background-color 0.3s;
    padding: clamp(3px, 0.75vw, 5px) clamp(6px, 1.5vw, 20px);
    cursor: pointer; /* Zeigt an, dass es klickbar ist */
}
.menu-blink {
    animation: whiteGlow 0.5s infinite alternate;
}
@keyframes whiteGlow {
    from {
        background-color:#ffffff; /* Blue background */
    }
    to {
        background-color: rgb(111, 147, 202); /* White background */
    }
    
}
#navigation .nav-icon {
    width: clamp(22px, 5.5vw, 45px); /* Breite des Icons; ab 400px Breite keine weitere Verkleinerung */
    height: clamp(18px, 4.5vw, 37px); /* Höhe des Icons */
    margin-right: clamp(3px, 0.75vw, 10px); /* Abstand zwischen Icon und Text */
    margin-left:0px;
    pointer-events: none; /* No clicks or mouse interaction */
}
.nav-square:hover {
    background-color:var(--menuitemsHover);
}
.nav-square.active {
    background-color:var(--menuitemsSelected);
    color:var(--menutitemsFontHoverColor);
}
.nav-square img {
    margin-left: -15px; /* Verschiebt das Icon weiter nach links */
}

#appMenu .nav-square{
    background-color:transparent;
    box-shadow:none;
    padding:5px 5px;
    color:var(--menuFontColor);
}
#appMenu .nav-square.active {
    background-color:var(--firmenFarbe);
    color:#fff;
}
#menu-handle {
    position:fixed;
    top:240px;
    left:0;
    width: 70px; /* Breite des "Ohrs" */
    height: 70px;
    
	background-image: url('img/menuOpen2.png'); /* Korrigierter Pfad */
	background-size: cover; /* Hintergrundbild proportional skalieren */
	background-position: center; /* Hintergrundbild zentrieren */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.5s ease; /* Gleiche Dauer wie die Menübewegung */
    z-index:999;
}
/* Transition für die Rotation */
#menu-handle span {
    display: inline-block;
    padding-bottom:5px;
    
}

/* Klasse zum Rotieren des Pfeils */
.rotate {
    transform: rotate(180deg);
}