/* Kunst-spezifische Styles - Monochrom */

.kunst-main {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(220px, 28vw, 320px) clamp(30px, 5vw, 60px) clamp(80px, 10vw, 120px);
}

/* Content Sections mit semi-transparenten Overlays */
.content-section {
    margin-bottom: clamp(80px, 10vw, 120px);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }
.content-section:nth-child(5) { animation-delay: 0.5s; }
.content-section:nth-child(6) { animation-delay: 0.6s; }
.content-section:nth-child(7) { animation-delay: 0.7s; }
.content-section:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: clamp(40px, 5vw, 60px);
    position: relative;
    z-index: 5;
}

.content-section h2 {
    font-family: "Inter Tight", sans-serif;
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #ffffff;
    margin-bottom: clamp(24px, 3vw, 36px);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.content-section p {
    font-family: "Inter", sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.8;
    color: #ffffff;
    max-width: 900px;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.6);
}

.content-overlay:hover h2 {
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.6);
    transform: scale(1.02);
}

/* Gallery Section */
.gallery-section {
    margin: clamp(100px, 12vw, 150px) 0;
    position: relative;
}

.gallery-section .section-overlay {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    position: relative;
    z-index: 5;
}

.section-title {
    font-family: "Inter Tight", sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: clamp(40px, 6vw, 60px);
    text-align: center;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.archive-item.archive-hidden {
    display: none !important;
}

/* Main Works Grid - 6-8 große Werke (Masonry/Grid) */
.main-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(25px, 3.5vw, 40px);
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .main-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .main-works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .main-works-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.main-work-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.main-work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
    mix-blend-mode: screen;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-work-item:hover img {
    transform: scale(1.05);
    mix-blend-mode: normal;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    padding: clamp(20px, 3vw, 30px);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
}

.main-work-item:hover .work-overlay {
    transform: translateY(0);
    opacity: 1;
}

.work-title {
    font-family: "Inter Tight", sans-serif;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: clamp(6px, 0.8vw, 10px);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
}

.work-description {
    font-family: "Inter", sans-serif;
    font-size: clamp(13px, 1.5vw, 16px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.6);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.5);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 40px rgba(255, 255, 255, 0.2),
        0 0 80px rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%) contrast(1.1);
    background: transparent;
    mix-blend-mode: screen;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%) contrast(1.2);
    mix-blend-mode: normal;
}

/* Archive Section */
.archive-section {
    margin-top: clamp(100px, 12vw, 150px);
    padding-top: clamp(60px, 8vw, 100px);
    position: relative;
}

.archive-section .section-overlay {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: clamp(25px, 4vw, 40px);
}

.archive-item {
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.archive-item.archive-image,
.archive-item.archive-video {
    text-decoration: none;
}

.archive-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.5);
}

.archive-item:hover .archive-thumbnail {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.archive-thumbnail img,
.archive-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(30%) contrast(1.1);
    background: transparent;
    mix-blend-mode: screen;
    display: block;
}

.archive-thumbnail {
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(32px, 4vw, 48px);
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.archive-item:hover .play-icon {
    opacity: 1;
}

.archive-item:hover .archive-thumbnail img,
.archive-item:hover .archive-thumbnail video {
    transform: scale(1.1);
    filter: grayscale(0%) contrast(1.2);
    mix-blend-mode: normal;
}

.archive-title {
    font-family: "Inter", sans-serif;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 400;
    color: #f5f5f5;
    text-align: center;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.archive-item:hover .archive-title {
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(30px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.8),
        0 0 120px rgba(255, 255, 255, 0.15);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-close {
    top: 30px;
    right: 30px;
    font-size: 36px;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Header Scroll Fade */
.header {
    z-index: 1000 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: transparent;
    visibility: visible;
}

/* Responsive */
@media (max-width: 900px) {
    .main-works-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }

    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
    
    .content-overlay {
        padding: clamp(30px, 4vw, 50px) clamp(25px, 4vw, 40px);
    }
    
    .gallery-section .section-overlay {
        padding: 0;
    }
    
    .work-title {
        font-size: clamp(18px, 4vw, 24px);
        margin-bottom: 6px;
    }
    
    .work-description {
        font-size: clamp(12px, 2.5vw, 14px);
    }
    
    .work-overlay {
        padding: clamp(15px, 3vw, 25px);
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Mobile Styles für Back-Button */
@media (max-width: 600px) {
    .kunst-main {
        padding-top: clamp(40px, 6vw, 60px);
    }
}
