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

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

body {
    font-family: "Open Sans", sans-serif;
    color: #222222;
    background: #f0f0f0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    /* 1rem = 16px */
    line-height: 1.5;
    box-shadow: 0 0 100px 0 rgba(0, 0, 0, 0.1);
}

a {
    color: #ab2524;
}

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

b,
strong {
    font-weight: 700;
}

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

/* #region --------------------------------------- logo ----------------------------------------- */

#logo {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 20px;
    color: #f4f4ed;
    text-decoration: none;
}

#logo .logoImg img {
    display: block;
}

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

@media (max-width: 767px) {
    #logo .logoImg img {
        max-width: 60px;
    }
}

#logo .logoTxt {
    line-height: 1.2;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

#logo .logoTxt :is(b, strong) {
    display: block;
    font-size: clamp(1.125rem, 2vw, 1.625rem);
}

/* #endregion ----------------------------------- logo ------------------------------------------ */

/* #region -------------------------------------- topbar ---------------------------------------- */

#topbar {
    line-height: 1.3;
    padding-top: 25px;
    font-size: clamp(0.875rem, 1vw, 1.125rem);
}

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

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

#topbar,
#topbar :is(h1, h2, h3, h4, h5, h6, a) {
    color: #ffffff;
}

#topbar :is(b, strong, a) {
    font-size: clamp(1rem, 2vw, 1.5rem);
}

/* contact col */

#phone-tab {
    padding-top: 42px;
    display: block;
    min-height: 42px;
    min-width: 42px;
    background-position: top left;
    background-repeat: no-repeat;
}

@media (min-width: 576px) {
    #phone-tab {
        padding-top: 0;
        padding-left: 50px;
        background-position: center left;
    }
}

#phone-tab,
#phone-tab-mobil {
    background-image: url('../img/icon-feuerwehr.png');
}

#phone-tab-mobil {
    color: #ffffff;
    padding-top: 42px;
    display: block;
    min-height: 42px;
    min-width: 42px;
    margin-top: 30px;
    background-position: top left 15px;
    background-repeat: no-repeat;
}

/* #endregion ----------------------------------- topbar ---------------------------------------- */

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
    }

    .sticky-wrapper {
        height: unset !important;
    }

    #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: #222222;
        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 {
        padding: 20px 10px;
        border-top: 1px solid #ffffff;
    }

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

    .dropdown-toggle-button-wrapper2 {
        top: 6px;
        right: 0;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        transition: background 300ms linear;
    }

    .is-sticky nav.horizontally {
        left: auto !important;
        background: #222222;
    }

    nav.horizontally .navbar-nav {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding: 20px 0;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .is-sticky nav.horizontally .navbar-nav {
        border-top-color: transparent;
    }

    nav.horizontally li[class*="toplevel"] {
        flex-grow: 1;
    }

    nav.horizontally [class*="toplevel"]>ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        position: absolute;
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav li {
        position: relative;
    }

    nav.horizontally .navbar-nav li :is([class*="toplevel"]>ul, [class*="secondlevel"]>ul) {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms linear;
    }

    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: #f4f4ed;
    font-weight: 400;
    text-transform: uppercase;
    text-align: left;
    padding: 14px 5px;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: border 300ms linear;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-top: 2px;
    }

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 6px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
        font-size: 1.125rem;
    }

    nav.horizontally li[class*="toplevel"]+li {
        border-left: 1px solid rgba(255, 255, 255, 0.3);
    }
}

nav.horizontally a[class*="toplevel"]::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 0;
    height: 5px;
    width: 0;
    background: #f5ff00;
    transform: translateX(-50%);
    transition: width 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::after {
        top: -23px;
        background: #f5ff00;
        bottom: auto;
    }
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"].open>a::after,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::after {
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 10px;
    background: #ab2524;
    box-shadow: 0 20px 30px 0 rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):not(:nth-child(2)) {
    border-top: 1px solid #b23a38;
}

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

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        font-size: 1.125rem;
        padding-right: 60px;
    }

    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
        content: '';
        position: absolute;
        pointer-events: none;
        top: 11px;
        right: 30px;
        width: 18px;
        height: 21px;
        background: url('../img/icon-flamme.png') center no-repeat;
        transition: opacity 300ms linear;
        opacity: 0;
    }
}

@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: #f5ff00;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::after {
    opacity: 1;
}

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

/* #region ------------------------------------- resp-gaps -------------------------------------- */

#topbar .row {
    row-gap: 25px;
}

:is(#headerpic, #footer)>.row {
    row-gap: 40px;
}

/* #endregion ---------------------------------- resp-gaps -------------------------------------- */

/* #region -------------------------------------- header ---------------------------------------- */

#headerpic {
    background: #222222;
    position: relative;
    min-height: 250px;
}

@media (min-width: 992px) {
    #headerpic {
        min-height: 450px;
    }

    body:not(.index) #headerpic {
        padding-bottom: 8vw;
    }
}

#headerpic>*:not(.slider-wrapper):not(.sticky-wrapper):not(nav.horizontally) {
    position: relative;
    z-index: 10;
}

/* header text */

#header-text {
    padding: clamp(60px, 12vw, 175px) 0 clamp(80px, 20vw, 361px) 0;
}

.theme-default .nivo-controlNav a,
#header-text,
#header-text :is(h1, h2, h3, h4, h5, h6, a) {
    color: #ffffff;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.theme-nivo .nivo-controlNav .slick-dots li,
.nivo-directionNav a,
a.nivo-control,
a.nivo-control.active {
    color: #ffffff !important;
}

#header-text :is(h1, h2, h3, h4, h5, h6) {
    text-transform: uppercase;
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

@media (max-width: 767px) {
    #header-text {
        padding-top: 25px;
        padding-bottom: 40px;
    }

    #header-text :is(h1, h2, h3, h4, h5, h6) {
        font-size: 1.375rem;
    }
}

/* banner */

#slider {
    position: relative;
    height: 100%;
}

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

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

@media (max-width: 1199px) {
    #headerpic a:is(.nivo-prevNav, .nivo-nextNav) {
        top: auto;
        bottom: 8px;
        z-index: 51;
    }
}

.slider-wrapper {
    position: absolute !important;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.slider-mask {
    display: block;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 220px, rgba(255, 255, 255, 0));
}

#headerpic .nivo-main-image {
    min-height: 100% !important;
}

@media (max-width: 991px) {

    #slider-onebanner,
    #slider .nivo-box>div,
    #slider .nivo-slice>div,
    #slider .nivo-main-image,
    #slider div[style*='background-size'] {
        background-size: auto !important;
    }
}

/* #endregion ----------------------------------- header ---------------------------------------- */

/* ------------------------------------------- tabsCount ------------------------------------------ */

#tabsCount {
    color: #f4f4ed;
    padding-top: 30px;
    padding-bottom: clamp(30px, 3vw, 40px);
    background: #ab2524;
}

#tabsCount .tabHeadline {
    color: #f4f4ed;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    text-transform: uppercase;
}

#tabsCount a {
    color: #f4f4ed;
}

#tabsCount :is(b, strong) {
    display: block;
    color: #f5ff00;
    font-size: clamp(1.375rem, 2vw, 2rem);
}

@media (min-width: 992px) {
    #tabsCount .btgrid .row.row-1>div {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

#tabsCount .btgrid .row.row-1>div:nth-child(6n+6) {
    display: none;
}

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

#news {
    padding: clamp(30px, 3vw, 45px) 0 0 0;
}

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

#news .tab_link {
    display: flex;
    align-items: stretch;
    height: 100%;
}

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

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

#news .tab_link_entry {
    background: #f4f4ed;
    padding: 50px 30px;
    position: relative;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
    border-bottom: none !important;
    font-size: 1rem;
}

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

#news .vorschau {
    color: #222222;
    opacity: 1;
}

#news .tab_link_title a {
    color: #ab2524;
    font-weight: 700;
    line-height: 1.2;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 15px;
    display: block;
}

#news .tab_date {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #ab2524;
    background: #f4f4ed;
    font-size: 0.9375rem;
    padding: 5px 10px;
    z-index: 12;
}

#news .tab_link_mehr {
    margin-top: 30px;
}

/* news tab */

#news .tab {
    font-size: clamp(1rem, 1vw, 1.125rem);
    background: #ab2524;
    min-height: 100%;
    padding: 30px clamp(30px, 3vw, 40px) clamp(30px, 3vw, 40px) clamp(30px, 3vw, 40px);
    z-index: 12;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.2);
}

#news .tab,
#news .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
}

#news .tab :is(h1, h2, h3, h4, h5, h6) {
    text-transform: uppercase;
    font-size: clamp(1.75rem, 2vw, 2rem);
}

#news .tab::before {
    content: "";
    position: absolute;
    transform: rotate(45deg);
    width: 400px;
    height: 600px;
    background: rgba(244, 244, 237, 0.10);
    pointer-events: none;
    border-radius: 35px;
    right: 190px;
    top: -135px;
    z-index: -1;
}

#news .tab a {
    margin-top: 30px;
}

/* news headlineTab */

.headlineTab .tabHeadline {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    text-transform: uppercase;
    position: relative;
}

/* news buttonStyle */

.tab_link_mehr {
    font-size: 0;
}

.tab_link_mehr a,
.buttonStyle a:not(.has-image):not([rel]) {
    font-weight: 400;
    display: inline-block;
    padding: 6px 18px 7px 18px;
    color: #f5ff00;
    background: #ab2524;
    font-size: clamp(1rem, 1vw, 1.125rem);
    text-decoration: none;
}

.tab_link_mehr a:is(:hover, :focus) {
    color: #ffffff;
    background: #222222;
}

.buttonStyle a:not(.has-image):not([rel]) {
    color: #ffffff;
    background: #222222;
}

.buttonStyle a:not(.has-image):not([rel]):is(:hover, :focus) {
    color: #f5ff00;
    background: #222222;
}

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

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

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

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.875rem, 3vw, 2.8125rem);
}

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited),
.legacy_h4 {
    font-size: clamp(1.625rem, 2vw, 2.1875rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.5rem, 2vw, 1.875rem);
}

h6,
.h6,
.legacy_h6 {
    font-size: clamp(1.375rem, 2vw, 1.5625rem);
}

/* #region -------------------------------------- search ---------------------------------------- */

#searchbar {
    background: #ab2524;
    padding: 17px 0;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
}

#search {
    background: #ab2524;
    display: flex;
}

#search_input {
    color: #f4f4ed;
    font-size: clamp(1rem, 2vw, 1.375rem);
    font-style: normal;
    background: transparent;
    font-weight: 400;
    border: 0;
    width: 100%;
    padding: 11px 15px;
}

#search_submit {
    width: 55px;
    flex-shrink: 0;
    font-size: 0;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    border: none;
    transition: background-color 300ms linear;
}

#search_submit:is(:hover, :focus) {
    background-color: rgba(0, 0, 0, 0.1);
}

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

/* #endregion ----------------------------------- search ---------------------------------------- */

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

#footer {
    color: #ffffff;
    background-attachment: scroll, fixed;
    background-color: #222222;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    #footer {
        font-size: 1.125rem;
    }
}

#footer>.row:first-child {
    row-gap: 30px;
    padding: 50px 0 30px 0;
}

#footer iframe,
#footer .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
}

#footer a {
    color: #ffffff;
}

#footer .footerTab a {
    color: #f5ff00;
    text-decoration: underline;
}

@media (max-width: 767px) {
    #footer>.row:last-child {
        padding: 20px 0 25px 0;
    }
}

#footer .footerHeadline {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 1.625rem;
    margin-bottom: 4px;
}

#footer hr {
    margin: 0 auto;
    max-width: 1170px;
    height: 2px;
    opacity: 0.4;
    background: #ffffff;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    padding: clamp(6px, 3vw, 36px) 10px;
}

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

#innerfooter a:is(:hover, :focus) {
    background: rgba(255, 255, 255, 0.05);
}

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

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.4;
    text-decoration: none;
}

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

#vernetzt span span {
    display: block;
}