* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: black;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    background: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 0 20px;
}

.header {
    text-align: center;
    padding: 30px 0 20px 0;
}

.header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
}

.header p {
    color: #aaa;
    font-size: 1rem;
    margin-top: 8px;
}

/* Galerie-Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    padding: 20px 10px 30px 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Navigation */
.navContainer {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 30px 0;
    border-top: 1px solid #333;
    margin-top: 10px;
}

.impress a {
    padding: 10px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
    border-radius: 4px;
}

.impress a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.footer {
    height: 20px;
}

/* Lightbox (Overlay für vergrößerte Bilder) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
    color: #ddd;
    font-size: 1.1rem;
    margin-top: 18px;
    text-align: center;
    max-width: 80%;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
    line-height: 1;
}

.close-lightbox:hover {
    color: #ff4444;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    padding: 20px 15px;
    user-select: none;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.lightbox-nav:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* "Mehr laden"-Button */
.load-more-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 10px 0 20px 0;
}

.load-more-btn:hover {
    background: #555;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
        padding: 10px 5px 20px 5px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 70vh;
    }

    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    .lightbox-nav {
        font-size: 30px;
        padding: 10px 10px;
    }

    .prev {
        left: 5px;
    }
    .next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .impress a {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}