/* ===== Reset und Grundeinstellungen ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #333;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    color: #8d8d8d;
}

ul {
    list-style: none;
}

/* ===== Fixiertes Header-Menü ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

header h1 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

header nav ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav a {
    color: #d0d0d0;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

header nav a:hover {
    color: #ffffff;
}

header nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

/* ===== Hauptcontainer für das Karussell ===== */
.carousel-container {
    margin-top: 50px; /* Höhe des Menüs (50px = padding + font-size) */
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: calc(100vh - 50px); /* Vollbildhöhe minus Menühöhe */
}

/* ===== Einzelnes Projekt (Vollbild) ===== */
.project-slide {
    display: flex;
    height: calc(100vh - 50px); /* Höhe = Viewport minus Menü */
    scroll-snap-align: start;
    position: relative;
}
/* Individuelle Hintergrundfarben für jedes Projekt */
.project-slide.sternengucker {
    background: #bcd2ff; /* Hellblau */
}

.project-slide.farbfilm {
    background: #ffacac; /* Hellrosa */
}

.project-slide.gaze {
    background: #ffbde3; /* Hellgrau */
}

.project-slide.einsamer-held {
    background: #c9c9c9; /* Beige */
}

.project-slide.unziemlich {
    background: #ffbbbb; /* Hellgrün */
}

.project-slide.fensterblick {
    background: #ffffb5; /* Hellorange */
}

.project-slide.pommesraub {
    background: #b3cbff; /* Helllila */
}

.project-slide.stoerbild {
    background: #ffbad4; /* Hellcyan */
}

/* ===== Poster-Bereich (links) ===== */
.project-poster {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: #222222;
}

.project-poster img {
    max-width: 100%;
    max-height: 80%; /* Begrenzt die Höhe, um Platz für Infos zu lassen */
    object-fit: contain;
    display: block;
    box-shadow: 0 0px 200px rgb(100, 100, 100);
}

/* ===== Infos-Bereich (rechts) ===== */
.project-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.project-info h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #000;
}

.project-info .project-year {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.project-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
    max-width: 600px;
}

.project-info .project-link {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 10px;
    text-decoration: none;
}

.project-info .project-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== Footer ===== */
footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

footer a {
    color: #666;
    text-decoration: none;
}

footer a:hover {
    color: #0073aa;
}

/* ===== Responsive Anpassungen ===== */
@media (max-width: 1024px) {
    .project-poster {
        flex: 0 0 35%;
    }
}

@media (max-width: 768px) {

    /* Hauptcontainer für das Karussell (mobil) */
    .carousel-container {
        margin-top: 50px; /* Höhe des Menüs */
        scroll-snap-type: y mandatory; /* Aktiviert das Einrasten beim Scrollen */
        overflow-y: scroll;
        height: calc(100vh - 50px); /* Vollbildhöhe minus Menühöhe */
    }

    /* Einzelnes Projekt (Vollbild, mobil) */
    .project-slide {
        display: flex;
        flex-direction: column; /* Poster über dem Text */
        height: calc(100vh - 50px); /* Höhe = Viewport minus Menü */
        min-height: calc(100vh - 50px); /* Mindesthöhe für Scroll-Snapping */
        scroll-snap-align: start; /* Rastet am oberen Rand ein */
        position: relative;
    }

    /* Poster-Bereich (mobil) */
    .project-poster {
        width: 100%; /* Volle Breite */
        height: 50vh; /* 50% der Viewport-Höhe */
        min-height: 200px; /* Mindesthöhe für kleine Bildschirme */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
        background: #333333; /* Leichter Hintergrund für Kontrast */
    }

    /* Poster-Bild (mobil) */
    .project-poster img {
        max-width: 100%;
        max-height: 100%; /* Volle Höhe des Poster-Bereichs */
        object-fit: contain; /* Bild wird komplett angezeigt */
        box-shadow: 0 0px 100px #9d9d9d; /* Schatten hinter dem Bild */
    }

    /* Infos-Bereich (mobil) */
    .project-info {
        flex: 1;
        padding: 20px;
        width: 100%; /* Volle Breite */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Text beginnt oben */
    }
    header {
        padding: 10px;
        gap: 10px;
    }

    header h1 {
        font-size: 1.01rem;
    }

    header nav ul {
        gap: 10px;
    }
    .project-info h2 {
        font-size: 1rem;
    }
}