
:root{
    --grid-gap-size: 0px 50px;
    --section-margin: 50px 0px 0px 0px; /* SAME AS GRID GAP SIZE */
    --section-padding: 30px;
    --standart-padding: 50px;
}

root, body{
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #000;
    scroll-behavior: smooth;
}

html{
}

.wrapper{
    width: 100%;
    height: auto;
    margin: auto;
    padding: 0;
}

article{
    padding-top: 70px;
    padding-bottom: 70px;
}

h1{
    font-size: 35px;
    margin: 0;
    padding: 0;
    text-align: center;
}

h2{
    font-size: 25px;
    margin: 0;
    padding: 0;
}

p{
    line-height: 1.6em;
    font-size: 15px;
    margin: 0;
    padding: 0;
}

a{
    color: #000;
    line-height: 1.6em;
    font-size: 15px;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

a span{
    padding-right: 10px;
}

ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

ul span{
    color: rgb(249,237,49);
    padding-right: 10px;
}

.links a{
    font-weight: bold;
    margin-top: 30px;
    padding: 10px;
    border: 1px solid rgb(0,31,53);
    background-color: rgb(240,240,240);
}

.links a:hover{
    -webkit-box-shadow: 2px 2px 5px 0px rgba(160,160,160,0.75);
    -moz-box-shadow: 2px 2px 5px 0px rgba(160,160,160,0.75);
    box-shadow: 2px 2px 5px 0px rgba(160,160,160,0.75);
}

/* TOPBAR */
#topbar{
    width: 100%;
    height: 40px;
    background-color: rgb(0,31,53);
    z-index: 11;
    position: fixed;
}

#topbar_size{
    width: 80%;
    height: 100%;
    margin: auto;
    display: grid;
    grid-auto-columns: auto;
    grid-auto-rows: auto;
}

#topbar_size p{
    color: #fff;
    font-size: 13px;
    align-self: center;
    text-align: right;
}
/* END TOPBAR */
/* HEADER */
header{
    background-color: rgb(249,237,49);
    height: 120px;
    width: 100%;
    margin-top: 40px; /* 40px TOPBAR FIXED SIZE */
    z-index: 10;
    position: fixed;
}

#header_size{
    width: 80%;
    height: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: 150px auto;
    grid-auto-rows: auto;
}

#logo{
    align-self: center;
}

/* HEADER END */
/* SPACER */
#spacer{
    width: 100%;
    height: 500px;
    border-bottom: 0px solid #000;
    position: relative;
    padding-top: 160px; /* 40px TOPBAR 120px HEADER FIXED SIZE */
}

#spacer img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 80%;
}
/* SPACER END */
/* WELCOME */
#welcome{
    width: 100%;
    height: auto;
    margin: auto;
}

#welcome_size{
    width: 80%;
    height: auto;
    margin: auto;
}

#welcome h1{
    text-align: left;
}

#welcome p{
    text-align: justify;
}
/* END WELCOME */
/* NEWS */
#news{
    height: auto;  
    width: 100%;
    margin: auto;
    background-color: rgb(240,240,240);
    border-top: 1px solid rgb(230,230,230);
    border-bottom: 1px solid rgb(230,230,230);
}

#news section{
    align-self: center;
}

#news_size{
    width: 80%;
    height: 100%;
    margin: auto;
}

#aktuelles{
    display: grid;
    grid-gap: var(--grid-gap-size);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

#aktuelles section{
    justify-self: center;
    margin: var(--section-margin);
    min-width: 250px;
}
/* END NEWS */
/* PRODUCTS */
#product{
    width: 100%;
    height: auto;
    margin: auto;
}

#product h2{
    text-align: center;
    padding-bottom: 30px;
}

#product p{
    text-align: justify;
}

#product div{
    display: grid;
}

#product ul{
    padding-top: var(--standart-padding);
    padding-bottom: var(--standart-padding);
    justify-self: center;
}

#product_size{
    width: 80%;
    height: auto;
    margin: auto;
}

#products{
    display: grid;
    grid-gap: var(--grid-gap-size);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#products section{
    justify-self: center;
    background-color: rgb(240,240,240);
    border: 1px solid rgb(230,230,230);
    padding: var(--section-padding);
    margin: var(--section-margin);
}

#products .products_img{
    width: 100px;
    height: 100px;
    border-radius: 100px;
    border: 0px;
    margin: auto;
    margin-bottom: 50px;
}

#products .products_img img{
    width: 40px;
    height: auto;
    margin: auto;
}

#product_links{
    text-align: center;
    display: grid;
    grid-gap: var(--grid-gap-size);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto;
}

#products #prod_hel{
    background-color: rgb(139, 1, 1);
}

#products #prod_dk{
    background-color: rgb(249,237,49);
}

#products #prod_fg{
    background-color: rgb(4, 52, 143);
}

#products #prod_st{
    background-color: rgb(32, 32, 32);
}
/* END PRODUCTS */
/* HEIZMOBIL */
#heizmobil{
    width: 100%;
    height: auto;
    margin: auto;
    background-color: rgb(240,240,240);
    border-top: 1px solid rgb(230,230,230);
    border-bottom: 1px solid rgb(230,230,230);
}

#heizmobil p{
    text-align: center;
}

#heizmobil h2{
    text-align: center;
}

#heizmobil div{
    display: grid;
}

#heizmobil ul{
    padding-top: var(--standart-padding);
    padding-bottom: var(--standart-padding);
    justify-self: center;
}

#heizmobil_size{
    width: 80%;
    height: auto;
    margin: auto;
}

#heizmobile{
    display: grid;
    grid-gap: var(--grid-gap-size);
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

#heizmobile section{
    background-color: #fff;
    border: 1px solid rgb(230,230,230);
    padding: var(--section-padding);
    margin: var(--section-margin);
}

#heizmobil_links{
    text-align: center;
    display: grid;
    grid-gap: var(--grid-gap-size);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto;
}
/* END HEIZMOBIL */
/* TANKSTELLE */
#tankstelle{
    width: 100%;
    height: auto;
    margin: auto;
}

#tankstelle h2{
    text-align: center;
}

#tankstelle p{
    text-align: center;
}

#tankstelle_size{
    width: 80%;
    height: auto;
    margin: auto;
}

#tankstellen{
    display: grid;
    grid-gap: var(--grid-gap-size);
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

#tankstellen section{
    background-color: rgb(240,240,240);
    border: 1px solid rgb(230,230,230);
    padding: var(--section-padding);
    margin: var(--section-margin);
}

#tankstellen_links{
    text-align: center;
    display: grid;
    grid-gap: var(--grid-gap-size);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto;
}
/* END TANKSTELLE */
/* DOWNLOADS */
#download{
    height: auto;  
    width: 100%;
    margin: auto;
    background-color: rgb(240,240,240);
    border-top: 1px solid rgb(230,230,230);
    border-bottom: 1px solid rgb(230,230,230);
}

#download_size{
    width: 80%;
    height: 100%;
    margin: auto;
}

#downloads{
    padding-top: var(--standart-padding);
    display: grid;
    grid-gap: var(--grid-gap-size);
    grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
}

#downloads section{
}
/* END DOWNLOADS */
/* CONTACTS */
#contact{
    width: 100%;
    height: auto;
    margin: auto;
}

#contact_size{
    width: 80%;
    height: auto;
    margin: auto;
}

#contacts{
    display: grid;
    grid-gap: var(--grid-gap-size);
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    text-align: center;
}

#contacts section{
    border: 1px solid rgb(230,230,230);
    padding: var(--section-padding);
    margin: var(--section-margin);
}
/* END CONTACTS */
/* FOOTER */
footer{
    width: 100%;
    height: auto;
    background-color: rgb(0,31,53);
    color: #fff;
}

footer h1{
    text-align: left;
    font-size: 20px;
}

footer a{
    color: #fff;
}

#footer_size{
    width: 80%;
    height: 100%;
    margin: auto;
    padding: var(--section-padding);
    display: grid;
    grid-gap: var(--grid-gap-size);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

#footer_size ul{
    margin: 0;
    padding: 0;
    list-style: none;
}

footer ul a:hover{
    color: rgb(249,237,49);
}

#footer_size section{
    padding-top: var(--section-padding);
    align-self: center;
    justify-self: center;
}

/* END FOOTER */
/* NAVIGATION */
nav{
    align-self: center;
}

nav a{
    color: #000;
    display: inline-block;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    white-space: nowrap;
    padding: 10px;
    min-width: 180px;
    text-align: center;
}

nav a:last-child{
    padding-right: -50px;
}

nav a:hover{
    background-color: rgb(0,31,53);
    color: #fff;
}

nav ul{
    float: right;
}

nav ul li{
    display: inline-block;
}
/* END NAVIGATION */
/* NAVIGATION MOBILE */
#nav_mobile{
    display: none; /* SHOW STYLE_MOBILE.CSS */
}

#menuToggle{
    display: block;
    position: relative;
    float: right;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
}

#menuToggle input{
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    -webkit-touch-callout: none;
}

#menuToggle span{ /* BURGERMENU */
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: rgb(0,31,53);
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                opacity 0.55s ease;
}

#menuToggle span:first-child{
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2){
    transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span{
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #232323;
}

#menuToggle input:checked ~ span:nth-last-child(3){
    opacity: 0;
    transform-origin: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2){
    transform: rotate(-45deg) translate(0, -1px);
}

#menu{
    position: absolute;
    width: 150px;
    margin: 46px 0px 0px -130px;
    padding: 50px;
    padding-top: 50px;
    background: rgb(240,240,240);
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    /* to stop flickering of text in safari */
    transform-origin: 0% 0%;
    transform: translate(100%, 0);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li{
    padding: 10px;
    font-size: 22px;
}

#menuToggle input:checked ~ ul{
    transform: none;
}
/* END NAVIGATION MOBILE */
/* OVERLAY */
#overlay{
    position: fixed; /* Sit on top of the page content */
    width: auto; 
    height: auto; 
    top: 100;
    left: 100;
    right: 0;
    bottom: 0;
    margin: 50px;
    background-color: rgba(200,200,200,0.5); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
    display: grid;
}

#overlay a{
    font-size: 40px;
    text-align: center;
    opacity: 0.5;
    margin: auto;
    padding: 8px 30px;
    align-self: center;
}


/************
* IMPRESSUM *
*************/
#impressum main{
    margin: auto;
    padding-top: 160px;
    width: 80%;
}

#impressum main div{
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: justify;
}

#impressum h1{
    text-align: left;
    margin-bottom: 15px;
}

#impressum h2{
    font-size: 20px;
    margin-top: 70px;
    margin-bottom: 15px;
}

#impressum button{
    border: 5px solid rgb(0,31,53);
    background-color: transparent;
    padding: 20px;
    cursor: pointer;
    margin: auto;
    margin-top: 70px;
}

#impressum button a{
    color:  rgb(0,31,53);
    font-size: 20px;
    display: block;
}