/* EsportHub Events – Standard-Design passend zu esennstal.at.
   Farben über die Variablen anpassen, z. B. in Elementor → Benutzerdefiniertes CSS:
   .ehe { --ehe-accent: #a4cc39; } */

.ehe {
	--ehe-accent: #a4cc39;
	--ehe-accent-strong: #3db54a;
	--ehe-surface: #161616;
	--ehe-surface-2: #1f1f1f;
	--ehe-border: #2c2c2c;
	--ehe-text: #ececec;
	--ehe-muted: #9b9b9b;
	--ehe-on-accent: #0b0b0b;
	--ehe-radius: 10px;
	color: var(--ehe-text);
	font-size: 15px;
	line-height: 1.5;
}
.ehe *, .ehe *::before, .ehe *::after { box-sizing: border-box; }

/* Typfarben */
.ehe-type-lan        { --ehe-type: #f5a623; }
.ehe-type-tournament { --ehe-type: #ff6b81; }
.ehe-type-league     { --ehe-type: #4aa8ff; }
.ehe-type-training   { --ehe-type: #a88bff; }
.ehe-type-meeting    { --ehe-type: #9b9b9b; }

/* Liste */
.ehe-list, .ehe-cal-list { display: flex; flex-direction: column; gap: 14px; }

.ehe-event {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 16px;
	background: var(--ehe-surface);
	border: 1px solid var(--ehe-border);
	border-left: 4px solid var(--ehe-type, var(--ehe-accent));
	border-radius: var(--ehe-radius);
}
.ehe-date {
	flex: 0 0 64px;
	text-align: center;
	background: var(--ehe-surface-2);
	border-radius: 8px;
	padding: 8px 4px;
}
.ehe-date-day { display: block; font-size: 26px; font-weight: 700; line-height: 1; color: var(--ehe-type, var(--ehe-accent)); }
.ehe-date-month { display: block; margin-top: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ehe-muted); }

.ehe-body { flex: 1; min-width: 0; }
.ehe-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 1px 8px;
	border-radius: 999px;
	border: 1px solid currentColor;
	color: var(--ehe-type, var(--ehe-accent));
}
.ehe .ehe-title { margin: 6px 0 4px; font-size: 18px; line-height: 1.3; color: var(--ehe-text); }
.ehe .ehe-title a { color: inherit; text-decoration: none; }
.ehe .ehe-title a:hover { color: var(--ehe-accent); }
.ehe .ehe-meta, .ehe .ehe-desc, .ehe .ehe-reg { margin: 0 0 6px; font-size: 14px; color: var(--ehe-muted); }
.ehe .ehe-desc { color: var(--ehe-text); opacity: .85; }
.ehe .ehe-reg.is-open { color: var(--ehe-accent); font-weight: 600; }
.ehe .ehe-reg.is-full { color: #f5a623; font-weight: 600; }

.ehe .ehe-btn {
	display: inline-block;
	margin-top: 6px;
	padding: 8px 14px;
	border-radius: 6px;
	background: var(--ehe-accent);
	color: var(--ehe-on-accent);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
	transition: background .15s ease;
}
.ehe .ehe-btn:hover, .ehe .ehe-btn:focus-visible { background: var(--ehe-accent-strong); color: var(--ehe-on-accent); }

.ehe-image { flex: 0 0 160px; }
.ehe-image img { display: block; width: 100%; height: auto; border-radius: 8px; }

.ehe .ehe-empty {
	margin: 0;
	padding: 16px;
	border: 1px dashed var(--ehe-border);
	border-radius: var(--ehe-radius);
	color: var(--ehe-muted);
}
.ehe .ehe-error {
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #b94a48;
	border-radius: var(--ehe-radius);
	background: rgba(185, 74, 72, .12);
	color: var(--ehe-text);
}
.ehe-admin-note { font-size: 12px; color: var(--ehe-muted); margin: 8px 0 0; }

/* Kalender */
.ehe-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ehe .ehe-cal-title { margin: 0; font-size: 22px; color: var(--ehe-text); }
.ehe-cal-nav { display: flex; gap: 6px; }
.ehe-cal-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--ehe-border);
	border-radius: 6px;
	background: var(--ehe-surface);
	color: var(--ehe-text);
	text-decoration: none;
	font-weight: 600;
}
.ehe-cal-nav a:hover { border-color: var(--ehe-accent); color: var(--ehe-accent); }

.ehe-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 1px;
	background: var(--ehe-border);
	border: 1px solid var(--ehe-border);
	border-radius: var(--ehe-radius);
	overflow: hidden;
}
.ehe-cal-wd {
	background: var(--ehe-surface-2);
	padding: 8px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ehe-muted);
}
.ehe-cal-day {
	background: var(--ehe-surface);
	min-height: 104px;
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.ehe-cal-day.is-outside { opacity: .4; }
.ehe-cal-num {
	align-self: flex-end;
	width: 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	color: var(--ehe-muted);
}
.ehe-cal-day.is-today .ehe-cal-num { background: var(--ehe-accent); color: var(--ehe-on-accent); }

.ehe .ehe-cal-event {
	display: block;
	padding: 3px 6px;
	border-radius: 4px;
	border-left: 3px solid var(--ehe-type, var(--ehe-accent));
	background: var(--ehe-surface-2);
	color: var(--ehe-text);
	font-size: 12px;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ehe a.ehe-cal-event:hover { color: var(--ehe-accent); }
.ehe-cal-event.is-continued { opacity: .75; }
.ehe-cal-time { font-weight: 700; color: var(--ehe-type, var(--ehe-accent)); }

.ehe-cal-list { display: none; margin-top: 4px; }

/* iCal */
.ehe-ics { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ehe .ehe-ics-raw { font-size: 13px; color: var(--ehe-muted); }

/* Handy */
@media (max-width: 760px) {
	.ehe-cal-grid { display: none; }
	.ehe-cal-list { display: flex; }
	.ehe-event { flex-wrap: wrap; }
	.ehe-image { flex-basis: 100%; order: -1; }
}
