* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #000000;
}

/* Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.page-title {
    background: linear-gradient(90deg, #666, #c40000);
    padding: 25px 20px;
    margin-bottom: 10px;
    text-align: center;
}

.page-title h1 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.page-title h3 {
    margin: 0;
    color: #fff;
    font-size: 0.8rem;
}

.uc {
    text-transform: uppercase;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    .page-title h1 {
        font-size: 1.5rem;
    }
}

/* Loader Overlay */
#loader {
    position: fixed;
    inset: 0;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #666;
    border-top-color: #c40000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loader {
    transition: opacity 0.3s ease;
}

.page-footer {
    padding: 25px 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
    color: #999;
    font-size: 0.6rem;
    font-weight: 600;
}

.morebox {
  text-align: center;
  background: linear-gradient(90deg,#c00,#999);
  color: #fff;
  text-decoration: none;
}

.morebox a {
  text-decoration: none;
  color: #999;
}
