.header-background-image {
    height: 25vh;
}

.bestellarten {
    .card {
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        color: var(--text-color-black);

        .card-body .link {
            color: inherit; /* Ensure that links inside the card inherit the color of the text */
        }

        .card-body .link:hover {
            color: var(--logo-brown); /* Optionally change color on hover if needed */
        }
    }

    .card:hover {
        transform: scale(1.05); /* Slightly enlarge the card on hover */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 1); /* Deeper shadow on hover */
    }

}

.order-card-einzeln {

    border-radius: 8px;

    .btn-collapse {
        background-color: inherit;
        text-decoration: none;
        box-shadow: none;
        padding: 0;
        border: none;
        border-radius: 8px;

        i {
            color: var(--text-color-black);
            transform: rotate(180deg);
            transition: transform 0.3s ease;
        }
    }

    .collapsed i {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .product {

        border: 1px solid rgba(0, 0, 0, .125);
        border-radius: 8px;
        margin-bottom: 0.5em;

        .product-name {
            max-width: 55%;
        }

        .img-container {
            width: auto;
            max-width: 75px; /* Limit the width */

            img {
                width: 100%;
                height: 100%;
                object-fit: cover; /* Ensures the image maintains aspect ratio */
                border-radius: 8px 0 0 8px; /* Rounded corners */
            }
        }

        .price {
            margin: 0 0.5rem;
        }

        .quantity-group {
            display: flex;
            align-items: center;
            padding: 0 0.5rem;
        }

        .quantity-btn {
            width: 38px;
            height: 38px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.2rem;
            border-radius: 50%;
            z-index: 1;
            background-color: white;
        }

        .quantity-btn:hover {
            background-color: #6c757d;
        }

        .quantity-input {
            width: 50px;
            text-align: center;
            font-size: 1rem;
            padding: 0.25rem;
            z-index: 0;

        }


        .quantity-input:focus {
            border-color: var(--grey-active); /* Optional: change the border color on focus */
            box-shadow: 0 0 0 .15rem var(--grey-active); /* Yellow shadow */
            outline: none; /* Remove default browser outline */
        }

        input[type="number"]::-webkit-inner-spin-button,
        input[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        /* For Firefox */

        input[type="number"] {
            -moz-appearance: textfield;
        }
    }

}


.hint-for-order {

    padding-bottom: 0.5rem;
}

.hint-for-order p {
    padding-bottom: 0;
}

.order-card-woche {

    border-radius: 8px;
    transition: all 0.5s ease-in-out;

    .wochenhinweis_small {
        display: none;
    }

    .btn-collapse {
        background-color: inherit;
        text-decoration: none;
        box-shadow: none;
        padding: 0;
        border: none;
        border-radius: 8px;

        i {
            color: var(--text-color-black);
            transform: rotate(180deg);
            transition: transform 0.3s ease;
        }
    }

    .collapsed i {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .product {

        border: 1px solid rgba(0, 0, 0, .125);
        border-radius: 8px;
        margin-bottom: 0.5em;

        .product-legend {

            p {
                margin: 0 1rem;
            }
        }

        .img-container {
            width: auto;
            max-width: 75px; /* Limit the width */

            img {
                width: 100%;
                height: 100%;
                object-fit: cover; /* Ensures the image maintains aspect ratio */
                border-radius: 8px 0 0 8px; /* Rounded corners */
            }
        }

        .empty-img {
            width: 75px;
        }

        .price {
            margin: 0 0.5rem;
            min-width: 20%;
        }

        .quantity-group {
            display: flex;
            align-items: center;
        }

        .quantity-btn {
            width: 38px;
            height: 38px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.2rem;
            border-radius: 50%;
            z-index: 1;
            background-color: white;
        }

        .quantity-btn:hover {
            background-color: #6c757d;
        }

        .quantity-input {
            width: 50px;
            text-align: center;
            font-size: 1rem;
            padding: 0.25rem;
            z-index: 0;

        }


        .quantity-input:focus {
            border-color: var(--grey-active); /* Optional: change the border color on focus */
            box-shadow: 0 0 0 .15rem var(--grey-active); /* Yellow shadow */
            outline: none; /* Remove default browser outline */
        }

        .quantity-input:disabled {
            color: #e9ecef;
        }
    }

}

.order-data {
    .card {

        border-radius: 8px;

        input {
            max-width: none;
            background-color: #ffffff;
        }

        .q-text {
            margin-bottom: 0.5rem;
        }

        hr {
            margin: 0.5rem 0;
        }
    }

    .current-week {
        border-bottom: 1px solid var(--grey-active);
    }

    #week-dates {
        p {
            margin: 0.5rem 0 0;
        }
    }
}
.no-select { user-select: none; -webkit-user-select:none; -ms-user-select:none; }
.click-toggle { cursor: pointer; }

.rhythmswitcher {
    .custom-switch .form-check-input {
        width: 50px;
        height: 25px;
        background-color: #ddd;
        border: none;
        cursor: pointer;
        transition: background 0.3s ease-in-out, box-shadow 0.2s ease-in-out;
    }

    .custom-switch .form-check-input:checked {
        background-color: #28a745;
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
    }

    .custom-switch .form-check-input:focus {
        box-shadow: 0 0 4px rgba(40, 167, 69, 0.6);
    }

    .custom-switch .form-check-input::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 18px;
        height: 18px;
        background: white;
        border-radius: 50%;
        transition: transform 0.3s ease-in-out;
    }

    .custom-switch .form-check-input:checked::before {
        transform: translateX(25px);
    }

}

#product-side {
    width: 100%;
}

#order-side {
    width: 100%;
    margin-top: 3rem !important;
}

.wochenhinweis_large {
    display: none !important;
}

.bestellarten {
    padding: 0 2rem;
}

.order-card-einzeln {


    .product {


        .product-name {
            max-width: none;

            h5 {

                font-size: 1rem;
            }
        }

        .product-controls {
            margin-top: 10px;
            width: 100%;
            text-align: left;
        }

        .price {
            margin: 0 15px 0 0;
        }

        .img-container {
            max-width: 100px;
            margin-right: 0.25rem !important;
        }
    }
}


.order-card-woche {

    .wochenhinweis_small {
        display: block !important;
        min-width: 33%;
    }

    .product {


        .product-details {
            width: 100%;

        }

        .product-controls {
            flex-direction: column !important;
        }

        .product-legend {
            width: 200%;
            padding-right: 8px;
            justify-content: space-around !important;

            p {
                margin: 0 0.95rem;
            }
        }


    }

}
