@import url("https://fonts.verwaltungsportal.de/css/?family=Merriweather:300,400,500,600,700%7CMerriweather+Sans:300,400");

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

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

a {
    color: #224b9e;
}

a:hover {
    color: #224b9e;
}

b, strong {
    font-weight: 600;
}

/* ------------------------------------------ h1 - h6 -------------------------------------------- */

.h4link a:link, .h4link a:hover, .h4link a:visited, H6, H5, H4, H3, H2, H1 {
    font-family: 'Merriweather Sans', 'sans serif';
    color: #224b9e;
    font-weight: 300;
    line-height: 1.2;
}

h1, .h1 {
    font-size: 1.75rem;
}

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

h2, .h2 {
    font-size: 1.625rem;
}

@media (min-width: 992px) {
    h2, .h2 {
        font-size: 1.75rem;
    }
}

h3, .h3 h4, .h4, .h4link a:link, .h4link a:hover, .h4link a:visited,
h5, .h5,
h6, .h6 {
    font-family: 'Merriweather', 'sans serif';
    font-weight: 700;
}

h3, .h3 {
    font-size: 1.5625rem;
}

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

h5, .h5 {
    font-size: 1.3125rem;
}

h6, .h6 {
    font-size: 1.25rem;
}

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

#topbar {
    padding-top: 10px;
    padding-bottom: 10px;
    background: url('../img/metal.jpg') left bottom no-repeat;
    background-size: cover;
}

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

#logo {
    display: table;
    margin: 0 auto;
}

#logo-sm {
    display: block;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo {
        display: inline-block;
        padding: 0 15px;
    }

    #logo img {
        max-width: 210px;
        width: 100%;
    }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        position: relative;
        z-index: 1002;
        display: block;
        width: 46px;
        height: 40px;
        border-radius: 2px;
        cursor: pointer;
        background-color: #ffffff;
        padding: 3px;
    }

    #burgerButton:before, #burgerButton:after, #burgerButtonInner {
        background-color: #224b9e;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 2px;
        -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"]:before {
        opacity: 0;
    }

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

    #burgerButtonInner {
        top: 10px;
    }

    #burgerButton:before {
        top: 18px;
    }

    #burgerButton:after {
        top: 26px;
    }

    #burgerButton:before, #burgerButton:after {
        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.collapse.in {
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-header {
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        background-color: #ffffff;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
        -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);
    }

    .navbar-collapse.in:after {
        content: "";
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        display: block;
        width: 90px;
        background-color: rgba(0, 0, 0, 0.5);
    }
}

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

    .navbar-collapse.collapse.in:after {
        width: 40%;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    .is-sticky nav {
        -webkit-box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.2);
        -moz-box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.2);
        box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.2);
        background-color: #ffffff;
    }

    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 .navbar-nav>li {
        flex-grow: 1;
    }

    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: calc(100% - 9px);
        top: 20px;
    }

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

    .navbar-default .navbar-nav>li>ul,
    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        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;
    }

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

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

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

.navbar-default .navbar-nav>li>a {
    color: #757575;
    font-weight: 700;
    text-align: left;
    padding: 10px 35px 15px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1;
}

@media (max-width: 991px) {
    .navbar-default .navbar-nav>li {
        border-bottom: 1px solid rgba(46, 60, 72, 0.2);
    }
}

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

    .navbar-default .navbar-nav>li>a {
        padding: 18px 0;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: 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>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: #224b9e;
    background-color: transparent;
}

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

.navbar-default .navbar-nav>li>.dropdown-menu,
.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
    background-color: #ffffff;
    -webkit-box-shadow: inset 0px 6px 10px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0px 6px 10px 0px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0px 6px 10px 0px rgba(0, 0, 0, 0.2);
}

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

@media(min-width:992px) {

    .navbar-default .navbar-nav>li>.dropdown-menu,
    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        padding-top: 2px;
        padding-bottom: 1px;
    }

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

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

    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
        width: 10px;
        top: 0;
        bottom: 0;
        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 {
    font-family: 'Merriweather Sans', 'sans serif';
    color: #2b2b2b;
    font-weight: 400;
    text-align: left;
    padding: 12px 35px 14px 20px;
    font-size: 1rem;
}

@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 {
        text-align: center;
        padding: 12px 91px 14px 12px;
    }
}

/* ------------------------------------------ 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 {
    background: #d0d8ff;
}

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

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

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

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

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

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

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

body:not(.index) #slider {
    max-height: 384px;
}

body.index #slider {
    height: 100%;
}

.slider-mask {
    display: none;
}

.nivo-controlNav {
    bottom: 115px;
}

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

#tabs {
    margin-top: -122px;
    position: relative;
    z-index: 50;
    font-size: 1rem;
    font-weight: 300;
}

#tabs .tab {
    background: url('../img/metal.jpg') left bottom no-repeat;
    padding: 125px 20px 24px 20px;
    border: 1px solid #dbdbda;
    text-align: center;
    color: #2d2d2d;
    position: relative;
    width: 100%;
}

#tabs .tabHeadline {
    font-family: 'Merriweather', 'sans serif';
    font-weight: 700;
    font-size: 1.5625rem;
    margin-bottom: 37px;
}


#tabs .tab::before {
    content: '';
    width: 100%;
    height: 125px;
    position: absolute;
    left: 0;
    top: 0;
}

#tabs #first::before {
    background: url('../img/list.png') center center no-repeat;
}

#tabs #second::before {
    background: url('../img/etikett.png') center center no-repeat;
}

#tabs #third::before {
    background: url('../img/clock.png') center center no-repeat;
}

#tabs>.row {
    row-gap: 20px;
}

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

@media (max-width: 767px) {
    #tabs {
        margin-top: -30px;
    }
}

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

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

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

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

#contact {
    background: url('../img/metal.jpg') left bottom no-repeat;
    background-size: cover;
    padding-top: 40px;
    padding-bottom: 27px;
}

#contact>.row {
    row-gap: 25px;
}

@media (min-width: 768px) {
    #contact>.row>.col-xs-12:nth-child(1) {
        border-right: 1px solid rgba(0, 0, 0, 0.3);
    }
}

#contact #contactTabs {
    color: #2d2d2d;
    text-align: center;
}

#contact #contactTabs .tab {
    margin-bottom: 40px;
}

#contact #contactTabs a {
    color: #2d2d2d;
    text-decoration: underline;
}

#contact #contactTabs .tabHeadline {
    font-family: 'Merriweather', 'sans serif';
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 30px;
}


#maps {
    width: 100%;
    height: 100%;
    max-width: 600px;
    margin: auto;
}

#maps iframe,
#maps .iframe-wrapper-manual-enabling {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 400px !important;
}

#maps .template-page,
#maps .row,
#maps .col-xs-12,
#maps p {
    height: 100%;
}

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

footer {
    background-color: #2d2d2d;
    padding-top: 36px;
    padding-bottom: 24px;
    color: #ffffff;
}

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

    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 li {
    display: inline-block;
}

#innerfooter a {
    font-family: 'Merriweather Sans', 'sans serif';
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
}

#innerfooter a:hover {
    text-decoration: underline;
}

#innerfooter li+li::before {
    content: "|";
    margin: 0 15px;
    color: #ffffff;
}

@media (min-width: 1200px) {
    #innerfooter li+li::before {
        margin: 0 25px;
    }
}

@media (max-width: 767px) {
    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

    #innerfooter li+li::before {
        display: none;
    }
}

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

#vernetzt {
    font-family: 'Merriweather Sans', 'sans serif';
    text-align: right;
    font-size: 0.8125rem;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 auto;
    font-weight: 400;
}

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

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

#vernetzt span {
    color: #ffffff;
}

#vernetzt span span {
    display: block;
}

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