.epz-rechner {
	margin: 1.5rem 0;
}

.epz-rechner .epz-grid {
	display: block;
}

.epz-rechner .epz-grid > .epz-card + .epz-card {
	margin-top: 1.25rem;
}

.epz-rechner .epz-card {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 1rem;
	background: #fff;
}

.epz-rechner .epz-card h2,
.epz-rechner .epz-card h3,
.epz-rechner .epz-card h4 {
	margin-top: 0;
}

.epz-rechner .epz-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 0.75rem;
}

.epz-rechner .epz-calc-form .epz-row input,
.epz-rechner .epz-calc-form .epz-row select {
	width: 100%;
	max-width: 100%;
	justify-self: end;
	background-color: #f8f8f8;
	text-align: right;
	text-align-last: right;
	box-sizing: border-box;
}

.epz-rechner .epz-calc-form .epz-row {
	grid-template-columns: minmax(0, 1fr) 12ch;
}

.epz-rechner .epz-calc-form .epz-row > :nth-child(2) {
	width: 100%;
	min-width: 0;
}

.epz-rechner .epz-calc-form .epz-row .select-wrapper,
.epz-rechner .epz-calc-form .epz-row .select-wrapper input.select-dropdown {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background-color: #f8f8f8;
	text-align: right;
	text-align-last: right;
}

.epz-rechner .epz-request-form .epz-row {
	grid-template-columns: 12ch minmax(0, 30ch);
	justify-content: start;
}

.epz-rechner .epz-request-form .epz-row label {
	width: 12ch;
	justify-self: start;
}

.epz-rechner .epz-request-form .epz-row input,
.epz-rechner .epz-request-form .epz-row select {
	width: 100%;
	max-width: 30ch;
	justify-self: start;
	background-color: #f8f8f8;
	text-align: left;
	text-align-last: auto;
}

.epz-rechner .epz-output-list {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	margin-bottom: 1rem;
}

.epz-rechner .epz-calc-form {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.epz-rechner .epz-calc-form .epz-row {
	padding: 0.55rem 0;
	margin-bottom: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.epz-rechner .epz-output-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.epz-rechner .epz-output-card .epz-output-list + h3 {
	margin-top: 1em;
}

.epz-rechner .epz-mail-card {
	margin-top: 1.25rem;
}

.epz-rechner .epz-options-fieldset {
	border: 0;
	padding: 0;
	margin-bottom: 0.75rem;
}

.epz-rechner .epz-options-fieldset label {
	display: block;
	margin-bottom: 0.5rem;
}

.epz-rechner .epz-options-fieldset label:last-child {
	margin-bottom: 0;
}

.epz-rechner .epz-privacy-label {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.epz-rechner .epz-form-message {
	margin-top: 0.75rem;
	font-weight: 600;
}

.epz-rechner .epz-form-message.epz-error {
	color: #b42318;
}

.epz-rechner .epz-form-message.epz-success {
	color: #027a48;
}

@media (max-width: 640px) {
	.epz-rechner .epz-row {
		grid-template-columns: 1fr;
	}

	.epz-rechner .epz-output-row {
		flex-direction: column;
		align-items: flex-start;
	}
}
