/* TOHO Eventverwaltung – Frontend (bewusst dezent & theme-neutral) */

.toho-events-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin: 24px 0;
}

.toho-event-card {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.toho-event-card__media img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.toho-event-card__body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.toho-event-card__date {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #b45309;
	margin: 0;
	text-transform: uppercase;
}

.toho-event-card__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
}

.toho-event-card__title a { text-decoration: none; }

.toho-event-card__excerpt { margin: 0; color: #444; font-size: 15px; }

.toho-event-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 8px;
}

.toho-event-card__price { font-weight: 600; }

.toho-badge {
	display: inline-block;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #ecfdf5;
	color: #047857;
}

.toho-badge--full { background: #fef2f2; color: #b91c1c; }

.toho-btn {
	display: inline-block;
	margin-top: auto;
	padding: 10px 16px;
	border-radius: 8px;
	background: #b45309;
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	text-align: center;
}

.toho-btn:hover { filter: brightness(0.95); }

/* Detail-Block */
.toho-event-details {
	margin: 32px 0;
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	background: #fafafa;
}

.toho-event-details__title { margin: 0 0 16px; font-size: 20px; }

.toho-event-details__grid {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 24px;
	margin: 0;
}

.toho-event-details__grid dt { font-weight: 600; color: #333; }
.toho-event-details__grid dd { margin: 0; }

.toho-anmeldung { margin-top: 24px; }

.toho-note {
	margin: 0;
	padding: 12px 16px;
	border-radius: 8px;
	background: #eef2ff;
	color: #3730a3;
}

.toho-note--warn { background: #fef2f2; color: #b91c1c; }

.toho-empty { color: #666; font-style: italic; }

.toho-note--ok { background: #ecfdf5; color: #047857; }

/* Anmeldeformular */
.toho-form { margin-top: 16px; }

.toho-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 20px;
}

.toho-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 6px; }
.toho-field--wide { grid-column: 1 / -1; }

.toho-field label { font-weight: 600; font-size: 14px; }

.toho-field input[type=text],
.toho-field input[type=email],
.toho-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	font: inherit;
}

.toho-field--consent { flex-direction: row; align-items: flex-start; gap: 8px; margin-top: 10px; }
.toho-field--consent label { font-weight: 400; font-size: 14px; }

.toho-fieldset {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	padding: 8px 18px 16px;
	margin: 16px 0;
}
.toho-fieldset legend { font-weight: 600; padding: 0 6px; }

.toho-field-error { color: #b91c1c; font-size: 13px; }

/* Honeypot: für Menschen unsichtbar */
.toho-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.toho-form button.toho-btn { border: 0; cursor: pointer; font: inherit; }

@media (max-width: 560px) {
	.toho-form__grid { grid-template-columns: 1fr; }
}

/* Material & Downloads */
.toho-material { margin: 24px 0; }
.toho-material h2 { margin: 0 0 12px; font-size: 20px; }
.toho-material h3 { margin: 18px 0 8px; font-size: 16px; }
.toho-material__list { list-style: none; margin: 0; padding: 0; }
.toho-material__list li { margin: 0 0 6px; }
.toho-material__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	text-decoration: none;
	background: #fff;
}
.toho-material__link::before { content: "\2193"; font-weight: 700; }
.toho-material__link:hover { background: #f5f5f5; }

/* Feedback */
.toho-feedback { margin: 24px 0; }
.toho-feedback h2 { margin: 0 0 12px; font-size: 20px; }
.toho-rating { display: inline-flex; gap: 14px; }
.toho-rating label { font-weight: 400; }

@media (max-width: 480px) {
	.toho-event-details__grid { grid-template-columns: 1fr; gap: 2px 0; }
	.toho-event-details__grid dd { margin-bottom: 10px; }
}
