/* HC Events – Frontend-Styles (spreer.net-Stil). Alle Klassen hce- prefixed. */

.hce-event-list,
.hce-featured-list,
.hce-single-event,
.hce-load-more-wrap {
	--hce-teal: #2C5F5A;
	--hce-peach: #E8A87C;
	--hce-sand: #F0EDE6;
	--hce-text: #2a2a2a;
	--hce-text-secondary: #6b6b6b;
	--hce-border: #e0ddd6;
	--hce-bg-card: #ffffff;
	--hce-radius: 8px;
	--hce-font-heading: 'Cormorant Garamond', Georgia, serif;
	--hce-font-body: 'Nunito Sans', 'Helvetica Neue', sans-serif;
}

/* ===== Liste ===== */
.hce-event-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	max-width: 820px;
	margin: 1.5rem auto 0;
}
.hce-event-list.hce-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}
.hce-month-heading {
	grid-column: 1 / -1;
	font-family: var(--hce-font-heading);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--hce-teal);
	margin: 2rem 0 0.5rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--hce-border);
}
.hce-month-heading:first-child {
	margin-top: 0;
}

/* Pagination: versteckte Gruppen + "Mehr laden"-Button */
.hce-events-group {
	display: none;
}
.hce-events-group.hce-visible {
	display: contents; /* Kinder bleiben Teil des Eltern-Grids */
}
.hce-load-more-wrap {
	text-align: center;
	margin-top: 2rem;
}
.hce-load-more {
	display: inline-block;
	padding: 12px 32px;
	background: var(--hce-teal);
	color: #fff;
	font-family: var(--hce-font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	border: none;
	border-radius: var(--hce-radius);
	cursor: pointer;
	transition: background .2s;
}
.hce-load-more:hover {
	background: var(--hce-peach);
	color: #fff;
}

/* ===== Kachel ===== */
.hce-event-card {
	border: 1px solid var(--hce-border);
	border-radius: var(--hce-radius);
	background: var(--hce-bg-card);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	font-family: var(--hce-font-body);
	color: var(--hce-text);
}

/* Oberer Bereich: Bild + Meta nebeneinander */
.hce-card-upper {
	display: flex;
	gap: 1.5rem;
	padding: 1.5rem;
}
.hce-card-image {
	flex: 0 0 38%;
	max-width: 38%;
	display: flex;
	align-items: flex-start;
	align-self: flex-start; /* nicht auf die Höhe des Meta-Blocks strecken */
	background: var(--hce-sand);
	border-radius: 6px;
	overflow: hidden;
}
.hce-card-image img {
	width: 100%;
	height: auto;          /* Bild NICHT zuschneiden */
	object-fit: contain;
	display: block;
}
.hce-card-meta-col {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.hce-event-card .hce-card-title {
	font-family: var(--hce-font-heading);
	font-size: 1.55rem;
	line-height: 1.2;
	font-weight: 600;
	color: var(--hce-text);
	margin: 0 0 1.6rem;
}
.hce-card-title a { color: inherit; text-decoration: none; }
.hce-card-title a:hover { color: var(--hce-teal); }

.hce-card-meta {
	display: flex;
	flex-direction: column;
	gap: .3rem;
}
.hce-card-meta-item {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	font-size: .95rem;
	color: var(--hce-text-secondary);
	line-height: 1.4;
}
.hce-meta-icon { flex: 0 0 auto; font-size: .95rem; }

/* Kategorie als farbiger Text mit Häkchen (kein Pill) */
.hce-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem .6rem;
	margin-top: .5rem;
}
.hce-card-tag {
	display: inline-flex;
	align-items: center;
	font-size: .9rem;
	font-weight: 600;
	color: var(--hce-teal);
}
.hce-card-tag::before {
	content: "\2713"; /* ✓ */
	margin-right: .35rem;
	font-weight: 700;
}

/* Unterer Bereich: Beschreibung + zentrierter Button, mit Trennlinie */
.hce-card-lower {
	border-top: 1px solid var(--hce-border);
	padding: 1.2rem 1.5rem 1.5rem;
	text-align: center;
}
.hce-card-excerpt {
	font-size: .95rem;
	line-height: 1.6;
	color: var(--hce-text-secondary);
	text-align: left;
	margin: 0 0 1.1rem;
}

/* ===== Button ===== */
.hce-card-btn {
	display: inline-block;
	margin-top: 0.8rem;
	padding: 12px 28px;
	background: var(--hce-teal);
	color: #fff;
	font-family: var(--hce-font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	text-decoration: none;
	border-radius: var(--hce-radius);
	transition: background .2s;
}
.hce-card-btn:hover { background: var(--hce-peach); color: #fff; }

/* ===== Featured ===== */
/* .hce-featured-section: neutraler Wrapper — Hintergrund kommt jetzt vom Theme (.section-warm) */
.hce-featured-list {
	display: flex;
	gap: 2rem;
	max-width: 1100px;
	margin: 1.5rem auto 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.5rem; /* Platz für Scrollbar, falls sichtbar */
}
.hce-featured-list::-webkit-scrollbar { display: none; }
.hce-featured-list { scrollbar-width: none; }
.hce-featured-card {
	display: flex;
	flex-direction: column;
	flex: 0 0 calc((100% - 4rem) / 3);
	min-width: 280px;
	scroll-snap-align: start;
	background: var(--hce-bg-card);
	border: 1px solid var(--hce-border);
	border-radius: var(--hce-radius);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	font-family: var(--hce-font-body);
	color: var(--hce-text);
}
.hce-featured-image {
	position: relative;
	overflow: hidden;
	background: var(--hce-sand);
	display: block;
}
.hce-featured-image img {
	width: 100%;
	height: auto;          /* kein aspect-ratio, kein Crop */
	display: block;
}
.hce-featured-category {
	position: absolute;
	top: 12px; left: 12px;
	background: rgba(44, 95, 90, .92);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: .25rem .7rem;
	border-radius: 999px;
}
.hce-featured-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1;
}
.hce-featured-card .hce-featured-title {
	font-family: var(--hce-font-heading);
	font-size: 1.9rem;
	line-height: 1.15;
	font-weight: 600;
	color: var(--hce-text);
	margin: 0 0 .7rem;
}
.hce-featured-title a { color: inherit; text-decoration: none; }
.hce-featured-title a:hover { color: var(--hce-teal); }
/* Button unten bündig + horizontal zentriert (gleiche Höhe trotz unterschiedlicher Textmenge) */
.hce-featured-content .hce-card-btn {
	margin-top: auto;
	align-self: center;
}
/* Mindestabstand zwischen dem Element vor dem Button und dem Button selbst */
.hce-featured-content > *:nth-last-child(2) {
	margin-bottom: 1.2rem;
}

/* Carousel Dots */
.hce-featured-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 1.2rem 0 0;
}
.hce-featured-dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.2);
	transition: background 0.3s ease;
	cursor: pointer;
}
.hce-featured-dots span.active {
	background: rgba(0, 0, 0, 0.55);
}

/* Dots nur zeigen wenn nötig (mehr Karten als sichtbar) */
.hce-featured-dots:empty { display: none; }

.hce-empty {
	font-family: var(--hce-font-body);
	color: var(--hce-text-secondary);
	text-align: center;
	padding: 2rem 0;
}

/* ===== Einzel-Event-Detailseite ===== */
.hce-single-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
}
.hce-single-image img {
	width: 100%;
	height: auto;
	border-radius: var(--hce-radius);
	display: block;
}
.hce-single-meta {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	font-family: var(--hce-font-body);
}
.hce-single-meta .hce-meta-item {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	font-size: 1.05rem;
	color: var(--hce-text-secondary);
}
.hce-single-description {
	margin-top: 2.5rem;
}
.hce-signup-section {
	margin-top: 3rem;
	text-align: center;
}
.hce-signup-embed { margin-top: 1.5rem; }

/* ===== Social Sharing ===== */
.hce-share {
	display: flex;
	align-items: center;
	gap: 10px;
	border-top: 1px solid var(--hce-border);
	margin-top: 1.2rem;
	padding-top: 1rem;
}
.hce-share-label {
	font-family: var(--hce-font-body);
	font-size: 0.8rem;
	color: #767676;
	letter-spacing: 0.5px;
	margin-right: 4px;
}
.hce-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid var(--hce-teal);
	background: transparent;
	color: var(--hce-teal);
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.hce-share-btn:hover {
	background: var(--hce-teal);
	color: #fff;
}
.hce-share-btn svg {
	width: 17px;
	height: 17px;
	display: block;
}
.hce-icon-link,
.hce-icon-check {
	display: inline-flex;
}
.hce-share-copy .hce-icon-check {
	display: none;
}
.hce-share-copy.hce-copied {
	position: relative;
	background: #2e9e5b;
	border-color: #2e9e5b;
	color: #fff;
}
.hce-share-copy.hce-copied .hce-icon-link {
	display: none;
}
.hce-share-copy.hce-copied .hce-icon-check {
	display: inline-flex;
}
.hce-share-copy.hce-copied::after {
	content: attr(data-label-copy);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: #2e9e5b;
	color: #fff;
	font-family: var(--hce-font-body);
	font-size: 0.7rem;
	padding: 2px 8px;
	border-radius: 4px;
	white-space: nowrap;
	pointer-events: none;
}

/* Einzelseite: gesamter Content in einem Kachel-Container (wie die Listen-Kacheln) */
.hce-single-wrap {
	max-width: 820px;
	margin: 2rem auto;
	background: var(--hce-bg-card);
	border: 1px solid var(--hce-border);
	border-radius: var(--hce-radius);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 2rem;
	overflow: hidden;
}

/* ===== Signup-Modal ===== */
.hce-modal-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.6);
	display: none; /* per JS auf flex */
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto; /* Overlay scrollt, nicht das Modal */
	padding: 3rem 1.5rem;
}
.hce-modal-container {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 780px;
	overflow: visible;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	animation: hce-modal-in 0.25s ease-out;
}
.hce-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.2rem 1.5rem;
	border-bottom: 1px solid var(--hce-border);
}
.hce-modal-header h3 {
	font-family: var(--hce-font-heading);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--hce-text);
	margin: 0;
}
.hce-modal-close {
	background: none;
	border: none;
	font-size: 1.8rem;
	color: var(--hce-text-secondary);
	cursor: pointer;
	line-height: 1;
	padding: 0 0.3rem;
}
.hce-modal-close:hover { color: var(--hce-text); }
.hce-modal-body {
	padding: 1rem 1.5rem 1.5rem;
	overflow: visible;
}
.hce-modal-body iframe {
	width: 100%;
	display: block;
}
@keyframes hce-modal-in {
	from { opacity: 0; transform: translateY(-20px); }
	to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
	.hce-modal-container {
		max-width: 100%;
		margin: 0.5rem;
		border-radius: 8px;
	}
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
	.hce-event-list.hce-cols-2 { grid-template-columns: 1fr; }
	.hce-featured-list { scroll-snap-type: x mandatory; }
	.hce-featured-card { flex: 0 0 85vw; }

	.hce-card-upper { flex-direction: column; gap: 1rem; }
	.hce-card-image {
		flex-basis: auto;
		max-width: 100%;
	}

	.hce-single-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
