html {
    font-size: 16px; /* Standardwert für Schriftgröße */
}

@media (max-width: 768px) {
    #nav {
        position: relative;
        top: auto;
        width: 100%;
        height: auto;
    }

    #main-content {
        margin-left: 0;
    }

    .team-member {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item {
        flex-direction: column;
    }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

#page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#nav {
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    position: fixed;
    top: 300px; /* Gleiche Höhe wie der Header */
    left: 0;
    height: calc(100% - 120px); /* Höhe exakt an den Header angepasst */
    width: 200px;
    background: white;
    padding-top: 20px;
    z-index: 1100;
}

#nav a {
    display: block;
    color: black;
    text-decoration: none;
	padding-left: 5px;
}

header {
    height: 300px; /* Feste Höhe */
    display: flex;
    flex-direction: row; /* Horizontal ausgerichtet */
    align-items: center;
    justify-content: space-between; /* Platzierung von Bild und Titel */
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: white;
    box-sizing: border-box;
    overflow: hidden; /* Kein Überlappen über den Header hinaus */
}

#banner-image {
    height: 100%; /* Maximale Höhe an den Header angepasst */
    width: auto; /* Automatische Breite zur Proportionserhaltung */
    object-fit: contain; /* Bild innerhalb des Headers beschränken */
    margin: 0; /* Kein Abstand nach unten */
    border-radius: 10px; /* Optional für abgerundete Ecken */
}

#header-title {
    font-size: 1.2rem;
    margin: 0;
    padding-left: 10px;
    white-space: nowrap; /* Verhindert Umbrüche */
}

#main-content {
    padding: 20px;
    flex: 1;
    margin-left: 200px; /* Platz für das Menü */
    overflow-y: auto;
    box-sizing: border-box;
}

.team-member {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  height: 250px;
}

.team-member img {
  max-width: 150px;
  max-height: 250px;
  width: auto;
  border-radius: 10px;
  object-fit: cover; /* Sorgt für konsistente Bildgrößen */
}

.team-member div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-member div p {
  margin: 0; /* Entfernt unnötige Abstände */
  line-height: 1.2; /* Anpassung des Zeilenabstands */
}

/* Galerie-Container */
#gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
}

/* Einzelne Galerie-Elemente */
.gallery-item {
    text-align: center;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Galerie-Bilder */
.gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Bildbeschriftungen */
.gallery-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.sponsor-logos img, .foundation-logos img {
    width: 150px; /* Einheitliche Breite */
    height: auto; /* Proportionen beibehalten */
    margin: 10px; /* Abstand zwischen Logos */
}

.sponsor-logos, .foundation-logos {
    display: flex;
    flex-wrap: wrap; /* Mehrere Logos nebeneinander */
    gap: 20px;
    justify-content: left; /* Zentrierung der Logos */
}