@font-face {
    font-family: 'Open Sans';
    src: url('fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Für weitere Gewichtungen wie Bold und Italic */
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Beispiel CSS-Styling mit Open Sans */
body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    color: black;
    overflow-x: hidden;
}
/* Header-Styling */
header {
    background-color: #7bd1ef;
    color: #1f1e25;
    padding: 15px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Ändert die Position von fixed zu relative */
    width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Schatten hinter dem Header */
    z-index: 1000;
}
header img {
    height: 70px; /* Größeres Logo-Bild */
    margin-right: 15px;
}
header h2 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    z-index: 999;
}

nav ul li {
    position: relative;
    margin-right: 20px;
}

nav ul li a {
    color: #1f1e25;
    text-decoration: none;
    font-size: 18px;
}

/* Hamburger Menü für mobile Ansicht */
.menu-toggle {
    display: none; /* Checkbox unsichtbar machen */
}
.menu-icon {
    display: none;
    font-size: 36px; /* Größe des Icons */
    cursor: pointer;
    position: absolute;
    right: 20px; /* Abstand vom rechten Rand */
    /* top: 15px; Vertikale Positionierung */
}
/* Dropdown Menü */
nav ul li ul {
    display: none;
    position: absolute;
    background-color: #7bd1ef;
    padding: 10px 0;
    border-radius: 5px;
}
nav ul li:hover ul {
    display: block;
}
nav ul li ul li {
    margin: 0;
    padding: 5px 20px;
    white-space: nowrap;
}
nav ul li ul li a {
    color: white;
    font-size: 14px;
}
/* Cover-Styling */
.cover {
    position: relative;
    min-height: 750px;
    background-image: url(''); /* Hier das Bild einfügen */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background-color: #087fc4;
    /*margin-top: 70px;  Abstand für den Header */
}
.cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 50% Transparenz */
}
.cover-content {
    position: relative;
    z-index: 1;
}
.cover h1 {
    font-size: 50px;
    margin: 0;
}
.cover p {
    font-size: 24px;
}
.container {
    display: flex;
    height: 60em;
    background-color: #7bd1ef;
}
.text-section, .image-section {
    width: 50%;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.text-section {
    font-size: 18px;
    line-height: 2em;
}
.text-section p {
    margin-bottom: 20px;
}
.image-section {
    position: relative;
    background-size: cover;
    background-position: center;
}
.image-section-left h1,
.image-section-right h1 {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-size: 75px;
    line-height: 0.9em;
    color: white;
    margin: 0;
    white-space: nowrap;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.image-section-left h1 { left: 90%; }
.image-section-right h1 { left: 10%; transform: translate(-50%, -50%) rotate(90deg);}

.contact-section {
    margin: 0;
}
.contact-container {
    display: flex;
    height: 70vh; /* Anpassung der Höhe für den Kontaktbereich */
    background-color: #7bd1ef;
}

.contact-text-section {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #1f1e25;
}

.contact-text-section h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-text-section p {
    font-size: 18px;
    line-height: 1.6em;
}

.contact-image-section {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.contact-image-section img {
    width: 75%; /* Bildgröße auf 75% begrenzt */
    height: auto; /* Bild bleibt vollständig sichtbar */
    max-width: 100%; /* Verhindert, dass das Bild überläuft */
    object-fit: contain;
}

/* Footer-Styling */
footer {
    background-color: #087fc4;
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 14px;
}
footer a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
}

#orte .text-section, #person .text-section, #beratung .text-section, #therapie .text-section, #ansatz .text-section {
    display: flex; /* Flexbox aktivieren */
    flex-direction: column; /* Elemente untereinander anordnen */
    justify-content: center; /* Vertikal zentrieren */
    align-items: flex-start; /* Elemente linksbündig ausrichten */
    text-align: left; /* Text linksbündig */
    /*padding: 20px;  Zusätzlicher Abstand innerhalb der Sektion */
    height: 100%; /* Nimmt die volle Höhe des Containers ein */
}

#orte .text-section h2, #orte .text-section h3, #orte .text-section p, #orte .text-section ul,
#person .text-section h2, #person .text-section h3, #person .text-section p, #person .text-section ul,
#beratung .text-section h2, #beratung .text-section h3, #beratung .text-section p, #beratung .text-section ul,
#therapie .text-section h2, #therapie .text-section h3, #therapie .text-section p, #therapie .text-section ul {
    margin-bottom: 10px; /* Abstand zwischen den Elementen */
}

#orte .container, #person .container, #beratung .container, #therapie .container , #ansatz .container {
    display: flex; /* Flexbox für das gesamte Container-Layout */
    align-items: center; /* Vertikale Zentrierung des Inhalts */
    height: 100%; /* Container füllt den gesamten Abschnitt */
}

ul {
    list-style-type: square;
}

@media (max-width: 400px) {
    .container {
        /*+max-height: 2000px;*/
        min-height: 1300px;
    }
}

@media (max-width: 900px) {
.container {
    display: flex;
    flex-direction: column; /* Anordnung von Bild + Überschrift, dann Text */
    /*min-height: fit-content;*/
    max-height: 1000px;

}
.image-section {
    width: 100%;
    min-height: 200px;
    background-size: cover;
    order: 1; /* Bild + Überschrift erscheinen zuerst */
    padding: 0;
    position: relative;
}
.text-section {
    width: auto;
    order: 2; /* Text erscheint unter dem Bild */
    text-align: left;
    height: auto;
    padding: 0 20px;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

/* Überschrift in der Bild-Sektion zentrieren */
.image-section-left h1,
.image-section-right h1 {
    position: absolute;
    top: 50%; /* Vertikal zentrieren */
    left: 50%; /* Horizontal zentrieren */
    transform: translate(-50%, -50%);
    font-size: 35px;
    color: white;
    margin: 0;
    white-space: nowrap;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
nav ul {
        display: none; /* Menü standardmäßig verstecken */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 15px;
        background-color: #7bd1ef;
        padding: 30px;
        border-radius: 5px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }

.menu-icon {
        display: block;
        color: #1f1e25;
    }

    /* Checkbox und Label für das Hamburger Menü */
.menu-toggle:checked + .menu-icon + nav ul {
        display: flex;
    }

nav ul li {
        margin: 10px 0;
    }
}


