/* Globale Stile & Resets */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1,
h2,
h3 {
    color: #0056b3;
    /* Hauptfarbe für Überschriften */
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* Abgerundete Ecken für Bilder */
}

/* Header & Navigation */
header {
    background: #0056b3;
    /* Dunkelblau für den Header */
    color: #fff;
    padding: 1rem 0;
    border-bottom: #004085 3px solid;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 15px;
    border-radius: 50%;
    /* Rundes Logo, falls gewünscht */
}

.club-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.dropdown {
    position: relative;
}

.dropbtn {
    background-color: #007bff;
    /* Helleres Blau für Button */
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropbtn:hover,
.dropbtn:focus {
    background-color: #0056b3;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    /* Kleiner Abstand zum Button */
    border-radius: 5px;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content li a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content li a:hover {
    background-color: #ddd;
}

.dropdown-content li a[aria-current="page"] {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}


/* Main Content Sections */
main {
    padding: 20px 0;
}

section {
    background-color: #fff;
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* News Section */
.news-section .news-container {
    position: relative;
    /* Für absolute Positionierung der News-Items */
    overflow: hidden;
    /* Verhindert, dass nicht-aktive Items den Fluss stören */
    min-height: 300px;
    /* Mindesthöhe, um Layout-Sprünge zu vermeiden */
}

.news-item {
    display: none;
    /* Standardmäßig alle News ausblenden */
    text-align: center;
}

.news-item.active-news {
    display: block;
    /* Nur aktives News-Item anzeigen */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    /* Stellt sicher, dass das Bild den Bereich füllt, ohne das Seitenverhältnis zu verzerren */
    margin-bottom: 15px;
}

.news-controls {
    text-align: center;
    margin-top: 20px;
}

.news-controls button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.news-controls button:hover {
    background-color: #0056b3;
}

/* Donation Section */
.donation-info {
    text-align: center;
}

.qrcode {
    max-width: 150px;
    margin: 15px auto;
}

.donate-button {
    display: inline-block;
    background-color: #28a745;
    /* Grün für Spendenbutton */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

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

/* Radio Section */
.radio-player {
    margin-top: 15px;
}

.radio-player audio {
    border-radius: 5px;
}

.radio-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

/* Contact Section */
.contact-info address p {
    margin-bottom: 0.5rem;
}

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    /* Stellt sicher, dass der abgerundete Rand den Iframe umschließt */
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    display: inline;
    margin: 0 10px;
}

.footer-nav ul li a {
    color: #fff;
}

.footer-nav ul li a:hover {
    color: #007bff;
    /* Akzentfarbe beim Hovern */
}

/* Responsive Design Anpassungen */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .club-name {
        margin-bottom: 10px;
        /* Abstand zum Menü-Button auf kleinen Bildschirmen */
    }

    .dropdown {
        width: 100%;
        /* Menü-Button nimmt volle Breite ein */
        margin-top: 10px;
    }

    .dropbtn {
        width: 100%;
        text-align: left;
        padding-left: 20px;
        /* Bessere Ausrichtung des Textes */
    }

    .dropbtn::before {
        /* Optional: Icon zentrieren, wenn Text linksbündig */
        content: '☰ ';
        margin-right: 5px;
    }


    .dropdown-content {
        position: static;
        /* Im Fluss des Dokuments, nicht absolut */
        box-shadow: none;
        border-top: 1px solid #ddd;
    }

    .news-image {
        max-height: 250px;
    }
}

/* Stile für den Gebetskalender-Bereich */
.calendar-section {
    text-align: center;
    /* Zentriert die Überschrift und den Container */
}

.calendar-container {
    display: grid;
    /* Erstellt ein Raster mit Spalten, die mindestens 250px und maximal 1fr breit sind */
    /* Auf großen Bildschirmen passen so 3-4 Bilder nebeneinander */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    /* Abstand zwischen den Bildern */
    margin-top: 20px;
}

.calendar-image {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    /* Zeigt an, dass die Bilder klickbar sind (für die Lightbox) */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar-image:hover {
    transform: scale(1.03);
    /* Leichter Zoom-Effekt beim Darüberfahren */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Anpassung für kleinere Bildschirme (z.B. Handys) */
@media (max-width: 560px) {
    .calendar-container {
        /* Auf sehr kleinen Bildschirmen nur 2 Spalten */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Der unsichtbare Hintergrund-Container für die Lightbox */
.lightbox {
    display: none;
    /* Standardmäßig ausgeblendet */
    position: fixed;
    /* Bleibt beim Scrollen an Ort und Stelle */
    z-index: 1000;
    /* Stellt sicher, dass sie über allem anderen liegt */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Schwarz mit 85% Transparenz */

    /* Zentriert das Bild mit Flexbox */
    align-items: center;
    justify-content: center;

    /* Verhindert, dass das Bild die Lightbox verlässt */
    overflow: hidden;
}

/* Das Bild innerhalb der Lightbox */
.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    /* Stellt sicher, dass das ganze Bild sichtbar ist */
    display: block;
    margin: auto;
    border-radius: 8px;
    /* Animation für das Einblenden */
    animation: zoomIn 0.4s ease-in-out;
}

/* Die Bildbeschreibung unter dem Bild */
.lightbox-caption {
    color: #ccc;
    text-align: center;
    padding: 15px;
    font-size: 1rem;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

/* Der Schließen-Button (das 'X') */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #bbb;
}

/* Die Einzoom-Animation für das Bild */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.event-box {
    background-color: #f9f9f9;
    border: 1px solid #e7e7e7;
    border-left: 5px solid #007bff;
    /* Blauer Akzentstreifen links */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.event-box h2 {
    margin-top: 0;
}

.event-box img {
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}

.holiday-list {
    list-style-type: none;
    /* Keine Aufzählungspunkte */
    padding-left: 0;
}

.holiday-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.holiday-list li:last-child {
    border-bottom: none;
}

/* Container für die aufklappbare Veranstaltungsliste */
.event-list-section {
    margin-top: 30px;
}

.event-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    /* Wichtig für abgerundete Ecken bei den Kindelementen */
}

.event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    cursor: pointer;
}

.event-date {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 15px;
}

.event-title {
    flex-grow: 1;
    /* Nimmt den verfügbaren Platz ein */
    margin: 0;
    font-size: 1.2rem;
}

.toggle-details-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #007bff;
    cursor: pointer;
    padding: 0 10px;
}

.event-details {
    display: none;
    /* Standardmäßig ausgeblendet */
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

/* Diese Klasse wird vom JavaScript hinzugefügt, um die Details anzuzeigen */
.event-details.show {
    display: block;
}

.event-details p {
    margin: 0 0 10px 0;
}

.event-details p:last-child {
    margin-bottom: 0;
}

/* ======================================== */
/* Styling für die Kontaktseite             */
/* ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Zwei gleich breite Spalten */
    gap: 30px;
    /* Abstand zwischen den Spalten */
    margin-bottom: 30px;
}

.contact-details-box,
.contact-form-box {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e7e7e7;
}

.contact-details-box h2,
.contact-form-box h2 {
    margin-top: 0;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-details-box address p {
    margin-bottom: 10px;
}

.contact-details-box address hr {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

/* Kontaktformular Stile */
#contactForm div {
    margin-bottom: 15px;
}

#contactForm label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    /* Wichtig, damit padding nicht die Breite beeinflusst */
    font-family: 'Poppins', sans-serif;
}

#contactForm textarea {
    resize: vertical;
    /* Erlaubt nur vertikales Vergrößern */
}

.submit-button {
    /* Wiederverwendung der .donate-button Stile oder eigene */
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

#form-status {
    margin-top: 15px;
    font-weight: bold;
}

#form-status.success {
    color: #28a745;
}

#form-status.error {
    color: #dc3545;
}


.vorstand-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid #e0e0e0;
}

.vorstand-section h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 20px;
}

.vorstand-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    /* Verteilt die Namen gleichmäßig */
    gap: 15px;
    text-align: center;
}

.vorstand-list li {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    min-width: 150px;
    /* Mindestbreite für jeden Namen */
}

/* Responsive Anpassungen für das Kontakt-Grid */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        /* Eine Spalte auf kleineren Bildschirmen */
    }
}

/* ======================================== */
/* Styling für die Fotogalerie-Seite        */
/* ======================================== */

#photo-gallery-page h1 {
    text-align: center;
    margin-bottom: 15px;
}

#photo-gallery-page p {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

.photo-gallery-container {
    display: grid;
    /* Erstellt ein Raster mit Spalten, die mindestens 200px breit sind */
    /* und sich den verfügbaren Platz teilen (max 1fr) */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    /* Abstand zwischen den Bildern */
}

.gallery-thumbnail {
    width: 100%;
    height: 200px;
    /* Feste Höhe für einheitliches Aussehen im Raster */
    object-fit: cover;
    /* Stellt sicher, dass das Bild den Bereich füllt, ohne das Seitenverhältnis zu verzerren */
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 560px) {
    .photo-gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        /* Kleinere Mindestbreite */
        gap: 10px;
    }

    .gallery-thumbnail {
        height: 150px;
        /* Kleinere Höhe für Thumbnails */
    }
}

/* Das Lightbox-CSS (aus einer früheren Antwort) sollte bereits in Ihrer styles.css vorhanden sein.