@import url("reset.css");
:root {
    --rot: #c90516;    
    --blau: #918e8e;    
    --text: #aktuelles-und-infos13131;    
    --grau: #f2f2f2;
}

/* montserrat-300 - latin */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    src: url('font/montserrat-v18-latin-300.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('font/montserrat-v18-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('font/montserrat-v18-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
         url('font/montserrat-v18-latin-300.woff') format('woff'), /* Modern Browsers */
         url('font/montserrat-v18-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
         url('font/montserrat-v18-latin-300.svg#Montserrat') format('svg'); /* Legacy iOS */
  }
  
  /* montserrat-300italic - latin */
  @font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 300;
    src: url('font/montserrat-v18-latin-300italic.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('font/montserrat-v18-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('font/montserrat-v18-latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */
         url('font/montserrat-v18-latin-300italic.woff') format('woff'), /* Modern Browsers */
         url('font/montserrat-v18-latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */
         url('font/montserrat-v18-latin-300italic.svg#Montserrat') format('svg'); /* Legacy iOS */
  }
  
  

/* electrolize-regular - latin */
@font-face {
    font-family: 'Electrolize';
    font-style: normal;
    font-weight: 400;
    src: url('font/electrolize-v9-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('font/electrolize-v9-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('font/electrolize-v9-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('font/electrolize-v9-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('font/electrolize-v9-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('font/electrolize-v9-latin-regular.svg#Electrolize') format('svg'); /* Legacy iOS */
  }
  


@font-face {
    font-family: 'Electrolize';
    font-style: normal;
    font-weight: 400;
    src: url('font/electrolize-v9-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('font/electrolize-v9-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('font/electrolize-v9-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('font/electrolize-v9-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('font/electrolize-v9-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('font/electrolize-v9-latin-regular.svg#Electrolize') format('svg'); /* Legacy iOS */
  }
  





@font-face {
    font-family: 'adobehebrew';
    font-style: normal;
    font-weight: 400;
    src: url('font/adobehebrew-regular-webfont.eot');
    src: url('font/adobehebrew-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('font/adobehebrew-regular-webfont.woff2') format('woff2'),
         url('font/adobehebrew-regular-webfont.woff') format('woff'),
         url('font/adobehebrew-regular-webfont.ttf') format('truetype'),
         url('font/adobehebrew-regular-webfont.svg#adobe_hebrewregular') format('svg');
    font-weight: normal;
    font-style: normal;

}  


  @font-face {
    font-family: 'adobehebrew';
font-style: bold;
    font-weight: 700;
    src: url('font/adobehebrew-bold-webfont.eot');
    src: url('font/adobehebrew-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('font/adobehebrew-bold-webfont.woff2') format('woff2'),
         url('font/adobehebrew-bold-webfont.woff') format('woff'),
         url('font/adobehebrew-bold-webfont.ttf') format('truetype'),
         url('font/adobehebrew-bold-webfont.svg#adobe_hebrewbold') format('svg');
    font-weight: normal;
    font-style: normal;

}


*{
    box-sizing: border-box;
}

body {
    width: 100%;
    overflow-x: hidden;
    font: 300 15px/1.55rem 'adobehebrew', sans-serif;
    color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'adobehebrew';
    color: var(--blau);
    text-transform: uppercase;
}

p {
    margin-bottom: 16px;
}

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

a:hover {
    opacity: 0.5;
}

nav {
	display: flex;
	justify-content: space-between;
    align-items: center;
	z-index: 999;
	position: fixed;
	top: 0;
	background-color: #fff;
	width: 100%;
	padding: 28px 3.5% 20px 3.5%;
	text-align: right;
}

nav span {
    font-size: 50px;
    right: 2%;
    display: none;
    width: 45px;
    height: 45px;
    margin-top: -6px;
}

.desktop-nav {
    width: 100%;
    margin-bottom: 7px;
}

.desktop-nav a {
    font-family: 'adobehebrew';
    padding: 0 10px;
    color: var(--text);
    text-transform: uppercase;
}

.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 100%;
    width: 0;
    position: fixed;
    /* Stay in place */
    z-index: 9999;
    /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(255, 255, 255);
    /* Black fallback color */
    background-color: rgba(255, 255, 255, 0.9);
    /* Black w/opacity */
    overflow-x: hidden;
    /* Disable horizontal scroll */
    transition: 0.5s;
    /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
    position: relative;
    top: 25%;
    /* 25% from the top */
    width: 100%;
    /* 100% width */
    text-align: center;
    /* Centered text/links */
    margin-top: 30px;
    /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
	padding: 12px;
    font-size: 150%;
	text-decoration: none;
	color: var(--text);
	display: block;
    text-transform: uppercase;
}

/* When you mouse over the navigation links, change their color */
/*
.overlay a:hover,
.overlay a:focus {
    color: #f1f1f1;
}
*/

/* Position the close button (top right corner) */
.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

.puff-in-center {
	-webkit-animation: puff-in-center 0.7s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
	        animation: puff-in-center 0.7s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
}

/* ----------------------------------------------
 * Generated by Animista on 2021-12-9 17:2:11
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation puff-in-center
 * ----------------------------------------
 */
 @-webkit-keyframes puff-in-center {
    0% {
      -webkit-transform: scale(2);
              transform: scale(2);
      -webkit-filter: blur(4px);
              filter: blur(4px);
      opacity: 0;
    }
    100% {
      -webkit-transform: scale(1);
              transform: scale(1);
      -webkit-filter: blur(0px);
              filter: blur(0px);
      opacity: 1;
    }
  }
  @keyframes puff-in-center {
    0% {
      -webkit-transform: scale(2);
              transform: scale(2);
      -webkit-filter: blur(4px);
              filter: blur(4px);
      opacity: 0;
    }
    100% {
      -webkit-transform: scale(1);
              transform: scale(1);
      -webkit-filter: blur(0px);
              filter: blur(0px);
      opacity: 1;
    }
  }
  
  .kenburns-top {
	-webkit-animation: kenburns-top 5s ease-out both;
	        animation: kenburns-top 5s ease-out both;
}

/* ----------------------------------------------
 * Generated by Animista on 2021-12-9 17:26:0
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation kenburns-top
 * ----------------------------------------
 */
 @-webkit-keyframes kenburns-top {
    0% {
      -webkit-transform: scale(1) translateY(0);
              transform: scale(1) translateY(0);
      -webkit-transform-origin: 50% 16%;
              transform-origin: 50% 16%;
    }
    100% {
      -webkit-transform: scale(1.25) translateY(-15px);
              transform: scale(1.25) translateY(-15px);
      -webkit-transform-origin: top;
              transform-origin: top;
    }
  }
  @keyframes kenburns-top {
    0% {
      -webkit-transform: scale(1) translateY(0);
              transform: scale(1) translateY(0);
      -webkit-transform-origin: 50% 16%;
              transform-origin: 50% 16%;
    }
    100% {
      -webkit-transform: scale(1.25) translateY(-15px);
              transform: scale(1.25) translateY(-15px);
      -webkit-transform-origin: top;
              transform-origin: top;
    }
  }
  

article, footer {
    width: 100%;
    padding: 105px 7.5%;
}

img.logo {
    width: 260px;
    height: auto;
}

header {
    /*height: 100vh;*/
    max-height:600px;
    width: 100%;        
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.oben-rechts {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    width: 30%;
    min-width: 300px;
}

.unten-links{
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 35%;
    min-width: 300px;
}

.logo-in-weiss{
    padding: 60px 5% 0 5%;
    color: #fff;
    font-family: 'adobehebrew';
    text-transform: uppercase;
    font-size: 110%;
    text-align: center;
    z-index: 2;
}

.logo-in-weiss img{
    width: 100%;
    max-width: 1016px;
    padding-bottom: 20px;
}

.scroll-down{
    z-index: 2;
    font-family: 'adobehebrew';
    text-transform: uppercase;
    text-align: center;   
    position: absolute;
    bottom: 20px;
    width: 100px;
    left: calc(50% -50px);
}

.scroll-down a{
    color: #fff;
}

header p {
    margin-bottom: 10px;
}

.header-pic{
    position: absolute;
    height: 100%;
    z-index: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: url('../images/elektroinstallation-wagner-header.jpg') no-repeat center/cover;
}

.direct-buttons {
    position: fixed;
    top: 45%;
    right: -10px;
    z-index: 3;
}

.direct-buttons img{
    width: 76px;
    height: auto;
}

.red-info{
    position: fixed;
    right: 0;
    top: 97px;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: polygon(5% 0, 100% 0%, 100% 100%, 5% 100%, 0% 50%);
    width: 440px;
    height: 38px;    
    z-index: 999;
    background-color: var(--rot);
    color: #fff;   
    text-transform: uppercase;
    font-size: 90%;
}

.red-info a{
color: #fff;
}

.content{
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.col {
    width: 48%;
    overflow: hidden;
}

h1, h2 {
    font-size: 249%;
    text-transform: uppercase;
    color: #fff;
    padding-top: 10px;
}

h1::after, h2::after {
	content: "";
	height: 2.2px;
	display: inline-block;
    margin: 30px 0 20px 0;
	background-color: var(--blau);
	width: 100%;
}

h3 {
    font-size: 130%;    
}

.leistungen h2::after, .kontakt h2::after {	
	background-color: #fff;
}

h1, .infos h2, .partner h2 {
    color: var(--blau);
}

.leistungen, .kontakt {
    background-color: #3b3939;
    color: #fff;
}

.partner {
    background-color: var(--grau);
}

.behind-img-top {
    clip-path: polygon(0 0, 0% 100%, 100% 0);
    background-color: #bfc0c0;
    height: 280px;
    width: 280px;
    position: absolute;
	top: -28px;
	left: -28px;
	z-index: 0;
}

.behind-img-bottom {
	clip-path: polygon(100% 100%, 0% 100%, 0 0);
	background-color: #bfc0c0;
	height: 340px;
	width: 340px;
	position: absolute;
	bottom: -28px;
	left: -28px;
	z-index: 0;
}

.leistungen .behind-img-top, 
.leistungen .behind-img-bottom{
    width: 145px;
    height: 145px;
}

.checkup{
    height: 590px;
    width: calc(100% - 28px);
    display: inline-block;
    object-fit: cover;
    position: relative;    
    margin-top: 28px;
    right: -28px;
    top: -28px;
}

.family{
    height: 365px;
    width: calc(100% - 28px);
    display: inline-block;
    object-fit: cover;
    position: relative;    
    margin-top: 56px;
    right: -28px;
    top: -28px;
}

.checkup img.mainpic {
    height: 100.3%;
    position: relative;
    z-index: 1;
}

.family img.mainpic {
    height: 100.3%;
    position: relative;
    z-index: 1;
}

.checkup img.innung {
	position: absolute;
	bottom: 6px;
	right: 8px;
	z-index: 2;
	height: 10%;
	width: auto;
}

.button{
    display: inline-block;
    background-color: var(--blau);
    color: #fff;
    text-transform: uppercase;
    padding: 10px 32px;
    margin: 10px 0 20px;
}

.wartung, .rauchmelder {   
    position: relative;
    display: inline-block;
    object-fit: cover;
    margin-top: 56px;
    right: -28px;
    top: -28px;
}

.wartung .mainpic, 
.rauchmelder .mainpic {
    width: 185px;
    height: 185px;
    position: relative;
    z-index: 2;
}

.rauchmelder {
	margin-top: 40px;
}

.behind-img-bottom-small {
	clip-path: polygon(100% 100%, 0% 100%, 0 0);
	background-color: #bfc0c0;
	height: 150px;
	width: 150px;
	position: absolute;
	bottom: -10px;
	left: -15px;
	z-index: 0;
}

.behind-img-top-small{
    clip-path: polygon(0 0, 0% 100%, 100% 0);
    background-color: #bfc0c0;
    height: 150px;
    width: 150px;
    position: absolute;
	top: -15px;
	left: -15px;
	z-index: 0;
}

.col-the-inner{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.inner-col:first-of-type {
    width: 185px;
}

.inner-col:nth-of-type(2) {
    width: calc(95% - 185px);
    padding-left: 20px;
}

ul {
	list-style: square;
	font-size: 90%;
	margin-left: 14px;
}

ul li::marker {
    color: var(--rot)
}

.leistungen h3 {
    color: #fff;
    font-size: 115%;
    text-transform: none;
    margin-top: 15px;
}

.echeck {
    margin-top: 30px;
}

.leistungen {
    position: relative;
}

.leistungen .unten-links, 
.leistungen .oben-rechts{
    width: 20%;
    min-width: 250px;
}

.news {
    background-color: var(--grau);
    padding: 30px;
    margin-bottom: 20px;
    width: 48%;
}

.col.flex-basis {
    flex-basis: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 10px;
    align-items: baseline;
}

.partner a{
    border: 1px solid var(--text);
    width: 216px;
    height: 166px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner a img {
    width: 70%;
    margin-top: -10px;
}

.morecontent span {
    display: none;
}

.morelink {
    display: table;
    background-color: var(--blau);
    color: #fff;
    text-transform: uppercase;
    padding: 10px 32px;
    margin: 30px 0 0px;
}

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

.kontakt p a {
    font-style: italic;
    color: #fff;
}

.kontaktformular {
    width: 100%;
    height: 600px;
}

.formular-col{
    margin-top: 77px;
}

.end {
    width: 100%;
    height: 700px;
    max-height: 700px;
    background: url('../images/netzwerk-technik.jpg')no-repeat center/cover;
    position: relative;
    background-attachment: fixed;
}

.fehlerseite h1 {
    color: #fff;
}

.end .unten-links, 
.end .oben-rechts{
    width: 20%;
    min-width: 250px;
}

.dse{
   /* position: fixed;*/
   /* bottom: 0;
    right: 5.5%;*/
    font-family: 'adobehebrew';
    background-color: var(--blau);
    text-transform: uppercase;
    color: #fff;
    font-size: 80%;
    padding: 7px 20px;
    z-index: 5;
    width: 100%;
    text-align: center;
}

.dse a{
    color: #fff;
}

.impressum{
    margin-top: 50px;
}

ul li a, .impressum p a {
    color: var(--blau);
    font-style: italic;
}

.impressum ul {
    margin-bottom: 30px;
}

.impressum .kontakt a {
    color: #fff;
}

.kontakt a {
    text-decoration: underline;
}

.impressum .ueber .content .col:nth-of-type(2) {
	display: flex;
	flex-direction: column;
}

@media screen and (hover: none){
    .end {
        background-attachment: scroll;
    }
}

@media screen and (max-width: 1200px) {
    .direct-buttons img {
        width: 66px;
    }

    .logo-in-weiss {
        padding: 60px 7% 0 7%;
    }
    .end{background-attachment: inherit!important;max-height: 392px;}
}

@media screen and (max-width: 1024px) {
    nav span {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    .direct-buttons {
        top: 147px;
    }    

    body{
        font-size: 13.5px;
    }

    h1, h2 {
        font-size: 215%;
    }

    h1::after, h2::after {
        margin: 20px 0 16px 0;
    }  

    .checkup {
        height: 450px;
    }
    
    .behind-img-bottom {
        height: 220px;
        width: 220px;
    }

    .family {
        height: 305px;
    }

    .leistungen .col{
        width: 100%;
    }
  
}

@media screen and (max-width: 800px) {
    body{
        font-size: 12px;
        line-height: 1.4rem;
    }

    .red-info {
        clip-path: polygon(6% 0, 100% 0%, 100% 100%, 6% 100%, 0% 50%);
        width: 300px;
    }
    .direct-buttons img {
        width: 56px;
    }    

    .checkup {
        margin-top: 15px;
        right: -15px;
        top: -15px;
        height: 320px;
    }

    .behind-img-bottom {
        height: 180px;
        width: 180px;
        bottom: -6px;
        left: -15px;
    }

    .behind-img-top {
        height: 150px;
        width: 150px;
    } 
    
    .family {
        width: calc(100% - 15px);
        margin-top: 30px;
        right: -15px;
        top: -15px;
    }

    nav span {
        margin-top: -3px;
    }

    .morelink, .button {
        padding: 5px 22px;
    }
}

@media screen and (max-width: 720px) {
    .col {
        width: 100%;
    }       

    .ueber .content .col:nth-of-type(2){
        display: flex;
        flex-direction: column-reverse;
    }

    .behind-img-top {
        top: -15px;
    }

    .family {
        height: auto;
        margin-top: 30px;
        right: -15px;
        top: -15px;
    }

    .family img.mainpic {
        height: auto;
        width: 100%;
    }

    .checkup {
        margin-top: 15px;
        right: -15px;
        top: -15px;
        height: auto;
    }

    .checkup img.mainpic {
        height: auto;
        width: 100%;
    }

    .checkup img.innung {
        bottom: 17px;
    }

    .news {
        width: 100%;
    }

    .scroll-down {
        bottom: 50px;
    }
   
}

@media screen and (max-width: 550px){
    .inner-col:first-of-type, .inner-col:nth-of-type(2) {
        width: 100%;
    }
   
    .wartung {
        top: -15px;
    }



}

@media screen and (max-width: 450px){
    h1, h2 {
        font-size: 202%;
    }
}

/* 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;
    }
}