/* HB9AF Events — Terminliste mit Datums-Badge */

.hb9af-events__year {
	margin: 2em 0 0.75em;
}

.hb9af-events__subscribe {
	margin: 0 0 1.25rem;
}

.hb9af-events__ics-all {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	padding: 0.45rem 0.9rem;
}

.hb9af-events__ics-all:hover {
	background: rgba(0, 0, 0, 0.04);
}

.hb9af-events__list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hb9af-events__item {
	display: flex;
	gap: 1rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	padding: 1rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Vergangene Events dezent ausgrauen, abgesagte durchstreichen */
.hb9af-events__item--durchgefuehrt {
	opacity: 0.6;
}

.hb9af-events__item--abgesagt .hb9af-events__title {
	text-decoration: line-through;
}

.hb9af-events__badge {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 4.5rem;
	background: #4a6785;
	color: #fff;
	border-radius: 10px;
	padding: 0.5rem 0.4rem;
	align-self: flex-start;
}

.hb9af-events__badge-day {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.hb9af-events__badge-month {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.hb9af-events__body {
	flex: 1 1 auto;
	min-width: 0;
}

.hb9af-events__header {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hb9af-events__title {
	font-size: 1.1rem;
	font-weight: 700;
}

.hb9af-events__status {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 999px;
	padding: 0.12rem 0.6rem;
	white-space: nowrap;
}

.hb9af-events__status--geplant {
	background: #eef2f6;
	color: #4a6785;
}

.hb9af-events__status--bestaetigt {
	background: #e2f3e6;
	color: #21753b;
}

.hb9af-events__status--abgesagt {
	background: #fbe5e5;
	color: #a52a2a;
}

.hb9af-events__status--durchgefuehrt {
	background: #ececec;
	color: #555;
}

.hb9af-events__status--durchgefuehrt::before {
	content: "✓ ";
}

.hb9af-events__meta {
	margin-top: 0.25rem;
	font-size: 0.9rem;
	color: #555;
}

.hb9af-events__details {
	margin-top: 0.5rem;
	font-size: 0.92rem;
}

.hb9af-events__details summary {
	cursor: pointer;
	font-weight: 600;
	color: #4a6785;
}

.hb9af-events__details-inner {
	margin-top: 0.5rem;
	padding-left: 0.25rem;
}

.hb9af-events__details-inner p {
	margin: 0 0 0.4rem;
}

.hb9af-events__ics {
	display: inline-block;
	margin-top: 0.6rem;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

.hb9af-events__ics:hover {
	text-decoration: underline;
}

.hb9af-events__empty {
	font-style: italic;
}

/* Schmale Displays: Badge über dem Text statt daneben */
@media (max-width: 480px) {
	.hb9af-events__item {
		flex-direction: column;
		gap: 0.6rem;
	}

	.hb9af-events__badge {
		flex-direction: row;
		gap: 0.4rem;
		align-self: flex-start;
		min-width: 0;
		padding: 0.3rem 0.7rem;
	}
}
