@import url("https://fonts.verwaltungsportal.de/import/?family=Chelsea+Market:400");
@import url("https://fonts.verwaltungsportal.de/import/?family=DM+Sans:300,400,500,600,700,300i,400i,500i,600i,700i");

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

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

a {
    color: #0f6c97;
}

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

b,
strong {
    font-weight: 700;
}

a:focus {
    outline: 3px solid #ffb400 !important;
}

button:focus {
    outline: 3px solid #ffb400 !important;
}

form:focus {
    outline: 3px solid #ffb400 !important;
}

#search_input:focus,
#search_submit:focus,
#search_input2:focus,
#search_submit2:focus {
    outline: 3px solid #ffb400 !important;
}
/* ------------------------------------------------- logo ------------------------------------------------ */
#topbar {
    padding: 16px 0 26px 0;
}


#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (min-width: 992px) {
    #logo {
        position: relative;
        margin-bottom: -60px;
        z-index: 55;
    }
}

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

.wortmarke {
    color: #0f6c97;
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-family: "Chelsea Market", system-ui;
    line-height: 1;
    margin-left: 30px;
}

#search,
#search2 {
    height: 40px;
    background: #fff;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
#search_input,
#search_input2 {
    color: #444444;
    font-size: 16px;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 40px;
    padding-left: 10px;
    padding-right: 43px;
    height: 40px;
    width: 100%;
}
#search_submit,
#search_submit2 {
    width: 33px;
    background: url('../img/icon-lupe.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    line-height: 40px;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    font-size: 0;
    -webkit-transition: background-color 300ms linear;
    -moz-transition: background-color 300ms linear;
    -ms-transition: background-color 300ms linear;
    -o-transition: background-color 300ms linear;
    transition: background-color 300ms linear;
}

#search_input::-ms-input-placeholder,
#search_input2::-ms-input-placeholder {
    color: #444444 !important;
}
#search_input::-webkit-input-placeholder,
#search_input2::-webkit-input-placeholder {
    color: #444444 !important;
}
#search_input::-moz-placeholder,
#search_input2::-moz-placeholder {
    opacity: 1;
}
#search_input:-moz-placeholder,
#search_input2:-moz-placeholder {
    opacity: 1;
}

/* #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: #0f6c97;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
        display: block;
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.navbar {
        background: #fff;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        padding: 10px;
        width: 100%;
        position: relative;
        margin-top: -180px;
        z-index: 55;
    }

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

    .navbar-default .navbar-nav li:is([class*="toplevel"], [class*="secondlevel"]):focus-within>ul {
        display: block;
    }
}

/* toplevel */

nav.navbar a[class*="toplevel"] {
    color: #fff;
    font-weight: 400;
    text-align: left;
    padding: 8px 15px 8px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Chelsea Market", system-ui;
    background-color: #da251d;
}

nav.navbar li:nth-child(6n+1) [class*="toplevel"] {
    background-color: #da251d;
}
nav.navbar li:nth-child(6n+2) [class*="toplevel"] {
    background-color: #c24f19;
}
nav.navbar li:nth-child(6n+3) [class*="toplevel"] {
    background-color: #b35a02;
}
nav.navbar li:nth-child(6n+4) [class*="toplevel"] {
    background-color: #527b18;
}
nav.navbar li:nth-child(6n+5) [class*="toplevel"] {
    background-color: #1078a8;
}
nav.navbar li:nth-child(6n+6) [class*="toplevel"] {
    background-color: #7f5d98;
}

@media (min-width: 992px) {
    nav.navbar a[class*="toplevel"] {
        background-image: url('../img/icon-fueller.png');
        background-repeat: no-repeat;
        background-position: bottom right;
    }
}

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

    nav.navbar a[class*="toplevel"] {
        background-image: url('../img/icon-fueller.png');
        background-repeat: no-repeat;
        background-position: bottom left;
        padding-left: 40px;
    }
}

nav.navbar li[class*="toplevel"]:not(:first-child) {
    border-top: 2px solid rgba(0, 0, 0, 0.15);
}

/* toplevel-over */

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

/* secondlevel + thirdlevel dropdown-box */

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

nav.navbar li:is([class*="_over"], [class*="open"])>.dropdown-menu {
    display: block !important;
}

/* secondlevel + thirdlevel */

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

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

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

/* secondlevel + thirdlevel over */

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

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

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(400px, 62vw, 560px);
    }

    #headerpic a.nivo-prevNav {
        left: 65px;
    }

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

.theme-nivo .nivo-controlNav {
    bottom: 30px !important;
}

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

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

.slider-mask {
    display: block;
    background: url('../img/bannermaske.png') bottom center no-repeat;
}

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

main {
    text-align: left;
    padding-bottom: 30px;
    padding-top: 30px;
}

@media (min-width: 992px) {
    main {
        padding-bottom: 60px;
        padding-top: 60px;
    }
}


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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #0f6c97;
    font-weight: normal;
    line-height: 1.2;
    font-family: "Chelsea Market", system-ui;
}

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

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

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


.bgRight .tab {
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 25px 30px;
}

.bgRight .tabHeadline {
    font-size: 1.4375rem;
}


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

#news-events {
    padding-top: 60px;
	padding-bottom: 50px;
}

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

#news-events .tab {
	font-size: 1.0625rem;
}

#news-events .tab h2 {
	font-size: clamp(1.5625rem, 4vw, 1.875rem);
}

#news-events .tab :is(b, strong) {
	font-size: clamp(1rem, 3vw, 1.25rem);
}

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

	#news-events .btgrid .row.row-1 > div + div {
		flex: 0 0 32%;
		max-width: 32%;
		padding-top: 20px;
		padding-right: 0;
	}
}

@media (min-width: 1200px) {
	#news-events .btgrid > .row {
		width: 100% !important;
		min-width: 770px;
	}
}

#news .tab_link,
#news .tab_link > div {
	height: 100%;
	min-height: 100%;
}

.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 {
		padding-right: 0;
	}

	.news .tab_link_entries {
		grid-template-columns: repeat(3, 1fr);
	}
}

.news .tab_link_entry {
	font-size: 1rem;
	position: relative;
	width: 100%;
	margin-top: 90px;
	padding: 90px 20px 30px 20px;
	background: #ffffff;
	border: none !important;
}

@media (max-width: 991px) {
	.news .tab_link_entry {
		box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
	}
}

.news .vorschau {
	opacity: 1;
}

.news .tab_preview_picture {
	background: #ffffff;
}

.news .tab_link_entry::before,
.news .tab_link_entry .tab_preview_picture {
	position: absolute;
	display: block;
	top: -50px;
	left: 9px;
	width: 125px;
	height: 120px;
	overflow: hidden;
}

.news .tab_link_entry::before {
	content: "";
	background:
		center / cover no-repeat,
		#666666;
}

.news .tab_preview_picture img {
	position: absolute;
	margin: 0 !important;
	left: 50%;
	top: 50%;
	max-width: none;
	min-width: 100%;
	min-height: 100%;
	max-width: 125px;
	width: auto;
	height: auto;
	-ms-interpolation-mode: bicubic;
	transform: translateX(-50%) translateY(-50%);
}

.news .tab_date {
	display: inline-block;
	position: absolute;
	z-index: 1;
	right: -1px;
	top: 34px;
	font-style: italic;
	color: #ffffff;
	font-size: 0.8125rem;
	padding: 8px;
	background: #527b18;
}

.news .tab_link_title a {
	display: block;
	font-weight: 600;
	font-size: 1.125rem;
	color: #444444;
	line-height: 1.2;
	margin-bottom: 8px;
}

.news .tab_link_entries + div,
.news .tab_link_entries .tab_spacer,
.news .tab_link_entry > div:nth-last-child(2) {
	display: none;
}

/* ----------------------------------------------- @10ev events -------------------------------------------- */

#ev10 .tab {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
    position: relative;
    background: #ffffff;
    font-size: 0.9375rem;
    color: #444444;
    -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    max-width: 370px;
    padding: 0 !important;
}

#ev10 .tabSpecial {
    padding: 20px 20px 20px 20px;
}

#ev10 .tabSpecial .tabHeadline {
    text-align: center;
    font-size: 1.4375rem;
    font-weight: 400;
    color: #0c5c82;
    margin: 0;
}

#ev10 #clr-events-hide {
    margin-top: 25px;
    padding-left: 20px;
    padding-right: 20px;
}

#ev10 .tab .eventclndr-tab {
    margin-bottom: 0;
}

#ev10 .tab .tab_link_title a {
    color: #444444;
    font-weight: 600;
}

#ev10 .tab .tab_link_mandat a {
    color: #444444;
    font-weight: 600;
}

#ev10 .tab #clr-events-hide>p:nth-child(1) {
    display: none !important;
}

#ev10 .tab .tab_spacer {
    height: 15px;
}

#ev10 .tab .tab_link_mehr {
    color: transparent;
    font-size: 0;
    padding-bottom: 20px;
    padding-right: 20px;
}

.buttonstyle a,
#ev10 .tab .tab_link_mehr a {
	margin-top: 5px;
    background-color: #0f6c97;
    padding: 6px 15px;
    font-weight: 700;
    color: #fff;
    font-size: 0.9375rem;
}

.buttonstyle a:is(:hover, :focus),
#ev10 .tab .tab_link_mehr a:hover,
#ev10 .tab .tab_link_mehr a:focus {
    background-color: #3f494b;
    text-decoration: none;
}
/* ----------------------------------------------- footer ----------------------------------------------- */

#footerTop {
    background: url('../img/footerwelle.png') top center no-repeat, #7f5d98;
    position: relative;
    padding: 90px 0 35px 0;
    color: #fff;
}

@media (max-width: 991px) {
    #footerTop > .row > div {
        margin-bottom: 30px;
    }
}


#footerTop .tabHeadline {
    color: #fff;
    font-size: 1.375rem;
}

#footerTop a {
    text-decoration: underline;
    color: #fff;
}

#counter {
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 15px;
}

#counter-l, #counter-r {
    display: inline-block;
}

#f5 {
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #0f6c97;
}

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

@media (max-width: 767px) {
    #innerfooter {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}

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

@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: right;
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}


#sponsoren {
    padding: 20px 0;
}