:root {
    --premium-dark: #111827;
    --premium-gold: #c49a4a;
    --premium-gold-hover: #b28b42;
    --premium-sand: #f4efe7;
    --premium-soft: #faf7f2;
    --premium-text: #1f2937;
}

html { scroll-behavior: smooth; }

body {
    color: var(--premium-text);
    background: #fff;
}

.section-padding { padding: 88px 0; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--premium-gold);
    margin-bottom: .75rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(17, 24, 39, .94);
    backdrop-filter: blur(12px);
    color: #fff;
}

.navbar .container { min-height: 72px; }

.navbar-brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .95rem;
}

.nav-links a:hover { color: #fff; }

.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(17,24,39,.88), rgba(17,24,39,.58), rgba(17,24,39,.14)),
        url("../images/hero.png"),
        linear-gradient(135deg, #1f2937 0%, #334155 50%, #d6c2a5 100%);
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 35%, rgba(196,154,74,.25), transparent 32%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,.10), transparent 28%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.7rem);
    line-height: .98;
    letter-spacing: -.05em;
    margin-bottom: 1.25rem;
}

.hero .lead {
    max-width: 720px;
    color: rgba(255,255,255,.9);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 2rem 0;
}

.hero-badge {
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    padding: .65rem 1rem;
    border-radius: 999px;
    color: #fff;
}

.hero-badge-price {
    background: var(--premium-gold);
    border-color: var(--premium-gold);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(196,154,74,.35);
}

.feature-card,
.gallery-card,
.contact-panel,
.legal-card,
.facts-box {
    background: #fff;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(17,24,39,.08);
}

.feature-card {
    padding: 1.7rem;
    min-height: 170px;
}

.feature-card h3 {
    font-size: 1.65rem;
    color: var(--premium-dark);
    margin-bottom: .35rem;
}

.feature-card p {
    color: #6b7280;
    margin: 0;
}

.btn-expose {
    background: var(--premium-gold);
    border-color: var(--premium-gold);
    color: #fff;
    font-weight: 600;
    transition: all .3s ease;
}

.btn-expose:hover {
    background: var(--premium-gold-hover);
    border-color: var(--premium-gold-hover);
    color: #fff;
}

.collapse-panel { display: none; }
.collapse-panel.is-open { display: block; }

.gallery-trigger,
.plan-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    background: transparent;
}

.gallery-trigger { background: #fff; }

.gallery-card {
    overflow: hidden;
}

.gallery-card .caption {
    padding: 1rem 1.2rem 1.2rem;
}

.gallery-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gallery-card:hover .gallery-image { transform: scale(1.03); }

.gallery-lightbox,
.plan-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(17,24,39,.92);
    padding: 2rem;
}

.gallery-lightbox.is-open,
.plan-lightbox.is-open { display: flex; }

.gallery-lightbox-content {
    max-width: 1100px;
    width: 100%;
    text-align: center;
}

.gallery-lightbox-content img,
.plan-lightbox-image {
    max-width: 96vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
    margin: 0 auto;
}

.gallery-lightbox-caption {
    margin-top: 1rem;
    color: #fff;
}

.gallery-lightbox-caption strong {
    display: block;
    font-size: 1.15rem;
}

.gallery-lightbox-caption span { color: rgba(255,255,255,.75); }

.gallery-close,
.gallery-nav,
.plan-close {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background .25s ease;
}

.gallery-close,
.plan-close {
    top: 24px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.gallery-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 3rem;
    line-height: 1;
}

.gallery-prev { left: 28px; }
.gallery-next { right: 28px; }

.gallery-close:hover,
.gallery-nav:hover,
.plan-close:hover { background: var(--premium-gold); }

.plan-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(17,24,39,.15);
    transition: transform .35s ease, box-shadow .35s ease;
}

.plan-trigger:hover .plan-image {
    transform: scale(1.02);
    box-shadow: 0 30px 90px rgba(17,24,39,.22);
}

.sanierung-note,
.wohnlagen-note {
    background: #fff;
    border-left: 4px solid var(--premium-gold);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    color: #4b5563;
    box-shadow: 0 18px 45px rgba(17,24,39,.06);
}

.location-box {
    background: var(--premium-dark);
    color: #fff;
    border-radius: 28px;
    padding: clamp(2rem, 4vw, 4rem);
}

.location-box p { color: rgba(255,255,255,.78); }

.facts-box {
    background: var(--premium-soft);
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.table { width: 100%; border-collapse: collapse; }
.table td {
    padding: .9rem 0;
    border-bottom: 1px solid rgba(17,24,39,.08);
}
.table td:first-child {
    font-weight: 700;
    color: var(--premium-dark);
}

.wohnlagen-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: var(--premium-soft);
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 24px 70px rgba(17,24,39,.08);
}

.wohnlagen-score {
    background: var(--premium-dark);
    color: #fff;
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
}

.score-number {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--premium-gold);
}

.score-label {
    color: rgba(255,255,255,.7);
    margin-bottom: 1rem;
}

.score-row {
    display: grid;
    grid-template-columns: 230px 1fr 42px;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.1rem;
}

.score-title {
    font-weight: 700;
    color: var(--premium-dark);
}

.score-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.score-bar span {
    display: block;
    height: 100%;
    background: var(--premium-gold);
    border-radius: 999px;
}

.score-value {
    font-weight: 800;
    color: var(--premium-dark);
    text-align: right;
}

.wohnlagen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.wohnlagen-mini-card {
    background: #fff;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 20px;
    padding: 1.35rem;
    box-shadow: 0 18px 45px rgba(17,24,39,.06);
}

.wohnlagen-mini-card strong {
    display: block;
    margin-bottom: .5rem;
}

.wohnlagen-mini-card p {
    margin: 0;
    color: #6b7280;
}

.contact-panel {
    padding: clamp(2rem, 4vw, 3rem);
}

.price-display {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1;
    font-weight: 800;
    color: var(--premium-gold);
    margin-top: 1.5rem;
}

.price-label {
    color: rgba(17,24,39,.7);
    font-weight: 700;
}

.phone-highlight {
    display: inline-block;
    padding: 1rem 1.5rem;
    border-radius: 18px;
    background: var(--premium-sand);
    color: var(--premium-dark);
    font-size: 1.35rem;
    font-weight: 800;
}

.footer {
    background: var(--premium-dark);
    color: rgba(255,255,255,.74);
    padding: 42px 0;
}

.footer a {
    color: #fff;
    margin: 0 .55rem;
    text-decoration: none;
}

@media (max-width: 991px) {
    .nav-links { display: none; }
    .wohnlagen-card { grid-template-columns: 1fr; }
    .score-row { grid-template-columns: 1fr; gap: .35rem; }
    .score-value { text-align: left; }
    .wohnlagen-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .section-padding { padding: 62px 0; }
    .hero { min-height: 82vh; }
    .btn { width: 100%; margin-bottom: .75rem; }
    .gallery-image { height: 240px; }
    .gallery-lightbox, .plan-lightbox { padding: 1rem; }
    .gallery-nav { width: 44px; height: 44px; font-size: 2.2rem; }
    .gallery-prev { left: 12px; }
    .gallery-next { right: 12px; }
    .gallery-close, .plan-close { top: 14px; right: 14px; }
}


/* Verbesserung 1: kompakte Grundriss-Vorschau im Exposé */
.grundriss-preview-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grundriss-trigger {
    width: min(100%, 460px);
    margin: 0 auto;
    display: block;
}

.grundriss-trigger .plan-image {
    max-height: 430px;
    object-fit: contain;
    background: #ffffff;
    padding: 18px;
}

@media (max-width: 767px) {
    .grundriss-trigger {
        width: min(100%, 340px);
    }

    .grundriss-trigger .plan-image {
        max-height: 340px;
        padding: 12px;
    }
}
