@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap" rel="stylesheet');

/* Navbar */
nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(250, 248, 242, 0.85);
    z-index: 1000;
    padding: 0 50px;
    backdrop-filter: blur(0px);
    background-color: transparent; /* Kein Hintergrund am Anfang */
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.legal-page nav {
    background-color: rgba(250, 248, 242, 0.85) !important;
    border-bottom: 1px solid rgba(20, 20, 20, 0.1);
    backdrop-filter: blur(5px);
}


nav.scrolled {
    background-color: rgba(250, 248, 242, 0.85); /* Hintergrund nach Scrollen */
    border-bottom: 1px solid rgba(20, 20, 20, 0.1); /* Leichter Rand unten */
    backdrop-filter: blur(5px);
}

/* Logo und Haupttext */
.logo-section {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen Logo und Text */
    flex-shrink: 0;
}

.logo-img {
    width: 65px;
    height: auto;
}

.logo-text {
    font-size: 21px;
    font-family: "Outfit", sans-serif;
    color: #141414;
    margin: 0;
    font-weight: bold;
    white-space: nowrap; /* Verhindert Zeilenumbrüche */
    margin-left: 2px;
}

/* Navbar Mitte */
.nav-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

/* Sidebar */
.sidebar ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar ul li a {
    color: black;
    font-size: 15px;
    letter-spacing: 1%;
    text-decoration: none;
    position: relative;
    padding: 5px 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar ul li {
    margin-top: 12px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    transform: translateY(-2px);
}

/* Punkt unter der Navigation */
.sidebar ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background-color: rgb(0, 0, 0);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar ul li a:hover::after,
.sidebar ul li a.active::after {
    opacity: 1;
}

/* Toggle-Button */
#toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #141414;
}

/* Responsive Design */
@media (max-width: 950px) {
    .logo-text {
        font-size: 20px;
    }

    .logo-img {
        width: 50px;
        height: auto;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 110px 24px 24px;
        background: transparent;
        backdrop-filter: none;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .sidebar ul {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 18px;
        width: min(520px, calc(100% - 48px));
        margin: 0;
        padding: 22px 18px;
        overflow-y: auto;
        background: #faf8f2;
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
        border: 1px solid rgba(0, 0, 0, 0.06);
        backdrop-filter: none;
    }

    .sidebar ul li {
        width: 100%; /* Menüpunkte füllen die gesamte Breite */
        text-align: center; /* Text zentriert */
        margin: 0; /* Vertikaler Abstand zwischen Links */
    }

    .sidebar ul li a {
        display: block; /* Block-Level-Element für vollständige Klickfläche */
        font-size: 16px; /* Lesbare Schriftgröße */
        color: #141414; /* Textfarbe */
        text-decoration: none; /* Keine Unterstreichung */
        padding: 5px; /* Zusätzlicher Abstand um die Links */
        transition: background-color 0.3s, color 0.3s; /* Weiche Übergänge */
    }
    
    /* Toggle-Button */
    #toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: #141414;
        z-index: 1100;
        transition: transform 0.3s ease; /* Smooth rotation animation */
    }

    /* Toggle-Button im aktiven Zustand */
    #toggle.rotate {
        transform: rotate(45deg); /* Rotiert den Button um 45 Grad */
    }

    /* Kein Scrollen im Hintergrund */
    body.no-scroll {
        overflow: hidden; /* Verhindert Scrollen des Hintergrunds */
    }
}
