/* CALENDER CSS */
:root {
	--cal-background: var(--enfold-main-color-bg);
	--cal-border: #e0e0e0;
	--cal-hover: var(--enfold-main-color-button-border);
}

.calendar-container {
	width: 100%;
}

.calendar-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	padding: 10px;
	background: var(--cal-background);
	border-radius: 5px;
	flex-wrap: wrap;
}

.btn-nav {
	padding: 8px 16px;
	border: 1px solid var(--cal-border);
	background: white;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-nav:hover {
	background: var(--cal-hover);
	border: 1px solid var(--cal-hover);
}

.current-month {
	margin: 0;
	margin-left: auto;
	font-size: 2em !important;
}

.custom-calendar {
	border: 1px solid var(--cal-border);
	border-radius: 5px;
	overflow: hidden;
	background: white;
}

.custom-calendar .calendar-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background: color-mix(in srgb, var(--cal-background) 80%, white 10%);
	font-weight: bold;
	text-align: center;
}

.calendar-header > div {
	padding: 10px 5px;
	border-right: 1px solid var(--cal-border);
}

.calendar-header > div:last-child {
	border-right: none;
}

.custom-calendar .calendar-body {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
	min-height: 100px;
	border-right: 1px solid var(--cal-border);
	border-bottom: 1px solid var(--cal-border);
	padding: 8px;
	position: relative;
	background: color-mix(in srgb, var(--cal-background) 80%, #828282 20%);
	overflow: visible;
}

.calendar-day:nth-child(7n) {
	border-right: none;
}

.calendar-day.other-month {
	background: var(--cal-background);
	color: white;
}

.calendar-day.today {
	background: color-mix(in srgb, var(--cal-background) 70%, white 30%);
}

.day-number {
	font-weight: bold;
	margin-bottom: 5px;
	position: relative;
	z-index: 1;
}

.event-container {
	position: relative;
	margin-top: 5px;
	width: 100%;
}

.event-item {
	padding: 2px 5px;
	margin: 2px 0;
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.85em;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: opacity 0.2s;
	position: relative;
}

.event-item.multi-day {
	position: absolute;
	z-index: 10;
	min-height: 20px;
	left: 0;
	margin-right: -1px; /* Kompensiere Border für nahtlose Verbindung */
}

.event-item.start {
	border-radius: 3px 0 0 3px;
	padding-left: 5px;
}

.event-item.middle {
	border-radius: 0;
	background-color: inherit !important;
}

.event-item.end {
	border-radius: 0 3px 3px 0;
}

.event-item.single {
	border-radius: 3px;
}

.event-spacer {
	height: 24px;
	margin: 2px 0;
}

.event-item:hover {
	opacity: 0.8;
	z-index: 20;
}

.nav-month {
	margin: 0 5px;
}

.btn-nav {
	display: flex;
	align-items: center;
}

/* Hide Weekend */
.custom-calendar.hide-weekends .calendar-header, .custom-calendar.hide-weekends .calendar-body {
	grid-template-columns: repeat(5, 1fr);
}
.custom-calendar.hide-weekends .calendar-day:nth-child(7n) {
	border-right: 1px solid var(--cal-border);
}
.custom-calendar.hide-weekends .calendar-day:nth-child(5n) {
	border-right: none;
}

@media (max-width: 768px) {
	.calendar-day {
		min-height: 90px;
		font-size: 0.8em;
		padding: 4px;
	}

	.event-item {
		font-size: 0.75em;
		padding: 1px 3px;
	}

	.current-month {
		font-size: 1.2em;
	}

	.btn-nav {
		padding: 6px 12px;
		font-size: 0.9em;
	}
}

@media (max-width: 480px) {
	.calendar-header > div {
		font-size: 0.85em;
		padding: 8px 2px;
	}

	.calendar-day {
		min-height: 50px;
	}

	.event-item {
		font-size: 0.65em;
		padding: 1px 2px;
	}
}
/* EVENTS CSS */
.toolbar {
	margin: 10px 0px;
}
.tribe-events-cal-links .tribe-events-gcal, .tribe-events-cal-links .tribe-events-ical {
	background: none !important;
	background-color: #109bc5 !important;
	color: white;
}
.tribe-events-cal-links .tribe-events-gcal:hover, .tribe-events-cal-links .tribe-events-ical:hover {
	background-color: #662382 !important;
	color: white;
}
.toolbar > .toolbar-item:not(:last-child) {
	border-right: 1px solid #ccc;
}
html body [data-av_iconfont='egg']:before {
	font-size: 60px;
}
.toolbar-item {
	padding: 0px 10px;
}

.toolbar-item a {
	text-decoration: none;
	color: black;
	display: inline-block;
	margin-right: 5px;
	font-size: 14px;
}
abbr[title] {
	text-decoration: none !important;
}
.selected-button {
	border-bottom: 2px solid orange;
}
.main_color #tribe-events .time-details, .main_color .single-tribe_events .tribe-events-schedule, .single-tribe_events .main_color .tribe-events-schedule h3, .single-tribe_events .main_color .tribe-events-event-meta dd, .main_color .recurringinfo, .main_color .tribe-mini-calendar-no-event, .main_color .tribe-mini-calendar-dayofweek, .main_color .tribe-mini-calendar-event .list-date .list-daynumber, .main_color .av-upcoming-event-data {
	color: black !important;
}

/* Tribe */
.tribe-events-meta-group .tribe-events-gmap {
	display: none;
}
.tribe-events-schedule .tribe-event-time:after {
	content: ' Uhr';
}

/* Kategorien */
.sp_events_preview .event .preview-cat {
	position: relative;
}
.sp_events_preview .event .preview-image, .sp_events_preview .event .preview-cat {
	margin: 0px -40px 0 -40px;
}
.grcatlist {
	position: absolute;
	top: 0;
	left: 0;
	color: #000000;
	font-size: 14px;
	line-height: 1.5;
	border-radius: 0 0 0.1875rem 0;
	overflow: hidden;
	display: -moz-flex;
	display: flex;
	flex-wrap: wrap;
	height: auto;
}
.grlist-item {
	color: white;
	-moz-flex: 0 0 auto;
	flex: 0 0 auto;
	padding: 0.25rem 0.65rem;
	z-index: 1;
}

/* Grit Layout */
.sp_events_btn {
	text-align: center;
	padding: 30px 0 70px 0;
}

.sp_events_preview .h1 {
	margin-bottom: 73px;
}

.sp_events_preview {
	margin-right: -20px;
}

.sp_events_preview .container {
	padding: 0;
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding-top: 18px;
}

.grlist-item {
	margin-right: 1px;
}

.sp_events_preview .container .event {
	width: calc(16.666% - 20px);
	position: relative;
	margin-bottom: 50px;
	z-index: 10;
	background-color: #fff;
	-webkit-transition: all 300ms ease-in-out;
	-moz-transition: all 300ms ease-in-out;
	-ms-transition: all 300ms ease-in-out;
	-o-transition: all 300ms ease-in-out;
	transition: all 300ms ease-in-out;
	margin-right: 20px;
	box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
	-webkit-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
}
.sp_events_preview.c5 .container .event {
	width: calc(20% - 20px);
}
.sp_events_preview.c4 .container .event {
	width: calc(25% - 20px);
}
.sp_events_preview.c3 .container .event {
	width: calc(33.333% - 20px);
}
.sp_events_preview.c2 .container .event {
	width: calc(50% - 20px);
}
.sp_events_preview.c1 .container .event {
	width: calc(100% - 20px);
}

.sp_events_preview .container .event:hover {
	transform: scale(1.1);
	-webkit-transform: scale(1.1);
	box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.5);
	-webkit-box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.5);
	z-index: 60;
}

.sp_events_preview .event a {
	text-decoration: none;
	display: block;
	height: 100%;
	position: relative;
	padding: 0;
}
.sp_events_preview .event div.marg {
	padding: 0px 40px 10px 40px;
}
.scale-2-1 {
	position: relative;
	display: block;
	overflow: hidden;
}
.scale-2-1::before {
	content: '';
	display: block;
	padding-top: 40%;
}
.scale-2-1 > *, .scale-4-3 > *  {
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	position: absolute;
	text-align: center;
	vertical-align: middle;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}
.scale-4-3 {
	position: relative;
	display: block;
	overflow: hidden;
}
.scale-4-3::before {
	content: '';
	display: block;
	padding-top: 75%;
}
.trainer {
	background-size: cover;
	background-position: center;
	background-color: white;
	position: absolute;
	right: 70px;
	top: 25px;
	width: 86px;
	height: 86px;
	border-radius: 50%;
	-webkit-border-radius: 50%;
	text-align: center;
	padding-top: 15px;
	color:black;
}
.places-available {
	padding-top: 17px;
	position: absolute;
	width: 86px;
	height: 86px;
	border-radius: 50%;
	-webkit-border-radius: 50%;
	background-color: #2a468c;
	color: #fff;
	right: 22px;
	top: 25px;
	text-align: center;
	-ms-user-select: None;
	-moz-user-select: None;
	-webkit-user-select: None;
}
.places-available.down {
	top: unset;
	bottom: -29px;
}
.booked-out {
	background-color: #706f6f;
}
.booked-last {
	background-color: #bb1835;
}
.booked-high {
	background-color: #ff6c13;
}
.sp_events_preview .event .preview-image {
	margin: 0px -40px 0 -40px;
	position: relative;
}

.sp_events_preview .event .info-flag {
	padding: 0;
	position: absolute;
	background-color: #fff;
	height: auto;
	width: auto;
	font-size: 14px;
	line-height: 36px;
	padding: 0 22px;
	top: calc(50% - 18px);
	color: #5C2A15;
	-ms-user-select: None;
	-moz-user-select: None;
	-webkit-user-select: None;
}

.sp_events_preview .event .info-flag i {
	padding-right: 5px;
}

.event-description {
	position: relative;
}

.sp_events_preview .event h2 {
	margin: 0;
	margin-top: 42px;
	font-size: 20px !important;
	font-weight: 400;
	line-height: 28px !important;
	margin-bottom: 10px;
}

.sp_events_preview .event p {
	font-weight: 300;
	line-height: 26px;
	margin-top: 0;
	margin-bottom: 10px;
	color: black;
	text-decoration: none;
}
.sp_events_preview .event p.lastline_book {
	margin-bottom: 20px;
}
.sp_events_preview .event .book-hidden {
	margin: 0;
	width: 100%;
	padding: 0 0 0 0;
	text-align: center;
	opacity:0;
	visibility:hidden;
}
.sp_events_preview .event .book-show {
	margin: 0;
	width: 100%;
	padding: 0 0 0 0;
	position: absolute;
	bottom: 0;

	text-align: center;
	-webkit-transition: all 300ms ease-in-out;
	-moz-transition: all 300ms ease-in-out;
	-ms-transition: all 300ms ease-in-out;
	-o-transition: all 300ms ease-in-out;
	transition: all 300ms ease-in-out;
	cursor: pointer;
	-ms-user-select: None;
	-moz-user-select: None;
	-webkit-user-select: None;
}
.sp_events_preview .event.design1 .book-hidden, .sp_events_preview .event.design1 .book-show {
	padding: 0 0 15px 0;
}

.sp_events_preview .event .button {
	display: inline-block;
	padding: 5px 20px;
	font-size: 16px;
	line-height: 28px;
	font-weight: 400;
	vertical-align: top;
	color: #fff;
	font-size: 15px;
	font-weight: 300;
	line-height: 28px;
}
.sp_events_preview .event .detail {
	display: block;
	width: 100%;
	background-color: #ececec;
	padding: 5px 20px;
	font-size: 16px;
	line-height: 28px;
	font-weight: 400;
	vertical-align: top;
	color: #000;
	font-size: 15px;
	font-weight: 300;
	line-height: 28px;
	margin-top: 10px;
}

.sp_events_preview h2 {
	margin-left: -20px;
}
.month_default_event_inner {
	line-height: 22px;
}
#event_costs { display: none; }
@media (max-width: 1400px) {
	.sp_events_preview.c6 .container .event, .sp_events_preview.c5 .container .event, .sp_events_preview .container .event {
		width: calc(25% - 20px);
	}
}
@media (max-width: 1190px) {
	.sp_events_preview .container {
		width: 100%;
		margin: 0;
		padding: 0 15px;
	}
	.sp_events_preview.c6 .container .event, .sp_events_preview.c5 .container .event, .sp_events_preview.c4 .container .event, .sp_events_preview.c3 .container .event, .sp_events_preview .container .event {
		width: calc(50% - 20px);
	}
}
@media (max-width: 650px) {
	.sp_events_preview .container .event {
		width: calc(100% - 20px) !important;
	}
}

/* LIST CSS */
.section-events {
	position: relative;
	padding-bottom: 2rem;
}
.section-events .date-wrap {
	width: 300px;
	height: 180px;
	position: relative;
	text-align: center;
	border: 1px solid #c9a026;
}
.section-events .date-wrap span {
	position: relative;
	display: block;
	color: #c9a026;
}
.section-events .date-wrap .month {
	top: 60px;
	font-size: 50px;
	font-weight: 700;
	text-transform: uppercase;
}
.section-events .date-wrap .year {
	top: 75px;
	font-size: 25px;
	font-weight: 500;
}
.section-events .date-wrap .year.top {
	top: 50px;
}

.section-events .event-list, .section-events .event-smalllist {
	display: inline-block;
	position: relative;
	background-color: #f7f2e3;
	overflow: hidden;
	min-height: 180px;
	margin-top: 10px;
	width: 100%;
}

.section-events .event-list .img-wrap, .section-events .event-smalllist .img-wrap {
	background-size: cover;
	margin-right: 0.9375rem;
	width: 300px;
	height: 180px;
	float: left;
	overflow: hidden;
	max-width: 40%;
}
.section-events .event-list h3, .section-events .event-smalllist h3 {
	margin-top: 15px !important;
	color: #15535a !important;
	font-weight: 500 !important;
}
.grcatlist2 {
	position: relative;
	top: 1px;
	left: 0;
	color: #000000;
	font-size: 14px;
	line-height: 1.5;
	border-radius: 0 0 0.1875rem 0;
	overflow: hidden;
	display: -moz-flex;
	display: flex;
	flex-wrap: wrap;
	height: auto;
}
.section-events .event-list .text-wrap, .section-events .event-smalllist .text-wrap {
	margin-right: 20px;
}
.section-events .event-smalllist .text-wrap p {
	margin-top: 0px;
}

@media screen AND (min-width: 2400px) {
	.section-events .event-list {
		width: calc(33.3333% - 15px);
	}
	.section-events .event-list:nth-child(3n+2) {
		margin-right: 10px;
	}
	.section-events .event-list:nth-child(3n+0) {
		margin-left: 10px;
		margin-right: 10px;
	}
	.section-events .event-list:nth-child(3n+1) {
		margin-left: 0px;
		margin-left: 10px;
	}
}
@media screen AND (min-width: 1600px) AND (max-width: 2399px) {
	.section-events .event-list {
		width: calc(50% - 10px);
	}
	.section-events .event-list:nth-child(odd) {
		margin-left: 10px;
	}
	.section-events .event-list:nth-child(even) {
		margin-right: 10px;
	}
}
@media screen AND (max-width: 600px) {
	.section-events .event-list .img-wrap {
		max-width: 25%;
	}
}
@media screen AND (max-width: 650px) {
	.cal-list-container .event-smalllist .img-wrap {
		width: 100%;
		max-width: 100%;
		float: none;
	}
	.section-events .event-smalllist .text-wrap {
		margin-left: 20px;
	}
}
@media screen AND (max-width: 996px) {
	.section-events .event-list p {
		font-size: 18px;
		line-height: 24px;
	}
}