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

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

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

a {
    color: #01538d;
}

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

b,
strong {
    font-weight: 600;
}

@media (min-width: 1200px) {
    .row {
        max-width: 1420px;
        width: 100%;
    }
}

#over {
    overflow: clip;
    position: relative;
}

/* ------------------------------------------- topbar ------------------------------------------- */

#topbar {
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    background: #ffffff;
    position: relative;
}

@media (max-width: 991px) {
    #topbar {
        min-height: 95px;
    }
}

@media (min-width: 992px) {
    #topbar>.row>div:last-child {
        padding-top: 34px;
        padding-bottom: 40px;
    }
}

#topbar::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: #89c2d9;
}

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

#logoBox {
    position: absolute;
    top: 0;
    left: 15px;
    z-index: 50;
    text-decoration: none !important;
    display: flex;
}

#logoBox>*+* {
    margin-left: clamp(15px, 3vw, 25px);
}

#logo {
    display: inline-block;
    padding: 18px 20px 16px 20px;
    background: #ffffff;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

@media (max-width: 991px) {
    #logo {
        width: max-content;
    }
}

@media (min-width: 992px) {
    #logo {
        padding: 20px 42px 16px 42px;
    }
}

#logo img {
    display: block;
}

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

#logoText {
    padding-top: 25px;
    color: #444444;
    text-decoration: none !important;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.2;
    hyphens: auto;
}

@media (max-width: 767px) {
    #logoText {
        padding-top: 10px;
    }
}

#logoText :is(b, strong) {
    color: #01538d;
    display: block;
    font-size: clamp(1.125rem, 2vw, 1.5625rem);
}

/* -------------------------------------------- search ------------------------------------------ */

form[id^="search"] {
    display: inline-flex;
    margin: 20px auto;
    max-width: 250px;
    width: 100%;
}

@media (min-width: 992px) {
    form[id^="search"] {
        margin: 0 20px 0 0;
    }
}

form [id^="search_input"] {
    color: #444444;
    font-size: 1.0625rem;
    font-style: normal;
    background: transparent;
    padding: 6px 14px;
    border: 0;
    width: 100%;
}

form [id^="search_submit"] {
    width: 38px;
    border: none;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    transition: background 150ms linear;
}

form [id^="search_submit"]:is(:hover, :focus) {
    background-color: rgba(0, 0, 0, 0.1);
}

form [id^="search_input"]::placeholder {
    color: #444444 !important;
    opacity: 1 !important;
    font-style: normal !important;
}

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

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

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

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

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

#headerpic .nivo-controlNav {
    bottom: 25px;
}

@media (min-width: 768px) {
    #headerpic .nivo-controlNav {
        bottom: 40px;
    }

    .index #headerpic .nivo-controlNav {
        bottom: 70px;
    }
}

@media (min-width: 992px) {
    .index #headerpic .nivo-controlNav {
        bottom: 135px;
    }
}

@media (min-width: 1200px) {
    #headerpic .nivo-controlNav {
        bottom: 60px;
    }
}

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

.slider-mask {
    display: block;
    background: url('../img/banner-overlay.png') center bottom / 100% auto no-repeat, linear-gradient(to top, rgba(255, 255, 255, 1)0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.6) 100%);
}

@media (max-width: 767px) {
    #bannerOverlay {
        padding: 20px 0;
        border-bottom: 3px solid #e5edf3;
    }
}

#bannerOverlay .tabHeadline {
    font-weight: 600;
    line-height: 1.2;
    color: #01538d;
    font-size: clamp(1.375rem, 3vw, 2.1875rem);
    text-transform: uppercase;
    margin: 0;
}

@media (min-width: 768px) {
    #bannerOverlay {
        position: absolute;
        pointer-events: none;
        top: 130px;
        left: 0;
        right: 0;
        z-index: 12;
    }

    #bannerOverlay .tabHeadline {
        pointer-events: all;
    }
}

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

/* #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: #012644;
        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: 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: 6px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.navbar {
        border-radius: 2px;
        padding: 30px 20px;
        background: #ffffff;
        position: relative;
        box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    }

    #nav-position {
        padding-top: 5px;
        position: relative;
        z-index: 99;
    }

    #nav-position::before {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        background: #012644;
        pointer-events: none;
        z-index: -1;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    #nav-position:is(:hover, :focus-within)::before {
        opacity: 0.2;
    }

    nav.navbar .navbar-nav>li {
        display: block !important;
        width: 100%;
        float: none;
        position: relative;
    }

    nav.navbar .navbar-nav li[class*="toplevel"]>ul {
        pointer-events: none;
        position: absolute;
        left: 100%;
        top: 0 !important;
        z-index: 1000;
        display: block !important;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    nav.navbar .navbar-nav>li:is(.open, :hover)>ul,
    nav.navbar .navbar-nav>li.open:focus-within>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
        top: 100%;
    }

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

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

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

/* toplevel */

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

nav.navbar .navbar-nav li[class*="toplevel"]+li {
    margin-top: 2px;
}

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

@media (min-width: 992px) {
    nav.navbar .navbar-nav a[class*="toplevel"] {
        padding: 9px 15px;
    }

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

    nav.navbar .navbar-nav a[class*="toplevel"].dropdown-toggle::before {
        content: "\00BB";
        position: absolute;
        right: 15px;
        font-size: 22px;
        top: 19px;
        font-weight: 400;
        line-height: 0;
    }
}

/* toplevel-over */

nav.navbar .navbar-nav li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.navbar .navbar-nav li[class*="toplevel"]>a:is(:hover, :focus),
nav.navbar .navbar-nav li[class*="toplevel"].open>a,
nav.navbar .navbar-nav li[class*="toplevel"].open>a:is(:hover, :focus),
nav.navbar .navbar-nav li[class*="toplevel"][class*="_over"]>a,
nav.navbar .navbar-nav li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #ffffff;
    background: #01538d;
}

/* secondlevel + thirdlevel dropdown-box */

nav.navbar [class*="toplevel"]>ul {
    padding: 10px;
    background: #ffffff;
    border-radius: 2px;
}

@media (min-width: 992px) {
    nav.navbar [class*="toplevel"]>ul {
        margin-top: -20px;
        padding: 20px 20px;
        min-width: 360px;
        max-width: 500px;
        margin-left: 50px;
        box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    }

    nav.navbar li[class*="secondlevel"] {
        margin-bottom: 2px;
    }

    nav.navbar [class*="toplevel"]>ul::before,
    nav.navbar [class*="toplevel"]>ul::after {
        content: "";
        position: absolute;
        display: block;
    }

    nav.navbar [class*="toplevel"]>ul::before {
        width: 50px;
        top: 0;
        bottom: 0;
        left: -50px;
    }

    nav.navbar [class*="toplevel"]>ul::after {
        top: 12px;
        left: -24px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 17px 24px 17px 0;
        border-color: transparent #ffffff transparent transparent;
    }
}

nav.navbar [class*="secondlevel"]>ul {
    margin: 0px;
    padding: 4px 0;
}

/* secondlevel + thirdlevel */

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

nav.navbar a[class*="secondlevel"] {
    padding: 8px 35px 8px 10px;
    background: #f8f8f8;
}

@media (min-width: 992px) {
    nav.navbar a[class*="secondlevel"] {
        padding: 10px 20px
    }
}

nav.navbar a[class*="thirdlevel"] {
    padding: 6px 15px 6px 38px;
}

nav.navbar a[class*="thirdlevel"]::before {
    content: "\00BB";
    display: block;
    position: absolute;
    top: 15px;
    line-height: 0;
    left: 25px;
}

/* secondlevel + thirdlevel over */

nav.navbar li[class*="secondlevel"]:is(:hover, :focus-within)>a,
nav.navbar li[class*="secondlevel"]>a:is(:hover, :focus),
nav.navbar li[class*="secondlevel"].open>a,
nav.navbar li[class*="secondlevel"].open>a:is(:hover, :focus),
nav.navbar li[class*="secondlevel"][class*="_over"]>a,
nav.navbar li[class*="secondlevel"][class*="_over"]>a:is(:hover, :focus) {
    background: #01538d;
    color: #ffffff;
}

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

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

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

main>.row {
    row-gap: 30px;
}

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

/* #region -------------------------------------- tabs ------------------------------------------ */

#tabs hr,
#tabs .hrstyle {
    opacity: 1;
    margin: 0;
    margin-top: 35px;
    border: unset;
    height: 1px;
    background: rgba(110, 110, 110, 0.3);
}

@media (min-width: 768px) {
    #tabs {
        position: relative;
        z-index: 60;
        margin-top: -90px;
    }
}

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

@media (min-width: 992px) {
    #tabs {
        margin-top: -135px;
    }
}

#tabs .tab {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
}

#tabs .tab .tabHeadline {
    font-size: 1.25rem;
    color: #ffffff;
    background: #012a4a;
    padding: 51px 20px 45px 20px;
    position: relative;
    margin: 0;
    z-index: 1;
}

#tabs .tab1 .tabHeadline {
    background: url('../img/icon-geschaeftsfuehrer.png') bottom -20px right -10px no-repeat, #012a4a;
}

#tabs .tab2 .tabHeadline {
    background: url('../img/icon-technischer-bereich.png') bottom -10px right -10px no-repeat, #012a4a;
}

#tabs .tab3 .tabHeadline {
    background: url('../img/icon-notfallnummer.png') bottom -20px right -10px no-repeat, #012a4a;
}



#tabs .tab .tabContent {
    color: #444444;
    font-size: 0.9375rem;
    padding: 35px 20px 40px 20px;
}

#tabs .tab .tabContent :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.125rem;
}

/* #endregion ----------------------------------- tabs ------------------------------------------ */

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #01538d;
    font-weight: 600;
    line-height: 1.2;
    font-family: "Hind Madurai", sans-serif;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(2.0625rem, 4vw, 2.5rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.9375rem, 3.5vw, 2.1875rem);
}

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

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

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

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

/* ---------------------------------------------- kontakt ------------------------------------------ */

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

#kontakt .tab {
    padding: 60px clamp(40px, 6vw, 70px);
    color: #ffffff;
    background: rgba(1, 42, 74, 0.8);
}

#kontakt .tabHeadline {
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    font-size: 1.5625rem;
}

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

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

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

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

#footer {
    color: #444444;
    padding: 40px 0 25px 0;
    background: #ffffff;
    position: relative;
}

#footer::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: #89c2d9;
}

#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 #89c2d9;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
}

#innerfooter a {
    color: #444444;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

#innerfooter a:is(:hover, :focus) {
    color: #01538d;
}

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

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

#vernetzt span span {
    display: block;
}