/* Galerie - Komplett neu ohne Boxen */

/* Verhindert horizontales Scrollen */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Header Section */
.gallery-header {
    padding: 60px 40px;
    text-align: center;
    background: rgb(250, 243, 231);
    border-bottom: 3px solid rgb(191, 151, 97);
    width: 100%;
    box-sizing: border-box;
}

.gallery-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: rgb(191, 151, 97);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.gallery-header p {
    font-size: 20px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Kindergarten Section */
.kindergarten-section {
    background: rgb(250, 243, 231);
    padding: 80px 40px;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    color: rgb(191, 151, 97);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Kindergarten Gallery - Einfaches Grid OHNE Masonry */
.kindergarten-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    justify-items: start;
}

.kindergarten-gallery img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: rgb(250, 243, 231);
    display: block;
    margin: 0;
    padding: 0;
}

.kindergarten-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Other Photography Section */
.other-photography {
    background: rgb(250, 243, 231);
    padding: 80px 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.category-btn {
    background: transparent;
    border: 2px solid rgb(191, 151, 97);
    color: rgb(191, 151, 97);
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.category-btn:hover {
    background: rgb(191, 151, 97);
    color: rgb(250, 243, 231);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(191, 151, 97, 0.3);
}

.category-btn.active {
    background: rgb(191, 151, 97);
    color: rgb(250, 243, 231);
    box-shadow: 0 5px 15px rgba(191, 151, 97, 0.4);
}

/* Gallery Image Animation - Verbessert für ordentliche Ausrichtung */
.main-gallery img {
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.main-gallery img.hidden {
    display: none !important;
}

/* Main Gallery - Equal Grid - Ordentlich ausgerichtet */
.main-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    justify-items: start;
}

/* Gallery Images - Clean Style - Perfekt ausgerichtet */
.main-gallery img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: rgb(250, 243, 231);
    display: block;
    margin: 0;
    padding: 0;
}

.main-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgb(191, 151, 97), rgb(160, 120, 75));
    color: white;
    padding: 80px 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 200px;
}

.cta-btn.primary {
    background: #fff;
    color: rgb(191, 151, 97);
    border-color: #fff;
}

.cta-btn.primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Lightbox - Minimalistisch und sauber */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    padding: 80px 60px;
    box-sizing: border-box;
}

#lightbox-img {
    max-width: 85vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    z-index: 2001;
    font-family: 'Inter', sans-serif;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 40px 20px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 32px;
        width: 50px;
        height: 50px;
    }
    
    #lightbox-img {
        max-width: 90vw;
        max-height: 75vh;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        padding: 20px 10px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
        width: 45px;
        height: 45px;
    }
    
    #lightbox-img {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .lightbox-counter {
        bottom: 15px;
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Responsive Design für Galerie */
@media (max-width: 1400px) {
    .gallery-header {
        padding: 50px 30px;
    }
    
    .kindergarten-section,
    .other-photography,
    .cta-section {
        padding: 60px 30px;
    }
    
    .kindergarten-gallery {
        gap: 15px;
    }
    
    .kindergarten-gallery img {
        height: 220px;
    }
    
    .main-gallery {
        gap: 15px;
    }
    
    .main-gallery img {
        height: 200px;
    }
}

@media (max-width: 1200px) {
    .gallery-header h1 {
        font-size: 40px;
    }
    
    .section-title h2 {
        font-size: 36px;
    }
    
    .kindergarten-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .kindergarten-gallery img {
        height: 200px;
    }
    
    .main-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-header {
        padding: 40px 20px;
    }
    
    .gallery-header h1 {
        font-size: 32px;
    }
    
    .gallery-header p {
        font-size: 18px;
    }
    
    .kindergarten-section,
    .other-photography,
    .cta-section {
        padding: 50px 20px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .category-tabs {
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .kindergarten-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .kindergarten-gallery img {
        height: 180px;
    }
    
    .main-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .main-gallery img {
        height: 180px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .kindergarten-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .kindergarten-gallery img {
        height: 200px;
    }
    
    .main-gallery {
        grid-template-columns: 1fr;
    }
    
    .main-gallery img {
        height: 200px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}