/* einbruchschutz — 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: a slightly wider measure keeps the two-sentence lead from stacking too tall */
.es-hero .hero__lead { max-width: 46ch; }

/* 2 · Schwachstellen: heading left, answer + lead right; three part cards in a row, the longer "other doors" card spans the full width */
.es-weak__head { max-width: none; display: grid; gap: var(--s-5) var(--s-8); grid-template-columns: minmax(0, 1fr); }
.es-weak__head > * + * { margin-top: 0; }
.es-weak__title > * + * { margin-top: var(--s-3); }
.es-weak__intro > * + * { margin-top: var(--s-4); }
.es-weak__grid { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
.es-weak__card { box-shadow: var(--sh-sm); }
.es-weak__card > .cog-badge { margin-bottom: var(--s-1); }
.es-weak__card p { overflow-wrap: break-word; hyphens: auto; }
.es-weak__body > * + * { margin-top: var(--s-3); }
@media (min-width: 48em) {
	.es-weak__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.es-weak__card:nth-child(3), .es-weak__card--wide { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
	.es-weak__head { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
	.es-weak__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.es-weak__card:nth-child(3) { grid-column: auto; }
	.es-weak__card--wide {
		grid-column: 1 / -1;
		display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); grid-template-areas: "badge body" "title body";
		column-gap: var(--s-8); row-gap: var(--s-3); align-content: start;
	}
	.es-weak__card--wide > * { margin-top: 0; }
	.es-weak__card--wide > .cog-badge { grid-area: badge; margin-bottom: 0; }
	.es-weak__card--wide > .card__title { grid-area: title; }
	.es-weak__card--wide > .es-weak__body { grid-area: body; }
}

/* 3 · Bauteile: table, then the four-question self check beside its intro and outro */
.es-check {
	display: grid; gap: var(--s-5) var(--s-7); margin-top: var(--s-7); align-items: start;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "intro" "list" "outro";
}
.es-check__intro { grid-area: intro; font-size: var(--fs-md); max-width: 52ch; }
.es-check__list { grid-area: list; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.es-check__outro { grid-area: outro; max-width: 52ch; }
.es-check__outro > * + * { margin-top: var(--s-4); }
.es-check__list .icon-list__title { font-weight: 600; padding-top: 0; }
@media (min-width: 40em) {
	.es-check__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.es-check__list .icon-list__item { grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--s-3); }
	.es-check__list .icon-list__icon { grid-row: auto; }
}
@media (min-width: 56em) {
	.es-check {
		grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
		grid-template-rows: auto 1fr;
		grid-template-areas: "intro list" "outro list";
	}
}

/* 4 · RC-Klassen: night split (answer + photo), the scope limit boxed as a full-width card below */
.es-rc .split + .es-rc__limit { margin-top: var(--s-7); }
.es-rc__limit { border-left: 5px solid var(--c-brand-sky); box-shadow: var(--sh-md); }
.es-rc__limit p { max-width: 70ch; }
.es-rc__note { margin-top: var(--s-5); max-width: 70ch; }
@media (min-width: 56em) {
	.es-rc .split { align-items: center; }
	.es-rc__limit { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: var(--s-4) var(--s-8); align-items: start; padding-block: var(--s-6); }
	.es-rc__limit > * { margin-top: 0; }
	.es-rc__limit .card__title { font-size: var(--fs-xl); font-family: var(--f-display); line-height: 1.1; }
}

/* 5 · Förderung: sticky dated answer on the left, six official sources on the right */
.es-help__grid { display: grid; gap: var(--s-6) var(--s-8); grid-template-columns: minmax(0, 1fr); }
.es-help__head > * + * { margin-top: var(--s-4); }
.es-help__list { gap: var(--s-4); }
.es-help__list .icon-list__item { min-width: 0; }
.es-help__list .icon-list__title, .es-help__list .icon-list__text { overflow-wrap: anywhere; hyphens: auto; }
@media (min-width: 64em) {
	.es-help__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
	.es-help__head { position: sticky; top: calc(var(--header-real, var(--header-h)) + 1.5rem); }
}

/* 6 · Ablauf: the call row under the steps */
.es-flow__call {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4) var(--s-5); align-items: center;
	margin-top: var(--s-7); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
	background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-xl);
}
.es-flow__text { max-width: 62ch; }
.es-flow__call > .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 64em) {
	.es-flow__call { grid-template-columns: auto minmax(0, 1fr) auto; }
	.es-flow__call > .btn { grid-column: auto; justify-self: end; }
}
@media (max-width: 29.99em) {
	.es-flow__call > .btn { justify-self: stretch; }
}
