@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

:root {
    --primary: #019fbf;
    --dark: #1a1a1a;
    --white: #ffffff;
    --radius: 20px;
    --section-spacing: 100px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; color: var(--dark); line-height: 1.8; overflow-x: hidden; background-color: #fff; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* HEADER */
header { position: fixed; width: 100%; top: 0; z-index: 2000; padding: 30px 0; transition: var(--transition); background: transparent; }
header.shrink { background: rgba(255, 255, 255, 0.98); padding: 15px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.header-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }

/* LOGO */
.logo { display: flex; align-items: center; gap: 15px; text-decoration: none !important; }
.logo-icon { height: 35px; width: auto; transition: var(--transition); }
.logo-text { color: var(--white); font-weight: 300; font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; transition: var(--transition); }
header.shrink .logo-text { color: var(--primary); font-weight: 600; }
header.shrink .logo-icon { content: url('../img/star-blue.png'); }

/* NAV DESKTOP */
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links li a { text-decoration: none; color: var(--white); font-weight: 400; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; transition: var(--transition); }
header.shrink .nav-links li a { color: var(--primary); }
.cta-btn { background: var(--primary); color: var(--white) !important; padding: 12px 25px !important; border-radius: 50px; font-weight: 600; display: inline-block; border: 1px solid var(--primary); }

/* BURGER & OVERLAY */
.burger { display: none; cursor: pointer; z-index: 2600; }
.burger div { width: 25px; height: 2px; background: var(--white); margin: 6px; transition: var(--transition); }
header.shrink .burger div { background: var(--primary); }

.burger.toggle div:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); background: var(--primary); }
.burger.toggle div:nth-child(2) { opacity: 0; }
.burger.toggle div:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); background: var(--primary); }

.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--white); z-index: 2500; display: flex; flex-direction: column; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transform: translateY(-100%); transition: var(--transition); }
.nav-overlay.open { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-overlay ul { list-style: none; text-align: center; }
.nav-overlay a { font-size: 1.8rem; color: var(--dark); text-decoration: none; text-transform: uppercase; display: block; margin: 20px 0; letter-spacing: 3px;}

.overlay-header { position: absolute; top: 30px; left: 40px; display: flex; align-items: center; gap: 15px; }
.overlay-logo { height: 30px; }
.overlay-title { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 1.1rem; }

/* HERO */
.hero { height: 60vh; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); background-size: cover; background-position: center; background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/hero-bg.jpg'); }
.hero h1 { font-size: 3.5rem; font-weight: 300; letter-spacing: 8px; text-transform: uppercase; margin-bottom: 10px; }
.hero p { letter-spacing: 4px; font-weight: 300; font-size: 1rem; }

/* HARD FACTS (Responsive Setup) */
.hard-facts-container { max-width: 1100px; margin: -60px auto 0; position: relative; z-index: 10; padding: 0 20px; }
.hard-facts { display: flex; flex-wrap: wrap; background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,0.06); justify-content: space-around; text-align: center; gap: 30px; }
.fact-item { flex: 1; min-width: 200px; } /* Wichtig für Mobile-Umbruch */
.fact-item h2 { color: var(--primary); font-size: 2.8rem; font-weight: 600; }
.fact-item p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #999; }

/* SECTIONS */
section { padding: var(--section-spacing) 0; }
.section-title { text-align: center; font-weight: 300; font-size: 2.2rem; margin-bottom: 60px; letter-spacing: 3px; text-transform: uppercase; }

/* GRID (Immobilien) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; }
.card { background: var(--white); border-radius: var(--radius); }
.card img { width: 100%; border-radius: var(--radius); height: 250px; object-fit: cover; }

/* FOOTER */
footer { background-color: #fff; padding: 80px 0 40px 0; border-top: 1px solid #f0f0f0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer-bottom { padding-top: 30px; border-top: 1px solid #f5f5f5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; color: #aaa; font-size: 0.75rem; gap: 20px; }

/* =========================================================
   MOBILE RESPONSIVENESS (SMARTPHONES & TABLETS)
   ========================================================= */
@media (max-width: 992px) {
    .nav-desktop { display: none; }
    .burger { display: block; }
    .hero h1 { font-size: 2.5rem; letter-spacing: 4px; }
    .hero p { font-size: 0.85rem; letter-spacing: 2px; }
}

@media (max-width: 768px) {
    :root { --section-spacing: 80px; }
    .container, .header-container { padding: 0 20px; }
    
    /* Hard Facts stapeln sich auf Mobile */
    .hard-facts-container { margin: -40px auto 0; }
    .hard-facts { flex-direction: column; padding: 30px 20px; gap: 40px; }
    
    /* Footer zentrieren auf Mobile */
    .footer-grid { text-align: center; }
    .footer-about, .footer-links, .footer-contact { margin: 0 auto; }
    .footer-bottom { flex-direction: column; text-align: center; }
    
    .overlay-header { left: 20px; top: 20px; }
    .nav-overlay .close-x { right: 20px; top: 20px; }
}