@import url('https://fonts.verwaltungsportal.de/import/?family=Open+Sans:300,600,300i,600i%7CPlayfair+Display:400,700,400i,700i');

body {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    color: #2d2d2d;
    background: #ffffff;
    font-size: 1rem; /* 1rem = 16px */
    line-height: 1.5;
}

@media (min-width: 768px) {
    body {
        font-size: 1.125rem;
    }
}

a {
    color: #366fce;
}

a:hover {
    color: #366fce;
}

strong, b {
    font-weight: 600;
}

/* ------------------------------------------------ logo ------------------------------------------------ */

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo img {
        max-width: 210px;
        width: 100%;
    }
}

/* -------------------------------------------- navigation -------------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav {
        background: #ffffff;
        padding: 10px 0;
    }

    #burgerButton {
        font-size: 0;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #ffffff;
        -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButtonInner2, #burgerButton:after, #burgerButtonInner {
        background-color: #663333;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        -webkit-transition: transform 200ms linear, opacity 200ms linear;
        -moz-transition: transform 200ms linear, opacity 200ms linear;
        -ms-transition: transform 200ms linear, opacity 200ms linear;
        -o-transition: transform 200ms linear, opacity 200ms linear;
        transition: transform 200ms linear, opacity 200ms linear;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner {
        -webkit-transform: rotate(-45deg) translate(-6px, 6px);
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner2 {
        opacity: 0;
    }

    #burgerButton[aria-expanded="true"]:after {
        -webkit-transform: rotate(45deg) translate(-4px, -6px);
        transform: rotate(45deg) translate(-4px, -6px);
    }

    #burgerButtonInner {
        top: 16px;
    }

    #burgerButtonInner2 {
        top: 24px;
    }

    #burgerButton:after {
        top: 32px;
        content: "";
        display: block;
    }

    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        top: 0;
        background: #ffffff;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
        -webkit-transition: left 300ms linear, opacity 300ms linear;
        -moz-transition: left 300ms linear, opacity 300ms linear;
        -ms-transition: left 300ms linear, opacity 300ms linear;
        -o-transition: left 300ms linear, opacity 300ms linear;
        transition: left 300ms linear, opacity 300ms linear;
    }

    .navbar-collapse[aria-expanded="true"],
    .navbar-collapse.in {
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-header {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
    }

    .navbar-toggle::before {
        content: "";
        opacity: 0;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 0;
        z-index: -1;
        display: block;
        background-color: rgba(0, 0, 0, 0.5);
        -webkit-transition: width 300ms linear, opacity 300ms linear;
        -moz-transition: width 300ms linear, opacity 300ms linear;
        -ms-transition: width 300ms linear, opacity 300ms linear;
        -o-transition: width 300ms linear, opacity 300ms linear;
        transition: width 300ms linear, opacity 300ms linear;
    }

    .navbar-toggle[aria-expanded="true"]::before {
        opacity: 1;
        width: 90px;
    }
}

@media (min-width: 575px) and (max-width: 991px) {
    .navbar-collapse {
        width: 60%;
    }

    .navbar-collapse.collapse.in:after,
    .navbar-toggle[aria-expanded="true"]::before {
        width: 40%;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav {
        position: relative;
        padding: 15px 0;

    }

    nav.horizontally .navbar-nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: end !important;
        -ms-flex-pack: end !important;
        justify-content: flex-end !important;
        -webkit-box-align: center !important;
        -ms-flex-align: center !important;
        align-items: center !important;
    }

    nav.horizontally .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    nav.horizontally .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav > li, nav.horizontally .navbar-nav > li > .dropdown-menu > li {
        position: relative;
    }
}

/* ---------------------------------------------- toplevel ---------------------------------------------- */

.navbar-default .navbar-nav > li > a {
    color: #663333;
    font-weight: 300;
    text-align: center;
    padding: 10px 5px;
    position: relative;
    font-size: 1.125rem;
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav > li > a {
        padding: 20px 0px;
        color: #663333;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .navbar-default .navbar-nav > li + li {
        margin-left: 20px;
    }
}

@media (min-width: 1200px) {
    .navbar-default .navbar-nav > li + li {
        margin-left: 30px;
    }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) and (min-width: 992px) {
    .navbar-default .navbar-nav > li > a {
        display: block;
    }
}


/* -------------------------------------------- toplevel-over ------------------------------------------- */

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.navbar-nav > li.open > a,
.navbar-nav > li.open > a:hover,
.navbar-nav > li.open > a:focus,
.navbar-nav > li[class$="_over"] > a,
.navbar-nav > li[class$="_over"] > a:hover,
.navbar-nav > li[class$="_over"] > a:focus {
    color: #316fec;
}


/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

.navbar-default .navbar-nav > li > .dropdown-menu, .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
    background-color: rgba(255, 255, 255, 1);
    -webkit-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav > li > .dropdown-menu {
        margin-top: 12px;
        left: 50%;
        -moz-transform: translate(-50%, 0);
        -webkit-transform: translate(-50%, 0);
        -o-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
    }

    .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
        margin-left: 10px;
    }
}

/* --------------------------------------------- secondlevel + thirdlevel  -------------------------------------------- */

.navbar-default .navbar-nav > li > .dropdown-menu > li > a, .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a {
    background-color: transparent;
    color: #663333;
    font-weight: 300;
    text-align: center;
    padding: 6px 25px;
    position: relative;
    font-size: 1.125rem;
}

/* ------------------------------------------ secondlevel + thirdlevel over ------------------------------------------ */

.navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar-nav > li > .dropdown-menu > li > a:focus,
.navbar-nav > li > .dropdown-menu > li.open > a,
.navbar-nav > li > .dropdown-menu > li.open > a:hover,
.navbar-nav > li > .dropdown-menu > li.open > a:focus,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:hover,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:focus,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:hover,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:focus,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:hover,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:focus,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a:hover,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a:focus {
    color: #663333;
    background-color: #e3ecfd;
}

/* ------------------------------------------------ banner ------------------------------------------------ */

#slider, #headerpic {
    overflow: hidden;
    max-height: 440px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

@media (min-width: 992px) {
    body.index #slider, body.index #headerpic {
        max-height: 589px;
    }

    #headerpic a.nivo-prevNav {
        left: 65px;
    }

    #headerpic a.nivo-nextNav {
        right: 65px;
    }
}

.slider-wrapper, #slider {
    height: 100%;
}

.slider-mask {
    display: none;
}

/* --------------------------------------------- tab-section -------------------------------------------- */

#tabs {
    background: #f1f5f9;
    background-size: cover;
    padding: 30px 0;
    color: #ffffff;
    position: relative;
    z-index: 56;
}
@media (min-width: 1200px) {
    #tabs::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 20px;
        left: 50%;
        margin-left: 17%;
        height: calc(586px + (902 - 586) * (100vw - 1200px) / (1920 - 1200));
        width: calc(380px + (585 - 380) * (100vw - 1200px) / (1920 - 1200));
        max-height: 902px;
        max-width: 585px;
        background: url(../img/pseudo.png) center / contain no-repeat;
    }
}


#tabs-3 {
    position: relative;
    z-index: 62;
    margin-top: 20px;
}

@media (min-width: 768px) {
    #tabs {
        padding: 40px 0 0 0;
    }
}

@media (min-width: 992px) {
    #tabs-3 {
        margin-top: -80px;
    }

    #tabs {
        height: 530px;
    }
}

#tabs a {
    color: #ffffff;
}

.tab {
    background-color: #161616;
    position: relative;
    margin-top: 0;
    display: flex;
    min-height: 200px;
    line-height: 1.3;
    z-index: 55;
}

@media (max-width: 991px) {
    .tab {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 992px) {
    .tab {
        min-height: 370px;
        height: 370px;
    }
}

.textHeadline {
    margin: 0;
    color: #ffffff;
    font-family: "Playfair Display", sans-serif;
    width: 100%;
    font-size: 1.875rem;
    font-weight: 700;
}

#top-tab {
    position: relative;
    z-index: 60;
    margin-top: -70px;
    background: #67a5ff url(../img/bg-newsletter.png) bottom right no-repeat;
    padding: 20px 20px 80px 20px;
}

#top-tab,
#top-tab h1,
#top-tab h2,
#top-tab h3,
#top-tab h4,
#top-tab h5,
#top-tab h6 {
    color: #ffffff;
}

@media (min-width: 992px) {
    #top-tab {
        margin-top: -140px;
        padding: 30px 30px 100px 30px;
        margin-left: -15px;
        margin-right: -15px;
    }
}

@media (min-width: 1200px) {
    #top-tab {
        margin-top: -200px;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 72%;
        flex: 0 0 72%;
        max-width: 72%;
    }
}

.tabHeadline {
    margin: 0 0 30px 0;
    color: #ffffff;
    font-family: "Playfair Display", sans-serif;
    width: 100%;
    font-size: 1.1rem;
}

@media (min-width: 992px) {
    .tabHeadline {
        font-size: 1.5625rem;
    }
}

#tabs-3 .tabContent a,
.tab .tabContent2 a,
#top-tab a {
    color: #ffffff;
    background: #301d1f;
    font-family: "Playfair Display", sans-serif;
    font-weight: 700;
    line-height: 1;
    padding: 10px 20px;
    border-radius: 20px;
    margin-top: 10px;
    text-decoration: none;
}

.tab .tabContent2,
.tab .tabContent {
    font-weight: 400;
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    -webkit-box-shadow: 0px 0 15px 0px rgba(0, 0, 0, 0.06);
    -moz-box-shadow: 0px 0 15px 0px rgba(0, 0, 0, 0.06);
    box-shadow: 0px 0 15px 0px rgba(0, 0, 0, 0.06);
}

.tab .tabContent2 {
    margin-top: 160px;
}

.tab .tabContent {
    margin-top: 200px;
}

.tab .tabHeadline {
    margin: 0 0 30px 0;
    text-align: center;
    color: #434343;
    font-weight: 700;
}

.tab .tabImg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    opacity: 0.6;
}

.tab .tabImg img {
    display: block;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    -ms-interpolation-mode: bicubic;
}

.tab .tabImg .template-page .row {
    margin-right: -15px;
    margin-left: -15px;
}

.tab .tabImg .template-page div[class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* ------------------------------------------------ content ----------------------------------------------- */

#content {
    text-align: left;
    min-height: 200px;
    padding-top: 30px;
    padding-bottom: 30px;
}

@media (min-width: 992px) {
    #content {
        padding-top: 130px;
        padding-bottom: 50px;
    }
}

/* ------------------------------------------ h1, #content .legacy_h1, .legacy_h1 - h6, #content .legacy_h6, .legacy_h6, newslink ----------------------------------------- */

.h4link a:link, .h4link a:hover, .h4link a:visited, h6, #content .legacy_h6, .legacy_h6, h5, #content .legacy_h5, .legacy_h5, h4, #content .legacy_h4, .legacy_h4, h3, #content .legacy_h3, .legacy_h3, h2, #content .legacy_h2, .legacy_h2, h1, #content .legacy_h1, .legacy_h1 {
    color: #2d2d2d;
    font-weight: 400;
    line-height: 1.2;
    font-family: "Playfair Display", sans-serif;
}

h1, #content .legacy_h1, .legacy_h1, .h1 {
    font-size: 1.7rem;
}

@media (min-width: 768px) {
    h1, #content .legacy_h1, .legacy_h1, .h1 {
        font-size: 1.875rem;
    }
}

h2, #content .legacy_h2, .legacy_h2, .h2 {
    font-size: 1.6rem;
}

@media (min-width: 768px) {
    h2, #content .legacy_h2, .legacy_h2, .h2 {
        font-size: 1.7rem;
    }
}

h3, #content .legacy_h3, .legacy_h3, .h3 {
    font-size: 1.6rem;
}

h4, #content .legacy_h4, .legacy_h4, .h4, .h4link a:link, .h4link a:hover, .h4link a:visited {
    font-size: 1.5rem;
}

h5, #content .legacy_h5, .legacy_h5, .h5 {
    font-size: 1.4rem;
}

h6, #content .legacy_h6, .legacy_h6, .h6 {
    font-size: 1.3rem;
}

#newslinks, #newsmandate {
    border: 1px solid #2d2d2d;
}

/* ----------------------------------------------- contact ----------------------------------------------- */

#contact {
    color: #352221;
    background-color: #67a5ff;
    position: relative;
}

#contact > .row > div:first-child {
    padding-top: 40px;
    padding-bottom: 40px;
}

#contact > .row,
#contact > .row > div:last-child {
    position: static;
    padding-left: 0;
    padding-right: 0;
}

#contact > .row > div:last-child .template-page div[class*=col-] {
    padding-left: 0;
    padding-right: 0;
    position: static;
}

#contact a {
    color: #ffffff;
    text-decoration: underline;
}

#contact iframe {
    width: 100%;
    display: block;
}

#contact .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    display: block;
}

@media (min-width: 576px) {
    #contact {
        min-height: 200px;
    }

    #contact iframe, #contact .iframe-wrapper-manual-enabling {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 50% !important;
        left: 50%;
        height: 100% !important;
        display: block;
        min-height: 200px;
        min-width: auto !important;
    }
}

#bg-newsletter {
    position: relative;
    font-size: 1.125rem;
}

#newsInner {
    position: relative;
    z-index: 3;
}

#newsInner a {
    color: #352221;
}

#bg-newsletter .headline {
    font-size: 25px;
    color: #2e1c1d;
    font-family: "Playfair Display", sans-serif;
}

#bg-newsletter::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 284px;
    width: 439px;
    background: url(../img/bg-newsletter.png) no-repeat;
    z-index: 1;
}

#newsletter {
    height: 50px;
    background: #4d98f8;
    display: block;
    position: relative;
    margin-top: 30px;
}

#newsletter_input {
    color: #ffffff;
    font-size: 16px;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 50px;
    padding-left: 10px;
    padding-right: 220px;
    height: 50px;
    width: 100%;
    -webkit-box-shadow: inset 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: inset 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
    box-shadow: inset 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
}

#newsletter_submit {
    width: 220px;
    background: #b7ddff;
    color: #301d1f;
    font-style: italic;
    font-weight: 300;
    padding: 0;
    cursor: pointer;
    line-height: 50px;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    -webkit-transition: background-color 300ms linear;
    -moz-transition: background-color 300ms linear;
    -ms-transition: background-color 300ms linear;
    -o-transition: background-color 300ms linear;
    transition: background-color 300ms linear;
    -webkit-box-shadow: inset 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: inset 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
    box-shadow: inset 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
}

#newsletter_input::-ms-input-placeholder {
    color: #ffffff !important;
}

#newsletter_input::-webkit-input-placeholder {
    color: #ffffff !important;
}

#newsletter_input::-moz-placeholder {
    opacity: 1;
}

#newsletter_input:-moz-placeholder {
    opacity: 1;
}

/* ----------------------------------------------- footer ----------------------------------------------- */

#footer {
    background: url(../img/holz.jpg) bottom center no-repeat, #2d2d2d;
    color: #ffffff;
}

@media (max-width: 767px) {
    #footer .row > .col-xs-12:not(:first-child)::before {
        background: #000000;
        content: " ";
        height: 1px;
        width: 100%;
        display: block;
        margin: 15px 0 25px 0;
        opacity: 0.15;
    }

    #footer .row > .col-xs-12.hidden-xs ~ .col-xs-12::before, #footer .row > .col-xs-12.hidden-sm ~ .col-xs-12::before {
        display: none;
    }
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    padding: 10px;
}

@media (max-width: 767px) {
    #innerfooter {
        padding-top: 8px;
    }
}

@media (min-width: 768px) {
    #innerfooter {
        min-height: 100%;
        flex-wrap: wrap;
    }

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

@media (min-width: 992px) {
    #innerfooter a {
        padding: 15px;
    }
}

#innerfooter a:hover {
    color: #ffffff;
    background-color: #40272a;
}

/* --------------------------------------------- vernetzt -------------------------------------------- */

#vernetzt {
    text-align: right;
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.3;
    margin: 14px auto;
}

@media (min-width: 768px) {
    #vernetzt {
        margin: 14px 0;
        float: right;
    }
}

#vernetzt span {
    color: #ffffff;
}

#vernetzt span span {
    display: block;
}

#vernetzt img {
    margin-left: 12px;
}