@import url("reset.css");
:root {
    --text: #000;
    --primaer: #b15917;
    --primaer-transparent: rgba(177, 89, 23, 0.9);
    --sekundaer: #000;
    --kontrast: #b15917;
}

/* open-sans-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/open-sans-v35-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* open-sans-300italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/open-sans-v35-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* open-sans-regular - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v35-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* open-sans-italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/open-sans-v35-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* open-sans-600 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/open-sans-v35-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* open-sans-600italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 600;
    src: url('../fonts/open-sans-v35-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* open-sans-700 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v35-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* open-sans-700italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/open-sans-v35-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  

*{
    box-sizing: border-box;
}

body {
    width: 100%;
    overflow-x: hidden;
    font: 300 16px/200% 'Open Sans', sans-serif;
    color: var(--text);
    background-color: #eeeeee;
}

b {
    font-weight: 600;
}

i {
    font-style: italic;
}

p {
    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%;
    box-sizing: border-box;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 100%;
    max-width: 394px;
}

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(--primaer);
}

.button {
    background-color: var(--primaer);
    color: #fff;
    padding: 3px 20px;
    margin-top: 15px;
    text-decoration: none;
}

.desktop-nav {
    width: calc(100% - 394px);
    text-align: right;
}

.desktop-nav a {
    padding: 0 10px;
    color: #000;
    text-transform: uppercase;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    background-color: var(--primaer);
    background-color: var(--primaer-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: 150%;
	color: #fff;
	display: block;
    text-transform: uppercase;
}

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

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

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

.dse{
    font-size: 80%;
    text-align: center;
    position: fixed;
    bottom: 0;
    right: 5%;
    background-color: var(--kontrast);
    color: #fff;
    width: 290px;
    padding: 5px;
}

.dse a {
    color: #fff;
}

.small-dialog {
    background: white;
    padding: 20px 30px;
    text-align: left;
    max-width: 400px;
    margin: 40px auto;
    position: relative;
}

.leistungen{
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 5%;
    transform: translateY(-50%);
}

.leistung {
    width: 434px;
    max-width: 30%;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    align-items: center;
    font-size: 140%;
    text-transform: uppercase;
    font-weight: 600;
}

.leistung:first-of-type, .leistung:nth-of-type(2){
    margin-right: 20px;
}

.leistung img {
    margin-right: 20px
}

article {
    width: 100%;
}

h1 {
    font-size: 4.7vw;
    line-height: 60%;
    font-weight: 600;
    text-transform: uppercase;
}

h1 span {
    font-size: 30%;
    font-weight: 300;
}

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

h2 span {
    font-size: 70%;
    font-weight: 300;
    color: var(--primaer);
}

h3 {
    font-size: 120%;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 10px;
}

header {
    width: 100%;    
    background: url('../images/header.jpg')no-repeat center bottom/cover;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 5%;
}

.button {
    border-radius: 3px;
    background-color: var(--primaer);
    color: #fff;
    text-transform: uppercase;
    padding: 7px 20px;
    display: inline-block;
    margin-top: 15px;
}

.slogan {
    margin-top: 5%;
}

/*SECTION 1*/

.section-1 .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 160px 5%;
}

.section-1 .col-l{
    width: 36%;
    aspect-ratio: 1;
    overflow: hidden;   
}

.section-1 .col-l img {
    object-fit: cover;
    object-position: center;
    width: 100%; 
    height: 100%;
}

.section-1 .col-r{
    width: 59%;
}

/*SECTION 1 ENDE*/
/*SECTION 2*/

.section-2 .container {
    display: flex;
    justify-content: space-between;
}

.section-2 .col-l{
    background-color: #000;
    color: #fff;
    padding: 270px 5%;
    width: 38%;
}

.section-2 .col-r{
    text-align: right;
    padding: 160px 5%;
    width: 62%;
    background-color: #fff;
}

.section-2 .col-r img{
    width: 100%;
    margin-top: 20px;
}

/*SECTION 2 ENDE*/
/*SECTION 3 ENDE*/
    .section-3 .container {
        padding: 160px 5%;
    }

    .section-3 .text {
        max-width: 1024px;
    }

    .services {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        margin-top: 40px;
    }

    .services a {
        width: calc(100% / 6 - 20px);
    }

    .service-box{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: var(--primaer);
        color: #fff;
        text-align: center;
        padding: 20px;
        border-radius: 3px;
    }

    .service-box img {
        height: 80px
    }
@media screen and (max-width: 1350px){
    .services a {
        width: calc(100% / 4 - 20px);
    }
}

/*SECTION 3 ENDE*/
/*SECTION 4 */

.section-4 .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.section-4 .col-l,
.section-4 .col-r{
    width: 50%;
}

.section-4 .col-l{
    min-width: 680px
}


.section-4 .col-r{
    background: url('../images/unverbindliche-beratung.jpg') no-repeat right center/cover;
    min-height: 400px;
}

.section-4 .text{
    padding: 160px 10% 50px 10%;
    background-color: #fff;
}

.section-4 .contact-form {
    padding: 50px 10% 160px 10%;
    background-color: #000;
}

.section-4 .contact-form iframe{
    width: 100%;
    height: 600px
}

.section-4 p a {
    color: var(--primaer);
    font-weight: 600;
    text-decoration: underline;
}

/*SECTION 4 ENDE*/
/*SECTION 5*/
.section-5 .container {
    display: flex;
    justify-content: space-between;
}

.section-5 .col-l {
    width: 25%;
    background: url('../images/holz.jpg') no-repeat center/ cover;
    display: flex;
    justify-content: flex-end;
}

.section-5 .col-l img {
    transform: translate(50%, -9%);
    height: 110%;
}

.section-5 .col-r {
    width: 75%;
    padding: 160px 5% 160px 150px;
}
/*SECTION 5 ENDE*/

/*IMPRINT*/

.imprint {
    padding-top: 30px;
}

.imprint p a, .imprint ul li a {
    color: #000;
    text-decoration: underline;
}

.imprint ul li a{
    font-weight: 600;
}

.imprint .container{
    padding: 160px 5%;
}

.imprint .flexbox {
    display: flex;
    justify-content: space-between;
}

.imprint h1 {
    font-size: 200%;
}

.imprint .container .col {
    width: 48%;
}

/*IMPRINT ENDE*/

footer {
    background-color: var(--primaer);
    color: #fff
}

footer .container {
    padding: 100px 5%;
    display: flex;
    justify-content: space-between;
}

footer .col,
footer .col {
    width: 48%;
}

footer .container a {
    color: #fff;
    text-decoration: underline;
}

footer a.button {
    text-decoration: none;
    background-color: #000;
}

@media screen and (orientation:landscape){
    header{
        aspect-ratio: 1920/990;
    }
}
@media screen and (orientation:portrait){
    header{
        aspect-ratio: 1;
    }
}

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

    .imprint .container{
        padding: 100px 5%;
    }

    .imprint .flexbox{
        flex-direction: column;
    }

    .imprint .container .col{
        width: 100%;
    }

    .section-5 .col-r {
        padding: 100px 5% 100px 150px;
    }

    .section-4 .col-l{
        min-width: auto
    }

    .services a {
        width: calc(100% / 3 - 20px);
    }

    .leistung img {
        width: 50px;
        margin-bottom: 10px;
    }

    .leistung {
        font-size: 120%;
        line-height: 120%;
    }

    nav .span {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    nav {
        padding: 20px 5%;
    }

    h1 {
        font-size: 8vw;        
    }

    h2 {
        margin-bottom: 10px;
    }

    header {
        align-items: flex-end;
        padding-bottom: 7%;
        justify-content: center;
    }

    .slogan {
        background-color: rgba(255,255,255,0.8);
        padding: 5%;
        text-align: center;        
    }

    .leistungen{
        transform: translateY(-40%);
    }

    .section-1 .container{
        flex-direction: column;
        padding: 100px 5%;
    }

    .section-2 .container {
        flex-direction: column-reverse;
    }

    .section-2 .col-l{
        padding: 50px 5% 100px 5%;
        width: 100%;
    }

    .section-2 .col-r{
        padding: 100px 5% 50px 5%;
        width: 100%;
        text-align: left;
    }

    .section-3 .container {
        padding: 100px 5%;
    }

    .section-4 .text {
        padding: 100px 5% 50px 5%;
    }

    .section-4 .contact-form{
        padding: 50px 5% 100px 5%;
    }

    .section-4 .container {
        flex-direction: column;
    }

    .section-4 .col-l,
    .section-4 .col-r{
        width: 100%;
    }

    .section-1 .col-l, .section-1 .col-r{
        width: 100%;
    }

    .section-1 .col-l{
        aspect-ratio: 2/1;
        margin-bottom: 40px;
    }
    @media screen and (orientation:portrait){
        .section-1 .col-l{
            aspect-ratio: 1;
        }
    }
}

@media screen and (max-width: 854px){
    .leistungen{
        transform: translateY(-25%);
    }

   .leistung {
       flex-direction: column;
       justify-content: flex-start;
       text-align: center;
   }

   .leistung img {
    margin-right: 0;
   }

   h2 {
       font-size: 150%;
   }
}
@media screen and (max-width: 768px){
    .services a {
        width: calc(100% / 2 - 20px);
    }

    h3 {
        font-size: 100%;
        margin-top: 5px;
    }

    .section-5 .col-l {
        width: 0;
    }

    .section-5 .col-r {
        width: 100%;
        padding: 100px 5% 100px 210px;
        background: linear-gradient(45deg, rgba(255,255,255,0.6), rgba(255,255,255,0.6)),url('../images/holz.jpg') no-repeat center/ cover
    }

    .section-5 .col-l img {
        transform: translate(105%, -9%);
        height: 110%;
    }
    footer .container {
        flex-direction: column;
    }
    
    footer .col,
    footer .col {
        width: 100%;
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 620px){
    .leistungen {
        transform: translateY(0);
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .section-5 .col-l {
        display: none;
    }

    .section-5 .col-r {
        padding: 100px 5% 100px 5%;
    }

    
}

@media screen and (max-width: 578px){
    .section-4 .contact-form iframe {
        height: 680px;
    }

    .leistungen{
        flex-direction: column;
    }

    .leistung {
        width: 100%;
        max-width: none;
        margin-bottom: 10px;
    }

    nav img {
        max-width: 224px;
    }

    nav .span {
        height: 30px;
        width: 38px;
    }

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

    h1 span {
        font-size: 60%;
        line-height: 160%;
        display: inline-block;
        margin-top: 15px;
    }

    header {
        aspect-ratio: 1/1.5;
        background-position-x: right -180px;
    }

    .button {
        font-size: 76%;
    }

    .services a {
        width: 100%;
    }
}

@media screen and (max-width: 380px){
    header {
        aspect-ratio: 1/2;
        background-position-x: right -220px;
    }
}

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