.news {
    color: white;
    display: inline-block;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.newsContainer {
    width: 100%;
    overflow: hidden;
    background-color: red; /* Hintergrundfarbe für das gesamte Band */
    padding: var(--xs);
    box-sizing: border-box;
    white-space: nowrap;
    position: relative;
}

@keyframes ticker {
    0% {
        transform: translateX(450%);
    }
    100% {
        transform: translateX(-100%);
    }
}

#product-container {
    display: flex;
    justify-content: center; /* Zentriert die Karten in der Mitte des Bildschirms */
    flex-wrap: wrap; /* Karten umbrechen lassen, wenn kein Platz mehr ist */
    gap: 50px; /* Abstand zwischen den Karten */
    padding: 30px; /* Etwas Pufferraum */
    position: relative;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    #product-container {
        gap: 20px; /* Abstand zwischen den Karten */
        padding: 10px; /* Etwas Pufferraum */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.productOverview {
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 70vh;
    width: 100%;

    .temp-product {
        animation: fadeIn 0.5s ease-in-out;
        margin: var(--m);
    }

    .welcomeBanner {
        margin-top: calc(var(--xl) * 2);
        display: block;
        width: 100%;
        height: 60vh;
        overflow: hidden;
        margin-bottom: var(--l);
        position: relative;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            filter: brightness(0.5);
        }

        span {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            font-size: var(--l);
            font-weight: lighter;
            width: 100%;
            color: white;
        }
    }

    h1 {
        font-family: Figtree, sans-serif;
        font-weight: 600;
        padding-top: var(--xl);
        text-align: center;
        margin-bottom: var(--m);
        font-size: var(--l);
        span {
            margin: var(--s);
        }
    }
}

.fa-circle-info {
    position: relative;
}

.fa-circle-info:hover::after {
    content: "Leider ist es derzeit nur möglich, nur ein Produkt auf einmal zu kaufen. Wir arbeiten daran, diese Funktion zu verbessern.";
    position: absolute;
    bottom: 100%;
    font-family: Arial, Helvetica, sans-serif;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 8px;
    border-radius: var(--xs);
    font-size: var(--s);
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/*Einzelnes Produkt*/

.product-details-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 20px;
    gap: 20px;
    max-width: 1200px;
    margin: auto; /* Horizontales Zentrieren */
    position: absolute; /* Ermöglicht vertikales Zentrieren */
    top: 50%; /* Vertikales Zentrieren */
    left: 50%; /* Horizontales Zentrieren */
    transform: translate(-50%, -50%); /* Korrektur der Position */
}

.product-image img {
    max-width: 400px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.product-image p {
    color: gray;
    font-size: 14px;
    text-align: left;
}

.product-details {
    width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    hr {
        margin: 10px 0;
        border: 1px solid #ccc;
    }
}

.checkbox-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.numbers {
    display: flex;
    justify-content: space-between;
    font-size: var(--m);
    width: 100%;
    .price {
        position: relative;
        font-size: 24px;
        font-weight: bold;
    }
    .price::after {
        content: "inkl. MwSt.";
        display: block;
        font-size: var(--s);
        font-weight: normal;
        color: gray;
        position: absolute;
        left: 0;
        top: 100%; /* Position directly below the price */
        white-space: nowrap; /* Prevents line breaks */
        margin-top: 5px; /* Space between the price and the text */
    }
}

.available {
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-top: 15px;
    color: #4caf50;
    i {
        margin-right: 10px;
    }
}

.remarks input,
.remarks textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.buy-btn {
    background-color: #ffd700;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

.buy-btn:hover {
    background-color: #ffcc00;
}

.image-container {
    position: fixed;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 2;
    top: 0;
    pointer-events: none; /*Verhindert, dass der Container Klicks blockiert*/
    img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/*Neue Karten*/

.temp-product {
    font-family: "Helvetica", sans-serif;
    width: 20vw;
    height: auto;
    background-color: white;
    position: relative;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.5);
    .temp-image-container {
        width: 100%;
        aspect-ratio: 1/1;
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
    .temp-product-text {
        padding-left: var(--m);
        padding-bottom: var(--s);
        color: black;
        h2 {
            font-weight: 700;
            width: 90%;
            padding-left: 0;
            padding-bottom: 0;
            /* text-transform: inherit; Hier kann zwischen Uppercase/Lowercase gewählt werden */
        }
        .temp-colour {
            font-weight: 300;
            padding-left: 0;
            padding-bottom: 0;
        }
        .temp-price {
            font-weight: bold;
            font-size: var(--m);
            padding-left: 0;
        }
    }
    .temp-star,
    .temp-trash {
        position: absolute;
        color: white;
        right: var(--s);
        top: var(--s);
    }
}

/*Testphase*/
@media screen and (max-width: 768px) {
    .temp-product {
        width: 80vw;
    }
}

.temp-product:hover {
    transition: 0.5s ease;
    transform: scale(1.03);
}

/* New In */

.special {
    animation: glowing 4s infinite;
}

/*Neue Produktsektionen*/

/* Responsive Grid für Produktübersicht */
.product-overview-grid {
    margin: 0 auto;
    width: 80vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--m);
    margin-bottom: var(--m);
    justify-items: center;
    align-items: stretch;
}

.p-type {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.p-type-image-wrapper {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.p-type-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.2s ease;
}

.p-type-image-wrapper:hover img {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.p-type-heading {
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    background-color: var(--complBeigegelb);
    text-align: center;
}

@media (max-width: 768px) {
    .product-overview-grid {
        margin: 0 auto;
        width: 90vw;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s);
        margin-bottom: var(--m);
        justify-items: center;
        align-items: stretch;
    }

    .p-type {
        position: relative;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    .p-type-image-wrapper {
        width: 100%;
        height: 100%;
        aspect-ratio: 3/2;
        overflow: hidden;
    }

    .p-type-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.2s ease;
    }

    .p-type-image-wrapper:hover img {
        transform: scale(1.05);
        transition: transform 0.2s ease;
    }

    .p-type-heading {
        position: absolute;
        font-size: var(--s);
        bottom: 0;
        left: 0;
        color: white;
        background-color: var(--complBeigegelb);
        padding: var(--xs);
        text-align: center;
    }
}
