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

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

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

a {
    color: #004a9b;
}

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

b,
strong {
    font-weight: 600;
}

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

#logo {
    display: inline-block;
}

@media (min-width: 992px) {
    #logo {
        margin-bottom: -26px;
    }
}

#logo img {
    display: block;
}

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

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

@media (min-width: 992px) {
    #style {
        margin: 0 -8px 8px 0;
    }

    #style h2 {
        font-size: 0.875rem;
        color: inherit;
        width: auto;
        margin: 0 10px 0 0;
        letter-spacing: 0;
    }

    #style button {
        padding: 2px 8px;
        font-size: 0.875rem;
        border: none;
        color: #191919;
        background: transparent;
        display: inline-block;
        line-height: 1;
        font-weight: 600;
    }

    #style button+button {
        border-left: 2px solid #191919;
    }

    #style button:is(:hover, :focus) {
        color: #004a9b;
    }
}

/* #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: #004a9b;
        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: 4px;
    }

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

/* menu desktop */

nav.horizontally {
    padding: 13px 0 clamp(13px, 2vw, 25px);
    transition: all 0.3s 0s ease;
}

.is-sticky nav.horizontally {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
}

@media (min-width: 992px) {

    nav.horizontally,
    .sticky-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 54;
    }

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

    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: #191919;
    font-weight: 600;
    text-align: center;
    padding: 10px 35px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

nav.horizontally a[class*="toplevel"]:is([href*="suche"]) {
    font-size: 0;
    width: 30px;
    height: 30px;
    border: 2px solid #004a9b;
    backface-visibility: hidden;
    background: url('../img/icon-suche.png') center / 17px auto no-repeat;
    transition: transform 100ms linear;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="toplevel"]:is([href*="suche"]) {
        margin-left: auto;
        margin-right: auto;
    }
}

/* 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: #004a9b;
}

.navbar-default .navbar-nav>li:is(:hover, :focus)>a:is([href*="suche"]) {
    transform: scale(1.2);
}

/* secondlevel + thirdlevel dropdown-box */

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

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

@media(min-width:992px) {
    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 12px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

    nav.horizontally [class*="toplevel"]>ul::after {
        top: -12px;
        left: calc(50% - 14px);
        width: 28px;
        height: 12px;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        background: #ffffff;
    }

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

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -20px;
        margin-left: 15px;
    }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #191919;
    font-weight: 500;
    text-align: center;
    padding: 9px 35px;
    font-size: 0.9375rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width:992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 9px 25px;
    }
}

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

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

/* #region ------------------------------------ banner ------------------------------------------ */

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(300px, 70vw, 720px);
    }

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

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

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

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

.slider-mask {
    display: none;
}

@media (min-width: 768px) {
    .slider-mask {
        display: block;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 16%, rgba(255, 255, 255, 0) 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.8) 6%, rgba(255, 255, 255, 0) 30%);
    }
}

/* #endregion --------------------------------- banner ------------------------------------------ */

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

#content {
    text-align: left;
    padding-bottom: clamp(30px, 4vw, 70px);
    padding-top: 40px;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #004a9b;
    font-weight: 600;
    line-height: 1.2;
    font-family: "Poppins", sans-serif;
    letter-spacing: 2px;
}

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

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

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

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

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

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

.tab .tabContent hr {
    background-color: #004a9b;
    opacity: 1;
    height: 2px;
}

@media (max-width: 991px) {
    .tabGallery {
        margin-top: 30px;
    }
}

/* ----------------------------------------------- @9nw news -------------------------------------------- */

#nw9 .tab {
    font-size: 1rem;
    color: #004a9b;
    padding: 35px 30px 63px 30px;
    border: 2px solid #004a9b;
    background-color: #fff;
}

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

#nw9 .tabHeadline {
    font-size: 1.5rem;
    color: #004a9b;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: normal;
}

#nw9 .tab_link_entry {
    border: none !important;
    display: flex !important;
    flex-wrap: wrap;
    position: relative;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
    padding-left: 95px;
    z-index: 12;
}

#nw9 .tab_link_entry+.tab_link_entry {
    margin-top: 30px;
}

#nw9 .tab_link_entry+.tab_link_entry::before {
    content: '';
    pointer-events: none;
    height: 1px;
    width: 100%;
    position: absolute;
    top: -15px;
    left: -30px;
    right: 0px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

#nw9 .tab_preview_picture {
    background: #ffffff;
}

#nw9 .tab_preview_picture,
#nw9 .tab_link_entry::after {
    position: absolute;
    display: inline-block;
    overflow: hidden;
    top: 50%;
    left: 10px;
    width: 70px;
    height: 70px;
    margin: -35px 0 0 0;
    border-radius: 50%;
}

#nw9 .tab_link_entry::after {
    content: '';
    background: center / cover no-repeat, #666666;
    z-index: -1;
}

#nw9 .tab_preview_picture img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: 110px;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
}

#nw9 .tab_date {
    font-style: normal;
    color: #191919;
}

#nw9 .vorschau,
#nw9 .tab_link_entry>div:nth-last-child(2) {
    display: none;
}

#nw9 .tab_link_entry .tab_spacer {
    height: 0;
}

#nw9 .tab_link_mehr {
    font-size: 0;
}

#nw9 .tab_link_mehr a {
    text-decoration: none !important;
    display: block;
    position: relative;
    text-align: right;
    bottom: -64px;
    left: -30px;
    right: -30px;
    width: calc(100% + 60px);
    color: #ffffff;
    font-weight: 600;
    padding: 15px 30px;
    font-size: 1.125rem;
    background-color: #004a9b;
}

#nw9 .tab_link_mehr a:hover,
#nw9 .tab_link_mehr a:focus {
    color: #ffffff;
    background-color: #191919;
}

/* ------------------------------------------- tabsAside ------------------------------------------ */

#tabsAside {
    padding-top: clamp(25px, 6vw, 100px);
    padding-bottom: 72px;
    background: url('../img/freisteller-logo.png') no-repeat left bottom;
}

@media (min-width: 768px) {
    #tabsAside .tab .btgrid .col-md-2 {
        display: flex;
    }

    #tabsAside .tab .btgrid .col-md-2 .content {
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
    }
}

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

#kontakt {
    background-color: #add5f3;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#kontakt .tab {
    padding: 60px 25px;
    color: #191919;
    background: rgba(255, 255, 255, 0.8);
}

#kontakt .tabHeadline {
    color: #004a9b;
    margin: 0 0 10px 0;
    font-weight: 600;
    font-size: 1.5625rem;
}

#kontakt .tabHeadline::after {
    content: "";
    display: block;
    height: 2px;
    width: 160px;
    background-color: #191919;
    margin: 10px auto 15px auto;
}

@media (min-width: 768px) {
    #kontakt .tabHeadline::after {
        margin-left: auto;
        margin-right: 0;
    }
}

#kontakt a {
    color: #004a9b;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    transition: text-decoration 300ms linear;
    text-underline-offset: 3px;
    text-decoration-color: #191919;
}

#kontakt a:is(:hover, :focus) {
    text-decoration-color: transparent;
}

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

#footer {
    background-color: #ffffff;
    padding: 30px 0;
    color: #636363;
}

#innerfooter ul {
    padding: 0;
}

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

    #innerfooter li+li {
        margin-left: clamp(20px, 3vw, 40px);
    }
}

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

#innerfooter a {
    color: #191919;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9375rem;
}

#innerfooter a:is(:hover, :focus) {
    color: #004a9b;
}

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

#vernetzt {
    gap: 12px;
    text-align: left;
    font-size: 0.8125rem;
    color: #191919;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}