/* tearded.dev – schwarzer Grund, viel Luft, eine Akzentfarbe. */

:root {
	--grund: #0a0a0b;
	--text: #e9e7e2;
	--leise: #7b7973;
	--faden: rgba(233, 231, 226, 0.14);
	--akzent: #ff4d2e;
	--schrift: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

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

html,
body {
	height: 100%;
	margin: 0;
}

body {
	background: var(--grund);
	color: var(--text);
	font: 13px/1.5 var(--schrift);
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
}

#tuch {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	cursor: grab;
	/* Wischen soll am Tuch ziehen, nicht die Seite bewegen. */
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

#tuch.greift {
	cursor: grabbing;
}

.leiste {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 20px max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
	/* Die Leiste selbst fängt keine Zeiger ab – nur ihre Knöpfe und Links. */
	pointer-events: none;
}

.hinweis {
	margin: 0;
	color: var(--leise);
	display: flex;
	align-items: center;
	gap: 10px;
}

.punkt {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--akzent);
	flex: none;
}

.links {
	display: flex;
	align-items: center;
	gap: 20px;
	pointer-events: auto;
}

.links a,
.links button {
	font: inherit;
	color: var(--leise);
	background: none;
	border: 0;
	padding: 6px 0;
	margin: 0;
	cursor: pointer;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.links a:hover,
.links button:hover {
	color: var(--text);
	border-bottom-color: var(--akzent);
}

.links a:focus-visible,
.links button:focus-visible {
	outline: 1px solid var(--akzent);
	outline-offset: 4px;
	color: var(--text);
}

.nur-vorlesen {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ohne-js {
	position: fixed;
	inset: 0;
	margin: 0;
	display: grid;
	place-items: center;
	font: 900 clamp(48px, 16vw, 220px) / 1 system-ui, "Segoe UI", sans-serif;
	letter-spacing: -0.04em;
	color: var(--akzent);
}

@media (max-width: 520px) {
	.leiste {
		padding-top: 12px;
	}
	.links {
		gap: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.links a,
	.links button {
		transition: none;
	}
}
