/* Variables */
:root {
    --primary: #1e293b;        /* Slate 800 */
    --secondary: #334155;      /* Slate 700 */
    --accent: #d4af37;         /* Classic Gold */
    --accent-hover: #b5952f;
    --bg-color: #fcfcfc;       /* Crisp off-white */
    --bg-light: #f1f5f9;       /* Light grey for sections */
    --text-main: #0f172a;      /* Dark slate */
    --text-muted: #475569;
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --radius: 8px;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Reset & BaseStyles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography Classes */
.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    color: var(--text-main);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none; /* Hidden by default */
    border: 1px solid rgba(0,0,0,0.05);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .cookie-banner { bottom: 10px; left: 10px; right: 10px; padding: 1rem; }
}

/* Shared Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
    font-style: italic;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary);
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
    /* Abstand unter fixierter Navbar */
    padding: 5.5rem 0 3rem;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 0 2rem;
    margin-top: 0;
    flex-shrink: 0;
}

.subtitle {
    display: block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Quick Facts */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
    max-width: 1000px;
    margin: -50px auto 4rem;
    position: relative;
    z-index: 10;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.fact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.fact-item:nth-child(3n) {
    border-right: none;
}

.fact-item .lucide {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.fact-item h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.fact-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hinweis „Weitere Bilder“ — gleicher Kasten-Stil wie Tech-Karten (Photovoltaik …) */
.gallery-notice-section {
    padding: 3rem 2rem 4rem;
    background: var(--bg-color);
}

.gallery-notice-grid {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 560px;
}

.gallery-notice-card {
    width: 100%;
}

.gallery-notice-card h3 {
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.gallery-notice-card p {
    font-size: clamp(1.05rem, 2.8vw, 1.3rem);
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Split Section (Image + Text) */
.section-split {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
    gap: 4rem;
}

.section-split.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.split-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.feature-list .lucide {
    color: var(--accent);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-info strong {
    font-size: 1.15rem;
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 600;
}

.feature-info span {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.split-image {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.split-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}

/* Energy & Tech */
.energy-tech {
    padding: 6rem 0;
}

.energy-tech h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.energy-tech .lead {
    max-width: 700px;
    margin: 0 auto 4rem;
}

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

.tech-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.tech-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.tech-icon .lucide {
    width: 32px;
    height: 32px;
}

.tech-card h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tech-card p {
    color: var(--text-muted);
}

/* Property Banner */
.property-banner {
    position: relative;
    isolation: isolate;
    padding: 8rem 2rem;
    text-align: center;
    color: var(--white);
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-background-size: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile WebKit: background-attachment:fixed wird oft nicht gezeichnet */
@media (max-width: 1024px) {
    .banner-bg {
        background-attachment: scroll;
    }
}

/* Contact */
.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.contact-card {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--accent);
    font-style: italic;
}

.footer-links a {
    color: #94a3b8;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-views {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(248, 250, 252, 0.95);
    font-weight: 500;
    user-select: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem 0.5rem;
}

.footer-views-label::after {
    content: ':';
    margin-right: 0.15em;
    opacity: 0.85;
}

.footer-views-num {
    font-variant-numeric: tabular-nums;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.03em;
}

/* Animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Utilities */
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 992px) {
    .quick-facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    .fact-item:nth-child(3n) { border-right: 1px solid rgba(0,0,0,0.05); }
    .fact-item:nth-child(2n) { border-right: none; }
    
    .section-split, .section-split.reverse {
        flex-direction: column;
        gap: 3rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Floor Plans */
.section-padding { padding: 6rem 0; }
.floorplan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}
.floorplan-item h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.floorplan-image {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.floorplan-image:hover { transform: scale(1.02); }

/* Energy Certificate */
.energy-certificate {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.energy-certificate h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.certificate-image {
    max-width: 800px;
    margin: 3rem auto 0;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}
.certificate-image img {
    width: 100%;
}

@media (max-width: 768px) {
    .gallery-notice-section {
        padding: 2.5rem 1.5rem 3rem;
    }
    .container { padding: 0 1.5rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1.1rem; }
    .hero { padding: 5rem 0 2.5rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .quick-facts {
        margin-top: -30px;
        padding: 1.5rem;
    }
    
    .fact-item h3 { font-size: 1.35rem; }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .section-split { gap: 2rem; margin: 3rem auto; }
    .split-content h2 { font-size: 2rem; }
    .split-image img { height: 300px; }
    .energy-tech { padding: 4rem 0; }
    .property-banner { padding: 4rem 1.5rem; }
    .banner-content h2 { font-size: 2.25rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    
    .quick-facts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .fact-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        padding-bottom: 1.5rem;
    }
    
    .fact-item:last-child {
        border-bottom: none !important;
        padding-bottom: 0;
    }
    
    .floorplan-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .split-content h2 { font-size: 1.8rem; }
    .energy-tech h2 { font-size: 1.8rem; }
    
    .tech-card {
        padding: 2rem 1.5rem;
    }
}
