.dreisatz-page {
	--ds-ink: #111827;
	--ds-muted: #4b5872;
	--ds-line: #cfe0ee;
	--ds-soft: #f4f8fb;
	--ds-accent: #0f766e;
	--ds-accent-strong: #0b5f59;
	--ds-pencil: #c58a12;
	--ds-paper: #fffdf7;
	color: var(--ds-ink);
}

.dreisatz-page .tool-hero,
.dreisatz-page .calculator-card,
.dreisatz-page .content-section {
	border: 1px solid var(--ds-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.dreisatz-page .tool-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
	gap: 28px;
	align-items: center;
	padding: 40px;
	background:
		linear-gradient(90deg, rgba(15, 118, 110, 0.055) 1px, transparent 1px),
		linear-gradient(180deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px),
		linear-gradient(135deg, #fbfdff 0%, #f3fbf5 100%);
	background-size: 34px 34px, 34px 34px, auto;
}

.dreisatz-page .eyebrow,
.dreisatz-page .panel-kicker,
.dreisatz-page .result-label,
.dreisatz-page .step-box span,
.dreisatz-page .formula-box span {
	margin: 0 0 8px;
	color: var(--ds-accent-strong);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.dreisatz-page h1 {
	margin: 0;
	font-size: clamp(2.3rem, 5vw, 4.4rem);
	line-height: 0.95;
	letter-spacing: 0;
}

.dreisatz-page h2 {
	margin: 0 0 12px;
	font-size: clamp(1.45rem, 2.4vw, 2rem);
	letter-spacing: 0;
}

.dreisatz-page p {
	color: var(--ds-muted);
	line-height: 1.7;
}

.dreisatz-page .trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.dreisatz-page .trust-row span {
	border: 1px solid #b8d7d0;
	border-radius: 999px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--ds-accent-strong);
	font-size: 0.9rem;
	font-weight: 800;
}

.dreisatz-page .short-intro {
	margin-top: -4px;
}

.dreisatz-page .result-panel {
	background: #172033;
	color: #fff;
	border-radius: 8px;
	padding: 28px;
	overflow: hidden;
}

.dreisatz-page .result-panel p,
.dreisatz-page .result-panel li {
	color: rgba(255, 255, 255, 0.88);
}

.dreisatz-page .hero-worksheet {
	position: relative;
	border: 1px solid #ead59a;
	border-radius: 8px;
	background:
		linear-gradient(transparent 31px, rgba(197, 138, 18, 0.18) 32px),
		var(--ds-paper);
	background-size: 100% 32px;
	padding: 26px;
	box-shadow: 12px 12px 0 rgba(15, 118, 110, 0.1);
	transform: rotate(-0.7deg);
}

.dreisatz-page .hero-worksheet::before {
	content: "";
	position: absolute;
	top: 14px;
	bottom: 14px;
	left: 18px;
	width: 3px;
	border-radius: 999px;
	background: #efb83f;
}

.dreisatz-page .hero-worksheet > * {
	position: relative;
	margin-left: 18px;
}

.dreisatz-page .worksheet-label {
	display: block;
	color: var(--ds-accent-strong);
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
}

.dreisatz-page .hero-worksheet h2 {
	margin: 8px 0 14px;
	color: var(--ds-ink);
	font-size: clamp(1.4rem, 2vw, 2rem);
	line-height: 1.1;
}

.dreisatz-page .hero-worksheet p {
	margin: 0;
	color: #334155;
}

.dreisatz-page .ratio-board {
	display: grid;
	gap: 8px;
	margin: 14px 0 16px;
}

.dreisatz-page .ratio-board div {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 16px;
	border: 1px solid rgba(15, 118, 110, 0.22);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	padding: 10px 12px;
}

.dreisatz-page .ratio-board span {
	color: var(--ds-muted);
	font-weight: 800;
}

.dreisatz-page .ratio-board strong {
	color: var(--ds-ink);
	font-size: 1.5rem;
	font-variant-numeric: tabular-nums;
}

.dreisatz-page .result-panel strong {
	display: block;
	margin: 6px 0;
	font-size: clamp(2.2rem, 4vw, 4rem);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.dreisatz-page .calculator-card {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
	gap: 28px;
	margin-top: 24px;
	padding: 28px;
	background:
		linear-gradient(90deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px),
		#fff;
	background-size: 28px 28px;
}

.dreisatz-page .mode-grid,
.dreisatz-page .field-grid,
.dreisatz-page .example-actions,
.dreisatz-page .example-grid,
.dreisatz-page .split-content {
	display: grid;
	gap: 14px;
}

.dreisatz-page .mode-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 18px 0;
}

.dreisatz-page .mode-grid label {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	border: 1px solid var(--ds-line);
	border-radius: 8px;
	padding: 14px;
	font-weight: 800;
	background: rgba(255, 255, 255, 0.86);
	cursor: pointer;
}

.dreisatz-page .mode-grid label:has(input:checked) {
	border-color: var(--ds-accent);
	background: #ecfdf5;
	color: var(--ds-accent-strong);
}

.dreisatz-page .field-grid,
.dreisatz-page .example-grid,
.dreisatz-page .split-content,
.dreisatz-page .decision-grid,
.dreisatz-page .method-grid,
.dreisatz-page .check-list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dreisatz-page .field span {
	display: block;
	margin-bottom: 8px;
	font-weight: 800;
}

.dreisatz-page input[type="text"] {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--ds-line);
	border-radius: 8px;
	padding: 12px 14px;
	background: #fffdf7;
	color: var(--ds-ink);
	font: inherit;
	font-weight: 700;
	box-sizing: border-box;
}

.dreisatz-page input[type="text"]:focus {
	outline: 3px solid rgba(15, 118, 110, 0.18);
	border-color: var(--ds-accent);
	background: #fff;
}

.dreisatz-page .example-actions {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 16px;
}

.dreisatz-page button {
	min-height: 48px;
	border: 1px solid #b8d7d0;
	border-radius: 8px;
	background: #fff;
	color: var(--ds-accent-strong);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.dreisatz-page button:hover {
	border-color: var(--ds-accent);
	background: #f0fdfa;
}

.dreisatz-page .copy-button {
	width: 100%;
	margin-top: 16px;
	background: var(--ds-accent);
	border-color: var(--ds-accent);
	color: #fff;
}

.dreisatz-page .copy-button:hover {
	background: var(--ds-accent-strong);
	color: #fff;
}

.dreisatz-page .input-note {
	margin-bottom: 0;
	font-size: 0.94rem;
}

.dreisatz-page .inline-warning {
	margin-top: 16px;
	border: 1px solid #f2c879;
	border-radius: 8px;
	background:
		linear-gradient(90deg, rgba(197, 138, 18, 0.12) 1px, transparent 1px),
		#fff8e7;
	background-size: 22px 22px;
	color: #5f4108;
	padding: 14px 16px;
	line-height: 1.6;
}

.dreisatz-page .inline-warning strong {
	color: #7a5200;
}

.dreisatz-page .step-box,
.dreisatz-page .formula-box {
	margin-top: 16px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	padding: 16px;
	background: rgba(255, 255, 255, 0.08);
}

.dreisatz-page .step-box ol {
	margin: 8px 0 0 18px;
	padding: 0;
}

.dreisatz-page .formula-box p {
	margin: 6px 0 0;
}

.dreisatz-page .content-section {
	margin-top: 24px;
	padding: 30px;
}

.dreisatz-page .split-content {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dreisatz-page .decision-grid,
.dreisatz-page .method-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}

.dreisatz-page .decision-grid article,
.dreisatz-page .method-grid > div,
.dreisatz-page .assumption-box,
.dreisatz-page .check-list > div {
	border: 1px solid var(--ds-line);
	border-radius: 8px;
	background: var(--ds-soft);
	padding: 18px;
}

.dreisatz-page .decision-grid h3,
.dreisatz-page .method-grid h3,
.dreisatz-page .assumption-box h3 {
	margin: 0 0 8px;
}

.dreisatz-page .assumption-box {
	margin-top: 18px;
	border-left: 4px solid #c58a12;
}

.dreisatz-page .formula-large {
	border-left: 4px solid var(--ds-accent);
	border-radius: 8px;
	background: var(--ds-soft);
	padding: 16px;
	color: var(--ds-ink);
	font-weight: 800;
}

.dreisatz-page .example-grid article {
	border: 1px solid var(--ds-line);
	border-top: 4px solid var(--ds-accent);
	border-radius: 8px;
	padding: 18px;
	background: var(--ds-soft);
}

.dreisatz-page .example-grid h3 {
	margin: 0 0 8px;
}

.dreisatz-page .example-grid-wide {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dreisatz-page .check-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.dreisatz-page .check-list strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ds-accent);
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.dreisatz-page .check-list p {
	margin-bottom: 0;
}

.dreisatz-page .content-section li {
	margin: 10px 0;
	color: var(--ds-muted);
	line-height: 1.6;
}

.dreisatz-page .faq-section details {
	border: 1px solid var(--ds-line);
	border-radius: 8px;
	padding: 16px 18px;
	background: #fff;
}

.dreisatz-page .faq-section details + details {
	margin-top: 12px;
}

.dreisatz-page .faq-section summary {
	font-weight: 800;
	cursor: pointer;
}

@media (max-width: 820px) {
	.dreisatz-page .tool-hero,
	.dreisatz-page .calculator-card,
	.dreisatz-page .field-grid,
	.dreisatz-page .example-actions,
	.dreisatz-page .example-grid,
	.dreisatz-page .split-content,
	.dreisatz-page .decision-grid,
	.dreisatz-page .method-grid,
	.dreisatz-page .check-list {
		grid-template-columns: 1fr;
	}

	.dreisatz-page .tool-hero,
	.dreisatz-page .calculator-card,
	.dreisatz-page .content-section {
		padding: 22px;
	}

	.dreisatz-page .mode-grid {
		grid-template-columns: 1fr;
	}

	.dreisatz-page .hero-worksheet {
		transform: none;
		box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	}
}
