/* ==========================================================================
   /notdienst/schluessel-abgebrochen/ — page layout only.
   Tokens from theme.css only, no new colours or sizes.
   Idea: "Die Bruchstelle" — a macro keyhole hero with a phone strip, a dark do/don't band
   (danger-red cross cards against a violet key-blade timeline), alternating wide photo rows,
   a light/dark contrast duo with an octagon "oder", a vertical call timeline beside a sticky photo.
   ========================================================================== */

/* 01 · hero: situation hero, bottom-anchored, phone strip as emergency bar ---------- */
.hero--abg { --hero-h: clamp(36rem, 82vh, 48rem); padding-bottom: 0; grid-template-rows: 1fr auto; align-items: stretch; }
.hero--abg .hero__inner { align-self: end; padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero--abg .hero__content { max-width: 52rem; }
.hero--abg .hero__checks { width: 100%; }
/* the macro photo is dark by nature: a lighter scrim than the shared one keeps the keyhole readable, the text column keeps its own shade */
.hero--abg::after {
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--ink-950) 38%, transparent) 0%, color-mix(in srgb, var(--ink-900) 30%, transparent) 40%, color-mix(in srgb, var(--ink-950) 92%, transparent) 100%),
		linear-gradient(90deg, color-mix(in srgb, var(--ink-950) 72%, transparent) 0%, color-mix(in srgb, var(--ink-950) 25%, transparent) 62%, transparent 100%),
		radial-gradient(90% 70% at 12% 35%, color-mix(in srgb, var(--plum) 32%, transparent), transparent 62%);
}
@media (min-width: 60em) {
	.hero--abg .hero__checks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
	.hero--abg .hero__checks li { padding-top: var(--sp-3); border-top: 1px solid color-mix(in srgb, var(--violet-300) 45%, transparent); }
}

/* 02 · abgrenzung: 112 notice --------------------------------------------------------- */
.ab-notruf .notice__body > p { max-width: 62ch; }

/* 03 · nicht-tun: dark band, cross cards vs numbered timeline ------------------------- */
.ab-tun__head { max-width: 52rem; }
.ab-tun__head .answer { max-width: none; }
.ab-tun__more { max-width: 62ch; color: var(--c-muted); }
.ab-tun__grid { display: grid; gap: var(--sp-7); align-items: start; }
.ab-tun__col { min-width: 0; }
@media (min-width: 64em) {
	.ab-tun__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); }
}
.ab-tun__title { display: flex; align-items: center; gap: 0.6em; margin-bottom: var(--sp-5); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; }
.ab-tun__title .i { width: 1.5rem; height: 1.5rem; flex: none; color: var(--c-accent); }
.ab-tun .icon-list--cross { gap: var(--sp-3); }
.ab-tun .icon-list--cross .icon-list__item { border-left: 4px solid var(--danger-band); }
.ab-tun .icon-list--cross .icon-list__icon { background: var(--danger-band); color: var(--white); box-shadow: none; }
.ab-tun .step__title { font-family: var(--font-body); font-weight: 700; color: var(--c-heading); }
.ab-tun .step__call { margin-block: var(--sp-2) var(--sp-1); }
.ab-tun .steps--vertical { max-width: none; }

/* 04 · ursachen: alternating wide photo rows ------------------------------------------- */
.ab-causes { display: grid; gap: var(--sp-6); margin: 0; padding: 0; list-style: none; }
.ab-cause { display: grid; gap: var(--sp-5); align-items: center; padding: var(--sp-4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); min-width: 0; }
.ab-cause__media { position: relative; }
.ab-cause__no {
	position: absolute; left: var(--sp-4); bottom: var(--sp-4); z-index: 2; display: grid; place-items: center;
	width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white);
	font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1;
}
.ab-cause__body { display: grid; gap: var(--sp-3); min-width: 0; align-content: center; }
.ab-cause__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.12; }
.ab-cause__body a { font-weight: 700; }
@media (min-width: 60em) {
	.ab-cause { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); padding: var(--sp-5); }
	.ab-cause--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.ab-cause--flip .ab-cause__media { order: 2; }
}

/* 05 · reparieren-oder-tauschen: light / dark contrast duo ----------------------------- */
.ab-duo { position: relative; display: grid; gap: var(--sp-5); }
.ab-duo__card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); min-width: 0; padding: var(--sp-6) var(--sp-5) var(--sp-5); border-radius: var(--r-lg); color: var(--c-fg); }
.ab-duo__result { display: flex; align-items: center; gap: 0.6em; margin-top: auto; padding-top: var(--sp-4); font-weight: 700; color: var(--c-heading); }
.ab-duo__result .i { flex: none; color: var(--c-accent); }
.ab-duo__card > p:not([class]) { margin-bottom: var(--sp-2); }
.ab-duo__card--keep { background: var(--c-surface); border: 1px solid var(--c-line); border-top: 6px solid var(--violet-500); box-shadow: var(--sh-md); }
.ab-duo__card--swap { background-color: var(--c-bg); background-image: var(--grad-spot); border: 1px solid var(--c-line); box-shadow: var(--sh-lg); }
.ab-duo__badge { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
.ab-duo__badge .i { width: 1.6rem; height: 1.6rem; }
.ab-duo__tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent); }
.ab-duo__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; }
.ab-duo__card a { font-weight: 700; }
.ab-duo__or {
	z-index: 3; justify-self: center; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; margin-block: calc(var(--sp-4) * -1);
	clip-path: var(--oct); background: var(--violet-500); color: var(--white);
	font-family: var(--font-display); font-size: var(--fs-md); line-height: 1;
}
@media (min-width: 64em) {
	.ab-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); }
	.ab-duo__or { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; }
	.ab-duo__card { padding: var(--sp-7) var(--sp-6) var(--sp-6); }
}

/* 06 · ablauf: vertical call timeline beside a sticky portrait photo ------------------- */
.ab-ablauf__grid { display: grid; gap: var(--sp-7); align-items: start; }
.ab-ablauf__figure { position: relative; max-width: 26rem; width: 100%; }
.ab-ablauf__figure .frame { --ratio: 16 / 10; box-shadow: var(--sh-lg); }
.ab-ablauf__main { min-width: 0; }
.ab-ablauf .steps--vertical { max-width: 48rem; }
.ab-ablauf .step__text a { font-weight: 700; }
@media (min-width: 64em) {
	.ab-ablauf__grid { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: var(--sp-8); }
	.ab-ablauf__figure { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
	.ab-ablauf__figure .frame { --ratio: 4 / 5; }
}

/* 07 · kostenlose-beratung: who pays + call strip -------------------------------------- */
.ab-kosten__grid { display: grid; gap: var(--sp-6); align-items: start; }
.ab-kosten__head { max-width: none; margin-bottom: 0; }
.ab-kosten__head .answer { max-width: none; }
.ab-kosten__text { min-width: 0; }
.ab-kosten__text a { font-weight: 700; }
.ab-kosten .callstrip__text { max-width: 46rem; }
.ab-kosten .callstrip a:not(.btn) { color: var(--white); font-weight: 700; text-decoration: underline; }
@media (min-width: 60em) {
	.ab-kosten__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--sp-8); }
}

/* 08 · faq: sticky heading + call left, accordion right -------------------------------- */
.ab-faq__grid { display: grid; gap: var(--sp-6); align-items: start; }
.ab-faq__side > * + * { margin-top: var(--sp-4); }
.ab-faq__grid .faq { max-width: none; }
@media (min-width: 60em) {
	.ab-faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-8); }
	.ab-faq__side { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}
