@import url("reset.css");

/*-----------FONTS-----------*/

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

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

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

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

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

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

/*-----------FONTGESTALTUNG-----------*/

body {
    font-family: 'Heebo'
}

p {
    font-family: 'Jost';
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    margin-bottom: 45px;
}
}

a {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

h1 {
    font-size: 100px;
    color: white;
    font-weight: 500;
    z-index: 99;
}

h1 b {
    font-size: 30px;
}

header h2 {
    font-size: 60px;
    color: white;
    z-index: 99;
    font-style: italic;
    font-weight: 300;
}

h2 {
    font-family: 'Apertura';
    font-size: 45px;
    color: #AE251D;
    z-index: 99;
    text-align: center;
    font-weight: 500;
    margin-bottom: 10px;
}

h3 {
    font-family: 'Apertura';
    font-size: 20px;
    margin-bottom: 50px;
    text-align: center;
}

h4 {
    font-family: 'Apertura';
    font-size: 25px;
    color: white;
    position: relative;
    right: 1%;
    margin-bottom: 10px;
    font-family: 'Apertura';
    font-weight: 500;
}

#leistungen li {
    font-size: 19px;
    list-style: none;
    font-family: 'Jost';
    line-height: 50px;
    color: white;
}

#leistungen li::before {
    content: url("../images/check.png");
    position: relative;
    top: 7px;
    right: 10px;
}

strong {
    font-weight: 500;
    font-size: 16px;
    font-weight: 600;
}

.line {
    background-color: #000;
    width: 50px;
    height: 3px;
    margin-bottom: 25px;
}

/*-----------NAVI-----------*/

.logo {
    position: fixed;
    width: 200px;
    height: auto;
    top: 15px;
    left: 5%;
    z-index: 9999;
}

nav {
    position: fixed;
    background: #fff;
    width: 100%;
    z-index: 101;
    top: 0;
    text-align: right;
    padding: 40px 0;
    z-index: 100;
}

nav ul {
    margin-right: 5%;
}

nav ul li {
    display: inline-block;
    margin: 0 2%;
    text-transform: uppercase;
}

nav ul li a {
    text-decoration: none;
    font-size: 16px;
    color: #AE251D;
}

nav ul li strong {
    color: #0025a6;
    font-weight: 600;
}

nav ul li a:hover {
    border-bottom: 3px solid #000;
}

.navi {
    display: none;
}

.burger-nav {
    position: fixed;
    right: 0;
    top: -6px;
    color: #fff;
    z-index: 9999;
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
    font-size: 40px;
    cursor: pointer;
    transition: all .4s ease-in-out;
    background-color: #AE251D;
    padding: 16px 21px 21px 19px;
}

.burger-nav b {
    transition: all .4s ease-in-out;
    float: left;
    margin-left: 0;
    font-family: 'Heebo';
    font-style: normal;
}

.burger-nav-anim {
    top: -5px;
    color: #fff;
}

.burger-nav-anim b:first-of-type {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    left: 35%;
    position: relative;
}

.burger-nav-anim b:nth-of-type(2) {
    opacity: 0;
}

.burger-nav-anim b:last-of-type {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    margin-left: -80%;
    left: 35%;
    position: relative;
}

.full-screen-nav {
    position: fixed;
    z-index: 9998;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: table;
    visibility: hidden;
    transition: all .4s ease-in-out;
    opacity: 0;
}

.full-screen-nav ul {
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    width: 100%;
}

.full-screen-nav ul li a {
    padding: 20px;
    display: block;
    font-size: 30px;
    color: #AE251D;
    transition: all .4s ease-in-out;
    text-decoration: none;
}

.fadeIn {
    opacity: 1 !important;
    visibility: visible !important;
}

.fadeUp {
    opacity: 1 !important;
    margin-top: 0 !important;
}

/*-----------ASIDE-----------*/

aside img {
    position: fixed;
    background-color: white;
    width: 55px;
    z-index: 999;
    right: 0;
    transition: 0.5s;
}

aside img:hover {
    background-color: #6d6d6d;
}

.phone {
    top: 550px;
}

/*-----------SUBNAV-----------*/

.subnav {
    position: fixed;
    bottom: 0;
    color: #AE251D;
    z-index: 999;
    transition: 0.5s;
    width: 100%;
    text-align: right;
}

.subnav a {
    color: #AE251D;
    padding: 8px 15px;
    font-size: 14px;
    background-color: #fff;
    margin-left: 20px;
    line-height: 23px;
}

.subnav a:nth-of-type(2) {
    margin-right: 5%;
}

.subnav a:hover {
    color: #dfdfdf;
}

/*-----------HEADER-----------*/

header {
    background: url("../images/header.jpg") no-repeat;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    /*clip-path: polygon(0 0%, 100% 0, 100% 95%, 0 100%);*/

}

.headline {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    bottom: 5%;
    text-align: center;
    width: 100%;
    animation-name: headline;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.down {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    bottom: 2%;
    animation-name: down;
    animation-duration: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes down {
    from {
        transform: translateY(0) translate(-50%, -50%);
    }

    to {
        transform: translateY(10px) translate(-50%, -50%);
    }
  }

@keyframes headline {
  from{
    opacity:0;
  }
  to{
    opacity: 1;
  }

}



/*-----------AUFBAU-----------*/

html {
    scroll-behavior: smooth;
}

#betrieb,
#leistungen {
    padding: 50px 0;
}

.content {
    display: flex;
    width: 60%;  
    margin-inline: auto;
}

#betrieb .content img,
#betrieb .content:nth-child(2) img {
    max-width: 100%;
}

#leistungen .content img,
#leistungen .content:nth-child(2) img {
    max-width: 100%;
}

.col {
    flex-basis: 47%;
}

section{
    overflow: hidden;
}



.col:nth-of-type(2) {
    margin-left: 6%;
    margin-bottom: 50px;
    flex-basis: 47%;
}

#leistungen .content:nth-of-type(1) .col {
    flex-basis: 55%;
}

#leistungen .content:nth-of-type(1) .col:nth-child(2) {
    flex-basis: 40%;
    margin-left: 5%;
}

#leistungen .content:nth-of-type(2) .col {
    flex-basis: 40%;
}

#leistungen .content:nth-of-type(2) .col:nth-child(2) {
    flex-basis: 55%;
    margin-left: 5%;
}




.btn {
    background-color: #000;
    color: #fff;
    padding: 5px 30px;
    transition: 0.5s;
}

.btn:hover {
    background-color: #6d6d6d
}




/*-----------BEREICH1-----------*/

#betrieb {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;


}

#betrieb::before {
  z-index: -1;
position: absolute;
content: "";
width: 300%;
height: 108%;
top: -11%;
left: 0;
background-color: white;
transform: skewY(-1deg);
}


#betrieb .col:nth-of-type(2) {}

.button {
    font-family: 'Apertura';
    font-size: 17px;
    color: white;
    background-color: #AE251D;
    padding: 15px 10px;
    text-decoration: none;
}

/*-----------BEREICH2-----------*/


#leistungen {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #AE251D;


}

#leistungen::before {
  z-index: -1;
position: absolute;
content: "";
width: 300%;
height: 110%;
top: -11%;
left: 0;
background-color: #AE251D;
transform: skewY(-1deg);
}


#leistungen .content:nth-of-type(1) {
    margin-bottom: 50px;
}

#leistungen p {
    color: white;
}

#leistungen h2,
#leistungen h3 {
    color: white;
}

/*-----------PUFFER-----------*/

.puffer1 {
    background: url("../images/dachdecker-auf-dach.jpg") no-repeat;
    background-color: #AE251D;
    height: 650px;
    width: 100%;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    /*clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);*/
}

.puffer1 p {
    text-align: center;
    color: white;
    font-size: 90px;
    font-family: 'Apertura';
    position: relative;
    top: 45%;
    text-shadow: 5px 5px 20px #848484;
    z-index: 2;
}

/*-----------FOOTER-----------*/

footer {
    padding: 120px 0 0 0;
    background-color: white;
    border-bottom: 30px solid #AE251D;
}


footer p,
footer h2,
footer h3,
footer h5,
footer a {
    text-align: left;
}

footer h2,
footer h3 {
    font-family: 'Apertura';
    color: #AE251D;
    margin-bottom: 5px;
}

footer h5 {
    font-family: 'Apertura';
    color: #000;
    font-size: 20px;
    margin-bottom: 25px;
}

footer p {
    margin-bottom: 0;
    font-size: 20px;
    line-height: 40px;

}

footer a {
    text-decoration: none;
    color: black;
    font-family: 'Jost';
    font-size: 20px;
    font-weight: 300;
    line-height: 40px;
}

footer a:hover {
    color: #AE251D;
}

.adresse::before {
    content: url("../images/adresse.png");
    margin-right: 15px;
}

.tel::before {
    content: url("../images/tele.png");
    margin-right: 15px;
}

.mail::before {
    content: url("../images/mail.png");
    margin-right: 15px;
}

.landing{
    background: #AE251D;
    color: white;
    padding: 2px 10%;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.landing li{
    display: inline-block;
    margin-right: 10px;
}

.landing a{
    color: white;
}

.landing a:hover{
    color: white;
}

/*-----------RESPONSIVE-----------*/

@media screen and (max-width: 1500px) {

    header,
    .puffer1,
    .puffer2 {
        background-attachment: scroll;
    }

    h1 {
        font-size: 90px;
    }

    header h2 {
        font-size: 55px;
    }

    .down img {
        width: 90%;
        height: 90%;
    }

    .puffer1 p {
        font-size: 80px;
    }
}

@media screen and (max-width: 1360px) {
  main {
      text-align: center;
  }

  footer p,
  footer h2,
  footer h3,
  footer h5,
  footer a {
      text-align: center;
  }

  .content {
      display: block;
      width: 90%;
      margin-inline: auto;
  }

  .col {
      width: 80%;
      margin-left: 10%;
  }

  .col:nth-of-type(2) {
      padding: 40px 0 0;
      margin-left: 10%;
  }


  #betrieb .col:nth-of-type(2),
  #leistungen .col:nth-of-type(2) {
      margin-top: 0;
  }

  #leistungen .content img,
  #leistungen .content:nth-child(2) img {
      max-width: 100%;
  }

  #leistungen .content:nth-of-type(1) {
display: grid;
}

  #leistungen .content:nth-of-type(1) .col:nth-child(2) {
    order: 1;
    margin-inline: auto;
}

#leistungen .content:nth-of-type(1) .col:nth-child(1) {
order: 2;
}

#leistungen .content:nth-of-type(2) .col:nth-of-type(2){
margin-inline:auto;
}

    h1 {
        font-size: 80px;
    }

    header h2 {
        font-size: 45px;
    }


    .puffer1 p {
        font-size: 70px;
        top: 50%;
    }

    #betrieb::before {
    z-index: -1;
    position: absolute;
    content: "";
    width: 300%;
    height: 108%;
    top: -6%;
    left: 0;
    background-color: white;
    transform: skewY(-1deg);
    }

    #leistungen::before {
      z-index: -1;
    position: absolute;
    content: "";
    width: 300%;
    height: 102%;
    top: -2%;
    left: 0;
    background-color: #AE251D;
    transform: skewY(-1deg);
    }

    .headline{
      bottom: 7%;
    }

    .down{
      bottom: 4%;
    }

}

@media screen and (max-width: 1100px) {
    .puffer1 p {
        font-size: 60px;
    }

    .puffer1 {
        height: 400px;
    }

}

@media screen and (max-width: 900px) {

    h1 {
        font-size: 60px;
    }

    header h2 {
        font-size: 35px;
    }

    .headline{
      bottom: 10%;
    }

    .down{
      bottom: 4%;
    }

    .phone {
        display: none;
    }

    .logo {
        position: absolute;
    }

    header {
        height: 85vh;
    }

    nav {
        background: none;
        box-shadow: 0 0 0;
    }

    nav ul {
        display: none;
    }

    .navi {
        display: block;
    }

    .puffer1 p {
        font-size: 45px;
        line-height: 40px;
        top: 45%;
    }

}



}

@media screen and (max-width: 700px) {


    h1 {
        font-size: 50px;
    }

    header h2 {
        font-size: 25px;
    }

    h2 {
        font-size: 35px;
    }

    h3 {
        font-size: 15px;
    }

    p{
      font-size: 16px;
      line-height: 21px;
    }

    header {
        height: 75vh;
    }

    .button {
        font-size: 14px;
        padding: 15px 10px;
    }

}

@media screen and (max-width: 500px) {

    header {
        height: 60vh;
    }

    .down {
        display: none;
    }

    .headline {
        bottom: 0;
    }

    h1 {
        font-size: 50px;
        padding: 15px 20px;
        top: 55vh;
    }

    h1 b {
        font-size: 16px;
    }

    aside img {
        width: 40px;
    }

    .mail {
        top: 250px
    }

    .phone {
        top: 320px
    }
}

@media screen and (max-width: 450px) {
  .button{
    font-size: 10px;
    padding: 10px 5px;
  }

}
