:root {
    --trans-grey: #303e4771;
}

main {
    display: grid;
    padding-top: 5rem;
    object-position:center;
} 

main > h1 {  
    font-size: var(--xx-large);
    margin: auto; 
    margin-top: 7rem;
    color: var(--orange); 
}

main > h1 > grau {
 color: var(--grey);
}

main > text {
    font-size: var(--x-large);
    margin: auto; 
    margin-top: 1rem;
    color: var(--grey);
    margin-bottom: 2rem;
    text-align: center;
}

main > text > orange {
    color: var(--orange);
    font-weight: bold;
    font-size: var(--x-large);
}

.container > h3::after {
    content: "";
    width: 0;
    height: 3px;
    background: var(--orange);
    position: absolute;
    left:0;
    bottom: -10px;
    transition: 0.3s cubic-bezier(1,.05,.61,.99);
}
.container:hover > h3::after {
    width: 100%;
}

.little {
    font-size: var(--xx-small);
    text-align: justify;
    width: 90%;
    margin: 0 auto;
    hyphens: auto;
        
}
 
.imgcontainer{
    box-shadow: -5px 9px 32px 5px rgba(0,0,0,0.11);
    padding: 1rem;
    border-radius: 1rem;
    transition: 0.2s ease-in;
    position: relative;
    background-color: white;
    max-height: max-content;
}

.imgcontainer > img {
    margin-top: 20px;
    z-index: 1;
    width: 100%;
    max-height: 35%;
    background-color: white;
    
}
.imgcontainer > h3 {
    text-align: center;
    color: var(--orange);
    font-weight: 900;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: var(--subtitle);
    }
.imgcontainer > p {
        text-align: justify;
        font-size: var(--text-size);
        width: 90%;
        margin: 0 auto;
        hyphens: auto;
        padding-bottom: 1rem;
}

.imgcontainer:hover{
    scale: 1.03;
}

.img-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin: 1rem 5rem;
    padding-bottom: 1rem;
}
.img-container > img {
    box-shadow: -5px 9px 32px 5px rgba(0,0,0,0.11);
    border-radius: 1rem;
    transition: 0.2s ease-in;
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color:var(--bg);
}

.img-container > img:hover{
    scale: 1.03;
}

@media(max-width:1500px) {
       .img-container{
        grid-template-columns: 1fr 1fr;
    }
}



@media(max-width:1000px) {
    main > h1 {
        text-align: center;
        margin-top: 4rem;
    }
    
}

@media(max-width: 750px){
    .img-container {
        grid-template-columns: 1fr;
    }
    
    .imgcontainer:hover {
        height: max-content;
    }
    .imgcontainer > img{
        max-height: 90%;
    }
    
}
@media(max-width:400px){
    .img-container{
        margin: 1rem;
    }
}