:root {
    --trans-grey: #303e4771;
}

main {
    display: grid;
    padding-top: 5rem;
    object-position:center;
} 

main > h1 {  
    font-size: var(--xxx-large);
    margin: auto; 
    margin-top: 7rem;
    color: var(--orange);
    margin-bottom: 2rem;
}

main > h1 > grau {
 color: var(--grey);
}

main > text {
    font-size: var(--xx-large);
    margin: auto; 
    color: var(--grey);
    margin-bottom: 2rem;
    width: 90%;
    text-align: center;
}

main > text > orange {
    color: var(--orange);
    font-weight: bold;
    font-size: var(--xx-large);
}

main > .maincontainer > .bild-container {
    display: block;       
    margin-left: auto;    
    margin-right: auto;
    width: calc(100% - 1rem);
    position:relative;

    border: 0.5rem solid ; 
    border-radius: 1rem; 
    border-color: var(--grey);
    background-color: var(--grey); 
    justify-self: center;
    align-items: center;
    overflow: hidden;
    display: grid;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    
}




.container {
    padding: 2rem;
    font-size: var(--text-size);
    box-shadow: -5px 9px 32px 5px rgba(0,0,0,0.11);
    transition: all 0.3s ease-in;
    border-radius: 1rem;
    background-color: white;

}

.container:hover {
    scale: 1.05;
}

.container > p {
    font-size: var(--text-size);
    width: 90%;
    transition: all 0.3s ease-in;
    text-align:justify;
    hyphens: auto;
    padding-bottom: 1rem;
}

.container > h3 {
    font-size: var(--subtitle);
    width: 90%;
    font-weight: 900;
    color: var(--orange);
    text-align:center;
    margin-bottom: 1rem;
}

.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%;
}

.container > ul {
    margin-left: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: var(--text-size);
}

.maincontainer {
    display: grid;
    /*gap: 1rem;*/
    /*padding: 4rem;*/
    grid-template-columns: 1fr 1fr ;
    gap: 5rem;
    margin: 2rem 4rem;
    
}

.maincontainer > .bild-container > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

 



@media(max-width:1000px) {
    main > h1 {
        text-align: center;
        margin-top: 4rem;
    }
}
@media(max-width: 900px){
    .maincontainer {
        grid-template-columns: 1fr;
    }
}
@media(max-width:400px){
    .maincontainer{
        margin: 0.5rem;
    }
}