body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0f7f0;
    text-align: center;
}


header {
    background: #ffffff;
    color: #1a5a2a;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    font-family: 'Segoe UI', sans-serif;
    font-style: italic;
    font-size: 32px;
    font-weight: 700;
    border-bottom: 3px solid #2d7a3d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}
.header-logo {
    height: 80px;
    width: auto;
    flex-shrink: 0;
}

.social-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

h1 {
    color: #000000;
    font-size: 24px;
    font-weight: 700;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    font-style: italic;  
}

h2 {
    color: #1a5a2a;
    font-size: 24px;
    font-weight: 700;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

h3 {
    color: #000000;
    font-size: 24px;
    font-weight: 700;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    
    
}

nav {
    background: #ffffff;
    padding: 8px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    width: calc(100% - 24px);
    margin: 10px auto 6px;
    padding: 10px 14px;
    border: 1px solid #2d7a3d;
    border-radius: 8px;
    background: #ffffff;
    color: #1a5a2a;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.nav-toggle:hover {
    background: #2d7a3d;
    color: #ffffff;
}

nav a {
    color: #1a5a2a;
    text-decoration: none;
    padding: 6px 14px;
    display: inline-block;
    font-family: 'Segoe UI', sans-serif;
    transition: 0.3s ease;
    font-weight: 700;
}   

nav a:hover {
    background: #2d7a3d;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 700;
}

.dropdown {
    display: inline-block;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
}


.dropbtn {
    background: #ffffff;
    color: #1a5a2a;
    padding: 6px 14px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    transition: 0.3s ease;
}
    

.dropbtn:hover {
    background: #2d7a3d;
    color: #ffffff;
    border-radius: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #1a5a2a;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-family: 'Segoe UI', sans-serif;
    transition: 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #e8f5e9;
    color: #2d7a3d;
}

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

@media (max-width: 900px) {
    header {
        padding: 10px 14px;
        gap: 12px;
        font-size: clamp(20px, 5vw, 24px);
        line-height: 1.2;
        text-align: center;
        flex-wrap: wrap;
    }

    .header-logo {
        height: 56px;
    }

    .nav-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 8px 12px 12px;
        border-top: 1px solid #e0e0e0;
    }

    nav.nav-open {
        display: flex;
    }

    nav a,
    .dropbtn {
        width: 100%;
        text-align: left;
        border-radius: 6px;
        box-sizing: border-box;
        padding: 10px 12px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 4px;
        border-radius: 6px;
        box-shadow: none;
        background-color: #f6fbf6;
        overflow: hidden;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

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

    .dropdown-content a {
        text-align: left;
        padding: 10px 12px;
    }
}

@media (max-width: 520px) {
    header {
        font-size: 18px;
        padding: 10px 12px;
        gap: 10px;
    }

    .header-logo {
        height: 46px;
    }
}

.container {
    width: 80%;
    margin-top: 0 auto;
    overflow: hidden;
    text-align: justify;
    padding: 14px 12px;
    box-sizing: border-box; /*mehr Rand*/
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin-bottom: 24px;
  
}

.container iframe {
    border: 0;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.container a {
    width: fit-content;
    margin: 0 auto;
}

.running-text {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f6fbf6;
    color: #1a5a2a;
    font-weight: 700;
    margin: 6px 0 18px;
    padding: 10px 0;
}

.running-text span {
    display: inline-block;
    padding-left: 100%;
    animation: runningText 14s linear infinite;
}

.home-news {
    margin: 0 0 18px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e1ede1;
    border-left: 4px solid #2d7a3d;
    border-radius: 10px;
    text-align: left;
}

.home-news h2 {
    margin: 0 0 10px;
    font-size: 22px;
    text-align: left;
    color: #1a5a2a;
    padding-bottom: 0;
}

.home-news-list {
    margin: 0;
    padding-left: 20px;
}

.home-news-list li {
    margin: 8px 0;
    color: #202020;
    line-height: 1.45;
}

.home-news-list li::marker {
    color: #2d7a3d;
}

.home-focus {
    margin: 12px 0 10px;
    padding: 16px 18px;
    background: #f6fbf6;
    border: 1px solid #e1ede1;
    border-left: 4px solid #2d7a3d;
    border-radius: 10px;
}

.home-focus-intro {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.5;
    color: #1a5a2a;
    font-weight: 600;
}

.home-focus-list {
    margin: 0;
    padding-left: 22px;
}

.home-focus-list li {
    margin: 7px 0;
    color: #202020;
    line-height: 1.45;
}

.home-focus-list li::marker {
    color: #2d7a3d;
}

@keyframes runningText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}


main {
    text-align: center;
    
}

.container-kontakt {
    width: 60%;
    margin: auto;
    overflow: hidden;
    text-align: center;
    padding: 0 16px 36px; /*mehr Rand*/
    box-sizing: border-box; /*mehr Rand*/
}

.kontakt-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 8px 0 18px;
    text-align: left;
}

.kontakt-card {
    width: min(100%, 300px);
    background: #ffffff;
    border: 1px solid #e6efe6;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    padding: 14px 16px;
}

.kontakt-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    text-align: left;
}

.kontakt-card p {
    margin: 6px 0;
    line-height: 1.45;
    color: #2b2b2b;
}

.kontakt-link {
    color: #000000;
    text-decoration: none;
    
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kontakt-link:hover {
    text-decoration: underline;
}

/* Bankverbindung Karte */
.bank-card {
    margin: 10px auto 30px;
    max-width: 520px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6efe6;
    overflow: hidden;
    text-align: left;
}

.bank-card__header {
    background: linear-gradient(135deg, #000000 0%, #282928 100%);
    color: #ffffff;
    padding: 16px 20px;
}

.bank-card__title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.bank-card__subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

.bank-card__body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f6fbf6;
    border-radius: 8px;
    border: 1px solid #e3f1e3;
}

.bank-label {
    font-size: 12px;
    font-weight: 700;
    color: #2d7a3d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bank-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
}

.bank-copy {
    border: 1px solid #2d7a3d;
    background: #ffffff;
    color: #2d7a3d;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.bank-copy .social-icon {
    margin-right: 0;
}

.bank-copy:hover {
    background: #2d7a3d;
    color: #ffffff;
}

.bank-copy--primary {
    background: #2d7a3d;
    color: #ffffff;
    border-color: #2d7a3d;
}

.bank-copy--primary:hover {
    background: #1f5c2e;
    border-color: #1f5c2e;
}

.bank-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 0;
}

.bank-copy-status {
    font-size: 12px;
    color: #2d7a3d;
    min-height: 16px;
}

.bank-card__footer {
    padding: 12px 20px 16px;
    font-size: 12px;
    color: #4b4b4b;
    background: #ffffff;
    border-top: 1px dashed #e6efe6;
}

@media (max-width: 700px) {
    .kontakt-grid {
        justify-content: stretch;
    }

    .kontakt-card {
        width: 100%;
    }

    .container-kontakt {
        width: 100%;
    }

    .bank-card {
        max-width: 100%;
    }

    .bank-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .bank-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Eingebetteter Google Calendar (Agenda) */
.calendar-embed {
    background: #ffffff;
    border-bottom: 1px solid #e6efe6;
    padding: 12px;
    display: flex;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;

}


/* Align top edge of sidebar and slideshow within the centered content-wrapper */
.content-wrapper {
    display: flex;
    align-items: flex-start; /* Aligns both sidebar and slideshow to the top */
    margin-top: 0;
}

.content-wrapper .slideshow-container {
    margin-top: 0 auto; /* Ensures slideshow aligns with the top of the sidebar */
}

footer {
    position: fixed; 
    bottom: 0;       
    left: 0;
    width: 100%;
    height: 20px;
    background: #1a5a2a;
    color: #ffffff;
    text-align: center;
    padding: 0;
    margin-top: auto;
    width: 100%;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    
}

footer p {
    margin: 0;
    padding: 2px 0;
    font-size: 12px;
}

footer a {
    color: #ffffff;
    font-size: 12px;
}

footer a:visited {
    color: #ffffff;
    font-size: 12px;
}

/* Diashow */

.slideshow-container {
    position: relative;
    
    margin-top: 0px auto;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide {
    position: relative;
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slide.fade {
    animation: fade 1s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 3px;
    user-select: none;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots-container {
    text-align: center;
    padding: 20px 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #717171;
}


img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Ensures the image fits within its container */
    border-radius: 8px;
}

.jugendleiterbild {
    float: left;
    width: auto;
    max-width: 45%;
    max-height: 320px;
    height: auto;
    margin: 4px 18px 10px 0;
}

.clear-float {
    clear: both;
}
