/**
 * Alles Wurst Lakerechner – Frontend (Marke alles-wurst.de).
 */

.awlr {
	--aw-bg: #1c1c1e;
	--aw-panel: #252528;
	--aw-border: #3a342c;
	--aw-text: #ece8e2;
	--aw-muted: #a89f94;
	--aw-accent: #c9a227;
	--aw-accent-soft: rgba(201, 162, 39, 0.18);
	--aw-input: #141416;
	--aw-focus: #e3c76a;
	box-sizing: border-box;
	max-width: 760px;
	margin: 1.5rem auto;
	color: var(--aw-text);
	font-family: inherit;
	line-height: 1.45;
}

.awlr *,
.awlr *::before,
.awlr *::after {
	box-sizing: border-box;
}

.awlr__inner {
	background: linear-gradient(165deg, var(--aw-bg) 0%, #151517 55%, #121214 100%);
	border: 1px solid var(--aw-border);
	border-radius: 14px;
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	overflow: hidden;
}

.awlr__form {
	padding: 1.35rem 1.35rem 1rem;
	background-image: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 23px,
		rgba(255, 255, 255, 0.02) 24px
	);
}

.awlr__field {
	margin-bottom: 1.1rem;
}

.awlr__label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--aw-muted);
	margin-bottom: 0.45rem;
}

.awlr__input,
.awlr__select,
.awlr__textarea {
	width: 100%;
	padding: 0.75rem 0.85rem;
	font-size: 1.05rem;
	border-radius: 10px;
	border: 1px solid var(--aw-border);
	background: var(--aw-input);
	color: var(--aw-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.awlr__textarea {
	min-height: 88px;
	resize: vertical;
}

.awlr__input:focus,
.awlr__select:focus,
.awlr__textarea:focus {
	outline: none;
	border-color: var(--aw-accent);
	box-shadow: 0 0 0 3px var(--aw-accent-soft);
}

.awlr__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
}

.awlr__field--grow {
	flex: 1 1 200px;
	min-width: 0;
}

.awlr__field--unit {
	flex: 0 0 180px;
	min-width: 140px;
}

.awlr__input-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.awlr__input-wrap .awlr__input {
	flex: 1;
}

.awlr__suffix {
	font-size: 0.95rem;
	color: var(--aw-muted);
	white-space: nowrap;
}

.awlr__segmented {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.45rem;
}

.awlr__seg-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 0.4rem;
	border-radius: 10px;
	border: 1px solid var(--aw-border);
	background: rgba(0, 0, 0, 0.25);
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--aw-muted);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.awlr__seg-item input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.awlr__seg-item:has(input:checked) {
	border-color: var(--aw-accent);
	color: var(--aw-text);
	background: var(--aw-accent-soft);
	box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.awlr__seg-item:focus-within {
	outline: 2px solid var(--aw-focus);
	outline-offset: 2px;
	border-radius: 12px;
}

.awlr__toggle {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	cursor: pointer;
	font-size: 0.98rem;
	color: var(--aw-text);
	user-select: none;
}

.awlr__toggle input {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--aw-accent);
}

.awlr__notice {
	font-size: 0.92rem;
	color: #e8d9a8;
	background: rgba(201, 162, 39, 0.12);
	border: 1px solid rgba(201, 162, 39, 0.35);
	border-radius: 10px;
	padding: 0.75rem 0.85rem;
	margin: 0 0 1rem;
}

.awlr__spices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-bottom: 0.65rem;
}

.awlr__check {
	font-size: 0.95rem;
	color: var(--aw-text);
}

.awlr__results {
	padding: 1.15rem 1.35rem 1.45rem;
	background: linear-gradient(180deg, rgba(201, 162, 39, 0.07) 0%, transparent 42%), var(--aw-panel);
	border-top: 1px solid var(--aw-border);
}

.awlr__results-title {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--aw-accent);
}

.awlr__dl {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.awlr__dl-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.75rem;
	align-items: baseline;
	padding-bottom: 0.55rem;
	border-bottom: 1px dashed rgba(168, 159, 148, 0.25);
}

.awlr__dl-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.awlr__dl-row dt {
	margin: 0;
	font-size: 0.88rem;
	color: var(--aw-muted);
	font-weight: 500;
}

.awlr__dl-row dd {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--aw-text);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.awlr__details {
	margin-top: 1.35rem;
	border: 1px solid var(--aw-border);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	overflow: hidden;
	color: var(--aw-muted);
	font-size: 0.95rem;
}

.awlr__details summary {
	cursor: pointer;
	list-style: none;
	padding: 0.85rem 1rem;
	margin: 0;
	color: var(--aw-accent);
	font-weight: 600;
	letter-spacing: 0.02em;
	background: rgba(201, 162, 39, 0.09);
	border-bottom: 1px solid rgba(168, 159, 148, 0.22);
	transition: background 0.15s ease;
}

.awlr__details summary::-webkit-details-marker {
	display: none;
}

.awlr__details summary::marker {
	content: '';
}

.awlr__details summary::before {
	content: '▸';
	display: inline-block;
	margin-right: 0.45rem;
	color: var(--aw-accent);
	font-size: 0.85em;
	transition: transform 0.15s ease;
	vertical-align: middle;
}

.awlr__details[open] summary::before {
	transform: rotate(90deg);
}

.awlr__details summary:hover {
	background: rgba(201, 162, 39, 0.14);
}

.awlr__details[open] summary {
	border-bottom-color: rgba(201, 162, 39, 0.35);
}

.awlr__details-body {
	padding: 1rem 1.1rem 1.05rem;
	background: linear-gradient(180deg, rgba(37, 37, 40, 0.65) 0%, rgba(18, 18, 20, 0.45) 100%);
}

.awlr__details-body p {
	margin: 0;
	padding: 0.75rem 0;
	line-height: 1.55;
	border-bottom: 1px dashed rgba(168, 159, 148, 0.2);
	color: var(--aw-text);
}

.awlr__details-body p:first-child {
	padding-top: 0.15rem;
}

.awlr__details-body p:last-child {
	padding-bottom: 0.15rem;
	border-bottom: 0;
}

.awlr__actions {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px dashed rgba(168, 159, 148, 0.2);
}

.awlr__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.65rem;
	padding: 0.55rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 10px;
	cursor: pointer;
	border: 1px solid var(--aw-accent);
	background: var(--aw-accent-soft);
	color: var(--aw-text);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.awlr__btn:hover {
	background: rgba(201, 162, 39, 0.28);
}

.awlr__btn:focus-visible {
	outline: 2px solid var(--aw-focus);
	outline-offset: 3px;
}

.awlr__muted {
	color: var(--aw-muted);
	font-size: 0.95rem;
	margin: 0;
}

@media (max-width: 520px) {
	.awlr__segmented {
		grid-template-columns: 1fr;
	}

	.awlr__field--unit {
		flex: 1 1 100%;
	}

	.awlr__dl-row {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.awlr__dl-row dd {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.awlr__input,
	.awlr__select,
	.awlr__textarea,
	.awlr__seg-item,
	.awlr__btn,
	.awlr__details summary,
	.awlr__details summary::before {
		transition: none;
	}
}
