/* ==========================================================================
   Einbruchschutz (/leistungen/einbruchschutz/) — page layout only.
   Tokens from theme.css only: no colour literals, no new font sizes, no !important.
   Prefix .eb-
   ========================================================================== */

/* 1 · hero — landscape chamfered photo + octagon seal ------------------- */
.eb-hero__figure .frame { --ratio: 3 / 2; }
.eb-seal {
	position: absolute; top: calc(var(--sp-5) * -1); right: var(--sp-4); z-index: 3;
	display: grid; place-items: center; width: 4.5rem; height: 4.5rem;
	background: var(--violet-500); color: var(--white);
}
.eb-seal .i { width: 2rem; height: 2rem; }

/* 2 · weak points — before/after board --------------------------------- */
.eb-weak__board { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.eb-weak__ba .ba { max-width: none; margin-inline: 0; }
.eb-weak__verdicts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); min-width: 0; }
.eb-verdict {
	display: grid; gap: var(--sp-4); padding: var(--sp-5);
	background: var(--c-surface); border: 1px solid var(--c-line); border-top: 6px solid var(--c-line-strong);
	border-radius: var(--r-lg);
}
.eb-verdict--after { border-top-color: var(--violet-500); box-shadow: var(--sh-md); }
.eb-verdict__title { font-size: var(--fs-md); }
.eb-verdict .icon-list { gap: var(--sp-3); }
.eb-verdict .icon-list__title { font-weight: 600; }
.eb-weak__notice { margin-top: var(--sp-7); }
.eb-weak .section-head--split, .eb-massnahmen .section-head--split { align-items: start; }
@media (min-width: 64em) {
	.eb-weak__board { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--sp-7); }
	.eb-weak__ba { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}

/* 3 · measures — dark 2x2 photo cards, staggered ------------------------ */
.eb-massnahmen__grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--sp-6); }
.eb-massnahmen .svc-card__text a { text-decoration: underline; text-underline-offset: 0.2em; }
/* let the octagon badge overhang the photo instead of being clipped by it (the card itself still clips the corners) */
.eb-massnahmen .svc-card__media { overflow: visible; }
.eb-massnahmen .svc-card:hover .svc-card__media > img { transform: none; }
@media (min-width: 48em) {
	.eb-massnahmen__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eb-massnahmen__grid > :nth-child(even) { margin-top: var(--sp-7); }
}

/* 4 · RC classes — reading desk (sticky text left, table + notices right) */
.eb-rc__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
.eb-rc__intro { margin-bottom: 0; }
.eb-rc__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); min-width: 0; }
.eb-rc__main > * { min-width: 0; }
.eb-rc__badge { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); color: var(--c-muted); font-weight: 700; }
.eb-rc__oct { display: grid; place-items: center; flex: none; width: 5.5rem; height: 5.5rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); }
.eb-rc__notes { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.eb-rc__notes .notice { max-width: none; }
.eb-rc .compare__table tr.is-rec > th,
.eb-rc .compare__table tr.is-rec > td { background: var(--violet-50); }
.eb-rc .compare__table tr.is-rec > th { box-shadow: inset 5px 0 0 var(--violet-500); }
@media (min-width: 64em) {
	.eb-rc__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: var(--sp-8); align-items: start; }
	.eb-rc__intro { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}

/* 5 · process — step icons sit at the foot of each card ------------------ */
.eb-step__icon { order: 99; margin-top: auto; align-self: flex-end; width: 2.25rem; height: 2.25rem; color: var(--c-accent); opacity: 0.5; }

/* 6 · signature — who decides (light vs dark door frame) ------------------ */
.eb-court__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); min-width: 0; }
.eb-court__chain-intro { max-width: none; font-size: var(--fs-md); color: var(--c-heading); }
.eb-court__pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
.eb-or { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
@media (min-width: 40em) {
	.eb-door { display: grid; grid-template-columns: minmax(11rem, 0.42fr) minmax(0, 1fr); }
	.eb-door .door-frame__media { aspect-ratio: auto; min-height: 100%; }
	.eb-door .door-frame__media > img, .eb-door .door-frame__media > .img-placeholder { position: absolute; inset: 0; }
}

/* 7 · call strip + notes ---------------------------------------------------- */
.eb-call__notes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.eb-note {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: start; padding: var(--sp-5);
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
}
.eb-note__icon { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--violet-500); color: var(--white); clip-path: var(--oct); }
.eb-note p { max-width: none; }
@media (min-width: 48em) {
	.eb-call__notes { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

/* 8 · neutral advice ---------------------------------------------------------- */
.eb-neutral__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.eb-neutral .notice { max-width: none; }
@media (min-width: 64em) {
	.eb-neutral__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

/* 9 · FAQ — sticky head + phone card left, accordion right ------------------------- */
.eb-faq__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
.eb-faq__head .section-head { margin-bottom: var(--sp-5); }
.eb-faq .faq { max-width: none; min-width: 0; }
.eb-faq__call { flex-direction: column; align-items: stretch; }
@media (min-width: 64em) {
	.eb-faq__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--sp-8); align-items: start; }
	.eb-faq__head { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}

/* four steps: 2 x 2 on tablets (auto-fit leaves a lone fourth step at 768 px) */
@media (min-width: 40em) and (max-width: 63.99em) {
	.eb-ablauf .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
