@import url("reset.css");

/* 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.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/open-sans-v35-latin-regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('../fonts/open-sans-v35-latin-regular.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('../fonts/open-sans-v35-latin-regular.woff') format('woff'),
        /* Modern Browsers */
        url('../fonts/open-sans-v35-latin-regular.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('../fonts/open-sans-v35-latin-regular.svg#OpenSans') format('svg');
    /* Legacy iOS */
}

/* 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.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/open-sans-v35-latin-600.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('../fonts/open-sans-v35-latin-600.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('../fonts/open-sans-v35-latin-600.woff') format('woff'),
        /* Modern Browsers */
        url('../fonts/open-sans-v35-latin-600.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('../fonts/open-sans-v35-latin-600.svg#OpenSans') format('svg');
    /* Legacy iOS */
}

.clear {
    clear: both;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    color: var(--schrift);
    line-height: 1.5;
}

body a {
    text-decoration: none;
}

body b {
    font-weight: 600;
}

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

* {
    box-sizing: border-box;
}


:root {
    --schrift: #292929;
    --rot: #e13d32;
    --beige: #fef9ef;
}

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

header {
    height: 1000px;
    width: 100%;
    background: url(../images/beige-hg.png) no-repeat center right /cover;
    background-size: 55% 100%;
    position: relative;
}

.header-bild {
    background: url(../images/familie-unter-dach.jpg) no-repeat center center /cover;
    -webkit-box-shadow: -4px 6px 17px 0px rgba(0, 0, 0, 0.22);
    -moz-box-shadow: -4px 6px 17px 0px rgba(0, 0, 0, 0.22);
    box-shadow: -4px 6px 17px 0px rgba(0, 0, 0, 0.22);
    position: absolute;
    right: 0;
    top: 170px;
    width: 60%;
    height: 690px;
    z-index: 1;
}

.navigation {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.top-nav {
    background: var(--schrift);
    color: white;
    text-align: right;
    padding: 5px 10%;
}

.top-nav ul li {
    display: inline-block;
    margin-left: 10px;
}

.top-nav ul li a {
    color: white;
    font-size: 13px;
}

.top-nav ul li:nth-of-type(2) {
    color: var(--rot);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10%;
}

nav ul li {
    display: inline-block;
    margin: 0 5px;
}

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

nav ul li:after {
    content: '■';
    color: var(--rot);
    margin-left: 10px;
}

nav ul li:last-of-type:after, nav ul li:nth-of-type(3):after {
    content: '';
    margin: 0;
}

nav ul li a {
    transition: 0.5s;
}

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

.header-inhalt {
    position: absolute;
    left: 10%;
    top: 450px;
    width: 50%;
    z-index: 2;
}



h1 {
    font-size: 55px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.6;
    display: inline;
    background: var(--beige);
}

header p {
    width: 50%;
    text-align: justify;
    hyphens: auto;
}

.button {
    color: white;
    background: var(--rot);
    padding: 10px 15px;
    text-transform: uppercase;
    transition: 0.8s;
}

.button:hover {
    box-shadow: 0 80px 0 0 #fef9ef inset, 0 -80px 0 0 #fef9ef inset;
    transition: 0.8s;
    color: var(--rot);
}

#direktnav {
    position: fixed;
    right: 0;
    top: 250px;
    z-index: 99;
}

#direktnav li {
    width: 30px;
    height: 30px;
    background: var(--rot);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
}

#direktnav li a {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*-+-+-+--+- UEBER +-+-+-++-*/

#ueber .wrap {
    position: relative;
    margin-top: 130px;
}

.bild {
    width: 60%;
    height: 800px;
    background: url(../images/immobilien-maklerin.jpg) no-repeat center center /cover;
}

.text-box {
    width: 50%;
    background: var(--beige);
    padding: 50px;
    -webkit-box-shadow: -4px 6px 17px 0px rgba(0, 0, 0, 0.22);
    -moz-box-shadow: -4px 6px 17px 0px rgba(0, 0, 0, 0.22);
    box-shadow: -4px 6px 17px 0px rgba(0, 0, 0, 0.22);
    position: absolute;
    right: 10%;
    top: 220px;
}

h3 {
    color: var(--rot);
}

h3:before {
    content: '■';
    color: var(--rot);
    margin-right: 5px;
}

h2 {
    font-size: 45px;
    font-weight: 600;
    text-transform: uppercase;
}

.line {
    height: 3px;
    background: var(--rot);
    margin: 20px 0;
    width: 200px;
    display: inline-block;
}

/*-+-+-+--+- AUSZEICHNUNGEN +-+-+-++-*/

#auszeichnungen {
    background: url(../images/beige-hg.png) no-repeat center right;
    background-size: 90% 100%;
}

#auszeichnungen .wrap {
    padding: 100px 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

#auszeichnungen .wrap a {
    margin: 20px;
    transition: 0.8s;
}

#auszeichnungen .wrap a:hover {
    transition: 0.8s;
    transform: scale(0.95);
}

h4 {
    text-transform: uppercase;
    font-size: 25px;
    margin-bottom: 50px;
    width: 100%;
    font-weight: 600;
}

/*-+-+-+--+- LEISTUNGEN +-+-+-++-*/

#leistungen {
    background: url(../images/beige-hg.png) no-repeat center right;
    background-size: 90% 100%;
    height: 900px;
}

#leistungen .wrap {
    position: relative;
}

#leistungen .bild {
    width: 60%;
    height: 800px;
    background: url(../images/immobilienberatung.jpg) no-repeat center center /cover;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

#leistungen .text-box {
    width: 60%;
    background: white;
    padding: 50px 50px 50px 10%;
    -webkit-box-shadow: -4px 6px 17px 0px rgba(0, 0, 0, 0.22);
    -moz-box-shadow: -4px 6px 17px 0px rgba(0, 0, 0, 0.22);
    box-shadow: -4px 6px 17px 0px rgba(0, 0, 0, 0.22);
    position: absolute;
    left: 0;
    top: 220px;
    z-index: 2;
}

/*-+-+-+--+- VORTEILE +-+-+-++-*/

#vorteile .wrap {
    padding: 130px 10%;
    text-align: center;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

#vorteile .flex {
    display: flex;
}

.vorteil {
    width: 30%;
    text-align: justify;
    margin: 20px;
    hyphens: auto;
}

.vorteil span {
    color: var(--rot);
    font-weight: 600;

}

/*-+-+-+--+- PARALLAX +-+-+-++-*/

#parallax {
    background: url(../images/immobilienmaklerin-beraet.jpg) no-repeat center center /cover;
    width: 100%;
    background-attachment: fixed;
    position: relative;
}

#parallax .wrap {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 300px 10% 50px 10%;
}

#parallax p {
    background: var(--beige);
    display: inline;
    font-weight: 600;
    font-size: 25px;
    text-transform: uppercase;
    line-height: 2;
}

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

#kontakt {
    background: url(../images/beige-hg.png) no-repeat left bottom;
    background-size: 30% 90%;
}

#kontakt .col {
    width: 48%;
}

#kontakt .wrap {
    display: flex;
    justify-content: space-between;
    padding: 130px 10%;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.kontakt {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.kontakt img {
    margin-right: 7px;
    background: var(--rot);
    padding: 10px;
}

.kontakt b {
    margin-right: 5px;
}

.kontakt a {
    color: var(--rot);
}

#form {
    width: 100%;
    height: 800px;
}

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

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

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    background-color: rgba(59, 60, 58, 0.95);
    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: var(--beige);
    display: block;
    transition: 0.3s;

}

.sidenav a:hover {
    color: var(--beige);
}

#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: 1213px) {
    .header-bild {
        width: 40%;
    }

    .header-inhalt {
        width: 60%;
    }

    header p {
        width: 70%;
    }
}

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

    #resp-nav {
        display: block;
    }

    #resp-nav img {
        width: 40px;
    }

    .text-box {
        top: 93px;
    }

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

    .vorteil{
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 955px) {
    .header-bild {
        width: 100%;
    }

    .header-inhalt {
        width: 80%;
        top: 390px;
    }

    header p {
        width: 100%;
        background: #fef9efd8;
        padding: 15px;
        hyphens: auto;
    }

    h1 {
        font-size: 40px;
    }

    .bild, #leistungen .bild{
        width: 50%;
    }

    #leistungen .bild{
        background-position: right -150px center;
    }

    .text-box{
        width: 50%;
        background: #fef9efd8;
        right: 0;
        top: 0;
        height: 800px;
        hyphens: auto;
    }

    #leistungen .text-box{
        width: 50%;      
        left: 0;
        top: 0;
        height: 800px;
        hyphens: auto;
    }

    #ueber > div > div.text-box > img{
        max-width: 100%;
    }

    h2{
        font-size: 30px;
    }

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

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

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

.bild{
    width: 100%;
    height: 250px;
    background-position: top -50px center;
}

    .text-box{
        width: 100%;
        background: white;
        right: 0;
        left: 0;
        bottom: 0;
        top: unset;
        height:auto;
        hyphens: auto;    
        position: relative;   
    }

    #leistungen .bild{
        width: 100%;
        height: 250px;  
        position: relative;   
        left: 0;
        right: 0;
        background-position: center center;
    }

    #leistungen  .text-box{
        width: 100%;
        background: white;
        right: 0;
        left: 0;
        bottom: 0;
        top: unset;
        height:auto;
        hyphens: auto;    
        position: relative;   
    }

    #leistungen{
        height: auto;
    }

    #parallax {
        background-position: center left -150px;
    }

    #parallax p{
     line-height: 1.3;
    }

}

@media screen and (max-width: 420px) {
    h1 {
        font-size: 35px;
        hyphens: auto;
    }

    .header-inhalt {
        top: 250px;
    }

    #kontakt > div > div:nth-child(2) > p{
        hyphens: auto;
    }

    #kontakt b{
        hyphens: none;
    }

    header{
        height: 900px;
    }

    #parallax{
        background-attachment: scroll;
    }
}