body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: #f8f8f8;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-basis: 66.66%;
    text-align: right;
}

.logo a {
    display: inline-block;
}

.logo img {
    max-height: 80px;
    width: auto;
}

nav {
    flex-basis: 33.33%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

nav .menu.open {
    display: block;
    width: 100%;
    text-align: center;
}

nav .menu li {
    margin: 0;
}

nav .menu li a {
    display: block;
    padding: 0.7em 1em;
    text-decoration: none;
    color: #555;
}

nav .hamburger {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    display: block;
}

main {
    padding: 1em;
}





.hero {
    background-color: #e9e9e9; /* Fallback-Farbe */
    background-image: url('images/hero-background.jpg'); /* Pfad zum Hintergrundbild */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2em;
    text-align: center;
    margin-bottom: 1em;
    color: #333; /* Grundlegende Textfarbe */
    display: flex; /* Aktiviere Flexbox für die Anordnung des weißen Kastens */
    justify-content: center; /* Zentriere den weißen Kasten horizontal */
    align-items: center; /* Zentriere den weißen Kasten vertikal */
    height: auto; /* Passe die Höhe nach Bedarf an */
}

.hero-content {
    background-color: white; /* Weißer Hintergrund für den Kasten */
    padding: 1.5em; /* Innenabstand des weißen Kastens */
    border-radius: 5px; /* Abgerundete Ecken für den weißen Kasten (optional) */
    text-align: center; /* Zentriere den Text innerhalb des weißen Kastens */
    /* Optional: Steuere die Breite des weißen Kastens */
    /* max-width: 80%; */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Schatten für den Kasten */
}

.hero-content h1 {
    margin-top: 0; /* Entferne den oberen Standardabstand der Überschrift */
    color: #333; /* Farbe der Überschrift im weißen Kasten */
}

.hero-content p {
    color: #555; /* Farbe des Textes im weißen Kasten */
}




.info-section, .contact {
    margin-bottom: 2em;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.group-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-bottom: 2em;
    padding: 1em;
    align-items: center;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.group-item {
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 1em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 500px;
}

.group-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5em;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.group-item h3 {
    margin-top: 0;
    text-align: center;
}

.group-item table {
    width: 80%;
    border-collapse: collapse;
    margin-top: 0.5em;
    text-align: left;
}

.group-item table td {
    padding: 0.3em 0;
}

.group-item table td:first-child {
    width: 2em;
    padding-right: 0.5em;
    text-align: center;
}

.group-item table img {
    max-width: 1.2em;
    height: auto;
    vertical-align: middle;
}

.group-item .contact-info {
    margin-top: 1.5em;
    text-align: center;
    width: 80%;
}

.group-item .contact-info h4 {
    margin-top: 1em;
    margin-bottom: 0.3em;
    text-align: center;
}

.group-item .contact-info p {
    margin-bottom: 0.3em;
    display: flex;
    align-items: center;
}

.group-item .contact-info img {
    max-width: 1em;
    height: auto;
    margin-right: 0.5em;
    vertical-align: middle;
}

.group-item .contact-info a {
    text-decoration: none;
    color: #007bff;
}

.group-item a.mehr-erfahren {
    display: inline-block;
    margin-top: 1em;
    padding: 0.5em 1em;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 1em;
    background-color: #333;
    color: #fff;
}

/* Media Query für größere Bildschirme (z.B. Tablets) */
@media (min-width: 768px) {
    .group-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .group-item {
        width: calc(50% - 1em);
        max-width: 500px;
        text-align: left;
        align-items: center; /* Zentriere auch auf Tablets */
    }

    .group-item table {
        margin-left: auto;
        margin-right: auto;
    }

    .group-item .contact-info {
        text-align: left; /* Kontaktinfo links auf Tablets */
    }
}

/* Media Query für noch größere Bildschirme (z.B. Desktops) */
@media (min-width: 1024px) {
    .group-item {
        width: calc(33.33% - 1em);
        max-width: 500px;
    }
}