/*:root {
    --mz-one: #28a745;
    --mz-two: #c10037;
    --mz-three: #333;
    --mz-five: #999;
}*/

/* --- Original navbar_white.css --- */

.topnav {
    /*overflow: hidden;*/
    background-color: #fff;
    margin-right: 0;
    display: flex;

    flex-wrap: wrap;
    justify-content: space-between;
    height: 85px;
    align-items: center;
}


.topnav .dropdown-item{
    /*background-color: #efefef;*/
    color:black;
    width: 100%;
    text-align: left;
}

.topnav .dropdown-content{
  /*  background-color: #efefef;*/
   /* margin-top: 0px;*/
/*    color:black;
    width: 100%;
    text-align: left;*/
}

.topnav a:not(.btn,.dropdown-item)  {
    float: left;
    display: block;
    color: #374b5c;
    /*text-align: center;*/
    padding: 10px 16px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    align-self: center !important;
}

@media screen and (max-width: 1000px) {

    .topnav a:not(.btn) {
        float: left;
        display: block;
        color: #374b5c;
        /*text-align: center;*/
        padding: 10px 8px;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 600;
        align-self: center !important;
    }

    .btn:not(.btn-xs, .btn-sm){
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .input-search {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
        line-height: 1.9;
        width: auto;
    }
    #suggestions {
        font-size: 0.8rem;
    }

}

.topnav a:hover {
    /*background-color: #4F4F4F;*/
    color: #c10037;
}

.topnav a.active {
/*    background-color: #04AA6D;
    color: white;*/
}

.topnav .nohover{
    background-color: transparent !important;
    /*font-weight: 700 !important;*/
}


.topnav .icon {
    display: none;
}

@media screen and (max-width: 800px) {
    /*.topnav a {display: none;} */
    .topnav a.icon {
        float: left;
        display: block;
    }
}

@media screen and (max-width: 800px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive .icon {
/*        position: absolute;
        right: 0;
        top: 0;*/
    }
/*    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }*/
}

.bar {
    width: 35px;
    height: 5px;
    background-color: black;
    margin: 6px 0;
}

@media(max-width: 270.1px) {
    .logo1, .logo2 {
        font-size: 1.2rem;
    }
}

@media(min-width: 375px) {
    .logo1, .logo2 {
        font-size: 1.6rem;
    }
}

.logotext1 {
    display: inline-block;
    font-size: 2.2em;
    font-weight: 400; /* Zart */
    color: #282828;
    letter-spacing: -0.03em;
    margin-left: -0.05em;
    margin-right: 2px; /* Kleiner Abstand zum "Zero" */
    line-height: 1em;
    padding: 0px;
}

.logotext2 {
    display: inline-block;
    font-size: 2.2em;
    font-weight: 700; /* Kräftig */
    color: var(--mz-one);
    letter-spacing: -0.03em;
    line-height: 1em;

}

.logotext3 {
    display: block;
    font-size: 0.9em;
    color: #6c6c6c;
    /*letter-spacing: -0em;*/
    font-weight: 600;
    line-height: 80%;
}
.logolink{
    color:black;
}

.logo{
    font-weight:700 !important;
    line-height: 1;
/*    height: auto;
    width: 100%;*/
}

.mnavbar {
    position: -webkit-sticky; /* Safari */
    position: sticky; /* Set the navbar to sticky position */
    top: 0; /* Position the navbar at the top of the page */
    width: 100%; /* Full width */
    z-index:1000;
    background-color: #fff; /* Weißer Hintergrund */
    height: 60px; /* Etwas höher für bessere Touch-Ziele */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Dezenter Schatten */
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.mobilenav{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.menu-icon-frame {
    color: #333;
    cursor: pointer; 
    height: 40px; 
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.menu-icon-frame:active {
    background-color: #f5f5f5;
}

.menu-icon {
    background-image: url(/img/menu.svg);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 24px;
    height: 24px;
    filter: invert(1) brightness(0.2); /* Macht das weiße Icon dunkelgrau */
}

.mail-icon {
    background-image: url(/img/mail_new.svg);
    background-size: contain;
    /* background-position: 50%;*/
    background-repeat: no-repeat;
    position: relative;
    display: inline-block;
    width: 2.33333333em;
    /*line-height: 1em;*/
    /*height:32px;*/

}

.nav-logo-img {
    height: 3.1rem;
    width: auto;
}

.nav-logo-link {
    display: flex !important;
    align-items: center;
}

.nav-logo-mobile {
    height: 2.5rem;
    width: auto;
    margin-right: 5px;
}

@media (max-width: 390px) {
    .nav-logo-mobile {
        height: 2.0rem;
    }
}

.logo1 {
    color: #282828; /* Dunkelgrau wie Desktop */
    padding: 0;
    font-weight: 400; /* Zart */
    letter-spacing: -0.03em;
    margin-right: 2px; /* Kleiner Abstand mobil */
}
.logo2 {
    color: var(--mz-one); /* Rot wie Desktop */
    padding: 0;
    font-weight: 700; /* Kräftig */
    letter-spacing: -0.03em;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    left:0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.overlay-logo {
    font-size: 1.4rem;
}

.overlay-content {
    padding: 20px;
    text-align: left;
    margin-top: 0;
    background-color: #fff;
    color: #333;
    padding-bottom: 50px;
}

.overlay-section {
    margin-bottom: 20px;
}

.overlay-divider {
    border: 0;
    border-top: 1px solid #f0f0f0;
    margin: 20px 0;
}

.overlay-link {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
    font-weight: 500;
}
.overlay-link:last-child { border-bottom: none; }
.overlay-link:hover { color: var(--mz-one); }

.overlay-user-profile {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.overlay .closebtn {
    position: static;
    font-size: 2.5rem;
    line-height: 0.8;
    color: #333;
    text-decoration: none;
    padding: 0 5px;
}

/* User Menu List (Vertical) */
.overlay-user-menu {
    display: flex;
    flex-direction: column;
}

.overlay-user-link {
    display: flex;
    align-items: center;
    padding: 16px 10px; /* Etwas höher als normale Links */
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    transition: background-color 0.2s;
    position: relative;
}
.overlay-user-link:hover {
    background-color: #f9f9f9;
    color: var(--mz-two);
}

.oul-icon {
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
    margin-right: 15px;
    color: #777;
}

.oul-badge {
    margin-left: auto;
    background: var(--mz-one);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

.overlay-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    font-weight: 700;
}

.overlay-link-alert {
    display: block;
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.noscroll { overflow: hidden; }

/* Dropdown User Header */
.dropdown-user-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

/* Mobile Language Button (Transparent) */
.btn-mobile-lang {
    background: transparent !important;
    border: 1px solid #eee !important;
    color: #333 !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
}
.btn-mobile-lang:hover {
    background: #f8f9fa !important;
}

/* Mobile Overlay Buttons (CSP Fix) */
.overlay-btn-primary {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 1.1rem;
}

.overlay-btn-group {
    gap: 10px;
}

.overlay-btn-auth {
    display: block;
    text-align: center;
    padding: 10px;
}

.overlay-btn-logout {
    display: block;
    text-align: center;
}

/* Highlight Link im Overlay (z.B. Anzeige aufgeben) */
.overlay-link-highlight {
    color: var(--mz-two) !important;
    font-weight: 700;
}