/* ===== Listenansicht ===== */
.listing-grid {
    display: grid;
    gap: 20px; /* Abstand zwischen Einträgen */
}

.listing-item {
    display: grid;
    grid-template-columns: 300px 1.5fr 1.5fr 1fr;
    gap: 15px;
    border-bottom: 1px solid #d4d4d4;
    padding: 15px 0;
    align-items: start; /* alle Spalten oben bündig */
}

.col-2 > :first-child,
.col-3 > :first-child,
.col-4 > :first-child {
    margin-top: 0;
    line-height: 1;
}

/* Spalte 4: Button immer unten */
.col-4 {
    display: flex;
    flex-direction: column;
    height: 100%; /* volle Höhe der Listing-Item-Zeile */
    align-self: stretch;
}

.col-4 .btn-zum-gastgeber {
    margin-top: auto;   /* schiebt den Button an den unteren Rand */
}

/* Teaserfoto fixieren */
.teaserfoto-wrapper {
    width: 300px;
    height: 200px;
    overflow: hidden;
}

.teaserfoto-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Überschriften & Text */
.listing-item h3 {
    margin: 5px 0;
    font-size: 1.5em;
}

.listing-item h4 {
    margin: 5px 0;
    font-size: 1.25em;
}

.listing-item h5 {
    margin: 5px 0;
    font-size: 1.125em;
}

.listing-item p {
    margin: 3px 0;
}

/* Button */
.btn-zum-gastgeber {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #057816;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
}

.btn-zum-gastgeber:hover {
    color: #fff;
    text-decoration: underline;
    opacity: 0.8;
    border: 2px solid #057816;
}

/* Responsive Desktop: 4 Spalten */
@media only screen and (max-width: 1200px) {
    .listing-item {
        grid-template-columns: 300px 1fr 1fr 1fr;
    }
}

/* Tablet Porträt: 2 Spalten */
@media only screen and (max-width: 900px) {
    .listing-item {
        grid-template-columns: 300px 1fr;
        grid-template-rows: auto auto;
    }
}

/* Smartphone: 1 Spalte */
@media only screen and (max-width: 600px) {
    .listing-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .listing-item .col {
        grid-column: auto !important;
    }

    .teaserfoto-wrapper {
        width: 100%;
    }
}

/* =====================================================
   ===== Detailseite Gastgeber =====
   ===================================================== */

.gastgeber-details {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    line-height: 1.6;
}

/* =====================================================
   ===== Überschriften =====
   ===================================================== */

.gastgeber-details h1 { margin-bottom: 40px; }
.gastgeber-details h2 { font-size: 1.75em; }
.gastgeber-details h3 { font-size: 1.5em; }
.gastgeber-details h4 { font-size: 1.25em; }
.gastgeber-details h5 { font-size: 1.12em; }

/* =====================================================
   ===== Oberer 2-Spalten Bereich =====
   ===================================================== */

.detail-top-grid {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
}

.detail-teaserfoto img {
    width: 600px;
    max-width: 100%;
    height: auto;
    box-shadow: 10px 10px 25px rgba(0,0,0,0.15);
}

.detail-col-info p { margin-bottom: 12px; font-size: 1em; }
.gastgeber-headline { margin-bottom: 20px; }

/* =====================================================
   ===== Abschnittsüberschrift =====
   ===================================================== */

.section-headline { margin: 60px 0 20px 0; }

/* =====================================================
   ===== Beschreibung =====
   ===================================================== */

.objektbeschreibung { margin-bottom: 40px; font-size: 1em; }

/* =====================================================
   ===== Galerie (4er Grid) =====
   ===================================================== */

.objektfotos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5%;
    margin: 40px 0;
}

.objektfoto-item {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.objektfoto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

.objektfoto-item:hover img { transform: scale(1.05); }

/* =====================================================
   ===== Objekt Block =====
   ===================================================== */

.objekt-block {
    margin-top: 70px;
    padding-top: 40px;
    border-top: 1px solid #ccc;
}

.objekt-name { margin-bottom: 20px; }
.objekt-subheadline { margin-bottom: 10px; }
.objekt-beschreibung { margin-bottom: 30px; font-size: 1em; }

/* =====================================================
   ===== Objekt Info Grid (graue Boxen) =====
   ===================================================== */

.objekt-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.objekt-info-grid div {
    background: #f2f2f2;
    padding: 15px;
    font-size: 1em;
}

.objekt-info-grid strong { display: block; margin-bottom: 5px; }

/* =====================================================
   ===== Buchungsbereich final =====
   ===================================================== */

.buchungsportale {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start; /* linksbündig */
    align-items: flex-start;
    margin: 20px 0;
    padding: 0;
    border: none;
    background-color: transparent;
}

/* Airbnb-Widget */
.airbnb-embed-frame {
    width: 450px;
    max-width: 100%;
    min-height: 600px;  /* Höhe anpassen, bis Widget komplett sichtbar */
    border: none;
    overflow: visible;
    height: auto;
}

/* Airbnb iframe */
.airbnb-embed-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Buttons rechts neben Widget */
.buchungsportale .btn-zum-gastgeber {
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
    margin-left: 20px;
}

/* =====================================================
   ===== Responsive =====
   ===================================================== */

@media (max-width: 1200px) {
    .detail-top-grid { grid-template-columns: 1fr; }
    .detail-teaserfoto img { width: 100%; }
}

@media (max-width: 900px) {
    .objektfotos-grid { grid-template-columns: repeat(2, 1fr); }
    .objekt-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .objektfotos-grid { grid-template-columns: 1fr; }
    .objekt-info-grid { grid-template-columns: 1fr; }

    .buchungsportale {
        flex-direction: column;
        gap: 10px;
    }

    .buchungsportale .btn-zum-gastgeber,
    .airbnb-embed-frame {
        flex: 1 1 100%;
        max-width: 100%;
        margin-left: 0; /* Buttons unter Widget ohne linken Abstand */
    }
}