:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --secondary-text: #6e6e73;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --loader-bar: #000000;
    --shadow: rgba(0, 0, 0, 0.08);
    --header-height: 60px;
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] {
    --bg-color: #050505;
    --text-color: #f5f5f7;
    --nav-bg: rgba(5, 5, 5, 0.8);
    --loader-bar: #ffffff;
    --shadow: rgba(0, 0, 0, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(0, 0, 0, 0.3);
}

* { 
    box-sizing: border-box; margin: 0; padding: 0; 
    user-select: none; -webkit-user-select: none;
}

html, body { 
    height: 100%; width: 100%;
    background-color: var(--bg-color); 
    font-family: 'Inter', sans-serif; color: var(--text-color);
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
}

header { 
    position: absolute; top: 0; width: 100%; height: var(--header-height); 
    background-color: var(--nav-bg); backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); display: flex; justify-content: center; 
    align-items: center; z-index: 1000; border-bottom: 1px solid var(--glass-border); 
}
.logo { 
    font-size: 13px; 
    font-weight: 700; 
    letter-spacing: 1.5px; 
    text-decoration: none; 
    color: inherit; 
    display: block;
}

#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color); display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 999999;
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
#preloader.reveal { transform: translateY(-100%); }
.loader-logo { font-size: 14px; font-weight: 500; letter-spacing: 3px; margin-bottom: 25px; text-transform: uppercase; }
.loader-bar-container { width: 180px; height: 2px; background: var(--secondary-text); opacity: 0.2; position: relative; }
.loader-bar { position: absolute; width: 0%; height: 100%; background: var(--loader-bar); transition: width 0.3s ease-out; }

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-title { 
    font-size: clamp(40px, 8vw, 80px); 
    font-weight: 700; 
    z-index: 10; 
    pointer-events: none;
    background: linear-gradient(180deg, var(--text-color) 20%, var(--secondary-text) 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    display: block;
}

.hero-previews-container { 
    width: 100%; overflow: hidden; position: relative; 
    display: flex; align-items: center;
    height: clamp(250px, 35vw, 450px);
    touch-action: pan-x;
}

.hero-previews { 
    display: flex; gap: 40px; width: max-content; 
    align-items: center; will-change: transform;
    position: relative;
    cursor: pointer; 
    padding: 40px 100px;
    pointer-events: auto;
}

.hero-previews img { 
    height: clamp(120px, 18vw, 240px); width: auto; 
    border-radius: 12px; box-shadow: 0 10px 30px var(--shadow);
    opacity: 0.45; 
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.6s ease-in-out;
    pointer-events: auto;
    cursor: pointer; 
    will-change: transform;
    margin: 0 5px;
}

/* Fokus-Zustand (Mitte) */
.hero-previews img.in-focus { 
    opacity: 1; 
    transform: scale(1.4); 
    z-index: 2; 
}

@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
    .hero-previews img:hover { 
        transform: scale(1.5) !important; 
        opacity: 1 !important; 
        z-index: 10 !important;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                    opacity 0.3s ease;
    }
}

#lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    z-index: 2000; display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.4s ease;
}
#lightbox.active { display: flex; opacity: 1; }

.glass-frame {
    padding: 15px; background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: scale(0.85); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 90%; max-height: 85%; display: flex;
    position: relative;
}
#lightbox.active .glass-frame { transform: scale(1); }

.lightbox-loader {
    position: absolute; display: none; justify-content: center; align-items: center;
    width: 100%; height: 100%; pointer-events: none;
}
.lightbox-loader.active { display: flex; }

.spinner {
    width: 50px; height: 50px; border: 3px solid var(--glass-border);
    border-top: 3px solid var(--text-color); border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#lightbox img { 
    max-width: 100%; max-height: 75vh; border-radius: 10px; 
    object-fit: contain; transition: opacity 0.5s ease;
}

footer { 
    width: 100%; padding: 20px 20px 30px;
    display: flex; flex-direction: column; align-items: center;
    color: var(--secondary-text); font-size: 11px; text-align: center;
    line-height: 1.6; background-color: var(--bg-color);
    z-index: 10;
}
footer p { max-width: 650px; margin-bottom: 8px; padding: 0 10px; }
@media (max-width: 600px) { footer p { font-size: 10px; line-height: 1.5; } }
footer a { color: inherit; text-decoration: none; font-weight: 600; pointer-events: auto; white-space: nowrap; }