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

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

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

a {
	color: #115e04;
}

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

.linkUnderline a:not(.has-image, .shareButtonLink) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration 300ms;
	font-style: italic;
}

.linkUnderline a:not(.has-image, .shareButtonLink):is(:hover, :focus) {
	text-decoration-color: transparent;
}

b,
strong {
	font-weight: 600;
}

#overflow {
	overflow: hidden;
}

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

#topbar {
	background: #fbf7f4;
	font-size: 1rem;
}

#topbar > .row {
	gap: 30px 0;
}

#search {
	height: 2.5rem;
	display: inline-block;
	position: relative;
}
#search_input {
	color: #191919;
	font-size: 1rem;
	font-style: normal;
	background: transparent;
	padding: 0;
	border: 0;
	line-height: 2.5rem;
	padding-right: 10px;
	padding-left: 53px;
	height: 2.5rem;
	width: 100%;
}
#search_submit {
	width: 2.5rem;
	background: #cf7a16 url("../img/lupe-icon.png") center no-repeat;
	padding: 0;
	cursor: pointer;
	line-height: 2.5rem;
	border: none;
	position: absolute;
	top: 0;
	left: 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_submit:hover {
	background-color: #191919;
}
#search_input::-ms-input-placeholder {
	color: #191919 !important;
	opacity: 1;
}
#search_input::-webkit-input-placeholder {
	color: #191919 !important;
	opacity: 1;
}
#search_input::-moz-placeholder {
	color: #191919 !important;
	opacity: 1;
}
#search_input:-moz-placeholder {
	color: #191919 !important;
	opacity: 1;
}

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

#logoBar {
	padding-block: 30px;
}
#logoBar > .row {
	gap: 30px 0;
}

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

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

/* #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: #cf7a16;
		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: #cf7a16;
		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: #cf7a16;
	}
	.is-sticky #menu {
		left: auto !important;
	}
	nav.horizontally::after {
		content: "";
		position: absolute;
		inset: 5px -5px;
		pointer-events: none;
		outline: 1px dashed #fff;
	}

	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: #191919;
	font-weight: 400;
	text-align: left;
	padding: 10px 15px 15px 15px;
	position: relative;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
	font-family: "Roboto Mono", monospace;
}

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

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"] {
		text-align: center;
		padding: 30px 0;
	}
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #fbf7f4;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
	border-radius: 2px;
}

@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 {
		left: 0;
		margin-top: 10px;
	}

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

	nav.horizontally [class*="toplevel"] > ul::before {
		content: "";
		position: absolute;
		display: block;
		height: 10px;
		left: 0;
		right: 0;
		top: -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: #191919;
	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;
	}
}

/* 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: #cf7a16;
	color: #191919;
}

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

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

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

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

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

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

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

.slider-mask {
	display: none;
}

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

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

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

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

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

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

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

h3,
.h3,
.legacy_h3 {
	font-size: clamp(1.625rem, 4.5vw, 2.375rem);
}

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

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

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

/* ----------------------------------------------- iserv -------------------------------------------- */

#iserv {
	background: linear-gradient(0deg, transparent calc(50% - 2px), #efded5 calc(50% - 2px), #efded5 calc(50% + 2px), transparent calc(50% + 2px));
	margin-bottom: 90px;
}

#iserv .tab {
	background: #fff;
	box-shadow: 0px 0px 32px 0px rgba(0, 0, 0, 0.14);
	padding: 20px;
}

/* ----------------------------------------------- @1nw news -------------------------------------------- */

#nw1 {
	padding-bottom: 90px;
	background: url(../img/deko-hntergrund.png);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: contain;
}

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

#nw1 .tab {
	color: #191919;
	padding: 30px;
	overflow: hidden;
	border-radius: 3px;
	font-size: 1rem;
	background:
		url("../img/aktuelles-icon.png") top 20px right 20px no-repeat,
		#cf7a16;
}

#nw1 .tab a {
	color: #ffffff;
	text-decoration: underline;
}

#nw1 .tabHeadline {
	color: #191919;
	hyphens: auto;
	font-size: clamp(1.75rem, 2vw, 2rem);
}

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

#nw1 .tab_link_entries {
	display: grid;
	gap: 30px;
	height: 100%;
}

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

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

#nw1 .tab_link_entry {
	font-size: 1rem;
	position: relative;
	width: 100%;
	border-radius: 3px;
	padding: 160px 30px 30px 30px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

#nw1 .vorschau {
	opacity: 1;
}

#nw1 .tab_preview_picture {
	background: #ffffff;
}

#nw1 .tab_link_entry::before,
#nw1 .tab_link_entry .tab_preview_picture {
	position: absolute;
	display: block;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 120px;
	overflow: hidden;
	border-radius: 3px 3px 0 0;
}

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

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

#nw1 .tab_date {
	display: inline-block;
	position: absolute;
	z-index: 1;
	left: -1px;
	top: 105px;
	font-weight: 600;
	color: #191919;
	font-size: 0.75rem;
	padding: 6px 20px;
	background: #cf7a16;
	border-radius: 0 3px 3px 0;
}

#nw1 .tab_link_title a {
	display: block;
	font-weight: 700;
	font-family: "Roboto Mono", monospace;
	font-size: 1.125rem;
	color: #191919;
	line-height: 1.2;
	margin-bottom: 8px;
}

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

/* ------------------------------------------- @1nw buttonStyle ------------------------------------------- */

#nw1 .buttonStyle a {
	text-decoration: none;
	display: inline-block;
	font-size: 1.125rem;
	font-weight: 600;
	color: #191919;
	padding: 5px 12px;
	border-radius: 3px;
	border: 1px solid #ffffff;
	background: #fff;
	margin-top: 10px;
	transition:
		background 300ms linear,
		color 300ms linear;
}
#nw1 .buttonStyle a::after {
	content: " »";
}

@media (min-width: 768px) {
	#nw1 .buttonStyle a + a {
		margin-left: 12px;
	}
}

#nw1 .buttonStyle a:hover,
#nw1 .buttonStyle a:focus {
	color: #191919;
	background: #cf7a16;
}

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

#footer {
	padding: 60px 0;
	background: #cf7a16 url(../img/logo-wasserzeichen.png);
	background-repeat: no-repeat;
	background-position: center right 250px;
	color: #191919;
	font-size: 1rem;
	position: relative;
}

#footerTab {
	height: 100%;
	isolation: isolate;
	padding: 0 30px;
}

@media (min-width: 992px) {
	#footerTab::after {
		content: "";
		z-index: -1;
		position: absolute;
		inset: -60px 0;
		background: #d89443;
	}
}

#footer::after {
	content: "";
	position: absolute;
	inset: 20px -5px;
	pointer-events: none;
	outline: 1px solid #fff;
}

#footer a,
#footer .tabHeadline {
	color: inherit;
}

#innerfooter ul {
	padding: 0;
}

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

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

/* #endregion -------------------------------- footer ------------------------------------------- */

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

#vernetzt {
	gap: 12px;
	text-align: right;
	font-size: 0.875rem;
	color: #191919;
	line-height: 1.3;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}

/* ------------------------------------------ scroll top ---------------------------------------- */

#scroll-top {
	font-size: 0;
	background-color: #fff;
	color: #cf7a16;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: block !important;
	position: relative;
	margin: 0 0 0 auto;
}

#scroll-top:is(:hover, :focus) {
	background-color: #bc575b;
}

#scroll-top::after {
	content: "";
	width: 0;
	height: 0;
	position: absolute;
	left: 9px;
	top: 12px;
	border-style: solid;
	border-width: 0 6px 6px 6px;
	border-color: transparent transparent #cf7a16 transparent;
	transform: none;
}
