/* ==========================================================================
   Zweieck Termine – Lindgrün + Schwarz, 1-px-Linien wie die Navigation
   ========================================================================== */

.zt-laufband,
.zt-woche,
.zt-programm {
	--zt-mint: #bce7cd;
	--zt-mint-2: #d7f3e2;
	--zt-ink: #000;
	--zt-pink: #ff00f2;
	--zt-line: 1px solid var(--zt-ink);
	color: var(--zt-ink);
	box-sizing: border-box;
}
.zt-laufband *, .zt-woche *, .zt-programm * { box-sizing: border-box; }

/* Nie unterstreichen – auch nicht, wenn das Theme Links im Inhalt unterstreicht */
.zt-woche a, .zt-programm a, .zt-laufband a,
.zt-woche a:hover, .zt-programm a:hover, .zt-laufband a:hover,
.zt-woche a:focus, .zt-programm a:focus, .zt-laufband a:focus,
.zt-woche a *, .zt-programm a *, .zt-laufband a * {
	text-decoration: none !important;
	box-shadow: none !important;
}

/* Große Überschriften: dünn + fett gemischt */
.zt-h2 {
	margin: 0;
	font-size: clamp(36px, 6vw, 84px);
	line-height: .95;
	font-weight: 300;
	letter-spacing: -.02em;
	text-transform: uppercase;
	color: var(--zt-ink);
}
.zt-h2 strong { font-weight: 800; }

/* Knöpfe */
.zt-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: var(--zt-line);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--zt-ink) !important;
	background: transparent;
	transition: none;
}
.zt-btn-pink { background: var(--zt-pink); }
.zt-btn:hover { background: var(--zt-ink); color: var(--zt-mint) !important; }
.zt-btn:focus-visible, .zt-filterbtn:focus-visible, .zt-navbtn:focus-visible,
.zt-card:focus-visible, .zt-ev:focus-visible, .zt-lev:focus-visible, .zt-laufband-btn:focus-visible {
	outline: 3px solid var(--zt-pink);
	outline-offset: 2px;
}

/* ---------- Laufband ---------- */

.zt-laufband {
	display: flex;
	align-items: stretch;
	background: var(--zt-ink);
	border-top: var(--zt-line);
	border-bottom: var(--zt-line);
}
.zt-laufband-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 24px;
	min-height: 52px;
	background: var(--zt-mint);
	color: var(--zt-ink) !important;
	border-right: var(--zt-line);
	font-weight: 800;
	font-size: 16px;
	letter-spacing: .06em;
	text-transform: uppercase;
	position: relative;
	z-index: 1;
}
.zt-laufband-btn:hover { background: var(--zt-pink); }
.zt-laufband-view { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.zt-laufband-track { display: inline-flex; animation: zt-ticker 50s linear infinite; }
.zt-laufband:hover .zt-laufband-track { animation-play-state: paused; }
.zt-laufband-set { display: inline-flex; padding: 14px 0; }
.zt-tick {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0 24px;
	border-right: 1px solid var(--zt-mint);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--zt-mint);
	line-height: 1.2;
}
.zt-tick strong { font-weight: 800; }
@keyframes zt-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.zt-laufband-track { animation: none; }
	.zt-laufband-view { overflow-x: auto; }
}

/* ---------- Diese Woche ---------- */

.zt-woche { container-type: inline-size; }
.zt-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}
.zt-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 28px;
	border-top: var(--zt-line);
	border-bottom: var(--zt-line);
}
.zt-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 30px;
	min-height: 330px;
	padding: 26px 26px 24px;
	color: var(--zt-ink) !important;
	background: transparent;
	border-right: var(--zt-line);
}
.zt-card:last-child { border-right: 0; }
.zt-card.is-today { background: var(--zt-ink); color: var(--zt-mint) !important; }
a.zt-card:hover { background: var(--zt-mint-2); }
a.zt-card.is-today:hover { background: #1a1a1a; }
.zt-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.zt-card-day, .zt-card-meta { font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.zt-card-date { font-weight: 300; font-size: clamp(64px, 7.5vw, 104px); line-height: .85; letter-spacing: -.04em; }
.zt-card-tag { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; padding: 5px 8px; white-space: nowrap; }
.zt-card-bottom { display: flex; flex-direction: column; gap: 8px; }
.zt-card-title { font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.zt-card-line { height: 1px; background: currentColor; }

@container (max-width: 900px) {
	.zt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zt-card:nth-child(2n) { border-right: 0; }
	.zt-card:nth-child(-n+2) { border-bottom: var(--zt-line); }
	.zt-card { min-height: 280px; }
}
@container (max-width: 520px) {
	.zt-cards { grid-template-columns: minmax(0, 1fr); }
	.zt-card { border-right: 0; border-bottom: var(--zt-line); min-height: 0; }
	.zt-card:last-child { border-bottom: 0; }
	.zt-card-title { font-size: 26px; }
}

/* ---------- Monatsprogramm ---------- */

.zt-programm { container-type: inline-size; scroll-margin-top: 20px; }
/* Gefilterte Termine wirklich ausblenden (display-Angaben unten würden „hidden“ sonst überschreiben) */
.zt-programm [hidden] { display: none !important; }
.zt-programm.is-loading { opacity: .5; pointer-events: none; }
.zt-prog-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
}
/* Überschrift bricht nie um: Größe richtet sich nach dem längsten Monat („September ’27“),
   damit sie beim Blättern nicht springt */
.zt-prog-head .zt-h2 { white-space: nowrap; font-size: clamp(30px, calc((100cqi - 700px) / 14.4), 64px); }
/* Feiner Trennstrich zwischen Monat und Jahr, wie die Striche in der Navigation */
.zt-h2-sep { display: inline-block; width: max(1px, .035em); height: .78em; margin: 0 .28em; background: currentColor; vertical-align: -.02em; }
.zt-prog-nav { display: flex; align-items: center; gap: 18px; min-width: 0; }
.zt-navbtn {
	width: 48px;
	height: 48px;
	flex: none;
	border: var(--zt-line);
	border-radius: 0;
	background: transparent;
	color: var(--zt-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	box-shadow: none;
}
.zt-navbtn:hover { background: var(--zt-ink); color: var(--zt-mint); }

/* Filter im Stil der Navigation */
.zt-filter { display: flex; flex-wrap: wrap; border-bottom: var(--zt-line); }
.zt-filterbtn {
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-right: var(--zt-line);
	border-radius: 0;
	background: transparent;
	color: var(--zt-ink);
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
}
.zt-filterbtn:last-child { border-right: 0; }
.zt-filterbtn:hover,
.zt-filterbtn[aria-pressed="true"] { background: var(--zt-ink); color: var(--zt-mint); }

/* Raster */
.zt-cal { margin-top: 26px; border: var(--zt-line); }
.zt-cal-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: var(--zt-line); }
.zt-cal-wd > div { padding: 12px 14px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-right: var(--zt-line); }
.zt-cal-wd > div:last-child { border-right: 0; }
.zt-cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.zt-day {
	min-height: 132px;
	padding: 10px 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: var(--zt-mint);
	border-right: var(--zt-line);
	border-bottom: var(--zt-line);
	min-width: 0;
}
.zt-day:nth-child(7n) { border-right: 0; }
.zt-day:nth-last-child(-n+7) { border-bottom: 0; }
.zt-day.is-out { background: var(--zt-mint-2); }
.zt-daynum { margin: 0 10px; align-self: flex-start; min-width: 26px; padding: 2px 4px; text-align: center; font-weight: 600; font-size: 15px; }
.zt-day.is-out .zt-daynum { color: #4d6b5a; }
.zt-day.is-today { background: var(--zt-pink); }
.zt-day.is-today .zt-daynum { color: var(--zt-ink); font-weight: 800; }

.zt-ev {
	display: block;
	margin: 0 8px;
	padding: 5px 8px;
	border: var(--zt-line);
	color: var(--zt-ink) !important;
	background: #fff;
	min-width: 0;
}
.zt-ev.is-weekly { background: var(--zt-ink); color: var(--zt-mint) !important; }
.zt-ev.pos-start { margin-right: -1px; }
.zt-ev.pos-mid { margin: 0 -1px; }
.zt-ev.pos-end { margin-left: -1px; }
a.zt-ev:hover { background: var(--zt-pink); color: var(--zt-ink) !important; }
.zt-ev-meta { display: block; font-weight: 600; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.zt-ev-title { display: block; font-weight: 800; font-size: 13px; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; }

/* Liste (Handy) */
.zt-list { display: none; margin-top: 20px; border-top: var(--zt-line); }
.zt-lday { display: flex; border-bottom: var(--zt-line); }
.zt-lday.is-today { background: var(--zt-pink); }
.zt-ldate { width: 76px; flex: none; padding: 14px 0 14px 14px; border-right: var(--zt-line); display: flex; flex-direction: column; }
.zt-ldate span { font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.zt-ldate strong { font-weight: 300; font-size: 36px; line-height: 1; }
.zt-lday.is-today .zt-ldate strong { font-weight: 800; }
.zt-levs { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zt-lev { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; color: var(--zt-ink) !important; }
.zt-lev + .zt-lev { border-top: var(--zt-line); }
.zt-lmark { width: 12px; align-self: stretch; flex: none; border: var(--zt-line); background: #fff; }
.zt-lev.is-weekly .zt-lmark { background: var(--zt-ink); }
.zt-ltext { min-width: 0; }
.zt-lev .zt-ev-meta { font-size: 11px; }
.zt-lev .zt-ev-title { font-size: 17px; }
a.zt-lev:hover { background: var(--zt-mint-2); }
.zt-empty { padding: 18px 0; margin: 0; }

/* Legende */
.zt-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 14px; font-size: 14px; }
.zt-legend span { display: inline-flex; align-items: center; gap: 8px; }
.zt-sw { display: inline-block; width: 13px; height: 13px; border: var(--zt-line); background: #fff; }
.zt-sw.is-weekly { background: var(--zt-ink); }

@container (min-width: 1001px) {
	.zt-prog-head { flex-wrap: nowrap; }
	.zt-filter { flex-wrap: nowrap; flex: none; }
}
@container (max-width: 1000px) {
	.zt-prog-head .zt-h2 { font-size: clamp(30px, calc((100cqi - 140px) / 14.4), 56px); }
}
@container (max-width: 760px) {
	/* Handy: „Programm“ und Monat bewusst auf zwei Zeilen, jede Zeile ohne Umbruch */
	.zt-prog-head .zt-h2 { font-size: clamp(24px, calc((100cqi - 140px) / 9.3), 44px); text-align: center; }
	.zt-h2-a { display: block; }
	.zt-cal { display: none; }
	.zt-list { display: block; }
	.zt-filter { width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.zt-filterbtn { flex: none; padding: 0 16px; }
	.zt-laufband-btn { padding: 0 14px; font-size: 14px; }
	.zt-prog-nav { width: 100%; justify-content: space-between; }
}
