/* --- VARIABLEN & RESET (Basis aus home.css) --- */
:root {
    --bg-dark: #050505;
    --bg-gradient: linear-gradient(180deg, #050505 0%, #121212 100%);
    --accent-gradient: linear-gradient(135deg, #ffd27a 0%, #ffb86b 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --text-main: #eaeaea;
    --text-muted: #a0a0a0;
    --font-main: 'Inter', sans-serif;
    --container-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* --- HEADER (Identisch zu home.css) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 5, 5, 0.7); /* Transparenz wie Home */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.brand img { /* Spezifischer Selektor für Logo-Größe */
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 210, 122, 0.2));
}

.nav {
    display: flex;
    gap: 4px;
}

.nav a {
    position: relative;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 99px;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: #fff;
    background: var(--glass-bg);
}

/* --- PAGE CONTENT (Angepasst für Projects) --- */
/* WICHTIG: main.container erhöht die Spezifität, damit padding-top nicht von .container (padding: 0 24px) überschrieben wird */
main.container {
    padding-top: 140px; /* Abstand für Fixed Header */
    padding-bottom: 80px;
    flex: 1 1 auto;
}

/* H1 Style von home.css übernommen */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    background: linear-gradient(to bottom right, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Lead Text Style von home.css übernommen */
p.lead {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 80px; /* Abstand zu den Karten */
}

/* --- WIDE PROJECT CARDS (Spezifisch für Projects Page) --- */
.cards {
    display: flex;
    flex-direction: column;
    gap: 80px; /* Großer Abstand zwischen den Projekten */
}

.card {
    background: #0a0a0a; /* Dunkler Hintergrund für Kontrast */
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border-color: rgba(255, 210, 122, 0.2);
}

/* Großes Bild mit Fade-Effekt */
.card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    /* Lässt das Bild nach unten sanft ausblenden */
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    transition: transform 0.7s ease;
}

.card:hover img {
    transform: scale(1.02);
}

/* Inhalt überlappt das Bild */
.card-content {
    padding: 0 50px 50px 50px;
    margin-top: -120px; /* Negativer Margin zieht Text nach oben */
    position: relative;
    z-index: 2;
}

.card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0 20px 0;
    color: #fff;
    letter-spacing: -0.02em;
    display: block; /* Anders als in home.css, kein flex nötig hier */
}

.card p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 850px;
}

/* --- STATUS BADGES --- */
.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
    width: fit-content;
}

.status.active {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status.planned {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.status.building {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

/* --- FOOTER (Identisch zu home.css) --- */
.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    background: rgba(0,0,0,0.2);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- LOADING & ERROR STATES --- */
.loading-spinner {
    text-align: center; padding: 60px;
    color: var(--text-muted); font-style: italic; width: 100%;
}

.error-msg {
    text-align: center; padding: 30px;
    color: #ff6b6b; background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* WICHTIG: Auch hier main.container verwenden */
    main.container {
        padding-top: 160px;
    }

    h1 {
        font-size: 2.5rem;
    }
    
    /* Karten mobil anpassen */
    .card img { height: 300px; }
    .card h3 { font-size: 2rem; }
    .card-content { padding: 0 25px 30px 25px; margin-top: -80px; }
}