/* ============================================
   MINIMAL DESIGN SYSTEM - RICHARD SCHNELL
   ============================================ */

:root {
    /* Colors */
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #ff6b35;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-light: #999999;
    --background: #ffffff;
    --background-dark: #000000;
    --border-color: #e5e5e5;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Crimson Text', serif;
    
    /* Spacing */
    --section-padding: 8rem;
    --container-padding: 2rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
    
    /* Curves */
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 16px;
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
    cursor: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease;
    mix-blend-mode: difference;
}

/* Loading screen styles removed (no longer used) */

/* ============================================
   SIDE NAVIGATION
   ============================================ */

.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    z-index: 1000;
    transition: all var(--transition-medium);
}

.nav-brand {
    margin-bottom: 4rem;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Remove default link decoration for brand link (RS) */
.brand-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}
.brand-link:hover {
    text-decoration: none;
}

/* Sidebar hover menu for in-page gallery navigation */
.nav-label.nav-hover {
    position: relative;
}

/* Verbesserte Hover-Effekte für den Trigger */
.nav-hover-trigger {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
}

.nav-hover-trigger:hover {
    color: var(--accent-color);
    transform: translateX(2px);
}

/* Komplett neues Dropdown-Design */
.nav-hover-menu {
    position: absolute;
    left: calc(100% + 20px);
    top: -8px;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.98) 0%, 
                rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    color: var(--text-primary);
    padding: 1.5rem;
    border-radius: 20px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    
    /* Neumorphism Shadows */
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.08),
        0 15px 35px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 3px rgba(255, 107, 53, 0.1);
    
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Initial state */
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px) translateY(-12px) scale(0.9) rotateY(-8deg);
    transform-style: preserve-3d;
    perspective: 1000px;
    
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 15;
}

.nav-hover-item {
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    transform: translateX(-8px);
    opacity: 0;
    
    /* Gestaffelte Animation für Items */
    animation: slideInItem 0.5s ease-out forwards;
}

.nav-hover-item:hover {
    background: linear-gradient(135deg, 
                var(--accent-color) 0%, 
                #ff8c42 100%);
    color: white;
    transform: translateX(4px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.25),
        0 4px 12px rgba(255, 107, 53, 0.15);
}

/* Gestaffelte Animationen für Items */
.nav-hover-item:nth-child(1) { animation-delay: 0.1s; }
.nav-hover-item:nth-child(2) { animation-delay: 0.15s; }
.nav-hover-item:nth-child(3) { animation-delay: 0.2s; }
.nav-hover-item:nth-child(4) { animation-delay: 0.25s; }

@keyframes slideInItem {
    from {
        opacity: 0;
        transform: translateX(-12px) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.nav-hover-trigger:hover + .nav-hover-menu,
.nav-hover-trigger:focus + .nav-hover-menu,
.nav-hover-menu:hover,
.nav-label.nav-hover:focus-within .nav-hover-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0) scale(1) rotateY(0deg);
}

/* Reset Item Animations beim Hover */
.nav-hover-trigger:hover + .nav-hover-menu .nav-hover-item,
.nav-hover-menu:hover .nav-hover-item {
    animation: slideInItem 0.4s ease-out forwards;
}

/* Zusätzliche Micro-Interactions */
.nav-hover-menu:hover {
    transform: translateX(0) translateY(0) scale(1.02) rotateY(0deg);
}

/* Subtiler Glow-Effekt beim Hover */
.nav-label.nav-hover:hover .nav-hover-trigger {
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

/* Smooth exit animation */
.nav-hover-menu {
    transition-delay: 0s;
}

.nav-hover-menu:not(:hover) {
    transition-delay: 0.2s;
}

.brand-line {
    width: 1px;
    height: 40px;
    background: var(--text-primary);
    margin: 1rem auto 0;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-link {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    background: var(--text-primary);
    color: var(--background);
    border-color: var(--text-primary);
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    left: 60px;
    background: var(--text-primary);
    color: var(--background);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.nav-link:hover::before {
    opacity: 1;
    visibility: visible;
}

.nav-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    transition: all var(--transition-fast);
}

.social-dot.instagram:hover {
    background: #e4405f;
}

.social-dot.youtube:hover {
    background: #ff0000;
}

.nav-footer {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.copyright {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* ============================================
   HERO READABILITY IMPROVEMENTS
   Adds a subtle dark overlay and stronger text styles so
   headings remain readable on colorful, changing background images
   ============================================ */

.hero-section,
.portfolio-hero {
    position: relative;
    color: #fff; /* base text color for hero */
}

/* Removed dark overlay to prevent flicker & keep raw image colors */
.hero-section::before,
.portfolio-hero::before { content:none; }

.hero-section .hero-content,
.portfolio-hero .hero-content {
    position: relative;
    z-index: 3; /* place content above overlay */
}

.hero-title,
.title-line {
    color: #ffffff;
    text-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 1px 1px rgba(0,0,0,0.35);
}

.hero-subtitle .subtitle-text,
.hero-description,
.hero-quick-links .quick-link {
    color: rgba(255,255,255,0.95);
    text-shadow: 0 3px 8px rgba(0,0,0,0.45);
}

/* ensure CTAs remain visible */
.cta-link,
.quick-link {
    z-index: 2;
}

/* Slightly reduce overlay on very small screens to keep contrast natural */
@media (max-width: 600px) {
    .hero-section::before,
    .portfolio-hero::before {
        background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35));
    }
}

/* ============================================
   MENU TOGGLE (MOBILE)
   ============================================ */

.menu-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-line {
    width: 100%;
    height: 1px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-left: 80px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-bg {
    display: none;
}

.bg-image {
    display: none;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--secondary-color);
    padding: 0 var(--container-padding);
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Hero heading readability background */
.hero-heading-bg .title-line { display:block; }

/* Uniform hero content stacking */
.hero-content { z-index:2; position:relative; }

/* Logo glass background for Index hero (restored) */
.hero-logo-bg {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    /* circular container — size determined by its contents */
    max-width: 200px;
    /* remove fixed width/height so container wraps the image */
    border-radius: 50%;
    padding: 0.35rem;
    box-sizing: border-box;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    top:-18px;
}

@media (max-width:900px){ .hero-logo-bg { padding: .35rem; } }
@media (max-width:700px){ .hero-logo-bg { padding: .3rem; } }

/* Ensure the logo image fits inside the circular pane and is not clipped by the border-radius */
#home.hero-section .hero-logo .hero-logo-bg img {
    max-width: 100%; /* keep the visible logo size steady */
    width: 100%;
    top: 0px;
    height: auto;
    display: block;
    position: relative;
    object-fit: contain;
    transform: translateZ(0);
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    }


/* Uniform hero glass overlay (restored) */
.hero-glass {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
    backdrop-filter:blur(3px) saturate(140%);
    -webkit-backdrop-filter:blur(3px) saturate(140%);
    z-index:1;
    pointer-events:none;
    transition:opacity .6s ease;
}
@media (max-width:700px){ .hero-glass { background:rgba(0,0,0,0.55); } }

/* Title lines: remove CSS-driven slide animation (handled by GSAP) to avoid double-anim flicker */
.title-line {
    display: block;
    transform: none;
    animation: none;
}

/* Mobile: make side-nav scrollable if shown on small screens */
@media (max-width:700px){
    .side-nav {
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1250;
        padding-bottom: 2rem;
    }

    .side-nav .nav-hover-menu {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Touch-Geräte: Dropdown über Position und z-index optimieren */
    .nav-label.nav-hover {
        position: relative;
        z-index: 20;
    }
    
    .nav-hover-menu {
        z-index: 25;
        /* Bessere Positionierung für Touch */
        left: calc(100% + 15px);
        min-width: 180px;
    }
}

/* Removed nth-child animation delay (handled by GSAP stagger) */

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.subtitle-text {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.subtitle-line {
    flex-grow: 1;
    height: 1px;
    background: var(--secondary-color);
    opacity: 0.3;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.hero-scroll {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.hero-section .hero-scroll .scroll-text,
.portfolio-hero .hero-scroll .scroll-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color) !important;
    text-shadow: 0 4px 12px rgba(0,0,0,0.45);
    z-index: 5;
    position: relative;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--secondary-color);
    opacity: 0.5;
    animation: scrollLine 2s ease-in-out infinite;
}

.hero-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 6rem;
    font-weight: 200;
    color: rgba(255,255,255,0.18);
    line-height: 1;
    z-index: 4; /* ensure the number stays above overlays */
}

/* Inline hero nav (visible on Index) */
/* Smooth scrolling for anchor links */
html { scroll-behavior: smooth; }

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* ============================================
   SECTIONS
   ============================================ */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-padding) var(--container-padding);
}

.section-header {
    position: relative;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 200;
    margin-bottom: 1rem;
}

.section-number {
    position: absolute;
    top: -1rem;
    right: 0;
    font-size: 8rem;
    font-weight: 200;
    color: rgba(0,0,0,0.05);
    line-height: 1;
    user-select: none;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background: var(--background);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

/* Background Art Elements */
.section-bg-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.art-line {
    position: absolute;
    color: var(--accent-color);
    opacity: 0;
    animation: drawLine 3s ease-in-out infinite alternate;
}

.art-line-1 {
    top: 10%;
    left: -10%;
    width: 60%;
    height: 20%;
    animation-delay: 0s;
    transform: rotate(-5deg);
}

.art-line-2 {
    top: 40%;
    right: -5%;
    width: 40%;
    height: 15%;
    animation-delay: 1s;
    transform: rotate(8deg);
}

.art-line-3 {
    bottom: 20%;
    left: 10%;
    width: 70%;
    height: 18%;
    animation-delay: 2s;
    transform: rotate(-3deg);
}

.art-curve {
    position: absolute;
    color: var(--text-light);
    opacity: 0;
    animation: floatCurve 4s ease-in-out infinite;
}

.art-curve-1 {
    top: 15%;
    right: 15%;
    width: 120px;
    height: 120px;
    animation-delay: 0.5s;
}

.art-curve-2 {
    bottom: 30%;
    right: 25%;
    width: 100px;
    height: 100px;
    animation-delay: 1.5s;
}

/* Paint Splash Effects */
.paint-splash {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    opacity: 0;
    animation: paintSplash 5s ease-in-out infinite;
}

.paint-splash-1 {
    top: 25%;
    left: 20%;
    width: 30px;
    height: 30px;
    animation-delay: 0.8s;
    filter: blur(1px);
}

.paint-splash-2 {
    bottom: 35%;
    left: 15%;
    width: 20px;
    height: 20px;
    animation-delay: 2.2s;
    filter: blur(2px);
}

.paint-splash-3 {
    top: 60%;
    right: 30%;
    width: 25px;
    height: 25px;
    animation-delay: 3.5s;
    filter: blur(1.5px);
}

/* Animations */
@keyframes drawLine {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
        filter: blur(2px);
    }
    50% {
        opacity: 0.15;
        filter: blur(0px);
    }
    100% {
        opacity: 0.08;
        transform: translateY(-10px) scale(1.1);
        filter: blur(1px);
    }
}

@keyframes floatCurve {
    0%, 100% {
        opacity: 0.06;
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.12;
        transform: translateY(-15px) rotate(5deg) scale(1.05);
    }
}

@keyframes paintSplash {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    25% {
        opacity: 0.1;
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        opacity: 0.15;
        transform: scale(1) rotate(180deg);
    }
    75% {
        opacity: 0.08;
        transform: scale(1.1) rotate(270deg);
    }
}

/* Section Content with higher z-index */
.about-section .section-container {
    position: relative;
    z-index: 2;
}

/* Responsive adjustments for art elements */
@media (max-width: 1024px) {
    .art-line-1 {
        width: 70%;
        left: -15%;
    }
    
    .art-line-2 {
        width: 50%;
        right: -10%;
    }
    
    .art-line-3 {
        width: 80%;
        left: 5%;
    }
    
    .art-curve-1,
    .art-curve-2 {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .section-bg-art {
        opacity: 0.7;
    }
    
    .art-line {
        animation-duration: 4s;
    }
    
    .paint-splash {
        animation-duration: 6s;
    }
    
    .paint-splash-1,
    .paint-splash-2,
    .paint-splash-3 {
        width: 15px;
        height: 15px;
    }
}

/* Hover effect on section */
.about-section:hover .section-bg-art {
    animation-play-state: paused;
}

.about-section:hover .art-line {
    opacity: 0.2 !important;
}

.about-section:hover .art-curve {
    opacity: 0.15 !important;
}

.about-section:hover .paint-splash {
    opacity: 0.2 !important;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.text-block {
    margin-bottom: 3rem;
}

.text-block h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.text-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    filter: none;
    transition: filter var(--transition-medium);
}

.image-wrapper:hover img {
    filter: none;
}

.image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--accent-color);
    pointer-events: none;
    transition: all var(--transition-medium);
}

.image-wrapper:hover .image-frame {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

/* ============================================
   WORKS SECTION
   ============================================ */

.works-section {
    background: #fafafa;
}

.works-filter {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
    padding: 0.5rem 0;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width var(--transition-fast);
}

.filter-btn.active::after,
.filter-btn:hover::after {
    width: 100%;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.work-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-medium);
}

.work-item:hover {
    transform: translateY(-10px);
}

.work-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transition: all var(--transition-medium);
}

.work-item:hover .work-image img {
    filter: none;
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-info {
    text-align: center;
    color: var(--secondary-color);
}

.work-info h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.work-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
}

.play-icon {
    margin-top: 1rem;
    font-size: 2rem;
    color: var(--accent-color);
}

.works-cta {
    text-align: center;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 400;
    transition: all var(--transition-fast);
}

.cta-link:hover {
    color: var(--accent-color);
}

.cta-arrow {
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.cta-link:hover .cta-arrow {
    transform: translateX(10px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    background: #fafafa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-text h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-field {
    position: relative;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 1rem 0 0.5rem 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.form-field label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-field input:focus + label,
.form-field textarea:focus + label,
.form-field input:valid + label,
.form-field textarea:valid + label {
    top: 0;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    position: relative;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    cursor: pointer;
    overflow: hidden;
    transition: color var(--transition-fast);
    align-self: flex-start;
}

.submit-btn:hover {
    color: var(--secondary-color);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    transition: left var(--transition-medium);
    z-index: -1;
}

.submit-btn:hover .btn-bg {
    left: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--text-primary);
    color: var(--secondary-color);
    padding: 2rem 0;
    margin-left: -80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    width: 95vw;
    height: 95vh;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox.active .lightbox-container {
    transform: scale(1);
}

@media (min-width: 768px) {
    .lightbox-container {
        flex-direction: row;
        width: 90vw;
        height: 85vh;
        max-width: 1400px;
        max-height: 900px;
    }
}

@media (max-width: 767px) {
    .lightbox-container {
        width: 95vw;
        height: 90vh;
        max-width: none;
        max-height: none;
    }
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    color: white;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: background 0.3s ease;
}

.lightbox-close span:first-child {
    transform: rotate(45deg);
}

.lightbox-close span:last-child {
    transform: rotate(-45deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.lightbox-nav:hover {
    background: var(--accent-color);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.lightbox-nav:disabled:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .lightbox-content {
        flex-direction: row;
    }
}

.lightbox-image-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
    width: calc(100% - 320px);
    min-height: 100%;
}

@media (max-width: 1024px) {
    .lightbox-image-container {
        width: calc(100% - 280px);
    }
}

@media (max-width: 767px) {
    .lightbox-image-container {
        width: 100%;
        min-height: 60%;
        max-height: 70%;
        flex: 1;
    }
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.lightbox-image-container img.loaded {
    opacity: 1;
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox-loader.hidden {
    opacity: 0;
}

.loader-ring {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lightbox-info {
    padding: 2rem;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    position: relative;
}

@media (max-width: 1024px) {
    .lightbox-info {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
    }
}

@media (max-width: 767px) {
    .lightbox-info {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: 30%;
        max-height: 40%;
        padding: 1.5rem;
        flex-shrink: 1;
    }
}

.lightbox-header h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.lightbox-category {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lightbox-counter {
    margin-top: 2rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

.lightbox-counter span {
    font-weight: 500;
}

.lightbox-counter #lightbox-current {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
}

.counter-separator {
    margin: 0 0.5rem;
}

/* Keyboard Navigation Hints */
.lightbox-keyboard-hint {
    margin-top: auto;
    padding-top: 2rem;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.7;
    text-align: center;
    line-height: 1.4;
}

.lightbox-keyboard-hint .mobile-hint {
    display: none;
}

@media (max-width: 767px) {
    .lightbox-keyboard-hint {
        padding-top: 1rem;
        font-size: 0.7rem;
    }
    
    .lightbox-keyboard-hint .desktop-hint {
        display: none;
    }
    
    .lightbox-keyboard-hint .mobile-hint {
        display: inline;
    }
}

/* Touch/Swipe Support */
.lightbox-image-container {
    touch-action: pan-y pinch-zoom;
}

/* Animation for image change */
.lightbox-image-container.changing img {
    opacity: 0;
    transform: scale(0.95);
}

.lightbox-image-container img {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    
    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-close span {
        width: 16px;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
}

/* Hide navigation on very small screens */
@media (max-width: 480px) {
    .lightbox-nav {
        display: none;
    }
}

/* ============================================
   PRIVACY BANNER
   ============================================ */

/* =========================
   DSGVO-konformer Privacy Banner
   ========================= */

.user-preferences {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-primary);
    color: var(--secondary-color);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.user-preferences:not(.hidden) {
    transform: translateY(0);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem var(--container-padding);
}

.privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.privacy-close {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.privacy-close:hover {
    opacity: 1;
}

.privacy-body {
    margin-bottom: 1.5rem;
}

.privacy-body p {
    margin-bottom: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

.privacy-categories {
    margin: 1.5rem 0;
}

.privacy-category {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.category-header input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.1rem;
    transform: scale(1.2);
    accent-color: var(--accent-color);
    cursor: pointer;
}

.category-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.category-header label {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-status {
    font-size: 0.8rem;
    opacity: 0.6;
    font-weight: normal;
}

.category-description {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
    padding-left: 2rem;
    line-height: 1.4;
}

.privacy-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.privacy-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 4px;
    min-width: 120px;
}

.privacy-btn.accept-all {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.privacy-btn.accept-all:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

.privacy-btn.accept-selected {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.privacy-btn.accept-selected:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.privacy-btn.decline-all:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-1px);
}

.privacy-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.privacy-footer p {
    margin: 0.5rem 0;
    opacity: 0.7;
}

.privacy-footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.privacy-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.privacy-info {
    font-style: italic;
    font-size: 0.8rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .privacy-content {
        padding: 1rem;
    }
    
    .privacy-header h3 {
        font-size: 1.1rem;
    }
    
    .privacy-actions {
        flex-direction: column;
    }
    
    .privacy-btn {
        width: 100%;
        min-width: auto;
    }
    
    .category-description {
        padding-left: 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .privacy-banner {
        max-height: 95vh;
    }
    
    .privacy-content {
        padding: 0.75rem;
    }
    
    .privacy-category {
        padding: 0.75rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --section-padding: 6rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats {
        gap: 2rem;
    }
    
    .works-filter {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    
    .side-nav {
        transform: translateX(-100%);
        width: 250px;
        padding: 2rem;
    }
    
    .side-nav.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-number {
        display: none;
    }
    
    .section-number {
        font-size: 4rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer {
        margin-left: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .privacy-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Tablet Support - Sidebar navigation for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .side-nav {
        transform: translateX(-100%);
        width: 280px;
        padding: 2rem;
        background: var(--background);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .side-nav.active {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    /* Ensure nav content is visible */
    .nav-brand,
    .nav-menu,
    .nav-social {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-hover-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        padding: 1rem 0;
    }
}
