
/* ############################################################
	MODULRASTER
############################################################ */

/* Modul-Raster */
.mdl-art-021 {
	overflow: hidden;
	width: calc(100% + 40px);
	margin-left: -20px;
	padding-left: 20px;
	padding-right: 20px;
}
@media screen and (min-width: 768px) {
	.mdl-art-021 {
		width: 100vw;
		margin-left: -50px;
		padding-left: 50px;
		padding-right: 50px;
	}
}
@media screen and (min-width: 1600px) {
	.mdl-art-021 {
		margin-left: -140px;
		padding-left: 140px;
		padding-right: 140px;
	}
}


/* OWL-Carousel */
.mdl021-carousel {
    max-width: 100vw;
    height: auto;
	padding-top: 60px;
}
	.mdl021-carousel .owl-stage-outer {
		overflow: visible;
		width: 100vw;
	}
		.mdl021-carousel .owl-stage {
			padding-left: 0 !important;
			display: inline-flex;
			justify-content: left;
		}
			.mdl021-carousel .owl-stage > .owl-item {
				float: none;
				border-radius: 20px;
				overflow: hidden;
				background-color: var(--main-color-white);
			}
@media screen and (min-width: 768px) {
	.mdl021-carousel {
		padding-top: 92px;
	}
}
@media screen and (min-width: 992px) {
	.mdl021-carousel {
		padding-top: 113px;
	}
}
@media screen and (min-width: 1400px) {
	.mdl021-carousel {
		padding-top: 130px;
	}
}


/* OWL-Navigation */
.mdl021-carousel .owl-nav {
	position: absolute;
	display: flex;
	top: 0;
	left: 0;
	width: auto;
	height: 38px;
	margin-left: calc(100% - 88px);
}
	.mdl021-carousel .owl-nav .owl-prev span, .mdl021-carousel .owl-nav .owl-next span {
		display: inline-block;
		width: 38px;
		height: 38px;
		border-radius: 50%;
		background-color: var(--main-color-2);
		background-image: url("../../sozialfonds/Images/Elemente/Button_Arrow_Transparent.svg");
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
		color: transparent;
	}
	.mdl021-carousel .owl-nav .owl-prev span {
		transform: rotate(180deg);
		margin-right: 12px;
	}
	.mdl021-carousel .owl-nav .owl-prev.disabled span, .mdl021-carousel .owl-nav .owl-next.disabled span {
		cursor: default;
		background-color: var(--main-color-2-20);
	}
@media screen and (min-width: 768px) {
	.mdl021-carousel .owl-nav {
		height: 50px;
		margin-left: calc(100vw - (50px * 2) - 124px);
	}
		.mdl021-carousel .owl-nav .owl-prev span, .mdl021-carousel .owl-nav .owl-next span {
			width: 50px;
			height: 50px;
		}
		.mdl021-carousel .owl-nav .owl-prev span {
			margin-right: 14px;
		}
}
@media screen and (min-width: 992px) {
	.mdl021-carousel .owl-nav {
		height: 61px;
		margin-left: calc(100vw - (50px * 2) - 144px);
	}
		.mdl021-carousel .owl-nav .owl-prev span, .mdl021-carousel .owl-nav .owl-next span {
			width: 61px;
			height: 61px;
			-o-transition: background 300ms var(--cubic-bezier);
			-ms-transition: background 300ms var(--cubic-bezier);
			-moz-transition: background 300ms var(--cubic-bezier);
			-webkit-transition: background 300ms var(--cubic-bezier);
			transition: background 300ms var(--cubic-bezier);
		}
		.mdl021-carousel .owl-nav .owl-prev span {
			margin-right: 18px;
		}
		.mdl021-carousel .owl-nav .owl-prev:not([class~="disabled"]):hover span, .mdl021-carousel .owl-nav .owl-next:not([class~="disabled"]):hover span {
			background-color: var(--main-color-1);
		}
}
@media screen and (min-width: 1400px) {
	.mdl021-carousel .owl-nav {
		height: 70px;
		margin-left: calc(100vw - (50px * 2) - 172px); /* 172px = 2 Spalten */
	}
		.mdl021-carousel .owl-nav .owl-prev span, .mdl021-carousel .owl-nav .owl-next span {
			width: 70px;
			height: 70px;
		}
		.mdl021-carousel .owl-nav .owl-prev span {
			margin-right: 20px;
		}
}
@media screen and (min-width: 1600px) {
	.mdl021-carousel .owl-nav {
		margin-left: calc(100vw - (140px * 2) - 230px); /* 230px = 2 Spalten */
	}
}


/* OWL-Items */
.mdl021-carousel .owl-item > a {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	flex-wrap: wrap;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 10px 10px 29px 10px;
	color: var(--main-color-2);
}
@media screen and (min-width: 768px) {
	.mdl021-carousel .owl-item > a {
		padding: 20px 20px 37px 20px;
	}
}
@media screen and (min-width: 1400px) {
	.mdl021-carousel .owl-item > a {
		padding: 20px 20px 37px 20px;
	}
}


/* Foto-Box */
.mdl021-carousel .picture-wrapper {
	position: relative;
	display: block;
	width: 100%;
	height: 0;
	padding-top: 48.7%;
	border-radius: 15px;
	overflow: hidden;
}
.mdl021-carousel .picture-wrapper.no-image {
	background-color: var(--main-color-2-20);
}
	.mdl021-carousel .picture-wrapper img {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}


/* Text-Boxen */
.mdl021-carousel .content-wrapper {
	margin: 15px 15px 0;
}
.mdl021-carousel .data-wrapper {
	display: inline-flex;
	align-items: center;
	margin: auto 15px 0;
}
@media screen and (min-width: 768px) {
	.mdl021-carousel .content-wrapper {
		margin: 18px 25px 0;
	}
	.mdl021-carousel .data-wrapper {
		margin-left: 25px;
		margin-right: 25px;
	}
}
@media screen and (min-width: 1400px) {
	.mdl021-carousel .content-wrapper {
		margin: 20px 30px 0;
	}
	.mdl021-carousel .data-wrapper {
		margin-left: 30px;
		margin-right: 30px;
	}
}


/* Titel */
.mdl021-carousel h3 {
	font-size: 1.375rem; /* 22px */
	line-height: 1.375;
}
@media screen and (min-width: 768px) {
	.mdl021-carousel h3 {
		font-size: 1.875rem; /* 30px */
	}
}
@media screen and (min-width: 1400px) {
	.mdl021-carousel h3 {
		font-size: 2.125rem; /* 34px */
	}
}


/* Absätze */
.mdl021-carousel h3 + p {
	margin-top: 22px;
	margin-bottom: 26px;
}
@media screen and (min-width: 768px) {
	.mdl021-carousel h3 + p {
		margin-top: 29px;
		margin-bottom: 36px;
	}
}
@media screen and (min-width: 1400px) {
	.mdl021-carousel h3 + p {
		margin-top: 33px;
		margin-bottom: 40px;
	}
}


/* Einleitung */
.mdl021-carousel p.limited-paragraph {
	overflow: hidden;
	text-overflow: ellipsis; /* Adds an ellipsis (...) at the end of the truncated text */
	display: -webkit-box; /* Required for -webkit-line-clamp to work */
	-webkit-line-clamp: 6; /* The desired number of lines to display */
	-webkit-box-orient: vertical; /* Required for -webkit-line-clamp to work */
	line-clamp: 6; /* Standard line-clamp property for better compatibility */
}


/* Datum */
.mdl021-carousel .date {
	display: inline-block;
	width: 90px;
}
@media screen and (min-width: 768px) {
	.mdl021-carousel .date {
		width: 120px;
	}
}
@media screen and (min-width: 1400px) {
	.mdl021-carousel .date {
		width: 136px;
	}
}


/* Button: weiterlesen */
.mdl021-carousel .btn {
	display: inline-block;
	position: relative;
	padding: 6px 14px 7px;
	border-radius: 10px;
	background-color: var(--main-color-2);
	font-size: 0.875rem; /* 14px */
	color: var(--main-color-white);
}
@media screen and (min-width: 768px) {
	.mdl021-carousel .btn {
		font-size: 1rem; /* 16px */
	}
}
@media screen and (min-width: 992px) {
	.mdl021-carousel .btn {
		-o-transition: background 300ms var(--cubic-bezier);
		-ms-transition: background 300ms var(--cubic-bezier);
		-moz-transition: background 300ms var(--cubic-bezier);
		-webkit-transition: background 300ms var(--cubic-bezier);
		transition: background 300ms var(--cubic-bezier);
	}
	.mdl021-carousel .news-item:hover .btn {
		background-color: var(--main-color-1);
	}
}
@media screen and (min-width: 1400px) {
	.mdl021-carousel .btn {
		padding: 7px 16px 8px;
		font-size: 1.125rem; /* 18px */
	}
}


/* Hyperlink: Alle News */
.mdl021-nav-all {
	position: relative;
	width: 100%;
	margin-top: 38px;
	margin-bottom: 16px;
}
	.mdl021-nav-all a.link-alle {
		position: relative;
		padding-left: 48px;
	}
	.mdl021-nav-all a.link-alle:before {
		content: "";
		display: block;
		position: absolute;
		top: -9px;
		left: 0;
		width: 38px;
		height: 38px;
		background-image: url("../../sozialfonds/Images/Elemente/Button_Arrow_Link.svg");
		background-position: center center;
		background-repeat: no-repeat;
		background-size: contain;
	}
@media screen and (min-width: 768px) {
	.mdl021-nav-all {
		margin-top: 50px;
	}
		.mdl021-nav-all a.link-alle {
			padding-left: 63px;
		}
		.mdl021-nav-all a.link-alle:before {
			top: -12px;
			width: 50px;
			height: 50px;
		}
}
@media screen and (min-width: 992px) {
	.mdl021-nav-all {
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		position: absolute;
		top: 0;
		left: 0;
		width: auto;
		height: 61px;
		margin: 0;
		margin-left: calc(100vw - (50px * 2) - 144px - 180px);
	}
		.mdl021-nav-all a.link-alle {
			padding: 0;
		}
		.mdl021-nav-all a.link-alle:before {
			content: none;
		}
}
@media screen and (min-width: 1400px) {
	.mdl021-nav-all {
		height: 70px;
		margin-left: calc(100vw - (50px * 2) - 172px - 206px); /* 172px = 2 Spalten */
	}
}
@media screen and (min-width: 1600px) {
	.mdl021-nav-all {
		margin-left: calc(100vw - (140px * 2) - 230px - 116px); /* 230px = 2 Spalten */
	}
}

