html {
    font-size: 16px;
}

/* === Fonts === */

@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/raleway-v29-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
         url('../fonts/raleway-v29-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
  }
  
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/raleway-v29-latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
         url('../fonts/raleway-v29-latin-italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
  }
 
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/raleway-v29-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
         url('../fonts/raleway-v29-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
  }

  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/raleway-v29-latin-700italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
         url('../fonts/raleway-v29-latin-700italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
  }

  
/* === Global === */

:root {

    --blau: #1F4E8C;
    --dunkel-grau: #3D3F45;
    --hell-grau: #F0F0F0;
    --rot: #A62C21;
    --weiss: #FFF;
    --primaere-schriftart: Raleway;
    --sekundaere-schriftart: "Helvetica Neue";
    --tertiaere-schriftart: Arial;
    --fallback-schriftart: sans-serif;
    --border-transition: border .5s ease-in-out;
    --border-style: 2px solid;
}

body {
    margin: 0;
    font-family: var(--primaere-schriftart, --sekundaere-schriftart, --tertiaere-schriftart, --fallback-schriftart);
}

*{
    box-sizing: border-box;
}

section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (max-width: 1366px) {

    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 1024px) {

    section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {

    section {
        padding-top: .5rem;
        padding-bottom: .5rem;
    }
}

/* ===Generelles === */

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.active {
    background-color: var(--rot) !important;
}

.wichtiger-text {
    font-weight: bold;
}

.screenreader {
    display: none;
}

.intro-container {
    text-align: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.intro-container > h1 {
    font-size: 1.6rem;
    text-transform: uppercase;
}

.intro-container > p {
    font-size: 1.2rem;
}

@media (max-width: 1366px) {

    .intro-container {
        width: 90%;
    }

    .intro-container > p {
        margin-bottom: .5rem;
    }
}

@media (max-width: 1024px) {

    .intro-container {
        width: 90%;
        margin-bottom: 1rem;
    }

    .intro-container > p {
        margin-bottom: 0;
    }
}

/* === Buttons === */

.btn-typ-1 {
    background-color: var(--rot);
    border: var(--border-style) var(--rot);
    color: var(--weiss);
    padding: .4rem .6rem;
    transition: var(--border-transition);
}

.btn-typ-1:hover {
    border: var(--border-style) var(--hell-grau);
    font-weight: normal;
}

.btn-typ-2 {
    background-color: transparent;
    border: var(--border-style) var(--hell-grau);
    color: var(--hell-grau);
    padding: .4rem .6rem;
    transition: color .5s ease-in-out, var(--border-transition);
}

.btn-typ-2:hover {
    color: var(--rot);
    border: var(--border-style) var(--rot);
    font-weight: normal;
}

.btn-typ-3 {
    background-color: transparent;
    border: var(--border-style) var(--dunkel-grau);
    font-size: 1rem;
    color: var(--dunkel-grau);
    transition: var(--border-transition);
}

.btn-typ-3:hover {
    border: var(--border-style) var(--rot);
    font-weight: normal;
}



/* === Navigationsleiste ===*/

#header-nav {
    width: 100%;
    height: 50px;
    background-color: var(--dunkel-grau);
    position: relative;
    font-weight: bold;
    font-size: 1.1rem;
}

#header-nav a > img {
    height: 30px;
    width: auto;
    float: left;
    margin: .55rem;
}

#header-nav ul {
    margin: 0;
    padding: 0;
    float: right;
    height: 100%;
}

#header-nav ul >li {
    display: inline-block;
    height: 100%;
    padding: 0 .4rem 0 .4rem;
}

#header-nav ul > li a {
    margin-top: .8rem;
    display: inline-block;
}

#header-nav ul > li > a:link {
    color: var(--weiss);
    text-decoration: none;
}

#header-nav ul > li > a:visited {
    color: var(--weiss);
    text-decoration: none;
}

#header-nav ul > li > a:active {
    color: var(--hell-grau);
    text-decoration: none;
}

#header-nav ul > li > a:hover {
    color: var(--hell-grau);
    text-decoration: none;
}

#header-nav .col-6 {
    padding-top: 0%;
    padding-bottom: 0%;
}

#header-nav .container,
#header-nav .row,
#header-nav .col-6 {
    height: 100%;
}

.logo-link {
    display: inline-block;
}


/* === Navigationsleitse (Mobil) === */

#mobile-nav-button {
    color: var(--weiss);
    float: right;
    font-size: 2rem;
    border: var(--border-style) var(--weiss);
    width: 37px;
    height: 37px;
    position: relative;
    margin-top: .4rem;
    margin-bottom: .5rem;
}

#mobile-nav-button > span {
    position: absolute;
    bottom: -2px;
    left: 7px;
}

#mobile-nav-content > ul > li {
    display: block;
    background-color: var(--dunkel-grau);
    height: 50px;
    padding: 0 1.2rem;
    text-align: center;
}

#mobile-nav-dropdown {
    position: relative;
    float: right;
}

#mobile-nav-content {
    position: absolute;
    right: 0;
    top: 50px;
    display: none;
}

#mobile-nav-dropdown:hover >#mobile-nav-content {
    display: block;
}

#mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    #desktop-nav {
        display: none;
    }
    #mobile-nav {
        display: block;
    }
}


/* === Header-Banner ===*/

#header-banner {
    width: 100%;
    height: 0;
    padding-top: 20.83%;
    background: url(../img/hintergrund.jpg) no-repeat center center;
    background-size: contain;
}

#header-banner-klein {
    width: 100%;
    height: 0;
    padding-top: 15.625%;
    background: url(../img/hintergrund-klein.jpg) no-repeat center center;
    background-size: contain;
}

/* === Newsletter-Bereich === */

#newsletter-bereich {
    width: 100%;
    background-color:var(--dunkel-grau);
    padding-bottom: 0%;
    padding-top: 0%;
}

#nb-werbetext {
    color: var(--weiss);
    font-size: 1.2rem;
}

#nb-form {
    margin-top: .7rem;
    float: right;
    width: 100%;
    text-align: right;
}

#nb-email-input {
    width: 78%;
    height: 35px;
    border: var(--border-style) white;
    padding: .4rem;
}

#nb-btn {
    height: 35px;
}

@media (max-width: 1822px) {
    #nb-email-input {
        width: 70%;
        height: 35px;
        border: var(--border-style) white;
        padding: .4rem;
    }
}

@media (max-width: 1358px) {
    #nb-email-input {
        width: 100%;
        margin-bottom: .5rem;
    }
    #nb-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #nb-werbetext {
        display: none;
    }

    #nb-form {
        margin-top: 0;
    }

    #newsletter-bereich .col-4 {
        display: none;
    }
}

@media (max-width: 480px) {
    #nb-email-input {
        height: 25px;
    }

    #nb-btn {
        height: 25px;
        padding: .1rem;
    }
}

/* === Video - Bereich === */

#video-bereich {
    background-color: var(--dunkel-grau);
    color: var(--hell-grau);
}

#video-bereich video {
    width: 35%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

@media (max-width: 1440px) {

    #video-bereich video {
        width: 45%;
    }
}

@media (max-width: 1024px) {

    #video-bereich video {
        width: 60%;
    }
}

@media (max-width: 768px) {

    #video-bereich video {
        width: 75%;
    }
}

@media (max-width: 480px) {

    #video-bereich video {
        width: 100%;
    }
}

/* === Service Bereich === */

#service-bereich {
    background-color: var(--hell-grau);
}

.service-box {
    text-align: center;
    width: 80%;
}

.service-box h1 {
    font-size: 1.4rem;
}

#service-bereich .row:nth-of-type(2) > .col-2:first-of-type > .service-box {
    margin-right: 0;
    margin-left: auto;
}

#service-bereich .row:nth-of-type(2) > .col-2:nth-of-type(2) > .service-box {
    margin-left: auto;
    margin-right: auto;
}

.service-icon {
    width: 120px;
    height: 120px;
    background-color: var(--dunkel-grau);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: transform 1s;
}

.service-icon:hover {
    transform: rotateZ(360deg);
}

#guenstig-icon {
    background: var(--dunkel-grau) url("./../img/services-sprite.png") left 0 top 0;
}

#schnell-icon {
    background: var(--dunkel-grau) url("./../img/services-sprite.png") left -120px top 0;
}

#modern-icon {
    background: var(--dunkel-grau) url("./../img/services-sprite.png") left -240px top 0;
}

@media (max-width : 768px) {

    #service-bereich > .container > .row:nth-of-type(2) > .col-2 > .service-box {
        margin-right: auto;
        margin-left: auto;
    }

    /* #service-bereich .row:nth-of-type(2) > .col-2:first-of-type > .service-box {
        margin-right: auto;
        margin-left: auto;
    }

    #service-bereich .row:nth-of-type(2) > .col-2:nth-of-type(3) > .service-box {
        margin-right: auto;
        margin-left: auto;
    } */

}

@media (max-width: 480px) {

    .service-box {
        width: 100%;
    }
}

/* === Über-uns-Bereich === */

#über-uns-bereich {
    background-color: var(--weiss);
}

#über-uns-container {
    position: relative;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

#über-uns-container > img {
    position: absolute;
    top: 0;
    right: 100px;
    height: 100%;
}

#über-uns-container > p {
    width: 75%;
    font-size: 1.2rem;
    margin-top: 0;
}

#über-uns-container > h1 {
    margin-top: 0;
}

@media (max-width: 1440px) {
    
    #über-uns-container > img {        
        right: 50px;
    }
}

@media (max-width: 1280px) {
    
    #über-uns-container > img {        
        right: 0;
    }
}

@media (max-width: 1140px) {
    
    #über-uns-container > p {
        width: 70%;
    }
}

@media (max-width: 1024px) {

    
    #über-uns-container > p {
        width: 100%;
    }

    #über-uns-container > img {        
        display: none;
    }
}

/* === Footer === */

#footer {
    background-color: var(--dunkel-grau);
    height: 2.8rem;
    color: var(--weiss);
}

#footer-nav {
    float: right;
}

#footer-nav a {
    text-decoration: none;
}

#footer-nav a:link {
    color: var(--weiss);
}

#footer-nav a:visited {
    color: var(--weiss);
}

#footer-nav a:active {
    color: var(--weiss);
}

#footer-nav a:hover {
    color: var(--hell-grau);
}

@media (max-width: 565px) {
    #footer span {
        display: none;
    }
}

/* === Animiertes Logo === */

@-webkit-keyframes logoAnimation {
    0%      { transform: rotateZ(0deg);}
    11.111%     { transform: rotateZ(0deg);}
    22.222%     { transform: rotateZ(90deg);}
    33.333%     { transform: rotateZ(90deg);}
    44.444%     { transform: rotateZ(180deg);}
    55.555%     { transform: rotateZ(180deg);}
    66.666%     { transform: rotateZ(270deg);}
    77.777%     { transform: rotateZ(270deg);}
    88.888%    { transform: rotateZ(360deg);}
    100%    { transform: rotateZ(360deg);}
}

@keyframes logoAnimation {
    0%      { transform: rotateZ(0deg);}
    11.111%     { transform: rotateZ(0deg);}
    22.222%     { transform: rotateZ(90deg);}
    33.333%     { transform: rotateZ(90deg);}
    44.444%     { transform: rotateZ(180deg);}
    55.555%     { transform: rotateZ(180deg);}
    66.666%     { transform: rotateZ(270deg);}
    77.777%     { transform: rotateZ(270deg);}
    88.888%    { transform: rotateZ(360deg);}
    100%    { transform: rotateZ(360deg);}
}

#animiertes-logo {
    height: 150px;
    width: 150px;
    background-color: var(--dunkel-grau);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4rem;
    padding: 25px;
}

#animiertes-logo > img {
    display: block;
    width: 100px;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
    -webkit-animation: logoAnimation 5s ease-in-out infinite alternate;
            animation: logoAnimation 5s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
    #animiertes-logo {
        display: none;
    }
}

/* === Leistungen - Seite === */

.leistung {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.leistung:nth-of-type(even) {
    background-color: var(--hell-grau);
}

.flex-container {
    display: flex;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-around;
    align-items: center;
}

.flex-container > .intro-container {
    width: 100%;
}

.leistungs-box {
    background-color: var(--dunkel-grau);
    flex-basis: 25%;
    color: var(--weiss);
    padding: 2rem 4rem;
    text-align: center;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.leistungs-box-empfohlen {
    flex-basis: 27.5%;
    min-height: 700px;
    box-shadow: 0 0 20px 0 var(--dunkel-grau);
    font-size: 1.05rem;
}

.leistungs-box h1 {
    margin-bottom: 0;
    margin-top: 1.5rem;
}

.leistungs-box ul {
    padding: 0;
}

.leistungs-box ul > li {
    list-style-position: inside;
    margin-bottom: .5rem;
}

.leistung-auswählen-btn {
    width: 50%;
    height: 2.5rem;
    font-size: 1rem;
    margin-top: .5rem;
    margin-bottom: 1.5rem;
    min-width: 170px;
}

@media (max-width: 1800px) {
    
    .leistungs-box {
        flex-basis: 27.5%;
    }
    
    .leistungs-box-empfohlen {
        flex-basis: 30%;
    }
}

@media (max-width: 1638px) {

    .leistungs-box {
        flex-basis: 30%;
    }
    
    .leistungs-box-empfohlen {
        flex-basis: 32.5%;
    }
        
}

@media (max-width: 1503px) {
    
    .leistungs-box {
        padding: 1rem 2rem;
    }

    .flex-container {
        align-items: stretch;
    }

    .leistungs-box-empfohlen {
        min-height: initial;
    }
    
}

@media (max-width: 1366px) {

    .flex-container {
        width: 90%;
    }
}

@media (max-width: 1100px) {
    
    .flex-container {
        width: 80%;
        flex-direction: column;
    }

    .leistungs-box {
        margin-bottom: 2rem;
        min-height: initial;
    }
}

@media (max-width: 1024px) {

    .flex-container {
        width: 100%;
        padding-right: 4rem;
        padding-left: 4rem;
    }

    /* .intro-container {
        margin-right: 2rem;
        margin-left: 2rem;
    } */
}

@media (max-width: 768px) {

    .flex-container {
        width: 90%;
    }
}

@media (max-width: 623px) {

    .flex-container {
        padding: 0;
    }

    .leistungs-box {
        padding: 1rem 2rem;
    }

}

@media (max-width: 409px) {

    .leistungs-box {
        padding: 1rem 2rem;
    }
}

@media (max-width: 338px) {

    .leistungs-box {
        padding: .5rem 1rem 2rem 1rem;
    }
}



/* === Kontakt - Seite === */

#kontakt-bereich {
    padding-top: 1rem;
}

#kontakt-formular input,
#kontakt-formular textarea {
    width: 100%;
    border: var(--border-style) var(--dunkel-grau);
    padding: .5rem;
    font-size: 1rem;
    font-family: var(--primaere-schriftart, --sekundaere-schriftart, --tertiaere-schriftart, --fallback-schriftart);
    color: var(--dunkel-grau);
    transition: border 5s ease-in-out;
}

#kontakt-formular textarea {
    height: 100px;
}

#kontakt-formular input:hover,
#kontakt-formular textarea:hover {
    border: var(--border-style) var(--rot);
}

#absendenButton {
    width: 150px;
    height: 39px;
}



#kontakt-formular {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

@media (max-width: 1366px) {

    #kontakt-formular {
        width: 90%;
    }
}

@media (max-width: 1024px) {

    #kontakt-formular {
        width: 90%;
    }
}

@media (max-width: 768px) {

    #kontakt-formular button {
        width: 100%;
    }
}

/* === Impressum === */

#impressum {
    padding-top: 1rem;
}

#impressum a {
    color: var(--dunkel-grau);
    text-decoration: none;
    font-weight: bold;
}

/* === GRID-SYSTEM ===*/

.container {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.row::after {
    content: "";
    clear: both;
    display: block;
}

[class*='col-'] {
    float: left;
    min-height: 1px;
    padding: .8rem;
}

.col-1 { width: 16.666%;    }
.col-2 { width: 33.333%;    }
.col-3 { width: 50%;        }
.col-4 { width: 66.666%;    }
.col-6 { width: 100%;       }


@media (max-width: 1024px) {

    .col-1 { width: 33.333%;    }

}

@media (max-width: 768px) {
    .col-1 { width: 50%;    }
    .col-2 { width: 100%;   }
    .col-3 { width: 100%;   }
    .col-4 { width: 100%;   }

}

@media (max-width: 480px) {
    .col-1 { width: 100%;   }
    .col-2 { width: 100%;   }
    .col-3 { width: 100%;   }
    .col-4 { width: 100%;   }
}

/* === Leistungen-Bereich === */

#leistungen-bereich {
    padding-top: 1rem;
}

.leistungs-teaser-box {
    background-color: var(--dunkel-grau);
    text-align: center;
    color: var(--weiss);
    padding: 1rem 3rem 2.5rem;
    width: 60%;
    margin-bottom: 1.6rem; 
}

#leistungen-bereich .row > .col-3:nth-of-type(even) > .leistungs-teaser-box {
    margin-right: auto;
    margin-left: 1rem;
}

#leistungen-bereich .row > .col-3:nth-of-type(odd) > .leistungs-teaser-box {
    margin-right: 1rem;
    margin-left: auto;
}

@media (max-width: 480px) {
    .leistungs-teaser-box {
        padding: 1rem 1.5rem 2.5rem; 
    }
}

.leistungs-teaser-box > h2 {
    font-size: 1.4rem;
}

.leistung-ansehen-btn {
    text-decoration: none;
    height: 40px;
    display: inline-block;
    padding-top: .5rem;
    width: 40%;
    min-width: 100px;
    margin-top: 1rem;
}

.leistung-ansehen-btn:link {
    color: var(--weiss);
}

.leistung-ansehen-btn:visited {
    color: var(--weiss);
    
}

.leistung-ansehen-btn:active {
    color: var(--weiss);
}

.leistung-ansehen-btn:hover {
    color: var(--rot);
    border: var(--border-style) var(--rot);
}

@media (max-width: 1366px) {

    .leistungs-teaser-box { 
        width: 80%;
    }
}

@media (max-width: 1024px) {

    .leistungs-teaser-box {
        width: 100%;
        margin-bottom: .6rem;
    }

    #leistungen-bereich .row > .col-3:nth-of-type(even) > .leistungs-teaser-box {
       margin-left: .5rem;
    }
    
    #leistungen-bereich .row > .col-3:nth-of-type(odd) > .leistungs-teaser-box {
        margin-right: .5rem;
    }
}

@media (max-width: 768px) {

    #leistungen-bereich .row > .col-3:nth-of-type(even) > .leistungs-teaser-box {
       margin-left: 0;
    }
    
    #leistungen-bereich .row > .col-3:nth-of-type(odd) > .leistungs-teaser-box {
        margin-right: 0;
    }
}

