/* RecyclingPortal Eventkalender 3.7.0 */

.rp-events {
	width: min(1180px, calc(100vw - 40px));
	max-width: 1180px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	font-family: inherit;
}

.rp-events-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
}

.rp-event-card {
	position: relative;
	transition: transform .18s ease, box-shadow .18s ease;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 10px;
	border: 1px solid #d6d6d6;
	background: #fff;
	box-sizing: border-box;
}

.rp-event-card[hidden] {
	display: none !important;
}

.rp-event-featured {
	border: 3px solid #17365d;
}

.rp-top-banner {
	margin: -10px -10px 10px;
	padding: 7px 10px;
	background: #17365d;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .03em;
	text-align: center;
}

.rp-event-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	min-height: 106px;
	margin-bottom: 10px;
}

.rp-event-heading {
	min-width: 0;
	flex: 1;
}

.rp-event-title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
}

.rp-event-title a {
	color: inherit;
	text-decoration: none;
}

.rp-event-title a:hover {
	color:#004085;
	text-decoration: none;
}
.rp-event-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.12);}
.rp-event-image{overflow:hidden;border-radius:3px;}
.rp-event-image img{transition:transform .25s ease;}
.rp-event-card:hover .rp-event-image img{transform:scale(1.03);}

.rp-event-date {
	font-size: 13px;
	line-height: 1.45;
	color: #666;
}

.rp-date-badges {
	flex: 0 0 44px;
	width: 44px;
	background: #004085;
	color: #fff;
	text-align: center;
}

.rp-date-badge {
	padding: 4px 2px 5px;
	border-bottom: 1px solid rgba(255,255,255,.45);
}

.rp-date-badge:last-child {
	border-bottom: 0;
}

.rp-date-badge span,
.rp-date-badge strong {
	display: block;
}

.rp-date-badge strong {
	display: block;
	margin: 0 0 2px;
	font-size: 24px;
	line-height: 1;
	font-weight: 700;
}

.rp-date-badge span {
	display: block;
	font-size: 10px;
	line-height: 1.1;
	font-weight: 600;
}

.rp-event-image {
	width: 100%;
	margin: 0 0 13px;
	padding: 8px;
	border: 1px solid #ddd;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.14);
	box-sizing: border-box;
}

.rp-event-image a {
	display: block;
	width: 100%;
}

.rp-event-image img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 0;
	border: 0;
}

.rp-event-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.rp-event-category {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.35;
	color: #555;
}

.rp-event-description {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.45;
	color: #333;
}

.rp-event-arrow{display:inline-flex;align-items:center;justify-content:center;margin-top:auto;width:34px;height:34px;color:#004085;text-decoration:none;transition:transform .18s ease,color .18s ease;font-size:28px;font-weight:700;line-height:1}.rp-event-arrow:hover,.rp-event-arrow:focus{transform:translateX(4px);color:#2b7fd3;text-decoration:none !important}.rp-event-arrow,.rp-event-arrow:visited{text-decoration:none !important}

.rp-events-message {
	margin: 20px 0;
	text-align: center;
}

.rp-events-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 28px 0 10px;
}

.rp-events-pagination[hidden] {
	display: none !important;
}

.rp-page-button {
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid #cfcfcf;
	background: #fff;
	color: #333;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
}

.rp-page-button:hover,
.rp-page-button.is-current {
	border-color: #004085;
	background: #004085;
	color: #fff;
}

.rp-page-button:disabled {
	opacity: .45;
	cursor: default;
}

/* Detailseite ohne Sidebar */
.rp-event-detail {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	box-sizing: border-box;
}

.single-rp_event.rp-event-sidebar-disabled .td-pb-span4,
.single-rp_event.rp-event-sidebar-disabled .td-ss-main-sidebar,
.single-rp_event.rp-event-sidebar-disabled aside {
	display: none !important;
}

.single-rp_event.rp-event-sidebar-disabled .td-main-content-wrap,
.single-rp_event.rp-event-sidebar-disabled .td-container,
.single-rp_event.rp-event-sidebar-disabled .tdc-content-wrap,
.single-rp_event.rp-event-sidebar-disabled .td-pb-row,
.single-rp_event.rp-event-sidebar-disabled .td-pb-span8,
.single-rp_event.rp-event-sidebar-disabled .td-pb-span12,
.single-rp_event.rp-event-sidebar-disabled .td-main-content {
	width: 100%;
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
}

.single-rp_event .td-post-author-name,
.single-rp_event .td-post-date,
.single-rp_event .td-post-comments,
.single-rp_event .td-post-views,
.single-rp_event .td-category,
.single-rp_event .td-post-sharing,
.single-rp_event .td-post-sharing-top,
.single-rp_event .td-post-sharing-bottom,
.single-rp_event .td-post-small-box,
.single-rp_event .td-post-source-tags {
	display: none !important;
}

.rp-event-detail img,
.single-rp_event .entry-thumb {
	display: block;
	width: auto;
	max-width: 720px;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}



@media (max-width: 980px) {
	.rp-events-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rp-events {
		padding: 0 10px;
	}

	.rp-event-filters {
		align-items: stretch;
		flex-direction: column;
	}

	.rp-event-filters label,
	.rp-event-filters input[type="search"],
	.rp-event-filters button {
		width: 100%;
	}

	.rp-events-list {
		grid-template-columns: 1fr;
	}

	.rp-event-card-head {
		min-height: 0;
	}
}




/* Version 3.7.0 – Datum auf der Event-Einzelseite */
.rp-event-detail-date {
	display: table;
	width: auto;
	max-width: 100%;
	margin: 0 0 24px 0 !important;
	padding: 8px 12px;
	background-color: #004085 !important;
	color: #ffffff !important;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 700;
	box-sizing: border-box;
}

.rp-event-detail-description {
	display: block;
	clear: both;
	margin-top: 0;
}

.rp-event-detail-description > :first-child {
	margin-top: 0 !important;
}

.rp-page-button{border-radius:5px;transition:all .18s ease}.rp-page-button:hover{transform:translateY(-1px)}


/* v4.2.1 refinements */
.rp-event-arrow{
 display:inline-block;
 margin-top:6px!important;
 text-decoration:none!important;
 color:#004085;
 transition:color .2s ease,transform .2s ease;
}
.rp-event-arrow:hover,
.rp-event-arrow:focus{
 text-decoration:none!important;
 color:#0066cc;
 transform:translateX(4px);
}
.rp-events-pagination a,
.rp-events-pagination span{
 border-radius:5px;
 transition:all .2s ease;
}
@media (max-width:1024px){
 .rp-events{width:min(100%,calc(100vw - 24px));}
 .rp-events-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
}
@media (max-width:640px){
 .rp-events-list{grid-template-columns:1fr;}
 .rp-event-card{padding:12px;}
 .rp-event-title{font-size:18px;}
}


/* Version 4.2.3 – Beitragsnavigation nur bei Events ausblenden */
.single-rp_event .td-post-next-prev,
.single-rp_event .td-post-next-prev-content,
.single-rp_event .td-post-next-prev-separator,
.single-rp_event .td-next-prev-wrap,
.single-rp_event .td-post-navigation,
.single-rp_event .post-nav,
.single-rp_event .post-navigation,
.single-rp_event nav.navigation.post-navigation {
	display: none !important;
}


/* Version 4.2.4 – Typografie wie normale Newspaper-Beiträge */
.single-rp_event .rp-event-detail-description {
	font-family: inherit !important;
	font-size: 15px;
	line-height: 1.74;
	font-weight: 400;
	color: inherit;
}

.single-rp_event .rp-event-detail-description p,
.single-rp_event .rp-event-detail-description li,
.single-rp_event .rp-event-detail-description blockquote {
	font-family: inherit !important;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.single-rp_event .rp-event-detail-description p {
	margin: 0 0 26px;
}

.single-rp_event .rp-event-detail-description h2,
.single-rp_event .rp-event-detail-description h3,
.single-rp_event .rp-event-detail-description h4 {
	font-family: inherit !important;
	font-weight: 700;
	color: inherit;
}

.single-rp_event .rp-event-detail-description a {
	color: #004085;
}


/* Version 4.2.5 – optionale Newspaper-Sidebar */
.single-rp_event.rp-event-sidebar-enabled .rp-event-detail {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.single-rp_event.rp-event-sidebar-enabled .td-ss-main-sidebar,
.single-rp_event.rp-event-sidebar-enabled aside {
	display: block;
}


/* Version 4.3.0 – auswählbare registrierte Sidebar */
.single-rp_event.rp-event-sidebar-custom .td-pb-span4,
.single-rp_event.rp-event-sidebar-custom .td-ss-main-sidebar,
.single-rp_event.rp-event-sidebar-custom .td-main-sidebar,
.single-rp_event.rp-event-sidebar-custom .td-sidebar {
	display: none !important;
}

.single-rp_event.rp-event-sidebar-custom .td-main-content-wrap,
.single-rp_event.rp-event-sidebar-custom .td-container,
.single-rp_event.rp-event-sidebar-custom .tdc-content-wrap,
.single-rp_event.rp-event-sidebar-custom .td-pb-row,
.single-rp_event.rp-event-sidebar-custom .td-pb-span8,
.single-rp_event.rp-event-sidebar-custom .td-pb-span12,
.single-rp_event.rp-event-sidebar-custom .td-main-content {
	width: 100%;
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
}

.rp-event-layout {
	width: 100%;
	box-sizing: border-box;
}

.rp-event-layout.has-custom-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
}

.rp-event-layout-main {
	min-width: 0;
}

.rp-event-selected-sidebar {
	display: block !important;
	min-width: 0;
}

.rp-event-selected-sidebar .widget {
	margin-bottom: 30px;
}

@media (max-width: 1018px) {
	.rp-event-layout.has-custom-sidebar {
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 28px;
	}
}

@media (max-width: 767px) {
	.rp-event-layout.has-custom-sidebar {
		display: block;
	}

	.rp-event-selected-sidebar {
		margin-top: 36px;
	}
}


/* Version 4.4.0 – Popup auf RecyclingPortal */
.rp-event-popup-trigger,
.rp-event-image-button,
.rp-event-arrow {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
}

.rp-event-popup-trigger {
	display: inline;
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	text-align: left;
}

.rp-event-popup-trigger:hover {
	color: #004085;
}

.rp-event-image-button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

.rp-event-arrow {
	padding: 0;
}

.rp-event-modal[hidden] {
	display: none !important;
}

html.rp-event-modal-open,
body.rp-event-modal-open {
	overflow: hidden !important;
}

.rp-event-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483647 !important;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px;
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
}

.rp-event-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: rgba(0,0,0,.7);
}

.rp-event-modal-dialog {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	width: min(820px, 100%);
	margin: auto 0;
	background: #fff;
	box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.rp-event-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 3;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.95);
	color: #111;
	font-size: 28px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
}

.rp-event-modal-image,
.rp-event-modal-body,
.rp-event-modal-date,
.rp-event-modal-body h2,
.rp-event-modal-content {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.rp-event-modal-image {
	padding: 18px 0 0;
	background: #fff;
}

.rp-event-modal-image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 480px;
	margin: 0 auto;
}

.rp-event-modal-body {
	padding: 24px 0 30px;
	color: #222;
	text-align: left;
}

.rp-event-modal-date {
	display: inline-block;
	margin-bottom: 22px;
	padding: 8px 12px;
	background: #004085;
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 700;
}

.rp-event-modal-body h2 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 29px;
	line-height: 1.2;
}

.rp-event-modal-content {
	font-size: 15px;
	line-height: 1.7;
}

.rp-event-modal-content p {
	margin: 0 0 22px;
}

.rp-event-modal-content a {
	color: #004085;
}

.rp-event-page-link {
	display: block;
	width: fit-content;
	margin: 18px 0 0 auto;
	color: #888888 !important;
	font-size: 10px;
	line-height: 1;
	font-weight: 400;
	text-decoration: none !important;
	cursor: pointer;
}

.rp-event-page-link:hover {
	color: #004085 !important;
	text-decoration: none !important;
}

@media (max-width: 760px) {
	.rp-event-modal {
		padding: 10px;
	}

	.rp-event-modal-dialog {
		margin: 0;
	}

	.rp-event-modal-image,
	.rp-event-modal-body {
		max-width: 100%;
	}

	.rp-event-modal-body {
		padding: 20px;
	}

	.rp-event-modal-body h2 {
		font-size: 23px;
	}
}


/* Version 4.5.0 – Responsive Feinschliff für Popup */
.rp-event-modal-dialog {
	width: min(820px, calc(100vw - 48px));
}

.rp-event-modal-close {
	position: sticky;
	float: right;
	top: 10px;
	right: 12px;
	margin: 10px 12px -48px 0;
	z-index: 5;
}

@media (max-width: 1024px) {
	.rp-event-modal {
		padding: 20px;
	}

	.rp-event-modal-dialog {
		width: min(760px, 92vw);
	}

	.rp-event-modal-image,
	.rp-event-modal-body,
	.rp-event-modal-date,
	.rp-event-modal-body h2,
	.rp-event-modal-content {
		max-width: 680px;
	}

	.rp-event-modal-body {
		padding-left: 22px;
		padding-right: 22px;
	}
}

@media (max-width: 767px) {
	.rp-event-modal {
		padding: 12px;
	}

	.rp-event-modal-dialog {
		width: calc(100vw - 24px);
		margin: 0;
	}

	.rp-event-modal-close {
		top: 8px;
		right: 8px;
		margin: 8px 8px -46px 0;
		width: 36px;
		height: 36px;
		font-size: 26px;
		line-height: 34px;
	}

	.rp-event-modal-image {
		padding: 14px 14px 0;
	}

	.rp-event-modal-image img {
		width: 100%;
		max-height: none;
	}

	.rp-event-modal-body {
		padding: 18px 16px 24px;
	}

	.rp-event-modal-date {
		margin-bottom: 18px;
		font-size: 13px;
	}

	.rp-event-modal-body h2 {
		margin-bottom: 16px;
		font-size: 22px;
		line-height: 1.25;
	}

	.rp-event-modal-content {
		font-size: 15px;
		line-height: 1.65;
	}

	.rp-event-modal-content p {
		margin-bottom: 19px;
	}

	.rp-event-page-link {
		margin-top: 14px;
	}
}

@media (max-width: 420px) {
	.rp-event-modal {
		padding: 8px;
	}

	.rp-event-modal-dialog {
		width: calc(100vw - 16px);
	}

	.rp-event-modal-body {
		padding: 16px 14px 22px;
	}

	.rp-event-modal-body h2 {
		font-size: 21px;
	}

	.rp-event-modal-content {
		font-size: 14px;
	}
}
