@import url('https://fonts.verwaltungsportal.de/import/?family=Jost:400,400i,600,600i');
@import url("https://fonts.verwaltungsportal.de/import/?family=Oswald:600,600i");

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

body {
    font-family: "Jost", sans-serif;
    font-weight: 400;
    color: #1a1a1a;
    background: #d1e6fe;
    font-size: clamp(1rem, 1vw, 1.1875rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #833a0d;
}

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

b,
strong {
    font-weight: 600;
}

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

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

#topbar {
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    background: linear-gradient(to right, #084283, #084283) bottom 12px left / 100% 5px no-repeat, #d1e6fe;
}

@media (max-width: 991px) {
    #topbar {
        padding: 10px 0;
        min-height: 95px;
        position: relative !important;
    }

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

@media (min-width: 992px) {
    #topbar {
        background: linear-gradient(to right, #084283, #084283) bottom 12px left / 100% 5px no-repeat, url('../img/zielscheibe-header.png') center right no-repeat, #d1e6fe;
    }

    #topbar>.row>*:not(:first-child) {
        padding-top: 22px;
        padding-bottom: 34px;
    }
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: 14px;
        left: 15px;
        z-index: 50;
    }

    #logo img {
        max-height: 162px;
        transition: max-height 300ms ease;
    }

    .is-sticky #logo img {
        max-height: 100px;
    }
}

.tabName {
    line-height: 1;
    color: #1a1a1a;
    font-weight: 600;
    font-size: clamp(1.25rem, 2vw, 2.1875rem);
    font-family: "Oswald", sans-serif;
}

@media (min-width: 768px) {
    .tabName {
        padding-top: 25px;
    }
}

@media (min-width: 992px) {
    .tabName {
        padding-top: 10px;
        padding-left: 10px;
    }
}

.tabName :is(b, strong) {
    color: #084283;
    font-weight: 600;
}

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

form[id^="search"] {
    display: inline-flex;
    position: relative;
    margin: 20px auto;
    max-width: 250px;
    width: 100%;
    border-radius: 20px;
    background: #f4f4f4;
}

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

form [id^="search_input"] {
    color: #444444;
    font-size: 1rem;
    font-style: normal;
    background: transparent;
    min-height: 29px;
    padding: 0;
    padding-right: 45px;
    padding-left: 15px;
    border-radius: 20px;
    border: 0;
    width: 100%;
}

form [id^="search_submit"] {
    position: absolute;
    min-width: 40px;
    min-height: 40px;
    border: none;
    background: url('../img/lupe-icon.png') center no-repeat, #084283;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    top: -5px;
    bottom: -5px;
    right: 0;
    margin: auto;
    border-radius: 100%;
    border: 5px solid #fbfbfb;
    transition: background 150ms linear;
}

form [id^="search_submit"]:is(:hover, :focus) {
    background-color: #833a0d;
}

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

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

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

    #style button {
        font-size: 1rem;
        padding: 0;
        border: none;
        color: #ffffff;
        display: inline-block;
        font-weight: 600;
        text-align: center;
        position: relative;
        line-height: 1;
        min-width: 29px;
        min-height: 29px;
        border: 1px solid #084283;
        border-radius: 100%;
        background: #084283;
        transition: color 300ms linear, background 300ms linear;
    }

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

    #style button:hover {
        color: #1a1a1a;
        background: #ffffff;
    }

    #style button:focus-visible {
        outline: 2px auto;
    }
}

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

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(450px, 79vw, 880px);
    }

    #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: 110px;
    }
}

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

@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), rgba(255, 255, 255, 0) 40%);
}

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

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

/* burgermenu for tablet */

#burgerButton {
    font-size: 0;
    border: none !important;
    position: relative;
    z-index: 1002;
    display: inline-block;
    width: 58px;
    height: 58px;
    cursor: pointer;
    background: #d1e6fe;
}

@media (max-width: 991px) {
    #burgerButton {
        position: fixed;
        right: 15px;
        top: 10px;
    }
}

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

    #burgerButton span:last-of-type {
        font-size: 25px;
        position: absolute;
        left: 60px;
        top: 16px;
        color: #1a1a1a;
        font-weight: 600;
        line-height: 1;
    }
}

#burgerButton::before,
#burgerButton::after,
#burgerButtonInner {
    position: absolute;
    background: #084283;
    width: 38px;
    height: 4px;
    left: 10px;
    transition: transform 200ms linear, opacity 200ms linear;
}

@media (prefers-contrast: more) {

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        border: 2px solid #ffffff;
        box-sizing: border-box;
    }
}

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

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

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

#burgerButtonInner {
    top: 19px;
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #084283;
        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);
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    #myNavbar {
        background: #ffffff url('../img/zielscheibe-menu.png') bottom right no-repeat;
        pointer-events: none;
        position: absolute;
        z-index: 1002;
        top: 70px;
        left: 23px;
        opacity: 0;
        width: 580px;
        border-radius: 0;
        height: auto !important;
        overflow: visible !important;
        box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);
        transition: opacity 300ms linear, top 300ms linear;
    }

    #burgerButton[aria-expanded="true"]+#myNavbar,
    #myNavbar:focus-within {
        pointer-events: auto;
        opacity: 1;
        top: 140px;
    }

    #myNavbar::before {
        content: "";
        display: block;
        position: absolute;
        left: 15px;
        top: -18px;
        width: 50px;
        height: 18px;
        clip-path: polygon(0 100%, 100% 100%, 50% 0);
        background: #084283;
    }

    .navbar-nav {
        padding: 23px 0 25px 0;
        background: #084283;
        min-height: 300px;
    }

    nav.burger li[class*="toplevel"]>ul {
        padding: 25px 20px;
        position: absolute;
        z-index: 2;
        left: 50%;
        top: 0 !important;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    .navbar-nav,
    nav.burger li[class*="toplevel"]>ul {
        width: 50%;
    }

    nav.burger #myNavbar:is([aria-expanded="true"], .in) li[class*="toplevel"][class*="_over"]>ul,
    nav.burger li[class*="toplevel"]:is(:hover, :focus-within)>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    nav.burger li[class*="toplevel"]:is(:hover, :focus-within)>ul {
        z-index: 3;
    }

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

/* toplevel */

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

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

@media (min-width: 992px) {
    nav.burger .navbar-nav a[class*="toplevel"] {
        padding: 7px 30px;
        text-align: right;
    }

    nav.burger .navbar-nav a[class*="toplevel"]::before {
        content: "";
        position: absolute;
        display: block;
        width: 25px;
        top: 0;
        bottom: 0;
        right: -25px;
    }
}

/* toplevel-over */

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

/* secondlevel + thirdlevel dropdown-box */

nav.burger li[class*="toplevel"]>ul {
    background: #ffffff;
}

/* secondlevel + thirdlevel */

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

nav.burger li:is([class*="_start"], [class*="end"]) {
    display: none;
}

@media (min-width: 992px) {
    nav.burger li[class*="secondlevel"] {
        border-top: 1px dashed rgba(82, 82, 82, 0.4);
    }

    nav.burger a[class*="secondlevel"] {
        padding: 9px 2px;
    }

    nav.burger a[class*="thirdlevel"] {
        padding: 5px 10px 5px 34px;
    }

    nav.burger a[class*="thirdlevel"]::after {
        content: "";
        position: absolute;
        left: 8px;
        top: 50%;
        background: #ffffff;
        width: 5px;
        height: 5px;
        margin-top: -2px;
        border-radius: 50%;
    }
}

/* secondlevel + thirdlevel over */

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

nav.burger li[class*="thirdlevel"]:is(:hover, :focus-within)>a,
nav.burger li[class*="thirdlevel"]>a:is(:hover, :focus),
nav.burger li[class*="thirdlevel"].open>a,
nav.burger li[class*="thirdlevel"].open>a:is(:hover, :focus),
nav.burger li[class*="thirdlevel"][class*="_over"]>a,
nav.burger li[class*="thirdlevel"][class*="_over"]>a:is(:hover, :focus) {
    background: #eded64;
    color: #1a1a1a;
}

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

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

main {
    background: url('../img/zielscheibe-bg.png') bottom left no-repeat;
}

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

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

hr,
.hrstyle {
    opacity: 1;
    background-color: transparent;
    border-color: rgba(110, 110, 110, 0.3);
}

/* #region -------------------------------------- news ------------------------------------------ */

#news {
    margin-top: 30px;
}

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

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

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

#news .tab1 hr {
    margin: 24px 0;
}

#news .tab {
    height: 100%;
    min-height: 100%;
    background: #ffffff;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
}

#news .tab1 {
    padding: clamp(20px, 2vw, 40px) clamp(20px, 2vw, 30px);
}

#news .tab1 :is(h1, h2, h3, h4, h5, h6) {
    color: #1a1a1a;
    margin-bottom: clamp(15px, 2vw, 25px);
    font-size: 1.5625rem;
}

#news .tab_link_entries {
    display: grid;
    gap: 30px;
}

@media (min-width: 576px) {
    #news .tab_link_entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    #news .tab_link_entries {
        grid-template-columns: repeat(3, 1fr);
    }
}

#news .tab_link_entry {
    color: #1a1a1a;
    border-bottom: none !important;
    position: relative;
    background: #ffffff;
    border-radius: 2px;
    width: 100%;
    padding: 220px 20px 40px 20px;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
}

#news .tab_link_entry::before {
    content: "";
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#news .tab_link_entry::before,
#news .tab_link_entry .tab_preview_picture {
    display: block;
    height: 180px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

#news .tab_preview_picture img {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#news .tab_date {
    font-size: 1rem;
    position: absolute;
    right: -15px;
    top: 164px;
    z-index: 1;
    font-weight: 600;
    display: inline-block;
    padding: 4px 10px;
    background: #eded64;
    color: #1a1a1a;
}

#news .tab_link_title a {
    color: #1a1a1a;
    font-weight: 600;
    font-family: "Oswald", sans-serif;
    font-size: 1.25rem;
    line-height: 1.2;
    display: block;
    margin-bottom: 10px;
}

#news .tab_spacer,
#news .tab_link_entry .tab_link_mehr {
    display: none;
}

#news .tab_link_mehr {
    margin: -15px 0 0 0;
}

#news .tab_link_mehr hr {
    margin: 15px 0 0 0;
}

#news .tab_link_mehr a {
    font-weight: 500;
}

#news .tab_link_mehr a::after {
    content: "\00BB";
    margin-left: 4px;
    display: inline-block;
}

/* #endregion ----------------------------------- news ------------------------------------------ */

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

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

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

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

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.8125rem, 2vw, 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;
}

/* ----------------------------------------------- @19f footer ----------------------------------------------- */

#f19 {
    color: #ffffff;
    padding-top: 25px;
    padding-bottom: 25px;
    background-color: #084283;
}

@media (max-width: 767px) {
    #f19 .row>.col-xs-12:not(:first-child)::before {
        background: #ffffff;
        content: " ";
        height: 1px;
        width: 100%;
        display: block;
        margin: 25px 0;
        opacity: 0.2;
    }

    #f19 .row>.col-xs-12.hidden-xs~.col-xs-12::before,
    #f19 .row>.col-xs-12.hidden-sm~.col-xs-12::before {
        display: none;
    }
}

@media (min-width: 768px) {
    #f19>.row>*:last-child {
        margin-top: 20px;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* ------------------------------------------------- counter ------------------------------------------------- */

#counter {
    color: #ffffff;
    font-size: 1rem;
    padding: 5px 16px 5px 45px;
    margin: 0 auto;
    max-width: 235px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    background: url('../img/icon-besucher.png') center left 16px no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    #counter {
        margin-left: auto;
        margin-right: 0;
    }
}

#counter span {
    font-weight: 600;
    padding-right: 5px;
}

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

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

@media (min-width: 1200px) {
    #vernetzt {
        margin-left: 20px;
    }
}

#vernetzt b {
    color: #eded64;
}

#vernetzt span {
    color: #ffffff;
}

#vernetzt span span {
    display: block;
}

#vernetzt img {
    margin-right: 16px;
}

/* ------------------------------------------------- innerfooter ------------------------------------------------- */

#innerfooter ul {
    padding: 0;
}

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

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

#innerfooter a:hover,
#innerfooter a:focus {
    color: #eded64;
    text-decoration: underline;
}

#innerfooter li+li::before {
    content: "•";
    margin: 0 15px;
}

@media (min-width: 1200px) {
    #innerfooter li+li::before {
        margin: 0 40px;
    }
}

@media (max-width: 767px) {
    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

    #innerfooter li+li::before {
        display: none;
    }
}