.navigation-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 0 0 25px 25px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    min-height: 88px;
    margin-bottom: 2rem;
    z-index: 998;
}

.navigation-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    color: var(--lighter-text);
}

#navigation-left-image-container {
    left: 1.5rem;
}

.navigation-user-container:hover .navigation-image {
    cursor: pointer;
    filter: brightness(65%);
}

.navigation-image {
    width: 4rem;
    margin-right: 0.5rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#navigation-link-to-dashboard > p {
    margin-left: .5rem;
    text-decoration: none;
}

.nav-links {
    align-items: center;
    justify-content: center;
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a, #navigation-link-to-dashboard, #navigation-lernplattform-name  {
    text-decoration: none;
    color: var(--lighter-text);
    transition: color 0.2s ease;
    font-weight: 550;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu li a {
    padding: 0.2rem 1.0rem 0.2rem 1.0rem;
    display: block;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links a:hover, #navigation-lernplattform-name:hover, .nav-dropdown-menu li a:hover {
    text-decoration: none;
    color: var(--link);
}
.navigation-user-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 2rem;
    color: var(--lighter-text);
}

.navigation-user-container > .navigation-image {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.navigation-user-wrapper {
    position: relative;
    cursor: pointer;
}

.navigation-user-wrapper > .navigation-image {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.navigation-user-wrapper:hover > .navigation-image {
    transform: scale(1.05);
}

.navigation-user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 6px;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    min-width: 200px;
    z-index: 20;
}

.navigation-user-wrapper:hover .navigation-user-dropdown,
.navigation-user-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navigation-user-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation-user-dropdown li a, .navigation-user-dropdown li p {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-weight: normal;
}

.navigation-user-dropdown li p {
    font-weight: bold;
}

#navigation-user-dropdown-first {
    padding-bottom: 5px;
    border-bottom: 1px solid #4F758A;
}

.navigation-user-dropdown li a:hover {
    background: #f0f0f0;
}

.logout-button {
    background-color: #dc3545 !important;
    color: white !important;
    border-radius: 6px;
    padding: 8px 12px !important;
    margin: 8px auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500 !important;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: calc(100% - 16px);
}

.logout-button i {
    color: white;
    font-size: 0.9em;
}

.logout-button:hover {
    background-color: #c82333 !important;
    transform: translateY(-1px);
}

.logout-button:active {
    transform: translateY(0);
}

.nav-dropdown-menu {
    position: absolute;
    left: 0;
    width: 220px;
    background-color: var(--secondary, #4F758A);
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 8rem;
    opacity: 0;
    visibility: hidden;
    top: 100%; 
    transform: translateY(0);
    z-index: 20;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu > .nav-dropdown-subject {
    position: relative; 
}

.nav-dropdown-menu > .nav-dropdown-subject > a {
    padding: 0.2rem 1.0rem 0.2rem 1.0rem;
    display: block;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}


.nav-dropdown-menu > .nav-dropdown-subject > a:hover {
    background-color: #4F758A;
    color: var(--link, #ffd700);
}

.nav-dropdown-menu-second-level {
    list-style: none;
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #fff;
    min-width: 180px;
    padding: 0.3rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 30;
}

.nav-dropdown-menu > .nav-dropdown-subject:hover > .nav-dropdown-menu-second-level {
    display: block;
}

.nav-dropdown-menu-second-level > li > a {
    padding: 0.25rem 1rem;
    display: block;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-family: Verdana;
}

.nav-dropdown-menu-second-level > li > a:hover {
    background: #ececec;
}

.navigation-bar {
    position: relative; 
    z-index: 998;
}

.navigationSearchInput {
    font-size: small;
    font-weight: lighter;
    border: 1px solid #999999;
}

.navigationSearchInput:focus {
    outline: none;
    border: 1px solid #236C93;
}

.search-container {
    position: relative;
    width: 40px;
    height: 40px;
    transition: width 0.4s cubic-bezier(.55,0,.1,1);
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.search-container:focus-within {
    width: 220px;
    border-color: #2563eb;
    box-shadow: 0 2px 18px rgba(0, 16, 62, 0.35);
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;
    margin: 0 8px;
    flex-shrink: 0;

    color: #4b5563;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.search-icon:hover {
    background-color: white;
}

.search-icon svg {
    display: block;
    margin: 0 auto;
}

.search-container:focus-within .search-icon {
    color: #2563eb;
}
.search-input {
    background: transparent;
    border: none;
    outline: none;
    width: 0;
    padding: 0;
    margin-left: 6px;
    font-size: .85rem;
    font-weight: lighter;
    color: var(--lighter-text);
    transition: width 0.4s cubic-bezier(.55,0,.1,1), padding 0.4s, opacity 0.4s;
    opacity: 0;
}
.search-container:focus-within .search-input {
    width: 140px;
    padding: 8px 6px 8px 0;
    opacity: 1;
}