@import url("reset.css");

.clear {
    clear: both;
}

/* roboto-condensed-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: 'Roboto Condensed';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/roboto-condensed-v27-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-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: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}



body a {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

* {
    box-sizing: border-box;
    transition: 0.5s;

}


:root {
    --schrift: #434359;
    --blau: #2e337e;
    --rot: #e52629;
    --grau: #f4f3f4;
}

/*-+-+-+--+- HEADER/NAV +-+-+-++-*/

.navigation {
    width: 100%;
    position: relative;
    position: fixed;
    inset: 0;
    z-index: 9999;
    height: 143px;
}

nav {
    padding: 35px 10%;
    text-align: right;
    background: white;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li::before {
    content: '';
    background: url(../images/pfeil-rot-klein.png) no-repeat center center /contain;
    width: 10px;
    height: 18px;
    display: inline-block;
    padding-right: 10px;
}

nav a {
    color: var(--schrift);
}

nav a:hover {
    color: var(--rot);
    transition: 0.5s;
}

#logo {
    position: absolute;
    left: 10%;
    top: 37px;
}

.bottom-nav {
    background: var(--blau);
    text-align: right;
    padding: 0 10%;
}

.button {
    background: var(--rot);
    color: white;
    padding: 12px 20px;
    text-align: center;
    display: inline-block;
    font-family: 'Roboto Condensed';
    font-weight: 600;
}

.button:hover {
    opacity: 0.8;
    transition: 0.5s;
}

header {
    height: 950px;
    background: url(../images/hg-weiss.png), url(../images/entspannt.jpg);
    background-size: 75% 100%, cover;
    background-repeat: no-repeat;
    background-position: bottom left, center center;
    background-attachment: scroll, fixed;
    position: relative;
}

h1 {
    font-family: 'Roboto Condensed';
    font-weight: 600;
    text-transform: uppercase;
    font-size: 45px;
    color: var(--blau);
    background: white;
    padding: 5px 5px 5px 0;
    position: relative;
    display: inline;
}

h1::before {
    content: '';
    background: url(../images/pfeil-rot.png) no-repeat center center /contain;
    display: block;
    position: absolute;
    left: -50px;
    top: -12px;
    width: 45px;
    height: 78px;
}

.header-text {
    width: 55%;
    padding: 470px 0 0 10%;
    hyphens: auto;
}

.header-text h3 {
    font-size: 30px;
    color: var(--blau);
    font-weight: 600;
    font-family: 'Roboto Condensed';
}

.header-text p {
    background: white;
    padding: 5px 5px 5px 0;
    display: inline;
}

.line {
    background: var(--rot);
    height: 5px;
    width: 200px;
    margin: 25px 0;
}

/*-+-+-+--+- EXPERTE +-+-+-++-*/

.wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 150px 10%;
    max-width: 1800px;
    margin: 0 auto;
}

.col {
    width: 48%;
}

h2 {
    font-family: 'Roboto Condensed';
    font-weight: 600;
    text-transform: uppercase;
    font-size: 35px;
    color: var(--blau);
    position: relative;
}

h2::before {
    content: '';
    background: url(../images/pfeil-rot.png) no-repeat center center /contain;
    display: block;
    position: absolute;
    left: -40px;
    top: -5px;
    width: 35px;
    height: 60px;
}

h3 {
    font-size: 25px;
    color: var(--blau);
    font-weight: 600;
    font-family: 'Roboto Condensed';
}

#experte {
    background: url(../images/hg-blau.png) no-repeat bottom left var(--grau);
    position: relative;
}

#team {
    border: 20px solid var(--grau);
    max-width: 90%;
    margin: 0 auto;
}

.uebersicht {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 80%;
}

.vorteil {
    background: var(--blau);
    color: white;
    padding: 30px;
    text-align: center;
    font-family: 'Roboto Condensed';
    font-weight: 600;
    font-size: 20px;
    margin: 10px;
    width: 200px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.vorteil p {
    width: 100%;
    margin-top: 15px;
}

#experte .wrap {
    padding-top: 300px;
}

.vorteil img {
    display: block;
}

/*-+-+-+--+- VERMITTLUNG +-+-+-++-*/

#vermittlung {
    text-align: center;
}

#vermittlung .wrap {
    flex-wrap: wrap;
}

#vermittlung .col {
    width: 100%;
}

#vermittlung .line {
    display: inline-block;
}

#vermittlung h2 {
    display: inline-block;
}

#vermittlung h2::before {
    content: '';
    background: url(../images/pfeil-rot-runter.png) no-repeat center center /contain;
    display: block;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    top: -40px;
    height: 35px;
    width: 60px;
}

.box {
    margin: 0 15px;
}

.boxbild {
    width: 100%;
    height: 350px;
    object-fit: cover;
}


.box-text {
    background: var(--grau);
    padding: 30px;
    text-align: left;
}

h4 span {
    color: var(--rot);
}

h4 {
    font-family: 'Roboto Condensed';
    font-size: 20px;
    color: var(--blau);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/*-+-+-+--+- KONTAKT +-+-+-++-*/

#kontakt {
    background: url(../images/hg-weiss.png), url(../images/verkaeufer.jpg);
    background-repeat: no-repeat;
    background-position: bottom left, center center;
    background-size: 70% 100%, cover;
}

#kontakt .col {
    width: 50%;
}

#kontakt .wrap {
    justify-content: flex-start;
}

#kontakt-daten {
    background: var(--blau);
}

#kontakt-daten .wrap {
    flex-wrap: wrap;
}

#kontakt-daten .col {
    width: 100%;
}

#kontakt-daten {
    text-align: center;
}

#kontakt-daten .line {
    display: inline-block;
}

#kontakt-daten h2 {
    display: inline-block;
    color: var(--rot);
}

#kontakt-daten h2::before {
    content: '';
    background: url(../images/pfeil-rot-runter.png) no-repeat center center /contain;
    display: block;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    top: -40px;
    height: 35px;
    width: 60px;
}

#kontakt-daten h3 {
    color: white;
}

#kontakt-daten .col:last-of-type {
    display: flex;
    justify-content: center;
    align-items: center;
}

.daten {
    color: white;
    width: 30%;
    margin: 20px;
    text-align: left;
}

.daten b {
    color: var(--rot);
}

footer {
    background: var(--rot);
    padding: 10px 10%;
}

footer ul li {
    display: inline-block;
    margin-left: 15px;
}

footer a {
    color: white;
}

footer ul {
    position: fixed;
    background: var(--rot);
    color: white;
    padding: 5px;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

/*-+-+-+--+- SIDENAV +-+-+-++-*/

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999999;
    top: 0;
    left: 0;
    background-color: #f4f3f4;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    text-align: center;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #e52629;
    display: block;
    transition: 0.3s;

}

.sidenav a:hover {
    color: #e52629;
}

#resp-nav {
    text-align: center;
    width: auto;
    display: none;
    z-index: 999;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}

/* ================ Popups ================ */

#popup1 a {
    text-decoration: underline;
    font-style: italic;
    color: #915e36;
}

#popup1 .close-popup {
    color: white;
    text-decoration: none;
}


#popup1,
#popup2,
#popup3,
#popup4,
#popup5,
#popup6,
#popup7,
#popup8,
#popup9,
#popup10,
#popup11,
#popup12,
#popup13,
    {
    transform: scale(0.8)
}

.popup_visible #popup1,
.popup_visible #popup2,
.popup_visible #popup3,
.popup_visible #popup4,
.popup_visible #popup5,
.popup_visible #popup6,
.popup_visible #popup6,
.popup_visible #popup7,
.popup_visible #popup8,
.popup_visible #popup9,
.popup_visible #popup10,
.popup_visible #popup11,
.popup_visible #popup12,
.popup_visible #popup13 {
    transform: scale(1)
}

.popup-style {
    margin: 2rem 0;
    width: 60%;
    min-height: 20px;
    padding: 50px;
    background-color: white;
    border-radius: 7px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
    color: var(--white);
}

.popup-style h3 {
    margin-top: 0;
}

.popup-style p {
    margin: 0 0 20px 0;
}

.popup-style ul {
    margin: 0 0 20px 15px;
}

.popup-style ul li {
    list-style: disc;
}

.close-popup {
    position: absolute;
    right: 30px;
    bottom: -20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 10px;
    background: var(--gold);
    color: white;
    border-radius: 5px;
    transition: 0.5s;
    font-size: 20px
}


.close-popup:hover {
    background: var(--blau);
    color: white;
    transition: 0.4s
}

.close-popup img {
    width: 10px;
    height: 10px;
    cursor: pointer;
    display: block;
    margin-left: 5px
}

/*---------------------------------------
MEDIA Queries | Tablet | Phone
---------------------------------------*/

@media screen and (max-width: 1300px) {
    .header-text {
        background: rgba(255, 255, 255, 0.788);
        padding: 30px;
        position: absolute;
        bottom: 150px;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
    }

    h1, .header-text p {
        background: none;
        padding: 0;
    }

    header {
        background-size: 300px 250px, cover;
        background-position: bottom left, center right;
    }

    #kontakt .col {
        width: 70%;
    }

    #kontakt .col iframe {
        background: white;
        padding: 10px;
    }


}


@media screen and (max-width: 860px) {
    nav ul {
        display: none;
    }

    #resp-nav{
        display: block;
        position: fixed;
        z-index: 9999;
        right: 10%;
        top: 30px;
    }

    #logo {
        width: 170px
    }

    .header-text {
        width: 80%;
    }

    #kontakt-daten .col:last-of-type {
        flex-wrap: wrap;
    }

    .daten {
        width: 100%;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 20px;
    }

    #experte .wrap {
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    #experte .col {
        width: 100%;
        margin-bottom: 30px;
    }

    #team {
        width: 100%;
        max-width: 350px;
        display: block;
        margin: 0 auto;
    }

    #experte {
        background: url(../images/hg-blau.png) no-repeat bottom left var(--grau);
        background-size: 450px;
    }

    .uebersicht {
        flex-wrap: wrap;
    }

    .vorteil {
        width: 40%;
        padding: 10px;
        font-size: 15px;
    }

    .vorteil img {
        width: 30px;
    }

    #kontakt .col {
        width: 100%;
    }

    #kontakt {
        background: url(../images/hg-weiss.png), url(../images/verkaeufer.jpg);
        background-repeat: no-repeat;
        background-position: bottom left, center center;
        background-size: 250px, cover;


}

@media screen and (max-width: 500px) {
    h1 {
        font-size: 30px;
    }

    .header-text h3 {
        font-size: 20px;
    }

    .navigation .button{
        padding: 12px 10px;
    }
}

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

    .navigation .button{
        display: none;
    }

    .bottom-nav{
        height: 29px;
    }

    header{       
        background-position: bottom left, center right -302px;
    }
}