/* =========================================================
   GRUNDEINSTELLUNGEN
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: #333;
    line-height: 1.6;
}


/* =========================================================
   ALLGEMEIN
   ========================================================= */

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.section {
    padding: 70px 0;
}

.section-light {
    background: #f1f1f1;
}

.section-dark {
    background: #252525;
    color: #fff;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-heading p {
    color: #777;
}

.section-dark .section-heading p {
    color: #ccc;
}


/* =========================================================
   BANNER / HERO
   ========================================================= */

.hero {
    min-height: 360px;

    /*
       Wenn du ein eigenes Banner hast, kannst du hier
       das Bild aktivieren:
   background:
        linear-gradient(
            135deg,
            #4b6b3c,
            #78985b
        );
    */
	background-image: url("bilder/banner.jpg");
    

 

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
}

.hero-overlay {
    width: 100%;
    padding: 70px 0;

    background: rgba(0, 0, 0, 0.20);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.35);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);

    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.logo {
    font-weight: bold;
    font-size: 1.25rem;
    color: #4b6b3c;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #4b6b3c;
}


/* =========================================================
   WILLKOMMEN
   ========================================================= */

.welcome {
    padding: 65px 0;
    background: white;
    text-align: center;
}

.welcome h2 {
    color: #4b6b3c;
    font-size: 2rem;
    margin-bottom: 20px;
}

.welcome p {
    max-width: 750px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
}


/* =========================================================
   VERANSTALTUNGEN
   ========================================================= */

.events {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.12);
}

.event-date {
    background: #4b6b3c;
    color: white;

    padding: 20px;

    text-align: center;
}

.event-date .day {
    display: block;

    font-size: 2.5rem;
    font-weight: bold;

    line-height: 1;
}

.event-date .month {
    display: block;

    margin-top: 5px;

    font-size: 0.9rem;
    font-weight: bold;

    letter-spacing: 2px;
}

.event-content {
    padding: 25px;
}

.event-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.event-info {
    color: #4b6b3c;
    font-weight: 600;
    margin-bottom: 15px;
}


/* =========================================================
   DOWNLOADS
   ========================================================= */

.downloads {
    max-width: 800px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-card {
    display: flex;
    align-items: center;

    gap: 20px;

    padding: 20px 25px;

    background: white;

    border-radius: 10px;

    text-decoration: none;
    color: #333;

    box-shadow:
        0 4px 15px rgba(0,0,0,0.07);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.download-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(0,0,0,0.11);
}

.download-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf3e9;

    border-radius: 10px;

    font-size: 1.7rem;
}

.download-card h3 {
    margin-bottom: 3px;
}

.download-card p {
    color: #777;
    font-size: 0.95rem;
}

.download-arrow {
    margin-left: auto;

    font-size: 1.7rem;
    color: #4b6b3c;
}


/* =========================================================
   IMPRESSUM
   ========================================================= */

.imprint {
    max-width: 750px;
    margin: 0 auto;
}

.imprint h3 {
    color: #a8c58d;
    margin-top: 25px;
    margin-bottom: 8px;
}

.imprint h3:first-child {
    margin-top: 0;
}

.imprint p {
    color: #ddd;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: #181818;
    color: #aaa;

    padding: 25px 0;
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

footer a {
    color: #aaa;
    text-decoration: none;
}

footer a:hover {
    color: white;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .events {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: 320px;
    }

}


/* =========================================================
   HANDY
   ========================================================= */

@media (max-width: 600px) {

    .section {
        padding: 50px 0;
    }


    /* Navigation */

    .nav-container {
        min-height: auto;

        padding-top: 15px;
        padding-bottom: 15px;

        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        width: 100%;

        justify-content: center;

        gap: 8px;

        flex-wrap: wrap;
    }

    .nav-links a {
        padding: 8px 10px;

        font-size: 0.9rem;
    }


    /* Banner */

    .hero {
        min-height: 280px;

        text-align: center;
    }

    .hero-overlay {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }


    /* Willkommen */

    .welcome {
        padding: 45px 0;
    }

    .welcome h2 {
        font-size: 1.7rem;
    }


    /* Veranstaltungen */

    .events {
        grid-template-columns: 1fr;
    }

    .event-card {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }


    /* Downloads */

    .download-card {
        padding: 18px;

        gap: 15px;
    }

    .download-icon {
        width: 45px;
        height: 45px;

        font-size: 1.4rem;
    }

    .download-card h3 {
        font-size: 1rem;
    }

    .download-card p {
        font-size: 0.85rem;
    }

    .download-arrow {
        font-size: 1.4rem;
    }


    /* Footer */

    footer .container {
        flex-direction: column;

        text-align: center;
    }

}


/* =========================================================
   SEHR KLEINE HANDYS
   ========================================================= */

@media (max-width: 380px) {

    .container {
        width: 94%;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .nav-links {
        gap: 3px;
    }

    .nav-links a {
        font-size: 0.82rem;
        padding: 7px;
    }

    .download-card {
        gap: 10px;
    }

    .download-arrow {
        display: none;
    }

}

/* =========================================================
   VERANSTALTUNGEN - DYNAMISCH
   ========================================================= */

.events-loading,
.no-events {
    grid-column: 1 / -1;

    text-align: center;

    padding: 30px;

    color: #777;
}


/* Kleines Kalender-Symbol */

.event-calendar-icon {
    font-size: 2.5rem;
}


/* Flyer */

.event-flyer {
    display: block;

    width: 100%;
    max-width: 220px;

    height: 150px;

    object-fit: cover;

    margin-top: 20px;

    border-radius: 8px;

    cursor: pointer;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.15);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.event-flyer:hover {

    transform: scale(1.03);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.2);

}


/* =========================================================
   GROSSES BILD / MODAL
   ========================================================= */

.image-modal {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0,0,0,0.88);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

}


.image-modal.active {

    opacity: 1;

    visibility: visible;

}


/* Großes Bild */

.image-modal img {

    display: block;

    max-width: 95vw;

    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 6px;

    box-shadow:
        0 10px 50px rgba(0,0,0,0.5);

}


/* Schließen-Button */

.modal-close {

    position: absolute;

    top: 15px;
    right: 20px;

    width: 50px;
    height: 50px;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,0.15);

    color: white;

    font-size: 2rem;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease;

}


.modal-close:hover {

    background: rgba(255,255,255,0.3);

}


/*
 * Während das Bild geöffnet ist,
 * soll die Seite nicht mitscrollen.
 */

body.modal-open {

    overflow: hidden;

}


/* =========================================================
   HANDY
   ========================================================= */

@media (max-width: 600px) {

    .event-flyer {

        max-width: 100%;

        height: 180px;

    }


    .image-modal {

        padding: 15px;

    }


    .image-modal img {

        max-width: 100%;

        max-height: 85vh;

    }


    .modal-close {

        top: 10px;
        right: 10px;

        width: 45px;
        height: 45px;

    }

}
