/* =========================
   Grundlayout
========================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background-color: #f4f6f4;
    color: #333;
}

main {
    padding: 25px 20px;
    background-color: #ffffff;
    max-width: 1000px;
    margin: auto;
}

/* =========================
   Header
========================= */

.site-header {
    background:
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url("bilder/header.jpg") center / cover no-repeat;
    color: #ffffff;
    padding: 30px 20px;
}

.header-inhalt {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

/* Logos */
.logo img {
    height: 90px;
    width: auto;
}

/* Header-Text */
.header-text {
    text-align: center;
}

.header-text h1 {
    margin: 0;
    font-size: 2.2em;
}

.header-text p {
    margin-top: 8px;
    font-size: 1.05em;
}

/* =========================
   Navigation
========================= */

nav {
    background-color: #e2e2e2;
    padding: 12px 10px;
    text-align: center;
}

nav a {
    margin: 6px 12px;
    text-decoration: none;
    color: #2f6b2f;
    font-weight: bold;
    display: inline-block;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

nav a:hover {
    background-color: #2f6b2f;
    color: #ffffff;
}

/* =========================
   Texte
========================= */

h1 {
    margin-top: 0;
}

h2 {
    color: #2f6b2f;
    margin-top: 30px;
}

p {
    line-height: 1.6;
}

/* =========================
   Footer
========================= */

footer {
    background-color: #2f6b2f;
    color: white;
    text-align: center;
    padding: 15px 10px;
    font-size: 0.9em;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* =========================
   Responsive Design
========================= */

@media (max-width: 800px) {
    .logo img {
        height: 60px;
    }

    .header-text h1 {
        font-size: 1.8em;
    }

    nav a {
        display: block;
        margin: 8px 0;
    }
}

@media (max-width: 500px) {
    .logo-links,
    .logo-rechts {
        display: none;
    }
}

/* =========================
   Lightbox Galerie
========================= */

.gallery a img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.gallery a img:hover {
    transform: scale(1.03);
}

/* Overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Aktiv */
.lightbox:target {
    display: flex;
}

/* Großes Bild */
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 25px rgba(0,0,0,0.7);
    border-radius: 6px;
}

/* Schließen */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.lightbox {
    touch-action: pan-y;
}

/* =========================
   Aktuelles & Termine
========================= */

.aktuelles {
    background: #eef5ee;
    border-left: 5px solid #2f6b2f;
    padding: 20px;
    margin: 30px 0;
}

.aktuelles h2 {
    margin-top: 0;
}

.aktuelles ul {
    list-style: none;
    padding-left: 0;
}

.aktuelles li {
    margin-bottom: 10px;
}

.mehr-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #2f6b2f;
    text-decoration: none;
}

