/* =============================================================================
   IMMOPAGES4ONOFFICE — immo.css

   PHILOSOPHIE:
   Dieses Stylesheet gibt NUR Struktur & Layout vor.
   Farben, Schriften, Abstände → du passt sie in Avada oder deinem
   eigenen Stylesheet an. Alle font-* Properties sind "inherit".

   BREAKPOINTS (Werte hier anpassen):
   --bp-tablet : 1024px
   --bp-mobile :  767px

   INHALT:
   1.  Reset / Base
   2.  Card – Vollbild (BG-Slider + Overlay)
   3.  Card Herz / Merken
   4.  Single Slider
   5.  Single Detailseite
   6.  Lightbox
   7.  Accordion Filter  (.immo-filter)
   8.  Grid-Layout
   9.  Lazy Loading Fade
   10. Merkliste Button
   11. Ergebnis / Loading States
   12. Masonry Galerie  (.immo-masonry)
   13. Einzelbild Shortcode  (.immo-sc-bild)   ← NEU
   ============================================================================= */


/* ─────────────────────────────────────────────────────────────
   1. RESET / BASE
   ───────────────────────────────────────────────────────────── */

.immo-card,
.immo-card *,
.immo-single,
.immo-single *,
.immo-filter,
.immo-filter * {
    box-sizing: border-box;
}

/* Alle Fonts erben vom Body (Avada stellt ein) */
.immo-card,
.immo-card__title,
.immo-card__facts,
.immo-card__preis,
.immo-single,
.immo-single__title,
.immo-single__facts,
.immo-filter,
.immo-filter__opt,
.immo-filter__submit,
.immo-filter__reset {
    font-family: inherit;
    font-size:   inherit;
    color:       inherit;
}

/* Bilder nie größer als ihr Container */
.immo-card img,
.immo-single img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Links in Cards keine Unterstreichung */
.immo-card__link,
.immo-card__info {
    text-decoration: none;
    color: inherit;
}


/* ─────────────────────────────────────────────────────────────
   2. CARD — Vollbild
   ───────────────────────────────────────────────────────────── */

/* Gold-Farbe als Variable */
:root {
    --immo-gold: rgb(246, 215, 148);
}

/* ─────────────────────────────────────────────────────────────
   AVADA BUTTON UTILITY CLASSES  (für alle zukünftigen Buttons)
   .immo-btn           = gemeinsame Basis
   .immo-btn--light    = weißer Hintergrund, dunkler Text  (auf hellem BG)
   .immo-btn--dark     = Glas-Hintergrund, weißer Text     (auf dunklem/Bild-BG)
   ───────────────────────────────────────────────────────────── */
.immo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 13px 29px;
    border: 1px solid var(--immo-gold, #f6d794);
    border-radius: 0;
    font-family: Arsenal, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 2.55px;
    line-height: 18.7px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}
.immo-btn--light {
    background-color: #fff;
    color: #141617;
}
.immo-btn--light:hover {
    background-color: var(--immo-gold, #f6d794);
    color: #141617;
    border-color: var(--immo-gold, #f6d794);
    text-decoration: none;
}
.immo-btn--dark {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}
.immo-btn--dark:hover {
    background-color: var(--immo-gold, #f6d794);
    color: #141617;
    border-color: var(--immo-gold, #f6d794);
    text-decoration: none;
}

.immo-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    min-height: 280px;
    background: #111;
    cursor: pointer;
}

/* ── Hintergrundbild (CSS background-image) ─────────────────── */
.immo-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #222;
    /* Zoom-Animation bei Hover */
    transform: scale(1);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.immo-card:hover .immo-card__bg {
    transform: scale(1.07);
}

/* ── Overlay: Gradient + Inhalt ─────────────────────────────── */
.immo-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0)    30%,
        rgba(0,0,0,0)    40%,
        rgba(0,0,0,0.75) 100%
    );
    /* Transition für Hover-Farben */
    transition: color 0.3s;
}

/* ── Dunkler Schleier (30 % schwarz) — bei Hover wegblenden ── */
.immo-card__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.9s ease 0.15s;
}

.immo-card:hover .immo-card__overlay::after {
    opacity: 0;
}

/* ── Innerer Rahmen via ::before ────────────────────────────── */
.immo-card__overlay::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 1;
    pointer-events: none;
    transition: border-color 0.35s ease;
}

.immo-card:hover .immo-card__overlay::before {
    border-color: rgba(246, 215, 148, 0.5);
}

/* ── Obere Zeile: OID links, Herz rechts ────────────────────── */
.immo-card__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 20px 0;
    flex-shrink: 0;
}

.immo-card__oid-badge {
    font-family: Arsenal, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s;
}

.immo-card:hover .immo-card__oid-badge {
    color: var(--immo-gold);
}

/* ── Badge (Projekt / Verkauft …) ───────────────────────────── */
.immo-card__badge-wrap {
    position: relative;
    z-index: 2;
    padding: 8px 20px 0;
    flex-shrink: 0;
}

.immo-card__badge {
    display: inline-block;
    font-family: Arsenal, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 9px;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    pointer-events: none;
}

.immo-card__badge--verkauft,
.immo-card__badge--vermietet  { border-color: rgba(255,255,255,0.25); opacity: 0.6; }
.immo-card__badge--reserviert { border-color: rgba(246,215,148,0.5);  color: var(--immo-gold); }
.immo-card__badge--projekt     { border-color: rgba(255,255,255,0.4); }

/* ── Spacer ─────────────────────────────────────────────────── */
.immo-card__spacer {
    flex: 1;
}

/* ── Titelbereich: absolut positioniert, von UNTEN verankert (~1/5 der Karte)
   Bei aspect-ratio 1:1 → bottom: 22% ≈ 1/5 der Kartenhöhe über dem Rand.
   Mehrzellige Titel wachsen nach OBEN — nie in die Facts-Zeile hinein.       */
.immo-card__title-section {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22%;
    z-index: 2;
    padding: 0 24px;
    text-align: center;
}

/* 1px feine weiße Linien über und unter dem Titel */
.immo-card__rule {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.25);
    transition: background 0.3s;
}

.immo-card:hover .immo-card__rule {
    background: rgba(246,215,148,0.4);
}

/* Titel: Times, 30px, zentriert */
.immo-card__title {
    margin: 10px 0;
    font-family: Times, "Times New Roman", serif;
    font-size: 35px !important;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.03em;
    color: #fff;
    text-align: center;
    /* Scroll-Reveal: clip von rechts, 1.2s (+20%), 0.35s Delay (+0.3s) */
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.35s,
                color 0.3s ease;
}

.immo-card.is-visible .immo-card__title {
    clip-path: inset(0 0% 0 0);
}

.immo-card:hover .immo-card__title {
    color: var(--immo-gold);
}

/* ── Untere Zeile: Zimmer · Fläche · Preis ──────────────────── */
.immo-card__bottom {
    position: relative;
    z-index: 2;
    padding: 12px 20px 20px;
    flex-shrink: 0;
}

.immo-card__facts-line {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: Arsenal, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
    /* Scroll-Reveal: fade + slide up */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.66s ease 0.65s,
                transform 0.66s ease 0.65s,
                color 0.3s ease;
}

.immo-card.is-visible .immo-card__facts-line {
    opacity: 1;
    transform: translateY(0);
}

.immo-card:hover .immo-card__facts-line {
    color: var(--immo-gold);
}

.immo-card__fact-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* Trennzeichen zwischen Facts */
.immo-card__fact-item + .immo-card__fact-item::before {
    content: '·';
    margin: 0 8px;
    opacity: 0.4;
}

.immo-card__preis-item.is-anfrage {
    opacity: 0.7;
    font-style: italic;
}

/* ── PositionHomepage: unsichtbar ───────────────────────────── */
.immo-card__pos-hp {
    position: absolute;
    bottom: 0;
    left: 0;
    color: transparent;
    user-select: text;
    font-size: 1px;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

/* ── Icon-Bilder ─────────────────────────────────────────────
   Platzhalter: /assets/img/icon-*.svg
   Tauschen per FTP mit eigenen Icons (gleicher Dateiname).
   ────────────────────────────────────────────────────────────── */
.immo-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s, filter 0.3s;
}

.immo-card:hover .immo-icon {
    /* Gold-Tint: brightness angepasst damit SVG goldfarben wird */
    filter: brightness(0) saturate(100%) invert(88%) sepia(30%) saturate(500%) hue-rotate(340deg);
    opacity: 1;
}


/* ─────────────────────────────────────────────────────────────
   3. HERZ / MERKEN
   ───────────────────────────────────────────────────────────── */

.immo-card__heart {
    position: relative;
    z-index: 5;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s;
    flex-shrink: 0;
}

.immo-card__heart svg {
    width: 22px;
    height: 22px;
    color: #fff;
    fill: none;
    transition: color 0.2s, fill 0.2s;
}

/* Hover: Gold */
.immo-card__heart:hover svg {
    color: rgba(246, 214, 147, 0.8);
}

/* Aktiver Zustand – gemerkt: Gold ausgefüllt */
.immo-card__heart.is-saved svg {
    color: rgba(246, 214, 147, 0.8);
    fill: rgba(246, 214, 147, 0.8);
}

/* Pop-Animation beim Klick */
.immo-card__heart.is-pop {
    animation: immo-heart-pop 0.3s ease;
}

@keyframes immo-heart-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Single-Seite Herz (kein absolute) */
.immo-single__heart {
    position: static;
    background: transparent;
    border: 1px solid currentColor;
    opacity: 0.6;
    width: 40px;
    height: 40px;
    padding: 9px;
}

.immo-single__heart:hover { opacity: 1; }


/* ─────────────────────────────────────────────────────────────
   5. SINGLE SLIDER
   ───────────────────────────────────────────────────────────── */

.immo-single__slider {
    position: relative;
    width: 100%;
    /* 55vh — zeigt dass die Seite nach unten weiter geht */
    height: 55vh;
    overflow: hidden;
    background: #1a1a1a;
}

.immo-single__track {
    position: relative;
    width: 100%;
    height: 100%;
    /* Slides beim Pushen hier clippen — verhindert Scrollbar-Jump */
    overflow: hidden;
    /* Eigene Compositing-Schicht → Kinder beeinflussen nie das Page-Layout */
    transform: translateZ(0);
}

.immo-single__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(0);
    /* Transition wird per JS inline gesetzt — für synchronen Push */
    cursor: zoom-in;
    pointer-events: none;
}

.immo-single__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.immo-single__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

/* Pfeil-Buttons — klein, eingekreist */
.immo-single__prev,
.immo-single__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.28);
    border: 1.5px solid rgba(255,255,255,0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}

.immo-single__prev:hover,
.immo-single__next:hover {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.8);
}

.immo-single__prev::before,
.immo-single__next::before { content: none; }

.immo-single__prev { left: 16px; }
.immo-single__next { right: 16px; }

/* Counter — Glass */
.immo-single__counter {
    position: absolute;
    bottom: 14px;
    right: 16px;
    z-index: 10;
    /* Glass */
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(255,255,255,0.1) inset;
    color: #fff;
    font-size: 0.8em;
    padding: 4px 14px;
    border-radius: 20px;
}

/* ── Thumbnail-Leiste: schwebt absolut über dem Slider-Bild ──────
   position:absolute → kein Layout-Shift, kein Wackeln beim ersten Klick,
   keine extra Höhe die den Inhalt darunter verschiebt.                  */
.immo-single__thumbs {
    position: absolute;           /* ← über dem Bild, nicht im Flow */
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;        /* kein Scrollbalken sichtbar */
    max-width: calc(100% - 48px);
    padding: 10px 14px;

    /* Glass-Pill um alle Thumbs */
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 16px rgba(255,255,255,0.08) inset,
                0 4px 24px rgba(0,0,0,0.18);
    border-radius: 40px;
}
.immo-single__thumbs::-webkit-scrollbar { display: none; }

/* Runde Thumbnails mit Glass-Ring */
.immo-single__thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    scroll-snap-align: start;
    opacity: 0.6;
    transition: opacity 0.22s, box-shadow 0.22s, border-color 0.22s;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 8px rgba(255,255,255,0.1) inset;
}

.immo-single__thumb.is-active,
.immo-single__thumb:hover {
    opacity: 1;
    border-color: var(--immo-gold, #f6d794);
    box-shadow: 0 0 0 2px var(--immo-gold, #f6d794),
                0 0 8px rgba(255,255,255,0.1) inset;
}

.immo-single__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}


/* ─────────────────────────────────────────────────────────────
   6. SINGLE DETAILSEITE
   ───────────────────────────────────────────────────────────── */

.immo-single {
    max-width: 1200px;
    margin: 0 auto;
}

.immo-single__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5em;
    padding: 1.5em 0 1em;
    flex-wrap: wrap;
}

.immo-single__breadcrumb {
    font-size: 0.8em;
    opacity: 0.6;
    margin-bottom: 0.4em;
}

.immo-single__title {
    margin: 0;
    font-family: Times, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.03em;
}

.immo-single__header-right {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-shrink: 0;
}

.immo-single__preis {
    font-size: 1.4em;
    font-weight: 700;
}

.immo-single__preis.is-anfrage {
    font-size: 1em;
    font-weight: 400;
    font-style: italic;
    opacity: 0.7;
}

/* Kennzahlen */
.immo-single__facts {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    padding: 1.2em 0;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    opacity: 0.85;
    margin-bottom: 2em;
}

.immo-single__fact {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.immo-single__fact-value {
    font-size: 1.15em;
    font-weight: 700;
}

.immo-single__fact-label {
    font-size: 0.75em;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Body 2-spaltig */
.immo-single__body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3em;
    align-items: start;
}

.immo-single__content h2 {
    font-size: 1.1em;
    font-family: inherit;
    font-weight: 700;
    margin: 2em 0 0.6em;
}

.immo-single__content h2:first-child { margin-top: 0; }

/* Sidebar */
.immo-single__contact-box {
    position: sticky;
    top: 100px;
}

.immo-single__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.6em;
    text-decoration: none;
    font-family: Arsenal, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 2.55px;
    line-height: 18.7px;
    padding: 13px 29px;
    border-radius: 0;
    border: 1px solid var(--immo-gold, #f6d794);
    background-color: #fff;
    color: #141617;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.immo-single__btn:hover {
    background-color: var(--immo-gold, #f6d794);
    color: #141617;
    border-color: var(--immo-gold, #f6d794);
    text-decoration: none;
}

/* Details-Tabelle */
.immo-single__details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    margin-top: 1.5em;
}

.immo-single__details-table td {
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    vertical-align: top;
}

.immo-single__details-table td:first-child {
    opacity: 0.55;
    width: 45%;
}


/* ─────────────────────────────────────────────────────────────
   7. LIGHTBOX
   ───────────────────────────────────────────────────────────── */

.immo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.immo-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    cursor: zoom-out;
}

/* Inner: pointer-events none → Klicks auf leere Fläche fallen durch zur Overlay */
.immo-lightbox__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
    cursor: zoom-out;
}

/* Bild-Wrap und Counter behalten pointer-events */
.immo-lightbox__img-wrap,
.immo-lightbox__counter {
    pointer-events: auto;
    cursor: default;
}

.immo-lightbox__img-wrap {
    max-width: 90vw;
    max-height: 85vh;
}

.immo-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

/* ── Pfeile: exakt wie Slider-Pfeile ── */
/* Lightbox Pfeil-Buttons — klein, eingekreist (gleich wie Slider) */
.immo-lightbox__prev,
.immo-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.28);
    border: 1.5px solid rgba(255,255,255,0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}
.immo-lightbox__prev:hover,
.immo-lightbox__next:hover {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.8);
}
.immo-lightbox__prev::before,
.immo-lightbox__next::before { content: none; }
.immo-lightbox__prev { left: 16px; }
.immo-lightbox__next { right: 16px; }

/* ── Close-Button: Glass-Rechteck, oben rechts, CSS-X ── */
.immo-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.18);
    border: none;
    border-radius: 0;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}
.immo-lightbox__close:hover {
    background: rgba(0,0,0,0.35);
}
/* X aus zwei Linien via ::before + ::after */
.immo-lightbox__close::before,
.immo-lightbox__close::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.92);
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
    border-radius: 1px;
}
.immo-lightbox__close::before { transform: rotate(45deg);  }
.immo-lightbox__close::after  { transform: rotate(-45deg); }

.immo-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.92);
    font-size: 0.82em;
    padding: 4px 16px;
    border-radius: 0;
    white-space: nowrap;
    border: none;
}


/* ─────────────────────────────────────────────────────────────
   7. ACCORDION FILTER  (.immo-filter)
   ───────────────────────────────────────────────────────────── */

.immo-filter {
    width: 100%;
}

/* ── Sektion ────────────────────────────────────────────────── */
.immo-filter__section {
    border-bottom: 1px solid rgb(20, 22, 23);
}

.immo-filter__section:first-child {
    border-top: 1px solid rgb(20, 22, 23);
}

/* ── Accordion Header ───────────────────────────────────────── */
.immo-filter__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 1em 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    color: rgb(20, 22, 23);
    position: relative;
}

.immo-filter__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 0.72em;
    font-weight: 700;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.immo-filter__section.is-done .immo-filter__num,
.immo-filter__section.is-open .immo-filter__num {
    opacity: 1;
}

.immo-filter__label {
    font-family: Arsenal, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 2.55px;
    line-height: 18.7px;
    text-transform: uppercase;
    flex: 1;
}

.immo-filter__selected-preview {
    font-family: Arsenal, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 2.55px;
    line-height: 18.7px;
    text-transform: uppercase;
    opacity: 0.55;
    /* Gewählte Auswahl erscheint hier im Header wenn zugeklappt */
}

.immo-filter__arrow {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    opacity: 0.5;
    display: flex;
    align-items: center;
}

.immo-filter__section.is-open .immo-filter__arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Fertig-Sektion: leicht gedimmt wenn zugeklappt */
.immo-filter__section.is-done:not(.is-open) .immo-filter__header {
    opacity: 0.7;
}

/* ── Accordion Body ─────────────────────────────────────────── */
.immo-filter__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.immo-filter__body.is-open {
    max-height: 400px;
}

/* inner wrapper für die 4-spaltige Option-Reihe */
.immo-filter__options {
    overflow: hidden;
    /* 4 Blöcke nebeneinander: gleiche Breite */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6em;
    padding-bottom: 1.2em;
}

/* ── Option-Blöcke ──────────────────────────────────────────── */
.immo-filter__opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 1em 0.5em;
    border: 1px solid rgba(20, 22, 23, 0.2);
    background: transparent;
    cursor: pointer;
    font-family: Arsenal, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 2.55px;
    line-height: 18.7px;
    text-transform: uppercase;
    color: rgb(20, 22, 23);
    text-align: center;
    transition: border-color 0.18s, background 0.18s, color 0.18s, opacity 0.18s;
    opacity: 0.7;
}

.immo-filter__opt img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    margin-bottom: 0.3em;
}

.immo-filter__opt:hover:not([disabled]) {
    opacity: 1;
    border-color: rgb(20, 22, 23);
}

/* ── Gewählt: schwarzer Hintergrund, weißer Text ─────────────
   Kein "currentColor" damit es auf jedem Hintergrund sichtbar ist */
.immo-filter__opt.is-selected {
    opacity: 1;
    background: #111;
    border-color: #111;
    color: #fff;
}

/* ── Nicht verfügbar (nach Vorfilterung) ─────────────────────  */
.immo-filter__opt.is-unavailable,
.immo-filter__opt[disabled] {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

/* Labels + Counts in den Optionen */
.immo-filter__opt-label {
    /* Schrift kommt vom .immo-filter__opt */
}

.immo-filter__opt-count {
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.55;
}

.immo-filter__opt.is-selected .immo-filter__opt-count {
    opacity: 0.75;
    color: #fff;
}

/* ── Region-Carousel ────────────────────────────────────────── */
.immo-filter__carousel {
    position: relative;         /* Anker für absolut positionierte Pfeile */
    padding-bottom: 1.2em;
}

.immo-filter__carousel-viewport {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE/Edge */
    container-type: inline-size; /* Für cqi-Breite der Boxen */
}
.immo-filter__carousel-viewport::-webkit-scrollbar { display: none; }

.immo-filter__carousel-track {
    display: flex;
    flex-wrap: nowrap;          /* NIEMALS zweite Zeile */
    gap: 0.6em;
    align-items: stretch;
}

/* ── Pfeile: overlay über den Boxen, kein eigener Platz ─────── */
.immo-filter__carousel-btn {
    position: absolute;
    top: 0;
    bottom: 1.2em;              /* wie padding-bottom des Wrappers */
    z-index: 2;
    width: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(20,22,23);
    transition: opacity 0.18s;
    opacity: 0.55;
    padding: 0;
}
.immo-filter__carousel-prev { left:  0; }
.immo-filter__carousel-next { right: 0; }

.immo-filter__carousel-btn:hover:not([disabled]) { opacity: 1; }
.immo-filter__carousel-btn[disabled],
.immo-filter__carousel-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Region-Buttons: halbe Breite, gleiche Schrift wie Standard-Boxen */
.immo-filter__carousel-track .immo-filter__opt {
    flex: 0 0 calc((100cqi - 7 * 0.6em) / 8);
    padding: 0.65em 0.3em;
}

/* Mobile: max. 4 gleichzeitig sichtbar */
@media (max-width: 767px) {
    .immo-filter__carousel-track .immo-filter__opt {
        flex: 0 0 calc((100cqi - 3 * 0.6em) / 4);
    }
}

/* ── Land-Carousel: exakt 4 Boxen sichtbar ──────────────────────
   Übernimmt die Aufteilung des früheren 4er-Grids (4 Spalten, gap 0.6em).
   4 Boxen + 3 Lücken ergeben zusammen genau 100cqi — ab der fünften
   entsteht der horizontale Überlauf und das Karussell wird scrollbar.
   Höhere Spezifität als die Region-Regeln oben, gilt also unabhängig
   von der Reihenfolge im Stylesheet.                                */
.immo-filter__section[data-key="land"] .immo-filter__carousel-track .immo-filter__opt {
    flex: 0 0 calc((100cqi - 3 * 0.6em) / 4);
}

/* Ab 1024px zeigte das alte Grid nur noch 2 Spalten — gleiches Verhalten */
@media ( max-width: 1024px ) {
    .immo-filter__section[data-key="land"] .immo-filter__carousel-track .immo-filter__opt {
        flex: 0 0 calc((100cqi - 0.6em) / 2);
    }
}

/* Platzhalter-Text wenn noch kein Land gewählt */
.immo-filter__carousel-placeholder {
    font-family: Arsenal, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(20,22,23,0.35);
    padding: 0.8em 0;
    white-space: nowrap;
}

/* ── Aktionen (Submit + Reset) ──────────────────────────────── */
.immo-filter__actions {
    display: flex;
    align-items: center;
    gap: 1.5em;
    flex-wrap: wrap;
    margin-top: 1.5em;
}

.immo-filter__submit {
    padding: 0.75em 2.5em;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    font-family: Arsenal, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 2.55px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.immo-filter__submit:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.immo-filter__reset {
    background: none;
    border: none;
    font-family: Arsenal, sans-serif;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.4;
    text-decoration: underline;
    padding: 0;
    color: rgb(20, 22, 23);
}

.immo-filter__reset:hover { opacity: 0.7; }

/* Zusammenfassung: zeigt z.B. "Spanien → Wohnung → 1 – 2 Mio." */
.immo-filter__summary {
    margin-top: 0.75em;
    font-family: Arsenal, sans-serif;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.6;
}


/* ─────────────────────────────────────────────────────────────
   8. GRID LAYOUT
   ───────────────────────────────────────────────────────────── */

.immo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Desktop: 2 Spalten (Homepage) */
    gap: 1.5em;
}

/* Archiv-Seite: Klasse .immo-grid--4 wird zu 4 Spalten (nur Homepage-Komponenten) */
.immo-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Hauptobjekte (.immo-hobjekt) spannen immer beide Spalten */
.immo-grid .immo-hobjekt {
    grid-column: 1 / -1;
}


/* ─────────────────────────────────────────────────────────────
   9. ERGEBNIS / LOADING
   ───────────────────────────────────────────────────────────── */

.immo-loading {
    text-align: center;
    padding: 3em;
    opacity: 0.5;
    font-size: 0.9em;
}

.immo-no-results {
    text-align: center;
    padding: 2em;
    opacity: 0.6;
}

.immo-ergebnis-count {
    margin: 0 0 1em;
    font-size: 0.85em;
    opacity: 0.65;
}

.immo-load-more-wrap {
    text-align: center;
    margin-top: 2em;
}

.immo-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 29px;
    border: 1px solid #141617;
    border-radius: 0;
    background: #fff;
    color: #141617;
    font-family: Arsenal, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 2.55px;
    line-height: 18.7px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.immo-load-more:hover {
    background: #141617;
    color: #fff;
    border-color: #141617;
}


/* ─────────────────────────────────────────────────────────────
   10. LAZY LOADING / FADE IN
   ───────────────────────────────────────────────────────────── */

img.immo-lazy {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img.immo-lazy[src]:not([src=""]) {
    opacity: 1;
}

.immo-fade-in {
    animation: immoFadeUp 0.4s ease both;
}

@keyframes immoFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ─────────────────────────────────────────────────────────────
   11. MERKLISTE BUTTON / COUNTER
   ───────────────────────────────────────────────────────────── */

.immo-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.immo-wishlist-count {
    display: none; /* JS zeigt es wenn > 0 */
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: currentColor;
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    text-align: center;
    line-height: 18px;
    padding: 0 4px;
}



/* ─────────────────────────────────────────────────────────────
   12. ARCHIV-SEITE  (.immo-archiv)
   ───────────────────────────────────────────────────────────── */

.immo-archiv {
    width: 100%;
}

/* ── Karte ──────────────────────────────────────────────────── */
.immo-archiv__map-wrap {
    width: 100%;
    position: relative;
}

.immo4oo-karte {
    width: 100%;
    display: block;
    z-index: 1;
}

/* ── Body: immer 1-spaltig — Sidebar ist IMMER ein Drawer ───── */
.immo-archiv__body {
    display: block;
}

/* ── Sidebar — IMMER fixed Drawer von links ──────────────────── */
.immo-archiv__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 360px;
    max-width: 90vw;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    z-index: 2000000;  /* über allem, auch Avada-Header */
    transform: translateX(-110%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.22);
}

.immo-archiv__sidebar.is-open {
    transform: translateX(0);
}

.immo-archiv__sidebar-inner {
    padding: 80px 2em 2em;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgb(20, 22, 23);
    min-height: 100%;
}

/* ── Filter-Toggle — IMMER sichtbar ─────────────────────────── */
.immo-archiv__filter-toggle {
    display: flex;   /* immer sichtbar – kein display:none auf Desktop */
    align-items: center;
    gap: 0.75em;
    padding: 0.85em 1em;
    background: transparent;
    border: none;
    border-right: 1px solid rgb(20, 22, 23);
    font-family: Arsenal, sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgb(20, 22, 23);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.immo-archiv__filter-toggle:hover {
    background: rgba(20, 22, 23, 0.06);
}

.immo-archiv__filter-toggle.is-open {
    background: rgb(20, 22, 23);
    color: var(--immo-gold);
}

/* ── Hauptbereich — volle Breite ────────────────────────────── */
.immo-archiv__main {
    padding: 2em 2em;
}

.immo-archiv__main .immo-liste-wrapper {
    /* Kein eigenes Padding */
}

/* Archive-Grid: IMMER max. 2 Spalten nebeneinander */
.immo-archiv__main .immo-grid {
    grid-template-columns: repeat( 2, 1fr );
}

/* Archiv-Grid: max-width + zentriert */
#immo-archiv-grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Archiv-Karte (ohne alte immo4oo-karte-Klasse) ──────────── */
.immo-archiv__map {
    width: 100%;
    display: block;
    z-index: 1;
}

/* ── Map Resize-Handle ──────────────────────────────────────── */
.immo-archiv__map-resize-handle {
    width: 100%;
    height: 18px;
    background: #eeeeee;
    cursor: ns-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    user-select: none;
    touch-action: none;
    transition: background 0.18s;
}
.immo-archiv__map-resize-handle:hover,
.immo-archiv__map-resize-handle.is-dragging {
    background: #f6d794;
}
/* Griff: 5 Dots in einer Reihe via radial-gradient */
.immo-archiv__map-resize-grip {
    display: block;
    width: 44px;
    height: 4px;
    opacity: 0.28;
    transition: opacity 0.18s;
    background-image: radial-gradient(circle, #494948 1.8px, transparent 1.8px);
    background-size: 9px 4px;
    background-repeat: repeat-x;
    background-position: 0 50%;
}
.immo-archiv__map-resize-handle:hover .immo-archiv__map-resize-grip,
.immo-archiv__map-resize-handle.is-dragging .immo-archiv__map-resize-grip {
    opacity: 0.85;
}
/* ── Leaflet Zoom-Control: bottom-right, passendes Styling ─ */
.leaflet-control-zoom {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.25) !important;
    overflow: hidden;
}
.leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    font-family: Arial, sans-serif !important;
    background: #141617 !important;
    color: rgba(255,255,255,0.7) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s !important;
}
.leaflet-control-zoom-in {
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.leaflet-control-zoom a:hover {
    background: var(--immo-gold, #c9a96e) !important;
    color: #141617 !important;
}
/* Abstand vom Karten-Rand: sitzt knapp über dem Resize-Handle */
.immo-archiv__map-wrap .leaflet-bottom.leaflet-right,
.immo4oo-karte .leaflet-bottom.leaflet-right {
    bottom: 12px;
}

/* ── Toolbar: Toggle + Count + Sort ─────────────────────────── */
.immo-archiv__toolbar {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.85em 1.5em;
    background: rgba(20, 22, 23, 0.03);
    border-bottom: 1px solid rgb(20, 22, 23);
    flex-wrap: wrap;
}

.immo-archiv__count {
    font-family: Arsenal, sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    color: rgba(20, 22, 23, 0.6);
    flex: 1;
    text-align: center;
}

.immo-archiv__sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.immo-archiv__sort-select {
    padding: 0.4em 0.8em;
    border: 1px solid rgb(20, 22, 23);
    background: transparent;
    font-family: Arsenal, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    color: rgb(20, 22, 23);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23141617' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6em center;
    padding-right: 2em;
}

/* ── Sidebar Close-Button — IMMER sichtbar ──────────────────── */
.immo-archiv__sidebar-close {
    display: flex;   /* immer sichtbar */
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(20, 22, 23);
    padding: 0.3em;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 2;
}

.immo-archiv__sidebar-close:hover { opacity: 1; }

/* ── noUiSlider Overrides — runder Handle, feine Spur ───────── */
.noUi-target {
    background: rgba(20,22,23,0.1);
    border: none;
    box-shadow: none;
    border-radius: 99px;
    height: 3px;   /* feine Spur */
    margin: 1.4em 6px;
}
.noUi-connect {
    background: rgb(20,22,23);
    border-radius: 99px;
}
.noUi-handle {
    width: 16px !important;
    height: 16px !important;
    top: -7px !important;        /* zentriert auf der 3px-Spur */
    right: -8px !important;
    border-radius: 50% !important;   /* perfekt rund */
    background: #fff !important;
    border: 2px solid rgb(20,22,23) !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.18) !important;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}
.noUi-handle:hover,
.noUi-handle:focus,
.noUi-active {
    border-color: var(--immo-gold, rgb(200,160,80)) !important;
    transform: scale(1.2);
    outline: none;
}
/* Innere Pseudo-Elemente von noUiSlider ausblenden */
.noUi-handle::before,
.noUi-handle::after { display: none !important; }

/* ── Loading State ──────────────────────────────────────────── */
.immo-archiv__loading {
    font-family: Arsenal, sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(20, 22, 23, 0.45);
    padding: 3em 1em;
    text-align: center;
    grid-column: 1 / -1;
}

/* ── Floating Reset-Bubble ──────────────────────────────────── */
.immo-filter-reset-bubble {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.6em 1.2em;
    background: rgb(20, 22, 23);
    color: var(--immo-gold);
    border: 1px solid rgba(246, 215, 148, 0.35);
    border-radius: 2em;
    font-family: Arsenal, sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: background 0.2s, transform 0.2s;
}

.immo-filter-reset-bubble:hover {
    background: var(--immo-gold);
    color: rgb(20, 22, 23);
    transform: scale(1.04);
}


/* ─────────────────────────────────────────────────────────────
   12b. FASTFILTER SIDEBAR  (.immo-ff__)
   ───────────────────────────────────────────────────────────── */

.immo-fastfilter {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 60px;
}

/* ── Sektion ────────────────────────────────────────────────── */
.immo-ff__section {
    padding: 1.25em 0;
    border-bottom: 1px solid rgba(20, 22, 23, 0.12);
}

.immo-ff__section:first-child { padding-top: 0; }
.immo-ff__section--reset      { border-bottom: none; padding-bottom: 0; }

/* ── Label ──────────────────────────────────────────────────── */
.immo-ff__label {
    font-family: Arsenal, sans-serif;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(20, 22, 23, 0.5);
    margin-bottom: 0.75em;
}

/* ── Bubble-Buttons ─────────────────────────────────────────── */
.immo-ff__bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}

.immo-ff__bubble {
    padding: 0.35em 0.85em;
    border: 1px solid rgb(20, 22, 23);
    background: transparent;
    font-family: Arsenal, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgb(20, 22, 23);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
    white-space: nowrap;
}

.immo-ff__bubble:hover:not(:disabled) {
    background: rgb(20, 22, 23);
    color: #fff;
}

.immo-ff__bubble.is-active {
    background: rgb(20, 22, 23);
    color: var(--immo-gold);
    border-color: rgb(20, 22, 23);
}

.immo-ff__bubble.is-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Suche / OID ────────────────────────────────────────────── */
.immo-ff__search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.immo-ff__search-icon {
    display: none;
}

.immo-ff__search-input {
    width: 100%;
    padding: 0.55em 2.4em 0.55em 2.4em;
    border: 1px solid rgba(20, 22, 23, 0.35);
    background: rgba(255, 255, 255, 0.6);
    font-family: Arsenal, sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgb(20, 22, 23);
    outline: none;
    transition: border-color 0.2s;
}

.immo-ff__search-input::placeholder {
    color: #999999;
}

.immo-ff__search-input:focus {
    border-color: rgb(20, 22, 23);
    background: rgba(255, 255, 255, 0.95);
}

.immo-ff__search-reset {
    position: absolute;
    right: 0.6em;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(20, 22, 23, 0.4);
    padding: 0.2em;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.immo-ff__search-reset:hover { color: rgb(20, 22, 23); }
.immo-ff__search-reset svg { width: 12px; height: 12px; }

/* ── Slider ─────────────────────────────────────────────────── */
.immo-ff__slider {
    margin: 0.75em 0 0.4em;
}

.immo-ff__slider-labels {
    display: flex;
    justify-content: space-between;
    font-family: Arsenal, sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: rgba(20, 22, 23, 0.55);
    margin-top: 0.25em;
}

/* noUiSlider Theme-Override (Gold/Schwarz) */
.immo-ff__slider.noUi-target {
    background: rgba(20, 22, 23, 0.1);
    border-color: transparent;
    box-shadow: none;
    height: 3px;
    border-radius: 0;
}

.immo-ff__slider .noUi-connect {
    background: rgb(20, 22, 23);
}

.immo-ff__slider .noUi-handle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--immo-gold);
    border: 2px solid rgb(20, 22, 23);
    box-shadow: none;
    cursor: pointer;
    top: -5px;
    right: -7px;
}

.immo-ff__slider .noUi-handle::before,
.immo-ff__slider .noUi-handle::after {
    display: none;
}

/* ── Toggle-Checkbox ────────────────────────────────────────── */
.immo-ff__toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: Arsenal, sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: rgba(20, 22, 23, 0.65);
    cursor: pointer;
    margin-top: 0.6em;
}

.immo-ff__toggle-label input[type="checkbox"] {
    accent-color: rgb(20, 22, 23);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Reset-Button ───────────────────────────────────────────── */
.immo-ff__reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 29px;
    background-color: #fff;
    border: 1px solid var(--immo-gold, #f6d794);
    border-radius: 0;
    font-family: Arsenal, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 2.55px;
    line-height: 18.7px;
    text-transform: uppercase;
    color: #141617;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
}

.immo-ff__reset-btn:hover {
    background-color: var(--immo-gold, #f6d794);
    color: #141617;
    border-color: var(--immo-gold, #f6d794);
}


/* ─────────────────────────────────────────────────────────────
   LEAFLET POPUP — Mini-Card-Design (wie Archiv-Cards, kompakt)
   ───────────────────────────────────────────────────────────── */

/* Popup-Rahmen */
/* ── Popup Wrapper (Leaflet-Overrides) ───────────────────── */
.immo-map-popup-wrap .leaflet-popup-content-wrapper {
    background: #fff;
    color: #141617;
    border-radius: 6px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.22);
    border: none;
    padding: 0;
    overflow: hidden;
    max-height: 56vh;
    overflow-y: auto;
    width: 300px !important;
    max-width: calc(100vw - 40px) !important;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.12) transparent;
}
.immo-map-popup-wrap .leaflet-popup-content {
    margin: 0;
    width: 100% !important;
    box-sizing: border-box;
}
.immo-map-popup-wrap .leaflet-popup-tip { background: #fff; }
.immo-map-popup-wrap .leaflet-popup-close-button {
    color: rgba(0,0,0,0.35) !important;
    font-size: 18px;
    top: 8px; right: 10px;
    z-index: 2;
}
.immo-map-popup-wrap .leaflet-popup-close-button:hover { color: rgb(180,140,55) !important; }

/* ── Leaflet GestureHandling: helles Overlay mit Arsenal-Typografie ─ */
.leaflet-container .leaflet-gesture-handling-warning {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(5px) !important;
}
.leaflet-container .leaflet-gesture-handling-warning,
.leaflet-container .leaflet-gesture-handling-warning::after {
    color: #141617 !important;
    font-family: Arsenal, sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
    text-shadow: none !important;
}

/* ── Popup Header ────────────────────────────────────────── */
.immo-map-popup__head {
    padding: 0.9em 1.1em 0.75em;
    border-bottom: 2px solid rgb(246,215,148);
}
.immo-map-popup__title {
    margin: 0;
    font-size: 17px;
    font-family: Arsenal, sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #141617;
    line-height: 1.2;
}
.immo-map-popup__subtitle {
    margin: 0.25em 0 0;
    font-size: 12px;
    color: rgba(0,0,0,0.45);
    letter-spacing: 0;
}

/* ── Einzelne Immobilien-Karte im Popup ──────────────────── */
.immo-map-popup__card {
    border-bottom: 1px solid rgba(0,0,0,0.07);
}
.immo-map-popup__card:last-of-type { border-bottom: none; }

.immo-map-popup__link {
    display: block;
    text-decoration: none;
    color: #141617;
    transition: background 0.2s;
}
.immo-map-popup__link:hover { background: rgba(246,215,148,0.08); }

/* Bild: sauber, ohne Overlay */
.immo-map-popup__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}
.immo-map-popup__img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0,0,0,0.06);
}

/* Info-Bereich unterhalb des Bildes */
.immo-map-popup__info {
    padding: 0.75em 1em 0.9em;
    display: flex;
    flex-direction: column;
    gap: 0.22em;
}

.immo-map-popup__card-title {
    font-family: Arsenal, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 0.1em;
    line-height: 1.3;
    color: #141617;
}

.immo-map-popup__oid {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: rgba(0,0,0,0.35);
    font-family: Arsenal, sans-serif;
    text-transform: uppercase;
}

.immo-map-popup__ort {
    font-size: 12px;
    color: rgba(0,0,0,0.55);
}

.immo-map-popup__preis {
    font-size: 13px;
    font-weight: 700;
    color: rgb(160,120,40);
}
.immo-map-popup__preis.is-anfrage {
    font-style: italic;
    color: rgba(0,0,0,0.4);
}

/* Button "Objekt ansehen →" */
.immo-map-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5em;
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid var(--immo-gold, #f6d794);
    border-radius: 0;
    color: #141617;
    font-size: 11px;
    font-weight: 400;
    font-family: Arsenal, sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    align-self: flex-start;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.immo-map-popup__link:hover .immo-map-popup__btn {
    background-color: var(--immo-gold, #f6d794);
    color: #141617;
    border-color: var(--immo-gold, #f6d794);
}

/* „Mehr"-Hinweis */
.immo-map-popup__more {
    font-size: 11px;
    color: rgba(0,0,0,0.35);
    text-align: center;
    padding: 0.6em;
    margin: 0;
    letter-spacing: 0.5px;
    font-family: Arsenal, sans-serif;
    border-top: 1px solid rgba(0,0,0,0.07);
}


/* ─────────────────────────────────────────────────────────────
   13. LEAFLET KARTE — Marker + Popup
   ───────────────────────────────────────────────────────────── */

/* ── Custom Marker ──────────────────────────────────────────── */
.immo-map-marker-wrap {
    background: none;
    border: none;
}

.immo-map-marker {
    display: block;
    width: 22px;
    height: 22px;
    background: rgb(20, 22, 23);
    border: 2px solid var(--immo-gold);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s;
}

.immo-map-marker:hover {
    background: var(--immo-gold);
    transform: scale(1.3);
}

/* Leaflet Tip-Container */
.immo-map-popup-wrap .leaflet-popup-tip-container {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* ── Karte Highlight wenn Marker geklickt ───────────────────── */
.immo-card.is-highlighted {
    outline: 2px solid var(--immo-gold);
    outline-offset: 3px;
}


/* =============================================================================
   TABLET — max-width: 1024px  ← Wert hier anpassen
   ============================================================================= */
@media ( max-width: 1024px ) {

    /* Grid bleibt 2-spaltig auf Tablet */
    .immo-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Accordion: 4er Optionsraster → 2er */
    .immo-filter__options {
        grid-template-columns: repeat(2, 1fr);
    }

    .immo-single__body {
        grid-template-columns: 1fr;
    }

    .immo-single__contact-box {
        position: static;
    }

    .immo-single__facts {
        gap: 1.5em;
    }

    /* Archiv-Main: weniger Padding auf Tablet */
    .immo-archiv__main {
        padding: 1.5em 1em;
    }

    .immo-archiv__main .immo-grid {
        grid-template-columns: repeat( 2, 1fr ); /* bleibt 2-spaltig auf Tablet */
    }

}


/* =============================================================================
   MOBILE — max-width: 767px  ← Wert hier anpassen
   ============================================================================= */
@media ( max-width: 767px ) {

    /* 1 Spalte auf Mobile */
    .immo-grid,
    .immo-grid--4 {
        grid-template-columns: 1fr;
    }

    /* Cards auf Mobile: quadratisch bleibt, aber Mindesthöhe kleiner */
    .immo-card {
        min-height: 220px;
    }

    /* Accordion: 2er Raster bleibt auf Mobile */
    .immo-filter__options {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Submit-Button voll breit */
    .immo-filter__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .immo-filter__submit {
        width: 100%;
        text-align: center;
    }

    .immo-single__slider {
        height: 60vh; /* auf Mobile etwas kleiner */
        min-height: 300px;
    }

    .immo-single__title {
        font-size: 1.3em;
    }

    .immo-single__header {
        flex-direction: column;
        gap: 0.75em;
    }

    .immo-single__facts {
        gap: 1em;
    }

    .immo-single__thumb {
        width: 44px;
        height: 44px; /* rund bleiben */
    }
    .immo-single__thumbs {
        bottom: 16px;
        padding: 8px 10px;
        gap: 6px;
    }

    /* Archiv-Grid: 1 Spalte auf Mobile */
    .immo-archiv__main .immo-grid {
        grid-template-columns: 1fr;
    }

    /* Hauptobjekt auf Mobile: Hero etwas niedriger */
    .immo-hobjekt__hero {
        height: 260px;
    }
    .immo-hobjekt__title {
        font-size: 20px;
        white-space: normal;
    }
    .immo-hobjekt__overlay {
        padding: 1em 1.2em 1.2em;
    }
    .immo-hobjekt__carousel {
        padding: 1em 0 1.2em;
    }
    .immo-hobjekt__swiper-wrap {
        padding: 0;
    }

    /* Filter-Tab: kleiner auf Mobile */
    .immo-archiv__filter-tab {
        padding: 0.9em 0.5em;
        gap: 0.3em;
    }
    .immo-filter-tab__label {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
    body.immo-archiv-sidebar-open .immo-archiv__filter-tab {
        left: 300px;
    }

    .immo4oo-karte,
    .immo-archiv__map {
        height: 55vw !important;
        min-height: 250px;
    }

    .immo-archiv__toolbar {
        flex-wrap: nowrap;
        padding: 0.7em 1em;
        gap: 0.5em;
    }

    .immo-archiv__sort-select {
        font-size: 11px;
        padding: 0.3em 1.6em 0.3em 0.5em;
    }
}


/* =============================================================================
   14b. SORT LABEL
   ============================================================================= */

.immo-archiv__sort-label {
    font-family: Arsenal, sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(20, 22, 23, 0.5);
    white-space: nowrap;
}


/* =============================================================================
   14c. FIXER FILTER-TAB (Reiter an der linken Seite)
   ============================================================================= */

.immo-archiv__filter-tab {
    /* Position: immer an der linken Kante der Seite */
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2000001;  /* immer über der Sidebar + Avada-Header */

    /* Aussehen: vertikale Leiste */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    padding: 1.2em 0.7em;

    background: rgb(20, 22, 23);
    color: var(--immo-gold);
    border: none;
    border-left: none;
    border-radius: 0 4px 4px 0;   /* abgerundete rechte Ecken */
    cursor: pointer;
    box-shadow: 4px 0 16px rgba(0,0,0,0.22);
    transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s, color 0.2s;
    user-select: none;
}

.immo-archiv__filter-tab:hover {
    background: var(--immo-gold);
    color: rgb(20, 22, 23);
}

/* Label vertikal drehen */
.immo-filter-tab__label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: Arsenal, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    pointer-events: none;
}

/* Icon: Hamburger sichtbar, X versteckt (Standardzustand = geschlossen) */
.immo-filter-tab__icon--open  { display: block; }
.immo-filter-tab__icon--close { display: none;  }

/* Wenn Sidebar offen: X anzeigen, Tab nach rechts verschieben */
body.immo-archiv-sidebar-open .immo-archiv__filter-tab {
    left: 360px;                              /* = Sidebar-Breite */
    background: rgb(20, 22, 23);
    color: var(--immo-gold);
    border-radius: 0 4px 4px 0;
}

body.immo-archiv-sidebar-open .immo-filter-tab__icon--open  { display: none;  }
body.immo-archiv-sidebar-open .immo-filter-tab__icon--close { display: block; }


/* =============================================================================
   14. IMMO-LISTE — Icon-Fakten-Zeilen (.immoListe)
   ============================================================================= */

.immoListe {
    list-style: none;
    margin: 1.2em 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55em;
}

.immoListe li {
    display: flex;
    align-items: center;
    gap: 0.65em;
    font-family: Arsenal, sans-serif;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: inherit;
    padding: 0;
}

/* Icon: FA-Icon als <i>-Element */
.immoListe li i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-size: 13px;
    opacity: 0.65;
    color: inherit;
}

/* Kleinere Variante für Einheiten-Swiper */
.immoListe--klein li {
    font-size: 15px;
    gap: 0.45em;
}
.immoListe--klein li i {
    font-size: 11px;
    width: 14px;
}

/* Karten-Variante: horizontal verteilt, helle Icons auf dunklem BG */
.immoListe--card {
    flex-direction: row;   /* horizontal, nicht vertikal */
    flex-wrap: wrap;
    gap: 0.25em 1.1em;
    margin: 0;
    align-items: center;
}
.immoListe--card li {
    font-size: 12px;
    letter-spacing: 0.4px;
    color: rgba(255,255,255,0.88);
    gap: 0.35em;
}
.immoListe--card li.iconPreis {
    color: var(--immo-gold, rgb(246,215,148));
    font-weight: 600;
}
/* Ort-Eintrag: truncate wenn zu lang */
.immoListe--card li.iconLage {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

/* FA-Icons in Karten-Variante: weiß, etwas kleiner */
.immoListe--card li i {
    font-size: 11px;
    width: 13px;
    opacity: 0.75;
    color: rgba(255,255,255,0.9);
}

/* Header-Variante: horizontal nebeneinander */
.immoListe--header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.2em 2em;
    padding: 1em 0;
    border-top: 1px solid rgba(20,22,23,0.15);
    border-bottom: 1px solid rgba(20,22,23,0.15);
    margin: 0.5em 0 1.5em;
}


/* =============================================================================
   14d. HAUPTOBJEKT-ZEILE IM ARCHIV  (.immo-hobjekt)
   Spannt immer beide Grid-Spalten; Hero-Zeile + Karussell darunter
   ============================================================================= */

.immo-hobjekt {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ── Hero-Section: Vollbild-Karten-Design ─────────────────── */
.immo-hobjekt__hero {
    position: relative;
    height: 340px;   /* gleiche Proportionen wie normale Cards, aber tiefer */
    overflow: hidden;
    background: rgb(20,22,23);
}

/* Hintergrundbild (wie immo-card__bg) */
.immo-hobjekt__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: rgba(20,22,23,0.9);
    transition: transform 0.5s ease;
}
.immo-hobjekt__hero:hover .immo-hobjekt__bg { transform: scale(1.04); }

/* Dunkelgradient-Overlay + Klick-Fläche (wie immo-card__overlay) */
.immo-hobjekt__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(14,14,14,0.2)  0%,
        rgba(14,14,14,0.55) 40%,
        rgba(14,14,14,0.92) 100%
    );
    display: flex;
    flex-direction: column;
    padding: 1.4em 1.8em 1.6em;
    text-decoration: none;
    color: #fff;
}

/* OID + Label + Herz oben */
.immo-hobjekt__top {
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.immo-hobjekt__oid-badge {
    font-family: Arsenal, sans-serif;
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.35);
    padding: 0.25em 0.65em;
    border-radius: 1px;
}

.immo-hobjekt__type-label {
    font-family: Arsenal, sans-serif;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--immo-gold, rgb(246,215,148));
    opacity: 0.9;
}

/* Herz-Button im Overlay-Top */
.immo-hobjekt__top .immo-card__heart {
    margin-left: auto;
}

/* Flexibler Zwischenraum */
.immo-hobjekt__spacer { flex: 1; }

/* Unterer Inhaltsbereich */
.immo-hobjekt__content {
    display: flex;
    flex-direction: column;
    gap: 0.45em;
}

.immo-hobjekt__rule {
    height: 1px;
    background: rgba(255,255,255,0.25);
}

.immo-hobjekt__title {
    font-family: Times, "Times New Roman", serif;
    font-size: 35px !important;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.immo-hobjekt__footer {
    display: flex;
    align-items: center;
    gap: 1.2em;
    margin-top: 0.6em;
    flex-wrap: wrap;
}

.immo-hobjekt__einheiten {
    font-family: Arsenal, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.3em 0.8em;
    border-radius: 2px;
}

/* Von-bis Facts: etwas größer als --card */
.immoListe--hobjekt {
    gap: 0.3em 1.4em !important;
}
.immoListe--hobjekt li {
    font-size: 13px !important;
    gap: 0.45em !important;
}
.immoListe--hobjekt li i {
    font-size: 12px !important;
    width: 15px !important;
}

/* ── Untereinheiten-Karussell ────────────────────────────── */
.immo-hobjekt__carousel {
    border-top: 1px solid rgba(20,22,23,0.08);
    padding: 1.5em 0;
    background: rgba(20,22,23,0.02);
}

.immo-hobjekt__carousel-title {
    font-family: Arsenal, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(20,22,23,0.5);
    font-weight: 400;
    margin: 0 0 1em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
}

/* OID-Badge im Karussell-Kopf (heller Hintergrund) */
.immo-hobjekt__carousel-title .immo-hobjekt__oid-badge {
    background: rgba(20,22,23,0.08);
    color: rgba(20,22,23,0.7);
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 0.2em 0.6em;
    border-radius: 2px;
}

/* Swiper-Wrapper mit Pfeil-Platz links/rechts */
.immo-hobjekt__swiper-wrap {
    position: relative;
    padding: 0;
}

.immo-hobjekt__swiper-prev,
.immo-hobjekt__swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: 1px solid rgba(20,22,23,0.15);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: rgb(20,22,23);
    padding: 0;
}
.immo-hobjekt__swiper-prev { left: 0; }
.immo-hobjekt__swiper-next { right: 0; }

.immo-hobjekt__swiper-prev:hover,
.immo-hobjekt__swiper-next:hover {
    background: var(--immo-gold, rgb(200,160,80));
    border-color: var(--immo-gold, rgb(200,160,80));
    color: #111;
}

.immo-hobjekt__swiper-prev.is-disabled,
.immo-hobjekt__swiper-next.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Einheiten-Karte im Swiper */
.immo-einheit-card {
    height: auto;
}

.immo-einheit-card__inner {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(20,22,23,0.1);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.immo-einheit-card__inner:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

.immo-einheit-card__img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(20,22,23,0.06);
}

.immo-einheit-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.immo-einheit-card__inner:hover .immo-einheit-card__img-wrap img {
    transform: scale(1.04);
}

.immo-einheit-card__no-img {
    width: 100%;
    height: 100%;
}

.immo-einheit-card__info {
    padding: 0.9em 1em 1em;
}

.immo-einheit-card__title {
    font-family: Times, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 400;
    margin: 0 0 0.5em;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: rgb(20,22,23);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =============================================================================
   15. STÖRER / BANNER  (.BannerVKStand)
   ============================================================================= */

.BannerVKStand,
.BannerNeuHolder {
    position: absolute;
    top: 1.2em;
    left: 0;
    z-index: 5;
    padding: 0.45em 1.2em 0.45em 1em;
    background: rgb(20, 22, 23);
    color: var(--immo-gold);
    font-family: Arsenal, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    /* Kleines Dreieck rechts */
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}

/* Overlay nur wenn Elternelement position:relative hat */
.immo-single__slider,
.immo-einheit-card__img-link {
    position: relative;
}

/* Statische Version (kein absolute positioning) */
.BannerVKStand.immo-single__stoerer {
    position: absolute;
    top: 1.2em;
    left: 0;
}

/* Farbvarianten */
.BannerVKStand.is-verkauft  { background: #7a0000; color: #fff; }
.BannerVKStand.is-vermietet { background: #004a00; color: #fff; }
.BannerVKStand.is-reserviert{ background: #6b4400; color: #fff; }


/* =============================================================================
   16. HAUPTOBJEKT / PROJEKT-TEMPLATE  (.immo-projekt)
   ============================================================================= */

/* ── Hero: Vollbild-Hintergrundbild ─────────────────────────── */
.immo-projekt__hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: rgb(14, 14, 14); /* Fallback ohne Bild */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Dunkel-Gradient-Overlay über dem Bild */
.immo-projekt__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(14,14,14,0.25) 0%,
        rgba(14,14,14,0.55) 45%,
        rgba(14,14,14,0.92) 78%,
        rgba(14,14,14,0.98) 100%
    );
    z-index: 0;
}

/* Status-Banner oben rechts */
.immo-projekt__hero-banner {
    position: absolute;
    top: 1.5em;
    right: 1.5em;
    z-index: 2;
}

/* Fakten-Kopf: Titel + Liste über dem Bild */
.immo-projekt__hero-head {
    position: relative;
    z-index: 1;
    padding: clamp(5rem, 14vh, 9rem) clamp(2rem, 5vw, 5rem) 3rem;
    max-width: 860px;
    color: #fff;
}

.immo-projekt__breadcrumb {
    font-family: Arsenal, sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.6em;
}

.immo-projekt__titel {
    font-family: Times, "Times New Roman", serif;
    font-size: clamp(26px, 3.5vw, 46px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.03em;
    margin: 0 0 0.8em;
    color: #fff;
}

/* immoListe über dem Bild: weiße Icons + weißer Text */
.immo-projekt__hero-head .immoListe li {
    color: rgba(255, 255, 255, 0.88);
}
.immo-projekt__hero-head .immoListe li i {
    color: rgba(255, 255, 255, 0.75);
}

.immo-projekt__hero-actions {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-top: 1.5em;
    flex-wrap: wrap;
}

/* CTA-Button auf dunklem Hintergrund */
.immo-projekt__hero-head .ctaButtonSmall {
    background: var(--immo-gold);
    color: rgb(20, 22, 23);
    border-color: var(--immo-gold);
}
.immo-projekt__hero-head .ctaButtonSmall:hover {
    background: #fff;
    color: rgb(20, 22, 23);
    border-color: #fff;
}
.immo-projekt__hero-head .immo-single__heart {
    color: rgba(255,255,255,0.7);
}
.immo-projekt__hero-head .immo-single__heart:hover {
    color: var(--immo-gold);
}

/* ── CTA-Button (ctaButtonSmall) ─────────────────────────────── */
.ctaButtonSmall {
    display: inline-block;
    padding: 0.7em 1.8em;
    background: rgb(20, 22, 23);
    color: var(--immo-gold);
    border: 1px solid rgb(20, 22, 23);
    font-family: Arsenal, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ctaButtonSmall:hover {
    background: var(--immo-gold);
    color: rgb(20, 22, 23);
    text-decoration: none;
}

/* ── Einheiten-Bereich — innerhalb des Hero-Bildes ───────────── */
.immo-projekt__einheiten {
    position: relative;
    z-index: 1;
    padding: 0 clamp(1.5rem, 4vw, 4rem) 3rem;
}

.immo-projekt__einheiten-title {
    font-family: Times, "Times New Roman", serif;
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 400;
    margin: 0 0 1.2em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
    color: #fff; /* Weiß auf Hintergrundbild */
}

.immo-projekt__oid-badge {
    display: inline-block;
    padding: 0.2em 0.75em;
    background: var(--immo-gold);
    color: rgb(20, 22, 23);
    font-family: Arsenal, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
}

/* ── Swiper ─────────────────────────────────────────────────── */
.immo-projekt__swiper {
    padding-bottom: 2.5em !important; /* Platz für Pagination */
}

.immo-projekt__pagination {
    bottom: 0.3em !important;
}

.immo-projekt__pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    width: 8px;
    height: 8px;
}

.immo-projekt__pagination .swiper-pagination-bullet-active {
    background: var(--immo-gold);
    opacity: 1;
}

/* ── Einheit-Card im Swiper ─────────────────────────────────── */
.immo-einheit-card {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.immo-einheit-card__img-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(20,22,23,0.06);
    flex-shrink: 0;
    text-decoration: none;
}

.immo-einheit-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.immo-einheit-card__img-link:hover .immo-einheit-card__img {
    transform: scale(1.04);
}

.immo-einheit-card__no-img {
    width: 100%;
    height: 100%;
    background: rgba(20,22,23,0.08);
}

.immo-einheit-card__body {
    padding: 1.2em 1.2em 1.5em;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.immo-einheit-card__oid {
    font-family: Arsenal, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(20,22,23,0.45);
}

.immo-einheit-card__title {
    font-family: Times, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
}

.immo-einheit-card__body .ctaButtonSmall {
    margin-top: auto;
    align-self: flex-start;
}


/* =============================================================================
   17. SINGLE-SEITE ERGÄNZUNGEN
   ============================================================================= */

/* Ansprechpartner-Zeile in Sidebar */
.immo-single__ansprechpartner {
    font-size: 0.85em;
    margin: 0.75em 0;
    border-top: 1px solid rgba(20,22,23,0.1);
    padding-top: 0.75em;
    color: rgba(20,22,23,0.75);
}

/* immoListe Wrapper auf Single-Seite */
.immo-single__immoliste-wrap {
    margin: 0 0 1.5em;
}

/* Features / Ausstattung */
.immo-single__feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4em 1.5em;
}

.immo-single__feature-list li {
    font-size: 0.9em;
    padding-left: 1.4em;
    position: relative;
}

.immo-single__feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--immo-gold);
    font-weight: 700;
}

/* Entfernungen */
.immo-single__entfernungen {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.immo-single__entfernung {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(20,22,23,0.07);
    font-size: 0.9em;
}

.immo-single__entfernung:last-child { border-bottom: none; }

.immo-single__entfernung-typ {
    color: rgba(20,22,23,0.6);
}

.immo-single__entfernung-km {
    font-weight: 600;
    font-size: 0.95em;
}


/* =============================================================================
   RESPONSIVE ERGÄNZUNGEN für neue Sektionen
   ============================================================================= */

@media ( max-width: 1024px ) {

    /* Features: 1-spaltig */
    .immo-single__feature-list {
        grid-template-columns: 1fr;
    }
}

@media ( max-width: 767px ) {

    .immo-projekt__hero {
        min-height: 100svh; /* Small viewport units für Mobile */
    }

    .immo-projekt__einheiten {
        padding: 0 1.2rem 2.5rem;
    }

    .immo-projekt__einheiten-title {
        font-size: 17px;
    }

    .immoListe--header {
        flex-direction: column;
        gap: 0.5em;
    }

    /* Archiv-Sidebar etwas schmaler */
    .immo-archiv__sidebar {
        width: 300px;
    }

    /* Hauptobjekt-Tab: Verschiebung angepasst */
    body.immo-archiv-sidebar-open .immo-archiv__filter-tab {
        left: 300px;
    }

    /* Hauptobjekt-Zeile: etwas niedriger auf Tablet */
    .immo-hobjekt__hero {
        height: 300px;
    }
}

/* =============================================================================
   DETAIL-SEITE SHORTCODES  (.immo-sc-*)
   ============================================================================= */

/* ── Gemeinsame Block-Basis ───────────────────────────────────── */
.immo-sc-block {
    margin-bottom: 2.5em;
}

.immo-sc-heading {
    font-family: Arsenal, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(20, 22, 23, 0.45);
    margin: 0 0 1.2em;
    padding-bottom: 0.6em;
    border-bottom: 1px solid rgba(20, 22, 23, 0.1);
}

.immo-sc-text {
    font-size: 17px;
    font-family: inherit;
    line-height: inherit;
    color: inherit;
}
.immo-sc-text p { margin: 0 0 1em; }
.immo-sc-text p:last-child { margin-bottom: 0; }

/* Platzhalter wenn Feld leer ist */
.immo-sc-empty {
    margin: 0;
    font-size: 0.82em;
    font-style: italic;
    color: rgba(0, 0, 0, 0.22);
}

/* ── Faktentabelle ────────────────────────────────────────────── */
.immo-sc-fakten {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.immo-sc-fakten tr {
    border-bottom: 1px solid rgba(20, 22, 23, 0.07);
}
.immo-sc-fakten tr:last-child { border-bottom: none; }
.immo-sc-fakten th {
    text-align: left;
    font-weight: 400;
    color: rgba(20, 22, 23, 0.5);
    padding: 0.55em 1em 0.55em 0;
    width: 45%;
    font-family: Arsenal, sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.immo-sc-fakten td {
    font-weight: 600;
    padding: 0.55em 0;
    color: rgb(20, 22, 23);
}

/* ── Ausstattung ──────────────────────────────────────────────── */
.immo-sc-ausstattung__liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1em;
}
.immo-sc-ausstattung__liste li {
    display: flex;
    align-items: center;
    gap: 1em;
    font-size: 17px;
    color: rgb(20, 22, 23);
    line-height: 1;
}
/* Icon-Spalte: feste Breite für saubere Ausrichtung */
.immo-sc-ausstattung__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
    color: rgb(20, 22, 23);   /* schwarz – kein Gold */
    font-size: 15px;
}

/* ── Sonstige Angaben ─────────────────────────────────────────── */
.immo-sc-sonstige__liste {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
}
.immo-sc-sonstige__row {
    display: flex;
    flex-direction: column;
    padding: 0.6em 0.8em 0.6em 0;
    border-bottom: 1px solid rgba(20, 22, 23, 0.06);
}
.immo-sc-sonstige__liste dt {
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(20, 22, 23, 0.4);
    font-family: Arsenal, sans-serif;
    margin: 0;
}
.immo-sc-sonstige__liste dd {
    font-size: 14px;
    font-weight: 600;
    color: rgb(20, 22, 23);
    margin: 0.15em 0 0;
}

/* ── Entfernungen ─────────────────────────────────────────────── */
.immo-sc-entfernungen__liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1em;
}
.immo-sc-entfernungen__item {
    display: flex;
    align-items: center;
    gap: 1em;
    font-size: 17px;
    line-height: 1;
}
/* Icon-Spalte */
.immo-sc-entfernungen__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
    color: rgb(20, 22, 23);   /* schwarz */
    font-size: 15px;
}
/* Bezeichnung: wächst und füllt verfügbaren Platz */
.immo-sc-entfernungen__typ {
    flex: 1;
    color: rgb(20, 22, 23);
}
/* km-Angabe: rechtsbündig, fett */
.immo-sc-entfernungen__km {
    font-weight: 700;
    color: rgb(20, 22, 23);
    white-space: nowrap;
    font-size: 17px;
    margin-left: auto;
}

/* ── Globale Gold-Variable ────────────────────────────────────── */
:root {
    --immo-gold:            #f6d794;
    --immo-gold-dark:       #c9a84c;   /* für hover / Schatten */
    --immo-betreuer-accent: #f6d794;   /* Betreuer-Ring = Gold */
}

/* ── Betreuer / Ansprechpartner ───────────────────────────────── */

.immo-sc-betreuer { margin-bottom: 1.5em; }

.immo-sc-betreuer__heading {
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(20, 22, 23, 0.45);
    margin: 0 0 1.2em;
    padding-bottom: 0.6em;
    border-bottom: 1px solid rgba(20, 22, 23, 0.1);
}

/* Karte: Foto links, Infos rechts */
.immo-sc-betreuer__card {
    display: flex;
    align-items: flex-start;
    gap: 1.6em;
}

/* Rundes Foto mit 2px Gold-Ring */
.immo-sc-betreuer__foto-wrap {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 0px solid var(--immo-betreuer-accent);
    padding: 0;
}
.immo-sc-betreuer__foto {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(20,22,23,0.08);
    /* Optional Graustufen wie im Bild: */
    filter: grayscale(30%);
}

/* Infos-Spalte */
.immo-sc-betreuer__info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

/* Name: FETT, GROSSBUCHSTABEN */
.immo-sc-betreuer__name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgb(20, 22, 23);
    display: block;
    margin-bottom: 0.4em;
    line-height: 1.2;
}

/* Titel/Qualifikationen: gestapelt, größerer Abstand zur Kontaktsektion */
.immo-sc-betreuer__titles {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    margin-bottom: 1.6em; /* deutliche Lücke wie im Bild */
}
.immo-sc-betreuer__titles span {
    font-size: 15px;
    color: rgba(20, 22, 23, 0.7);
    line-height: 1.5;
}

/* Kontakt-Zeilen — großzügiger Abstand wie im Referenzbild */
.immo-sc-betreuer__contacts {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    margin-top: 0.4em;
}
.immo-sc-betreuer__kontakt {
    display: flex;
    align-items: center;
    gap: 1em;
    font-size: 17px;
    color: rgba(20, 22, 23, 0.88);
    text-decoration: none;
    transition: color 0.18s;
    line-height: 1;
}
a.immo-sc-betreuer__kontakt:hover {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
}
.immo-sc-betreuer__kontakt--fax { cursor: default; }

/* Icons: FA-Icon, Akzentfarbe, feste Breite für Ausrichtung */
.immo-sc-betreuer__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    color: var(--immo-betreuer-accent);
    font-size: 16px;
}
.immo-sc-betreuer__icon .fa-mobile { font-size: 20px; } /* Mobile-Icon etwas größer */

/* ── Video-Shortcodes ─────────────────────────────────────────── */
/* Inline-Player */
.immo-sc-video { margin-bottom: 1.5em; }

/* 16:9 Wrapper für iframes + HTML5-Video */
.immo-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}
.immo-video-wrap iframe,
.immo-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Video-Button — schwarzer Rand, kein Gold */
.immo-sc-video-btn {
    gap: 0.55em;
    border-color: #141617;
}
.immo-sc-video-btn:hover {
    border-color: #141617;
}

/* ── Merken-Button ───────────────────────────────────────────── */
.immo-sc-merken {
    gap: 0.55em;
}
/* Herz-Outline immer sichtbar, Herz-Fill versteckt */
.immo-sc-merken__heart-out  { display: block; flex-shrink: 0; transition: opacity 0.2s; }
.immo-sc-merken__heart-fill { display: none;  flex-shrink: 0; color: var(--immo-gold, #f6d794); }

/* Aktiv-Zustand: gefülltes Herz zeigen, Gold-Akzent */
.immo-sc-merken.is-saved .immo-sc-merken__heart-out  { display: none; }
.immo-sc-merken.is-saved .immo-sc-merken__heart-fill { display: block; }

/* Herz immer Gold — egal ob light oder dark Variante */
.immo-sc-merken__heart-fill { color: var(--immo-gold, #f6d794); }

/* Light-Variante gespeichert: Gold-Border, Gold-Herz, Text dunkel */
.immo-btn--light.immo-sc-merken.is-saved {
    border-color: var(--immo-gold, #f6d794);
    color: #141617;
}
/* Dark-Variante gespeichert: Gold-Border, Gold-Text */
.immo-btn--dark.immo-sc-merken.is-saved {
    border-color: var(--immo-gold, #f6d794);
    color: var(--immo-gold, #f6d794);
}
.immo-sc-merken.is-saved:hover {
    background-color: var(--immo-gold, #f6d794);
    color: #141617;
}
/* Pop-Animation beim Klick */
@keyframes immo-heart-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.immo-sc-merken.is-pop .immo-sc-merken__heart-fill,
.immo-sc-merken.is-pop .immo-sc-merken__heart-out {
    animation: immo-heart-pop 0.3s ease;
}

/* Text-Variante Merken */
.immo-sc-merken--text {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline;
    vertical-align: baseline;
}
.immo-sc-merken--text:hover { color: inherit; }
.immo-sc-merken--text.is-saved { color: inherit; }

/* ── Teilen-Button ───────────────────────────────────────────── */
.immo-sc-teilen { gap: 0.55em; }

/* Text-Variante Teilen */
.immo-sc-teilen--text {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline;
    vertical-align: baseline;
}
.immo-sc-teilen--text:hover { color: inherit; }

/* Teilen-Overlay */
.immo-teilen-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.immo-teilen-overlay.is-open { display: flex; }

/* Popup-Box */
.immo-teilen-box {
    position: relative;
    background: #fff;
    color: #141617;
    padding: 48px 52px 44px;
    max-width: 540px;
    width: calc(100% - 32px);
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: immo-teilen-in 0.22s ease;
}
@keyframes immo-teilen-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Schließen-Button */
.immo-teilen-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; border-radius: 50%;
    color: #aaa; cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.immo-teilen-close:hover { background: #f0f0f0; color: #333; }

/* Typografie */
.immo-teilen-h2 {
    font-family: Arsenal, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #141617;
    margin: 0 0 22px;
}
.immo-teilen-hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 0 0 22px;
}
.immo-teilen-h3 {
    font-family: Arsenal, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 28px;
}

/* Share-Grid: 4 pro Reihe, letzte Reihe zentriert */
.immo-teilen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 8px;
    justify-content: center;
}

/* Share-Buttons */
.immo-teilen-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 72px;
    text-decoration: none;
    color: #141617;
    font-family: Arsenal, sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.15s;
}
.immo-teilen-btn:hover { transform: translateY(-3px); text-decoration: none; }
.immo-teilen-btn__icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: opacity 0.15s;
}
.immo-teilen-btn:hover .immo-teilen-btn__icon { opacity: 0.85; }
.immo-teilen-btn__label { color: #555; }

/* Brand-Farben */
.immo-teilen-btn--whatsapp  .immo-teilen-btn__icon { background: #25D366; }
.immo-teilen-btn--messenger .immo-teilen-btn__icon { background: linear-gradient(135deg,#0099FF,#A033FF); }
.immo-teilen-btn--sms       .immo-teilen-btn__icon { background: #34B7F1; }
.immo-teilen-btn--mail      .immo-teilen-btn__icon { background: #6c757d; }
.immo-teilen-btn--facebook  .immo-teilen-btn__icon { background: #1877F2; }
.immo-teilen-btn--x         .immo-teilen-btn__icon { background: #000; }
.immo-teilen-btn--linkedin  .immo-teilen-btn__icon { background: #0A66C2; }

@media (max-width: 480px) {
    .immo-teilen-box { padding: 40px 24px 36px; }
    .immo-teilen-btn { width: 60px; }
    .immo-teilen-btn__icon { width: 48px; height: 48px; }
}

/* Video-Lightbox */
.immo-video-lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.88);
    cursor: zoom-out;
}
.immo-video-lb__inner {
    position: relative;
    width: min(90vw, 960px);
    cursor: default;
}
.immo-video-lb__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
}
.immo-video-lb__close:hover { opacity: 1; }


/* ─────────────────────────────────────────────────────────────
   12. MASONRY GALERIE  (.immo-masonry)
   ─────────────────────────────────────────────────────────────
   Columns-basiertes Masonry — kein JS nötig, funktioniert überall.
   --immo-masonry-cols wird per inline-style vom Shortcode gesetzt.
   ───────────────────────────────────────────────────────────── */

.immo-masonry {
    columns: var(--immo-masonry-cols, 3);
    column-gap: 30px;
    margin: 0;
    padding: 0;
}

.immo-masonry__item {
    break-inside: avoid;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 0;
    cursor: zoom-in;
    position: relative;
    display: block;
}

/* Hover-Dimmer via Pseudo-Element (kein extra DOM) */
.immo-masonry__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .25s ease;
    pointer-events: none;
}
.immo-masonry__item:hover::after {
    background: rgba(0, 0, 0, .12);
}

.immo-masonry__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s cubic-bezier(.25, .46, .45, .94);
}
.immo-masonry__item:hover .immo-masonry__img {
    transform: scale(1.04);
}

/* Lazy-Fade: Bild blendet sich ein sobald geladen */
.immo-masonry__img.immo-lazy {
    opacity: 0;
}
.immo-masonry__img:not(.immo-lazy) {
    animation: immoMasonryFadeIn .4s ease forwards;
}
@keyframes immoMasonryFadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to   { opacity: 1; transform: scale(1); }
}

/* Versteckte Items (vor "Mehr laden") */
.immo-masonry__item--hidden {
    display: none;
}

/* Mehr-laden Button */
.immo-masonry__mehr-wrap {
    text-align: center;
    margin-top: 18px;
}
.immo-masonry__mehr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #fff;
    border: 1px solid var(--immo-gold, #f6d794);
    border-radius: 0;
    padding: 13px 29px;
    font-family: Arsenal, sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #141617;
    letter-spacing: 2.55px;
    line-height: 18.7px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.immo-masonry__mehr:hover {
    background-color: var(--immo-gold, #f6d794);
    color: #141617;
    border-color: var(--immo-gold, #f6d794);
}
.immo-masonry__mehr-count {
    opacity: .55;
    font-size: 14px;
    letter-spacing: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .immo-masonry {
        columns: min(var(--immo-masonry-cols, 4), 3);
    }

    .immo-card__title, .immo-hobjekt__title {
    font-size: 25px !important;
    }
}
@media (max-width: 768px) {
    .immo-masonry {
        columns: 2;
        column-gap: 16px;
    }
    .immo-masonry__item {
        margin-bottom: 16px;
    }
}
@media (max-width: 380px) {
    .immo-masonry {
        columns: 1;
    }
}

/* =============================================================================
   KLEINE MOBILES — max-width: 520px
   1. Filter-Boxen: Schrift kleiner (Spanien/Österreich/Deutschland ragt sonst raus)
   2. Karten-Titel: lange Wörter (PENTHOUSEWOHNUNG) kleiner
   3. Toolbar: Filter-Button + Anzahl weg, nur Sortieren bleibt
   ============================================================================= */
@media (max-width: 520px) {

    /* ① Filter-Boxen — Schrift + Abstände reduzieren */
    .immo-filter__opt {
        font-size: 11px;
        letter-spacing: 1.2px;
        padding: 0.7em 0.25em;
    }
    .immo-filter__opt-count {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    /* ② Karten-Titel — lange Wörter bei sehr kleinen Screens */
    .immo-card__title {
        font-size: 22px !important;
        letter-spacing: 0.02em;
    }

    /* ③ Filter-Button + Anzahl in der Toolbar ausblenden — nur Sortieren bleibt */
    .immo-archiv__filter-toggle,
    .immo-archiv__count {
        display: none !important;
    }

}


/* ─────────────────────────────────────────────────────────────
   13. EINZELBILD SHORTCODE  (.immo-sc-bild)
   ─────────────────────────────────────────────────────────────
   [immo_bild nr="17"] — frei platzierbares Einzelbild aus der
   Galerie. Passt sich per CSS vollständig dem umgebenden
   Avada-Container an. Klick öffnet Lightbox.
   ───────────────────────────────────────────────────────────── */

.immo-sc-bild {
    overflow: hidden;
    border-radius: 3px;
    cursor: zoom-in;
    position: relative;
    line-height: 0; /* Kein Extra-Space unter dem Bild */
}

/* Hover-Dimmer */
.immo-sc-bild::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .25s ease;
    pointer-events: none;
}
.immo-sc-bild:hover::after {
    background: rgba(0, 0, 0, .10);
}

.immo-sc-bild__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s cubic-bezier(.25, .46, .45, .94);
}
.immo-sc-bild:hover .immo-sc-bild__img {
    transform: scale(1.03);
}

/* Zoom-Icon-Hint oben rechts */
.immo-sc-bild::before {
    content: '⤢';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 18px;
    color: #fff;
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    line-height: 1;
}
.immo-sc-bild:hover::before {
    opacity: 1;
}

/* =============================================================================
   MERKLISTE-SEITE  [immo_merkliste]
   ============================================================================= */

.immo-merkliste-wrap {
    width: 100%;
}

/* Grid: passt sich an --immo-ml-cols an (default 2) */
.immo-merkliste__grid {
    grid-template-columns: repeat( var(--immo-ml-cols, 2), 1fr );
}

/* Lade-Zustand */
.immo-merkliste__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    font-family: Arsenal, sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.35);
}
.immo-merkliste__loading span::after {
    content: '';
    display: inline-block;
    width: 6px;
    animation: immoLoadDots 1s infinite steps(4, end);
}
@keyframes immoLoadDots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* Leer-Zustand */
.immo-merkliste__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 80px 20px;
    text-align: center;
    font-family: Arsenal, sans-serif;
    color: rgba(0,0,0,0.4);
}
.immo-merkliste__empty svg {
    opacity: 0.2;
    color: #141617;
}
.immo-merkliste__empty p {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

@media (max-width: 767px) {
    .immo-merkliste__grid {
        grid-template-columns: 1fr;
    }
}


/* =============================================================================
   POSITION-HOMEPAGE-WIDGET  (nur für eingeloggte Redakteure/Admins)
   ============================================================================= */

/* Trigger-Button: fixed, unten mittig */
/* Badge in der Adminleiste (Anzahl Positions-Konflikte) */
#wpadminbar .immo4oo-ab-badge {
    display: inline-block;
    min-width: 16px;
    margin-left: 5px;
    padding: 0 5px;
    border-radius: 8px;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    line-height: 17px;
    text-align: center;
}

/* ── Tabs im Panel ──────────────────────────────────────────── */
.immo-pos-tabs {
    display: flex;
    gap: 2px;
    padding: 0 16px;
    background: #141617;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.immo-pos-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255,255,255,0.55);
    font-family: Arsenal, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 14px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.immo-pos-tab:hover     { color: #fff; }
.immo-pos-tab.is-active { color: #fff; border-bottom-color: var(--immo-gold, #c9a96e); }
.immo-pos-tab__badge {
    display: inline-block;
    min-width: 16px;
    padding: 1px 4px;
    border-radius: 8px;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

/* Nur der aktive Tab-Inhalt ist sichtbar */
.immo-pos-tabpane { display: none; }
.immo-pos-tabpane.is-active { display: block; }

/* ── Import-Tab ─────────────────────────────────────────────── */
.immo-pos-sync__hint {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    margin: 0 0 14px;
}
.immo-pos-sync__btn {
    background: var(--immo-gold, #c9a96e);
    color: #141617;
    border: none;
    padding: 11px 20px;
    font-family: Arsenal, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: opacity 0.15s;
}
.immo-pos-sync__btn:hover:not([disabled]) { opacity: 0.85; }
.immo-pos-sync__btn[disabled] { opacity: 0.5; cursor: wait; }

.immo-pos-sync__status {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    min-height: 1.2em;
}
.immo-pos-sync__status.is-running { color: rgba(255,255,255,0.7); }
.immo-pos-sync__status.is-ok      { color: #7bd88f; }
.immo-pos-sync__status.is-err     { color: #ff8a80; }

.immo-pos-sync__log {
    margin-top: 12px;
    max-height: 260px;
    overflow: auto;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 3px;
    padding: 10px 12px;
    font-family: Consolas, monospace;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    white-space: pre-wrap;
    word-break: break-word;
}
/* Dunkles Overlay */
.immo-pos-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.immo-pos-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Zentriertes Popup-Modal */
.immo-pos-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.97);
    width: 580px;
    max-width: 94vw;
    max-height: 80vh;
    background: #fff;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.28), 0 4px 20px rgba(0,0,0,0.12);
    font-family: Arsenal, sans-serif;
}
.immo-pos-panel.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Scrollbarer Inhalts-Container */
.immo-pos-panel__body {
    overflow-y: auto;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.12) transparent;
}

/* Panel Header (nicht scrollend) */
.immo-pos-panel__header {
    flex-shrink: 0;
    background: #141617;
    color: #fff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.immo-pos-panel__title {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
}
.immo-pos-panel__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    opacity: 0.65;
    transition: opacity 0.2s;
}
.immo-pos-panel__close:hover { opacity: 1; }

/* Sektionen */
.immo-pos-section {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.immo-pos-section:last-child { border-bottom: none; }
.immo-pos-section__head {
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.38);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Warn-Sektion: Duplikate */
.immo-pos-section--warn {
    background: #fff6f5;
}
.immo-pos-section--warn .immo-pos-section__head {
    color: #c0392b;
    font-weight: 700;
    letter-spacing: 2px;
}
/* Frei-Sektion */
.immo-pos-section--free {
    background: rgba(0, 0, 0, 0.015);
}

/* Tabelle */
.immo-pos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
}
.immo-pos-table th {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.35);
    text-align: left;
    padding: 0 6px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 400;
}
.immo-pos-table td {
    padding: 8px 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.045);
    vertical-align: middle;
}
.immo-pos-table tr:last-child td {
    border-bottom: none;
}
/* Duplikat-Zeile */
.immo-pos-table tr.is-dup td {
    background: #fff0ee;
}
.immo-pos-table tr.is-dup .immo-pos-num {
    color: #c0392b !important;
}

/* Positions-Nummer */
.immo-pos-num {
    width: 48px;
    font-size: 16px;
    font-weight: 700;
    color: var(--immo-gold, #c9a96e);
    text-align: right;
    padding-right: 14px !important;
    white-space: nowrap;
    font-family: Arsenal, sans-serif;
}
/* OID */
.immo-pos-oid {
    width: 110px;
    font-size: 10px;
    letter-spacing: 0.8px;
    color: rgba(0, 0, 0, 0.38);
    white-space: nowrap;
    padding-right: 10px !important;
}
/* Titel */
.immo-pos-title {
    font-size: 13px;
    color: #141617;
    line-height: 1.35;
}
/* Bearbeiten-Link */
.immo-pos-link {
    display: inline-block;
    width: 28px;
    text-align: center;
    color: rgba(0, 0, 0, 0.28);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.18s;
    line-height: 1;
}
.immo-pos-link:hover { color: var(--immo-gold, #c9a96e); }

/* Freie Nummern — Chips */
.immo-pos-free-nums {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.immo-pos-free-num {
    background: rgba(0, 0, 0, 0.07);
    color: rgba(0, 0, 0, 0.45);
    padding: 4px 11px;
    font-size: 12px;
    letter-spacing: 1px;
    font-family: Arsenal, sans-serif;
    border-radius: 2px;
    line-height: 1.4;
}

/* Mobile */
@media (max-width: 599px) {
    .immo-pos-panel  { width: 96vw; max-height: 88vh; }
    .immo-pos-oid { display: none; }
}

/* ── Leere Immobilien-Felder in Avada-Listen ausblenden ────────────────────
 *
 * Wenn ein Shortcode wie [immo_grundstueck] keinen Wert findet, gibt er
 * <span class="immo4oo-leer"> zurück statt Text.
 * Gleiches gilt für [immo_wenn] wenn die Bedingung nicht erfüllt ist.
 *
 * Diese Regel blendet das gesamte umgebende Avada-Listen-Item automatisch
 * aus — egal ob fusion_li_item, ul/li oder eine andere Listen-Struktur.
 *
 * Voraussetzung: Browser-Support für CSS :has() → alle modernen Browser
 * (Chrome 105+, Firefox 121+, Safari 15.4+).
 * ─────────────────────────────────────────────────────────────────────── */

/* Avada checklist items */
.fusion-li-item:has(.immo4oo-leer) {
    display: none !important;
}

/* Standard li (falls du HTML-Listen oder andere Builder-Elemente nutzt) */
li:has(> .immo4oo-leer),
li:has(> span > .immo4oo-leer),
li:has(> p > .immo4oo-leer) {
    display: none !important;
}

/* Avada Text-Block: komplett ausblenden wenn nur der Marker-Span drin ist
   (z. B. [immo_wenn] in einem Fusion Text Element) */
.fusion-text:has(> p > .immo4oo-leer:only-child),
.fusion-text:has(> .immo4oo-leer:only-child) {
    display: none !important;
}

/* =============================================================================
   VIDEO-FEED  [immo_video_feed]
   Video + Infos sitzen als Block zusammen, mittig auf der Fläche. Das
   Seitenverhältnis kommt pro Video aus der Vimeo-API (--ar), Hochformat
   bleibt dadurch Hochformat. Dahinter das Titelbild weichgezeichnet.
   ============================================================================= */
.immo-vfeed {
    position: relative;
    height: var(--immo-vfeed-h, 100svh);
    overflow: hidden;
    background: rgb(20,22,23);
}
/* Nur dieser Teil scrollt — die globale Bedienung bleibt stehen */
.immo-vfeed__scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.immo-vfeed__scroll::-webkit-scrollbar { display: none; }

.immo-vfeed__item {
    position: relative;
    height: var(--immo-vfeed-h, 100svh);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.immo-vfeed__item.is-removed { display: none; }

/* Weichgezeichneter Hintergrund statt schwarzer Balken */
.immo-vfeed__backdrop {
    position: absolute;
    inset: -6%;
    background-size: cover;
    background-position: center;
    filter: blur(34px) brightness(0.42) saturate(1.1);
    transform: scale(1.08);
    z-index: 0;
}

/* Karte: Video oben, Infos direkt darunter — zusammen zentriert */
.immo-vfeed__card {
    position: relative;
    z-index: 1;
    /* Vertikal darf der Browser blättern, quer wischen wir selbst */
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    padding: 3.5em 1em 1.2em;
    transition: transform 0.28s ease, opacity 0.28s ease;
}
.immo-vfeed__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

/* Der Player wird so groß wie Höhe UND Breite es zulassen.
   --ar-num ist das Verhältnis als Zahl (16/9 = 1.7778), von JS gesetzt. */
.immo-vfeed__player {
    position: relative;
    aspect-ratio: var(--ar, 16 / 9);
    width: auto;
    /* Faktor 0.8: nochmals rund 11 % flacher als zuvor (0.9) */
    height: calc(min(
        calc(var(--immo-vfeed-h, 100svh) - 12.5rem),
        calc(min(94vw, 1500px) / var(--ar-num, 1.7778))
    ) * 0.8);
    max-width: 94vw;
    background-size: cover;
    background-position: center;
    background-color: #000;
    overflow: hidden;
}
.immo-vfeed__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* Ohne das schluckt der iframe jede Wischgeste — die Bedienung läuft
       komplett über unsere eigenen Buttons, native Controls sind ohnehin aus. */
    pointer-events: none;
}
.immo-vfeed__item.is-loaded .immo-vfeed__play { display: none; }

.immo-vfeed__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px; height: 64px;
    border: none; border-radius: 50%;
    background: rgba(20,22,23,0.55);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.immo-vfeed__play svg { width: 30px; height: 30px; margin-left: 3px; }

/* Kopfzeile */
/* Objekt-ID mittig über dem Video, Herz direkt daneben */
.immo-vfeed__oid-row {
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    margin-bottom: 0.2em;
}

/* Ton + Vollbild: global unten rechts, wie das Barrierefreiheits-Widget */
.immo-vfeed__tools {
    position: absolute;
    right: 50px;
    bottom: 60px;
    z-index: 6;
    display: flex;
    gap: 0.5em;
}
.immo-vfeed__sound,
.immo-vfeed__fs {
    width: 42px; height: 42px;
    border: none; border-radius: 50%;
    background: rgba(20,22,23,0.66);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.18s;
}
.immo-vfeed__sound:hover,
.immo-vfeed__fs:hover { background: rgba(204,148,91,0.9); }
.immo-vfeed__sound svg,
.immo-vfeed__fs svg { width: 20px; height: 20px; }
.immo-vfeed__sound .immo-vfeed__sound-on { display: none; }
.immo-vfeed.is-sound-on .immo-vfeed__sound-off { display: none; }
.immo-vfeed.is-sound-on .immo-vfeed__sound-on  { display: block; }
.immo-vfeed.is-sound-on .immo-vfeed__sound { background: rgba(204,148,91,0.92); }

/* Favoriten-Pille unten links — Gegenstück zu Ton/Vollbild rechts */
.immo-vfeed__favlink {
    position: absolute;
    left: 50px;
    bottom: 60px;
    z-index: 6;
    padding: 0.75em 1.3em;
    border-radius: 21px;
    background: rgba(20,22,23,0.66);
    backdrop-filter: blur(4px);
    color: #fff;
    text-decoration: none;
    font-family: Arsenal, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}
.immo-vfeed__favlink:hover { background: rgba(204,148,91,0.9); color: #fff; }
/* Golden sobald etwas in der Merkliste liegt */
.immo-vfeed.has-favs .immo-vfeed__favlink {
    background: rgb(204,148,91);
    color: #fff;
}
.immo-vfeed.has-favs .immo-vfeed__favlink:hover { background: rgb(184,130,76); }

/* Zähler unten links */
.immo-vfeed__counter {
    position: absolute;
    left: 50px;
    top: 100px;
    z-index: 6;
    display: flex;
    align-items: baseline;
    gap: 0.4em;
    padding: 0.5em 0.9em;
    border-radius: 20px;
    background: rgba(20,22,23,0.66);
    backdrop-filter: blur(4px);
    color: #fff;
    font-family: Arsenal, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.immo-vfeed__counter-num { font-size: 10px; color: rgb(204,148,91); }
.immo-vfeed.is-empty .immo-vfeed__counter,
.immo-vfeed.is-empty .immo-vfeed__tools { display: none; }
.immo-vfeed__sound .immo-vfeed__sound-on { display: none; }
.immo-vfeed.is-sound-on .immo-vfeed__sound-off { display: none; }
.immo-vfeed.is-sound-on .immo-vfeed__sound-on  { display: block; }
.immo-vfeed.is-sound-on .immo-vfeed__sound { background: rgba(204,148,91,0.9); }

.immo-vfeed__heart { color: #fff; }

/* Bedienleiste unter dem Video */
.immo-vfeed__actions {
    display: flex;
    gap: 1.1em;
    justify-content: center;
    z-index: 4;
}
.immo-vfeed__act {
    width: 46px; height: 46px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    background: rgba(20,22,23,0.45);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    transition: transform 0.15s, background 0.18s, border-color 0.18s;
}
.immo-vfeed__act svg { width: 21px; height: 21px; }
.immo-vfeed__act:hover { transform: scale(1.08); }
.immo-vfeed__act--like:hover { background: rgba(204,148,91,0.9); border-color: rgb(204,148,91); }
.immo-vfeed__act--skip:hover { background: rgba(255,255,255,0.16); }
.immo-vfeed__act--like.is-active {
    background: rgb(204,148,91);
    border-color: rgb(204,148,91);
}
.immo-vfeed__act--like.is-active svg path { fill: #fff; }

/* Info direkt unter dem Video */
.immo-vfeed__info {
    z-index: 4;
    text-decoration: none;
    text-align: center;
    max-width: min(94vw, 1500px);
    padding: 0 0.5em;
}
.immo-vfeed__info .immo-card__title {
    color: #fff;
    margin: 0.15em 0;
    /* .immo-card__title ist per clip-path zugeklappt und wird sonst nur über
       .immo-card.is-visible aufgedeckt — die Klasse gibt es hier nicht. */
    clip-path: none;
    transition: none;
    font-size: clamp(14px, 1.7vw, 21px) !important;
    line-height: 1.2;
}

/* Textlink in der Kopfzeile — ersetzt den früheren Button unter den Fakten */
.immo-vfeed__oid-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: Arsenal, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    transition: color 0.18s, opacity 0.18s;
}
.immo-vfeed__oid-link:hover { color: rgb(204,148,91); opacity: 1; }
.immo-vfeed__info .immoListe--card { justify-content: center; margin-top: 0.4em; }
.immo-vfeed__info .immoListe--card,
.immo-vfeed__info .immoListe--card li { color: rgba(255,255,255,0.92); }

/* Wisch-Rückmeldung */
.immo-vfeed__card.is-swiping { transition: none; cursor: grabbing; }
.immo-vfeed__stamp {
    position: absolute;
    top: 50%; left: 50%;
    /* --stamp-shift wirkt der Kartenbewegung entgegen: die Karte folgt dem
       Finger 1:1, der Stempel dadurch nur zu ~30 %. Das transform-Easing
       lässt ihn zusätzlich weich nachziehen statt zu kleben. */
    transform: translate(calc(-50% + var(--stamp-shift, 0px)), -50%)
               scale(var(--stamp-scale, 0.8));
    z-index: 6;
    padding: 0.35em 0.9em;
    border: 3px solid currentColor;
    border-radius: 8px;
    font-family: Arsenal, sans-serif;
    font-size: clamp(18px, 4vw, 34px);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s, transform 0.18s ease-out;
    white-space: nowrap;
}
.immo-vfeed__stamp--like { color: rgb(204,148,91); rotate: -12deg; }
.immo-vfeed__stamp--skip { color: #fff;            rotate:  12deg; }

/* Blättern hoch/runter (Desktop) */
.immo-vfeed__nav {
    position: absolute;
    right: 50px;
    z-index: 5;
    width: 40px; height: 40px;
    border: none; border-radius: 50%;
    background: rgba(20,22,23,0.5);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.18s, opacity 0.18s;
}
.immo-vfeed__nav:hover { background: rgba(204,148,91,0.9); }
.immo-vfeed__nav[disabled] { opacity: 0.25; pointer-events: none; }
.immo-vfeed__nav svg { width: 18px; height: 18px; }
.immo-vfeed__nav--up   { top: calc(50% - 52px); }
.immo-vfeed__nav--down { top: calc(50% + 12px); }

/* Fortschrittspunkte */
.immo-vfeed__dots {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.immo-vfeed__dot {
    width: 6px; height: 6px;
    padding: 0; border: none; border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.immo-vfeed__dot.is-active { background: rgb(204,148,91); transform: scale(1.5); }

/* Favorit-Kennzeichnung: sichtbar sobald das Objekt in der Merkliste liegt —
   auch nach „Alle Videos wieder anzeigen". */
.immo-vfeed__fav {
    display: none;
    padding: 0.25em 0.7em;
    border-radius: 12px;
    background: rgba(204,148,91,0.92);
    color: #fff;
    font-family: Arsenal, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.immo-vfeed__item.is-fav .immo-vfeed__fav { display: inline-block; }

.immo-vfeed__empty-titel { font-size: 17px; margin: 0; }
.immo-vfeed__empty-fav   { font-size: 13px; margin: 0; color: rgba(255,255,255,0.7); }

/* Hinweis wenn alles weggewischt wurde */
.immo-vfeed__empty {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    text-align: center;
    color: #fff;
    background: rgb(20,22,23);
    font-family: Arsenal, sans-serif;
}
.immo-vfeed.is-empty .immo-vfeed__empty { display: flex; }
.immo-vfeed__empty-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7em;
    justify-content: center;
}

/* Favoriten-Knopf nur wenn wirklich etwas gemerkt wurde */
.immo-vfeed__empty-favbtn { display: none; }
.immo-vfeed.has-favs .immo-vfeed__empty-favbtn {
    display: inline-block;
    background: rgb(204,148,91);
    border: 1px solid rgb(204,148,91);
    color: #fff;
    text-decoration: none;
    padding: 0.7em 1.4em;
    border-radius: 4px;
    letter-spacing: 1px;
    font-family: Arsenal, sans-serif;
    transition: background 0.18s;
}
.immo-vfeed.has-favs .immo-vfeed__empty-favbtn:hover {
    background: rgb(184,130,76);
    border-color: rgb(184,130,76);
    color: #fff;
}

.immo-vfeed__empty button {
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    color: #fff;
    padding: 0.7em 1.4em;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
}
.immo-vfeed__empty button:hover { background: rgba(255,255,255,0.12); }

/* Touch: Bedienleiste etwas kompakter, Navigation aus (dort wird gewischt) */
@media ( max-width: 767px ) {
    .immo-vfeed__nav  { display: none; }
    .immo-vfeed__tools { bottom: 30px; }
    .immo-vfeed__favlink { bottom: 40px; left: 50px; padding: 0.7em 1.1em; }
    /* Titel enger setzen — spart auf kleinen Schirmen spürbar Höhe */
    .immo-vfeed__info .immo-card__title { line-height: 1.1; }
    .immo-vfeed__card { padding: 3.2em 0.6em 1em; }
    .immo-vfeed__act  { width: 42px; height: 42px; }
    .immo-vfeed__player {
        height: calc(min(
            calc(var(--immo-vfeed-h, 100svh) - 13.5rem),
            calc(98vw / var(--ar-num, 1.7778))
        ) * 0.8);
        max-width: 98vw;
    }
}

/* Handy gedreht: kaum Höhe übrig — Infos treten zurück, Video bekommt den Platz.
   Zusammen mit dem Vollbild-Knopf ist das der „größer schauen"-Modus. */
@media ( orientation: landscape ) and ( max-height: 560px ) {
    .immo-vfeed__card    { padding: 0.4em 0.6em; gap: 0.3em; }
    .immo-vfeed__oid-row,
    .immo-vfeed__actions { display: none; }
    .immo-vfeed__info    { padding: 0; }
    .immo-vfeed__info .immo-card__title { font-size: 15px !important; margin: 0; }
    .immo-vfeed__info .immoListe--card { display: none; }
    .immo-vfeed__player {
        height: calc(min(
            calc(var(--immo-vfeed-h, 100svh) - 3.2rem),
            calc(96vw / var(--ar-num, 1.7778))
        ) * 0.98);
        max-width: 96vw;
    }
    .immo-vfeed__counter { padding: 0.35em 0.7em; font-size: 11px; }
}

@media ( prefers-reduced-motion: reduce ) {
    .immo-vfeed__scroll { scroll-snap-type: y proximity; }
    .immo-vfeed__card, .immo-vfeed__dot, .immo-vfeed__act { transition: none; }
}

/* =============================================================================
   HERO-SLIDER  [immo_hero]
   Ein Bild je Land, abwechselnd hinein- und herauszoomend, überlappend
   überblendet. Der Zoom läuft über die volle Standzeit inklusive Blende,
   damit das Bild nie stillsteht und der Wechsel nicht springt.
   ============================================================================= */
.immo-hero {
    position: relative;
    display: block;
    height: var(--immo-hero-h, 100svh);
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: rgb(20,22,23);
    isolation: isolate;
    /* Avada-Container geben dem Element sonst über line-height oder
       inline-Whitespace ein paar Pixel zusätzlich mit */
    font-size: 0;
    line-height: 0;
}
/* Innenleben wieder auf normale Textmaße zurücksetzen */
.immo-hero__objekt { font-size: 12px; line-height: 1.4; }

.immo-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
}
.immo-hero__slide.is-active { opacity: 1; z-index: 1; }

.immo-hero__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    will-change: transform;
}
/* Zoom nur solange der Slide aktiv ist — forwards hält den Endzustand,
   damit beim Ausblenden nichts zurückspringt. */
.immo-hero__slide.is-active .immo-hero__img {
    animation: immoHeroRein var(--immo-hero-dauer, 4.2s) linear forwards;
}
.immo-hero__slide--raus.is-active .immo-hero__img {
    animation-name: immoHeroRaus;
}
@keyframes immoHeroRein {
    from { transform: scale(1); }
    to   { transform: scale(var(--immo-hero-zoom, 1.14)); }
}
@keyframes immoHeroRaus {
    from { transform: scale(var(--immo-hero-zoom, 1.14)); }
    to   { transform: scale(1); }
}

/* Abdunkelung optional — nur wenn abdunkeln="1" gesetzt ist */
.immo-hero__schleier {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to bottom,
                rgba(20,22,23,0.25) 0%,
                rgba(20,22,23,0.05) 45%,
                rgba(20,22,23,0.45) 100%);
}

/* Objekthinweis unten rechts — verrät, welche Immobilie zu sehen ist */
.immo-hero__objekt {
    position: absolute;
    right: 34px;
    bottom: 7%;
    z-index: 4;
    max-width: min(50vw, 420px);
    text-align: right;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-family: Arsenal, sans-serif;
    line-height: 1.4;
    transition: color 0.2s;
}
.immo-hero__objekt:hover { color: #fff; }
.immo-hero__objekt-titel {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.immo-hero__objekt-ort {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
}

/* Punkte unten links */
.immo-hero__dots {
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.immo-hero__dot {
    width: 7px; height: 7px;
    padding: 0; border: none; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}
.immo-hero__dot.is-active { background: rgb(204,148,91); transform: scale(1.5); }

/* Objekthinweis auf schmalen Schirmen ausblenden */
@media ( max-width: 800px ) {
    .immo-hero__objekt { display: none; }
}
@media ( max-width: 767px ) {
    .immo-hero__dots { right: 14px; gap: 8px; }
}


/* Kein Zoom bei reduzierter Bewegung — nur die Blende bleibt */
@media ( prefers-reduced-motion: reduce ) {
    .immo-hero__slide.is-active .immo-hero__img,
    .immo-hero__slide--raus.is-active .immo-hero__img { animation: none; }
}

/* =============================================================================
   STATUS-STÖRER
   Runder goldener Aufkleber für laufende Vermarktungsstände. Aktuell nur
   "Reserviert" — "Verkauft" wird beim Import auf privat gesetzt und erscheint
   im Frontend gar nicht (siehe Immo4OO_Importer::save_to_wordpress).
   ============================================================================= */
/* Grundposition gilt für den Slider auf der Objektseite */
.immo-stoerer {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgb(204,148,91);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: Arsenal, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 6px;
    box-shadow: 0 2px 10px rgba(20,22,23,0.25);
    pointer-events: none;
}

/* Auf Karten sitzt oben die Objektnummer (padding 20px + Zeile) —
   der Störer rutscht darunter, statt sie zu überdecken. */
.immo-card .immo-stoerer { top: 58px; left: 20px; }

@media ( max-width: 767px ) {
    .immo-card .immo-stoerer { top: 48px; left: 14px; }
    .immo-stoerer {
        width: 64px;
        height: 64px;
        top: 12px;
        left: 12px;
        font-size: 10px;
        letter-spacing: 1px;
    }
}
