/* Grundlayout */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f5f5;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}


/* Hauptbereich */

.container {
    width: min(1400px, 92%);
    margin: 0 auto;
    padding: 40px 0 60px;
}


/* Einleitung */

.intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.intro h1 {
    margin: 0 0 15px;
    font-size: 2.2rem;
}

.intro p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}


/* Galerie */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


/* Einzelnes Bild */

.gallery-item {
    margin: 0;
    overflow: hidden;
    background: #ddd;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    border-radius: 6px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-item:hover img {
    transform: scale(1.04);
}


/* Ladeanzeige */

.load-more-trigger {
    padding: 40px 0;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

.load-more-trigger.hidden {
    display: none;
}


/* -----------------------------------
   Lightbox / Grossansicht
   ----------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.9);

    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;

    object-fit: contain;

    border-radius: 4px;
}


/* Schliessen */

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;

    border: 0;
    background: none;

    color: white;
    font-size: 45px;
    line-height: 1;

    cursor: pointer;
}


/* Navigation */

.lightbox-nav {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: none;

    color: white;
    font-size: 50px;

    cursor: pointer;

    padding: 20px;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
    opacity: 0.7;
}


/* -----------------------------------
   Tablet
   ----------------------------------- */

@media (max-width: 1000px) {

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* -----------------------------------
   Smartphone
   ----------------------------------- */

@media (max-width: 700px) {

    .container {
        width: 94%;
        padding-top: 25px;
    }

    .intro h1 {
        font-size: 1.8rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        border-radius: 4px;
    }

    .lightbox-nav {
        font-size: 35px;
        padding: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }

}