/* TF Terminkalender — Admin & Frontend Styles */

/* --- Admin Styles --- */
.tf-terminkalender__item:not(.future-date, .header) {
	color: #777;
	font-style: italic;
}

.tf-terminkalender__ort a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tf-terminkalender__item.future-date {
	font-weight: bold;
}

/* --- Frontend Styles (Card-based, Mobile-friendly) --- */
.tf-terminkalender {
	display: grid;
	padding: 0;
	background-color: #fff;
}

.tf-terminkalender__item {
	display: grid;
	grid-template-columns: 20% 36% repeat(2, 22%);
	border: 1px solid #eee;

	&:not(:last-child) {
		border-bottom: none;
	}

	&>* {
		padding-block: 6px;
		padding-inline: 24px;

		&:not(:last-child) {
			border-right: 1px solid #eee;
		}
	}
}

.tf-terminkalender__item.header {
	background-color: #eee;
	font-weight: bold;
	color: #000;
}

@media (width < 1000px) {
	.tf-terminkalender__item {
		display: flex;
		flex-wrap: wrap;
		row-gap: 6px;
		column-gap: 24px;
		padding: 24px;

		&>*:not(:last-child) {
			border: none;
		}

		&>* {
			padding: 0;

		}

		&:is(.header) {
			display: none;
		}
	}

	.tf-terminkalender__date {
		flex: 0 1 100%;
		color: #777;
	}

	.tf-terminkalender__event {
		flex: 0 1 100%;
		font-size: 1.4rem;
		padding-block: 6px;
	}

	.tf-terminkalender__veranstalter,
	.tf-terminkalender__ort {
		color: #777;
		flex: 1 1;

		&::before {
			content: attr(data-title);
			display: block;
			font-size: 14px;
			color: #ccc;
			line-height: 1;
			font-style: italic;
		}
	}
}