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

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

body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: #222222;
    background: #ffffff;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #c20e0c;
}

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

b,
strong {
    font-weight: 700;
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
    outline: 3px solid #0066ff !important;
}

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

/* ----------------------------------------------- @3tp topbar ----------------------------------------------- */

#tp3 {
    color: #222222;
    padding-top: 5px;
    padding-bottom: 5px;
    background: #f8d001;
}

@media (max-width: 991px) {
    #tp3>.row>*+* {
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    #tp3>.row>*>*+* {
        margin-top: 10px;
    }
}

#tp3>.row>* {
    flex-wrap: wrap;
    gap: 5px 0;
}

#tp3 span {
    color: #222222;
    font-weight: 700;
    font-size: 1rem;
    padding-right: 10px;
}

/* ------------------------------------------------ contrast_style ---------------------------------------------- */

#contrast_style button {
    color: #000000;
    padding: 0;
    font-size: 0;
    border: unset !important;
    display: inline-block;
    text-align: center;
    width: 23px;
    height: 23px;
    font-weight: 400;
    background: transparent;
    transition: background 300ms linear;
    position: relative;
    z-index: 1;
}

#contrast_style button+button {
    margin-left: 3px;
}

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

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

#style button {
    padding: 0;
    border: none;
    color: #222222;
    display: inline-block;
    min-width: 28px;
    min-height: 20px;
    font-weight: 400;
    font-size: 1rem;
    text-align: center;
    background: transparent;
    position: relative;
    line-height: 1;
    transition: color 300ms linear;
}

#style button+button {
    border-left: 1px solid #222222;
}

#style button:hover,
#style button:focus {
    color: #c20e0c;
}

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

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

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

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

@media (min-width: 992px) {
    form[id^="search"] {
        margin-left: clamp(30px, 6vw, 105px);
    }
}

form [id^="search_input"] {
    font-size: 0.9375rem;
    color: #222222;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: 15px;
    padding-right: 60px;
    min-height: 39px;
    width: 100%;
    display: block;
}

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

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
    background-color: #f1f1f1;
}

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

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

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

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

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

/* für :focus-visible -> setzt die Umrandung -3px weiter hinein */
form[id^="search"],
form [id^="search_input"],
form [id^="search_submit"] {
    outline-offset: -3px;
}

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

#logo {
    display: flex;
    gap: 5px;
    text-decoration: none;
}

@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: -65px;
    }

    .is-sticky #logo {
        top: -25px;
    }

    .is-sticky .logoTxt {
        display: none;
    }

    .is-sticky #logo .logoImg img {
        max-width: 70px;
    }
}

#logo .logoImg img {
    display: block;
}

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

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

#logo .logoTxt :is(h1, h2, h3, h4, h5, h6) {
    color: #1c1c1c;
    margin: 0;
    line-height: 1.4;
}

#logo .logoTxt :is(h1, h2, h3) {
    font-size: clamp(1.75rem, 2vw, 2.4375rem);
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        padding: 10px 0;
        position: static !important;
        background-color: #ffffff;
        box-shadow: 0px 1px 15px 0px rgba(26, 23, 27, 0.3);
    }

    #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: #c20e0c;
        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 {
        background-color: #ffffff;
    }

    .is-sticky nav.horizontally {
        box-shadow: 0px 1px 15px 0px rgba(26, 23, 27, 0.3);
    }

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

    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.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(:hover)>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:is(:hover, :focus)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #222222;
    text-align: left;
    padding: 10px 15px 15px 15px;
    position: relative;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Roboto", sans-serif;
    text-decoration: none;
}

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

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

    nav.horizontally a[class*="toplevel"] {
        text-align: center;
        padding: 17px 4px 16px 4px;
    }
}

/* 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: #ffffff;
    background-color: #c20e0c;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 2px 5px 0px rgba(26, 23, 27, 0.44);
}

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

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

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

    nav.horizontally [class*="toplevel"]>ul::before {
        content: '';
        position: absolute;
        display: block;
        top: -7px;
        height: 7px;
        left: 0;
        right: 0;
    }

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

    nav.horizontally [class*="secondlevel"]>ul::before {
        content: "";
        position: absolute;
        display: block;
        width: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

/* secondlevel + thirdlevel */

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

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

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

    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
        content: "";
        display: block;
        position: absolute;
        right: 8px;
        top: 13px;
        width: 7px;
        height: 7px;
        border-radius: 100%;
        background: #222222;
        opacity: 0;
        transition: opacity 300ms linear;
    }
}

/* 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: #f8d001;
    color: #222222;
}

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


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

/* -------------------------------------------- banner ------------------------------------------ */

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

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

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

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

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

.slider-mask {
    display: block;
    background: url('../img/overlay-banner.png') bottom -1px center / 100% auto no-repeat;
}

@media (min-width: 1200px) {
    #headerpic .theme-nivo .nivo-controlNav {
        bottom: unset !important;
        top: 10px !important;
    }
}

/* ------------------------------------------------ @14tab ----------------------------------------------- */

@media (min-width: 1200px) {
    #tab14 {
        margin-top: -80px;
        position: relative;
        z-index: 12;
    }
}

#tab14>.row {
    box-shadow: 0px 2px 5px 0px rgba(26, 23, 27, 0.3);
}

@media (max-width: 1199px) {
    #tab14 {
        padding-top: 30px;
    }
}

@media (max-width: 575px) {
    #tab14 {
        padding-bottom: 30px;
    }
}

#tab14 .tab {
    text-align: center;
    color: #222222;
    font-size: 1rem;
    position: relative;
    min-height: 100%;
    padding: 20px;
    hyphens: auto;
    background-color: #ffffff;
    transition:
        border-radius 400ms ease-in-out,
        margin 400ms ease-in-out,
        padding 400ms ease-in-out,
        background 400ms ease-in-out,
        min-height 400ms ease-in-out;
}

#tab14 .tab:is(:hover, :focus) {
    color: #ffffff;
    background-color: #c20e0c;
}

@media (min-width: 1200px) {
    #tab14 .tab:is(:hover, :focus) {
        min-height: calc(100% + 55px);
        margin-top: -55px;
        padding-top: 30px;
    }

    #tab14 .tab {
        padding: 20px 15px 15px 15px;
    }
}

#tab14 :is(h1, h2, h3, h4, h5, h6) {
    color: inherit;
    font-size: 1.25rem;
}

#tab14 .tab a {
    color: inherit;
    display: block;
}

#tab14>.row>* {
    padding: 0px;
}

@media (max-width: 767px) {
    #tab14 {
        margin: 15px;
    }

    #tab14>.row {
        overflow: hidden;
    }
}

#tab14 :is(h1, h2, h3, h4, h5, h6)::before {
    content: '';
    pointer-events: none;
    display: block;
    width: 75px;
    height: 75px;
    margin: auto;
    margin-bottom: 10px;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

#tab14 .tab1 :is(h1, h2, h3, h4, h5, h6)::before {
    background-image: url('../img/icon-neues.png')
}

#tab14 .tab2 :is(h1, h2, h3, h4, h5, h6)::before {
    background-image: url('../img/icon-app.png')
}

#tab14 .tab3 :is(h1, h2, h3, h4, h5, h6)::before {
    background-image: url('../img/icon-gebuehren-und-satzungen.png')
}

#tab14 .tab4 :is(h1, h2, h3, h4, h5, h6)::before {
    background-image: url('../img/icon-antragsformulare.png')
}

#tab14 .tab5 :is(h1, h2, h3, h4, h5, h6)::before {
    background-image: url('../img/icon-abfallbeseitigung.png')
}

#tab14 .tab6 :is(h1, h2, h3, h4, h5, h6)::before {
    background-image: url('../img/icon-app.png')
}

#tab14 .tab:is(:hover, :focus) :is(h1, h2, h3, h4, h5, h6)::before {
    filter: brightness(0) saturate(100%) invert(78%) sepia(65%) saturate(1173%) hue-rotate(1deg) brightness(100%) contrast(98%);
}

/* ------------------------------------------------ contentBox ----------------------------------------------- */

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

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

@media (min-width: 992px) {
    .index #content {
        padding-left: 15px;
    }
}

/* ------------------------------------------------ tabsLeft ----------------------------------------------- */

#tabsLeft {
    display: grid;
    gap: 30px;
}

@media (min-width: 576px) and (max-width: 991px) {
    #tabsLeft {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    #tabsLeft {
        align-items: start;
        align-content: start;
    }
}

#tabsLeft .tab {
    padding: 4px 2px;
    background: #ffffff;
    box-shadow: 0px 2px 5px 0px rgba(26, 23, 27, 0.3);
}

#tabsLeft .tabHeadline {
    color: #ffffff;
    background: #c20e0c;
    position: relative;
    padding: 15px 18px 8px 18px;
    font-size: clamp(1.5rem, 2vw, 1.5625rem);
    margin: 0;
}

#tabsLeft .tabHeadline::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: #ffffff;
}

#tabsLeft .tab .tabContent {
    padding: 20px 15px;
    background: url('../img/wasserzeichen-wappen-trunkelsberg.png') bottom 16px left 10px no-repeat;
}

#tabsLeft .tab .tab_link_title a {
    color: #222222;
    font-weight: 700;
}

#tabsLeft .tab .tab_link_mandat a {
    color: #222222;
    font-style: italic;
}

#tabsLeft .tab .tab_link_mehr {
    font-size: 0;
}

#tabsLeft .tab .tab_link_mehr a {
    font-size: 1rem;
}

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

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

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

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

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

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.25rem;
}

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
    font-size: 1rem;
    color: #ffffff;
    padding-top: clamp(30px, 3vw, 40px);
    padding-bottom: clamp(30px, 3vw, 35px);
    background: url('../img/footermuster.png') center repeat, #373737;
    position: relative;
}

#f5::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 2px;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
}

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

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

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

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

#innerfooter {
    margin-top: clamp(30px, 4vw, 50px);
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

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

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

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

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

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

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

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

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

#vernetzt span span {
    display: block;
}

/* --------------------------------------------- kontraste -------------------------------------------- */

.contrast_light_font #search input::placeholder {
    color: #ffffff !important;
}

.contrast_light_font #tab14 .tabHeadline::before {
    background-color: #ffffff !important;
}

.contrast_light_font #tab14 .tab:is(:hover, :focus) .tabHeadline::before {
    filter: brightness(0) saturate(100%) invert(100%) sepia(6%) saturate(7484%) hue-rotate(215deg) brightness(102%) contrast(111%) !important;
    background-color: unset !important;
}

.contrast_dark_font #tab14 .tab:is(:hover, :focus) .tabHeadline::before {
    filter: brightness(0) saturate(100%) invert(0%) sepia(100%) saturate(1%) hue-rotate(351deg) brightness(97%) contrast(102%) !important;
    background-color: unset !important;
}

.contrast_light_font #f5,
.contrast_dark_font #f5 {
    background-image: unset !important;
}