@font-face{
    src:url("fonts/Roboto-Bold.ttf");
    font-family: roboto;
}
@font-face{
    src:url("fonts/Lora-Medium.ttf");
    font-family: lora;
}

:root{
    --main-col: rgb(185, 185, 185);
    --sec-col: rgb(1, 65, 134);
    --product-col: rgb(228, 228, 228);
    --element-col: rgb(178, 216, 218);
    --link-col: rgb(1, 65, 134);
}


html,body{
    min-height: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body{
    
    background-position: center center;
    background-image: url("images/bagger.png");
    background-size: auto 60%;
    background-repeat: no-repeat;
    background-color: var(--main-col);
}

.wrapper{
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
    "header"
    "inhalt"
    "footer";
    width: 100%;
    height: 100vh;
}

/*Formatierung*/

p{
    text-align: center;
    margin: 0;
}

.text{
    text-align: center;
    margin-top: 40%;
}

a, a:visited{
    color: #000;
    text-decoration: none;
    text-align: center
}


/*Head*/

.header{
    background-color: white;
    filter: drop-shadow(0px 10px 4px rgb(0, 0, 0));
    grid-area: header;
    width: 100%;
}

.menu{
    display: none;
}

.logo{
    width: auto;
    height: 15vh;
    background-image: url("images/logo_g.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto 15vh;
}


/* Inhalt */

li{
    margin-top: 1vh;
}

.Inhalt{
    grid-area: inhalt;
    overflow: scroll;
    overflow-x: hidden;
    display: block;
}

.Begruessung, .hello, .hello2{
    font-family: roboto;
    font-style: bold;
    text-align: left;
    margin: 1vh;
    line-height: 100%;
}

.Begruessung{
    padding-bottom: 3vh;
    padding-top: 1vh;
    font-size: 2rem;
}

.hello2{
    color: var(--link-col);
    text-decoration: underline;
}

.grid, .bau{
    display: grid;
    grid-template-rows:  auto;
    row-gap:10px ;
    padding: 3vh;
    place-items: center;
}

.grid{
    grid-template-columns: 16% 16% 16% 16% 16% 16%;
}

.bau {
    grid-template-columns: 20% 20% 20% 20% 20%;
}

.Ueberschrift{
    margin: 2vh;
    font-size: 2rem;
}

.Produkte, .Ueberschrift{
    font-family: roboto;
}

.Produkte{ 
    background-color: var(--product-col);
    border: black;
    border-radius: 5%;
    width: 10vw;
    height: 10vw;
}

.Produkte:hover{
    filter: drop-shadow(3px 5px 4px #000);
    background-color: white;
}

/*Produktseiten*/

.Maschinen{
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto;


    /* display: flex;
    flex-wrap: wrap; */
    padding:3vh;
    justify-content: flex-start;
    gap: 10px 10px;  
}

.Element{
    background-color: var(--element-col);
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    width: 45vw;
    display: flex;
    overflow: hidden;
    margin-bottom: 1vh;
}

img{
    margin: 0;
    margin-right: 0;
    margin-left: 0;
    object-fit: cover;
    max-width: 15rem;
    max-height: 15rem;
    min-width: 15vw;
    min-height: 15vw; 
    left: 0;
}

.kategorieInhalt{
    font-size: 1rem;
    margin-bottom: 2vh;
}

.Name{
    grid-area: titel;
    font-family: roboto;
    margin-top: 1rem;
}

.Daten{
    grid-area: inh;
    font-family: lora ;
}

.Name, .Daten{
    font-size: 1.2rem;
    margin-left: 1rem;
    margin-right: auto;
    max-width:max-content;
}

/*Footer*/

.footer{
    font-family: lora;
    grid-area: footer;
    width: 100vw;
    min-height: 15vh;
    background-color: white;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.493));
    display: block;
}

.foot{
    text-decoration: underline;
}

.Kontakt{
    grid-area: kontakt;
    margin-top: 1vh;
}

/* Mediaqueries */
@media(max-width:1500px){
    .Daten, .Name{
        font-size: 1rem;
    }
}

@media(max-width:1200px){
    img{
        max-width: 25vw;
        max-height: 25vw;
    }

    .Produkte{
        width: 12vw;
        height: 12vw;
    }
}

@media(max-width: 900px){
    .grid{
        grid-template-columns: 33% 33% 33%;
    }

    .bau{
        grid-template-columns: 50% 50%;
    }

    .Daten, .Name{
        font-size: 1rem;
    }

    .Produkte, .Ueberschrift{
        font-size: 1.5rem;
    }

    .Produkte{
        width: 25vw;
        height: 25vw;
    }

    .Element{
        flex-direction: column;
        margin-bottom: 10px;
        width: 35vw;
    }
    img{
        margin: 0;
        min-width: 30vw;
        min-height: 30vw;
        max-width: none;
        max-height: none;
    }

    .Maschinen{
        justify-content: center;
    }
}
 
@media (max-width: 660px){
    body{
        background-size: 100% auto;
    }
}

@media (max-width: 600px) {
    .grid{
        grid-template-columns: 50% 50%;
    }

    .header{
        display: grid;
        grid-template-columns: auto auto;
        grid-template-areas: "links rechts";
    }   

    .logo{
        background-image:url("images/logo_k.png");
        background-size: auto 50%;
        background-position: left center;
        margin-left: 5vw;
        grid-area: links;
    }

    .menu{
        display: flex;
        grid-area: rechts;
        background-image: url("images/menu.png");
        background-position: right center;
        background-repeat: no-repeat;
        background-size: auto 50%;
        margin-right: 5vw;
    }

    .Begruessung{
        font-size: 2rem;
    }
    
    .Ueberschrift, .Produkte{
        font-size: 1.5rem;
    }

    .Produkte{
        width: 40vw;
        height: 40vw;
    }

    .Maschinen{
        display: block;
    }

    .Element{
        margin: auto;
        margin-bottom: 10px;
        flex-direction: column;
        width: 70vw;
    }

    .Name, .Daten{
        font-size: 1rem;
        place-items: center;
        max-width: fit-content;  
    }

    .Daten{
        margin: auto;
    }

    li{
        text-align: left;
    }

}
@media(max-width:  400px){
    .Element{
        width: 80vw;
    }
}


