@font-face {
    font-family: 'Microwaves';
    src: url('fonts/Microwaves.ttf') format('truetype');
}
@font-face {
    font-family: 'OatMeal';
    src: url('fonts/OatMeal.ttf') format('truetype');
}
@font-face {
    font-family: 'Orbitron';
    src: url('Orbitron Medium.otf') format('truetype');
}
@font-face {
    font-family: 'HIND';
    src: url('fonts/Hind-Bold.otf') format('truetype');
}
@font-face {
    font-family: 'Dieselpower';
    src: url('fonts/DieselpowerPersonalUse-axaY5.ttf') format('truetype');
}

/* Animation für verzögerte Anzeige der Modeling Bilder */
@keyframes fadeInModeling {
    0% {
        opacity: 0;
        transform: rotate(0deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: rotate(var(--rotation)) scale(1);
    }
}

.header {
    color: grey;
    background-color: white;
    border-bottom: 1px solid #333;
    font-family: 'Arial', 'Helvetica', 'sans-serif';
    font-size: 0.8em; 
    letter-spacing: 0.1em;
    justify-content: center;
    align-items: center;
    min-height: 3vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header a {
    text-decoration: none;
    color: grey;
    font-family: 'Microwaves', sans-serif;
    font-size: 2.2rem;
    transition: color 0.3s ease;
}

.header a:hover {
    color: black;
}

body {
    text-shadow: 0 0 3px white;
    font-family: 'orbitron', sans-serif;
    margin: 0;
    padding-top: 8vh;
    text-align: center;
}

h1 a{
    text-decoration: none;
    position: absolute;
    top: 2%;
    left: 2%;
    color: black;
    font-family: 'Microwaves', sans-serif;
    font-size: 9vw;
    margin: 0;
    padding: 1%;

}

h2 {
    font-family: 'Dieselpower', sans-serif;
    font-size: 2.5vw;
    color: black;
    position: relative;
    margin-top: 8%; /* Mehr Abstand zum Header */
    margin-bottom: 3%;
    margin-left: 3%;
    text-align: left;
}


.image {
    position: absolute;
    width: 15%;
    height: auto;
    border: none;
    border-radius: 5px;
    transition: transform 0.3s ease;
    cursor: pointer;
    object-fit: cover;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 3 Spalten */
    gap: 1%; /* Abstand zwischen Bildern */
    max-width: 85%;
    margin: 0 auto;
    justify-content: center;
}

.gallery-item {
    width: 100%; /* Füllt die Spalte */
    height: 100%; /* Einheitliche Höhe für alle Bilder */
    
    object-fit: cover; /* Schneidet Bilder passend zu */
    display: block; 
    transition: transform 0.3s ease;
    cursor: pointer;
    
}

.gallery-item:hover {
    transform: scale(1.02); /* Vergrößert das Bild wenn die Maus sich drüberbewegt */
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

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

.footer {
    color: grey;
    background-color: white;
    font-family: 'Arial', 'Helvetica', 'sans-serif';
    font-size: 0.6em;
    letter-spacing: 0.1em;
    justify-content: center;
    align-items: center;
    min-height: 5vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* Mobile-specific header sizing */
@media (max-width: 768px) {
    .header a {
        font-size: 1.7rem;
    }
}

@media (max-width: 600px) {
    .header a {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header a {
        font-size: 1.4rem;
    }
}

@media (max-width: 360px) {
    .header a {
        font-size: 1.2rem;
    }
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr); /* 2 Spalten auf Tablets */
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr); /* 1 Spalte auf Smartphones */
    }
}