/* Gemeinde Termine – Frontend (Listen-/Agenda-Ansicht)
   Modern, aufgeräumt, an EventON angelehnt. Nutzt eigene Variablen,
   damit es in Block-Themes (Astra/Spectra) neutral bleibt. */

.gt-wrap {
	--gt-radius: 14px;
	--gt-border: #e6e8ec;
	--gt-text: #1f2430;
	--gt-muted: #6b7280;
}

.gt-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 1.5rem;
}

/* ---- Filter-Leiste ---- */

.gt-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

.gt-filter__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	color: #374151;
	background: #fff;
	border: 1px solid #d7dae0;
	border-radius: 999px;
	padding: 6px 14px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gt-filter__btn:hover {
	border-color: #9aa1ab;
}

.gt-filter__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--gt-color, #2b6cb0);
}

.gt-filter__btn.is-active {
	color: #fff;
	background: var(--gt-color, #2b6cb0);
	border-color: var(--gt-color, #2b6cb0);
}

.gt-filter__btn.is-active .gt-filter__dot {
	background: #fff;
}

.gt-filter__btn--all.is-active {
	background: #374151;
	border-color: #374151;
}

.gt-event {
	display: flex;
	gap: 18px;
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--gt-border);
	border-left: 4px solid var(--gt-color, #2b6cb0);
	border-radius: var(--gt-radius);
	padding: 16px 18px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.gt-event:hover {
	box-shadow: 0 6px 18px rgba(16, 24, 40, 0.09);
	transform: translateY(-1px);
}

.gt-event__date {
	flex: 0 0 64px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: color-mix(in srgb, var(--gt-color, #2b6cb0) 10%, #fff);
	border-radius: 10px;
	padding: 8px 6px;
	line-height: 1.1;
}

.gt-event__day {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--gt-color, #2b6cb0);
}

.gt-event__month {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gt-muted);
}

.gt-event__body {
	flex: 1 1 auto;
	min-width: 0;
}

.gt-event__title {
	margin: 0 0 4px;
	font-size: 1.18rem;
	line-height: 1.3;
}

.gt-event__title a {
	color: var(--gt-text);
	text-decoration: none;
}

.gt-event__title a:hover {
	color: var(--gt-color, #2b6cb0);
}

.gt-event__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	color: var(--gt-muted);
	font-size: 0.92rem;
	margin-bottom: 6px;
}

.gt-event__location::before {
	content: "📍 ";
}

.gt-event__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.gt-tag {
	display: inline-block;
	color: #fff;
	font-size: 0.74rem;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 999px;
	line-height: 1.5;
}

.gt-event__excerpt {
	margin: 8px 0 0;
	color: var(--gt-text);
	font-size: 0.95rem;
}

.gt-empty {
	padding: 24px;
	text-align: center;
	color: var(--gt-muted);
	background: #f7f8fa;
	border-radius: var(--gt-radius);
}

/* ---- „Mehr anzeigen" ---- */

.gt-more-wrap {
	display: flex;
	justify-content: center;
	margin: 4px 0 1.5rem;
}

.gt-more {
	font: inherit;
	font-weight: 600;
	color: #374151;
	background: #fff;
	border: 1px solid #d7dae0;
	border-radius: 999px;
	padding: 9px 22px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Textfarbe explizit setzen: sonst greift beim Hover/Fokus die globale
   Button-Hover-Textfarbe des Themes (Astra) – oft hell auf hellem Grund. */
.gt-more:hover,
.gt-more:focus {
	color: #1f2430;
	border-color: #9aa1ab;
	background: #f7f8fa;
}

.gt-more:focus-visible {
	outline: 2px solid #9aa1ab;
	outline-offset: 2px;
}

.gt-more[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* ---- Einzelansicht eines Termins ---- */

.gt-single-wrap {
	max-width: 760px;
	margin: 40px auto;
	padding: 0 16px;
	--gt-border: #e6e8ec;
	--gt-text: #1f2430;
	--gt-muted: #6b7280;
}

.gt-single__head {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 22px;
}

.gt-single__date {
	flex: 0 0 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: color-mix(in srgb, var(--gt-color, #2b6cb0) 12%, #fff);
	border-radius: 12px;
	padding: 12px 8px;
	line-height: 1.1;
}

.gt-single__day {
	font-size: 2.1rem;
	font-weight: 700;
	color: var(--gt-color, #2b6cb0);
}

.gt-single__month {
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gt-muted);
}

.gt-single__title {
	margin: 0 0 8px;
	line-height: 1.2;
}

.gt-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	color: var(--gt-muted);
	font-size: 1rem;
	margin-bottom: 8px;
}

.gt-single__location::before {
	content: "📍 ";
}

.gt-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gt-single__image {
	margin: 0 0 22px;
}

.gt-single__image img {
	max-width: 100%;
	height: auto;
	border-radius: var(--gt-radius, 14px);
}

.gt-single__content {
	color: var(--gt-text);
	line-height: 1.65;
}

.gt-single__back {
	margin-top: 28px;
}

@media (max-width: 480px) {
	.gt-event {
		gap: 12px;
		padding: 12px 14px;
	}
	.gt-event__date {
		flex-basis: 52px;
	}
	.gt-event__day {
		font-size: 1.3rem;
	}
	.gt-single__head {
		gap: 14px;
	}
	.gt-single__date {
		flex-basis: 64px;
	}
}

/* ===================================================================
   Phase 4: Ansichts-Umschalter, Kachel-, Wochen- und Monatsansicht
   =================================================================== */

/* ---- Umschalter-Toolbar ---- */

.gt-switch {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 18px;
	padding: 4px;
	background: #f1f3f5;
	border: 1px solid var(--gt-border, #e6e8ec);
	border-radius: 999px;
}

.gt-switch__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	color: #4b5563;
	background: transparent;
	border: 0;
	border-radius: 999px;
	padding: 7px 16px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.gt-switch__btn:hover {
	color: #1f2430;
}

.gt-switch__btn.is-active {
	color: #1f2430;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12);
}

.gt-switch__ico {
	width: 15px;
	height: 15px;
	display: inline-block;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	opacity: 0.85;
}

/* Schlichte Inline-SVG-Icons je Ansicht (als CSS-Mask). */
.gt-switch__ico--list {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.gt-switch__ico--grid {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5' fill='%23000'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5' fill='%23000'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5' fill='%23000'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5' fill='%23000'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5' fill='%23000'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5' fill='%23000'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5' fill='%23000'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5' fill='%23000'/%3E%3C/svg%3E");
}

.gt-switch__ico--week {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='4' height='15' rx='1' fill='%23000'/%3E%3Crect x='10' y='5' width='4' height='15' rx='1' fill='%23000'/%3E%3Crect x='17' y='5' width='4' height='15' rx='1' fill='%23000'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='4' height='15' rx='1' fill='%23000'/%3E%3Crect x='10' y='5' width='4' height='15' rx='1' fill='%23000'/%3E%3Crect x='17' y='5' width='4' height='15' rx='1' fill='%23000'/%3E%3C/svg%3E");
}

.gt-switch__ico--month {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='17' rx='2' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M3 9h18M8 2v4M16 2v4' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='17' rx='2' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M3 9h18M8 2v4M16 2v4' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---- Viewport-Ladezustand ---- */

.gt-viewport {
	position: relative;
	transition: opacity 0.15s ease;
}

.gt-viewport.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

/* ---- Kachel-/Grid-Ansicht ---- */

.gt-list--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.gt-list--grid .gt-event {
	flex-direction: column;
	gap: 12px;
}

.gt-list--grid .gt-event__date {
	flex-direction: row;
	gap: 8px;
	align-self: flex-start;
	flex-basis: auto;
	padding: 6px 12px;
}

.gt-list--grid .gt-event__day {
	font-size: 1.25rem;
}

/* ---- Navigationsleiste (Woche/Monat) ---- */

.gt-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	flex-wrap: wrap;
}

.gt-nav__btn {
	font: inherit;
	font-weight: 600;
	color: #374151;
	background: #fff;
	border: 1px solid #d7dae0;
	border-radius: 8px;
	padding: 6px 12px;
	min-width: 38px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.gt-nav__btn:hover {
	border-color: #9aa1ab;
	background: #f7f8fa;
}

.gt-nav__label {
	margin-left: 6px;
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--gt-text, #1f2430);
	text-transform: capitalize;
}

/* ---- Wochenansicht ---- */

.gt-week__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}

.gt-week__col {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--gt-border, #e6e8ec);
	border-radius: 10px;
	overflow: hidden;
	min-height: 120px;
}

.gt-week__col.is-today {
	border-color: #2b6cb0;
	box-shadow: 0 0 0 1px #2b6cb0 inset;
}

.gt-week__dayhead {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 7px 4px;
	background: #f7f8fa;
	border-bottom: 1px solid var(--gt-border, #e6e8ec);
	line-height: 1.1;
}

.gt-week__col.is-today .gt-week__dayhead {
	background: color-mix(in srgb, #2b6cb0 12%, #fff);
}

.gt-week__wd {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--gt-muted, #6b7280);
}

.gt-week__date {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--gt-text, #1f2430);
}

.gt-week__events {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 7px;
}

.gt-day-event {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 6px 8px;
	border-left: 3px solid var(--gt-color, #2b6cb0);
	border-radius: 6px;
	background: color-mix(in srgb, var(--gt-color, #2b6cb0) 9%, #fff);
	text-decoration: none;
	line-height: 1.25;
	transition: background 0.15s ease;
}

.gt-day-event:hover {
	background: color-mix(in srgb, var(--gt-color, #2b6cb0) 18%, #fff);
}

.gt-day-event__time {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--gt-color, #2b6cb0);
}

.gt-day-event__title {
	font-size: 0.82rem;
	color: var(--gt-text, #1f2430);
}

.gt-week__empty {
	color: #c4c9d1;
	font-size: 0.9rem;
	text-align: center;
	padding: 4px 0;
}

/* ---- Monatsansicht ---- */

.gt-month__grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.gt-month__grid th {
	padding: 6px 4px;
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--gt-muted, #6b7280);
	text-align: left;
}

.gt-month__cell {
	vertical-align: top;
	height: 96px;
	width: 14.28%;
	padding: 4px;
	border: 1px solid var(--gt-border, #e6e8ec);
	background: #fff;
}

.gt-month__cell--empty {
	background: #fafbfc;
}

.gt-month__cell.is-today {
	background: color-mix(in srgb, #2b6cb0 7%, #fff);
}

.gt-month__daynum {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--gt-muted, #6b7280);
	margin-bottom: 3px;
}

.gt-month__cell.is-today .gt-month__daynum {
	color: #fff;
	background: #2b6cb0;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
}

.gt-month__events {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gt-month__event {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 2px 4px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.76rem;
	line-height: 1.3;
	color: var(--gt-text, #1f2430);
	overflow: hidden;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.gt-month__event:hover {
	background: color-mix(in srgb, var(--gt-color, #2b6cb0) 14%, #fff);
}

.gt-month__dot {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gt-color, #2b6cb0);
}

.gt-month__etime {
	font-weight: 700;
	color: var(--gt-color, #2b6cb0);
}

.gt-month__etitle {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- Responsiv ---- */

@media (max-width: 640px) {
	.gt-week__grid {
		grid-template-columns: 1fr;
	}
	.gt-week__col {
		min-height: 0;
		flex-direction: row;
		align-items: stretch;
	}
	.gt-week__dayhead {
		flex: 0 0 64px;
		flex-direction: row;
		gap: 6px;
		justify-content: center;
		border-bottom: 0;
		border-right: 1px solid var(--gt-border, #e6e8ec);
	}
	.gt-week__events {
		flex: 1 1 auto;
	}
	.gt-month__cell {
		height: 70px;
	}
	.gt-month__etime {
		display: none;
	}
	.gt-month__etitle {
		display: none;
	}
	.gt-month__events {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 3px;
	}
}

/* ==========================================================================
   Klick-Verhalten: Lightbox/Popup + Akkordeon + Detailansicht (ab v0.9.0)
   ========================================================================== */

/* Mauszeiger je nach Klick-Verhalten. */
.gt-wrap[data-onclick="lightbox"] [data-event-id],
.gt-wrap[data-onclick="accordion"] [data-event-id] {
	cursor: pointer;
}
.gt-wrap[data-onclick="none"] [data-event-id] {
	cursor: default;
}

/* Lade-Spinner (Lightbox + Akkordeon). */
.gt-spin {
	display: block;
	width: 28px;
	height: 28px;
	margin: 24px auto;
	border: 3px solid rgba( 0, 0, 0, 0.12 );
	border-top-color: var( --gt-color, #2b6cb0 );
	border-radius: 50%;
	animation: gt-spin 0.7s linear infinite;
}
@keyframes gt-spin {
	to { transform: rotate( 360deg ); }
}

.gt-detail-err {
	padding: 16px;
	color: #b91c1c;
	text-align: center;
}

/* ---- Lightbox / Modal ---- */
body.gt-modal-open {
	overflow: hidden;
}
.gt-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 16px;
	background: rgba( 15, 23, 42, 0.6 );
	opacity: 0;
	transition: opacity 0.2s ease;
	overflow-y: auto;
}
.gt-modal.is-open {
	opacity: 1;
}
.gt-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 640px;
	margin: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.35 );
	transform: translateY( 12px );
	transition: transform 0.2s ease;
}
.gt-modal.is-open .gt-modal__dialog {
	transform: translateY( 0 );
}
.gt-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	line-height: 1;
	color: #475569;
	background: rgba( 255, 255, 255, 0.85 );
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 2;
}
.gt-modal__close:hover {
	background: #e2e8f0;
	color: #0f172a;
}
.gt-modal__body {
	padding: 28px;
}

/* ---- Akkordeon-Panel ---- */
.gt-acc {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}
.gt-list--grid .gt-acc {
	grid-column: 1 / -1;
}
.gt-acc.is-open {
	max-height: 1600px;
}
.gt-acc__inner {
	margin: 4px 0 12px;
	padding: 8px 18px 18px;
	background: #f8fafc;
	border-left: 4px solid var( --gt-color, #2b6cb0 );
	border-radius: 8px;
}
.gt-event.is-expanded,
.gt-tile.is-expanded {
	box-shadow: 0 0 0 2px var( --gt-color, #2b6cb0 );
}

/* ---- Gemeinsames Detail-Layout (Lightbox + Akkordeon) ---- */
.gt-details__title {
	margin: 0 0 10px;
	font-size: 1.35rem;
	line-height: 1.25;
	color: #0f172a;
}
.gt-details__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 12px;
	font-size: 0.95rem;
	color: #475569;
}
.gt-details__date {
	font-weight: 600;
	color: var( --gt-color, #2b6cb0 );
}
.gt-details__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}
.gt-details__image {
	margin: 0 0 16px;
}
.gt-details__image img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}
.gt-details__content {
	color: #1e293b;
	line-height: 1.6;
}
.gt-details__content > *:first-child {
	margin-top: 0;
}
.gt-details__more {
	margin: 18px 0 0;
}
.gt-details__more a {
	display: inline-block;
	font-weight: 600;
	color: var( --gt-color, #2b6cb0 );
	text-decoration: none;
}
.gt-details__more a:hover {
	text-decoration: underline;
}

@media ( max-width: 640px ) {
	.gt-modal__body {
		padding: 22px 18px;
	}
	.gt-details__title {
		font-size: 1.2rem;
	}
}

/* ===================================================================
   Phase 5: Darstellungsstile für Liste (card/bar) und Kacheln
   (image/minimal/below/box) – mit Beitragsbildern und Icons
   =================================================================== */

/* ---- Geteilte Bausteine: Icons, Meta-Zeile, Datum-Badge ---- */

.gt-ico {
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	vertical-align: -0.14em;
}

.gt-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
}

.gt-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

.gt-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	padding: 5px 9px;
	color: #fff;
	background: rgba(17, 24, 39, 0.62);
	border-radius: 9px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.gt-badge__day {
	font-size: 1.05rem;
	font-weight: 800;
}

.gt-badge__mon {
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ---- Listenstil "card": Beitragsbild links ---- */

.gt-event--card {
	padding: 0;
	gap: 0;
	overflow: hidden;
	border-left: 1px solid var(--gt-border);
	align-items: stretch;
}

.gt-event--card:not(.has-img) {
	gap: 18px;
	padding: 16px 18px;
	border-left: 4px solid var(--gt-color, #2b6cb0);
}

.gt-event--card .gt-event__media {
	position: relative;
	flex: 0 0 168px;
	min-height: 132px;
	display: block;
}

.gt-event--card .gt-event__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gt-event--card .gt-event__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 18px;
}

.gt-event--card .gt-event__meta {
	margin-bottom: 6px;
}

/* ---- Listenstil "bar": farbiger Vollbreite-Balken ---- */

.gt-event--bar {
	position: relative;
	align-items: stretch;
	gap: 0;
	padding: 0;
	border: 0;
	border-radius: var(--gt-radius, 14px);
	overflow: hidden;
	background: var(--gt-color, #2b6cb0);
	color: #fff;
	box-shadow: 0 2px 6px rgba(16, 24, 40, 0.12);
}

.gt-event--bar:hover {
	transform: translateY(-1px);
	filter: brightness(1.04);
	box-shadow: 0 8px 20px rgba(16, 24, 40, 0.18);
}

.gt-bar__media {
	flex: 0 0 158px;
	align-self: stretch;
	min-height: 108px;
	background-size: cover;
	background-position: center;
}

.gt-bar__date {
	flex: 0 0 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1;
	padding: 0 6px;
}

.gt-bar__day {
	font-size: 1.7rem;
	font-weight: 800;
}

.gt-bar__mon {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.9;
}

.gt-bar__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.gt-bar__title {
	margin: 0 0 6px;
	font-size: 1.16rem;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.gt-bar__title a {
	color: #fff;
	text-decoration: none;
}

.gt-event--bar .gt-meta {
	color: rgba(255, 255, 255, 0.94);
	font-size: 0.9rem;
}

/* ---- Kacheln (Grid): gemeinsame Basis ---- */

.gt-tile {
	position: relative;
	display: block;
	min-height: 218px;
	border-radius: var(--gt-radius, 14px);
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	background-color: var(--gt-color, #2b6cb0);
	background-size: cover;
	background-position: center;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gt-tile:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

.gt-tile__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.05) 100%);
}

.gt-tile--nobg .gt-tile__shade {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0));
}

.gt-tile__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 14px 16px;
}

.gt-tile__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.22;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.gt-tile__meta {
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.94);
	font-size: 0.84rem;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ---- Kachelstil "box": dunkle Info-Box ---- */

.gt-tile--box .gt-tile__box {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 12px 14px;
	background: rgba(17, 24, 39, 0.62);
	border-radius: 10px;
}

.gt-tile--box .gt-tile__title {
	font-size: 1.04rem;
}

/* ---- Kachelstil "below": Bild oben, Farbblock unten ---- */

.gt-tile--below {
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: none;
	color: inherit;
}

.gt-tile--below .gt-tile__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	background-color: #e6e8ec;
}

.gt-tile--below.gt-tile--nobg .gt-tile__img {
	background-color: var(--gt-color, #2b6cb0);
}

.gt-tile--below .gt-tile__info {
	position: relative;
	flex: 1 1 auto;
	padding: 14px 16px;
	background: var(--gt-color, #2b6cb0);
	color: #fff;
}

.gt-tile--below .gt-tile__info .gt-badge {
	position: static;
	flex-direction: row;
	gap: 4px;
	align-items: baseline;
	margin-bottom: 8px;
	background: rgba(255, 255, 255, 0.18);
}

.gt-tile--below .gt-tile__title {
	text-shadow: none;
}

.gt-tile--below .gt-tile__meta {
	text-shadow: none;
	color: rgba(255, 255, 255, 0.95);
}

/* ---- Responsiv ---- */

@media (max-width: 480px) {
	.gt-event--card .gt-event__media {
		flex-basis: 120px;
		min-height: 110px;
	}
	.gt-bar__media {
		flex-basis: 96px;
		min-height: 92px;
	}
	.gt-bar__date {
		flex-basis: 56px;
	}
	.gt-bar__day {
		font-size: 1.35rem;
	}
}

/* Lightbox: Fokus-Rahmen für den Dialog selbst (Tastaturführung) */
.gt-modal__dialog:focus {
	outline: none;
}

.gt-modal__dialog:focus-visible {
	outline: 2px solid var(--gt-color, #2b6cb0);
	outline-offset: 2px;
}

/* Passwortgeschützte Termine in Lightbox/Akkordeon */
.gt-details__protected {
	margin: 12px 0 0;
	font-style: italic;
	opacity: 0.85;
}

/*
 * Priorisierte Termine tragen die Klasse .is-priority (Liste, Kacheln).
 * Bewusst ohne eigene Optik – bei Bedarf im Theme gestalten, z. B.:
 * .gt-event.is-priority { box-shadow: inset 4px 0 0 var(--gt-color); }
 */
