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

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

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

a {
    color: #c4500e;
}

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

#content a {
    text-decoration: underline;
    text-decoration-color: #edb90e;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

b,
strong {
    font-weight: 600;
}

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

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

#topbar {
    padding: 38px 0;
}

@media (max-width: 991px) {
    #topbar {
        padding: 20px 0;
    }

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

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

#Logo {
    position: relative;
    display: inline-block;
}

#Logo img {
    display: block;
}

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

#Logo::before {
    content: "";
    display: block;
    background: url('../img/freisteller-logo-header.png') center no-repeat;
    width: 156px;
    height: 199px;
    position: absolute;
    left: -170px;
    top: -40px;
    z-index: 70;
}

/* ----------------------------------------------- tabKontakt ----------------------------------------------- */

.tabKontakt {
    font-size: 0.875rem;
    position: relative;
    padding-left: 50px;
}

@media (max-width: 991px) {
    .kontaktMobil>*+* {
        margin-top: 15px;
    }
}

.tabKontakt::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    width: 35px;
    height: 35px;
}

.tabKontakt1::before {
    background: url('../img/icon-contact.png') center no-repeat, #98c21d;
}

.tabKontakt2::before {
    background: url('../img/icon-oeffnungszeiten.png') center no-repeat, #edb90e;
}

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

form[id^="search"] {
    min-height: 35px;
    display: block;
    position: relative;
    background: #1171b8;
}

@media (max-width: 575px) {
    form[id^="search"] {
        display: inline-block;
    }
}

@media (min-width: 576px) {
    form[id^="search"] {
        margin-left: 30px;
    }
}

form [id^="search_input"] {
    font-size: 0.875rem;
    color: #ffffff;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: 14px;
    padding-right: 54px;
    min-height: 35px;
    width: 100%;
    display: block;
}

form [id^="search_submit"] {
    width: 40px;
    background: url('../img/icon-lupe.png') center no-repeat, #1171b8;
    padding: 0;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 0;
    font-size: 0;
    border-left: 1px solid #ffffff;
    transition: background 200ms linear, top 200ms linear, bottom 200ms linear;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
    top: 0;
    bottom: 0;
    background-color: #c4500e;
}

[id^="search_input"]::-ms-input-placeholder {
    color: #ffffff !important;
}

[id^="search_input"]::-webkit-input-placeholder {
    color: #ffffff !important;
}

[id^="search_input"]::-moz-placeholder {
    opacity: 1;
}

[id^="search_input"]:-moz-placeholder {
    opacity: 1;
}

#search input::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
    font-style: normal !important;
}

/* #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: #1171b8;
        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: 7px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        position: relative;
        z-index: 60;
        background-color: #ffffff;
    }

    #menu {
        border-top: 3px solid #f3f3f3;
        background-color: #ffffff;
    }

    .is-sticky #menu {
        left: unset !important;
        box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
    }

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

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

    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;
    text-align: left;
    font-weight: 600;
    padding: 10px 15px;
    position: relative;
    font-size: 1.25rem;
    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"] {
        padding: 22px 10px;
        text-align: center;
        z-index: 1;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 3px;
    z-index: -1;
    background: #edb90e;
    transition: height 200ms linear;
}

nav.horizontally li[class*="toplevel"]:nth-child(4n+1)>a::before {
    background: #98c21d;
}

nav.horizontally li[class*="toplevel"]:nth-child(4n+3)>a::before {
    background: #1171b8;
}

nav.horizontally li[class*="toplevel"]:nth-child(4n+4)>a::before {
    background: #eb5f10;
}

/* toplevel-over */

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

nav.horizontally #menu li[class*="toplevel"]:is(:hover, :focus-within)>a::before,
nav.horizontally #menu li[class*="toplevel"]>a:is(:hover, :focus)::before,
nav.horizontally #menu li[class*="toplevel"].open>a::before,
nav.horizontally #menu li[class*="toplevel"].open>a:is(:hover, :focus)::before,
nav.horizontally #menu li[class*="toplevel"][class*="_over"]>a::before,
nav.horizontally #menu li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::before {
    height: 100%;
    background-color: #1171b8;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
}

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

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

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

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

    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::before {
        width: 12px;
        top: 0;
        bottom: 0;
        left: -12px;
    }
}

/* secondlevel + thirdlevel */

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

@media (max-width:991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: left;
    }

    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) {
    background: #ffffff;
    color: #1171b8;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.05);
}

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

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

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

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

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

    #headerpic .nivo-directionNav a {
        top: auto;
        bottom: 40px;
    }

    #headerpic .nivo-controlNav {
        pointer-events: none;
    }

    #headerpic .nivo-controlNav a {
        pointer-events: auto;
    }
}

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

.slider-mask {
    display: none;
}

@media (min-width: 992px) {
    #bannerOverlay {
        position: absolute;
        right: 0;
        bottom: 54px;
        left: 0;
        z-index: 53;
        pointer-events: none;
    }
}

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

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

/* #region -------------------------------- scroll bottom --------------------------------------- */

#scrollBottom {
    font-size: 0;
    border-radius: 4px;
    display: block;
    width: 36px;
    height: 36px;
    margin: 50px auto 0 auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    pointer-events: auto;
    animation: bounceAni 2s infinite 2s;
    transition: all .2s ease-in;
}

#scrollBottom:is(:hover, :focus) {
    animation-play-state: paused;
}

#scrollBottom::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 1px;
    margin-top: 10px;
    display: inline-block;
    border-left: 2px solid #1171b8;
    border-bottom: 2px solid #1171b8;
    transform: rotate(-45deg);
    transition: border 300ms linear;
}

@keyframes bounceAni {

    0%,
    100%,
    20%,
    50%,
    80% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

#scrollBottom:is(:hover, :focus)::after {
    border-color: #c4500e;
}

/* #endregion ----------------------------- scroll bottom --------------------------------------- */

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

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

@media (min-width: 1200px) {
    body:not(.index) #content>.row::before {
        content: '';
        position: absolute;
        pointer-events: none;
        left: -365px;
        bottom: clamp(-70px, -4vw, -30px);
        width: 328px;
        height: 434px;
        background: url('../img/freisteller-logo-main.png?v=1') center no-repeat;
    }
}

/* ------------------------------------------------ @1tab ----------------------------------------------- */

#tab1 {
    padding-bottom: clamp(30px, 4vw, 70px);
    position: relative;
}

@media (min-width: 1200px) {
    #tab1>.row::before {
        content: '';
        position: absolute;
        pointer-events: none;
        left: -365px;
        bottom: clamp(-145px, -8vw, -30px);
        width: 328px;
        height: 434px;
        background: url('../img/freisteller-logo-main.png') center no-repeat;
    }
}

#tab1>.row {
    row-gap: 30px;
}

#tab1 .tab {
    color: #ffffff;
    min-height: 100%;
    background-color: #1171b8;
    box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
}

#tab1 .tab .tabContent {
    padding: 20px;
    font-size: 1rem;
}

#tab1 .tab :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 0;
    font-size: clamp(1.25rem, 2vw, 1.5625rem);
    color: #ffffff;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image) {
    text-decoration: none;
    display: inline-block;
    color: #191919;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 7px 14px;
    margin-top: 15px;
    background-color: #ffffff;
    transition: background 300ms linear;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):hover,
#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):focus {
    color: #191919;
    background: #edb90e;
}

#tab1 .tabImg {
    width: 100%;
    height: 240px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #1171b8;
    font-weight: 600;
    line-height: 1.2;
    font-family: "Open 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.3125rem;
}

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

#footer {
    padding-bottom: clamp(26px, 3vw, 40px);
}

#footer::before {
    content: "";
    display: block;
    margin: 0 auto clamp(26px, 3vw, 35px) auto;
    max-width: 1170px;
    width: 100%;
    height: 1px;
    background: #e4e4e4;
}

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

#innerfooter ul {
    padding: 0;
}

#innerfooter a {
    color: #191919;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
}

#innerfooter a:is(:hover, :focus) {
    color: #c4500e;
    text-decoration: underline;
    text-decoration-color: #edb90e;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

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

    #innerfooter li+li::before {
        content: "\2022";
        margin: 0 clamp(15px, 2vw, 30px);
        color: #98c21d;
        font-size: 70%;
    }
}

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

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

#vernetzt strong {
    color: #c4500e;
}

#vernetzt span span {
    display: block;
}