:root {
    --bg-color: #050505;
    --text-color: #f4f4f4;
    --accent-color: #ff3366;
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
@media (pointer: fine) { * { cursor: none; } }
html { scroll-behavior: initial; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.accent { color: var(--accent-color); }
.italic { font-style: italic; }

/* Background Noise */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9998; opacity: 0.04;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Dissolve_Noise_Texture.png');
    background-repeat: repeat; mix-blend-mode: overlay;
}

/* Custom Cursor */
.cursor {
    position: fixed; top: 0; left: 0; width: 16px; height: 16px;
    background-color: var(--accent-color); border-radius: 50%;
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
    mix-blend-mode: difference; transition: width 0.2s ease, height 0.2s ease;
    will-change: transform, width, height;
}
@media (pointer: coarse) { .cursor { display: none; } }

/* Navigation */
.project-nav {
    position: fixed; top: 2rem; left: 5vw; z-index: 100;
}
.back-link {
    color: #fff; text-decoration: none; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 0.5rem; transition: color 0.3s;
}
.back-link:hover { color: var(--accent-color); }
.back-link .arrow { transition: transform 0.3s; }
.back-link:hover .arrow { transform: translateX(-5px); }

/* Header */
.visual-header {
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 5vw 2rem;
}
.visual-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 15vw, 8rem);
    line-height: 0.8;
    margin-bottom: 3rem;
}
.visual-header p {
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Gallery Section */
.gallery-section {
    padding: 5vw;
    display: flex;
    flex-direction: column;
    gap: 15vh; /* Viel Abstand zwischen den Bildern für Eleganz */
    margin-bottom: 15vh;
}

.gallery-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Bilder stylen - keine Rahmen, reiner Fokus auf das Mockup */
.gallery-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px; /* Leichte Rundung passt zu den iOS Mockups */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); /* Tiefe */
    will-change: transform, opacity;
}

/* Größen und Positionen */
.gallery-item.massive img { max-width: 900px; width: 100%; }
.gallery-item.large img { max-width: 500px; width: 100%; }
.gallery-item.left { justify-content: flex-start; }
.gallery-item.right { justify-content: flex-end; }

/* Grid für nebeneinanderliegende Screens */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid .gallery-item img {
    max-width: 400px; /* Mobile Screens nebeneinander nicht zu riesig machen */
}

/* Asymmetrie */
.offset {
    margin-top: 15vh;
}

/* Footer */
.project-footer {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.huge-text {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
}
.next-title-link {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}
.next-title-link:hover { color: var(--accent-color); }

/* Mobile */
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 10vh; }
    .gallery-item.right.offset { margin-top: 0; justify-content: flex-start; }
    .gallery-item.left, .gallery-item.right { justify-content: center; }
}