/* ================= Variablen ================== */

:root {

    --aktivOderHoverLinkFarbe: #3e45d9;
}


.header {
    width: 100%;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    font-size: 130%;
    background: white;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.16);
}

.header_container {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    padding: 22px 36px;
    align-items: center;    
    position: relative;
    max-width: 1440px;
    height: 100%;
    min-height: inherit;
    width: 100%;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* Logo-Container */
.header .logo img {
    transition: transform 0.3s ease; /* sanfte Animation */
    display: block; /* verhindert kleine Verschiebungen */
}

/* Hover-Effekt: Logo vergrößern */
.header .logo:hover img {
    transform: scale(1.2); /* skaliert 20% größer */
}

/*button {
  border: none;
  padding: 4px 8px 4px 20px;
  background-color: white;
  font-size: 200%;
  font-weight: 100;
  position: absolute;
  top: 4px;
  right: 0;
  display: none;
}
*/
.menu-toggle {
    border: none;
    background: white;
    width: 40px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: black;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu {
    display: flex;
    align-items: center;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    gap: 3vw;
}

.menu li {
    display: flex;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: inherit;
    display: block;
}


/* ============ Links ========== */
.menu a:link,
.menu a:visited {
    text-decoration: none;
    color: inherit;
}

.menu a:hover {
    color: var(--aktivOderHoverLinkFarbe);
}

.menu a.current {
    color: var(--aktivOderHoverLinkFarbe);
}


/* ============ small screens ========== */

@media (max-width: 768px) {
    :root {
        --container-padding: 0 8px;
        /* matches header mobile padding */
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Stack logo + menu vertically if needed */
    .header_container {
        padding: 22px 8px;
    }

    /* Menu list vertical and hidden by default */
    .menu ul {
        flex-direction: column;
        gap: 0;
        margin: 1rem 0 0 0;

        width: 100%;
        background-color: white;
        box-shadow: 0 5px 3px rgba(0, 0, 0, 0.3);

        position: absolute;
        left: 0;
        top: 60px;

        transition: all 0.5s;
        transform: translateY(-100vh);
        /* hidden by default */
    }

    /* Show menu when visible */
    .menu ul.sichtbar {
        transform: translateY(0);
    }

    /* Menu items */
    .menu li {
        border-top: 1px solid rgba(0, 0, 0, 0.3);
        padding: 24px 8px;
    }

    .menu li:first-of-type {
        border-top: none;
    }
}