/* Grundlayout */
html, body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, #81a6ed, #5a9bd8, #4178be); /* angepasst */
    color: #fff;
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
}

/* Hauptbereich */
main {
    margin: 2rem auto;
    padding: 2rem;
    max-width: 900px;
    background-color: #0a2239;/*0a2239*/
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Überschriften */
main h1 {
    font-size: 2.5rem;
    color: #81a6ed;/*#abc4f2;*/
    margin-bottom: 2rem;
    padding-left: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #bcbec4; /*Farbe der Linie unter der Überschrift*/
}

main h2 {
    color: #81a6ed;
    margin-top: 1rem;
}

/* Vorstand-Liste als Flexbox-Container */
#vorstand-liste {
    display: flex;
    flex-wrap: wrap; /* Zeilenumbruch bei Platzmangel */
    gap: 1.5rem;
    justify-content: center;
}

/* Einzelne Vorstand-Person Container */
.vorstand-person {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    width: 28rem; /* Feste Breite */
    flex-shrink: 0; /* Keine Verkleinerung */
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.vorstand-person:hover {
    transform: translateY(-5px);
    box-shadow: 0 2px 10px rgba(10, 239, 230, 0.3);
}

.vorstand-person h2 {
    margin-top: 0;
    color: #81a6ed; /*Farbe der Überschrift in den Containern*/
    font-size: 1.3rem;
    padding: 1rem;
    border-bottom: 2px solid #9CA3AF;
}

.vorstand-person p {
    margin: 0.4rem 0;
    color: #bcbec4;/*Farbe von Namen, Adresse usw.*/
}

.vorstand-person a {
    color: #81a6ed; /*Farbe des E-Mail-Links*/
    text-decoration: none;
}

.vorstand-person a:hover {
    text-decoration: underline;
}
/* Responsive für kleinere Geräte */
@media (max-width: 600px) {
    /* Flexbox: Vorstandsliste untereinander */
    #vorstand-liste {
        flex-direction: column;
        align-items: center;
    }

    .vorstand-person {
        width: 95%;
    }

    /* Hauptcontainer schmaler für sichtbaren Rand */
    main {
        width: 95%!important;
        margin: 1.5rem auto;
        padding: 1.5rem;
    }

    main h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
