html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.custom-btn {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 0.6em 12em;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 300;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    width: 100%;
    /* Ensures padding is included in width */
}

.custom-btn:hover {
    background-color: #FFA500;
    color: black;
}

.image-wrapper {
    padding-left: 15px;
    /* Standard-Padding für Bootstrap-Container */
    padding-right: 15px;
    /* Standard-Padding für Bootstrap-Container */
}

.immobilie-image {
    width: 100%;
    /* Standard: Füllt den Container in der Breite aus */
    height: auto;
    /* Höhe passt sich automatisch an */
}

@media (min-width: 770px) and (max-width: 1400px) {
    .image-wrapper {
        padding-left: 0;
        /* Padding links entfernen bei Bildbreite 770px-1400px */
        padding-right: 15px;
        /* Rechts bleibt das Padding */
    }

    .immobilie-image {
        height: 100%;
        /* Bild nimmt die volle Höhe des Containers ein */
        width: auto;
        /* Breite passt sich an */
        object-fit: cover;
        /* Überschüssiger Teil des Bildes wird abgeschnitten */
    }

    .custom-text-container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .image-wrapper {
        margin-left: 0;
        width: 100%;
        margin-bottom: 20px;
    }

    .immobilie-image {
        object-fit: cover;
        width: 100%;
        height: auto;
    }

    .col-12,
    .col-md-6 {
        text-align: center;
    }

    .col-12 h4,
    .col-md-6 h4 {
        margin-top: 15px;
        text-align: center;
    }

    .custom-btn {
        width: 100%;
    }

    .line-break {
        display: block;
    }
}




@media screen and (max-width: 500px) {
    .custom-btn {
        padding: 0.6em 6em;
    }
}