.header-nav {
    position: fixed;
    top: 0;
    z-index: 1000;

    width: 100%;
    height: auto;

    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;

    background-color: rgb(0,0,0); 
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s, top 0.3s ease-in-out;

}

@media (max-width: 768px) {
    .header-nav {
        position: fixed;
        z-index: 3002; /* höher als Top-Bar / Inhalt */

        background-color: rgba(255, 255, 255, 0.15); 
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.header-nav.scrolled {
    background-color: rgba(23, 23, 23, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.header-nav ul {
    margin: 0;
    padding: 0;
    float: center;
    height: 100%;
}

.header-nav ul > li {
    color: #E5E5E5;
    display: inline-block;
    height: 100%;
    padding: 0 .4rem 0 .4rem;
    line-height: 40px;
}

.header-nav ul > li > a {
    color: #E5E5E5;
    text-decoration: none;
    display: inline-block;
    padding: 0 10px;
    position: relative;
    margin-top: 1.8rem;
    transition: all 0.4s ease;

}

.header-nav ul > li > a:link {
    color: #E5E5E5;
    text-decoration: none;
}

.header-nav ul > li > a:hover {
    color: #E5E5E5;
}

.header-nav ul > li.active > a {
    color: #E5E5E5;
}

.header-nav ul > li.active > a::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
}

.header-nav ul > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #fd9901;
    transition: width 0.4s ease;
}

.header-nav ul > li > a:hover::after {
    width: 100%;
}

.header-nav ul > li > a:hover {
    background-color: rgba(255, 217, 102, 0.15);
    border-radius: 8px;
    color: #fd9901;
}

.header-nav ul > li.active > a::before {
    top: -3px;
}

.header-nav ul > li > a:visited {
    color: var(--weiss);
    text-decoration: none;
}

.header-nav .col-6 {
    padding-top: 0;
    padding-bottom: 0;
}

.header-nav .container,
.header-nav .row,
.header-nav .col-6 {
    height: 100%;
}

@media (max-width: 768px) {
    .header-nav ul > li > a {
        margin-top: .0rem;
        display: inline-block;
    }
}

.header-nav a > img {
    height: 100px;
    width: auto;
    float: left;
}

.icons-header {
    float: right;
    padding-top: 30px;
}

.icons-header {
    text-align: center;
}

.header-nav {
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: top 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.header-nav.scrolled {
    position: fixed;
    background-color: #3D3F45;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.overlayy {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
  }
  
  .overlayy-content {
    position: absolute;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
  }

  .overlayy-content {
    list-style-type: none;
  }
  
  .overlayy a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
  }
  
  .overlayy a:hover, .overlayy a:focus {
    color: #f1f1f1;
  }

  .overlayy img {
    width: 150px;
    position: absolute;
    top: 20px;
    left: 20px; 
}
  
  .overlayy .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
  }
  
  @media screen and (max-height: 450px) {
    .overlayy a {font-size: 20px}
    .overlayy .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
    }
  }

.span-new-nav {
    display: none;
    padding: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #bbb;
    /* Füge hier deinen eleganten Border-Style ein */
    border: 2px solid #bbb; /* Beispiel für einfachen Rahmen */
    border-radius: 5px; /* Abgerundete Ecken */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Schatten für Tiefe */
    transition: all 0.3s ease; /* Sanfter Übergang für Hover-Effekte */
}

.span-new-nav:hover {
    border-color: #f0c419; /* Rahmenfarbe beim Hover */
    background-color: rgba(240, 196, 25, 0.1); /* Hintergrundfarbe beim Hover */
    color: #f0c419; /* Textfarbe beim Hover */
}

.overlayy-content li.active a {
    /* background-color: #4CAF50; Elegante Hintergrundfarbe */
    color: white; /* Textfarbe für aktives Element */
    font-weight: normal; /* Verwenden Sie normalen Schriftstil */
    text-transform: uppercase; /* Großbuchstaben für ein eleganteres Aussehen */
    padding: 14px 20px; /* Innenabstand anpassen */
    border-radius: 5px; /* Abgerundete Ecken für einen eleganten Look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sanfter Schatten für Tiefe */
    transition: background-color 0.3s, box-shadow 0.3s; /* Sanfte Übergänge */
}

.navigation li.active a:hover {
    background-color: #45a049; /* Etwas dunklere Farbe beim Hover für Effekt */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Intensivierung des Schattens beim Hover */
}

.logo-mobile-nav {
    display: none;
}

@media (max-width: 1270px) {
    .logo-mobile-nav {
        display: block;
        z-index: 10;
    }
    .header-nav {
        position: fixed;
        z-index: 3002; /* höher als Top-Bar / Inhalt */

        background-color: rgba(255, 255, 255, 0.15); 
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 1270px) {
    .desktop-nav {
        display: none;
    }
    .span-new-nav {
        display: block;
        position: relative;
        float: right;
        width: 50px;
    }

    .overlayy img {
        float: left;
        position: relative;
    }
    
    .icons-header {
        padding-top: 25px;
        float: none;
        margin-top: 0;
        text-align: center;
        font-size: 35px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        height: 65px;
    background-color: rgb(0,0,0); 
    /* background-color: rgba(0, 0, 0, 0.6); */
    }

    .header-nav a > img {
        height: 59px;
    }

    .icons-header {
        padding-top: 10px;
        float: none;
        margin-top: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .icons-header {
        font-size: 25px;
        margin-right: 20px;
    }
}
