@import url("https://fonts.verwaltungsportal.de/css/?family=Barlow:400,500,600,700,800,900,400i,500i,600i,700i,800i,900i");

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #f1f1f1;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #c40000 #ffffff;
    scrollbar-width: thin;
}

body {
    font-family: "Barlow", sans-serif;
    color: #444444;
    background: #ffffff;
    font-size: clamp(1rem, 1vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #c40000;
}

#content a,
a:is(:hover, :focus) {
    color: #c40000;
    text-decoration: underline;
}

#content a {
    font-weight: 500;
}

b,
strong {
    font-weight: 600;
}

#overflow {
    overflow: hidden;
    position: relative;
}

/* ------------------------------------- contrast+styler+suche ---------------------------------- */

#topbar {
    border-top: 4px solid #cde1f1;
}

.search {
    background-color: #013a67;
    padding: 9px 25px 6px;
    position: relative;
    display: block;
}

.search:is(:hover, :focus) {
    background: #012c4d;
}

@media (min-width: 992px) {
    #contrast_styler_wrapper {
        margin-top: -4px;
        line-height: 1;
        font-size: 20px;
    }

    #contrast_styler_wrapper button {
        border: none;
        background: transparent;
        padding: 0;
    }

    #contrast_style,
    #style {
        background-color: #01599e;
        color: #ffffff;
        padding: 8px 15px;
    }

    #style {
        border-left: 1px solid rgba(255, 255, 255, 0.3);
    }

    :is(#contrast_style, #style) h2 {
        font-size: 0.875rem;
        font-weight: 600;
        color: inherit;
        margin: 0 5px 0 0;
        width: unset;
    }

    #contrast_style {
        line-height: 0;
        column-gap: 9px;
    }

    #style button {
        padding: 0 8px;
        font-weight: 600;
        box-shadow: -3px 1px 0 -2px rgba(255, 255, 255, 0.7);
    }

    #style button:first-of-type {
        box-shadow: unset;
    }

    #style button:is(:hover, :focus) {
        text-decoration: underline;
    }

    .search::after {
        content: "";
        width: 400px;
        height: 100%;
        right: -400px;
        top: 0;
        background: #013a67;
        display: inline-block;
        position: absolute;
        pointer-events: none;
    }
}

/* ---------------------------------------------- logoBox ------------------------------------------ */

#logoBox {
    padding: 22px 0;
}

@media (min-width: 992px) {
    #logoBox {
        padding: 30px 0 10px 0;
    }
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (max-width: 575px) {
    #logo img {
        max-width: 100%;
        width: calc(100vw - 110px);
    }
}

/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
    }

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

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #012c4d;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
    }

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

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

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

    #burgerButtonInner {
        top: 16px;
    }

    #burgerButton::before {
        top: 24px;
        content: "";
    }

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

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

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #ffffff;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        overflow-y: auto;
        transition: left 300ms linear, opacity 300ms linear, box-shadow 600ms linear;
        box-shadow: 250px 0 50vw 50vw rgba(255, 255, 255, 0);
    }

    .navbar-collapse:is([aria-expanded="true"], .in) {
        left: 0;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        box-shadow: 250px 0 50vw 50vw rgba(0, 0, 0, 0.6);
    }

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

    .dropdown-toggle-button-wrapper {
        top: 11px;
    }

    .dropdown-toggle-button-wrapper2 {
        top: 5px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 0 0 21px 0;
        border-bottom: 9px solid #cde1f1;
        transition: all, 300ms;
        margin-top: -10px;
    }

    .is-sticky nav.horizontally {
        background-color: rgba(255, 255, 255, 0.95);
    }

    nav.horizontally .navbar-nav {
        margin-top: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms linear;
    }

    nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav li {
        position: relative;
    }

    nav.horizontally .navbar-nav li:is(.open, :hover)>ul,
    nav.horizontally .navbar-nav li.open:focus-within>ul,
    nav.horizontally .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
    }

    nav.horizontally .navbar-nav li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(:hover, :focus)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #444444;
    font-weight: 600;
    text-align: left;
    padding: 15px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    }

    nav.horizontally a[class*="toplevel"].dropdown-toggle {
        padding-right: 35px;
    }
}

@media (min-width: 992px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 20px;
    }

    nav.horizontally a[class*="toplevel"] {
        padding: 11px 0;
        text-align: center;
    }
}


nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 0;
    height: 4px;
    display: block;
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    bottom: 0;
    background-color: #cde1f1;
    opacity: 0;
    transition: opacity 300ms linear, width 300ms linear;
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li>a::before {
        left: 50%;
    }
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"]>a,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #01599e;
}

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::before,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"].open>a::before,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::before {
    opacity: 1;
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

nav.horizontally [class*="toplevel"]>ul {
    padding: 10px 0;
}

nav.horizontally [class*="secondlevel"]>ul {
    padding-left: 10px;
}

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding: 10px 0;
    }

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 10px;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
    }

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before {
        content: "";
        position: absolute;
        display: block;
    }

    nav.horizontally [class*="toplevel"]>ul::before {
        height: 10px;
        left: 0;
        right: 0;
        top: -10px;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -10px;
        border-radius: 3px;
        margin-left: 10px;
    }

    nav.horizontally [class*="secondlevel"]>ul::before {
        width: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #444444;
    font-weight: 400;
    text-align: left;
    padding: 9px 25px 9px 35px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
        padding-right: 35px;
    }
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: "";
    display: block;
    position: absolute;
    left: 20px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #013a67;
    transition: background 300ms linear;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])+li:not(:nth-child(2)) {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    color: #01599e;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::before {
    background: #cde1f1;
}

/* #endregion ------------------------------- navigation ---------------------------------------- */

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

#slider {
    max-height: clamp(300px, 42vw, 400px);
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(400px, 45vw, 730px);
    }

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

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

    .index #headerpic .nivo-controlNav {
        top: 10px;
        bottom: unset;
    }
}

#headerpic {
    padding: 0;
    overflow: hidden;
    position: relative;
}

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

.slider-mask {
    display: none;
}

/* -------------------------------------------- overlay ----------------------------------------- */

#overlay {
    background: rgba(1, 58, 103, 0.9);
    color: #ffffff;
    padding: 22px 0 30px 0;
    font-size: 1rem;
}

@media (min-width: 992px) {
    #overlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 12;
        padding-bottom: 16px;
    }
}

#overlay>.row {
    row-gap: 22px;
}

#overlay .tab {
    padding-left: 100px;
    line-height: 1.7;
    background: url(../img/icon-uhr.png) center left 15px no-repeat;
}

#overlay>.row>.tab:nth-of-type(2) {
    background-image: url(../img/icon-telefon.png);
}

#overlay>.row>.tab:nth-of-type(3) {
    background-image: url(../img/icon-mail.png);
}

#overlay .tabHeadline {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 3px 0;
}

#overlay a {
    color: #ffffff;
    font-style: italic;
    text-decoration: underline;
}

/* ------------------------------------------- contentBox ------------------------------------------ */

#contentBox {
    text-align: left;
    padding-top: clamp(30px, 3vw, 50px);
    padding-bottom: clamp(30px, 4vw, 75px);
}

/* ----------------------------------------------- @10nw news -------------------------------------------- */

@media (max-width: 991px) {
    #nw10 {
        margin: 0 auto;
    }
}

#nw10 .tab {
    hyphens: auto;
    margin-top: 25px;
    font-size: 1rem;
    color: #444444;
    position: relative;
    padding: 45px 20px 20px 20px;
    background: #ffffff;
    border-top: 4px solid #cde1f1;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

#nw10 .tabSpecial {
    margin-bottom: 20px;
}

#nw10 .tabSpecial .tabHeadline {
    font-size: 1.5625rem;
    font-weight: 700;
    color: #0c5c82;
    margin-bottom: 0;
}

#nw10 .tab .tab_link_entries {
    display: grid;
    gap: 20px;
}

#nw10 .tab .tab_link_entry {
    border: none !important;
}

#nw10 .tab .tab_link_title a {
    color: #444444;
    font-weight: 600;
}

#nw10 .tab .tab_link_mandat a {
    color: #444444;
}

#nw10 .tab .tab_date {
    font-weight: 500;
}

#nw10 .tab .tab_link_mehr {
    margin-top: 20px;
}

#nw10 .tab .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    font-size: 0.9375rem;
    color: #0c5c82;
    font-weight: 600;
    border-radius: 2px;
    padding: 3px 11px;
    background: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

#nw10 .tab .tab_link_mehr a:hover,
#nw10 .tab .tab_link_mehr a:focus {
    color: #ffffff;
    background: #0c5c82;
}

#nw10 .tab .tab_preview_picture,
#nw10 .tab .tab_link_entry>div:nth-last-child(2),
#nw10 .tab .tab_spacer {
    display: none;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #01599e;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Barlow", sans-serif;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.75rem, 3vw, 3.0625rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.625rem, 3vw, 2.6875rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.5625rem, 2vw, 2.1875rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: clamp(24px, 2vw, 1.875rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.375rem, 2vw, 1.5625rem);
}

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

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

footer {
    background: #ffffff;
    color: #444444;
    font-size: 1rem;
    position: relative;
}

@media (min-width: 992px) {
    footer .footerTab {
        padding-right: 35px;
    }
}

footer hr {
    border-color: #809cb3;
    height: 1px;
    margin: 18px 0;
    opacity: 1;
}

footer>.row>div:nth-of-type(1) a {
    color: #c40000;
    font-style: italic;
    text-decoration: underline;
}

footer>.row>div:nth-of-type(1) {
    padding-top: clamp(30px, 4vw, 40px);
    padding-bottom: clamp(30px, 4vw, 40px);
}

@media (min-width: 1200px) {
    footer>.row>div:nth-of-type(1)::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: 0;
        left: -365px;
        bottom: 0;
        width: 365px;
        height: 100%;
        background: center / cover no-repeat;
    }
}

footer>.row>div:nth-of-type(2) {
    background: #013a67;
}

footer>.row>div:nth-of-type(2) a {
    color: #ffffff;
}

@media (max-width: 767px) {
    footer>.row>div:nth-of-type(2) {
        background: #013a67;
        color: #ffffff;
    }
}

@media (min-width: 768px) {
    footer>.row>div:nth-of-type(2) {
        color: #ffffff;
    }

    footer>.row>div:nth-of-type(2)::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: -370px;
        pointer-events: none;
        height: 100%;
        display: inline-block;
        border-top: 7px solid #cde1f1;
        background: #013a67 url('../img/herz-deko-footer.png') right bottom no-repeat;
    }
}

@media (min-width: 992px) {
    footer>.row>div:nth-of-type(2)::before {
        left: -100px;
    }
}

footer .tabWrapper {
    padding-top: clamp(30px, 4vw, 55px);
    padding-bottom: clamp(30px, 4vw, 50px);
}

@media (max-width: 767px) {
    footer .tabWrapper+.tabWrapper {
        padding-top: 0;
    }
}

.iframeTab :is(iframe, .iframe-wrapper-manual-enabling) {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
    max-height: 160px;
}

#innerfooter ul {
    padding: clamp(30px, 4vw, 50px) 0;
    border-top: 1px solid #3f6c91;
}

#innerfooter li {
    display: inline-block;
}

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

#innerfooter a:is(:hover, :focus) {
    color: #cde1f1;
    text-decoration: underline;
}

#innerfooter li+li::before {
    content: "•";
    margin: 0 clamp(15px, 2vw, 30px);
    color: #ffffff;
}

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

#vernetzt {
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.3;
    font-weight: 400;
    display: inline-block;
    text-decoration: none;
}

#vernetzt span {
    display: block;
}

#vernetzt strong {
    color: #cde1f1;
}

#vernetzt img {
    margin-bottom: 10px;
}

/* ------------------------------------------ kontraste ------------------------------------------ */

.contrast_light_font #logo img,
.contrast_light_font footer>.row>div:nth-of-type(1) img {
    background-color: #ffffff !important;
}

.contrast_dark_font footer>.row>div:nth-of-type(2) #vernetzt,
.contrast_dark_font footer>.row>div:nth-of-type(2) #vernetzt span,
.contrast_dark_font footer>.row>div:nth-of-type(2) #vernetzt strong {
    color: #ffffff !important
}