/* BAB Veranstaltungen – Werte aus dem abgestimmten Mockup.
   Farben kommen aus dem Child-Theme (--bab-*), Fallbacks greifen ohne Theme. */

.bab-grid,
.bab-archiv,
.bab-info,
.bab-videos,
.bab-aufzeichnung,
.bab-video {
	--_rot: var(--bab-rot, #BC1842);
	--_ink: var(--bab-ink, #232323);
	--_soft: var(--bab-ink-soft, #555);
	--_line: var(--bab-line, #e6e2dd);
	--_bg-soft: var(--bab-bg-soft, #f7f5f2);
}

/* ---------- Kacheln ---------- */
.bab-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	margin: 0 0 1.5em;
}
.bab-tile {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--_line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);
	color: var(--_ink);
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.bab-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(0,0,0,.10);
	color: var(--_ink);
}
.bab-tile:focus-visible {
	outline: 3px solid var(--_rot);
	outline-offset: 3px;
}
.bab-tile__thumb {
	position: relative;
	flex: 0 0 auto; /* im Flex-Container nicht stauchen */
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--_bg-soft);
}
.bab-tile__thumb img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100% !important; /* Theme setzt height:auto */
	object-fit: cover;
	object-position: center 25%; /* viele Porträts: Gesicht im oberen Drittel */
}
/* Porträt-Darstellung: kleine/hochkante Fotos in Originalnähe statt hochskaliert.
   Selektoren bewusst spezifischer als .bab-tile__thumb img. */
.bab-tile__thumb--portrait {
	background: linear-gradient(160deg, var(--_bg-soft) 0%, #f3e3e6 100%);
}
.bab-tile__portraits {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 12px;
}
.bab-tile__thumb--portrait .bab-tile__portraits img {
	position: static;
	flex: 0 1 auto;
	min-width: 0;
	width: auto;
	max-width: 100%;
	height: 100% !important;
	max-height: 260px; /* Quellbilder oft nur ~200 px hoch: nicht beliebig aufblasen */
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0,0,0,.12);
	object-fit: cover;
	object-position: center 25%;
}
.bab-tile__thumb--portrait[data-count="3"] .bab-tile__portraits {
	gap: 10px;
	padding: 12px 10px;
}

.bab-tile__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 22px;
}
/* Kategorie: vollrot unterlegt (Wunsch Janina, Okt. 2026). Weiß auf #BC1842 = 6,4:1 */
.bab-chip {
	align-self: flex-start;
	padding: 4px 11px;
	border-radius: 20px;
	background: var(--_rot);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.bab-tile__date {
	color: var(--_rot); /* statt #d6445a: Kontrast >= 4.5:1 */
	font-size: 16px;
	font-weight: 700;
}
.bab-tile__title {
	margin: 0;
	overflow-wrap: break-word;
	hyphens: auto;
	color: var(--_ink);
	font-size: 20.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
}
.bab-tile__loc {
	margin-top: auto;
	color: var(--_soft);
	font-size: 16px;
}

/* ---------- Archiv ---------- */
.bab-archiv__filter,
.bab-archiv__years {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}
.bab-archiv__filter a,
.bab-archiv__years a {
	padding: 8px 16px;
	border: 1px solid var(--_line);
	border-radius: 8px;
	color: var(--_rot);
	font-weight: 600;
	text-decoration: none;
}
.bab-archiv__filter a:hover,
.bab-archiv__years a:hover,
.bab-archiv__filter a[aria-current] {
	background: var(--_rot);
	border-color: var(--_rot);
	color: #fff;
}
.bab-archiv__years {
	padding-bottom: 24px;
	border-bottom: 1px solid var(--_line);
}
.bab-archiv__year h2 {
	margin: 40px 0 8px;
	color: var(--_rot);
	scroll-margin-top: 110px; /* Sticky-Header */
}
/* Programm: „Demnächst“ als ruhige Fläche vom Rückblick absetzen */
.bab-archiv__year--next {
	margin-top: 32px;
	padding: 4px 24px 8px;
	background: var(--_bg-soft);
	border-radius: 10px;
}
.bab-archiv__year--next h2 {
	margin-top: 20px;
}
.bab-archiv__year--next .bab-archiv__list li:last-child {
	border-bottom: 0;
}
.bab-archiv__year--next .bab-archiv__date {
	color: var(--_rot);
	font-weight: 700;
}
/* Rote Kontur statt Fläche – Vollrot ist schon der aktive Filter */
.bab-archiv__years a.bab-archiv__jump-next {
	border-color: var(--_rot);
	font-weight: 700;
}
@media (max-width: 640px) {
	.bab-archiv__year--next { padding: 2px 16px 6px; }
}
.bab-archiv__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bab-archiv__list li {
	display: grid;
	grid-template-columns: 17em minmax(0, 1fr);
	gap: 4px 24px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--_line);
}
.bab-archiv__date {
	color: var(--_soft);
	font-weight: 600;
}
.bab-archiv__main a {
	color: var(--_ink);
	font-weight: 700;
	text-decoration: none;
}
.bab-archiv__main a:hover {
	color: var(--_rot);
	text-decoration: underline;
}
.bab-archiv__sub {
	display: block;
	margin-top: 2px;
	color: var(--_soft);
	font-size: .9em;
}

/* ---------- Einzelbeitrag ---------- */
.bab-portraits-single {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 24px;
}
.bab-portraits-single img {
	display: block;
	width: auto;
	height: auto;
	max-height: 260px; /* wie Kachel: kleine Quellbilder nicht beliebig aufblasen */
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.bab-info {
	display: grid;
	gap: 6px;
	margin: 16px 0 28px;
	padding: 16px 20px;
	border-left: 4px solid var(--_rot);
	background: var(--_bg-soft);
}
.bab-info div {
	display: flex;
	flex-wrap: wrap;
	gap: 0 12px;
}
.bab-info dt {
	min-width: 7.5em;
	color: var(--_soft);
	font-weight: 600;
}
.bab-info dd {
	margin: 0;
	color: var(--_ink);
	font-weight: 700;
}

/* ---------- Videos: Zwei-Klick-Player ---------- */
.bab-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 10px;
	background: #2a2a2a;
}
.bab-video img,
.bab-video iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100% !important;
	border: 0;
	object-fit: cover;
}
.bab-video__play,
.bab-video__play:hover,
.bab-video__play:focus {
	/* GP-Buttonstil neutralisieren */
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0 0 2.5em;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, .28);
	color: #fff;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}
.bab-video__play:hover {
	background: rgba(0, 0, 0, .45);
}
.bab-video__play:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -8px;
}
.bab-video__icon {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--_rot);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
	transition: transform .15s ease;
}
.bab-video__icon svg {
	margin-left: 4px; /* optische Mitte des Dreiecks */
}
.bab-video__play:hover .bab-video__icon {
	transform: scale(1.08);
}
.bab-video__label {
	text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}
.bab-video__note {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 6px 12px;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font-size: 14px;
	line-height: 1.35;
}
.bab-video .bab-video__note a,
.bab-video .bab-video__note a:hover,
.bab-video .bab-video__note a:visited {
	color: #fff;
	text-decoration: underline;
}

/* Einzelbeitrag */
.bab-aufzeichnung {
	margin: 0 0 32px;
}
.bab-aufzeichnung__label,
.bab-aufzeichnung__teil {
	margin: 0 0 8px;
	color: var(--_soft);
	font-weight: 600;
}
.bab-aufzeichnung .bab-video + .bab-aufzeichnung__teil {
	margin-top: 20px;
}

/* Übersicht [bab_videos] */
.bab-grid--video {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bab-vtile {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--_line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);
}
.bab-vtile .bab-video {
	flex: 0 0 auto;
	border-radius: 0;
}
.bab-vtile .bab-tile__title a {
	color: var(--_ink);
	text-decoration: none;
}
.bab-vtile .bab-tile__title a:hover {
	color: var(--_rot);
	text-decoration: underline;
}
.bab-vtile .bab-tile__loc {
	margin-top: 0;
}
.bab-vtile__yt {
	margin-top: auto;
	padding-top: 4px;
	color: var(--_rot);
	font-size: 16px;
	font-weight: 600;
}

.bab-empty {
	padding: 20px;
	background: var(--bab-bg-soft, #f7f5f2);
	border-radius: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.bab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.bab-grid,
	.bab-grid--video { grid-template-columns: 1fr; }
	.bab-video__icon { width: 56px; height: 56px; }
	.bab-video__note { font-size: 13px; }
	.bab-archiv__list li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.bab-tile { transition: none; }
	.bab-tile:hover { transform: none; }
	.bab-video__icon { transition: none; }
	.bab-video__play:hover .bab-video__icon { transform: none; }
}
