/* base/static/css/home.css */
body,
html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    width: 100%;
    min-height: 100vh;
    height: auto;
    background-color: #f0f0f0;
}

.image-container {
    position: relative;
    /* Setzt den Container auf relativ, damit die absolute Positionierung der Suchleiste darin wirkt */
    display: block;
    width: 100%;
    max-height: 80vh;
    /* Höhe des Kopfteils */
    overflow: hidden;
}

.image-container img {
    display: block;
    width: 100%;
    object-fit: cover;
    margin-top: 0px;
    /* Höhe des Kopfteils */
}

.promotion-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
    /* Zentriert den Inhalt */
    background-color: var(--color-bg-light-gray);
    display: flex;
    /* Flexbox-Layout für nebeneinander liegende Elemente */
    justify-content: center;
    /* Zentriert die Inhalte horizontal */
    align-items: center;
    /* Zentriert die Inhalte vertikal */
}

.promotion-text {
    margin-right: 30px;
    /* Fügt einen Abstand zwischen Text und Button hinzu */
    font-size: 18px;
    /* Angepasste Schriftgröße */
    color: #333;
    /* Dunkelgraue Schriftfarbe */
}

.button {
    display: inline-block;
    padding: 8px 16px;
    /* Reduzierte Polsterung für ein schlankeres Aussehen */
    font-size: 20px;
    width: 200px;
    color: #333;
    background-color: #FFA500;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background-color: rgb(255, 136, 0);
    color: #000000;
}

.home-wrapper {
    height: 100%;
}

.home-wrapper .image-container img {
    height: 100%;
    width: 100%;
}

.immobilien-preview-section {
    text-align: center;
}

.immobilien-preview-section h3 {
    margin-bottom: 1rem;
}

.erklaerung-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 5rem;
    margin-top: 20px;
}

.erklaerung-container {
    /* display: flex;
    flex-direction: row; */
    /* max-width: 900px; */

    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: white;
    /* border-radius: 8px; */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
    border: 1px solid #E0E0E0;
    border-radius: 1.6rem;

    overflow: hidden;
    overflow: hidden;
}

.erklaerung-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 1;
}

.erklaerung-text {
    padding: 20px;
    flex: 1;
}

.erklaerung-text h2 {
    /* margin-top: 0;
    font-size: 24px;
    color: #333; */

    margin-bottom: 1rem;
}

.erklaerung-text p {
    /* margin-bottom: 10px;
    font-size: 14px;
    color: #666; */
}

.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;
}

/* Small devices such as large phones (640px and up) */
@media only screen and (min-width: 40em) {
    .home-wrapper .image-container {
        max-height: 100vh;
    }
}

/* Medium devices such as tablets (768px and up) */
@media only screen and (min-width: 48em) {}

/* Large devices such as laptops (1024px and up) */
@media only screen and (min-width: 64em) {}

/* Largest devices such as desktops (1280px and up) */
@media only screen and (min-width: 80em) {
    .home-wrapper .navigation-bar {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(6, 44, 78, 0));
        position: absolute;
        top: 0;
        z-index: 10;
        width: 100%;
        min-height: 5rem;
    }

    .home-wrapper .image-container {
        max-height: 70vh;
    }

    .home-wrapper .search-container {
        top: 40%;
    }
}

@media screen and (max-width: 500px) {
    .custom-btn {
        padding: 0.6em 6em;
    }
}