/* =============================================================================
   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)  ← NEU
   3.  Card Herz / Merken
   4.  Single Slider
   5.  Single Detailseite
   6.  Lightbox
   7.  Accordion Filter  (.immo-filter)        ← NEU
   8.  Grid-Layout
   9.  Lazy Loading Fade
   10. Merkliste Button
   11. Ergebnis / Loading States
   ============================================================================= */


/* ─────────────────────────────────────────────────────────────
   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);
}

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

/* ── Hintergrundbild ────────────────────────────────────────── */
.immo-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.immo-card__bg-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
}

.immo-card__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    /* Zoom-Animation bei Hover */
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.immo-card:hover .immo-card__bg-img {
    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;
}

/* ── 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 mit 1px-Linien ────────────────────────────── */
.immo-card__title-section {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    flex-shrink: 0;
}

/* 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, kleiner als vorher */
.immo-card__title {
    margin: 10px 0;
    font-family: Times, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.03em;
    color: #fff;
    transition: color 0.3s;
    /* Scroll-Reveal: clip von rechts */
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.75s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
                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.55s ease 0.35s,
                transform 0.55s ease 0.35s,
                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 {
    /* In der neuen Vollbild-Card sitzt der Button im .immo-card__top,
       kein absolutes Positioning mehr nötig */
    position: relative;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    transition: background 0.2s, transform 0.15s;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
}

.immo-card__heart:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.1);
}

.immo-card__heart svg {
    width: 100%;
    height: 100%;
    transition: fill 0.2s;
    color: #fff;
}

/* Aktiver Zustand – gemerkt */
.immo-card__heart.is-saved svg {
    fill: currentColor;
}

/* 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%;
    /* Höhe: passe an dein Design an */
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #1a1a1a;
}

.immo-single__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.immo-single__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: zoom-in;
}

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

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

/* Pfeil-Buttons */
.immo-single__prev,
.immo-single__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.immo-single__prev:hover,
.immo-single__next:hover { background: rgba(0,0,0,0.65); }

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

/* Counter */
.immo-single__counter {
    position: absolute;
    bottom: 14px;
    right: 16px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 0.8em;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Thumbnail-Leiste */
.immo-single__thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 0 2px;
    scrollbar-width: thin;
}

.immo-single__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 54px;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    scroll-snap-align: start;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.immo-single__thumb.is-active,
.immo-single__thumb:hover {
    opacity: 1;
    /* Rahmenfarbe: du setzt in deinem CSS */
    border-color: currentColor;
}

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


/* ─────────────────────────────────────────────────────────────
   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: block;
    text-align: center;
    padding: 0.8em 1.2em;
    margin-bottom: 0.6em;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 3px;
    border: 1px solid currentColor;
    transition: background 0.2s, color 0.2s;
}

/* 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;
}

.immo-lightbox__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

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

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

.immo-lightbox__close,
.immo-lightbox__prev,
.immo-lightbox__next {
    position: absolute;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.immo-lightbox__close { top: 16px; right: 16px; font-size: 1.2em; }
.immo-lightbox__prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.immo-lightbox__next  { right: 16px; top: 50%; transform: translateY(-50%); }

.immo-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85em;
}


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

.immo-filter {
    width: 100%;
}

/* ── Sektion ────────────────────────────────────────────────── */
.immo-filter__section {
    border-bottom: 1px solid currentColor;
    /* Trennlinie: Farbe erbt → du kannst mit opacity spielen */
    border-color: rgba(0,0,0,0.15);
}

.immo-filter__section:first-child {
    border-top: 1px solid rgba(0,0,0,0.15);
}

/* ── 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: inherit;
    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 {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    overflow: hidden;
}

.immo-filter__body.is-open {
    grid-template-rows: 1fr;
}

/* inner wrapper nötig für grid-template-rows Trick */
.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(0,0,0,0.18);
    background: transparent;
    cursor: pointer;
    /* Arsenal wie die Card-Meta */
    font-family: Arsenal, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 2.55px;
    line-height: 18.7px;
    text-transform: uppercase;
    color: inherit;
    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: rgba(0,0,0,0.5);
}

/* ── 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;
}

/* ── 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: inherit;
}

.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 mit 4 Spalten: Klasse .immo-grid--4 verwenden */
.immo-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}


/* ─────────────────────────────────────────────────────────────
   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 {
    padding: 0.75em 2.5em;
    border: 1px solid currentColor;
    background: transparent;
    font-family: inherit;
    font-size: 0.9em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.immo-load-more:hover { opacity: 1; }


/* ─────────────────────────────────────────────────────────────
   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;
}


/* =============================================================================
   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;
    }
}


/* =============================================================================
   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 {
        aspect-ratio: 4 / 3;
    }

    .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: 64px;
        height: 42px;
    }
}
