/*allgemein*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#heading{
    float: left;
    margin-top: 10vh;
    width: 90%;
    margin-left: 5%;
    margin-bottom: 10px;
}

#subheading{
    float: left;
    width: 90%;
    margin-left: 5%;
    margin-top: 15px;
    margin-bottom: 10px;
}

.heroSection
{
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 50px 5%;
}

.marginTop{
    margin-top: 50px;
}

header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Dies sorgt dafür, dass die Bilder die Zellen gleichmäßig ausfüllen */
}

/*PC*/

@media only screen and (min-width: 1001px){
    #heading{
        margin-top: 15vh;
        margin-bottom: 5vh;
    }
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Hier die gleiche Regel für beide Galerien */
    }
    .gallery img {
        max-height: 400px;
    }
}

/*mobile */

@media only screen and (max-width: 1000px){
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auch hier sicherstellen, dass es die gleiche Regel gibt */
    }
}