/* Globale Einstellungen */
:root {
    --color-primary: #38761D; /* Dunkles Grün (Samen-Thema) */
    --color-secondary: #D4EDC1; /* Helles, weiches Grün */
    --color-accent: #FFC300; /* Gelb/Gold für Akzente (Preis, Button-Hover) */
    --color-text-dark: #333;
    --color-text-light: #fff;
    --color-background: #F4F4F9;
    --color-card-bg: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-dark);
    line-height: 1.6;
}

/* Header */
header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8em;
}

#cart-summary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}

#cart-summary:hover {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
}

/* Main Content und Produktliste */
main {
    padding: 20px 5%;
}

h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 5px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--color-card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--color-primary);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-accent);
    margin: 15px 0;
}

/* Formulare und Buttons */
.add-to-cart-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 60px;
    text-align: center;
}

.add-to-cart-btn, .checkout-btn {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.add-to-cart-btn:hover, .checkout-btn:hover {
    background-color: #4CAF50; /* Hellere Grün-Schattierung */
}

/* Footer */
footer {
    text-align: center;
    padding: 15px 5%;
    margin-top: 30px;
    color: #888;
    border-top: 1px solid #ddd;
}

/* --- Bestellseite Layout --- */
.order-page-layout {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1.5fr; /* Warenkorb links, Kontakt rechts */
    max-width: 1000px;
    margin: 20px auto;
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 800px) {
    .order-page-layout {
        grid-template-columns: 1fr;
    }
}

/* Sektionen */
.cart-summary-section, .contact-info-section {
    background-color: var(--color-card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Warenkorb-Details */
.cart-items {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.95em;
}

.item-name {
    font-weight: bold;
    flex-grow: 1;
}

.item-qty {
    margin-right: 15px;
    color: #666;
}

/* Gesamtbeträge */
.cart-totals {
    padding-top: 10px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.final-total {
    font-size: 1.3em;
    color: var(--color-primary);
    border-top: 2px solid var(--color-secondary);
    margin-top: 10px;
    padding-top: 10px !important;
}

.discount-line span {
    color: #E74C3C; /* Rot für Rabatt */
}

/* Gutschein-Formular */
.coupon-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.coupon-form input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.coupon-form button {
    padding: 10px 15px;
    background-color: var(--color-accent);
    color: var(--color-text-dark);
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.coupon-message {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: bold;
}

.coupon-message.success {
    background-color: #D4EDC1; /* Helles Grün */
    color: var(--color-primary);
}

.coupon-message.error {
    background-color: #F8D7DA; /* Helles Rot */
    color: #721C24;
}

/* Kontakt-Formular */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    font-size: 1.1em;
    background-color: var(--color-primary); /* Hervorhebung für den finalen Schritt */
}

/* ... (Bestehendes CSS) ... */

/* --- Warenkorb Entfernen Button --- */
.remove-from-cart-btn {
    background: none;
    border: 1px solid #E74C3C; /* Rot */
    color: #E74C3C;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 15px;
    transition: background-color 0.2s, color 0.2s;
}

.remove-from-cart-btn:hover {
    background-color: #E74C3C;
    color: white;
}
.cart-item {
    align-items: center; /* Zentriert die Elemente vertikal im Warenkorb */
}