@import url('https://fonts.verwaltungsportal.de/css/?family=Fira+Sans:400,600,400i,600i');

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

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

a {
    color: #1d7bbe;
}

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

b,
strong {
    font-weight: 600;
}

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

#logo {
    display: inline-block;
}

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

@media (min-width: 992px) {
    #logo {
        opacity: 0.96;
    }

}

#logo img {
    display: block;
}

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

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

/* 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;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #1d7bbe;
        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: #cf2525;
        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: 7px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background-color: #cf2525;
        position: sticky;
        top: 0;
        z-index: 1010;
    }

    nav.horizontally .navbar-nav {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav.horizontally .navbar-nav>li {
        flex-grow: 1;
    }

    nav.horizontally .navbar-nav li[class*="toplevel"]>ul {
        display: flex !important;
        flex-wrap: wrap;
        pointer-events: none;
        position: absolute;
        opacity: 0;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 30px;
        transform-origin: top center;
        visibility: hidden;
        transition: opacity 300ms linear;
        box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 10px 10px;
    }

    nav.horizontally .navbar-nav>li:is(.open, :hover)>ul,
    nav.horizontally .navbar-nav>li.open:focus-within>ul {
        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;
    }

    nav.horizontally li[class*="secondlevel"] {
        margin-bottom: 20px;
        width: 33.33%;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        display: block !important;
    }
}

@media (min-width: 1200px) {
    nav.horizontally .navbar-nav li[class*="secondlevel"] {
        width: 25%;
    }
}

/* toplevel */

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

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        text-align: center;
        padding: 30px 10px;
    }
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"]>ul {
    background-color: rgba(255, 255, 255, 0.96);
}

@media (max-width: 991px) {
    nav.horizontally [class*="toplevel"]>ul {
        padding: 15px;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-bottom: 8px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a[class*="secondlevel"] {
    color: #1d7bbe;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 8px 20px 8px 0;
}

nav.horizontally a[class*="thirdlevel"] {
    color: #303030;
    font-weight: 400;
    font-size: 1rem;
    padding: 6px 0 6px 10px;
}

nav.horizontally a[class*="thirdlevel"]::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 13px;
    background: #1d7bbe;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    text-align: left;
    line-height: 1.2;
    text-decoration: none;
}

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

/* 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: #1d7bbe;
}

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

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

#slider {
    max-height: clamp(300px, 45vw, 500px);
    position: relative;
}

@media (min-width: 992px) {
    #headerpic a.nivo-prevNav {
        left: 65px;
    }

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

    #headerpic .nivo-directionNav a {
        top: unset;
        bottom: 30px;
    }

    #overlay {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }
}

#headerpic {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-bottom: 10px solid #1174bb;
}

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

.slider-mask {
    display: none;
}

.header-tab {
    background: rgba(17, 116, 187, 0.7);
    padding: 15px;
    margin-top: 30px;
}

@media (max-width: 991px) {
    .header-tab {
        margin-bottom: 30px;
    }
}

.header-tab,
.header-tab * {
    color: #ffffff;
}

.header-tab a {
    text-decoration: underline;
}

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

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

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #1d7bbe;
    font-weight: normal;
    line-height: 1.2;
    font-family: "Fira Sans", sans-serif;
}

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

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited),
.legacy_h4 {
    font-size: 1.5rem;
}

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

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

/* #region ----------------------------------- footer ------------------------------------------- */

#footer {
    background: #1868a1;
    padding: 30px 0;
    border-top: 10px solid #1174bb;
}

@media (min-width: 992px) {
    #footer {
        padding-bottom: 90px;
        background: #1868a1 url('../img/footer-welle.png') right bottom / 1930px auto no-repeat;
    }
}

#footer,
#footer * {
    color: #ffffff;
}

@media (max-width: 991px) {
    #footer>.row>.col-xs-12+* {
        border-top: 1px solid rgba(255, 255, 255, 0.4);
        margin-top: 20px;
        padding-top: 20px;
    }
}

#footer a {
    text-decoration: underline;
}

#innerfooter {
    background: #ffffff;
    padding: 15px 0;
}

@media (min-width: 992px) {
    #innerfooter {
        padding: 5px 0 20px 0;
        background: #ffffff url('../img/wappen.webp') top -15px right -50px no-repeat;
    }
}

@media (min-width: 992px) {
    #style button {
        border: none;
        color: #ffffff;
        display: inline-block;
        font-weight: 400;
        text-align: center;
        background: #1d7bbe;
        line-height: 1;
        font-size: 1rem;
        min-width: 44px;
        min-height: 44px;
    }

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

    #style button:is(:hover, :focus) {
        background: #cf2525;
    }

    #style+#search {
        margin-left: 30px;
    }
}

#search {
    width: 270px;
    background: #ffffff;
    display: inline-flex;
    box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.4);
}

@media (max-width: 991px) {
    #search {
        width: 100%;
        margin: 0 0 15px 0;
    }
}

#search_input {
    color: #303030;
    font-size: 1rem;
    font-style: normal !important;
    background: transparent;
    border: 0;
    width: 100%;
    padding: 5px 14px;
}

#search_submit {
    background: url('../img/lupe-icon.png') center / 20px auto no-repeat;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    aspect-ratio: 1/1;
    min-width: 44px;
    flex-shrink: 0;
    transition: transform 150ms linear;
    border: none;
}

#search_submit:is(:hover, :focus) {
    transform: scale(1.2);
}

#search_input::placeholder {
    color: #303030 !important;
    opacity: 1 !important;
    font-style: normal !important;
}

#scrollTop {
    margin-left: 30px;
    display: inline-block;
    flex-shrink: 0;
}

#scrollTop::before {
    content: "";
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1174bb url('../img/pfeil-icon.png') center / 20px auto no-repeat;
    margin: 0 auto 10px auto;
    transition: background-color 300ms linear;
}

#scrollTop:is(:hover, :focus)::before {
    background-color: #cf2525;
}

#innerfooter ul {
    padding: 0;
    margin-top: 10px;
}

#innerfooter li {
    display: block;
}

#innerfooter a {
    color: inherit;
    text-decoration: none;
}

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

@media (min-width: 576px) {
    #innerfooter li+li::before {
        content: "\23D0";
        margin: 0 clamp(15px, 2vw, 25px);
    }

    #innerfooter li {
        display: inline-block;
    }
}

/* #endregion -------------------------------- footer ------------------------------------------- */

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

#vernetzt {
    gap: 15px;
    text-align: right;
    font-size: 0.875rem;
    color: #303030;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}