/* === Allgemeines Layout === */
body {
 	font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333333;
}

/* Haupt-Layout */
.main-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.content {
    flex: 3;
    min-width: 300px;
    margin-right: 20px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

a {
    color: #0077C0;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

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


/* Sidebar Boxen */
.sidebar .box {
    background: #f9f9f9;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar .box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


.sidebar h3 {
    font-size: 1.1em;
    margin-top: 0;
}

.sidebar img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

.sidebar p {
    text-align: left;
    font-size: 0.9em;
    color: #555555;
}
footer {
    text-align: center;
    font-size: 0.85em;
    color: #888;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
}
footer a {
    color: #0077C0;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}


/* Fließtext */
h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #004080;
}

.content p {
    margin-bottom: 20px;
	    text-align: justify;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
	    text-align: justify;
}

/* === Swiper (Slider) === */
.swiper {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #004080;
}

.swiper-pagination-bullet {
    background: #004080;
}

/* === Galerie (Bildergruppen in Sidebar) === */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 15px; /* vertikal, horizontal */
}


.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.img-wrapper {
    width: 110px;
    height: 150px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
}

.img-wrapper img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.caption {
    margin-top: 1px;
    font-size: 0.9em;
    text-align: left;     /* wichtig */
    max-width: 110px;
}



/* === Newsbereich (Aktuelles) === */
.news-section {
    background-color: #f9f9f9;
    padding: 30px 20px;
    border-radius: 12px;
    margin: 50px 0;
}



.news-section h2 {
	    margin-top: 0;
    font-size: 1.8em;
    color: #004080;
    margin-bottom: 20px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.news-date {
    flex: 0 0 100px;
    font-weight: bold;
    color: #004080;
}

.news-text {
    flex: 1;
}

.news-text a {
    color: #004080;
    text-decoration: underline;
}

/* === Meetings und Aktivitäten Block === */
.additional-paragraphs-block {
    margin: 50px 0;
}

.additional-paragraphs-block h2 {
    font-size: 1.8em;
    color: #004080;
    margin-bottom: 20px;
}

.additional-paragraphs-block p {
    margin-bottom: 15px;
    color: #333;
}

/* === Mobile Optimierung === */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 0 10px;
    }

    .content, .sidebar {
        margin-right: 0;
        width: 100%;
    }

    h1 {
        font-size: 1.6em;
    }

    .news-section h2,
    .additional-paragraphs-block h2 {
        font-size: 1.4em;
    }

    p, li, .sidebar p, .sidebar .box {
        font-size: 1em;
    }

    .swiper {
        margin: 20px 0;
        max-width: 100%;
    }

    .swiper-slide img {
        border-radius: 6px;
    }

    .sidebar .box {
        padding: 12px;
        margin-bottom: 15px;
    }

    .gallery-item {
        flex: 1 1 100%;
    }

    .caption {
        font-size: 0.8em;
    }
}
