/* Global styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('/images/Hintergrund.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
}

header {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
/* Allgemeine Scroll-Button-Stile */
#scroll-to-top,
#scroll-to-bottom {
    position: fixed;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    font-size: 20px;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

#scroll-to-top::before {
    content: "▲"; /* Pfeil nach oben */
}

#scroll-to-bottom::before {
    content: "▼"; /* Pfeil nach unten */
}

#scroll-to-top {
    top: 20%; /* Position auf großen Bildschirmen */
}

#scroll-to-bottom {
    bottom: 20%; /* Position auf großen Bildschirmen */
}

#scroll-to-top:hover,
#scroll-to-bottom:hover {
    background-color: #0056b3;
}

}
#email-message {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 10px;
    color: #333;
    max-width: 800px;
    margin: 20px auto;
}
.summary-box {
    background-color: rgba(255, 255, 255, 0.9); /* Weißer Hintergrund mit Transparenz */
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.6;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

form label {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #555;
}

form input {
    width: 100%;
    max-width: 350px;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-sizing: border-box;
    appearance: none;
}

form button {
    padding: 10px 20px;
    font-size: 1.2em;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #218838;
}

.tomato-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tomato-info {
    text-align: center;
    margin-bottom: 10px;
}

.tomato-info h2 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #007bff;
}

.tomato-info p {
    margin: 0;
    font-size: 1em;
    line-height: 1.4;
    color: #555;
}

/* Styling für Ein-/Ausklapp-Button */
.toggle-description {
    background-color: #008CBA; /* Hauptfarbe des Buttons */
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

.toggle-description:hover {
    background-color: #005f73; /* Farbe bei Hover */
    transform: scale(1.05); /* Leichte Vergrößerung bei Hover */
}

.toggle-description:active {
    transform: scale(0.95); /* Leichte Verkleinerung bei Klick */
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
}

.carousel-images {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.carousel img {
    max-width: 95%;
    max-height: 300px;
    border-radius: 10px;
    display: none; /* Standardmäßig alle Bilder ausblenden */
    margin: auto;
}

.carousel img.active {
    display: block; /* Nur das aktive Bild anzeigen */
}

.carousel .prev,
.carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(128, 128, 128, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    z-index: 10;
    height: 100%;
    width: 50px;
    border-radius: 10px;
}

.carousel .prev {
    left: -50px;
}

.carousel .next {
    right: -50px;
}

.carousel .prev:hover,
.carousel .next:hover {
    background-color: rgba(96, 96, 96, 0.7);
}

.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.quantity-controls button {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border: none;
    background-color: #28a745;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.2s ease-in-out;
}

.quantity-controls button:hover {
    background-color: #218838;
}

.quantity-controls input {
    text-align: center;
    width: 80px;
    font-size: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 0 10px;
    appearance: none;
}

.price-display {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
}

footer button {
    padding: 15px 30px;
    font-size: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
.action-button {
    padding: 15px 30px;
    font-size: 16px;
    color: white;
    background-color: #007bff; /* Blaue Farbe */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

.action-button:hover {
    background-color: #0056b3; /* Dunkleres Blau bei Hover */
    transform: scale(1.05); /* Leichtes Vergrößern */
}

.action-button:active {
    transform: scale(0.95); /* Leichtes Verkleinern beim Klicken */
}

footer button:hover {
    background-color: #0056b3;
}

/* Tablet Styles (max 768px) */
@media (max-width: 768px) {
    #scroll-to-top,
    #scroll-to-bottom {
        width: 50px; /* Kleinere Buttons */
        height: 50px; /* Standardhöhe */
        font-size: 20px;
        right: 20px; /* Abstand zum rechten Rand */
    }

    #scroll-to-top {
        top: 20%; /* Obere Position */
    }

    #scroll-to-bottom {
        bottom: 20%; /* Untere Position */
    }

    /* Karussell-Anpassungen */
    .carousel {
        max-width: 250px; /* Verkleinerung des Karussells */
    }

    .carousel img {
        max-width: 90%; /* Bildgröße anpassen */
    }

    .carousel .prev {
        left: -40px; /* Abstand links */
    }

    .carousel .next {
        right: -40px; /* Abstand rechts */
    }
}

@media (max-width: 480px) {
    #scroll-to-top,
    #scroll-to-bottom {
        display: none; /* Versteckt die runden Buttons auf Smartphones */
    }

    #scroll-area-top,
    #scroll-area-bottom {
        display: flex; /* Sichtbar machen */
        position: fixed;
        left: 0;
        right: 0;
        height: 25px; /* Höhe des Streifens */
        z-index: 1000; /* Über dem Inhalt */
        cursor: pointer;
        background-color: rgba(0, 123, 255, 0.8); /* Blau mit Transparenz */
        color: white;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        font-weight: bold;
        text-transform: uppercase;
    }

    #scroll-area-top {
        top: 0; /* Oben */
    }

    #scroll-area-bottom {
        bottom: 0; /* Unten */
    }
}
/* Auf größeren Bildschirmen NICHT anzeigen */
@media (min-width: 481px) {
    #scroll-area-top,
    #scroll-area-bottom {
        display: none !important;
    }
}
