html, body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, #81a6ed, #5a9bd8, #4178be);
    color: white;
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
}

.welcome, section {
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 2rem;
    color: black;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.welcome {
    text-align: center;
    align-items: center;
    width: fit-content;
}

.welcome h1 {
    font-size: 40px;
}

.row.justify-content-lg-center {
    align-items: flex-start;
}

.content-section {
    background-color: #1e2e46 /*backgrund für was*/
}

/* Einheitliche Farben für News und Termine Überschriften */
#news h2, #termine h2, #map h2 {
    color: white;
    border-bottom: 2px solid #9CA3AF;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#termine, #news {
    background: #0a2239;
    color: #b7b8b6;
    border: 2px solid #34675c;
    box-shadow: 0 0 20px #91b1ff;
}

@media (min-width: 991px) {
    #termine {
        width: 25%;
        margin-right: 1%;
    }
    #news {
        width: 64%;
        margin: 0 5%;
    }
}

.list-group-item {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* News Container Cards */
#news-container .card {
    background: #13406b;
    color: #f0f0f0;
    border-left: 5px solid #5d9b1b; /*406b13*/
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

#news-container .card:hover {
    transform: translateY(-5px) scale(1.02);
    background: #1b5d9b;
    border-left: 5px solid #1d641a;/*5d9b1b*/
}

/* Termine-Liste – lebendiger */
#termine-list li {
    background: linear-gradient(to right, #6da828, #558c1c);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease, transform 0.2s ease;
}

#termine-list li:hover {
    background:  linear-gradient(to right, #87c440, #67ad1e) ;
    transform: scale(1.02);
    cursor: default;
}

/* Hintergrund-Wrapper für Slideshow */
#slideshow-background {
    position: relative;
    width: 100%;
    background: url('/frontend/assets/BilderHomepage/Fussballplatz_1.jpg') no-repeat center center fixed;
    background-size: cover;
    margin-bottom: 20px;
    padding: 1.5rem 0;
    box-sizing: border-box;
}

#slideshow-background::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(32, 58, 67, 1));
    pointer-events: none;
}

/* Slideshow Container */
#slideshow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 5px;
}

#prev-image, #next-image {
    width: 25%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid black;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

#prev-image:hover, #next-image:hover {
    opacity: 0.9;
}

/* Hauptbild-Wrapper */
#main-image-wrapper {
    width: 40%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

/* Hauptbild */
#slideshow-image {
    width: 100%;
    height: 100%;
    border: 1px solid black;
    border-radius: 0.5rem;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    cursor: default;
}

iframe {
    max-width: 800px;
    height: 400px;
    border: 0;
}

.maps-container {
    padding: 2rem 1rem;
    border-radius: 1rem;
}

.wrapper-center {
    display: flex;
    justify-content: center;
}

.maps-container {
    width: 80%;
    max-width: 800px;
    color: white;
    padding: 2rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    text-align: center;
    margin-bottom: 3rem;
}


.maps-container h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.maps-container iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Vorschau-Bilder auf kleinen Bildschirmen ausblenden */
@media (max-width: 767px) {
    #prev-image,
    #next-image {
        display: none;
    }
    #main-image-wrapper {
        width: 100%;
        aspect-ratio: 4 / 3;
    }
}