/* Öffentliches Antwortformular des Einladungs- & Zusagen-Managers. */

.ezm-antwort {
	--ezm-rot: #b3001b;
	--ezm-rot-dunkel: #8a0015;
	--ezm-gruen: #1c7c3f;
	--ezm-rand: #e2e2e6;
	--ezm-grau: #f7f7f9;
	--ezm-text-leise: #5c5c66;

	max-width: 720px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.6;
}

.ezm-antwort *,
.ezm-antwort *::before,
.ezm-antwort *::after {
	box-sizing: inherit;
}

/* Kopfbereich */

.ezm-kopf {
	padding-block: 8px 24px;
	border-bottom: 1px solid var(--ezm-rand);
	margin-bottom: 24px;
}

.ezm-kicker {
	margin: 0 0 4px;
	font-size: 0.85em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ezm-rot);
	font-weight: 700;
}

.ezm-titel {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.2;
}

.ezm-meta {
	margin: 0;
	color: var(--ezm-text-leise);
}

.ezm-beschreibung {
	margin-top: 16px;
}

.ezm-beschreibung > p:last-child {
	margin-bottom: 0;
}

.ezm-frist {
	margin: 0 0 20px;
	font-weight: 600;
}

/* Hinweisboxen */

.ezm-box {
	padding: 16px 20px;
	border-radius: 8px;
	border: 1px solid var(--ezm-rand);
	background: var(--ezm-grau);
	margin-bottom: 20px;
}

.ezm-box > p:last-child {
	margin-bottom: 0;
}

.ezm-box-titel {
	margin: 0 0 6px;
	font-weight: 700;
	font-size: 1.05em;
}

.ezm-box--zusage {
	border-color: rgba(28, 124, 63, 0.35);
	background: rgba(28, 124, 63, 0.08);
}

.ezm-box--zusage .ezm-box-titel {
	color: var(--ezm-gruen);
}

.ezm-box--absage,
.ezm-box--info {
	border-color: var(--ezm-rand);
}

.ezm-box--fehler {
	border-color: rgba(179, 0, 27, 0.4);
	background: rgba(179, 0, 27, 0.07);
	color: var(--ezm-rot-dunkel);
}

.ezm-aendern a {
	color: var(--ezm-rot);
}

/* Formular */

.ezm-formular {
	display: block;
}

.ezm-teilnahme {
	border: 1px solid var(--ezm-rand);
	border-radius: 8px;
	padding: 16px 20px 20px;
	margin: 0 0 24px;
}

.ezm-teilnahme legend {
	padding: 0 6px;
	font-weight: 700;
}

.ezm-wahl {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 2px solid var(--ezm-rand);
	border-radius: 8px;
	cursor: pointer;
	margin-top: 10px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ezm-wahl input {
	margin: 0;
	flex: none;
	width: 20px;
	height: 20px;
	accent-color: var(--ezm-rot);
}

.ezm-wahl span {
	font-weight: 600;
}

.ezm-wahl:hover {
	border-color: #c9c9d0;
}

/* Ausgewählter Zustand gewinnt über :hover, daher hier nachgestellt. */
.ezm-wahl--ja:has(input:checked) {
	border-color: var(--ezm-gruen);
	background: rgba(28, 124, 63, 0.08);
}

.ezm-wahl--nein:has(input:checked) {
	border-color: var(--ezm-rot);
	background: rgba(179, 0, 27, 0.06);
}

.ezm-wahl:focus-within {
	outline: 2px solid var(--ezm-rot);
	outline-offset: 2px;
}

.ezm-gruppe {
	border-left: 3px solid rgba(28, 124, 63, 0.35);
	padding-left: 16px;
	margin-bottom: 8px;
}

.ezm-feld {
	margin-bottom: 18px;
}

.ezm-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.ezm-pflicht {
	color: var(--ezm-rot);
}

.ezm-antwort input[type="text"],
.ezm-antwort input[type="email"],
.ezm-antwort input[type="tel"],
.ezm-antwort input[type="number"],
.ezm-antwort input[type="date"],
.ezm-antwort input[type="time"],
.ezm-antwort select,
.ezm-antwort textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid #bfbfc7;
	border-radius: 6px;
	font: inherit;
	background: #fff;
	color: inherit;
}

.ezm-antwort input:focus,
.ezm-antwort select:focus,
.ezm-antwort textarea:focus {
	outline: 2px solid var(--ezm-rot);
	outline-offset: 1px;
	border-color: var(--ezm-rot);
}

.ezm-feld--zahl input,
.ezm-feld--personenzahl input,
.ezm-feld--datum input,
.ezm-feld--uhrzeit input {
	max-width: 220px;
}

.ezm-optionen {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ezm-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.ezm-option input {
	margin: 3px 0 0;
	width: 18px;
	height: 18px;
	flex: none;
	accent-color: var(--ezm-rot);
}

.ezm-hinweis {
	margin: 6px 0 0;
	font-size: 0.88em;
	color: var(--ezm-text-leise);
}

.ezm-feldfehler {
	margin: 6px 0 0;
	font-size: 0.9em;
	font-weight: 600;
	color: var(--ezm-rot-dunkel);
}

.ezm-absenden {
	display: inline-block;
	margin-top: 8px;
	padding: 14px 32px;
	border: 0;
	border-radius: 6px;
	background: var(--ezm-rot);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 1.05em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ezm-absenden:hover,
.ezm-absenden:focus {
	background: var(--ezm-rot-dunkel);
	color: #fff;
}

/* Honeypot: für Menschen unsichtbar, für Screenreader ausgeblendet,
   aber nicht display:none (das überspringen manche Bots gezielt). */
.ezm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.ezm-absenden {
		width: 100%;
	}
}
