body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #ffffff;
    text-align: center;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.maennchen {
    max-width: 100px;
    height: auto;
    margin-right: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.logo-rechts {
    max-width: 100px;
    height: auto;
    margin-left: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

h1 {
    color: #0056b3; /* Blau */
    margin: 0;
}

nav {
    background-color: #ffeb3b; /* Gelb */
    padding: 10px;
    text-align: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
}

nav a:hover {
    color: #003d7a;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mannschaften {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mannschaft-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
}

.mannschaft {
    width: 48%;
    text-align: center;
}

.mannschaft img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mitglieder-dropdown {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.mitglieder-dropdown summary {
    cursor: pointer;
    padding: 14px 18px;
    background-color: #0056b3;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    list-style: none;
}

.mitglieder-dropdown summary:hover {
    background-color: #004494;
}

.mitglieder-dropdown summary::-webkit-details-marker {
    display: none;
}

.mitglieders {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.mannschaft-liste h4 {
    margin: 0 0 10px;
}

.mannschaft-liste ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mannschaft-liste li {
    margin: 6px 0;
}

.training {
    margin-top: 40px;
    text-align: left;
}


.training p {
    margin: 10px 0;
    max-width: 700px;
}

.mannschaft h3,
.jugendmannschaft h3,
.mannschaft-header-row h3 {
    margin: 12px 0 10px;
    color: #0056b3;
}

.jugendmannschaft {
    width: 48%;
    max-width: 520px;
    text-align: center;
    margin: 20px auto 0;
}

.jugendmannschaft img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.vorstand {
    width: 100%;
}

.vorstand-top {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.vorstand-middle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.vorstand-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.vorstand-top .mitglied {
    margin-bottom: 20px;
    text-align: center;
    width: auto;
    max-width: 300px;
}

.vorstand-middle .mitglied,
.vorstand-bottom .mitglied {
    margin-bottom: 20px;
    text-align: center;
    width: auto;
    max-width: 300px;
}

.mitglied img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    object-fit: cover;
    object-position: top;
}

footer {
    background-color: #0056b3;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    position: static;
    width: 100%;
    bottom: auto;
}

.veranstaltungen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.event-description {
    text-align: center;
    max-width: 800px;
    margin-bottom: 20px;
}

.event-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.event-gallery {
    gap: 20px;
    width: 100%;
}

.wachtkopftreff-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.vereinsmeisterschaft-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.veranstaltungen h3 {
    color: #0056b3;
    margin: 30px 0 20px;
    text-align: center;
}

.spielplaene {
    margin-top: 40px;
    text-align: center;
}

.spielplaene h2 {
    color: #0056b3;
    margin-bottom: 10px;
}

.spielplaene p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.spielplan-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.external-link {
    display: inline-block;
    padding: 12px 20px;
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.external-link:hover {
    background-color: #004494;
}

.external-link::after {
    content: ' ↗';
    margin-left: 6px;
}

@media (max-width: 900px) {
    .header-content {
        flex-wrap: wrap;
        gap: 16px;
    }

    .maennchen,
    .logo-rechts {
        max-width: 80px;
        margin: 0;
    }

    .mannschaft-container {
        flex-direction: column;
        width: 100%;
    }

    .mannschaft {
        width: 100%;
    }

    .jugendmannschaft {
        width: 100%;
        max-width: none;
    }

    .mitglieder-dropdown {
        max-width: 100%;
    }

    .mitglieders {
        grid-template-columns: 1fr;
    }

    .vorstand-top,
    .vorstand-middle,
    .vorstand-bottom {
        grid-template-columns: 1fr;
    }

    .mannschaft, .mitglied {
        width: 100%;
    }
}
