.headheader {
    height: 180px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-bottom: 2px solid #00AAAA;
    transition: height 0.3s ease, padding 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0);
}

.headheader .nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    justify-content: flex-start; /* Logo links */
    position: static;
}

/* Logo links außen ohne margin */
.headheader .logo {
    color: gold;
    font-weight: bold;
    font-size: 24px;
    white-space: nowrap;
    user-select: none;
    margin-left: 0;
}

/* Navigator ganz rechts schieben */
.headheader .navigator {
    display: flex;
    gap: 40px;
    padding: 20px 40px;
    border-radius: 15px;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.4s ease, opacity 0.4s ease, padding 0.3s ease, gap 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    flex-grow: 0;
    margin-left: auto; /* <-- schiebt Navigator ganz rechts */
}

/* Serverinfo Styling */
.headheader .serverinfo {
    color: #fff;
    font-size: 18px;
    line-height: 1.4;
    max-width: 300px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* Shrink-Header Höhe & Padding */
.headheader.shrink {
    height: 80px;
    padding: 0 20px; /* Weniger padding, damit Logo ganz links ist */
    background-color: rgba(34, 34, 34, 0.9);
}

/* Serverinfo ausblenden beim Shrink */
.headheader.shrink .serverinfo {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

/* Shrink: nav-container & logo anpassen */
.headheader.shrink .nav-container {
    justify-content: flex-start; /* Logo ganz links */
    position: relative; /* Für absolute Positionierung des Navigators */
}

.headheader.shrink .logo {
    margin-left: 0; /* Logo ganz links außen */
}

/* Shrink: Navigator zentriert und oben */
.headheader.shrink .navigator {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translate(-50%, 0);
    padding: 5px 20px;
    opacity: 1;
    transition: all 0.4s ease;
    border-radius: 10px;
    background-color: rgba(85, 255, 255, 0.1);
    box-shadow: 0 0 10px #00AAAA;
    gap: 20px; /* Etwas enger als original im Shrink */
}

/* Navigationselemente */
.navelement {
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 10px;
    user-select: none;
}

.navelement:hover {
    transform: scale(1.1);
    color: #959595;
}

.navelement.startseite {
    background-color: #00AAAA;
    box-shadow: 0 0 10px #00AAAA;
    color: #000;
}

.navelement.startseite::before {
    content: '\1F3E0';
    color: #FFAA00;
    font-size: 20px;
}

.navelement.regelwerk::before {
    content: '\2696';
    font-size: 18px;
    color: #00AAAA;
}

.navelement.team::before {
    content: '\1F465';
    font-size: 18px;
    color: #00AAAA;
}

.navelement.faq {
    background-color: #55ff6c;
    box-shadow: 0 0 10px #55ff6c;
    color: #000;
}

.navelement.faq::before {
    content: '\1F5EA';
    color: #000dff;
    font-size: 20px;
}
