@import url("reset.css");
@import url("font.css");
@import url("accordion.css");
:root {
    --text: #185a9e;
    --primary: #185a9e;
    --primary-transparent: rgba(24, 90, 158, 0.9);
    --secondary: #f9a51f;
    --contrast: #fa9a00;
    --border-radius: 5px;
    --background: rgb(243, 243, 243);
    --highlight: #2279cf;
}

*{
    box-sizing: border-box;
}

html {
    background-color: rgb(230, 230, 230);
}

body {
    width: 100%;
    max-width: 1920px;
    background-color: #fff;
    margin: auto;
    overflow-x: hidden;
    font: 400 16px/160% 'Helvetica', sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    background: var(--background)
}

p, ul {
    margin-bottom: 16px;
}

a {
    text-decoration: none;    
	transition: 0.3s;
}

a:hover {
    opacity: 0.5;
}

.dsa-secure-plugin a:hover {
    opacity: 1;
}

nav {
    z-index: 999;
    position: fixed;
    top: 0;
    background-color: #fff;
    width: 100%;
    max-width: 1920px; 
    padding-bottom: 10px;
}

nav .logo {
    max-width: 300px;
}

nav .span {
    position: fixed;
    flex-direction: column;
    justify-content: space-between;
    display: none;
    height: 35px;
    width: 45px;
}

nav .span div {
    width: 100%;
    border-bottom: 5px solid var(--primary);
}

.dse{
    font-size: 70%;
    text-align: right;       
    background-color: var(--contrast);
    color: #fff;
    width: 100%;
    max-width: 1920px;
    padding: 5px 5%;
    text-transform: uppercase;
}

.button {
    background-color: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    text-decoration: none;
}

.desktop-nav {
    width: 100%;
    max-width: 510px;
    text-align: right;    
}

.desktop-nav a {
    padding-left: 20px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.logo-link{
    display: flex;
    align-items: center;
}

a.logo-link {
    color: var(--primary);
}

.logo-text{
    font-size: 14px;
    position: relative;
    left: 10px;
    top: 5px;
}

.logo-text b {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    background-color: var(--primary);
    background-color: var(--primary-transparent);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
	padding: 12px;
	text-decoration: none;
	font-size: 180%;
	color: #fff;
	display: block;
}

.overlay .closebtn {
    position: absolute;
    font-size: 60px;
}

.overlay .closebtn, nav .span {
    top: 80px;
    right: 5%;
}

.overlay a.closebtn {
    font-weight: 300;
}

.dse a {
    color: #fff;
}

.small-dialog {
    background: white;
    padding: 20px 30px;
    text-align: left;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    border-radius: var(--border-radius);
}

.small-dialog p:first-of-type{
    font-style: italic;
}

.small-dialog ul {
    margin-left: 20px;
}

.small-dialog ul li{
    list-style: square;
}

.small-dialog ul li b{
    font-weight: 700;
}

.my-mfp-zoom-in .zoom-anim-dialog {
    opacity: 0;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
}

.my-mfp-zoom-in.mfp-ready .zoom-anim-dialog {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.my-mfp-zoom-in.mfp-removing .zoom-anim-dialog {
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
    opacity: 0;
}

.my-mfp-zoom-in.mfp-bg {
    opacity: 0;
    -webkit-transition: opacity 0.3s ease-out;
    -moz-transition: opacity 0.3s ease-out;
    -o-transition: opacity 0.3s ease-out;
    transition: opacity 0.3s ease-out;
}

.my-mfp-zoom-in.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.my-mfp-zoom-in.mfp-removing.mfp-bg {
    opacity: 0;
}

.responsive-slides{
    padding: 0 20px;
}

.responsive-slides img{
    width: 100%;    
    border-radius: var(--border-radius);
}

.responsive-slides a {
    padding: 0 5px;
}

.responsive-slides .slick-prev {
    left: 0;
    z-index: 999;
}

.responsive-slides .slick-prev::before, 
.responsive-slides .slick-next::before {	
	opacity: 1;
	color: var(--text);
}

.responsive-slides .slick-next {
    right: 0;
}

article {
    width: 100%;
}

.container {
    padding: 0 5%;
}

article .container, footer .container {
    padding: 100px 5%;
}

header {
    position: relative;
    margin-top: 150px;
}

header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slogan {
    position: absolute;
    bottom: 50px;
    left: 5%;
    margin-right: 5%;
    padding: 30px 2.5%;
    background-color: var(--primary);
    border-radius: var(--border-radius);
}

h1 {
    font-size: 335%;
    font-weight: 600;
    line-height: 110%;
    text-transform: uppercase;
}

h1 small {
    display: block;
    font-size: 57%;
    line-height: 100%;
    color: var(--secondary);
    text-transform: uppercase;
}

header .slogan h1 {
    color: #fff;
}

h2 {
    font-size: 300%;
    line-height: 110%;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 30px;
}

h2 small {
    font-size: 57%;
    line-height: 100%;
    color: var(--secondary);
    text-transform: uppercase;
    display: block;
}

h3 {   
    font-size: 200%;
    line-height: 110%;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

h3 small {
    font-size: 57%;
    line-height: 100%;
    color: var(--secondary);
    text-transform: uppercase;
    display: block;
    margin-top: 10px;
}

/* SECTION 1*/

.section-1 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-1 h2,
.section-1 p {
    max-width: 1024px;
    text-align: center;
}

.parallax{
    background: url('../images/evo-tec-parallax.webp') no-repeat center/ cover;
    background-attachment: fixed;
}

.parallax img {
    width: 100%;
    max-width: 850px;
    margin: auto;
}

.parallax .container {
    padding: 50px 5%;
    display: flex;
    justify-content: center;
}

/* SECTION 2*/

.section-2 {
    background: url('../images/theme-images/background.svg')no-repeat center/ cover;
    background-color: var(--primary);
    color: #fff;
}

.section-2 h2 {
    color: #fff;
}

.section-2 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-2 h2,
.section-2 p {
    max-width: 1024px;
    text-align: center;
}

.leistungen {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 20px;
}

a.leistung-link, .leistung.cta {
    width: 33%;
    margin-bottom: 0.5%;
    transition: 0.8s;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.leistungen a:hover{
    opacity: 1;
}

.leistungen a:hover img{
    opacity: 0;
    transition: 0.8s;
}

.leistung {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.leistung img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.leistung h3 {
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;    
}

.leistung.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    color: #fff;
    padding: 20px;
}

.leistung.cta a {
    color: #fff;
    font-weight: 600;
    font-size: 180%;
}

.leistung.cta h3 {
    position: static;
    transform: unset;    
    margin-bottom: 10px;
}

.leistung {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    aspect-ratio: 3/2
}

.leistung-1 {
    background-image: url('../images/holzfeuerung.webp');
}

.leistung-2 {
    background-image: url('../images/waermepumpen-und-heiztechnik.webp');
}

.leistung-3 {
    background-image: url('../images/solarpannel.webp');
}

.leistung-4 {
    background-image: url('../images/speichertechnik-und-zubehoer.webp');
}

.leistung-5 {
    background-image: url('../images/heizungsoptimierung.webp');
}

.leistung-6 {
    background-image: url('../images/service-und-umsetzung.webp');
}

/* SECTION 3 */

.section-3 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-3 h2, .section-3 p{
    text-align: center;
    max-width: 1024px;
}

.responsive-slides{
    width: 100%;
}

/*Section-4*/

.section-4 {
    background: url('../images/theme-images/background.svg') no-repeat center /cover;
    background-color: #eeeeee;
}

.section-4 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-4 h2, .section-4 p{
    text-align: center;
    max-width: 1024px;
}

.kontaktformular {
    width: 100%;
    max-width: 1024px;
    height: 800px;
    margin: 30px auto 0;
}

/*Footer*/

footer {
    background: url('../images/theme-images/background.svg') no-repeat center /cover;
    background-color: var(--primary);
    color: #fff;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
}

footer .container .col-33{
    width: 33%;
}

footer .col-33 a {
    color: #fff;
    font-weight: 700;
}

.col-l {
    padding-right: 1%
}

.col-r {
    padding-left: 1%;
}

article p a, article ul li a {
    font-weight: 700;
}

#impressum article a{
    color: var(--primary);
    font-weight: 700;
}

#impressum article ul {
    text-align: center;
}

.sidenav{
    position: fixed;
    z-index: 9999;
    right: 10px;
    top: 21%;
    display: flex;
    flex-direction: column;
}

.sidenav img{
    width: 50px;
}

@media screen and (max-width: 1150px) {
    nav .span {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    a.leistung-link, .leistung.cta{
        width: 49.5%;
    }

    .leistung.cta{
        order: 9;
        padding: 5%;
    }

    header .slogan{
        position: static;
        margin-right: 0;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    h1 {
        font-size: 250%;
    }

    header h1 {
        text-align: center;
    }

    h2 {
        font-size: 200%;
    }

    article .container, footer .container {
        padding: 50px 5%;
    }

    footer h3 {
        font-size: 150%;
    }
}

@media screen and (max-width: 800px) {
    body {
        hyphens: auto;
    }

    .leistung h3, h3 {
        font-size: 150%;
    }

    .leistung.cta a{
        font-size: 120%;
    }    

    a.leistung-link, .leistung.cta{
        margin-bottom: 10px;        
    }

    footer .container .col-33 {
        width: 100%;
    }

    .sidenav {
        top: auto;
        bottom: 10px;
    }
}

@media screen and (max-width: 580px) {
    body {
        font-size: 14px;
    }

    nav .logo{
        max-width: 70px;
    }

    .logo-text {
        font-size: 11px;
    }

    .logo-text b {
        font-size: 16px;
    }

    .logo-text{
        line-height: 120%;
    }

    .overlay .closebtn, nav .span {
        top: 60px;
    }

    nav .span {
        height: 25px;
        width: 35px;
    }

    nav .span div {
        border-bottom: 4px solid var(--primary);
    }

    .leistung.cta{
        padding: 30px 5%;
    }

    header {
        margin-top: 105px;
    }

    a.leistung-link, .leistung.cta{
        width: 100%;     
    }
}

@media screen and (max-width: 400px) {
    .logo-text {
        font-size: 7px;
    }

    .logo-text b {
        font-size: 14px;
    }
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .overlay a {
        font-size: 20px
    }

    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}