/* ================================= */
/* 🌍 Allgemeine Einstellungen       */
/* ================================= */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
}

/* ================================= */
/* 🔝 Navigationsleiste              */
/* ================================= */
nav {
    background-color: #333;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s;
    display: inline-block;
}

nav a:hover,
nav a.active {
    background-color: #555;
}

/* ================================= */
/* 🏠 Header                         */
/* ================================= */
header {
    text-align: center;
    padding: 20px;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    color: #333;
}

.rechts {
    margin-left: 35px;
}

/* ================================= */
/* 🛒 Warenkorb-Produkt-Divisionen   */
/* ================================= */
.cart-items {
    margin: 15px 40px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    align-items: center;
    flex-wrap: wrap;
}

.cart-item-details {
    flex: 3;
}

.cart-item-details .product-name {
    font-weight: bold;
    font-size: 1rem;
}

.cart-item-details .product-price {
    color: #888;
    font-size: 0.9rem;
}

.cart-item-quantity {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-form {
    display: flex;
    align-items: center;
}

.quantity-button {
    background-color: #ddd;
    border: none;
    padding: 6px 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-button:hover {
    background-color: #ccc;
}

.quantity-form span {
    margin: 0 8px;
    font-size: 1.2rem;
    font-weight: bold;
}

.cart-item-total {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cart-item-action {
    flex: 0.5;
    text-align: center;
}

.cart-item-action .remove {
    color: #e74c3c;
    text-decoration: none;
    font-size: 1.5rem;
    display: block;
    margin-top: 5px;
    transition: color 0.3s;
}

.cart-item-action .remove:hover {
    color: #c0392b;
}

.cart-item-action .remove i {
    font-size: 1.5rem;
}

/* ================================= */
/* 🏷 Gesamtpreis und Kauf-Button    */
/* ================================= */
.checkout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 40px 0 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.total-price {
    font-size: 1.6rem;
    font-weight: bold;
}

.checkout-button {
    display: flex;
    justify-content: flex-start;
}

.checkout-button .btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    font-size: 1.3rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.checkout-button .btn:hover {
    background-color: #45a049;
}

/* ================================= */
/* 📜 Footer                         */
/* ================================= */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* ================================= */
/* 📱 Responsive (mobile)            */
/* ================================= */
@media (max-width: 768px) {
    nav a {
        display: block;
        margin: 8px auto;
        font-size: 1rem;
        width: fit-content;
        background-color: #444;
    }

    .cart-items,
    .checkout {
        margin: 15px 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-quantity,
    .cart-item-total,
    .cart-item-action {
        width: 100%;
        margin-top: 10px;
        justify-content: flex-start;
    }

    .checkout {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-button {
        width: 100%;
        justify-content: flex-start;
    }

    header h1 {
        font-size: 1.5rem;
    }
}
