﻿
/* Abstand für den Seiteninhalt */
body {
    padding-top: 65px;  /*Höhe des Nav-Bereichs */
}

/* NAVBAR OBEN FEST */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #eee; /* hellgrau */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 3000; /* Navbar über allem */
}

.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

/*.nav-center {
    padding-left: 20px;
    justify-content: left;
    color: blue;
    opacity: 1;
    visibility: visible;
}*/


.nav-center {
    flex: 1; /* oder block */
    align-items: center;
    justify-content: center;
    opacity: 1;
    margin-left: -200px;
    visibility: visible;
    height: auto;
    color: blue;
    z-index: 5000; /* unter Navbar */
}



.nav-right {
    justify-content: flex-end;
}

.nav-brand {
    font-weight: bold;
    color: blue;
}

/* HAMBURGER ICON */
.nav-toggle {
    /*display: flex;
    flex-direction: column;*/
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 4000; /* über Overlay */
}

    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: blue; /* Hamburger blau */
        display: block;
    }

/* OVERLAY-MENÜ UNTERHALB DER NAVBAR */
.nav-menu {
    position: fixed;
    top: 60px; /* direkt unter Navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #eee; /* hellgrau */
    color: blue;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1000; /* unter Navbar */
   /* padding: 20px;*/
    display: flex;
    flex-direction: column;
}

    .nav-menu.active {
        transform: translateY(0);
    }

    /* EINHEITLICHE MENÜZEILEN */
    .nav-menu li {
        list-style: none;
        padding: 4px 0;
    }

    .nav-menu a,
    .submenu-toggle {
        color: blue; /* Menütext blau */
        text-decoration: none;
        display: block;
        padding: 4px 0;
        line-height: 1.1;
    }

/* SUBMENÜ-HAUPTPUNKT (BUTTON) */
.submenu-toggle {
    background: none;
    border: none;
    font: inherit;
    margin: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.submenu-toggle::after {
    content: "▸";
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s ease;
    transform: scale(1.5); /* ← Pfeil 40% größer */
}

li.open > .submenu-toggle::after {
    transform: rotate(90deg) scale(1.5); /* Rotation + Größe */
}

/* SUBMENÜ */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: none; /* standardmässig zu */
    flex-direction: column;
    padding-left: 20px; /* Einrückung */
    margin-top: 2px;
    gap: 6px;
}

    .submenu.active {
        display: flex;
        max-height: 500px; /* ausreichend groß für alle Einträge */
    }
