/**
 * immobilien-detail.css — Layout-Styles für die einzelnen Standort-Detailseiten
 * (Immobilien/Ort/<Stadt>/<Code>.php).
 * Bilder-Slider, Info-Box, Text-Container, Highlight-Wörter, Info-Box.
 */

/* === Bilder-Slider (Teaser oben auf der Detailseite) === */
.image-container {
    display: flex;
    width: 80%;
    height: 300px;
    margin: -35px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}
.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.image-container img {
    width: 33.33%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #006883;
    box-sizing: border-box;
    transition: transform 0.3s;
}

/* Slider-Pfeile */
.image-container .button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px 20px;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}
.image-container .button.left  { left: 0; }
.image-container .button.right { right: 0; }

/* === Container für Eckdaten (Preis / Zimmer / m² / Ort) === */
.info-container {
    width: 60%;
    margin: 60px auto;
    text-align: center;
    padding: 5px;
    border: 3px solid #006883;
    background-color: #f0f8ff;
    border-radius: 8px;
}
.info-title {
    font-weight: bold;
    font-size: 1.5em;
}

/* === Container für die Beschreibung === */
.text-container {
    width: 60%;
    margin: 50px auto;
    text-align: justify;
    line-height: 1.5;
}
.text-text {
    font-weight: bold;
    font-size: 2em;
}

/* Hervorgehobene Wörter */
.highlight { color: #006883; }

/* Hinweis-Box (z.B. "Leider ist für diese Immobilie noch kein Rundgang verfügbar") */
.info-box {
    display: flex;
    font-size: 1em;
    padding: 0;
    color: #000;
    width: fit-content;
    margin: 5px auto -30px;
}

/* === Mobile Ansicht === */
@media (max-width: 600px) {
    .image-container {
        width: 90%;
        height: 200px;
        margin: 0 auto;
    }
    .image-container img {
        width: 100%;
    }
    .info-container,
    .text-container {
        width: 90%;
    }
    .text-text {
        font-size: 1.4em;
    }
}
