* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', Arial, sans-serif;
    background-color: #f4f7f2;
    color: #2c3e2f;
    line-height: 1.6;
}

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

/* ----- Header & Navigation ----- */
header {
    background-color: #1e3b2a;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}
.logo a i {
    color: #a8d5a2;
    margin-right: 8px;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 5px;
}

nav ul li a {
    color: #e8f0e5;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: background 0.3s, color 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    background-color: #a8d5a2;
    color: #1e3b2a;
}

/* ----- Diashow (Slideshow) ----- */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeAnimation 25s infinite;
}

/* 5 Bilder – jeweils 5 Sekunden sichtbar */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }
.slide:nth-child(5) { animation-delay: 20s; }

@keyframes fadeAnimation {
    0%   { opacity: 0; }
    4%   { opacity: 1; }   /* 1 Sekunde Einblendung */
    20%  { opacity: 1; }   /* 4 Sekunden halten */
    24%  { opacity: 0; }   /* 1 Sekunde Ausblendung */
    100% { opacity: 0; }
}

/* ----- Hauptinhalt ----- */
.main-content {
    background: #ffffff;
    padding: 40px 20px;
    margin: 30px auto;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.main-content h1 {
    font-size: 2.2rem;
    color: #1e3b2a;
    margin-bottom: 15px;
}

.main-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #3d5542;
}

.main-content p a {
    color: #2a7a3b;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #a8d5a2;
}
.main-content p a:hover {
    color: #1a5327;
}

/* ----- Kontakt & Widgets (Sidebar-Ersatz) ----- */
.info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-box {
    flex: 1 1 200px;
    min-width: 180px;
}

.info-box h3 {
    font-size: 1.3rem;
    color: #1e3b2a;
    border-bottom: 3px solid #a8d5a2;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.info-box p {
    margin: 8px 0;
    font-size: 1rem;
}
.info-box .phone {
    color: #1e3b2a;
    font-weight: 700;
}

.widget-link {
    display: inline-block;
    background: #f0f7ee;
    padding: 20px 25px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #1e3b2a;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    max-width: 220px;
    border: 1px solid #dce8d8;
}

.widget-link i {
    font-size: 2.8rem;
    color: #2a7a3b;
    margin-bottom: 8px;
    display: block;
}

.widget-link:hover {
    background: #dce8d8;
    transform: translateY(-3px);
}

.widget-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.content-wrapper {
    background: #ffffff;
    padding: 40px 35px;
    margin: 40px auto;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-wrapper h1 {
    font-size: 2.2rem;
    color: #1e3b2a;
    margin-bottom: 10px;
    text-align: center;
}

.content-wrapper .subhead {
    text-align: center;
    font-size: 1.1rem;
    color: #3d5542;
    margin-bottom: 35px;
}

/* ----- Ansprechpartner (2er-Spalten) ----- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 45px;
}

.contact-card {
    background: #f4f9f2;
    padding: 25px 20px;
    border-radius: 12px;
    border-left: 5px solid #2a7a3b;
    transition: transform 0.2s;
}
.contact-card:hover {
    transform: translateY(-3px);
}

.contact-card h3 {
    font-size: 1.3rem;
    color: #1e3b2a;
    margin-bottom: 5px;
}

.contact-card .role {
    color: #4a6b50;
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.contact-card .phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a5327;
}
.contact-card .phone i {
    color: #2a7a3b;
    margin-right: 8px;
    width: 20px;
}

/* ----- Kontaktformular ----- */
.form-headline {
    font-size: 1.5rem;
    color: #1e3b2a;
    border-bottom: 3px solid #a8d5a2;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e3b2a;
}
.form-group label .required {
    color: #c0392b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dce8d8;
    border-radius: 8px;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #fcfdfb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a7a3b;
    box-shadow: 0 0 0 3px rgba(42, 122, 59, 0.15);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #1e3b2a;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-family: 'Raleway', Arial, sans-serif;
}

.submit-btn:hover {
    background-color: #2a7a3b;
    transform: scale(1.02);
}

.submit-btn i {
    margin-right: 8px;
}

/* Hinweis zum Datenschutz */
.privacy-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: #6a7f6e;
}

.about-list {
    text-align: left;
    display: grid;
    justify-content: center;
}
/* ----- Footer ----- */
footer {
    background-color: #1e3b2a;
    color: #e8f0e5;
    padding: 25px 0;
    margin-top: 30px;
    text-align: center;
}

footer a {
    color: #a8d5a2;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer p {
    margin-top: 12px;
    font-size: 0.85rem;
    opacity: 0.7;
}

   /* Galerie-Grid */
    .galerie-wrapper {
        max-width: 1200px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .galerie-wrapper h1 {
        color: #1e3b2a;
        text-align: center;
    }

    .subhead {
        text-align: center;
        color: #3d5542;
        margin-bottom: 30px;
    }

    .galerie-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .galerie-item {
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transition: transform 0.2s, box-shadow 0.2s;
        background: #fff;
    }

    .galerie-item:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

    .galerie-item a {
        display: block;
        width: 100%;
        height: 200px; /* feste Höhe für einheitliche Vorschaugröße */
        overflow: hidden;
    }

    .galerie-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Bilder werden einheitlich zugeschnitten */
        display: block;
        transition: transform 0.3s;
    }

    .galerie-item a:hover img {
        transform: scale(1.05);
    }

    /* Lightbox (Overlay) */
    .lightbox {
        display: none; /* standardmäßig versteckt */
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.85);
        justify-content: center;
        align-items: center;
        flex-direction: column;
        cursor: pointer; /* Klick auf Hintergrund schließt */
    }

    .lightbox.show {
        display: flex;
    }

    .lightbox-content {
        max-width: 90%;
        max-height: 80%;
        border-radius: 8px;
        box-shadow: 0 0 30px rgba(0,0,0,0.7);
        cursor: default; /* Bild selbst nicht schließen (optional) */
    }

    .lightbox-close {
        position: absolute;
        top: 30px;
        right: 40px;
        font-size: 48px;
        font-weight: 700;
        color: #fff;
        cursor: pointer;
        transition: color 0.2s;
        z-index: 10000;
    }

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

/* ----- Responsive Anpassungen ----- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }
    nav ul {
        justify-content: center;
    }
    nav ul li a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    .slideshow-container {
        height: 250px;
    }
    .main-content h1 {
        font-size: 1.6rem;
    }
    .info-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .widget-wrapper {
        justify-content: center;
    }
    footer a {
        display: inline-block;
        margin: 4px 8px;
    }

    .content-wrapper {
        padding: 25px 15px;
    }
    .contact-wrapper h1 {
        font-size: 1.6rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .galerie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .galerie-item a {
        height: 150px;
    }
    .lightbox-content {
        max-width: 95%;
        max-height: 70%;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 180px;
    }
}
