/* schliessanlagen — page layout only. Tokens and bricks come from theme.css; nothing here defines a colour, a font size or a radius of its own. */

/* 1 · hero */
.sa-hero .hero__lead { max-width: 46ch; }

/* 2 · Grundlagen: definition + photo, the two forms as cards, the Schließplan band */
.sa-what__top { align-items: center; }
.sa-forms { margin-top: var(--s-7); gap: var(--s-5); }
.sa-forms__card { box-shadow: var(--sh-sm); }
.sa-forms__card > .cog-badge { margin-bottom: var(--s-1); }
.sa-forms__card p { overflow-wrap: break-word; hyphens: auto; }
.sa-forms__name {
	display: block; margin-bottom: var(--s-2);
	font-family: var(--f-display); font-weight: 700; font-size: var(--fs-xl); line-height: 1.1; color: var(--c-heading);
}
.sa-what__plan {
	display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-5);
	padding: clamp(1.1rem, .9rem + 1vw, 1.75rem); background: var(--c-brand-tint); border: 1px solid var(--c-brand-tint-2); border-radius: var(--r-lg);
}
.sa-what__plan p { font-size: var(--fs-md); line-height: 1.5; max-width: 70ch; }
.sa-what__close { margin-top: var(--s-5); max-width: 70ch; font-size: var(--fs-md); line-height: 1.55; }

/* 3 · Anlagentypen: table, then the mixing text beside a night illustration of a Schließplan */
.sa-mix { margin-top: var(--s-7); align-items: start; }
.sa-plan { margin: 0; }
.sa-plan > * + * { margin-top: var(--s-4); }
.sa-plan__head { display: flex; align-items: center; gap: var(--s-3); }
.sa-plan__title { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg); line-height: 1.1; color: var(--c-heading); }
.sa-plan__rows { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.sa-plan__row { padding: var(--s-3) var(--s-4) var(--s-4); border: 1px solid var(--c-card-line); border-radius: var(--r-md); }
.sa-plan__row--main { border-color: var(--c-brand-sky); }
.sa-plan__key { margin-bottom: var(--s-2); font-weight: 700; line-height: 1.3; color: var(--c-heading); }
.sa-plan__doors { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sa-plan__door {
	display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem .3rem .65rem;
	border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3;
}
.sa-plan__door .i { width: 1rem; height: 1rem; stroke-width: 3; }
.sa-plan__door.is-open { background: var(--c-brand-700); color: var(--c-white); }
.sa-plan__door.is-closed { border: 1px dashed var(--c-line-strong); color: var(--c-on-night-muted); text-decoration: line-through; }
.sa-plan__note { display: flex; align-items: flex-start; gap: .5rem; font-size: var(--fs-sm); line-height: 1.45; color: var(--c-text-muted); }
.sa-plan__note .i { flex: none; margin-top: .1rem; color: var(--c-brand-sky); }

/* 4 · Zielgruppen: dark gallery, the Hausverwaltung card spans the row, the other two share the next one */
.sa-who .svc-grid { grid-template-columns: minmax(0, 1fr); }
.sa-who .svc-card__text { overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 48em) {
	.sa-who .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sa-who .svc-grid > li:first-child { grid-column: 1 / -1; }
}

/* 5 · Schlüsselverlust: 2 × 2 steps, the legal note as a band below */
.sa-lost__steps { grid-template-columns: minmax(0, 1fr); }
.sa-lost__cost { margin-top: var(--s-6); }
@media (min-width: 40em) {
	.sa-lost__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
	.sa-lost__steps .step:nth-child(even)::after { display: none; }
}

/* 6 · Planung: checklist left, the price note stays in view on the right, then the call strip */
.sa-prep { display: grid; gap: var(--s-6); align-items: start; grid-template-columns: minmax(0, 1fr); }
.sa-prep__list { gap: var(--s-3); }
.sa-prep__list .icon-list__item { min-width: 0; }
.sa-prep__list .icon-list__title, .sa-prep__list .icon-list__text { overflow-wrap: break-word; hyphens: auto; }
.sa-prep__price { align-self: start; }
.sa-call { margin-top: var(--s-7); }
.sa-foot { display: flex; align-items: flex-start; gap: var(--s-3); margin-top: var(--s-6); max-width: 70ch; color: var(--c-text-muted); }
.sa-foot .i { flex: none; margin-top: .25rem; color: var(--c-link); }
@media (min-width: 64em) {
	.sa-prep { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-8); }
	.sa-prep__price { position: sticky; top: calc(var(--header-real, var(--header-h)) + 1.5rem); }
}
