:root {
	--primary: #35b8b2;
	--primary-light: #d8f4f2;
	--secondary: #7b4bb7;
	--accent: #d85a4a;
	--bg: #f5f6f8;
	--white: #ffffff;
	--text: #333;
}
/* --- Grundlayout -------------------------------------------------------- */

.header-menu-horizontal {
    position: sticky;
	background-color: var(--white);
    z-index: 10000;
    display: block;
    width: 100%;
    margin-left: auto;
}

.header-menu-horizontal > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-menu-horizontal > ul > li {
    position: relative;
}

/* Navigation sticky machen */
header.m-has-standard-menu {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white); /* gleiche Farbe wie deine Menüleiste */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Optional: sanfter Übergang beim Scrollen */
header.m-has-standard-menu.scrolled {
    background: #c0286a; /* leicht dunkler beim Scrollen */
    transition: background 0.3s ease;
}


/* --- Hauptlinks --------------------------------------------------------- */

.header-menu-horizontal > ul > li > a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.header-menu-horizontal > ul > li > a:hover {
    //background-color: #7a0000;
}

.header-menu-horizontal > ul > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: width 0.2s ease-out;
}

.header-menu-horizontal > ul > li > a:hover::after {
	width: 100%;
}

/* --- Pfeil für Untermenüs ---------------------------------------------- */

.header-menu-horizontal li.m-has-submenu > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.header-menu-horizontal li.open > a::after {
    transform: rotate(180deg);
}

/* --- Dropdown-Grundstruktur --------------------------------------------- */

.header-menu-horizontal ul ul {
    display: none; /* wird durch .open aktiviert */
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #f0f0f0;
    box-shadow: 1px 1px 0 rgba(0,0,0,0.05), -5px 5px 8px rgba(0,0,0,0.05);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 9999;
}

/* Wenn geöffnet → anzeigen */
.header-menu-horizontal li.open > ul {
    display: block;
}

/* --- Links im Dropdown -------------------------------------------------- */

.header-menu-horizontal ul ul li a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
}

.header-menu-horizontal ul ul li a:hover {
    background-color: #f2f2f2;
}

/* --- 3. Ebene (Sub-Submenu) --------------------------------------------- */

.header-menu-horizontal ul ul ul {
    top: 0;
    left: 100%;
    border: 1px solid #e0e0e0;
}

/* --- Mobile -------------------------------------------------------------- */

@media (max-width: 992px) {

    .header-menu-horizontal {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .header-menu-horizontal > ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .header-menu-horizontal > ul > li > a {
        width: 100%;
        padding: 14px 18px;
    }

    .header-menu-horizontal ul ul {
        position: static;
        border: none;
        box-shadow: none;
        width: 100%;
        white-space: normal;
    }

    .header-menu-horizontal ul ul ul {
        left: 0;
        padding-left: 20px;
    }
}

.header-menu-horizontal li.m-has-submenu:hover > ul {
    display: block;
}

.header-menu-horizontal li.m-has-submenu:focus-within > ul {
    display: block;
}




