@media (min-width: 991px) {
	.has-masonry {
  display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(4, 1fr);
	grid-row-gap: 30px; 
	max-height: 800px;
}
}



.has-masonry>.post-type-item:first-child { grid-area: 1 / 1 / 4 / 2; }
.has-masonry>.post-type-item:nth-child(2) { grid-area: 1 / 2 / 3 / 3; }
.has-masonry>.post-type-item:nth-child(3) { grid-area: 1 / 3 / 2 / 4; }
.has-masonry>.post-type-item:nth-child(4) { grid-area: 4 / 1 / 5 / 2; }
.has-masonry>.post-type-item:nth-child(5) { grid-area: 3 / 2 / 5 / 3; }
.has-masonry>.post-type-item:nth-child(6) { grid-area: 2 / 3 / 5 / 4; } 


.has-masonry>.post-type-item {
	max-width: 100% !important;
  flex: 0 0 100%;
  width: 100%;
    height: auto;
}
.has-masonry>.post-type-item .post-type-item-image {
	flex: 1 1 auto;
}

.has-masonry.post-type-wrapper .post-type-item .card-footer {
	padding-top: 0;
	padding-bottom: 10px;
}


.has-masonry>.post-type-item:first-child .post-type-item-image {
	height: auto !important;
}

.has-masonry.post-type-wrapper>.post-type-item:nth-child(3) .card,
.has-masonry.post-type-wrapper>.post-type-item:nth-child(4) .card {
	height: 260px;
	justify-content: end;
}

.has-masonry.post-type-wrapper>.post-type-item:nth-child(3) .card *,
.has-masonry.post-type-wrapper>.post-type-item:nth-child(4) .card * {
	color: #fff !important;
	text-shadow: 1px 1px 10px rgba(0,0,0,.8);
}

.has-masonry>.post-type-item:nth-child(3) .post-type-item-image,
.has-masonry>.post-type-item:nth-child(4) .post-type-item-image {
	position: absolute;
	bottom: 0;
}

.has-masonry>.post-type-item:nth-child(3) .post-type-item-image:before,
.has-masonry>.post-type-item:nth-child(4) .post-type-item-image:before {
	content: '';
	position: absolute;
	background: linear-gradient(180deg,rgba(255, 255, 255, 0) 51%, rgba(0, 0, 0, 0.3) 100%);
	top: 0;
  height: 100%;
  width: 100%;

}

.has-masonry>.post-type-item:nth-child(3) .post-type-item-image,
.has-masonry>.post-type-item:nth-child(4) .post-type-item-image {
	height: 100%;
}

.post-type-wrapper .card {
	--bs-card-border-radius: 20px;
  overflow: hidden;
}

.has-masonry.post-type-wrapper .card .card-body {
	padding-bottom: 0;
	padding-top: 10px;
	flex: unset;
}

.has-masonry.post-type-wrapper .card .card-body .post-type-item-detail-header {
	max-width: calc(100% - 100px);
}

.has-masonry.post-type-wrapper .post-type-item .post-type-item-detail .post-type-item-detail-header a {
	color: #000;
}

.has-masonry.post-type-wrapper .post-type-item .post-type-item-detail .post-type-item-detail-subheader {
	display: none;
}

.has-masonry.post-type-wrapper .post-type-item .btn {
	padding-top: 0;
}

/* ---- News Events ---- */
.news-wrapper-events {
	row-gap: 20px;
}

.news-wrapper-events .news-item-headline {
	color: inherit;
	display: block;
	text-decoration: none;
	font-weight: bold;
}
.news-wrapper-events .news-item-text {
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 768px) {
	.tx-id-news:not(.show-slider):not([data-events="ja"]) .post-type-item:nth-child(10n+1), 
	.tx-id-news:not(.show-slider):not([data-events="ja"]) .post-type-item:nth-child(10n+2), 
	.tx-id-news:not(.show-slider):not([data-events="ja"]) .post-type-item:nth-child(10n+6), 
	.tx-id-news:not(.show-slider):not([data-events="ja"]) .post-type-item:nth-child(10n+7) {
	  -ms-flex: 0 0 50%;
	  flex: 0 0 50%;
	  max-width: 50%;
	}
	.tx-id-news:not(.show-slider):not([data-events="ja"]) .post-type-item:nth-child(10n+1) .post-type-item-image, 
	.tx-id-news:not(.show-slider):not([data-events="ja"]) .post-type-item:nth-child(10n+2) .post-type-item-image, 
	.tx-id-news:not(.show-slider):not([data-events="ja"]) .post-type-item:nth-child(10n+6) .post-type-item-image, 
	.tx-id-news:not(.show-slider):not([data-events="ja"]) .post-type-item:nth-child(10n+7) .post-type-item-image {
		height: 400px;
	}
}

.post-type-item .card {
	height: 100%;
}

.news-item-kalender {
	margin-bottom: 3rem;
	padding-top: 2rem;
  }

.news-item-kalender-headline {
	margin-bottom: .5rem;
	position: absolute;
	z-index: 1;
	width: 100%;
	top: 0px;
	left: 0;
	right: 0;
  }

.news-item-date-wrapper {
	position: absolute !important;
	box-shadow: 0 0 8px 3px rgba(225, 225, 225, 0.8);
	background: #fff;
	min-width: 60px;
	/*border-radius: 12px;
  overflow: hidden; */
  top: 0;
  right: 0;
  border-radius: 0px 0 0 10px;
  overflow: hidden;
}

.news-item-date-wrapper .news-item-date-header {
	background: rgba(var(--primary-color), var(--opacity-full));
	padding: .75rem .5rem .5rem .5rem;
	color: #fff;
	position: relative;
	font-size: 12px;
	line-height: 12px;
	text-align: center;
}
.news-item-date-wrapper .news-item-date {
	background: #fff;
	padding: .5rem;
	display: inline-block;
	font-weight: bold;
	color: #212121;
	font-size: 14px;
}

.news-detail-date {
	background: rgba(var(--primary-color), var(--opacity-full));
	padding: 10px 30px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	-o-border-radius: 5px;
	color: #fff;
	display: inline-flex;
	align-items: center;
}

.news-detail-date svg {
	margin-right: 1rem;
}

.post-type-item-titel-style .post-type-item-detail-header {
	position: relative;
	top: -52px;
	margin-bottom: -30px;
}

.post-type-wrapper .post-type-item.post-type-item-titel-style .post-type-item-detail .post-type-item-detail-header a {
	display: inline;
	overflow-wrap: break-word;
	padding-left: .75rem;
	padding-right: .75rem;
	font-size: 1.5rem;
	line-height: 1.5;
	box-decoration-break: clone;
	box-shadow: 1px 1px 10px rgba(0,0,0,.1);
	padding-bottom: 1px;
	padding-top: 1px;
  }

/* ---- Referenzen ---- */
.post-type-wrapper .card {
	height: 100%;
	box-shadow: 0px 0px 6px rgba(0, 0, 0, .15);
  width: 100%;
  border: 1px solid rgb(238, 238, 238);  
  --bs-card-border-radius: 20px;
  overflow: hidden;
}

.post-type-wrapper .post-type-item {
	transition: transform 0.5s ease, -webkit-transform 0.5s ease;
	z-index: 1;
}
.post-type-wrapper .post-type-item:hover {
	-webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  z-index: 2;
}

.post-type-wrapper .card .card-body {
  --bs-card-spacer-y: 1.25rem;
  --bs-card-spacer-x: 1.25rem;
}

.post-type-wrapper .post-type-item .post-type-item-image 
{
  width: 100%;
  position: relative;
  text-align: center;
  height: 300px;
  overflow: hidden;
}


.post-type-wrapper .post-type-item .post-type-item-image img
{
	object-fit: cover;
  width: 100%;
  height: 100%;
  
}

/* .post-type-wrapper .post-type-item .post-type-item-image:hover img
{
  
} */

.post-type-wrapper .post-type-item .post-type-item-detail .post-type-item-detail-header a
{
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: rgba( var(--primary-color), var(--opacity-full) );
}

.post-type-wrapper .post-type-item .post-type-item-detail .post-type-item-detail-subheader
{
  font-size: 14px;
  font-weight: 600;
}

.post-type-wrapper .post-type-item .btn {
	color: rgba( var(--primary-color), var(--opacity-full) );
  text-decoration: none;
  padding: 6px 15px 6px 3px;
  display: inline-block;
  transition: all var(--stk-transition-duration,.12s) cubic-bezier(.45,.05,.55,.95),flex 0s,max-width 0s,visibility 0s;
  text-transform: uppercase;
  font-weight: 600;
}

.post-type-wrapper .post-type-item .btn:hover {
	filter: brightness(.9) contrast(1.2);
	-webkit-filter: brightness(.9) contrast(1.2);
}

.post-type-wrapper .post-type-item .card-footer {
	background-color: transparent;
	border: 0;
	padding-bottom: 1rem;
}

.gallery-target-wrapper .gallery-lightbox-item a {
	height: 200px;
	overflow: hidden;
	box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
	display: block;
	position: relative;
}

@media (max-width: 991px) {
	.gallery-target-wrapper .gallery-lightbox-item a {
		height: 150px;
	}
}

.rs-block-galerie-wrapper.ascpect-ratio-quer .gallery-lightbox-item {

}

.rs-block-galerie-wrapper.ascpect-ratio-quer .gallery-lightbox-item a {
	height: auto;
}

.rs-block-galerie-wrapper.ascpect-ratio-quer .gallery-lightbox-item a img {
	aspect-ratio: 3/2;
}

.rs-block-galerie-wrapper.ascpect-ratio-quadrat .gallery-lightbox-item a img {
	aspect-ratio: 1/1;
}

.gallery-target-wrapper .gallery-lightbox-item a:hover img {
	-webkit-transform: scale(1.1);
	-ms-transform: scale(1.1);
	transform: scale(1.1);
}

.gallery-target-wrapper .gallery-lightbox-item a img {
	object-fit: cover;
	height: 100%;
	width: 100%;
	transition: transform 0.5s ease, -webkit-transform 0.5s ease;
	-webkit-transition: transform 0.5s ease, -webkit-transform 0.5s ease;
	-moz-transition: transform 0.5s ease, -webkit-transform 0.5s ease;
	-ms-transition: transform 0.5s ease, -webkit-transform 0.5s ease;
	-o-transition: transform 0.5s ease, -webkit-transform 0.5s ease;
}

.gallery-target-wrapper .gallery-lightbox-item .caption {
	text-align: center;
  font-size: 80%;
  margin-top: .5rem;
  padding: 0 .5rem;
}


/* ---- Filter ---- */

.filter-wrapper .filter {
	list-style-type: none;
	padding: 0;
	background: var(--bs-light);
	padding: 7px 10px !important;
	border-radius: 25px;
	border: 1px solid #ececec;
	display: flex !important;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 20px auto 40px;
}

@media ( min-width : 991px) {
	.filter-wrapper .filter {
		text-align: center;
	}
}

.filter-wrapper .filter li {
	display: inline-block;
	/* margin-right: 5px; */
	border-radius: 20px;
  margin-bottom: 0;
}

.filter-wrapper .filter li:before {
  content: unset;
}

@media ( max-width : 767px) {
	.filter-wrapper .filter li {
		/* margin-right: 1px;
		width: 49%; */
		vertical-align: top;
		-ms-hyphens: auto;
		-webkit-hyphens: auto;
		hyphens: auto;
		text-align: center;
		flex: 1 0 auto;
		border: 1px solid #ececec;
	}
}

.filter-wrapper .filter li a {
	display: block;
	text-decoration: none;
	padding: 5px 15px;
	color: #4c4c4c;
	margin: auto;
	border-radius: 50px;
	transition: all ease .2s;
	/* box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important; 
	box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
	border-radius: 10px;*/
}

.filter-wrapper .filter li:not(.active) a {
	/* border: 1px solid #d0d0d0; */
}

.filter-wrapper .filter li a:hover {
	background: #e8e8e8;
}

.filter-wrapper .filter li.active a {
	color: #fff;
	/* background: rgba(var(--primary-color), var(--opacity-full));
	background: linear-gradient(90deg, rgba(var(--gradient-start-color), var(--opacity-full)) 0%, rgba(var(--gradient-end-color), var(--opacity-full)) 100%); */
	background: #4c4c4c;
}