/*=== Schriftarten einbinden ===*/
@font-face {
    font-family: "Raleway";
    src:
        url("../fonts/Raleway-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "Raleway";
    src:
        url("../fonts/Raleway-Italic.ttf") format("truetype");
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: "Raleway";
    src:
        url("../fonts/Raleway-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: "Raleway";
    src:
        url("../fonts/Raleway-BoldItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: bold;
}

/*=== Animationen ===*/
@keyframes bildDrehen {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*=== Variablen definieren ===*/
:root {
    --blue: #1F4E8C;
    --darkgrey: #454545;
    --lightgrey: #d3d3d3;
    --red: #A62C21;
}

/*=== generelle Einstellungen ===*/
html {
    font-family: "Raleway", Helvetica, Arial, sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

body {
    margin: 3.8rem 0 0 0;
}

section {
    padding-top: 40px;
    padding-bottom: 20px;
}

.intro {
    text-align: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.intro h1 {
    text-transform: uppercase;
    font-size: 2rem;
}

.intro #nameFirma {
    font-size: 2.5rem;
    font-weight: bold;
}

p {
    padding: 5px 10px 5px 10px;
    margin: 10px 0 10px 0;
}

form input {
    border-radius: 3px;
    font-size: 1rem;
    border: none;
    padding: 5px;
}

button {
    cursor: pointer;
    border: none;
    padding: 5px 10px 5px 10px;
    border-radius: 3px;
    font-size: 1rem;
}

.btn-rot {
    background-color: var(--red);
    color: white;
}

.btn-dunkelgrau {
    background-color: var(--darkgrey);
    color: white;
}

a {
    text-decoration: none;
    color: black;
}

:focus {
    outline: 1.5px solid var(--blue);
    box-shadow: 2px 2px 8px 4px var(--blue);
}

.onlyScreenreader {
    display: none;
}

/*=== Header-Bereich Allgemein ===*/
header {
    background-color: var(--darkgrey);
}

#containerHeader {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--darkgrey);
    z-index: 10;
}

#logo img {
    height: 3rem;
    width: 3rem;
    margin: 5px;
    display: inline;
    border-radius: 8px;
    float: left;
    border: 2px solid black;
}

#logo p {
    margin: 5px;
    font-weight: bold;
    background-color: var(--red);
    color: black;
    border-radius: 8px;
    border: 2px solid black;
}

header>img {
    width: 100vw;
    height: 45vh;
    object-fit: cover;
    padding: 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

nav ul li a:hover {
    background-color: grey;
}

nav ul li a.active {
    background-color: var(--red);
}

/*=== Header-Bereich NAV DESKTOP ===*/
#navDesktop>ul>li {
    display: inline-block;
}

#navDesktop>ul>li>a {
    display: inline-block;
    padding: 20px 10px 20px 10px;
}

/*=== Header-Bereich NAV MOBILE ===*/
#navMobile {
    display: none;
}

#navMobile p {
    font-size: 2.5rem;
    padding: 0;
    margin: 0;
    color: white;
    border: 1px solid white;
    border-radius: 3px;
    padding: 0 5px 0 5px;
    margin: 5px 10px 0 0;
    position: relative;
}

#navMobile nav {
    position: absolute;
    right: 10px;
    background-color: var(--darkgrey);
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    border-left: 1px solid white;
}

#navMobile ul>li {
    display: block;
    text-align: center;
}

#navMobile ul>li>a {
    display: inline-block;
    padding: 10px;
}

#navMobile nav {
    display: none;
}

#navMobile p:hover~nav {
    display: block;
}

#navMobile nav:hover {
    display: block;
}

/*=== Newsletter-Bereich ===*/
#containerNewsletter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100vw;
    font-size: 1.2rem;
    padding: 0;
    background-color: var(--darkgrey);
    color: white;
}

#containerNewsletter span {
    font-weight: bold;
}

#containerNewsletter form {
    margin: 10px;
}

#containerNewsletter form input {
    width: 200px;
}

/*=== Leistungen-Bereich ===*/
#containerLeistungen {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.leistungen {
    border-radius: 5px;
    padding: 10px;
    margin: 10px;
    max-width: 40%;
    min-width: 250px;
    text-align: center;
    background-color: var(--darkgrey);
    color: white;
}

.leistungen a {
    border: 1px solid grey;
    border-radius: 3px;
    padding: 5px 10px 5px 10px;
    display: inline-block;
    margin: 10px;
}

.leistungen a:hover {
    background-color: grey;
}

/*=== Video-Bereich ===*/
video {
    display: block;
    width: 60%;
    height: auto;
    background-color: var(--darkgrey);
    margin-left: auto;
    margin-right: auto;
}

/*=== Service-Bereich ===*/
#containerService {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    color: white;
}

.service {
    max-width: 250px;
    padding: 15px;
    background-color: var(--darkgrey);
    border-radius: 5px;
    margin: 10px;
}

.service img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    animation: bildDrehen 4s infinite linear;
}

#imgService1 {
    object-position: 0;
}

#imgService2 {
    object-position: -120px;
}

#imgService3 {
    object-position: -240px;
}

/*=== Über uns-Bereich ===*/
#containerUeberUns {
    width: 80%;
    min-height: 250px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--darkgrey);
    color: white;
    padding: 10px 20px 10px 20px;
    border-radius: 3px;
}

#containerUeberUns img {
    width: 10vw;
    height: 250px;
    object-fit: cover;
    float: right;
    padding: 10px 10px 20px 20px;
    border-radius: 15px;
}

/*=== Footer-Bereich ===*/
footer {
    margin-top: 50px;
    clear: right;
    display: flex;
    justify-content: space-between;
    background-color: var(--darkgrey);
    color: white;
    padding: 5px 50px 5px 50px;
}

/*=== SEITE LEISTUNGEN ===*/
#leistung2,
#leistung4 {
    background-color: var(--darkgrey);
}

#leistung2 .intro,
#leistung4 .intro {
    color: white;
}

.containerPakete {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    margin-top: 40px;
}

.paket {
    padding: 10px;
    background-color: var(--lightgrey);
    border: 1px solid grey;
    margin: 20px;
    border-radius: 5px;
    min-width: 300px;
    flex-basis: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.paket ul {
    list-style-position: inside;
    padding: 0;
}

.paket ul>li {
    line-height: 1.5rem;
}

.paket button:hover {
    background-color: grey;
}

.empfehlung {
    position: relative;
    box-shadow: 5px 5px 20px 3px var(--darkgrey);
}

#leistung2 .empfehlung,
#leistung4 .empfehlung {
    box-shadow: 3px 3px 15px 1px var(--lightgrey);
}

.tipp {
    position: absolute;
    top: -20px;
    left: 80%;
    transform: rotate(25deg);
    background-color: var(--red);
    border-radius: 2px;
    color: white;
    padding: 5px;
    transition: font-weight 1s;
}

.tipp:hover {
    font-weight: bold;
}

#footerLeistungen {
    margin-top: 2px;
}

/*=== SEITE KONTAKT ===*/
#kontaktformular {
    width: 70%;
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
}

#kontaktformular>div {
    margin: 20px 0;
}

#kontaktformular input {
    border: 1px solid var(--darkgrey);
    margin-bottom: 5px;
}

#vorname,
#nachname {
    width: 200px;
    margin-right: 10px;
}

#emailKontaktformular {
    width: 300px;
}

#kontaktformular>textarea {
    width: 100%;
    height: 200px;
    font-size: 1rem;
    font-family: "Raleway", Helvetica, Arial, sans-serif;
}

#kontaktformular>button:hover {
    background-color: grey;
}

/*=== SEITE IMPRESSUM ===*/
#impressum {
    margin: 100px 50px 50px 50px;
}

/*=== Media Queries ===*/
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }

    #navDesktop {
        display: none;
    }

    #navMobile {
        display: block;
    }

    #containerNewsletter form input {
        margin-bottom: 5px;
    }

    .intro {
        width: 85%;
    }

    video {
        width: 70%;
    }

    .service img {
        width: 100px;
        height: 100px;
    }

    #imgService1 {
        object-position: 0;
    }

    #imgService2 {
        object-position: -100px;
    }

    #imgService3 {
        object-position: -200px;
    }

    #containerUeberUns img {
        height: 200px;
    }

    #kontaktformular {
        width: 75%;
        margin-top: 60px;
    }

    #adresseFirma {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 12px;
    }

    .intro {
        width: 90%;
    }

    video {
        width: 80%;
    }

    .service img {
        width: 80px;
        height: 80px;
    }

    #imgService1 {
        object-position: 0;
    }

    #imgService2 {
        object-position: -80px;
    }

    #imgService3 {
        object-position: -160px;
    }

    #containerUeberUns img {
        height: 150px;
    }

    #kontaktformular {
        width: 80%;
        margin-top: 40px;
    }
}