* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

/* Hintergrund */
.landscape-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* BODY Layout */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

/* Bilderreihe */
.image-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    
    flex-wrap: wrap; /* Bilder umbrechen bei kleinen Bildschirmen */
}

/* Einzelne Bilder */
.element {
    flex: 1 1 calc(25% - 20px); /* 3 Bilder nebeneinander, mit Lücke */
    height: 45vh;                   /* gleiche Höhe wie bisher */
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Bilder */
.wohnimage {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Hoch/Quer/Quadrat sauber zuschneiden */
}

/* Titel unter den Bildern */
.title {
    margin-top: 16px;
    color: white;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.title h1 {
    font-size: 3rem;
}

/* Text unter Titel */
.text {
    max-width: 900px;
    margin-top: 12px;
    padding: 16px 22px;
    background: #008B00b5;
    color: white;
    border-radius: 12px;
    font-size: 200%;
    text-align: center;
}

/* Zurück-Button */
.back {
    margin-top: 12px;
    padding: 10px 26px;
    background: #008B00b5;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 150%;
}

/* -------------------- */
/* Responsive Anpassungen */

/* Tablets */
@media (max-width: 1024px) {
    .element {
        flex: 1 1 calc(50% - 20px); /* 2 Bilder nebeneinander */
        height: 40vh;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .element {
        flex: 1 1 100%; /* 1 Bild pro Reihe */
        height: 35vh;
    }

    .title h1 {
        font-size: 2.2rem;
    }

    .text {
        font-size: 180%;
        padding: 12px 18px;
    }

    .back {
        font-size: 130%;
        padding: 8px 20px;
    }
}

/* Kleine Handys */
@media (max-width: 480px) {
    .element {
        height: 30vh;
    }

    .title h1 {
        font-size: 1.8rem;
    }

    .text {
        font-size: 150%;
        padding: 10px 16px;
    }

    .back {
        font-size: 0.9rem;
        padding: 6px 16px;
    }
}


