.page {
    position: relative;
    width: 100%;
}

#logo-container {
    z-index: 3000;
    width: 220px;
    margin: 0 auto;
}

#logo-container a {
    width: 220px;
    display: block;
}

#logo-container img {
    width: 100%;
}

@media (min-width: 992px) {
    #main-nav {
        position: fixed;
        padding-top: 15px;
        padding-bottom: 0;
        width: calc(100% - 30px);
        left: 15px;
        background: #FFFFFF;
    }

    .main-nav-inner {
        width: 100%;
        max-width: 1040px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        position: relative;
    }

    div.navbar-right,
    div.navbar-left {
        margin-top: 10px;
        margin-bottom: 24px;
    }
}

@media (max-width: 991px) {
    #main-nav {
        position: fixed;
        background: white;
        z-index: 5000;
        padding-bottom: 0;
        border-right: 15px solid #990000;
        border-left: 15px solid #990000;
        left: 0;
    }

    .navbar-toggler {
        position: absolute;
        top: 30px;
        left: 15px;
        background: #FFFFFF;
    }

    .navbar-left {
        padding-top: 60px;
    }

    div.navbar-right,
    div.navbar-left {
        margin-top: 0;
        margin-bottom: 0;
    }

    div.navbar-left {
        margin-top: 15px;
    }

    div.navbar-right {
        margin-bottom: 15px;
    }

    .go-to-top {
        right: 15px !important;
    }
}



/*.navbar-toggler {
    position: fixed;
    right: 10px;
    top: 10px;
}
*/


.navbar-right {
    justify-content: flex-end;
}

@media (min-width: 992px) {
    .navbar-right li {
        margin-left: 30px;
    }

    .navbar-left li {
        margin-right: 30px;
    }
}

.frame-top {
    position: absolute;
    width: 100%;
    height: 15px;
    background: #990000;
    top: 0;
    z-index: 4000;
}

.first-section {
    margin-top: -20px;
}

.second-section,
.fourth-section {
    background: #f4f8f3;
}

.text-box {
    padding: 5px 40px 20px;
    background-color: #FFFFFF;
    background-image: url("../img/Dreieck-big.gif");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: top center;
    margin-bottom: 55px;
}

.list-unstyled {
    text-transform: uppercase;
}

footer {
    background-image: url("../img/Dreieck-big-white.png");
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: top center;
    padding: 40px 22px 10px;
}

#home,
#nawrot,
#wiesinger,
#schwerpunkte,
#kontakt,
#arbeitsrecht,
#medizinrecht,
#verkehrsrecht,
#bau-immobilienrecht,
#miet-wohnungsrecht {
    position: absolute;
}

.image-wiesinger img,
.image-nawrot img {
    width: 100%;
}

@media (min-width: 992px) {
    #home,
    #nawrot,
    #wiesinger,
    #schwerpunkte,
    #kontakt,
    #arbeitsrecht,
    #medizinrecht,
    #verkehrsrecht,
    #bau-immobilienrecht,
    #miet-wohnungsrecht {
        margin-top: -82px;

    }

    .text-2-columns {
    }

    .image-wiesinger,
    .image-nawrot {
        padding: 0 58px;
    }
}

.go-to-top {
    position: absolute;
    bottom: 0;
    right: 0;
}
.go-to-top img {
    position: fixed;
    width: 50px;
    right: 25px;
    bottom: 10px;
}

.go-to-top:hover {
    opacity: .9;
}

.telefonnr {
    position: absolute;
    right: -186px;
    top: 12px;
    background: #f4f8f3;
    border-radius: 7px;
    padding: 3px 6px;
}

.telefonnr img {
    width: 15px;
    height: 17px;
    margin-right: 3px;
}

.telefonnr a:hover {
    text-decoration: none;
    color: rgba(0,0,0,.7);
}

@media (max-width: 1476px) {
    .telefonnr {
        display: none;
    }
}

@media (max-width: 540px) {
    .googlemaps {
        margin-bottom: 30px;
    }

    .image-wiesinger {
        margin-bottom: 30px;
    }

    .text-box {
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 35px;
    }

    .text-box:last-child {
        margin-bottom: 0;
    }

}

h1 {
    font-size: 2.2rem;
}

.fourth-section h2 {
    font-family: 'Barlow', sans-serif;
}

a {
    color: #990000;
}

a:hover {
    color: #990000;
    opacity: .7;
    cursor: pointer;
    text-decoration: none;
}

.footer-row {
    align-items: flex-end;
}

.impressum-content {
    text-align: left !important;
}
