/* Accessible public registration page */

:root {
	--muehsam-bg: #f4f1ea;
	--muehsam-card: #ffffff;
	--muehsam-text: #1a1a1a;
	--muehsam-muted: #3d3d3d;
	--muehsam-border: #5c5c5c;
	--muehsam-accent: #1a365d;
	--muehsam-accent-hover: #0f2744;
	--muehsam-focus: #0b57d0;
	--muehsam-error: #7a1212;
	--muehsam-error-bg: #fdeeee;
	--muehsam-success: #0a3622;
	--muehsam-success-bg: #e3f4ea;
	--muehsam-radius: 8px;
	--muehsam-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--muehsam-bg: #121417;
		--muehsam-card: #1e2228;
		--muehsam-text: #f2f2f2;
		--muehsam-muted: #d0d0d0;
		--muehsam-border: #9aa0a6;
		--muehsam-accent: #8ab4f8;
		--muehsam-accent-hover: #aecbfa;
		--muehsam-focus: #8ab4f8;
		--muehsam-error: #ffb4ab;
		--muehsam-error-bg: #3b1513;
		--muehsam-success: #b7f0cb;
		--muehsam-success-bg: #143322;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

.muehsam-body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--muehsam-font);
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--muehsam-text);
	background: var(--muehsam-bg);
}

.muehsam-skip {
	position: absolute;
	left: 0.75rem;
	top: 0.75rem;
	transform: translateY(-200%);
	padding: 0.5rem 0.75rem;
	background: var(--muehsam-accent);
	color: #fff;
	z-index: 10;
}

.muehsam-skip:focus {
	transform: none;
}

.muehsam-header,
.muehsam-footer,
.muehsam-main {
	width: min(44rem, calc(100% - 2rem));
	margin-left: auto;
	margin-right: auto;
}

.muehsam-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 1.5rem 0 1rem;
}

.muehsam-site {
	margin: 0;
	font-weight: 700;
}

.muehsam-home {
	margin: 0;
}

.muehsam-main {
	padding-bottom: 3rem;
}

.muehsam-card {
	background: var(--muehsam-card);
	border: 1px solid var(--muehsam-border);
	border-radius: var(--muehsam-radius);
	padding: 1.5rem 1.5rem 2rem;
}

.muehsam-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muehsam-muted);
}

.muehsam-card h1,
.muehsam-card h2,
.muehsam-card h3 {
	line-height: 1.25;
	margin-top: 0;
}

.muehsam-card h1 {
	font-size: 1.85rem;
	margin-bottom: 1rem;
}

.muehsam-card h2 {
	font-size: 1.35rem;
}

.muehsam-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 0.75rem 1.25rem;
	margin: 0 0 1.5rem;
}

.muehsam-meta div {
	margin: 0;
}

.muehsam-meta dt {
	font-size: 0.95rem;
	color: var(--muehsam-muted);
}

.muehsam-meta dd {
	margin: 0.15rem 0 0;
	font-weight: 600;
}

.muehsam-description {
	margin-bottom: 1.75rem;
}

.muehsam-status {
	padding: 1rem 1.15rem;
	border-radius: var(--muehsam-radius);
	border: 2px solid currentColor;
}

.muehsam-status h2 {
	margin-bottom: 0.4rem;
}

.muehsam-status p:last-child {
	margin-bottom: 0;
}

.muehsam-status--success {
	background: var(--muehsam-success-bg);
	color: var(--muehsam-success);
}

.muehsam-status--full {
	background: var(--muehsam-error-bg);
	color: var(--muehsam-error);
}

.muehsam-required-note {
	color: var(--muehsam-muted);
}

.muehsam-error-summary {
	padding: 1rem 1.15rem;
	margin-bottom: 1.25rem;
	background: var(--muehsam-error-bg);
	color: var(--muehsam-error);
	border: 2px solid var(--muehsam-error);
	border-radius: var(--muehsam-radius);
}

.muehsam-error-summary h3 {
	margin-bottom: 0.5rem;
}

.muehsam-error-summary a {
	color: inherit;
	text-decoration: underline;
}

.muehsam-field {
	margin-bottom: 1.15rem;
}

.muehsam-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.muehsam-req {
	color: var(--muehsam-error);
	font-weight: 700;
}

.muehsam-optional {
	font-weight: 400;
	color: var(--muehsam-muted);
}

.muehsam-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.muehsam-field input,
.muehsam-field select {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.7rem;
	font: inherit;
	color: inherit;
	background: var(--muehsam-card);
	border: 2px solid var(--muehsam-border);
	border-radius: 4px;
}

.muehsam-field--error input,
.muehsam-field--error select {
	border-color: var(--muehsam-error);
	border-width: 3px;
}

.muehsam-field-error {
	margin: 0.4rem 0 0;
	color: var(--muehsam-error);
	font-weight: 600;
}

.muehsam-hint {
	margin: 0.4rem 0 0;
	color: var(--muehsam-muted);
	font-size: 1rem;
}

.muehsam-submit {
	min-height: 2.75rem;
	padding: 0.65rem 1.25rem;
	font: inherit;
	font-weight: 700;
	color: #fff;
	background: var(--muehsam-accent);
	border: 2px solid transparent;
	border-radius: 4px;
	cursor: pointer;
}

@media (prefers-color-scheme: dark) {
	.muehsam-submit {
		color: #0b1524;
	}

	.muehsam-skip {
		color: #0b1524;
	}
}

.muehsam-submit:hover,
.muehsam-submit:focus {
	background: var(--muehsam-accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 3px solid var(--muehsam-focus);
	outline-offset: 2px;
}

.muehsam-hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.muehsam-privacy {
	margin: 1.25rem 0 1.35rem;
	color: var(--muehsam-muted);
	font-size: 1rem;
}

.muehsam-privacy a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.muehsam-footer {
	padding: 0 0 2rem;
	color: var(--muehsam-muted);
	font-size: 1rem;
}

.muehsam-footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.muehsam-footer-nav a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

@media (max-width: 40rem) {
	.muehsam-header {
		flex-direction: column;
	}

	.muehsam-card {
		padding: 1.15rem;
	}
}
