/* 1. Reset & Scrollbar verstecken */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    height: 450vh; /* Genug Platz für die Animationen */
    background: rgb(233, 229, 229);
    font-family: 'Inter', sans-serif;
    color: #1d1d1f;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* 2. Navigation */
.project-nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.4);
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.project-nav button {
    background: none;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    transition: all 0.3s ease;
}

.project-nav button.active {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 3. 3D & Layout */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

main { position: relative; z-index: 1; }

section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.spacer { height: 80vh; }

/* 4. Texte */
h1 { font-size: 3.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }

.scroll-text {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.left { left: 8%; text-align: left; border-left: 3px solid #000; padding-left: 20px; }
.right { right: 8%; text-align: right; border-right: 3px solid #000; padding-right: 20px; }

.scroll-text h2 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 8px; }
.scroll-text p { font-size: 0.95rem; line-height: 1.6; color: #555; }

/* 5. Bild am Ende */
.image-section { z-index: 5; pointer-events: auto; }

#final-pcb {
    max-width: 34%;
    max-height: 40vh;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}