/* ============================================================
   ChurchTools Events – Grid Listing
   Exakt nach Kesselkirche-Mockup: pinke Cards, erste hervorgehoben
   ============================================================ */

:root {
	--ctg-accent:        #ED6A59;
	--ctg-text:          #2E3047;
	--ctg-muted:         #57596C;
	--ctg-badge-soft:    #fbcdc6;
	--ctg-featured-bg:   #fff0ec;
	--ctg-featured-badge:#ED6A59;
	--ctg-row-bg:        #ffffff;
	--ctg-border:        #e5e6ea;
	--ctg-btn-bg:        #2E3047;
	--ctg-btn-text:      #fff;
	--ctg-radius:        18px;
	--ctg-font:          'Assistant', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ct-grid,
.ct-grid * {
	font-family: var(--ctg-font);
}

/* ---------- Container ---------- */
.ct-grid {
	margin: 2rem 0;
	padding: 0;
	font-family: inherit;
	color: var(--ctg-text);
	width: 100%;
	position: relative;
}
.ct-grid.is-loading .ct-grid__body {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* ---------- Header ---------- */
.ct-grid__header {
	text-align: center;
	margin-bottom: 2rem;
}
.ct-grid__kicker {
	color: var(--ctg-accent);
	font-weight: 700;
	letter-spacing: 0.18em;
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
}
.ct-grid__title {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 800;
	color: var(--ctg-text);
	margin: 0 0 0.75rem;
	line-height: 1.1;
}
.ct-grid__subtitle {
	color: var(--ctg-muted);
	font-size: 1rem;
	max-width: 560px;
	margin: 0 auto 1.5rem;
}

/* ---------- Tabs ---------- */
.ct-grid__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem;
	padding: 0;
	margin: 0 auto 1.25rem;
}
.ct-tab {
	display: inline-block;
	padding: 0.55rem 1.2rem;
	border-radius: 999px;
	text-decoration: none;
	color: var(--ctg-muted);
	font-weight: 600 !important;
	font-size: 0.9rem !important;
	line-height: 1.3;
	transition: all 0.2s ease;
	white-space: nowrap;
}
.ct-tab:hover {
	color: var(--ctg-text);
}
.ct-tab.is-active {
	background: var(--ctg-btn-bg);
	color: var(--ctg-btn-text);
	box-shadow: 0 2px 8px rgba(47,51,68,0.2);
}

/* ---------- Liste ---------- */
.ct-grid__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* ---------- Card / Row ---------- */
.ct-grid-row {
	display: grid;
	grid-template-columns: 96px 1fr minmax(140px, auto) auto;
	gap: 1.25rem;
	align-items: center;
	background: var(--ctg-row-bg);
	border: 1px solid var(--ctg-border);
	border-radius: var(--ctg-radius);
	padding: 0.9rem 1rem;
	text-decoration: none;
	color: inherit;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.ct-grid-row:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(237,106,89,0.22);
	background: var(--ctg-featured-bg);
	border-color: transparent;
}
.ct-grid-row:hover .ct-grid-row__badge {
	background: var(--ctg-featured-badge);
	color: #fff;
}

/* ---------- Datum-Badge ---------- */
.ct-grid-row__badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--ctg-badge-soft);
	color: var(--ctg-text);
	border-radius: 14px;
	min-width: 84px;
	min-height: 84px;
	padding: 0.5rem;
	font-weight: 800;
	line-height: 1;
}
.ct-grid-row__month {
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	margin: 0 0 0.35rem !important;
	text-transform: uppercase;
	opacity: 0.85;
	line-height: 1;
}
.ct-grid-row__day {
	font-size: 2.1rem !important;
	font-weight: 900 !important;
	line-height: 1;
}

/* ---------- Body ---------- */
.ct-grid-row__body {
	min-width: 0;
}
.ct-grid-row__title {
	font-size: 1.4rem !important;
	font-weight: 800 !important;
	margin: 0 !important;
	line-height: 1.15;
	color: var(--ctg-text);
}
.ct-grid-row__subtitle {
	font-size: 0.82rem !important;
	color: var(--ctg-muted);
	font-weight: 600 !important;
	margin: 0.15rem 0 0 !important;
	line-height: 1.3;
}
.ct-grid-row__time {
	font-size: 0.85rem !important;
	color: var(--ctg-muted);
	font-weight: 500 !important;
	margin: 0.35rem 0 0 !important;
	line-height: 1.3;
}
/* ---------- Location ---------- */
.ct-grid-row__loc {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--ctg-text);
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	line-height: 1.3;
}
.ct-grid-row__loc svg {
	color: var(--ctg-accent);
	flex-shrink: 0;
}

/* ---------- Button ---------- */
.ct-grid-row__btn {
	display: inline-block;
	background: var(--ctg-btn-bg);
	color: var(--ctg-btn-text);
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.15s ease;
}
.ct-grid-row:hover .ct-grid-row__btn {
	background: var(--ctg-accent);
}

/* ---------- Footer ---------- */
.ct-grid__footer {
	text-align: center;
	margin-top: 1.75rem;
}
.ct-grid__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--ctg-btn-bg);
	color: var(--ctg-btn-text);
	padding: 0.6rem 1.2rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}
.ct-grid__more-btn:hover {
	background: var(--ctg-accent);
	transform: translateY(-1px);
}

/* ---------- Empty ---------- */
.ct-grid__empty {
	text-align: center;
	padding: 2rem;
	color: var(--ctg-muted);
	background: #f5f6f8;
	border-radius: var(--ctg-radius);
}

/* ---------- Mobile ---------- */
@media ( max-width: 720px ) {
	.ct-grid-row {
		grid-template-columns: 72px 1fr;
		grid-template-rows: auto auto;
		gap: 0.75rem;
		padding: 0.75rem;
	}
	.ct-grid-row__badge {
		min-width: 72px;
		min-height: 72px;
	}
	.ct-grid-row__day {
		font-size: 1.7rem;
	}
	.ct-grid-row__title {
		font-size: 1.1rem;
	}
	.ct-grid-row__loc,
	.ct-grid-row__btn {
		grid-column: 1 / -1;
	}
	.ct-grid-row__loc {
		padding-top: 0.5rem;
		border-top: 1px solid rgba(0,0,0,0.05);
	}
	.ct-grid-row__btn {
		justify-self: start;
		margin-top: 0.25rem;
	}
}
