/* --- Creative Organic Luxury Variables (Fixed) --- */
:root {
    /* Wärmeres, fließendes Gold */
    --primary-gold: #d4af37;
    --gold-gradient: linear-gradient(135deg, #f3d881 0%, #d4af37 50%, #b08d28 100%);

    /* Hintergrund-Gradienten beibehalten */
    --gold-blob-gradient: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.15), transparent 50%);

    --bg-dark: #080808;

    /* FIX: Keine Transparenz mehr für Karten/Nav -> Solide Farben */
    --bg-card: #141414;
    /* War vorher transparent rgba */
    --bg-nav: #080808;
    /* War vorher transparent rgba */

    --text-main: #f5f5f5;
    --text-muted: #999;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Schatten beibehalten */
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 15px 50px -10px rgba(212, 175, 55, 0.3);

    /* Runde Formen beibehalten */
    --border-radius-soft: 30px;
    --border-radius-pill: 100px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    /* Hintergrund-Effekt beibehalten */
    background-image:
        radial-gradient(circle at 20% 20%, rgba(20, 20, 20, 1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(25, 25, 25, 1) 0%, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: var(--border-radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--bg-nav);
    /* Jetzt solid */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: none;
    letter-spacing: 1px;
    position: relative;
    text-decoration: none;
}

/* FIX: Punkt neben Logo entfernt */
.logo::after {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: var(--border-radius-pill);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Hover-Effekt beibehalten */
.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    border-radius: var(--border-radius-pill);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 0.15;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-gold);
    transform: translateY(-2px);
}

.mobile-menu-icon {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    filter: brightness(0.6) blur(2px);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, var(--bg-dark) 90%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 900px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
    color: var(--primary-gold);
    font-style: italic;
}

.hero-content p {
    font-size: 1.3rem;
    color: #ddd;
    margin-bottom: 50px;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 50px;
    background: var(--gold-gradient);
    color: #111;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: var(--border-radius-pill);
    box-shadow: 0 15px 40px -10px rgba(212, 175, 55, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 60px -15px rgba(212, 175, 55, 0.7);
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--primary-gold);
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseGlow 2s infinite;
}

/* --- Listings Section --- */
.section-container {
    padding: 140px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Hintergrund-Blob beibehalten */
.section-container::before {
    content: '';
    position: absolute;
    top: 100px;
    left: -20%;
    width: 600px;
    height: 600px;
    background: var(--gold-blob-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    filter: blur(50px);
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

/* Hintergrund-Kreis bei Titel ok? (Kein Punkt) - habe ihn dezenter gemacht */
.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 60px 40px;
}

/* --- Karten Layout (Fixed formatting) --- */
.property-card {
    background-color: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: transform 0.5s ease;
    overflow: visible;
    margin-bottom: 30px;
}

.property-card:hover {
    transform: translateY(-10px);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
    /* Runde Ecken beibehalten, aber sauberer */
    border-radius: 30px 30px 0 0;
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.property-card:hover .card-image {
    transform: scale(1.1);
}

.status-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
    padding: 8px 20px;
    border-radius: var(--border-radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.7);
    /* Besser lesbar */
    color: white;
    z-index: 3;
}

.status-available {
    border-left: 3px solid #28a745;
}

.status-sold {
    border-left: 3px solid #dc3545;
}

.status-soon {
    border-left: 3px solid #3f78e0;
}

/* FIX: Layout repariert - Kein negativer Margin mehr */
.card-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Hintergrund jetzt SOLID, nicht transparent */
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    /* Verbindet sich mit Bild oben */
    border-radius: 0 0 30px 30px;
    /* Nur unten rund */
    margin-top: 0;
    /* FIX: Überlappung entfernt */
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s ease;
}

/* Hover-Leuchten dezent */
.property-card:hover .card-details {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-glow);
}

.address {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.3;
    border-left: 3px solid var(--primary-gold);
    padding-left: 15px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 15px;
}

.features span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.features span i {
    color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.05);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: var(--border-radius-pill);
}

.price-box {
    background: transparent;
    padding: 0;
    border: none;
    text-align: left;
}

.price-label {
    font-size: 0.65rem;
    color: #aaa;
    margin-bottom: 3px;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-gold);
}

/* --- FIX 1: Details Button --- */
.expand-hint {
    color: #fff;
    background: var(--primary-gold);
    /* width/height auto statt fixed, damit Text reinpasst */
    width: auto;
    height: auto;
    padding: 8px 20px;
    border-radius: var(--border-radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 10px;
    /* Abstand zwischen Text und Pfeil */
    transition: all 0.3s;
}

/* Ganzen Button NICHT mehr rotieren, sonst steht der Text schief */
.property-card:hover .expand-hint {
    transform: translateY(-2px);
    /* Leichter Hover-Effekt nach oben */
    background: #fff;
    color: var(--primary-gold);
}

/* Optional: Nur den Pfeil rotieren lassen bei Hover? */
.property-card:hover .expand-hint i {
    /* transform: rotate(180deg); */
    /* Kann man reinnehmen, wenn der Pfeil sich drehen soll */
}

.description-container {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    background-color: #0f0f0f;
    margin: 0 15px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 0 20px;
}

.property-card.active .description-container {
    max-height: 300px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.description-text {
    color: #ccc;
}

/* --- Terms & Infos Layout --- */
.terms-page-header {
    height: 45vh;
    background: linear-gradient(to bottom, rgba(8, 8, 8, 0.3), var(--bg-dark)), url('https://images.unsplash.com/photo-1600596542815-2a4d9f0152ba?q=80&w=2075&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding-bottom: 80px;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%);
    mask-image: linear-gradient(to top, transparent 0%, black 20%);
}

.terms-intro h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 100px 5%;
    position: relative;
}

.info-column h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: left;
    border: none;
    position: relative;
    display: inline-block;
}

/* FIX: Punkt unter Headline entfernt */
.info-column h2::after {
    display: none;
}

.info-card {
    background: var(--bg-card);
    /* Jetzt solid */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 40px;
    /* Runder Look beibehalten */
    margin-bottom: 40px;
    position: relative;
    transition: transform 0.4s;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: var(--primary-gold);
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-card h3 i {
    font-size: 1.2rem;
    background: rgba(212, 175, 55, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- FIX 3: Info Text Formatierung --- */
.info-card li {
    padding-left: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #bbb;
    display: flex;
    gap: 15px;
    /* Abstand zwischen Strich und Text */
    align-items: flex-start;
    /* FIX: Text oben bündig, nicht mittig */
}

/* FIX: Punkt entfernt, durch neutrales Element ersetzt oder ganz weg */
.info-card li::before {
    content: "—";
    /* Strich statt Punkt */
    color: var(--primary-gold);
    /* margin-right entfernt, da gap im Parent das regelt */
    flex-shrink: 0;
    /* Strich wird nicht gequetscht */
}

/* --- Footer --- */
.footer-section {
    background-color: #050505;
    padding: 100px 5% 60px;
    text-align: center;
    border-top: 1px solid #111;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 60px;
}

.contact-info {
    gap: 50px;
    margin-bottom: 60px;
}

/* --- FIX 2: Kontakt Telefon/Standort Abstand --- */
.contact-item {
    font-size: 1.1rem;
    color: #aaa;
    flex-direction: column;
    gap: 10px;
    /* FIX: War 20px, jetzt näher dran */
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.05);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.contact-item:hover i {
    background: var(--primary-gold);
    color: #000;
}

.social-links a {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.3rem;
    margin: 0 10px;
    transition: all 0.4s;
}

.social-links a:hover {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

/* --- Mobile Responsive --- */
@media screen and (max-width: 900px) {
    .split-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .card-image-wrapper {
        height: 250px;
    }

    /* Angepasst */

    /* Terms Page Mobile Fixes */
    .terms-page-header {
        height: 35vh;
        padding-bottom: 40px;
    }

    .terms-intro h1 {
        font-size: 2.2rem;
    }

    .split-container {
        padding: 60px 5%;
        gap: 40px;
    }

    .info-column h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .info-card {
        padding: 30px 20px;
        border-radius: 25px;
        margin-bottom: 30px;
    }

    .info-card h3 {
        font-size: 1.2rem;
        gap: 10px;
    }

    .info-card h3 i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .info-card li {
        font-size: 0.95rem;
        gap: 10px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-nav);
        padding: 20px 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        box-shadow: var(--shadow-soft);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.4s ease forwards;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        text-align: center;
    }

    .mobile-menu-icon {
        display: block;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
        transform: translateX(-50%) scale(1);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
        transform: translateX(-50%) scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
        transform: translateX(-50%) scale(1);
    }
}