/* Konfigurator Grabeinfassung – ruhig, wenige Entscheidungen (V9 §15 Native Simplicity) */
.aa-konfigurator {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: var(--wp--preset--spacing--60, 64px);
	align-items: start;
}
@media (max-width: 960px) {
	.aa-konfigurator {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--40, 32px);
	}
}

/* Zeichnung */
.aa-konf-zeichnung {
	position: sticky;
	top: 24px;
	padding: var(--wp--preset--spacing--30, 24px);
	border-radius: 18px;
	background: var(--wp--preset--color--flaeche, #f7f7f4);
}
@media (max-width: 960px) {
	.aa-konf-zeichnung {
		position: static;
	}
}
.aa-skizze {
	display: block;
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	height: auto;
	touch-action: none;
	user-select: none;
}
.aa-raster {
	fill: none;
	stroke: var(--wp--preset--color--linie, #dfdfdb);
	stroke-dasharray: 4 4;
}
.aa-aussen {
	fill: #8b5a3c;
	transition: fill 150ms;
}
.aa-innen {
	fill: var(--wp--preset--color--bildgrund, #efeeea);
}
.aa-masstext {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 11px;
	fill: var(--wp--preset--color--text, #292a28);
	font-variant-numeric: tabular-nums;
}
.aa-griff {
	cursor: ew-resize;
	outline: none;
}
.aa-griff[data-griff="l"] {
	cursor: ns-resize;
}
.aa-griff-ecke {
	cursor: nwse-resize;
}
.aa-griff-flaeche {
	fill: transparent;
}
.aa-griff-sichtbar {
	fill: var(--wp--preset--color--text, #292a28);
	stroke: #fff;
	stroke-width: 2;
}
.aa-griff:hover .aa-griff-sichtbar,
.aa-griff:focus-visible .aa-griff-sichtbar,
.zieht .aa-griff-sichtbar {
	fill: #000;
}
.aa-griff:focus-visible .aa-griff-flaeche {
	fill: rgba(41, 42, 40, 0.08);
}

/* Auswahl */
.aa-konfigurator fieldset {
	margin: 0 0 var(--wp--preset--spacing--40, 32px);
	padding: 0;
	border: 0;
}
.aa-konfigurator legend {
	margin-bottom: 12px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.25rem;
	font-weight: 650;
}
.aa-wahl {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.aa-wahl label {
	position: relative;
	padding: 12px 22px;
	border: 1px solid var(--wp--preset--color--linie, #dfdfdb);
	border-radius: 9999px;
	cursor: pointer;
	background: var(--wp--preset--color--hintergrund, #fff);
}
.aa-wahl input {
	position: absolute;
	opacity: 0;
}
.aa-wahl label:has(input:checked) {
	border-color: var(--wp--preset--color--akzent, #ffbc73);
	background: var(--wp--preset--color--akzent, #ffbc73);
}
.aa-wahl label:has(input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--text, #292a28);
	outline-offset: 3px;
}
.aa-wahl label.ist-aus {
	cursor: not-allowed;
	color: var(--wp--preset--color--text-gedaempft, #72736f);
	background: var(--wp--preset--color--flaeche, #f7f7f4);
	text-decoration: line-through;
}

.aa-masse {
	display: flex;
	align-items: end;
	gap: 12px;
}
.aa-masse label {
	display: grid;
	gap: 4px;
	color: var(--wp--preset--color--text-gedaempft, #72736f);
}
.aa-masse input {
	width: 8.5em;
	padding: 12px;
	border: 1px solid var(--wp--preset--color--linie, #dfdfdb);
	border-radius: 2px;
	font: inherit;
	color: var(--wp--preset--color--text, #292a28);
	font-variant-numeric: tabular-nums;
}
.aa-masse span {
	padding-bottom: 12px;
}
.aa-hinweis,
.aa-konf-info,
.aa-konf-klein {
	color: var(--wp--preset--color--text-gedaempft, #72736f);
}

/* Ergebnis */
.aa-konf-ergebnis {
	padding-top: var(--wp--preset--spacing--30, 24px);
	border-top: 1px solid var(--wp--preset--color--linie, #dfdfdb);
}
.aa-konf-zusammenfassung {
	margin: 0 0 8px;
	font-weight: 500;
}
.aa-konf-preis {
	margin: 0;
	font-size: var(--wp--preset--font-size--xxl, 2rem);
	font-variant-numeric: tabular-nums;
}
.aa-konf-preis small {
	font-size: 1rem;
	color: var(--wp--preset--color--text-gedaempft, #72736f);
}

/* Schmale Bildschirme: Spalte darf nicht breiter als der Bildschirm werden */
@media (max-width: 960px) {
	.aa-konfigurator { grid-template-columns: minmax(0, 1fr); }
}
.aa-masse label { min-width: 0; flex: 1 1 0; }
.aa-masse input { width: 100%; min-width: 0; box-sizing: border-box; }

/* Material in der Zeichnung und an der Auswahl */
.aa-aussen { fill: transparent; }
.aa-wangen polygon { stroke: rgba(0, 0, 0, 0.32); stroke-width: 0.5; stroke-linejoin: round; }
.aa-materialtext { fill: var(--wp--preset--color--text-gedaempft, #6c6c66); font-size: 11px; letter-spacing: 0.02em; pointer-events: none; }
.aa-materialfeld { display: inline-block; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background-size: 110px auto; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); vertical-align: -5px; }
.aa-materialtext tspan:first-child { fill: var(--wp--preset--color--text, #2b2b28); font-weight: 500; }
.aa-konfigurator .aa-wahl label[hidden], .aa-konfigurator label[hidden]:has(> .aa-wange-foto) {
	display: none !important;
}
