/* PROTECTO calculators (since 0.8.36). */
.protecto-calc {
	margin-block: 32px;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	background: var(--wp--preset--color--sand);
}
.protecto-calc__title {
	margin: 0 0 6px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--wp--preset--color--graphite);
}
.protecto-calc__head p:last-child {
	margin: 0;
}
.protecto-calc__form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-block: 20px;
}
.protecto-calc__field {
	display: flex;
	flex-direction: column;
}
/* Felder einer Zeile stehen auf einer Linie, auch wenn eine Beschriftung zweizeilig ist (0.8.37). */
.protecto-calc__field label {
	flex-grow: 1;
}
.protecto-calc__field label,
.protecto-calc__check {
	display: block;
	margin-bottom: 6px;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.35;
}
.protecto-calc__input {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.protecto-calc__input input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 0;
	font: inherit;
	background: transparent;
}
.protecto-calc__input select {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 0;
	font: inherit;
	background: transparent;
	appearance: auto;
}
.protecto-calc__input select:focus,
.protecto-calc__input select:focus-visible,
.protecto-calc__input input:focus,
.protecto-calc__input input:focus-visible {
	outline: none;
}
/* Fokusrahmen am abgerundeten Feld selbst, damit die Ecken nicht abgeschnitten werden (0.8.37). */
.protecto-calc__input:focus-within {
	border-color: var(--wp--preset--color--bronze);
	box-shadow: 0 0 0 1px var(--wp--preset--color--bronze);
}
.protecto-calc__unit {
	display: flex;
	align-items: center;
	padding: 0 12px;
	font-size: .85rem;
	color: var(--wp--preset--color--muted);
	border-left: 1px solid var(--wp--preset--color--line);
}
.protecto-calc__check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	grid-column: 1 / -1;
	font-weight: 500;
}
.protecto-calc__check input {
	margin-top: 4px;
	accent-color: var(--wp--preset--color--bronze);
}
.protecto-calc__results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}
.protecto-calc__result {
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: #fff;
}
.protecto-calc__label {
	display: block;
	font-size: .85rem;
	color: var(--wp--preset--color--muted);
}
.protecto-calc__result strong {
	display: block;
	margin-top: 4px;
	font-size: 1.35rem;
	color: var(--wp--preset--color--bronze);
}
.protecto-calc__chart {
	margin: 20px 0 0;
	padding: 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: #fff;
}
.protecto-calc__chart svg {
	display: block;
	width: 100%;
	height: auto;
}
.protecto-calc__chart text {
	font-size: 12px;
	fill: var(--wp--preset--color--muted);
}
.protecto-calc__chart .grid {
	stroke: var(--wp--preset--color--line);
}
.protecto-calc__chart .line {
	fill: none;
	stroke: var(--wp--preset--color--bronze);
	stroke-width: 2.5;
}
.protecto-calc__chart .area {
	fill: var(--wp--preset--color--bronze);
	opacity: .1;
}
.protecto-calc__chart .mark {
	stroke: var(--wp--preset--color--muted);
	stroke-dasharray: 4 4;
}
.protecto-calc__chart figcaption {
	font-size: .85rem;
	color: var(--wp--preset--color--muted);
}
.protecto-calc__note {
	margin: 16px 0 0;
	font-size: .85rem;
	color: var(--wp--preset--color--muted);
}

/* 0.8.38 · Kurze Ausfüllhilfe unter einem Feld. */
.protecto-calc__hint {
	display: block;
	margin-top: 6px;
	font-size: .8rem;
	line-height: 1.4;
	color: var(--wp--preset--color--muted);
}
/* Beschriftung, Feld und Hinweis stehen zeilenweise auf einer Linie (Subgrid, sonst Flex-Fallback). */
@supports (grid-template-rows: subgrid) {
	.protecto-calc__field {
		display: grid;
		grid-row: span 3;
		grid-template-rows: subgrid;
		row-gap: 6px;
	}
	.protecto-calc__field label {
		align-self: end;
		margin-bottom: 0;
	}
	.protecto-calc__hint {
		margin-top: 0;
	}
}
