/* Allgemeine Styles für die Sektion */
.wide-section {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.wide-section picture {
    display: block;
    width: 100%;
}

.wide-section img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Text-Overlay Styles */
.wide-section .text-overlay {
    position: absolute;
    top: 50%;
    /* left: 0; */
    width: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background: transparent;
    color: white;
    box-sizing: border-box;
    word-wrap: break-word;
    font-size: 100%;
}

.wide-section .text-overlay p {
    font-size: 1.2em; /* damit font-size: 95% funktioniert */
}

/* Ansicht für mobile Geräte (unter 1024px) */
@media (max-width: 1024px) {
    .wide-section {
        flex-direction: column;
    }

    .wide-section .text-overlay {
        position: relative;
        top: 0;
        transform: none;
        width: 100%;
        padding: 15px;
        background: #ffffff;
        font-size: 100%;
    }
}

@media (min-width: 1024px) and (max-width: 1290px) {
    .wide-section .text-overlay {
        width: 60%;
        font-size: 95%;
    }
}

@media (min-width: 1290px) and (max-width: 1440px) {
    .wide-section .text-overlay {
        width: 55%;
        font-size: 97%;
    }
}
