/* Firefight Plus – Termine */
.t-ico { width: 18px; height: 18px; flex: none; }
.termin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.termin-list { display: grid; gap: 12px; }
.termin {
	position: relative; display: flex; gap: 16px; align-items: stretch;
	padding: 16px; border: 1px solid var(--ffhi-line); border-left: 5px solid var(--t-color, var(--ffhi-accent));
	border-radius: var(--radius); background: var(--ffhi-white); transition: box-shadow .15s, transform .15s;
}
.termin:hover { box-shadow: 0 12px 28px -18px rgba(0,0,0,.5); transform: translateY(-1px); }
.termin:focus-within { outline: 3px solid var(--t-color, var(--ffhi-accent)); outline-offset: 2px; }
.termin.is-past { opacity: .72; }
.termin-date {
	flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 8px 4px; border-radius: 8px; background: var(--ffhi-bg); text-align: center; line-height: 1;
}
.termin-dow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ffhi-muted); }
.termin-day { font-family: var(--font-display); font-weight: 700; font-size: 34px; margin: 4px 0 2px; color: var(--ffhi-ink); }
.termin-mon { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--t-color, var(--ffhi-accent)); }
.termin-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.termin-art { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-color, var(--ffhi-accent)); }
.termin-title { margin: 0; font-size: 21px; line-height: 1.2; }
.termin-title a { color: var(--ffhi-ink); text-decoration: none; }
.termin-title a::after { content: ""; position: absolute; inset: 0; }
.termin-title a:focus-visible { outline: none; }
.termin-meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ffhi-text); font-size: 15px; }
.termin-meta li { display: inline-flex; align-items: center; gap: 6px; }
.termin-meta .t-ico { color: var(--ffhi-muted); width: 16px; height: 16px; }
#termine .btn--more { margin-top: 28px; }

/* Übersicht */
.termine-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.termine-top .section-head { margin-bottom: 0; }
.t-switch { display: inline-flex; padding: 4px; border: 1px solid var(--ffhi-line); border-radius: 999px; background: var(--ffhi-white); }
.t-switch a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; color: var(--ffhi-text); font-weight: 600; text-decoration: none; }
.t-switch a[aria-current="page"] { background: var(--ffhi-dark); color: var(--ffhi-white); }
.t-arts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 0 28px; }
.t-arts::-webkit-scrollbar { display: none; }
.t-arts .chip { text-decoration: none; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--t-color); }
.t-arts .chip.is-on .t-dot { box-shadow: 0 0 0 2px var(--ffhi-white); }
.t-list-h { font-size: 22px; margin: 0 0 4px; }
.termine-page .month-title { margin-top: 28px; }
.termine-page .t-list-h + .month-title { margin-top: 12px; }
.t-empty { padding: 28px; border: 1px dashed var(--ffhi-line); border-radius: var(--radius); background: var(--ffhi-white); color: var(--ffhi-muted); text-align: center; }
.t-more { margin: 32px 0 0; }
.t-more a { font-weight: 600; color: var(--ffhi-accent); }
.t-abo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--ffhi-line); color: var(--ffhi-muted); font-size: 15px; }
.t-abo a { color: var(--ffhi-ink); font-weight: 600; }

/* Kalender */
.t-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.t-cal-title { margin: 0; font-size: clamp(24px, 3vw, 32px); text-align: center; flex: 1; }
.t-cal-nav { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ffhi-line); border-radius: 50%; background: var(--ffhi-white); color: var(--ffhi-ink); font-size: 26px; line-height: 1; text-decoration: none; }
.t-cal-nav:hover { border-color: var(--ffhi-accent); color: var(--ffhi-accent); }
.t-cal-today { text-align: center; margin: -4px 0 12px; font-size: 14px; }
.t-cal-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.t-cal-grid th { padding: 6px 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ffhi-muted); }
.t-cal-grid abbr { text-decoration: none; }
.t-cal-grid td { height: 104px; vertical-align: top; padding: 6px; border-radius: 8px; background: var(--ffhi-white); border: 1px solid var(--ffhi-line); }
.t-cal-grid td.is-empty { background: transparent; border-color: transparent; }
.t-cal-grid td.is-past { background: color-mix(in srgb, var(--ffhi-white) 55%, var(--ffhi-bg)); }
.t-cal-grid td.is-today { border: 2px solid var(--ffhi-accent); }
.t-cal-d { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.is-today .t-cal-d { color: var(--ffhi-accent); }
.t-cal-ev { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.t-cal-grid td { overflow: hidden; }
.t-cal-ev li a { display: block; padding: 3px 6px; border-radius: 4px; background: color-mix(in srgb, var(--t-color) 14%, var(--ffhi-white)); border-left: 3px solid var(--t-color); color: var(--ffhi-ink); font-size: 12px; line-height: 1.25; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-cal-ev li a:hover { background: color-mix(in srgb, var(--t-color) 24%, var(--ffhi-white)); }
.t-cal-time { font-weight: 700; }
.t-cal-more { font-size: 12px; color: var(--ffhi-muted); padding-left: 6px; }
.t-cal-listh { font-size: 22px; margin: 36px 0 12px; }

/* Termin-Detailseite */
.termin-page-inner { max-width: 820px; }
.termin-back { display: inline-block; margin-bottom: 20px; color: var(--ffhi-text); font-weight: 600; text-decoration: none; }
.termin-back:hover { color: var(--ffhi-accent); text-decoration: underline; }
.termin-page .termin-art { display: block; margin-bottom: 6px; }
.termin-page .page-title { margin: 0 0 16px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.termin-past-note { color: var(--ffhi-muted); font-style: italic; }
.termin-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 0 0 28px; }
.termin-facts div { padding: 14px 16px; border-radius: var(--radius); background: var(--ffhi-white); border-top: 4px solid var(--t-color, var(--ffhi-accent)); }
.termin-facts dt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ffhi-muted); }
.termin-facts dd { margin: 6px 0 0; font-size: 18px; font-weight: 600; color: var(--ffhi-ink); }
.termin-desc { margin-bottom: 28px; color: var(--ffhi-text); }
.termin-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.termin-actions .btn--ghost { color: var(--ffhi-ink); border-color: var(--ffhi-line); background: var(--ffhi-white); }
.termin-actions .btn--ghost:hover { border-color: var(--ffhi-accent); color: var(--ffhi-accent); background: var(--ffhi-white); }

@media (max-width: 720px) {
	.termin { gap: 12px; padding: 12px; }
	.termin-date { width: 56px; }
	.termin-day { font-size: 28px; }
	.termin-title { font-size: 19px; }
	.t-cal-grid { border-spacing: 2px; }
	.t-cal-grid th { font-size: 11px; }
	.t-cal-grid td { height: 52px; padding: 4px; border-radius: 6px; text-align: center; }
	.t-cal-d { margin: 0; font-size: 13px; }
	/* Auf dem Handy: Punkte statt Texte, die Liste darunter zeigt die Details. */
	.t-cal-ev { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 4px; }
	.t-cal-ev li a { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--t-color); font-size: 0; }
	.t-cal-more { display: none; }
}
