.hmp-portionsrechner {
	--hmp-accent: #3f7652;
	--hmp-accent-dark: #2d593c;
	--hmp-border: #d8e3db;
	--hmp-background: #f7faf8;
	--hmp-text: #1f2d23;

	box-sizing: border-box;
	width: 100%;
	margin: 1.5rem 0;
	padding: clamp(1rem, 3vw, 1.5rem);
	border: 1px solid var(--hmp-border);
	border-radius: 12px;
	background: var(--hmp-background);
	color: var(--hmp-text);
}

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

.hmp-portionsrechner__control {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.hmp-portionsrechner__control label {
	margin: 0;
	font-weight: 700;
}

.hmp-portionsrechner__select {
	min-width: 10rem;
	min-height: 44px;
	padding: 0.55rem 2.25rem 0.55rem 0.8rem;
	border: 2px solid var(--hmp-accent);
	border-radius: 8px;
	background-color: #fff;
	color: var(--hmp-text);
	font: inherit;
	cursor: pointer;
}

.hmp-portionsrechner__select:focus-visible {
	outline: 3px solid rgba(63, 118, 82, 0.35);
	outline-offset: 2px;
}

.hmp-portionsrechner__ingredients {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding-left: 1.25rem;
}

.hmp-portionsrechner__ingredient {
	padding-left: 0.2rem;
}

.hmp-portionsrechner__section {
	margin-top: 0.6rem;
	margin-left: -1.25rem;
	list-style: none;
}

.hmp-portionsrechner__section:first-child {
	margin-top: 0;
}

.hmp-portionsrechner__amount {
	font-weight: 700;
}

.hmp-portionsrechner__amount,
.hmp-portionsrechner__unit {
	margin-right: 0.25em;
}

.hmp-screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 480px) {
	.hmp-portionsrechner__control {
		align-items: stretch;
		flex-direction: column;
	}

	.hmp-portionsrechner__select {
		width: 100%;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmp-portionsrechner *,
	.hmp-portionsrechner *::before,
	.hmp-portionsrechner *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
