/* Header Base Styles */
.header {
    min-height: 65px;
    background-color: white;
    position: relative;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin: 0 80px 0 125px;
    height: 65px;
}

/* Logo Container */
#logo-container {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    flex-direction: column;
}


#logo-container img {
    height: 54px;
}

#logo-container .host {
    line-height: 14px;
    font-size: 11px;
    background-color: #f0f8ff;
    color: #006666;
    padding: 0 6px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    font-family: monospace;
    border-left: 2px solid #20B2AA;
    margin-left: 4px;
    margin-top: 0;
}
#logo-container img {
    height: auto;
    max-height: 40px;
}

.host {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

/* Desktop Navigation */
.desktop-navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.desktop-navigation li {
    margin: 0 10px;
}

.desktop-navigation a {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 50px;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.92);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.desktop-navigation a:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.desktop-navigation a.selected-nav-item {
    background-color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
}

.desktop-navigation a.selected-nav-item:after,
.desktop-navigation a:hover:after {
    width: 100%;
    visibility: visible;
    opacity: 1;
}

.desktop-navigation a:after {
    content: '';
    position: absolute;
    height: 2px;
    width: 0;
    left: 50%;
    bottom: 0px;
    visibility: hidden;
    opacity: 0;
    transition: all .3s;
    transform: translate(-50%, 0);
    background-color: #20B2AA; /* Türkis für Desktop Navigation */
}

.nav-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    width: 35px;
    height: 35px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 22px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: 0.3s;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger-line:nth-child(1) {
    top: 8px;
}

.hamburger-line:nth-child(2) {
    top: 16px;
}

.hamburger-line:nth-child(3) {
    top: 24px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateX(-50%) rotate(-45deg);
    top: 16px;
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateX(-50%) rotate(45deg);
    top: 16px;
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    list-style: none;
    margin: 0;
    padding: 20px 0;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
}

.mobile-navigation.active {
    display: block;
}

.mobile-navigation li {
    margin: 0;
}

.mobile-navigation a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.mobile-navigation a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-navigation a.selected-nav-item {
    background-color: rgba(32, 178, 170, 0.1); /* Türkis Background */
    font-weight: bold;
    color: #20B2AA; /* Türkis Text */
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        min-height: 54px; /* Weitere 10px reduziert */
    }
    
    .nav-wrapper {
        margin: 0 20px;
        padding: 0;
        height: 54px; /* Weitere 10px reduziert */
    }

    .desktop-navigation {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }
    
    #logo-container img {
        max-height: 42px; /* Angepasst an neue Header-Höhe */
    }
    
    .mobile-navigation {
        top: 54px; /* Angepasst an neue Header-Höhe */
        max-height: calc(100vh - 54px);
    }
}

@media (max-width: 480px) {
    .nav-wrapper {
        margin: 0 10px;
    }

    #logo-container img {
        max-height: 40px; /* Noch kleineres Logo für sehr kleine Screens */
    }

    .host {
        display: none;
    }
}
