/* =========================================
   Global Reset & Stylized Theme
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark-charcoal: #111118; /* Dark charcoal/black for text readability */
    --bg-charcoal: #1a1a24; /* Base dark color, used in hero portrait */
    --gold-accent: #c0b283; /* Derrived golden-yellow accent color */
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --card-bg: rgba(26, 26, 36, 0.85); /* Dark background for readability on map */
    --card-border: rgba(192, 178, 131, 0.2); /* Transparent gold border */
    --transition-main: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Common Accent Utility */
.gold-accent {
    color: var(--gold-accent);
}

/* =========================================
   Hero / Intro Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 20px;
    
    /* NEU: Das Bild als Hintergrund mit einem sanften, dunklen Verlauf darüber */
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 36, 0.7) 0%,   /* Oben etwas dunkler für den Text */
        rgba(26, 26, 36, 0.2) 40%,  /* In der Mitte transparenter, damit man dein Gesicht gut sieht */
        var(--bg-charcoal) 95%      /* Unten blendet es komplett unsichtbar in den dunklen Hintergrund über */
    ), url('image_3.png') center top / cover no-repeat;
}

.hero-content {
    max-width: 900px;
    margin-bottom: 2rem;
    z-index: 2; /* Hebt den Text über den Hintergrund */
}

.main-title {
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 15px rgba(0,0,0, 0.8); /* Macht den Text über dem Bild besser lesbar */
}

.sub-title {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-muted);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0, 0.8);
}

/* Gradient mask for seamless blend to map section */
.hero-blend-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: linear-gradient(to bottom, rgba(17, 17, 24, 0) 0%, var(--bg-dark-charcoal) 100%);
    z-index: 1;
}

/* =========================================
   Maps & Infrastructure Projects Section
   ========================================= */
.projects {
    position: relative;
    padding: 6rem 20px;
    background: url('image_2.png') center/cover no-repeat fixed; /* Full screen map background */
}

/* Ensure background works on mobile (remove 'fixed' if needed for performance) */
@media (max-width: 768px) {
    .projects {
        background-attachment: scroll;
    }
}

/* Map overlay for readability */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 24, 0.90); /* Adjust opacity for map details */
    z-index: 0;
}

.projects-container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 4rem;
    letter-spacing: 0.5px;
}

/* Responsive Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

/* Project Cards */
.project-card {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-main);
}

.card-content {
    padding: 2.5rem;
}

.project-card h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    transition: var(--transition-main);
}

.project-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Placeholder Icons (Derived from map style, for visual representation) */
.project-icon {
    width: 40px;
    height: 40px;
    background-color: var(--gold-accent);
    margin-bottom: 1.5rem;
    border-radius: 50%;
    opacity: 0.8;
}
/* For real implementation, replace with embedded gold SVGs for clean look */
.mountain-icon::after { content: '🏔'; font-size: 20px; color: var(--bg-dark-charcoal); display: grid; place-items: center; height: 100%; }
.cyclist-icon::after { content: '🚴‍♂️'; font-size: 20px; color: var(--bg-dark-charcoal); display: grid; place-items: center; height: 100%; }
.transit-icon::after { content: 'Tram'; font-size: 14px; color: var(--bg-dark-charcoal); display: grid; place-items: center; height: 100%; font-weight: 700;}

/* Card Hover Interactions */
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(192, 178, 131, 0.5);
}

.project-card:hover h3 {
    color: var(--gold-accent);
}

/* =========================================
   Contact / Footer Section
   ========================================= */
.contact {
    padding: 5rem 20px;
    text-align: center;
    background-color: #0b0b0f; /* Slightly darker charcoal */
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Social Buttons Flexbox */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-btn {
    display: inline-block;
    padding: 14px 28px;
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px; /* Tight, professional border */
    border: 1px solid var(--gold-accent);
    transition: var(--transition-main);
    background-color: transparent;
}

.contact-btn:hover {
    background-color: var(--gold-accent);
    color: var(--bg-dark-charcoal);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(192, 178, 131, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: #444450;
    font-size: 1rem;
}

/* =========================================
   Media Queries (Extra Responsiveness)
   ========================================= */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 15px;
    }
    
    .projects {
        padding: 4rem 15px;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 320px;
    }
}

/* =========================================
   Sub-Pages (In Development)
   ========================================= */
.dev-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-charcoal);
    padding: 2rem;
}

.dev-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--gold-accent);
}