/* Gestaltung der Zentrale: schlicht, hell und dunkel, ohne fremde Schriften */
:root {
	--bg: #f6f7f9;
	--surface: #ffffff;
	--text: #1d2330;
	--muted: #5b6475;
	--line: #d9dde5;
	--accent: #1f5fbf;
	--accent-text: #ffffff;
	--error: #b3261e;
	--error-bg: #fdecea;
	--notice-bg: #e8f0fd;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #14171c;
		--surface: #1c2027;
		--text: #e6e9ef;
		--muted: #9aa3b2;
		--line: #2e3440;
		--accent: #6ea3ff;
		--accent-text: #0d1117;
		--error: #ff8a80;
		--error-bg: #3a1d1b;
		--notice-bg: #1d2a40;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
	color: var(--accent);
}

.topbar {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 12px 24px;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.topbar .brand {
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
}

.topbar nav {
	display: flex;
	gap: 16px;
}

.topbar .logout {
	margin-left: auto;
	display: flex;
	gap: 12px;
	align-items: center;
	color: var(--muted);
}

main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px;
}

main.narrow {
	max-width: 480px;
}

h1 {
	font-size: 1.6rem;
	margin: 0 0 16px;
}

.stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 500;
}

input, select, textarea {
	font: inherit;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	color: var(--text);
}

button {
	font: inherit;
	padding: 8px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--accent);
	color: var(--accent-text);
	cursor: pointer;
}

button.link {
	background: none;
	color: var(--accent);
	padding: 0;
	text-decoration: underline;
}

.notice {
	padding: 10px 14px;
	border-radius: 6px;
	background: var(--notice-bg);
}

.notice.error {
	background: var(--error-bg);
	color: var(--error);
}

.field-error:empty {
	display: none;
}

.field-error {
	margin: -8px 0 0;
	color: var(--error);
	font-size: 0.9rem;
}

table {
	width: 100%;
	border-collapse: collapse;
	background: var(--surface);
}

th, td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

th {
	color: var(--muted);
	font-weight: 600;
}

h2 {
	font-size: 1.2rem;
	margin: 32px 0 8px;
}

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

form.inline {
	display: inline;
}

.narrow-form {
	max-width: 480px;
}

.password-login {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.password-login summary {
	cursor: pointer;
	color: var(--muted);
	margin-bottom: 12px;
}

button:disabled {
	opacity: 0.6;
	cursor: wait;
}

@media (max-width: 640px) {
	.topbar {
		flex-wrap: wrap;
		gap: 12px;
		padding: 12px 16px;
	}
	main {
		padding: 16px;
	}
	table {
		display: block;
		overflow-x: auto;
	}
}
