/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;

    background: white;
    color: #333;
    display: flex;
    justify-content: space-between;
    /* Damit sich das Menü bei Platzmangel umbricht */
    align-items: center;
    padding: 5px 0 20px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-logo {
    width: 250px;
    /* Adjust the width as needed */
    height: 70px;
    /* Maintain the aspect ratio */
    vertical-align: middle;

    margin-left: 10px;
}


.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 1.5em;
    /* Adjust font size as needed */
    white-space: nowrap;
    /* Prevent line breaks */

    /* Vertikale Ausrichtung */
}

.navbar-brand span {
    margin-left: 5px;
    display: inline-block;
}


.navbar-text {
    font-size: 1.5em;
    /* Adjust font size as necessary */
    color: #333;
    text-decoration: none;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

.navbar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.navbar-menu li {
    margin-left: 1em;
}

.navbar-menu li a {
    display: block;
    padding: 1em;
    text-decoration: none;
    color: #333;
}

.navbar-menu li a:hover {
    background: azure;
    text-decoration: underline;
    color: #005a9e;
}

.user-menu {
    position: relative;
}

.user-menu .dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

.user-menu .dropdown li {
    border-bottom: 1px solid #eee;
}

.user-menu .dropdown li:last-child {
    border-bottom: none;
}

.user-menu .dropdown li a {
    padding: 0.5em 1em;
    color: #333;
    text-decoration: none;
    display: block;
}

.user-menu .dropdown li a:hover {
    background: #f5f5f5;
}

.language-switcher select {
    font-family: Arial, sans-serif;
    padding: 5px;
    margin-right: 50px;
}

.language-switcher option::before {
    content: attr(data-flag) ' ';
    display: inline-block;
    margin-right: 5px;
}

/* Mobile Navbar Styles */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: white;
        width: 100%;
        position: absolute;
        top: 60px;
        /* Adjust the top position based on navbar height */
        left: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        margin: 0;
        width: 100%;
    }

    .navbar-menu li a {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

}

.msgdlg {
    position: fixed;
    top: 40%;
    left: 40%;
    width: 400px;
    /* Volle Breite */
    height: auto;
    /* Volle Höhe */
    background-color: red;
    /* Transparenter schwarzer Hintergrund */
    display: flex;
    justify-content: center;
    /* Zentriert horizontal */
    align-items: center;
    /* Zentriert vertikal */
    z-index: 1000;
}

.msgdlg-content {
    background-color: red;
    color: white;
    /* Weißer Hintergrund */
    padding: 20px;
    /* Innenabstand */
    border-radius: 10px;
    /* Abgerundete Ecken */
    max-width: 500px;
    /* Maximale Breite */
    width: 90%;
    /* Breite relativ zur Bildschirmgröße */
    text-align: center;
    /* Text zentrieren */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Schatten für ein modernes Design */
}