/*
 * Frontend-Grundstyling. Bewusst ohne Framework/CDN (Anforderung: keine
 * externen Ressourcen, keine Google Fonts). Verwendet System-Schriftstapel.
 * Ziel: fuehlt sich wie eine kleine moderne Web-App an, nicht wie eine
 * gewoehnliche WordPress-Seite.
 */

.epm-app {
	--epm-color-primary: #1f6f5c;
	--epm-color-primary-dark: #175646;
	--epm-color-primary-contrast: #ffffff;
	--epm-color-bg: #f4f6f5;
	--epm-color-surface: #ffffff;
	--epm-color-text: #1a1c1b;
	--epm-color-muted: #667069;
	--epm-color-border: #e3e7e4;
	--epm-color-error: #b3261e;
	--epm-color-error-bg: #fdecea;
	--epm-radius: 16px;
	--epm-radius-sm: 10px;
	--epm-shadow: 0 1px 2px rgba(20, 30, 25, 0.04), 0 8px 24px rgba(20, 30, 25, 0.06);

	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	color: var(--epm-color-text);
	background:
		radial-gradient(circle at 85% -10%, rgba(31, 111, 92, 0.12), transparent 22rem),
		var(--epm-color-bg);
	max-width: 560px;
	margin: 0 auto;
	padding: 1.5rem;
	box-sizing: border-box;
	line-height: 1.5;
}

.epm-app *,
.epm-app *::before,
.epm-app *::after {
	box-sizing: inherit;
}

.epm-registration__title {
	margin: 0 0 1rem;
	font-size: 1.4rem;
	font-weight: 700;
	text-align: center;
	color: var(--epm-color-text);
}

.epm-form {
	position: relative;
	background: var(--epm-color-surface);
	border: 1px solid var(--epm-color-border);
	border-radius: var(--epm-radius);
	padding: 1.9rem 1.75rem 1.75rem;
	box-shadow: var(--epm-shadow);
	overflow: hidden;
}

.epm-form__hint {
	margin: -0.6rem 0 0.75rem;
	font-size: 0.82rem;
	color: var(--epm-color-muted);
}

.epm-form::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--epm-color-primary), #2f9e84 55%, var(--epm-color-primary));
}

.epm-step {
	animation: epm-step-in 0.25s ease;
}

@keyframes epm-step-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.epm-progress {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 1.5rem;
}

.epm-progress__step {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2rem;
	border-radius: 999px;
	background: var(--epm-color-bg);
	color: var(--epm-color-muted);
	font-size: 0.85rem;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.epm-progress__step.is-active {
	background: var(--epm-color-primary);
	color: var(--epm-color-primary-contrast);
	box-shadow: 0 2px 8px rgba(31, 111, 92, 0.35);
}

.epm-progress__step.is-done {
	background: rgba(31, 111, 92, 0.14);
	color: var(--epm-color-primary-dark);
	cursor: pointer;
}

.epm-progress__step.is-done:hover {
	background: rgba(31, 111, 92, 0.22);
}

.epm-progress__step.is-done:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 111, 92, 0.3);
}

.epm-step h2 {
	margin-top: 0;
	margin-bottom: 1.1rem;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.epm-step label {
	display: block;
	margin-bottom: 1.1rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--epm-color-muted);
}

.epm-step input[type="text"],
.epm-step input[type="email"],
.epm-step input[type="tel"],
.epm-step input[type="number"],
.epm-step input[type="date"] {
	display: block;
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--epm-color-border);
	border-radius: var(--epm-radius-sm);
	background: var(--epm-color-surface);
	font-size: 1rem;
	font-weight: 400;
	color: var(--epm-color-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.epm-step input:focus-visible {
	outline: none;
	border-color: var(--epm-color-primary);
	box-shadow: 0 0 0 3px rgba(31, 111, 92, 0.18);
}

.epm-step input::placeholder {
	color: #9aa39d;
}

.epm-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 400 !important;
}

.epm-checkbox input {
	margin-top: 0.2rem;
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--epm-color-primary);
	flex-shrink: 0;
}

.epm-summary {
	background: var(--epm-color-bg);
	border-radius: var(--epm-radius-sm);
	padding: 1rem 1.1rem;
	margin-bottom: 1.1rem;
	font-size: 0.92rem;
}

.epm-summary dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.35rem 0.9rem;
}

.epm-summary dt {
	color: var(--epm-color-muted);
	font-weight: 600;
}

.epm-summary dd {
	margin: 0;
}

.epm-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.4rem;
}

.epm-btn {
	appearance: none;
	border: 1px solid var(--epm-color-border);
	background: var(--epm-color-surface);
	color: var(--epm-color-text);
	padding: 0.7rem 1.3rem;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.epm-btn:hover {
	background: var(--epm-color-bg);
}

.epm-btn:active {
	transform: scale(0.98);
}

.epm-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 111, 92, 0.25);
}

.epm-btn--primary {
	background: var(--epm-color-primary);
	border-color: var(--epm-color-primary);
	color: var(--epm-color-primary-contrast);
	margin-left: auto;
	box-shadow: 0 4px 12px rgba(31, 111, 92, 0.28);
}

.epm-btn--primary:hover {
	background: var(--epm-color-primary-dark);
	border-color: var(--epm-color-primary-dark);
}

.epm-btn:disabled {
	opacity: 0.55;
	cursor: default;
	box-shadow: none;
	transform: none;
}

.epm-errors {
	margin-top: 1.1rem;
	padding: 0.8rem 1rem;
	background: var(--epm-color-error-bg);
	color: var(--epm-color-error);
	border-radius: var(--epm-radius-sm);
	font-size: 0.9rem;
	font-weight: 500;
}

.epm-success {
	background: var(--epm-color-surface);
	border: 1px solid var(--epm-color-border);
	border-radius: var(--epm-radius);
	box-shadow: var(--epm-shadow);
	padding: 2.25rem 1.75rem;
	text-align: center;
}

.epm-success h2 {
	margin-top: 0;
	font-size: 1.3rem;
	font-weight: 700;
}

.epm-success::before {
	content: "";
	display: block;
	width: 3rem;
	height: 3rem;
	margin: 0 auto 1rem;
	border-radius: 999px;
	background: rgba(31, 111, 92, 0.14);
	background-image: linear-gradient(135deg, rgba(31, 111, 92, 0.2), rgba(31, 111, 92, 0.05));
}

.epm-success p {
	color: var(--epm-color-muted);
	margin-bottom: 0;
}

@media (max-width: 480px) {
	.epm-app {
		padding: 1rem;
	}

	.epm-form {
		padding: 1.25rem;
		border-radius: var(--epm-radius-sm);
	}

	.epm-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.epm-btn--primary {
		margin-left: 0;
	}

	.epm-btn {
		width: 100%;
		text-align: center;
	}
}

/* Check-in-Landing-Page */
.epm-checkin-page {
	background: var(--epm-color-bg, #f4f6f5);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 0;
}

.epm-checkin {
	max-width: 480px;
	margin: 10vh auto 0;
	padding: 2rem;
	text-align: center;
}

.epm-checkin__card {
	background: #fff;
	border-radius: 20px;
	padding: 2.25rem 1.75rem;
	box-shadow: 0 1px 2px rgba(20, 30, 25, 0.04), 0 20px 40px rgba(20, 30, 25, 0.1);
}

.epm-checkin__status {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0.9rem 0;
}

.epm-checkin__status--ok { color: #1f6f5c; }
.epm-checkin__status--warn { color: #b26a00; }
.epm-checkin__status--error { color: #b3261e; }

.epm-checkin__btn {
	margin-top: 1.4rem;
	width: 100%;
	padding: 0.95rem;
	border: none;
	border-radius: 999px;
	background: #1f6f5c;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(31, 111, 92, 0.3);
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.epm-checkin__btn:hover {
	background: #175646;
}

.epm-checkin__btn:active {
	transform: scale(0.98);
}

.epm-checkin__btn:disabled {
	background: #9ca3af;
	cursor: default;
	box-shadow: none;
	transform: none;
}

/* Ausweis-Download-Landing-Page */
.epm-pass-download {
	max-width: 480px;
	margin: 8vh auto 0;
	padding: 2rem;
	text-align: center;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.epm-pass-download__link {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.75rem 1.4rem;
	border-radius: 999px;
	background: #1f6f5c;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(31, 111, 92, 0.3);
}

.epm-pass-download__error {
	color: #b3261e;
	font-weight: 500;
}
