/* Globales Styling */


body {
    font-family: 'Avenir', sans-serif;
    color: #333;
    background-color: #f8f0f0;
    text-align: justify;
}


/* Header mit Bild und Text */
header {
    display: flex;
    justify-content: space-between; /* Platz zwischen Text und Bild */
    align-items: center; /* Vertikale Zentrierung */
    padding: 50px 20px;
    background-color: #f8f0f0;
    min-height: 450px; /* Höhe des Headers für Laptop-Ansicht */
}

.header-content {
    display: flex;
    justify-content: space-between; /* Text und Bild nebeneinander */
    width: 90%;
}

.text-content {
    max-width: 49%; /* Text nimmt maximal 50% der Breite ein */
}

h1 {
    font-size: 2.0rem;
    font-weight: 700;
    margin-bottom: 42px;
}

p {
    font-size: 1.0rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Bild im Header */
.image-content {
    max-width: 100%; /* Bild nimmt maximal 40% der Breite ein */
}

.header-image {
    width: 100%; /* Bild nimmt volle Breite des Containers ein */
    height: auto;
    border-radius: 8px; /* Optional: Abgerundete Ecken für das Bild */
}





/* Laptop Version */
@media (max-width: 1200px) {
    header {
        min-height: 350px; /* Headerhöhe für Laptop leicht anpassen */
        padding: 30px 20px;
    }

    h1 {
        font-size: 2.5rem; /* Schriftgröße auf Laptop anpassen */
    }

    p {
        font-size: 1rem;
    }

    .header-content {
        flex-direction: column; /* Auf kleineren Bildschirmen Text und Bild untereinander */
        justify-content: center;
        align-items: center;
    }

    .text-content {
        max-width: 90%; /* Text nimmt mehr Platz auf mobilen Geräten */
        text-align: center;
    }

    .image-content {
        max-width: 80%;
        margin-top: 20px;
    }

    .header-image {
        width: 100%;
        height: auto;
    }
}

/* Tablet und kleinere Geräte */
@media (max-width: 768px) {
    header {
        display: flex;
        justify-content: center; 
        align-items: flex-start;
        min-height: 300px; /* Headerhöhe für Tablets kleiner */
        padding: 20px 10px;
    }

    h1 {
        font-size: 2rem; /* Kleinere Schrift auf Tablets */
    }

    p {
        font-size: 1rem;
    }

    .header-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        width: 100%;

    }

    .text-content {
        text-align: center; /* Text zentriert auf mobilen Geräten */
        max-width: 100%;
    }

    .image-content {
        max-width: 100%;
        margin-top: 20px;
    }

    .header-image {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }
}