@charset "UTF-8";
/* EZS Termin-Popup – Farben bei Bedarf hier anpassen */
:root {
	--ezs-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--ezs-tp-text: #1c2a43;
	--ezs-tp-gedimmt: #5b6577;
	--ezs-tp-akzent: #2e6b9e;
	--ezs-tp-linie: #7FA8CA;
	--ezs-tp-flaeche: #f3f6f9;
	--ezs-tp-gruen: #3c7d5a;
}

/* ---------- Popup ---------- */
html.ezs-tp-offen { overflow: hidden; }

.ezs-tp {
	width: min(900px, calc(100vw - 32px));
	max-height: min(90vh, 960px);
	font-size: .95rem;
	padding: 0;
	border: 0;
	border-radius: 10px;
	color: var(--ezs-tp-text);
	background: #fff;
	box-shadow: 0 24px 60px rgba(20, 35, 60, .25);
	overflow: auto;
}
.ezs-tp::backdrop { background: rgba(20, 35, 60, .4); }
.ezs-tp[open] { animation: ezs-tp-rein .25s ease-out; }
@keyframes ezs-tp-rein { from { opacity: 0; } to { opacity: 1; } }

.ezs-tp__close {
	position: sticky;
	top: 12px;
	float: right;
	margin: 12px 12px 0 0;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--ezs-tp-text);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}
.ezs-tp__close:hover, .ezs-tp__close:focus-visible { background: var(--ezs-tp-flaeche); }

.ezs-tp__body { padding: 16px 64px 48px; }
.ezs-tp__bild {
	display: block;
	width: calc(100% + 128px);
	margin: -68px -64px 28px;
	aspect-ratio: 16 / 7;
	object-fit: cover;
}
.ezs-tp__status { margin: 40px 0; color: var(--ezs-tp-gedimmt); }

.ezs-tp__format {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 24px 0 10px;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ezs-tp-gruen);
}
.ezs-tp__format::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.ezs-tp__titel {
	margin: 0 48px 8px 0;
	font-family: var(--ezs-serif);
	font-weight: 600;
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
	line-height: 1.25;
}
.ezs-tp__vortragstitel { margin: 0 0 8px; font-style: italic; font-size: 1rem; color: var(--ezs-tp-gedimmt); }

.ezs-tp__fakten {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 28px;
	margin: 24px 0 28px;
	padding: 20px 0;
	border-top: 1px solid var(--ezs-tp-linie);
	border-bottom: 1px solid var(--ezs-tp-linie);
}
.ezs-tp__fakten dt { font-weight: 600; color: var(--ezs-tp-gedimmt); }
.ezs-tp__fakten dd { margin: 0; }
.ezs-tp__fakten a { color: var(--ezs-tp-akzent); }

.ezs-tp__inhalt { line-height: 1.65; max-width: 68ch; }
.ezs-tp__inhalt > :first-child { margin-top: 0; }
.ezs-tp__inhalt a { color: var(--ezs-tp-akzent); }

.ezs-tp__aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ezs-tp__btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border: 1px solid var(--ezs-tp-akzent);
	border-radius: 999px;
	background: var(--ezs-tp-akzent);
	color: #fff;
	font: inherit;
	font-size: .92rem;
	text-decoration: none;
	cursor: pointer;
}
.ezs-tp__btn:hover, .ezs-tp__btn:focus-visible { filter: brightness(1.1); color: #fff; }
.ezs-tp__btn--leise { background: transparent; color: var(--ezs-tp-akzent); }
.ezs-tp__btn--leise:hover, .ezs-tp__btn--leise:focus-visible { background: var(--ezs-tp-flaeche); color: var(--ezs-tp-akzent); filter: none; }
.ezs-tp__btn[hidden] { display: none; }

@media (max-width: 600px) {
	.ezs-tp { max-height: 90vh; }
	.ezs-tp__body { padding: 8px 22px 32px; }
	.ezs-tp__bild { width: calc(100% + 44px); margin: -60px -22px 20px; }
	.ezs-tp__fakten { grid-template-columns: 1fr; gap: 2px; }
	.ezs-tp__fakten dd { margin-bottom: 10px; }
}

/* ---------- Nächste Termine (Aktuelles / [ezs_naechste_termine]) ---------- */
.ezs-nt { color: var(--ezs-tp-text); }
.ezs-nt__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.ezs-nt__titel { margin: 0; font-size: 1.25rem; }
.ezs-nt__alle { color: var(--ezs-tp-akzent); text-decoration: none; white-space: nowrap; font-size: .95rem; }
.ezs-nt__alle:hover { text-decoration: underline; }

.ezs-nt .ezs-nt__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 36px;
}
.ezs-nt .ezs-nt__item {
	margin: 0;
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 18px;
	align-items: start;
	padding: 20px 0 6px;
	border-top: 1px solid var(--ezs-tp-linie);
}
.ezs-nt__datum { display: flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.ezs-nt__tag { font-size: 1.6rem; font-weight: 500; }
.ezs-nt__monat { margin-top: 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ezs-tp-akzent); }
.ezs-nt__wtag { margin-top: 4px; font-size: .75rem; color: var(--ezs-tp-gedimmt); }
.ezs-nt__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ezs-nt__format { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ezs-tp-gruen); }
.ezs-nt__link { color: inherit; font-size: 1.02rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.ezs-nt__link:hover, .ezs-nt__link:focus-visible { color: var(--ezs-tp-akzent); text-decoration: underline; text-underline-offset: 3px; }
.ezs-nt__person { font-size: .9rem; }
.ezs-nt__meta { font-size: .86rem; color: var(--ezs-tp-gedimmt); }
.ezs-nt__leer { color: var(--ezs-tp-gedimmt); }

@media (max-width: 860px) {
	.ezs-nt .ezs-nt__liste { grid-template-columns: 1fr; }
	.ezs-nt .ezs-nt__item { padding-bottom: 16px; }
}

/* ---------- Terminkalender [ezs_terminkalender] ---------- */
.ezs-tk { color: var(--ezs-tp-text); }
.ezs-tk [hidden] { display: none !important; }

.ezs-tk__filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.ezs-tk__chip {
	padding: 8px 16px;
	border: 1px solid #c9d7e4;
	border-radius: 999px;
	background: #fff;
	color: var(--ezs-tp-text);
	font: inherit;
	font-size: .9rem;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.ezs-tk__chip:hover { border-color: var(--ezs-tp-linie); background: var(--ezs-tp-flaeche); }
.ezs-tk__chip[aria-pressed="true"] { background: var(--ezs-tp-text); border-color: var(--ezs-tp-text); color: #fff; }
.ezs-tk__chip:focus-visible { outline: 2px solid var(--ezs-tp-akzent); outline-offset: 2px; }

.ezs-tk__block + .ezs-tk__block { margin-top: 64px; }
.ezs-tk__ueberschrift {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 8px;
	font-family: inherit;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ezs-tp-gedimmt);
}
.ezs-tk__ueberschrift::before { content: ""; width: 28px; height: 1px; background: var(--ezs-tp-linie); }

.ezs-tk__gruppe { margin-top: 28px; }
.ezs-tk__gruppentitel {
	margin: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ezs-tp-linie);
	font-size: 1.3rem;
	font-weight: 500;
}

.ezs-tk .ezs-tk__liste { list-style: none; margin: 0; padding: 0; }
.ezs-tk .ezs-tk__liste > li { margin: 0; }
.ezs-tk__zeile {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 24px;
	align-items: start;
	padding: 20px 0;
	border-bottom: 1px solid #e3e9ef;
}
.ezs-tk__datum { display: flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.ezs-tk__tag { font-size: 1.75rem; font-weight: 500; }
.ezs-tk__monat { margin-top: 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ezs-tp-akzent); }
.ezs-tk__wtag { margin-top: 4px; font-size: .75rem; color: var(--ezs-tp-gedimmt); }

.ezs-tk__inhalt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ezs-tk__format { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ezs-tp-gruen); }
.ezs-tk__titel { color: inherit; font-size: 1.1rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.ezs-tk__titel:hover, .ezs-tk__titel:focus-visible { color: var(--ezs-tp-akzent); text-decoration: underline; text-underline-offset: 3px; }
.ezs-tk__person { font-size: .93rem; }
.ezs-tk__wo { font-size: .88rem; color: var(--ezs-tp-gedimmt); }

.ezs-tk__ics {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 6px;
	color: var(--ezs-tp-akzent);
	font-size: .85rem;
	text-decoration: none;
	white-space: nowrap;
}
.ezs-tk__ics:hover, .ezs-tk__ics:focus-visible { background: var(--ezs-tp-flaeche); }

.ezs-tk__leer { margin: 24px 0; color: var(--ezs-tp-gedimmt); }

/* Archiv */
.ezs-tk__semester { border-bottom: 1px solid var(--ezs-tp-linie); }
.ezs-tk__semester:first-of-type { border-top: 1px solid var(--ezs-tp-linie); margin-top: 16px; }
.ezs-tk__semester > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	font-size: 1.05rem;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}
.ezs-tk__semester > summary::-webkit-details-marker { display: none; }
.ezs-tk__semester > summary::before {
	content: "";
	flex: 0 0 auto;
	width: 7px; height: 7px;
	margin: 0 4px 0 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .15s;
}
.ezs-tk__semester[open] > summary::before { transform: translateY(-2px) rotate(45deg); }
.ezs-tk__anzahl { margin-left: auto; font-size: .85rem; font-weight: 400; color: var(--ezs-tp-gedimmt); }
.ezs-tk__semester .ezs-tk__liste { padding-bottom: 8px; }
.ezs-tk__zeile.ist-vorbei { grid-template-columns: 64px 1fr; padding: 14px 0; }
.ezs-tk__zeile.ist-vorbei:last-child { border-bottom: 0; }
.ezs-tk__zeile.ist-vorbei .ezs-tk__tag { font-size: 1.3rem; color: var(--ezs-tp-gedimmt); }
.ezs-tk__zeile.ist-vorbei .ezs-tk__monat { color: var(--ezs-tp-gedimmt); }
.ezs-tk__zeile.ist-vorbei .ezs-tk__titel { font-size: 1rem; font-weight: 500; }

.ezs-tk__abo { margin-top: 40px; font-size: .92rem; }
.ezs-tk__abo a { color: var(--ezs-tp-akzent); }

@media (max-width: 600px) {
	.ezs-tk__zeile { grid-template-columns: 48px 1fr; gap: 4px 16px; }
	.ezs-tk__ics { grid-column: 2; justify-self: start; padding-left: 0; }
	.ezs-tk__tag { font-size: 1.45rem; }
}


/* ---------- Terminkalender: Karten ---------- */
.ezs-tk {
	--tk-blau: var(--blue, #2e5f8a);
	--tk-tint: var(--tint, #eef3f8);
	--tk-linie: var(--line, #dbe4ed);
	--tk-gedimmt: var(--muted, #5b6577);
}
.ezs-tk .ezs-tk__karten {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 24px;
}
.ezs-tk .ezs-tk__karte {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: #fff;
	border: 1px solid var(--tk-linie);
	border-top: 3px solid var(--ezs-tp-linie);
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ezs-tk__karte:hover { box-shadow: 0 14px 34px rgba(28, 42, 67, .10); transform: translateY(-2px); border-color: var(--ezs-tp-linie); }
.ezs-tk__karte:focus-within { box-shadow: 0 0 0 3px rgba(46, 107, 158, .25); }

.ezs-tk__kdatum { padding: 20px 24px 18px; background: var(--tk-tint); }
.ezs-tk__kdatum time { display: flex; align-items: baseline; gap: 12px; }
.ezs-tk__ktag { font-family: var(--ezs-serif); font-weight: 600; font-size: 2.5rem; line-height: 1; color: var(--ezs-tp-text); }
.ezs-tk__kmonat { font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ezs-tp-text); }
.ezs-tk__kzeit { display: block; margin-top: 8px; font-size: .9rem; color: var(--tk-gedimmt); }
.ezs-tk__badge { display: none; }

.ezs-tk__kbody { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 20px; }
.ezs-tk__label {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--tk-tint);
	color: var(--ezs-tp-text);
	font-size: .8rem;
}
.ezs-tk .ezs-tk__ktitel { margin: 4px 0 2px; font-family: var(--ezs-serif) !important; font-size: 22px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: #16233a; }
.ezs-tk__ktitel a { color: inherit; text-decoration: none; }
.ezs-tk__ktitel a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ezs-tk__ktitel a:focus-visible { outline: none; }
.ezs-tk .ezs-tk__kvtitel { margin: 0 0 4px; font-size: .95rem; line-height: 1.5; color: var(--ezs-tp-text); }
.ezs-tk .is-erster .ezs-tk__kvtitel { font-size: 1.05rem; max-width: 62ch; }
.ezs-tk .ezs-tk__kperson { margin: 0; font-size: .95rem; line-height: 1.45; }
.ezs-tk__kperson strong { display: block; font-weight: 600; }
.ezs-tk__kperson span { color: var(--tk-gedimmt); }
.ezs-tk .ezs-tk__kort { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; color: var(--tk-gedimmt); }
.ezs-tk .ezs-tk__kauszug { display: none; margin: 6px 0 0; line-height: 1.6; color: var(--ezs-tp-text); }

.ezs-tk__kfuss {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-top: auto;
	padding-top: 16px;
}
.ezs-tk__mehr { color: var(--tk-blau); font-weight: 500; }
.ezs-tk__mehr span { display: inline-block; transition: transform .2s; }
.ezs-tk__karte:hover .ezs-tk__mehr span { transform: translateX(3px); }
.ezs-tk__kics { position: relative; z-index: 2; font-size: .88rem; color: var(--tk-gedimmt); text-decoration: none; }
.ezs-tk__kics:hover, .ezs-tk__kics:focus-visible { color: var(--tk-blau); text-decoration: underline; }
.ezs-tk__kbild { display: none; }

/* Hervorgehobener nächster Termin */
@media (min-width: 760px) {
	.ezs-tk .ezs-tk__karte.is-erster { grid-column: 1 / -1; flex-direction: row; }
	.is-erster .ezs-tk__kdatum {
		flex: 0 0 250px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 36px 32px;
		background: var(--tk-tint);
		border-right: 1px solid var(--tk-linie);
	}
	.is-erster .ezs-tk__ktag { color: var(--tk-blau); }
	.is-erster .ezs-tk__kdatum time { flex-direction: column; align-items: flex-start; gap: 8px; }
	.is-erster .ezs-tk__ktag { font-size: 4rem; }
	.is-erster .ezs-tk__kzeit { font-size: .95rem; }
	.is-erster .ezs-tk__badge {
		display: inline-block;
		align-self: flex-start;
		margin-bottom: 18px;
		padding: 4px 10px;
		border-radius: 999px;
		background: #fff;
		color: var(--tk-blau);
		font-weight: 600;
		font-size: .7rem;
		letter-spacing: .1em;
		text-transform: uppercase;
	}
	.is-erster .ezs-tk__kbody { padding: 32px 40px 28px; }
	.ezs-tk .is-erster .ezs-tk__ktitel { font-size: 30px; line-height: 1.2; }
	.ezs-tk .is-erster .ezs-tk__kauszug { display: block; max-width: 62ch; }
	.is-erster .ezs-tk__kbild { display: block; flex: 0 0 30%; }
	.is-erster .ezs-tk__kbild img { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* Archiv als ruhige Fläche */
.ezs-tk .ezs-tk__archiv { padding: 0; background: transparent; }
.ezs-tk__archiv .ezs-tk__ueberschrift { margin-top: 20px; }
.ezs-tk__archiv .ezs-tk__semester:first-of-type { margin-top: 8px; }
.ezs-tk__archiv .ezs-tk__semester { border-color: var(--tk-linie); }
.ezs-tk__archiv .ezs-tk__zeile { border-color: var(--tk-linie); }
@media (min-width: 900px) {
	.ezs-tk__semester .ezs-tk__liste { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
	.ezs-tk__semester .ezs-tk__zeile.ist-vorbei:last-child { border-bottom: 1px solid var(--tk-linie); }
}

/* Terminseite: Kalender näher an die Überschrift */
.post-type-archive-ezs_termin h1.wp-block-heading { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.ezs-section.ezs-section--kalender { margin-top: 0 !important; padding-top: 24px !important; }
.ezs-section--kalender .ezs-tk > .ezs-tk__block:first-child .ezs-tk__ueberschrift { margin-top: 0; }

/* Aktuelles: Terminvorschau ausblenden (Termine stehen auf Startseite und Terminseite) */
.ezs-mag > .ezs-mag__nt { display: none !important; }
