/* ------------------------- NAVIGATION ------------------------- */

nav {
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 0 0 10px 10px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    height: 100px;
    position: fixed;
    width: 100%;
    z-index: 20;
}

nav a {
    align-items: center;
    border-radius: 5px;
    color: var(--text-color);
    display: flex;
    font-size: 1.2rem;
    margin: 5px;
    margin-bottom: 15px;
    padding: 0 20px;
    text-decoration: none;
    transition: 500ms ease;
    height: 70%;
}

nav a:hover {
    background-color: var(--accent-color);
}

nav img {
    height: 70%;
    margin: 30px;
    margin-right: auto;
    width: auto;
}

.links-container {
    align-items: flex-end;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: row;
    height: 100%;
    justify-content: flex-end;
    width: 100%;
}

.open-sidebar-button,
.close-sidebar-button {
    display: none;
}

#sidebar-active {
    display: none;
}

/* ------------------------- WARENKORB-EBENE ------------------------- */

.card-section {
    align-items: end;
    background-color: var(--accent-color);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    height: 155px;
    justify-content: space-between;
    width: 100%;
    z-index: -1;
}

.card-section-links {
    display: flex;
    margin-left: 30px;
}

.card-section-links a,
.card-section-links p {
    color: var(--text-color);
    font-size: 0.7rem;
    margin-bottom: 12px;
    margin-right: 3px;
    margin-top: auto;
    text-decoration: none;
}

.card-section-links a:hover {
    color: var(--secondary-color);
}

.card-section-items {
    align-items: flex-start;
    background-color: var(--primary-color);
    border-radius: 20px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-right: 5px;
    padding-top: 5px;
    scale: 80%;
}

.card-section-items svg {
    margin-left: 15px;
    margin-right: -25px;
    margin-top: 5px;
}

.card-section svg {
    cursor: pointer;
    margin-bottom: 12px;
    margin-right: 25px;
}

.snipcart-items-count {
    align-items: center;
    background-color: var(--accent-color);
    border-radius: 1000px;
    display: flex;
    font-size: 0.8rem;
    font-weight: 600;
    height: 25px;
    justify-content: center;
    margin-left: -35px;
    margin-right: 5px;
    margin-top: 3px;
    width: 25px;
}

/* ------------------------- MEDIA QUERIES <=750px ------------------------- */

@media (max-width: 750px) {

    nav {
        position: fixed;
        width: 100%;
    }

    nav a {
        box-sizing: border-box;
        height: auto;
        justify-content: flex-start;
        padding: 20px 30px;
        width: 100%;
    }

    nav img {
        height: 70px;
    }

    .links-container {
        align-items: flex-start;
        background-color: var(--secondary-color);
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        flex-direction: column;
        justify-content: flex-start;
        position: fixed;
        right: -100%;
        top: 0;
        width: 300px;
        z-index: 10;
        transition: 0.75s ease-out;
    }

    .open-sidebar-button,
    .close-sidebar-button {
        cursor: pointer;
        display: block;
        padding: 20px;
    }

    #sidebar-active:checked ~ .links-container {
        right: 0;
    }

    #sidebar-active:checked ~ #overlay {
        height: 100%;
        left: 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 9;
    }
}
