.ab-objekt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.ab-objekt-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: #181A20;
    border: none !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.14) !important;
    transition: transform .28s ease, box-shadow .28s ease;
}

.ab-objekt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.16) !important;
}

.ab-objekt-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1.28 / 1;
    overflow: hidden;
    background: transparent;
    line-height: 0;
}

.ab-objekt-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    background: #F3F3F3;
}

.ab-objekt-image {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    object-position: center 72%;
    transition: transform .45s ease;
    transform: scale(1);
    transform-origin: center 72%;
}

.ab-objekt-card:hover .ab-objekt-image {
    transform: scale(1.025);
}

.ab-objekt-content {
    padding: 14px 16px 16px;
}

.ab-objekt-location {
    margin-bottom: 6px;
    color: #818181;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
}

.ab-objekt-location svg { display: none; }

.ab-objekt-card .ab-objekt-content h3.ab-objekt-title {
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: #181A20 !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.32 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.ab-objekt-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.ab-objekt-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    min-width: 0;
    color: #6E7177;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
}

.ab-objekt-meta-item {
    color: #A7ABB1;
    margin: 0;
}

.ab-objekt-meta-separator {
    color: #B5B8BB;
    margin: 0 5px;
}

.ab-objekt-meta--verkauf {
    display: block;
}

.ab-objekt-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.ab-objekt-meta-line + .ab-objekt-meta-line {
    margin-top: 2px;
}

.ab-objekt-meta-price {
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    color: #181A20;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    text-align: right;
}

.ab-objekt-empty {
    padding: 18px;
    border-radius: 8px;
    background: #F3F3F3;
    font-family: "DM Sans", sans-serif;
    color: #181A20;
    box-shadow: 0 6px 16px rgba(24, 26, 32, 0.08);
}

@media (max-width: 1024px) {
    .ab-objekt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ab-objekt-grid {
        grid-template-columns: 1fr;
        gap: 32px !important;
    }

    .ab-objekt-content {
        padding: 14px;
    }

    .ab-objekt-card .ab-objekt-content h3.ab-objekt-title {
        font-family: "DM Sans", sans-serif !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        word-spacing: 0 !important;
        text-transform: none !important;
        font-style: normal !important;
        text-decoration: none !important;
    }

    .ab-objekt-meta-row {
        gap: 10px;
    }

    .ab-objekt-meta {
        gap: 0;
        row-gap: 3px;
    }

    .ab-objekt-meta-separator {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 6px !important;
    }
}


.ab-objekt-price-below {
    margin: 0 0 9px;
    color: #181A20;
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}


.ab-objekt-image-price {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 8px 12px;
    background: #FFFFFF;
    color: #181A20;
    border-radius: 6px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(24, 26, 32, 0.10);
}


/* Galerie-Slider – browserübergreifend über natives horizontales Scrollen */
.ab-objekt-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

.ab-objekt-slider-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x pan-y;
}

.ab-objekt-slider-viewport::-webkit-scrollbar {
    display: none;
}

.ab-objekt-slider.is-dragging .ab-objekt-slider-viewport {
    cursor: grabbing;
    scroll-behavior: auto;
}

.ab-objekt-slider-track {
    display: flex;
    width: calc(var(--ab-slide-count, 1) * 100%);
    height: 100%;
}

.ab-objekt-slide {
    flex: 0 0 calc(100% / var(--ab-slide-count, 1));
    width: calc(100% / var(--ab-slide-count, 1));
    height: 100%;
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.ab-objekt-slide .ab-objekt-image,
.ab-objekt-card:hover .ab-objekt-slide .ab-objekt-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    display: block;
    object-fit: cover;
    object-position: center 72%;
    transform: none !important;
    transition: none !important;
    -webkit-user-drag: none !important;
    user-drag: none !important;
    user-select: none !important;
    pointer-events: none !important;
}

/* Preis bei Kurzzeitobjekten bewusst klein halten – auch gegen Theme/Elementor-Regeln */
.ab-objekt-grid.ab-objekt-grid--kurzzeit .ab-objekt-image-price {
    font-family: "DM Sans", sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 7px 11px !important;
}

/* Navigation */
.ab-objekt-slider.has-controls .ab-objekt-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 38px;
    padding: 0 !important;
    margin: 0 !important;
    color: #FFFFFF !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-family: Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-shadow: 0 1px 4px rgba(24, 26, 32, .38);
    cursor: pointer;
    user-select: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.ab-objekt-slider-arrow--prev { left: 10px; }
.ab-objekt-slider-arrow--next { right: 10px; }

.ab-objekt-slider.has-controls .ab-objekt-slider-arrow:hover,
.ab-objekt-slider.has-controls .ab-objekt-slider-arrow:focus,
.ab-objekt-slider.has-controls .ab-objekt-slider-arrow:active {
    color: #FFFFFF !important;
    background: transparent !important;
    border-color: transparent !important;
    outline: none !important;
    text-decoration: none !important;
}

.ab-objekt-slider.has-controls .ab-objekt-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 20;
    display: flex !important;
    align-items: center;
    gap: 6px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.ab-objekt-slider-dot {
    display: block !important;
    width: 7px;
    height: 7px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 1px 3px rgba(24,26,32,.22);
    cursor: pointer;
}

.ab-objekt-slider-dot.is-active {
    background: #C2E2B3 !important;
}

.ab-objekt-slider-dot:hover,
.ab-objekt-slider-dot:focus,
.ab-objekt-slider-dot:active {
    outline: none !important;
}

/* Mobile: Controls ausdrücklich sichtbar halten */
@media (max-width: 767px) {
    .ab-objekt-slider.has-controls .ab-objekt-slider-arrow {
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .ab-objekt-slider.has-controls .ab-objekt-slider-dots {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .ab-objekt-grid.ab-objekt-grid--kurzzeit .ab-objekt-image-price {
        font-size: 12px !important;
        font-weight: 600 !important;
        padding: 7px 11px !important;
    }
}

/* V1.35: finale Geometrie-Korrektur für Edge, Chrome und Mobile */
.ab-objekt-image-wrap { contain: paint; }
.ab-objekt-slider,
.ab-objekt-slider-viewport,
.ab-objekt-slide { max-width: 100%; }
.ab-objekt-grid--kurzzeit .ab-objekt-image-price { font-size: 12px !important; }
