@import url('https://fonts.verwaltungsportal.de/import/?family=EB+Garamond:400,500,600,700');

body {
    font-family: "EB Garamond", sans-serif;
    font-weight: 400;
    color: #444444;
    background: #ffffff;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

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

a {
    color: #be2b68;
}

a:hover,
a:focus {
    color: #be2b68;
    text-decoration: underline;
}

b, strong {
    font-weight: 500;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

nav {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        border: none !important;
        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: #890652;
        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 */

.horizontally {
    background: rgba(255, 255, 255, 1);
    -webkit-transition: all 0.3s 0s ease;
    -moz-transition: all 0.3s 0s ease;
    -o-transition: all 0.3s 0s ease;
    transition: all 0.3s 0s ease;
}

.is-sticky .horizontally {
    -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
}

@media (min-width: 992px) {

    nav {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        z-index: 54;
        padding-top: 25px;
        padding-bottom: 25px;
    }

    nav.horizontally .navbar-nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify !important;
        -ms-flex-pack: justify !important;
        justify-content: space-between !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;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]>ul {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        -webkit-transition: opacity 300ms linear;
        -moz-transition: opacity 300ms linear;
        -ms-transition: opacity 300ms linear;
        -o-transition: opacity 300ms linear;
        transition: opacity 300ms linear;
    }

    .navbar-default .open>.dropdown-menu,
    .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]:focus-within>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]:focus-within>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .navbar-default .nav .open>.dropdown-menu {
        pointer-events: none !important;
        opacity: 0 !important;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]:hover>u {
        z-index: 1003;
    }

}

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

.navbar-default .navbar-nav>li>a {
    color: #2d2d2d;
    font-weight: 600;
    text-align: left;
    padding: 10px 35px;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
}

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

@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:hover>a,
.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: #890652;
}

.navbar-nav>li:focus-within>a {
    color: #890652;
}

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

.navbar-default .navbar-nav>li>.dropdown-menu, .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
    padding: 20px 0;
    background-color: #ffffff;
    -webkit-box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.12);
}

@media (max-width: 991px) {
    .navbar-default .navbar-nav>li>.dropdown-menu {
        padding: 15px;
    }
}

@media(min-width:992px) {
    .navbar-default .navbar-nav>li>.dropdown-menu {
        border-top: 2px solid #be2b68;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu, .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        padding: 30px 0;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu {
        margin-top: 28px;
        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::after {
        content: "";
        position: absolute;
        top: -2px;
        left: 50%;
        width: 42px;
        height: 24px;
        background-image: url('../img/triangle.png');
        background-position: center;
        background-repeat: no-repeat;
        -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-top: -32px;
        margin-left: 15px;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
        height: 60px;
        left: 0;
        right: 0;
        top: -35px;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
        width: 15px;
        top: 0;
        bottom: 0;
        left: -15px;
    }
}

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

.navbar-default .navbar-nav>li>.dropdown-menu>li>a, .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a {
    color: #444444;
    font-weight: 400;
    text-align: left;
    padding: 9px 35px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media(min-width:992px) {
    .navbar-default .navbar-nav>li>.dropdown-menu>li>a, .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a {
        padding: 15px 10px;
        text-align: center;
    }
}

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

.navbar-nav>li>.dropdown-menu>li:hover>a,
.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 {
    background: #f3abd6;
    color: #444444;
}

.navbar-nav>li>.dropdown-menu>li:focus-within>a,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li:focus-within>a {
    background: #f3abd6;
    color: #444444;
}

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

#slider {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    #slider {
        max-height: 465px;
    }

    body.index #slider {
        max-height: 665px;
    }

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

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

#headerpic {
    margin: 0 auto;
    position: relative;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 992px) {
    #bannerOverlay {
        position: absolute;
        right: 0;
        bottom: 165px;
        left: 0;
        z-index: 53;
        pointer-events: none;
    }
}

#bannerOverlay p,
#bannerOverlay a {
    pointer-events: auto;
}

#slogan {
    padding: 20px 0 10px 0;
    color: #dedede;
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 768px) {
    #slogan {
        margin: 10px 0;
    }
}

#slogan p {
    background: #890652;
    display: inline-block;
    padding: 25px 28px;
    border-bottom: 10px solid rgba(234, 10, 142, 0.8);
    font-size: 1.5625rem;
}

@media (min-width: 992px) {
    #slogan p {
        font-size: 2.25rem;
    }
}

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

.slider-mask {
    display: none;
}

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

#content {
    text-align: left;
    padding-bottom: 40px;
    padding-top: 40px;
}

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

    main {
        background-image: url('../img/hammer.png'), url('../img/waage.png');
        background-position: top 115px left 20px, bottom -3px right 10px;
        background-repeat: no-repeat;
    }
}

/* --------------------------------------------- tabs -------------------------------------------- */

#tabs {
    padding: 40px 0;
}

#tabs>*+* {
    margin-top: 110px;
}

@media (max-width: 991px) {
    #tabs {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    #tabs>.row>*+* {
        margin-top: 120px;
    }

    #tabs>*+* {
        margin-top: 120px;
    }
}

#tabs .tab {
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    padding: 30px;
    position: relative;
}

#tabs .tab::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    left: -8px;
    bottom: -8px;
    border: 2px solid #e22e98;
    z-index: -1;
    pointer-events: none;
}

#tabs .tab::after {
    content: '';
    position: absolute;
    top: -85px;
    right: 0;
    left: 0;
    height: 85px;
    width: 100px;
    margin: auto;
    background-color: #ffffff;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 2px;
    pointer-events: none;
}

#tabs .tab1::after {
    background-image: url('../img/icon_familie.png');
}

#tabs .tab2::after {
    background-image: url('../img/icon_erbe.png');
}

#tabs .tab3::after {
    background-image: url('../img/icon_strafe.png');
}

#tabs .tab4::after {
    background-image: url('../img/icon_arbeit.png');
}

#tabs .tab5::after {
    background-image: url('../img/icon_steuer.png');
}

#tabs .tab6::after {
    background-image: url('../img/icon_zivil.png');
}

#tabs .tabHeadline {
    font-size: 1.25rem;
    text-align: center;
    position: relative;
}

@media (min-width: 1200px) {
    #tabs .tabHeadline {
        font-size: 1.875rem;
    }
}

#tabs .tabHeadline::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    margin: auto;
    height: 15px;
    width: 120px;
    background-color: #ffffff;
    pointer-events: none;
    z-index: 1;
}

#tabs a {
    background-color: #ffffff;
    color: #444444;
    border: 2px solid #e22e98;
    padding: 15px 35px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-top: 5px;
    -webkit-transition: all 300ms linear;
    -moz-transition: all 300ms linear;
    -ms-transition: all 300ms linear;
    -o-transition: all 300ms linear;
    transition: all 300ms linear;
}

#tabs a:hover, #tabs a:focus {
    background-color: #e22e98;
    color: #ffffff;
    border: 2px solid #ffffff;
}

/* ------------------------------------------ h1 - h6, newslink ----------------------------------------- */

.h4link a:link, .h4link a:hover, .h4link a:focus, .h4link a:visited, H6, H5, H4, H3, H2, H1 {
    color: #be2b68;
    font-weight: 700;
    line-height: 1.2;
    font-family: "EB Garamond", sans-serif;
    text-transform: uppercase;
}

h1, .h1, .legacy_h1 {
    font-size: 2.5rem;
}

h2, .h2, .legacy_h2 {
    font-size: 2.1875rem;
}

@media (min-width: 992px) {
    h1, .h1, .legacy_h1 {
        font-size: 2.75rem;
    }

    h2, .h2, .legacy_h2 {
        font-size: 2.5rem;
    }
}

h3, .h3, .legacy_h3 {
    font-size: 1.875rem;
}

h4, .h4, .h4link a:link, .h4link a:hover, .h4link a:focus, .h4link a:visited, .legacy_h4 {
    font-size: 1.5625rem;
}

h5, .h5, .legacy_h5 {
    font-size: 1.25rem;
}

h6, .h6, .legacy_h6 {
    font-size: 1.2rem;
}

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

address {
    font-style: normal;
}

#contact {
    color: #ffffff;
    background-color: #010101;
    position: relative;
    overflow: hidden;
}

#contact>.row>*:last-child {
    padding-top: 30px;
    padding-bottom: 30px;
}

@media (min-width: 1200px) {
    #contact>.row>*:last-child {
        padding-left: 30px;
    }
}

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

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

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

#contact a:not([href*="mailto:"]) {
    background-color: #ffffff;
    color: #444444;
    border: 2px solid #e22e98;
    padding: 15px 45px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-top: 5px;
    -webkit-transition: all 300ms linear;
    -moz-transition: all 300ms linear;
    -ms-transition: all 300ms linear;
    -o-transition: all 300ms linear;
    transition: all 300ms linear;
}

#contact a:not([href*="mailto:"]):hover, #contact a:not([href*="mailto:"]):focus {
    background-color: #e22e98;
    color: #ffffff;
    border: 2px solid #ffffff;
}

#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;
        left: 0;
        bottom: 0;
        width: 50% !important;
        right: 50%;
        height: 100% !important;
        display: block;
        min-height: 200px;
        min-width: auto !important;
    }
}

#contact .headline {
    color: #ea0a8e;
    margin: 0 0 20px 0;
    z-index: 1;
    position: relative;
    font-size: 2.25rem;
}

@media (min-width: 992px) {
    #contact>.row>*:last-child::before {
        content: "";
        position: absolute;
        right: -19vw;
        top: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: block;
        min-height: 100%;
        width: calc(100% + 19vw);
        pointer-events: none;
    }
}

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

#footer {
    background-color: #ffffff;
    padding-top: 15px;
    padding-bottom: 15px;
    color: #444444;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: block;
}

@media (min-width: 500px) {
    #innerfooter li {
        display: inline-block;
    }

    #innerfooter li+li {
        margin-left: 20px;
    }
}

@media (max-width: 767px) {
    #innerfooter {
        border-bottom: 1px solid #f3abd6;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
}

#innerfooter a {
    color: #444444;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #e22e98;
}

@media (min-width: 1200px) {
    #innerfooter li+li {
        margin-left: 40px;
    }
}

/* ------------------------------------------------ styler ---------------------------------------------- */

@media (min-width: 992px) {
    #style button {
        padding: 0;
        font-size: 16px;
        border: none;
        color: #010101;
        display: inline-block;
        width: 33px;
        height: 33px;
        text-align: center;
        background-color: #f3abd6;
        position: relative;
        line-height: 1;
        font-weight: normal;
        -webkit-transition: all 300ms linear;
        -moz-transition: all 300ms linear;
        -ms-transition: all 300ms linear;
        -o-transition: all 300ms linear;
        transition: all 300ms linear;
    }

    #style button+button {
        margin-left: 8px;
    }

    #style button:hover,
    #style button:focus {
        background-color: #be2b68;
        color: #ffffff;
    }
}

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

#vernetzt {
    text-align: right;
    font-size: 1rem;
    color: #444444;
    line-height: 1.3;
    margin: 0 auto;
    text-decoration: none;
}

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

#vernetzt b {
    color: #444444;
    font-weight: 400;
}

#vernetzt span {
    color: #444444;
}

#vernetzt span span {
    display: block;
}

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

@media (max-width: 991px) {
    #vernetzt {
        font-size: 0.875rem;
    }

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