:root {
	color-scheme: light;
	--desk: #c4beb3;
	--paper: #f1eee6;
	--ink: #2c2924;
	--rule: #b9b3a8;
	--shadow: rgba(48, 40, 32, 0.18);
	--focus: #2c2924;
	--font-min: 1rem;
	--font-size: clamp(var(--font-min), 0.92rem + 0.4vw, 1.25rem);
	--desk-pad: clamp(0.35rem, 0.9vw, 0.85rem);
	--side: clamp(1rem, 3.2vw, 2.75rem);
	--side-left: clamp(1.25rem, 3.8vw, 3rem);
	--side-top: clamp(1rem, 3.6vh, 2.4rem);
	--side-bottom: clamp(0.9rem, 3vh, 2rem);
}

* {
	box-sizing: border-box;
}

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

html {
	font-size: 100%;
}

body {
	background: var(--desk);
	color: var(--ink);
	font-family: Calibri, Carlito, "Segoe UI", "Liberation Sans", Arial, sans-serif;
	font-size: var(--font-size);
	line-height: 1.45;
}

.skip {
	position: absolute;
	left: 0.75rem;
	top: 0.75rem;
	z-index: 2;
	padding: 0.4em 0.7em;
	background: var(--paper);
	color: var(--ink);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip:focus {
	clip-path: none;
}

.desk {
	display: grid;
	width: 100%;
	min-height: 100dvh;
	height: 100dvh;
	padding: var(--desk-pad);
}

.sheet {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: auto;
	padding: var(--side-top) var(--side) var(--side-bottom) var(--side-left);
	background: var(--paper);
	box-shadow:
		0 0 0 1px #b7b1a6,
		0 6px 18px var(--shadow);
}

.letter {
	width: 50%;
	max-width: 100%;
}

.tick {
	position: absolute;
	left: 0;
	width: clamp(0.45rem, 1.1vw, 0.95rem);
	border-top: 1px solid var(--rule);
}

.tick-fold-1 {
	top: 29.29%;
}

.tick-fold-2 {
	top: 64.65%;
}

.tick-hole {
	top: 50%;
	width: 1rem;
}

.head {
	margin: 0 0 1.1rem;
	font-size: 1.05rem;
	letter-spacing: 0.04em;
}

.head a {
	text-decoration: none;
}

.absender {
	margin: 0 0 0.85rem;
	width: min(100%, 18em);
	padding-bottom: 0.2em;
	border-bottom: 1px solid var(--ink);
	font-size: max(0.875rem, 0.875em);
	line-height: 1.3;
}

.meta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 1.25rem;
	align-items: start;
	margin: 0 0 1.25rem;
}

.anschrift {
	margin: 0;
}

.info {
	margin: 0;
	text-align: right;
	white-space: nowrap;
}

.betreff {
	margin: 0 0 0.9rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.anrede,
.body,
.gruss,
.sign {
	margin: 0 0 0.8rem;
}

.closing {
	margin-top: 1.75rem;
}

.colophon {
	margin: 1.1rem 0 0;
	padding-top: 0.55rem;
	border-top: 1px solid var(--rule);
	font-size: max(0.875rem, 0.875em);
}

a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.14em;
}

.colophon a {
	padding: 0.4em 0.15em;
	margin: -0.4em -0.15em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
}

@media (max-width: 48rem) {
	.letter {
		width: 100%;
	}

	.info {
		white-space: normal;
	}
}

@media (prefers-contrast: more) {
	:root {
		--desk: #6f6a62;
		--paper: #f7f4ee;
		--ink: #000000;
		--rule: #000000;
		--focus: #000000;
	}

	.sheet {
		box-shadow: 0 0 0 2px #000;
	}
}

@media (forced-colors: active) {
	.sheet {
		border: 1px solid CanvasText;
		box-shadow: none;
	}

	.absender,
	.colophon,
	.tick {
		border-color: CanvasText;
	}

	:focus-visible {
		outline-color: Highlight;
	}
}

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

@media print {
	body {
		background: white;
	}

	.skip {
		display: none;
	}

	.desk {
		display: block;
		height: auto;
		min-height: 0;
		padding: 0;
	}

	.sheet {
		width: 210mm;
		height: 297mm;
		overflow: hidden;
		box-shadow: none;
		padding: 20mm 20mm 20mm 25mm;
	}

	body {
		font-size: 11pt;
	}

	.letter {
		width: 100%;
	}

	@page {
		size: A4;
		margin: 0;
	}
}
