* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #3a4a3c;
    background-color: #faf9f6;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5735;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #8fbc8f;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Main Content Wrapper */
main {
    max-width: 860px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 3rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    color: #2d5735;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    color: #4a6c4f;
    max-width: 600px;
    margin: 0 auto 0.5rem;
}

.subtitle {
    font-style: italic;
    color: #6b8970;
    font-size: 0.95rem;
}

/* Products Section */
.products {
    padding: 2rem 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #f0f5f1;
}

.product-content {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5735;
    margin-bottom: 0.75rem;
}

.product-description {
    color: #5a6c5d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a6c4f;
    font-size: 0.9rem;
}

.product-features li::before {
    content: "🌲";
    position: absolute;
    left: 0;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d5735;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-selector select {
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
    color: #3a4a3c;
    background: white;
    cursor: pointer;
}

.add-to-cart {
    flex: 1;
    background-color: #8fbc8f;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #7aa87a;
}

/* Testimonials */
.testimonials {
    background-color: #f5f9f5;
    padding: 3rem 1rem;
    margin-top: 3rem;
}

.testimonials h2 {
    text-align: center;
    color: #2d5735;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    min-height: 150px;
}

.testimonial {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial.active {
    opacity: 1;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #4a6c4f;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #6b8970;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-btn {
    background-color: #8fbc8f;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.testimonial-btn:hover {
    background-color: #7aa87a;
}

/* Info Section */
.info-section {
    padding: 3rem 1rem;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.info-text h2 {
    color: #2d5735;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-text p {
    color: #5a6c5d;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.info-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Checkout Section */
.checkout-section {
    padding: 3rem 1rem;
    background-color: #fff;
}

.checkout-section h2 {
    color: #2d5735;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cart-items {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 200px; /* Mindesthöhe für bessere Darstellung */
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #2d5735;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #6b8970;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-summary {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #5a6c5d;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2d5735;
    border-top: 2px solid #e0e0e0;
    padding-top: 1rem;
}

#paypal-button-container {
    margin-top: 2rem;
    transition: opacity 0.3s ease;
}

#paypal-button-container[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty Cart Message */
.empty-cart-message {
    text-align: center;
    color: #6b8970;
    padding: 3rem 2rem;
    font-size: 1.1rem;
    background: #f0f5f1;
    border-radius: 8px;
    margin: 0;
    display: block;
}

/* Thank You Message */
#thank-you {
    text-align: center;
    padding: 3rem 1rem;
}

#thank-you h2 {
    color: #2d5735;
    font-size: 2rem;
    margin-bottom: 1rem;
}

#thank-you p {
    color: #5a6c5d;
    font-size: 1.1rem;
}

/* AGB Checkbox */
.agb-checkbox {
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.agb-checkbox.error {
    background-color: #ffebee;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #d32f2f;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.agb-checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
    cursor: pointer;
}

.agb-checkbox label {
    font-size: 0.9rem;
    color: #5a6c5d;
    line-height: 1.4;
}

.agb-checkbox.error label {
    color: #d32f2f;
    font-weight: 500;
}

.agb-checkbox a {
    color: #2d5735;
    text-decoration: underline;
}

.agb-checkbox a:hover {
    color: #1a3620;
}

.agb-error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    font-weight: 500;
}

.agb-checkbox.error .agb-error-message {
    display: block;
}

/* FAQ Section */
.faq {
    background-color: #fff;
    padding: 3rem 1rem;
}

.faq h2 {
    text-align: center;
    color: #2d5735;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question h3 {
    color: #2d5735;
    font-size: 1.1rem;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #8fbc8f;
    font-weight: bold;
}

.faq-answer {
    padding: 0 1rem 1rem 1rem;
    display: none;
}

.faq-answer p {
    color: #5a6c5d;
    line-height: 1.6;
}

/* Terms & Shipping */
.terms-shipping {
    background-color: #f9f9f9;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.terms-shipping h3 {
    color: #2d5735;
    text-align: center;
    margin-bottom: 1.5rem;
}

.terms-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.terms-content p {
    color: #5a6c5d;
    margin-bottom: 0.75rem;
}

.terms-content small {
    color: #6b8970;
    font-size: 0.85rem;
}

/* Footer */
footer {
    background-color: #2d5735;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer-link {
    color: #a5d6a7;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal h2 {
    color: #2d5735;
    margin-bottom: 1rem;
}

.modal h3 {
    color: #4a6c4f;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal p {
    color: #5a6c5d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Order Confirmation Modal */
#orderDetails {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.order-detail-row:last-child {
    border-bottom: none;
    font-weight: bold;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2d5735;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 2100;
    display: none;
}

.cookie-content {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-accept, .cookie-decline {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.cookie-accept {
    background-color: #8fbc8f;
    color: white;
}

.cookie-accept:hover {
    background-color: #7aa87a;
}

.cookie-decline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-decline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (min-width: 500px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .cart-content {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 500px) {
    nav {
        padding: 0.75rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .info-text h2 {
        font-size: 1.5rem;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}