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

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

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

a {
	color: #0064ad;
}

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

b,
strong {
	font-weight: 700;
}

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

#tp3 {
	color: #ffffff;
	padding-top: 5px;
	padding-bottom: 5px;
	background: #0064ad;
}

#tp3 > .row {
	row-gap: 5px;
}

@media (min-width: 992px) {
	#tp3 > .row {
		padding: 0 15px;
	}
}

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

form[id^="search"] {
	min-height: 35px;
	display: block;
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
}

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

form [id^="search_input"] {
	font-size: 0.875rem;
	color: #222222;
	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-suche.png") center no-repeat;
	padding: 0;
	border: none;
	cursor: pointer;
	position: absolute;
	top: 6px;
	bottom: 6px;
	right: 0;
	font-size: 0;
	border-left: 1px solid #ec7c32;
	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: #e9e9eb;
}

[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;
}

/* --------------------------------------------- innerfooter2 -------------------------------------------- */

#innerfooter2 ul {
	font-size: 1rem;
	padding: 0;
}

#innerfooter2 li {
	display: inline-block;
}

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

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

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

@media (min-width: 992px) {
	#innerfooter2 li + li::before {
		margin: 0 clamp(15px, 2vw, 20px);
	}
}

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

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

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

#topbar {
	padding-top: 35px;
	padding-bottom: 35px;
}

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

@media (min-width: 992px) {
	#topbar > .row {
		padding: 0 15px;
	}
}

/* ------------------------------------------------- kummer ------------------------------------------------ */
.kummer {
   font-size: .75rem;
}

.kummer .tabHeadline {
	font-size: 1.125rem;
	font-weight: 600;
	color: #222222;
}

.kummer img {
	max-width: 220px;
   border-radius: 10px;
   object-position: center;
}

/* ------------------------------------------------- tabDonateButton ------------------------------------------------ */

.tabDonateButton a {
	text-decoration: none;
	display: inline-block;
	font-weight: 700;
	font-size: clamp(1rem, 1vw, 1.125rem);
	color: #222222;
	padding: 5px 60px 5px 28px;
	border-radius: 10px;
	background:
		url("../img/icon-spenden.png") right 28px center no-repeat,
		#63b82a;
}

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

.tabDonateButton a .external-link-icon {
   display: none;
}

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

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

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

/* ----------------------------------------------- compact ----------------------------------------------- */

.compact {
	padding: 20px 20px 0 20px;
	border-radius: 30px 30px 0 0;
	background: #ffffff;
}

@media (min-width: 992px) {
	.compact {
		padding: 30px 30px 0 30px;
	}
}

/* #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: #0064ad;
		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: #0064ad;
		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 {
		padding: 8px 0;
		border-radius: 15px;
		background-color: #0064ad;
	}

	nav.horizontally .navbar-nav {
		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.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: #ffffff;
	text-align: left;
	padding: 10px 15px 15px 15px;
	position: relative;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	font-family: "Dosis", 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: 20px;
	}

	nav.horizontally a[class*="toplevel"] {
		text-align: center;
		padding: 10px 5px;
		border-radius: 10px;
	}
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #0064ad;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
}

@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;
		border-radius: 10px;
	}

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

	nav.horizontally [class*="toplevel"] > ul::before {
		content: "";
		position: absolute;
		display: block;
		top: -25px;
		height: 25px;
		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: #ffffff;
	font-weight: 400;
	text-align: left;
	padding: 7px 15px;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	position: relative;
}

@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 35px;
	}
}

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

@media (min-width: 992px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
		left: 18px;
	}
}

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

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, 200px);
	position: relative;
	border-radius: 15px;
}

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

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

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

@media (min-width: 992px) {
	#headerpic {
		padding-top: 10px;
	}
}

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

.slider-mask {
	display: none;
}

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

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

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

/* #region ----------------------------------- news + events ------------------------------------ */

#news {
    padding-bottom: 30px;
}

#news .tab-headline :is(h1, h2, h3, h4, h5, h6) {
    color: #222222;
    font-size: clamp(1.75rem, 3vw, 2.4375rem);
    line-height: 1;
    -moz-hyphens: none;
    hyphens: none;
}

@media (min-width: 992px) {
    #news .tab-headline :is(h1, h2, h3, h4, h5, h6) {
        margin-bottom: 0;
    }

    #news .tab-headline {
        padding-left: 30px;
    }
}

#news .tab-content a {
    display: inline-block;
    padding-right: 25px;
    font-weight: 700;
    color: #222222;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.2;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13.488' viewBox='0 0 13 13.488'%3E%3Cpath d='M5.863-11.8,8.342-13.52Q9.279-12,10.177-10.778A18.4,18.4,0,0,0,12.041-8.6,18.238,18.238,0,0,0,14.1-6.844v.117a17.676,17.676,0,0,0-2.059,1.767,19.51,19.51,0,0,0-1.864,2.176q-.9,1.21-1.835,2.752L5.863-1.75a14.8,14.8,0,0,1,1.747-2.2A12.538,12.538,0,0,1,9.454-5.517,11.4,11.4,0,0,1,11.27-6.552a9.33,9.33,0,0,1,1.62-.566v.664a9.8,9.8,0,0,1-1.62-.556A10.832,10.832,0,0,1,9.454-8.035,12.243,12.243,0,0,1,7.61-9.616,15.778,15.778,0,0,1,5.863-11.8ZM1.1-8.445H5.687a23.7,23.7,0,0,1,3.035.185,24.8,24.8,0,0,1,2.645.478l1.64,1-1.64,1a24.794,24.794,0,0,1-2.645.478,23.7,23.7,0,0,1-3.035.185H1.1Z' transform='translate(-1.1 13.52)' fill='%23222222'/%3E%3C/svg%3E%0A") center right / 16px auto no-repeat;
}

@media (max-width: 991px) {
    #news :is(.tab-headline + .tab-content, .tab-content + .tab-headline) {
        margin-top: 20px;
    }
}

/* tabnews/tabevents */

#news .tab_link_entries {
    display: grid;
    gap: 30px 30px;
    margin-top: clamp(15px, 4vw, 30px);
}

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

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

#news .tab_link_entry {
    font-size: 1rem;
    color: #ffffff;
    border-bottom: none !important;
    position: relative;
    z-index: 1;
}

@media (min-width: 576px) and (max-width: 991px) {
    #news .tab_link_entry:nth-child(3) {
        grid-column-start: 1;
        grid-column-end: 3;
    }
}

#news .tab_link_entry {
    font-size: 1rem;
    margin-left: 15px;
    margin-top: 370px;
    border-radius: 15px;
    background: #0064ad;
    padding: 100px clamp(15px, 4vw, 30px) clamp(15px, 4vw, 26px) clamp(15px, 4vw, 30px);
}

#news .tab_link_entry::after {
content: "";
  display: block;
  position: absolute;
  z-index: -1;
  left: 0;
  top: -360px;
  right: 15px;
  height: 390px;
  border-radius: 15px;
  border: 4px solid #a2a8b4;
  transition: border 300ms linear;
}

#news .tab_link_entry:is(:hover, :focus-within)::after {
    border-color: #ec7c32;
}

#news .tab_link_entry a {
    color: #ffffff;
}

#news .tab_link_mandat a {
    text-decoration: underline;
    display: block;
    margin: 10px 0;
}

#news .tab_link_entry :is(.tab_date, .tab_link_date) {
    font-size: 0.875rem;
    font-weight: 400;
    color: #222222;
    background: #ffffff;
    line-height: 1.2;
    padding: 8px 10px;
    position: absolute;
    top: 0;
    z-index: 1;
    right: 0;
    max-width: calc(100% - 15px);
    min-width: 100px;
    text-align: center;
}

#news .tab_link_entry .tab_link_title a {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    margin-bottom: 4px;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Dosis", sans-serif;
    display: block;
}

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

#news .tab_link_entry .tab_preview_picture,
#news .tab_link_entry::before {
    display: block;
    overflow: hidden;
    position: absolute;
    height: 400px;
   top: -335px;
    left: -15px;
    width: calc(100% - 18px);
    border-radius: 5px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
}

#news .tab_link_entry .tab_preview_picture img {
display: block;
  object-fit: contain;
  width: 100%;
  height: 100%;
  margin: 0;
  object-position: center;
  background: #fff;
}

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

/* #endregion -------------------------------- news + events ------------------------------------ */

/* ------------------------------------------------ tabDeko ----------------------------------------------- */

#tabDeko {
	padding-top: 30px;
	padding-bottom: clamp(30px, 5vw, 70px);
}

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

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

h1,
.h1,
.legacy_h1 {
	color: #0064ad;
	font-size: clamp(1.875rem, 3vw, 3.125rem);
}

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

h3,
.h3,
.legacy_h3 {
	font-size: 1.5625rem;
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
	font-size: 1.375rem;
}

h5,
.h5,
.legacy_h5 {
	font-size: 1.1875rem;
}

h6,
.h6,
.legacy_h6 {
	font-size: 1.125rem;
}

/* ----------------------------------------------- @1f footer ----------------------------------------------- */

#f1 {
	color: #ffffff;
	font-size: 1rem;
	padding-top: clamp(30px, 4vw, 55px);
	padding-bottom: clamp(30px, 4vw, 50px);
	background-color: #0064ad;
}

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

@media (min-width: 992px) {
	#f1 > .row {
		padding: 0 15px;
	}
}

#f1 a,
#f1 a:hover,
#f1 a:focus {
	color: #ffffff;
}

#f1 .footerTab {
	font-size: 1rem;
}

@media (min-width: 992px) {
	#f1 .footerTab {
		padding-left: 45px;
		padding-right: 45px;
	}
}

#f1 .footerTab a {
	text-decoration: underline;
}

#f1 .tabHeadline {
	font-size: 1.5625rem;
	color: #ffffff;
}

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

#innerfooter ul {
	border-bottom: 2px solid rgba(0, 0, 0, 0.1);
	padding: 0;
}

#innerfooter li {
	border-top: 2px solid rgba(0, 0, 0, 0.1);
}

#innerfooter a {
	text-decoration: none;
	position: relative;
	display: block;
	font-size: 1rem;
	font-weight: 400;
	padding: 6px 10px 6px 25px;
}

#innerfooter a::before {
	content: "";
	position: absolute;
	display: block;
	left: 10px;
	top: 16px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.2);
	transition: background 300ms linear;
}

#innerfooter a:hover::before,
#innerfooter a:focus::before {
	background: #ffffff;
}

/* --------------------------------------------- tabFooterLogo -------------------------------------------- */

#tabFooterLogo {
	text-decoration: none;
	display: inline-block;
}

#tabFooterLogo img {
	display: block;
}

#tabFooterLogo + #vernetzt {
	margin-top: 30px;
}

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

#vernetzt {
	gap: 12px;
	text-align: left;
	font-size: clamp(0.8125rem, 2vw, 1rem);
	color: #ffffff;
	line-height: 1.3;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}
