/* Eigenes CSS, keine Fremdquellen: keine CDNs, keine externen Fonts (Datenschutz-Basis B3). */

:root {
	--text: #1c1d1f;
	--leise: #5c6066;
	--linie: #dcdfe4;
	--flaeche: #ffffff;
	--grund: #f6f7f9;
	--akzent: #1f6f5c;
}

@media (prefers-color-scheme: dark) {
	:root {
		--text: #e9eaec;
		--leise: #a2a7ae;
		--linie: #33373d;
		--flaeche: #1e2024;
		--grund: #15171a;
		--akzent: #6fd3b4;
	}
}

* { box-sizing: border-box; }

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

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 1px solid var(--linie);
	background: var(--flaeche);
	padding: 1rem 1.25rem;
}

.kopfform { margin: 0; }

.marke {
	color: var(--text);
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
}

main {
	max-width: 46rem;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}

h1 {
	margin: 0 0 0.75rem;
	font-size: 1.6rem;
	line-height: 1.25;
}

.fuehrung {
	color: var(--leise);
	margin: 0 0 1.5rem;
}

.kasten {
	border: 1px solid var(--linie);
	border-left: 3px solid var(--akzent);
	border-radius: 6px;
	background: var(--flaeche);
	padding: 1rem 1.25rem;
}

.kasten p { margin: 0.35rem 0; }

footer {
	max-width: 46rem;
	margin: 0 auto;
	padding: 0 1.25rem 2rem;
	color: var(--leise);
	font-size: 0.875rem;
}

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

/* Formulare */

form {
	margin: 1.5rem 0;
	max-width: 22rem;
}

label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: 0.9375rem;
}

input[type="text"],
input[type="password"] {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--linie);
	border-radius: 6px;
	background: var(--flaeche);
	color: var(--text);
	font: inherit;
}

input:focus-visible,
button:focus-visible {
	outline: 2px solid var(--akzent);
	outline-offset: 2px;
}

button {
	margin-top: 1rem;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--akzent);
	border-radius: 6px;
	background: var(--akzent);
	color: var(--flaeche);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

button.leise {
	margin-top: 0;
	border-color: var(--linie);
	background: transparent;
	color: var(--leise);
	font-weight: 500;
}

.nebenbei { margin-top: 0.5rem; }

.fehler {
	margin: 0 0 1.25rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid #c0392b;
	border-left-width: 3px;
	border-radius: 6px;
	background: var(--flaeche);
	color: var(--text);
}

.qr {
	display: inline-block;
	padding: 0.75rem;
	border: 1px solid var(--linie);
	border-radius: 6px;
	background: #ffffff;   /* QR-Codes brauchen weissen Grund, auch im dunklen Modus */
	line-height: 0;
}

code {
	padding: 0.1rem 0.3rem;
	border-radius: 4px;
	background: var(--grund);
	font-size: 0.9375em;
	word-break: break-all;
}

input[type="date"],
input[type="file"] {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--linie);
	border-radius: 6px;
	background: var(--flaeche);
	color: var(--text);
	font: inherit;
}

.feldhinweis {
	margin: 0.35rem 0 0;
	color: var(--leise);
	font-size: 0.875rem;
}

h2 {
	margin: 2.25rem 0 0.75rem;
	font-size: 1.15rem;
}

.zurueck { margin: 0 0 0.5rem; font-size: 0.9375rem; }

/* Listen */

.liste {
	width: 100%;
	border-collapse: collapse;
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
}

.liste th {
	text-align: left;
	padding: 0.5rem 0.6rem;
	border-bottom: 1px solid var(--linie);
	color: var(--leise);
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.liste td {
	padding: 0.6rem;
	border-bottom: 1px solid var(--linie);
	vertical-align: top;
}

.liste tr.gesperrt td { color: var(--leise); }

.liste .tun {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: flex-end;
}

.liste .tun form { margin: 0; }

.merker {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.05rem 0.4rem;
	border: 1px solid var(--linie);
	border-radius: 999px;
	color: var(--leise);
	font-size: 0.75rem;
}

.klein { color: var(--leise); font-size: 0.875rem; }

/* Zugangscode nach dem Anlegen */

.codebox {
	margin: 1.5rem 0;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--akzent);
	border-radius: 8px;
	background: var(--flaeche);
}

.codelabel { margin: 0; color: var(--leise); font-size: 0.875rem; }

.code {
	margin: 0.35rem 0;
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.codehinweis { margin: 0; color: var(--leise); font-size: 0.875rem; }

@media (max-width: 34rem) {
	.liste thead { display: none; }
	.liste td { display: block; border: none; padding: 0.2rem 0; }
	.liste tr { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--linie); }
	.liste .tun { justify-content: flex-start; margin-top: 0.4rem; }
}
