/* =====================================================
   IMMOBILIEN.CSS - AWA Investment Group
   ImmobilienScout-Style 3x2 Grid + Detail Page
   ===================================================== */

/* ===== HERO ===== */
.immo-hero {
    padding: 8rem 0 5rem;
    background: #0f0f0f;
    position: relative;
    overflow: hidden;
    min-height: 46vh;
    display: flex;
    align-items: center;
}
.immo-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center 30%;
    filter: blur(4px) brightness(0.28);
    transform: scale(1.06);
    z-index: 0;
}
.immo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(0,0,0,.5) 0%,rgba(0,0,0,.15) 50%,rgba(0,0,0,.6) 100%),
                radial-gradient(ellipse at 25% 60%,rgba(201,168,76,.18) 0%,transparent 55%);
    z-index: 1;
    pointer-events: none;
}
.immo-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
}
.immo-hero-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-light);
    background: rgba(201,168,76,.12);
    border: 1px solid rgba(201,168,76,.35);
    padding: .38rem .9rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.4rem;
}
.immo-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.immo-hero h1 .gold {
    background: linear-gradient(135deg,var(--gold-light),var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
}
.immo-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.72);
    font-weight: 300;
    line-height: 1.72;
    margin-bottom: 2.4rem;
    max-width: 640px;
}
.immo-hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.immo-hero-stat { display: flex; flex-direction: column; gap: .2rem; }
.immo-stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg,var(--gold-light),var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.immo-stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ===== FILTER BAR ===== */
.immo-filter-bar {
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,.09);
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.immo-filter-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .9rem 0;
    flex-wrap: wrap;
}
.filter-tabs {
    display: flex;
    gap: .25rem;
    background: rgba(0,0,0,.05);
    border-radius: var(--radius-full);
    padding: .25rem;
}
.filter-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: .45rem 1.1rem;
    border-radius: var(--radius-full);
    transition: all .2s;
    white-space: nowrap;
}
.filter-tab.active { background: var(--dark); color: white; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.filter-tab:hover:not(.active) { color: var(--text-dark); }
.filter-types { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-type {
    background: none;
    border: 1px solid rgba(0,0,0,.12);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: .35rem .9rem;
    border-radius: var(--radius-full);
    transition: all .2s;
    white-space: nowrap;
}
.filter-type.active { background: rgba(201,168,76,.12); border-color: rgba(201,168,76,.4); color: var(--gold-dark); font-weight: 600; }
.filter-type:hover:not(.active) { border-color: rgba(0,0,0,.22); color: var(--text-dark); }
.filter-count { margin-left: auto; font-size: .82rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.filter-count span { font-weight: 700; color: var(--gold-dark); }

/* ===== LISTINGS SECTION ===== */
.immo-listings {
    padding: 3rem 0 5rem;
    background: #f5f5f5;
}

/* ===== 3-COLUMN PROPERTY GRID ===== */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ===== PROPERTY CARD ===== */
.prop-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
    transition: transform .28s ease, box-shadow .28s ease;
    cursor: pointer;
}
.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.prop-card--premium {
    border-color: rgba(201,168,76,.4);
    box-shadow: 0 2px 12px rgba(201,168,76,.1);
}
.prop-card--premium:hover {
    box-shadow: 0 12px 40px rgba(201,168,76,.18);
}

/* Card Image */
.prop-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8e8e8;
}
.prop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.prop-card:hover .prop-img img { transform: scale(1.06); }

/* Badges */
.prop-badge {
    position: absolute;
    top: .85rem;
    left: .85rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .28rem .8rem;
    border-radius: 50px;
    z-index: 2;
}
.prop-badge--miete { background: rgba(34,197,94,.92); color: white; }
.prop-badge--kauf  { background: rgba(201,168,76,.95); color: #1a1600; }

.prop-type-tag {
    position: absolute;
    top: .85rem;
    right: .85rem;
    background: rgba(0,0,0,.52);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,.92);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .28rem .7rem;
    border-radius: 50px;
    z-index: 2;
}

.prop-premium-tag {
    position: absolute;
    bottom: .85rem;
    left: .85rem;
    background: rgba(201,168,76,.95);
    color: #1a1600;
    font-size: .68rem;
    font-weight: 800;
    padding: .28rem .8rem;
    border-radius: 50px;
    z-index: 2;
}

/* Card Info */
.prop-info {
    padding: 1.1rem 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.prop-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text-dark);
    line-height: 1;
}
.prop-price span {
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}

.prop-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -.02em;
    line-height: 1.3;
    margin: 0;
}

.prop-loc {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 400;
}
.prop-loc svg { color: var(--gold-dark); flex-shrink: 0; }

/* Key Specs row */
.prop-specs {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    padding: .6rem 0;
    border-top: 1px solid rgba(0,0,0,.07);
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.prop-specs span {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
}
.prop-specs strong { color: var(--text-dark); font-weight: 600; }

/* Card footer */
.prop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .2rem;
}
.prop-id {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-dark);
}
.prop-cta {
    font-size: .78rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: .02em;
    transition: gap .2s;
}
.prop-card:hover .prop-cta { color: var(--gold); }

/* No Results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
    gap: 1rem;
}
.no-results h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-dark); }
.no-results p { color: var(--text-muted); max-width: 400px; }

/* ===== VORTEILE ===== */
.immo-vorteile {
    padding: 6rem 0;
    background: white;
}
.vorteile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.vorteil-card {
    padding: 2rem 1.5rem;
    background: #f8f8f8;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0,0,0,.06);
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
.vorteil-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,var(--gold-light),var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s;
}
.vorteil-card:hover::before { transform: scaleX(1); }
.vorteil-card:hover { background: white; box-shadow: 0 12px 40px rgba(0,0,0,.07); transform: translateY(-4px); }
.vorteil-icon {
    width: 50px; height: 50px;
    background: rgba(201,168,76,.1);
    border: 1px solid rgba(201,168,76,.2);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-dark);
    margin-bottom: 1.2rem;
}
.vorteil-card h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; }
.vorteil-card p { font-size: .87rem; color: var(--text-muted); font-weight: 300; line-height: 1.65; }

/* ===== CTA ===== */
.immo-cta {
    padding: 6rem 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}
.immo-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%,rgba(201,168,76,.1) 0%,transparent 55%),
                radial-gradient(ellipse at 80% 50%,rgba(201,168,76,.06) 0%,transparent 50%);
    pointer-events: none;
}
.immo-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.immo-cta-text h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.immo-cta-text h2 .gold {
    background: linear-gradient(135deg,var(--gold-light),var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
}
.immo-cta-text p { font-size: .97rem; color: rgba(255,255,255,.6); font-weight: 300; line-height: 1.75; margin-bottom: 2rem; }
.immo-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: .88rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.06);
    padding: .7rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all .25s;
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: white; }
.immo-cta-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}
.cta-card-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.immo-cta-card h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: .4rem; }
.immo-cta-card > p { font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.cta-wish-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .45rem; }
.cta-wish-list li { font-size: .87rem; color: rgba(255,255,255,.7); font-weight: 300; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) { .prop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    .immo-hero h1 { font-size: 2.4rem; }
    .immo-hero-stats { gap: 1.5rem; }
    .immo-stat-num { font-size: 1.6rem; }
    .immo-filter-inner { gap: .8rem; }
    .filter-count { margin-left: 0; }
    .vorteile-grid { grid-template-columns: repeat(2, 1fr); }
    .immo-cta-inner { grid-template-columns: 1fr; gap: 3rem; }
    .immo-cta-text h2 { font-size: 2rem; }
}
@media (max-width: 640px) {
    .prop-grid { grid-template-columns: 1fr; }
    .immo-hero { min-height: 36vh; padding: 6rem 0 4rem; }
    .immo-hero h1 { font-size: 2rem; }
    .vorteile-grid { grid-template-columns: 1fr; }
    .immo-cta-card { padding: 1.8rem; }
    .immo-cta-text h2 { font-size: 1.7rem; }
}

/* ===== DETAIL PAGE ===== */
/* Slide-in animation when arriving from grid */
@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.detail-page-enter {
    animation: slideInFromRight .4s cubic-bezier(.25,.46,.45,.94) both;
}

/* Back button */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: .5rem 0;
    margin-bottom: 1.5rem;
    transition: color .2s;
}
.detail-back:hover { color: var(--gold-dark); }

/* Detail Hero / Gallery */
.detail-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px 180px;
    gap: .5rem;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}
.detail-gallery-main {
    grid-row: 1 / 3;
    grid-column: 1;
}
.detail-gallery-main img,
.detail-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.detail-gallery-thumb { overflow: hidden; }

/* Detail layout */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

/* Detail left */
.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.detail-id-badge {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(201,168,76,.1);
    border: 1px solid rgba(201,168,76,.25);
    padding: .25rem .7rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: .6rem;
}
.detail-h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: .5rem;
}
.detail-loc {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.detail-loc svg { color: var(--gold-dark); }

.detail-desc {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.78;
    font-weight: 300;
    margin-bottom: 2rem;
}

.detail-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    margin-bottom: 2rem;
}
.detail-fact {
    background: #f8f8f8;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 10px;
    padding: .9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.detail-fact-label { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); opacity: .75; }
.detail-fact-val { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); letter-spacing: -.02em; }

.detail-features { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.detail-features span {
    font-size: .75rem; font-weight: 500; color: var(--text-muted);
    background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.09);
    padding: .25rem .7rem; border-radius: 50px; white-space: nowrap;
}

/* Detail right sidebar */
.detail-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.detail-price-big {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: .3rem;
}
.detail-price-big span { font-size: 1rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.detail-price-sub { font-size: .78rem; color: var(--text-muted); margin-bottom: 1.4rem; }

.detail-sidebar-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: .7rem;
}
.detail-sidebar-tel {
    display: block;
    width: 100%;
    text-align: center;
    font-size: .87rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid rgba(0,0,0,.12);
    padding: .65rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all .2s;
    margin-bottom: 1.2rem;
}
.detail-sidebar-tel:hover { background: #f5f5f5; color: var(--text-dark); }

.detail-sidebar-contact {
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0,0,0,.07);
    display: flex;
    align-items: center;
    gap: .8rem;
}
.detail-contact-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--gold-light),var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: .88rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.detail-contact-info strong { display: block; font-size: .85rem; font-weight: 700; color: var(--text-dark); }
.detail-contact-info span { display: block; font-size: .75rem; color: var(--text-muted); }

@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .detail-gallery { grid-template-columns: 1fr; grid-template-rows: 280px; }
    .detail-gallery-main { grid-row: 1; }
    .detail-gallery-thumb { display: none; }
    .detail-facts-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-h1 { font-size: 1.6rem; }
}
