@charset "utf-8";
/* CSS Document */

/* ----------------------------------------------------------------------------- *
 *                           Header style by www.a-krueger.eu                    *
 * ----------------------------------------------------------------------------- */

header {
	margin: 0 auto;
	width: 100%;
	height: auto;
	z-index: 99;
	position: fixed;
	top: 0;
	}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    background: transparent;
    z-index: 100;
}
.navbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(gradient-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 10px 0 rgba(0, 0, 0, 0.5);
    z-index: -1;
    pointer-events: none; /* WICHTIG: Blur darf nicht blockieren */
}
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    width: 100%;
}
.navbar-container .navbar-menu {
    display: flex;
    text-align: center;
    gap: 1.5rem;
    list-style: none;  
}
.navbar-menu li {
    display: flex;
    align-items: center; 
}
.navbar-menu > li > a {
    position: relative;
    background: none;
    color: var(--primary);
    text-decoration: none;
    text-transform: none;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 600;
    padding: 3px 20px 5px 20px;
    white-space: nowrap;
}
/* menu-icon: Material Icon dark-light siehe switch-light-dark.css */
.navbar-menu > li > a:not(.menu-icon)::before,
.navbar-menu > li > a:not(.menu-icon)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: var(--nav);
    transform: translateX(-50%);
    transition: all 0.3s ease;
}
.navbar-menu > li > a:not(.menu-icon)::before { top: 0; left: 50%; }
.navbar-menu > li > a:not(.menu-icon)::after { bottom: 0; left: -50%; }

.navbar-menu > li:hover > a:not(.menu-icon)::before,
.navbar-menu > li:hover > a:not(.menu-icon)::after {
    width: 100%;
    left: 0;
    transform: none;
}

/* Hamburger */
.hamburger {
	background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: none;
}
.line {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    margin: 6px auto;
    transition: all 0.5s ease-in-out;
}

/* Dropdown Untermenüpunkte */
.dropdown {
    position: relative;
}
.dropdown-menu {
    background: var(--background);
	border-radius: 0.5rem;
    position: absolute;
    top: calc(100% + 0.5rem);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 150ms ease-in-out;
    z-index: 999;
}
.dropdown-menu-left {left: 0;}
.dropdown-menu-right {right: -25%;}
.dropdown.active > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.dropdown-menu-content-grid {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 1rem;
    padding: 1rem;
}
.dropdown-heading {
    padding: 0.2rem;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(15px, 1vw, 16px); 
	font-weight: 400;
    text-align: left;
    color: var(--secondary);
}
.sublinks {
    background: none;
}
.menu-sublink {
    display: flex;
    flex-direction: column;  
}
.dropdown-menu .menu-sublink a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(13px, 1vw, 14px); 
    border-radius: 0;
    border: none;
    white-space: nowrap;
    min-width: 80px;
    padding: 0 0 0 0.12rem;
    text-align: left;
}
.dropdown-menu .menu-sublink a:hover {
    color: var(--secondary);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    cursor: pointer;
}
.logo svg {
    padding: 0.2rem;
    max-width: 50px;
    max-height: 50px;
}

@media (max-width: 1024px) {
    .navbar {backdrop-filter: none;}
    .navbar-container .navbar-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem !important;
        position: absolute;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px;
        padding: 5rem 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }
       .navbar-container .navbar-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }
    .hamburger {display: block; z-index: 1000;}
    .hamburger.active .line:nth-child(2) {opacity: 0;}
    .hamburger.active .line:nth-child(1) {transform: translateY(8px) rotate(45deg);}
    .hamburger.active .line:nth-child(3) {transform: translateY(-8px) rotate(-45deg);} 
    
    .dropdown-menu {
        background: black;
        flex-direction: column;
    } 
    .dropdown-menu-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    }
}
