nav {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    background-color: #17181A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-nav {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #17181A;
    width: 70%;
    max-width: 2000px;
    position: relative;
    overflow: visible;
    height: auto;
}

.nav-left {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 10px;
    width: fit-content;
    cursor: pointer;
    user-select: none;
}

.nav-left img {
    height: 32px;
}

.nav-left-text {
    display: flex;
    color: #fff;
    padding-top: 4px;
}

.nav-left-text p {
    font-weight: 300;
}

.nav-left-text span {
    font-weight: 500;
    color: #7B586B;
}

.ausverkauft {
    color: #c0392b;
    font-weight: 500;
    border: #c0392b solid 1px;
}

.nav-right-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #7B586B;
    color: #fff;
    width: 140px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-right-btn:hover {
    background-color: #8a6579;
    transform: translateY(-2px);
}

.nav-right {
    display: flex;
    justify-content: right;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 24px;
}

.hamburger-menu .line {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

.bottom-nav {
    background-color: #1E2022;
    display: flex;
    justify-content: center;
    width: 100%;
    border-bottom: 1px solid #2F3235;
    padding: 15px;
    overflow: visible;
}

.bottom-nav-content {
    background-color: #1E2022;
    width: 70%;
    padding: 5px;
    display: flex;
    gap: 25px;
    max-width: 2000px;
}

.bottom-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #9A9A9B;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.block {
    display: flex;
    gap: 10px;
    user-select: none;
}

.block p {
    display: flex;
    align-items: center;
    gap: 2px;
    text-align: center;
    padding-top: 1px;
}

.block p > span {
    font-size: 20px;
}

.block > span {
    font-size: 22px;
    color: #7B586B;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2F3235;
    visibility: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 250px;
    margin-top: 10px;
}

.dropdown-menu:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    height: 10px;
    width: 100%;
    background-color: transparent;
}

.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 3px;
    background-color: transparent;
    display: block;
    width: 100%;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #3a3d40;
}

.bottom-nav-link:hover .dropdown-menu,
.dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
}

@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    nav {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .top-nav {
        padding: 10px;
        justify-content: space-between;
        width: 100%;
        overflow-x: hidden;
        max-width: 100%;
    }

    .nav-left {
        margin-left: 15px;
        overflow-x: hidden;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        margin-right: 15px;
        z-index: 1001;
    }
    
    .hamburger-menu .line {
        transition: all 0.3s ease;
    }
    
    nav.active .hamburger-menu .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    nav.active .hamburger-menu .line:nth-child(2) {
        opacity: 0;
    }
    
    nav.active .hamburger-menu .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .bottom-nav {
        display: none;
        flex-direction: column;
        padding: 15px 10px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .bottom-nav-content {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .bottom-nav-link {
        padding: 10px;
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .block {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }

    .dropdown-menu {
        position: static;
        margin-top: 5px;
        visibility: visible;
        opacity: 1;
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: #2F3235;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        margin-left: 0;
        padding: 10px 5px;
    }
    
    .dropdown-menu a {
        width: 100%;
        padding: 15px;
        border-radius: 5px;
        transition: background-color 0.2s ease;
        display: block;
        text-align: left;
        font-size: 16px;
        position: relative;
        z-index: 10;
        color: #fff;
        margin-bottom: 5px;
        background-color: #3a3d40;
    }
    
    .dropdown-menu a:active {
        background-color: #7B586B;
    }

    nav.active .bottom-nav {
        display: flex;
    }

    .bottom-nav-link.active .dropdown-menu {
        display: flex;
    }

    .block p {
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }
    
    .block p span.material-symbols-rounded {
        transition: transform 0.3s ease;
    }
    
    .bottom-nav-link.active .block p span.material-symbols-rounded {
        transform: rotate(180deg);
    }
}