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

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

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

a {
	color: #1e6b6a;
}

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

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

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

b,
strong {
	font-weight: 700;
}

.row.wide {
	max-width: 1600px;
	width: 100%;
}

#overflow {
	overflow: clip;
}

/* LOGO MIT TEXT -------------------------------------------------------- */

.logo {
	display: flex;
	gap: 10px;
	text-decoration: none !important;
}

@media (max-width: 991px) {
	.logo {
		flex-wrap: wrap;
	}
}

.logo .template-page {
	width: auto;
}

.logo .cleaner {
	display: none;
}

.logoText {
	color: #1e6b6a;
	font-size: clamp(1.25rem, 2vw, 1.5625rem);
	align-content: center;
	line-height: 1.1;
	text-align: right;
	font-weight: 700;
}

.logoText :is(b, strong) {
	display: block;
	font-family: "DM Sans", sans-serif;
	font-size: clamp(2rem, 4vw, 2.625rem);
}

.logoText br {
	display: none;
}

@media (max-width: 575px) {
	.logoText {
		hyphens: auto;
	}
}

.logo img {
	display: block;
	max-width: 30vw;
}

/* LOGO MIT TEXT -------------------------------------------------------- */

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

nav.horizontally {
	border-top: #1e6b6a 6px solid;
}

/* burgermenu for tablet */

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

	#burgerButton {
		font-size: 0;
		display: block;
		height: 50px;
		width: 60px;
		border-radius: 2px;
		padding: 6px 8px;
		cursor: pointer;
		background: #ffffff;
		border: none !important;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #1e6b6a;
		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: #1e6b6a;
		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: #1e6b6a;
	padding: 34px 0 25px 0;
		transition: all 0.2s 0s linear;
	}
	body:not(.index) nav.horizontally > .row::after {
		content: "";
		display: block;
		background: url('../img/logo-koaktiv-wohnprojektberatung-v3.png') center no-repeat;
		width: 93px;
		height: 112px;
		position: absolute;
		z-index: 10;
		left: 15px;
	}

	.is-sticky nav.horizontally {
		box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
	}

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

	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:is(.open:focus-within, :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-within)>ul {
		z-index: 1003;
	}
}

/* toplevel */

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

@media (max-width: 991px) {
	nav.horizontally li[class*="toplevel"] {
		border-bottom: 1px solid rgba(255, 255, 255, 0.8);
	}

	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"] {
		padding: 11px 0;
	}
}

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	width: 0;
	height: 4px;
	display: block;
	position: absolute;
	left: 0;
	transform: translateX(-50%);
	bottom: 0;
	background-color: #fff;
	opacity: 0;
	transition: opacity 300ms linear, width 300ms linear;
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"]::before {
		left: 50%;
	}
}

/* toplevel-over */

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #ffffff;
	-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.3);
	box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.3);
}

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

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

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

	nav.horizontally [class*="toplevel"]>ul {
		margin-top: 10px;
		border-bottom-left-radius: 3px;
		border-bottom-right-radius: 3px;
	}

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #020202;
	font-weight: 400;
	text-align: left;
	padding: 9px 25px 9px 35px;
	font-size: 0.9375rem;
	line-height: 1.2;
	text-decoration: none;
	position: relative;
	font-family: "DM Sans", sans-serif;
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
	content: "";
	display: block;
	position: absolute;
	left: 20px;
	top: 16px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #020202;
	transition: background 300ms linear;
}

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

/* 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: #1e6b6a;
}

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 {
	background: #1e6b6a;
}

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

/* ----------------------------------------------- banner Resp ----------------------------------------------- */
header {
		background-color: #1e6b6a;
		padding-bottom: 30px;
}
#slider {
	padding: 0;
	position: relative;
	max-height: clamp(300px, 46vw, 350px);
}

@media (min-width: 992px) {
	body.index :is(#slider) {
		width: 1370px;
    	margin-left: auto;
		max-height: clamp(350px, 40vw, 400px);
	}

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

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

@media (min-width: 1200px) {
	#headerpic a.nivo-nextNav {
		right: 130px;
	}
}

#headerpic {
	position: relative;

}

@media (min-width: 1200px) {
	body.index #headerpic::after {
		content: "";
		display: block;
		background: url('../img/ton-figur-logov4.png') center no-repeat;
		width: 262px;
		height: 316px;
		position: absolute;
		z-index: 10;
		left: -100px;
		top: 50%;
		transform: translateY(-50%);
	}

}

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

.slider-mask {
	display: none;
}

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

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

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

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

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

h1,
.h1,
.legacy_h1 {
	font-size: 2rem;
}

h2,
.h2,
.legacy_h2 {
	font-size: 1.75rem;
}

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

/* Tab full Link -------------------------------------------------------- */

#tabs {
	gap: 30px 0;
	padding-bottom: 40px;
}

#tabs .tab {
	position: relative;
	isolation: isolate;
	height: 100%;
	background: url(../img/icon-wohngemeinschaft.png), linear-gradient(to bottom, #258382, #1e6b6a);
	background-position: top 30px center, center;
	background-repeat: no-repeat;
	color: #ffffff;
	border-radius: 3px;
	transition: scale 300ms;
	padding: 30px;
	font-size: 1.125rem;
	font-weight: 700;
	font-family: "DM Sans", sans-serif;
	padding-top: 150px;
	height: 100%;
}

#tabs>*:nth-child(4n + 2) .tab {
	background-image: url(../img/icon-wohnberatung.png), linear-gradient(to top, #258382, #1e6b6a);
}

#tabs>*:nth-child(4n + 3) .tab {
	background-image: url(../img/icon-praevention.png), linear-gradient(to bottom, #258382, #1e6b6a);
}

#tabs>*:nth-child(4n + 4) .tab {
	background-image: url(../img/icon-moderation.png), linear-gradient(to top, #258382, #1e6b6a);
}

#tabs .tab:is(:hover, :focus-within) {
	scale: 1.1;
}

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

#tabs .tab a {
	position: relative;
	z-index: 3;
}

#tabs .tab p,
#tabs .tab :is(h1, h2, h3, h4, h5, h6) {
	position: relative;
	z-index: 3;
	pointer-events: none;
}

#tabs .tab p:last-of-type a:last-of-type {
	color: inherit;
	font-size: 0;
	text-decoration: none;
	z-index: 2;
	position: absolute;
	inset: 0;
}

#tabs .tab .template-page>.row,
#tabs .tab .template-page>.row>div,
#tabs .tab p:has(a),
#tabs.tabsImg .tab p:has(img) {
	position: static;
}

#tabs .tab a {
	pointer-events: all;
}

#tabs .tab p:last-of-type a:last-of-type::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Tab full Link -------------------------------------------------------- */

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

footer {
	background: #1e6b6a;
	padding: 40px 0;
	color: #ffffff;
	font-size: 1rem;
}

footer>.row {
	row-gap: 30px;
}

@media (min-width: 1199px) {
	footer>.row>div:nth-child(2) {
		padding: 0 30px;
	}
}

footer a,
footer a:is(:hover, :focus) {
	color: #ffffff;
}

footer :is(iframe, .iframe-wrapper-manual-enabling) {
	width: 100% !important;
	min-width: 100% !important;
}

.footerTab :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.375rem;
	margin: 0;
	color: #ffffff;
}

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

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

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

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

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

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

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

#vernetzt {
	gap: 18px;
	text-align: right;
	font-size: 0.8125rem;
	color: #ffffff;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}