/* NEWS CAROUSEL */
.news-carousel {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
    overflow: visible; /* wichtig, damit Schatten/Abstände sichtbar bleiben */
     /* Puffer links/rechts */
}

.news-carousel > h2 {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto 10px;
}

.news-carousel > p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Track / Scroll-Container */
.news-track {
     display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px; /* kein padding mehr */
}

/* Spacer falls gewünscht */
.news-track .spacer {
    flex: 0 0 20px;
}

/* Zentrieren, wenn wenige Elemente */
.news-track.center {
    justify-content: center;
    overflow-x: hidden;
}

/* Cards */
.news-card {
    flex:0 0 calc(25% - 15px);
    background:#fff;
    border-radius:10px;
    padding:20px;
    text-align:center;
    text-decoration:none;
    color:#000;
    box-shadow:0 5px 15px rgba(0,0,0,0.4);
    transition:transform 0.3s;
    scroll-snap-align: start;
    
}

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

.news-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}


/* Varianten / Buttons innerhalb Cards */


/* MOBILE / TABLET BREAKPOINTS */
@media (max-width:1000px){
.product-card{
    flex:0 0 calc(33.333% - 14px);
}
}

@media (max-width:700px){
.product-card{
    flex:0 0 calc(50% - 10px);
}
}

@media (max-width:500px){
.product-card{
    flex:0 0 100%;
}
}

/* Optional: Scrollbar etwas schöner verstecken */
.news-track::-webkit-scrollbar {
    height: 8px;
}

.news-track::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.news-track::-webkit-scrollbar-track {
    background: transparent;
}