/*** Übersicht/Teaser: NEWS + EVENTS ***/

#news {
	background: rgba(var(--lightgrey));
	padding-top:calc(2.5em + 3vw);
	padding-bottom:2.5em;
	display: none;
}
.e-con-inner #news {
	padding-top: 0 !important;
	padding-bottom: 0;
	margin-top:-1em;
}
#news:has(.teaserlist) {
	display: block;
}

#news .teaserlist .box {
	margin-right: -1em;
}
#news .teaser {
	display: inline-block;
	margin-right: 1em;
}
#news .teaser:hover h3 {
	text-decoration:underline;
}
#news .teaser .box {
	background:rgb(var(--white));
	box-shadow:0 0 0.5em rgba(var(--blue),0.25);
	padding:0.5em 1em 1.25em;
	padding-left:5em;
	margin-left:0;
	margin-right:0;
	position:relative;
	display: inline-block;
	min-height: 9em
}
#news .teaser .box::before {
	content:"";
	width:2em;
	height:100%;
	position:absolute;
	top:0;
	left:0;
	background:rgb(var(--blue));
}
#news .teaser + .teaser {
	margin-top:1em
}
#news .teaser .date {
	color:rgba(var(--blue),0.5);
	font-size:0.9em;
	font-weight:600;
	margin-bottom:0.5em;
	margin-left:-2em;
	display: inline-block
}
#news .teaser .head {
	position:relative;
}
#news .teaser .date + .head {
	margin-top:0 !important;
}
#news .teaser .head::before {
	content:"";
	width:18em;
	height:2em;
	position:absolute;
	left:-4.625em;
	bottom:-2.5em;
	transform:translate(0%,-50%);
	background: url(/wp-content/themes/dgfmm/images/icons/icon_1-saite_red.svg) left center / 100% no-repeat;
}
#news .teaser .head + .desc {
	margin-top:1em
}
#news .teaser .head h3 {
	font-size:1.4em;
	font-weight:500;
	letter-spacing: -0.015em;
	color:rgb(var(--red));
}
#news .teaser .head a:not(:hover, :focus) {
	text-decoration: none;
}
#news .teaser .desc p + p {
	margin-top:0.25em !important;
}
#news a.button {
	margin-top:2em;
	margin-bottom:3em
}
#news a.more_link {
	margin-left:0.5em;
	padding: 0.1em 0.5em 0.125em;
	font-weight: 500;
	font-size: 0.9em;
	line-height: 1.2;
	display: inline-block;
	border: solid 1px transparent;
	background-color: rgb(var(--blue), 0.05);
	transition: all 150ms ease 0ms;
}
#news a.more_link:not(:hover, :focus-visible) {
	text-decoration:none;
}
#news a.more_link:is(:hover, :focus-visible) {
	color: rgb(var(--white)) !important;
	border: solid 1px rgb(var(--red),1) !important;
	background-color: rgb(var(--red), 1);
	opacity: 1;
}
.teaserlist.empty .box {
	background:rgb(var(--white),0.5);
	box-shadow:0 0 0.5em rgba(var(--blue),0.25);
	padding:0.5em calc(1em + 2vw);
	margin-left:0;
	margin-right:0;
	position:relative;
	display: inline-block !important;
}

@media(max-width: 599px){
	#news .teaser .box {
		padding-left:3em
	}
	#news .teaser .box .head::before {
		left: -2.625em
	}
	#news .teaser .box .date {
		margin-left: 0
	}
}

#veranstaltungen {
	background: rgba(var(--lightgrey));
	padding-top: calc(2.5em + 3vw);
	padding-bottom:calc(2.5em + 5vw);
}
.e-con-inner #veranstaltungen {
	padding-top: 0 !important;
	padding-bottom: 0;
	margin-top:-1em;
}
#veranstaltungen .teaserlist > .box {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 2em;
}
#veranstaltungen .teaserlist > .box > .caption {
	flex-basis: 100%;
}
#veranstaltungen .teaser {
	display: inline-block;
	vertical-align: top;
}

#veranstaltungen .teaser:has(h3 a[href]) {
	cursor:pointer;
}
#veranstaltungen .teaser:has(:hover, :focus, :focus-within) h3 a,
#veranstaltungen .teaser .desc a:has(:hover, :focus, :focus-within) {
	text-decoration:underline !important;
	cursor:pointer;
	opacity: 1;
}
#veranstaltungen .teaser .box {
	background:rgb(var(--white));
	box-shadow:0 0 0.5em rgba(var(--blue),0.25);
	padding:0.75em 1em;
	padding-left:5em;
	margin-left:7.5em;
	margin-right:0em;
	position:relative;
	display: inline-block;
	display:table;
}
#veranstaltungen .teaser.full {
	display: block !important;
}
#veranstaltungen .teaser.full .box {
	width: calc(100% - 7.5em) !important;
}
#veranstaltungen .teaser + .teaser {
	/*margin-top:1em;*/
}
#veranstaltungen .teaser .thumb {
	padding-right:2em;
	padding-top:0.125em;
	padding-bottom:0.125em;
	display:table-cell;
	vertical-align: top;
	text-align:center;
}
#veranstaltungen .teaser .thumb img {
	width:8em;
	max-width: 8em;
	max-height: 15em;
}
#veranstaltungen .teaser .thumb + .wrapper {
	display: table-cell;
	vertical-align: middle;
}
#veranstaltungen .teaser .date {
	background:rgb(var(--red));
	color:rgb(var(--white));
	font-size:0.9em;
	font-weight: bold;
	padding:0.5em;
	min-width:12.5em;
	max-width:12.5em;
	text-align:center;
	position: absolute;
	left:-8.25em;
	top:0.5em;
	white-space: auto;
}
#veranstaltungen .teaser .date span {
	white-space: nowrap;
}
#veranstaltungen .teaser .head {
	margin-top: 0 !important;
}
#veranstaltungen .teaser .head + .desc {
	margin-top:0.25em
}
#veranstaltungen .teaser .desc strong {
	font-weight: 600
}
#veranstaltungen .teaser .head h3 {
	font-size:1.325em;
	font-weight:500;
	letter-spacing: -0.015em;
	color:rgb(var(--red));
}
#veranstaltungen .teaser .head h3 a:not(:hover, :focus) {
	text-decoration: none;
}
#veranstaltungen p + p {
	margin-top:0.25em !important;
}
#veranstaltungen a.button {
	margin-top:2em;
	margin-bottom:3em
}

@media(max-width: 599px) {
	#veranstaltungen .teaser {
		flex-basis: 100%
	}
	#veranstaltungen .teaser .box {
		padding-left:1em;
		padding-top:3.5em;
		margin-left:0;
		width: 100%;
	}
	#veranstaltungen .teaser .date {
		padding:0.5em 0.75em;
		min-width:0;
		max-width: none;
		left:-1em;
	}
}