/* ==========================================================================
   Zerstörungsfrei öffnen (/ratgeber/zerstoerungsfreie-oeffnung-statt-aufbohren/) — page layout only.
   Tokens from theme.css only (no new colours, no new font sizes). Prefix: zf-
   Plan: plans/zerstoerungsfrei-oeffnen.plan.md
   ========================================================================== */

[id^="zf-"] { scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }

/* 1 · hero — article band + chamfered keyhole macro + jump chips ------------- */
.zf-hero .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.zf-hero .hero__content { max-width: none; min-width: 0; }
.zf-hero .hero__title { max-width: 24ch; }
.zf-hero .hero__lead { max-width: 40rem; }
.zf-hero__frame { --ratio: 4 / 3; }
.zf-hero__figure .frame__tag { left: var(--sp-5); bottom: var(--sp-5); }
@media (min-width: 60em) {
	.zf-hero .hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--sp-8); }
	.zf-hero__frame { --ratio: 4 / 5; }
}
.zf-jump { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--sp-2); width: 100%; min-width: 0; margin-top: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid color-mix(in srgb, var(--violet-300) 32%, transparent); overflow-x: auto; scrollbar-width: thin; }
.zf-jump__label { flex: none; margin-right: var(--sp-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.zf-jump a { flex: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--violet-300) 45%, transparent); background: color-mix(in srgb, var(--ink-950) 55%, transparent); color: var(--white); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.zf-jump a:hover { background: var(--violet-500); border-color: var(--violet-500); color: var(--white); }
@media (min-width: 60em) {
	.zf-jump { flex-wrap: wrap; overflow: visible; }
}

/* 2 · kurze Antwort — answer text left, two practical tips right ------------- */
.zf-short__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
.zf-short__main > * { max-width: 62ch; }
.zf-short__tips { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
@media (min-width: 64em) {
	.zf-short__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sp-9); }
	.zf-short__tips { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}
.zf-tip { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-top: 5px solid var(--violet-500); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--sh-sm); }
.zf-tip__icon { display: grid; place-items: center; width: 3rem; height: 3rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
.zf-tip__body { min-width: 0; display: grid; gap: var(--sp-3); }
.zf-tip__body > * { margin: 0; }
.zf-tip__title { font-size: var(--fs-md); line-height: 1.25; color: var(--c-heading); }

/* 3 · schonend öffnen — dark gallery of three cases ------------------------- */
.zf-altbau { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4) var(--sp-5); align-items: start; margin-bottom: var(--sp-8); padding: var(--sp-6) var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-left: 6px solid var(--violet-500); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.zf-altbau__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
.zf-altbau__body { min-width: 0; display: grid; gap: var(--sp-2); }
.zf-altbau__body > * { margin: 0; }
.zf-altbau__body > p:not(.zf-altbau__label) { max-width: none; column-width: 26rem; column-gap: var(--sp-7); }
.zf-altbau__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent); }
.zf-cases { gap: var(--sp-6); }
@media (min-width: 64em) {
	.zf-cases { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.9fr); }
	.zf-case .svc-card__media { aspect-ratio: auto; height: 14rem; } /* same photo height in all three columns */
}
/* tablet: the grid auto-fits to two columns, so the odd third Fall spans the full row (photo left, text right) instead of sitting alone */
@media (min-width: 42em) and (max-width: 63.99em) {
	.zf-cases > .zf-case:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
	.zf-cases > .zf-case:last-child:nth-child(odd) .svc-card__media { flex: 0 0 40%; aspect-ratio: auto; min-height: 15rem; }
	.zf-cases > .zf-case:last-child:nth-child(odd) .svc-card__media > img { position: absolute; inset: 0; }
	.zf-cases > .zf-case:last-child:nth-child(odd) .svc-card__body { flex: 1; min-width: 0; align-self: center; }
}
.zf-case .svc-card__badge { bottom: var(--sp-4); } /* media is overflow:hidden, so the badge sits inside the photo instead of straddling its edge */
.zf-case .svc-card__body { gap: var(--sp-3); }
.zf-case__no { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent); }
.zf-case .svc-card__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.15; }
.zf-case .svc-card__text { color: var(--c-fg); }
@media (max-width: 30em) {
	.zf-altbau { grid-template-columns: 1fr; }
}

/* 4 · wann bohren — sticky head + stacked reason cards ---------------------- */
.zf-drill__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
.zf-drill__note { padding-top: var(--sp-4); border-top: 1px solid var(--c-line-strong); color: var(--c-muted); max-width: 52ch; }
.zf-drill__list { gap: var(--sp-5); }
.zf-drill__list .icon-list__item { padding: var(--sp-5); border-left: 5px solid var(--violet-500); box-shadow: var(--sh-sm); }
.zf-drill__list .icon-list__icon { width: 3.25rem; height: 3.25rem; border-radius: 0; clip-path: var(--oct); background: var(--violet-500); color: var(--white); box-shadow: none; }
.zf-drill__list .icon-list__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; }
.zf-drill__list .icon-list__text { margin-top: var(--sp-2); color: var(--c-fg); }
@media (min-width: 64em) {
	.zf-drill__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--sp-9); }
	.zf-drill__head { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}

/* 5 · vorher / nachher — centred slider + state strip + two notes ----------- */
.zf-after__ba { max-width: 46rem; }
.zf-states { display: grid; gap: var(--sp-4); align-items: stretch; margin-top: var(--sp-8); }
.zf-state { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3) var(--sp-4); align-content: start; padding: var(--sp-5) var(--sp-5) var(--sp-6); background: var(--c-surface); color: var(--c-fg); border: 1px solid var(--c-line); border-top: 6px solid var(--violet-300); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--sh-sm); }
.zf-state > p { grid-column: 1 / -1; max-width: none; margin: 0; }
.zf-state--after { background: var(--ink-800); border-color: var(--ink-700); border-top-color: var(--violet-500); box-shadow: var(--sh-md); }
.zf-state__icon { display: grid; place-items: center; width: 3rem; height: 3rem; clip-path: var(--oct); background: var(--c-surface-2); color: var(--c-accent); }
.zf-state--after .zf-state__icon { background: var(--violet-500); color: var(--white); }
.zf-state__title { align-self: center; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; color: var(--c-heading); }
.zf-states__arrow { justify-self: center; align-self: center; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); transform: rotate(90deg); }
@media (min-width: 48em) {
	.zf-states { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--sp-5); }
	.zf-states__arrow { transform: none; }
}
.zf-notes { display: grid; gap: var(--sp-5); margin-top: var(--sp-7); align-items: stretch; }
.zf-notes .notice { max-width: none; }
.zf-note--cost { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-left: 6px solid var(--violet-500); border-radius: var(--r-md); }
.zf-note--cost p { margin: 0; max-width: none; }
.zf-note__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
@media (min-width: 64em) {
	.zf-notes { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* 6 · Warnzeichen — warn notice with a cross checklist + pull-quote ---------- */
.zf-signs__notice { padding: var(--sp-5); }
.zf-signs__notice .icon-list--cards .icon-list__item { background: var(--white); }
.zf-signs__notice .icon-list__title { font-weight: 600; line-height: 1.4; }
.zf-say { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3) var(--sp-5); align-items: start; margin: var(--sp-7) 0 0; padding: var(--sp-6) var(--sp-5); background: var(--ink-900); color: var(--on-dark); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); box-shadow: var(--sh-md); }
.zf-say__mark { font-family: var(--font-display); font-size: var(--fs-display); line-height: 0.8; color: var(--violet-300); }
.zf-say__text { margin: 0; max-width: 62ch; color: var(--on-dark); }
.zf-say__quote { display: block; margin: var(--sp-3) 0; padding-left: var(--sp-4); border-left: 3px solid var(--violet-300); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.3; color: var(--white); }
.zf-say__text a { color: var(--violet-300); font-weight: 600; }
@media (min-width: 48em) {
	.zf-say { padding: var(--sp-7) var(--sp-7); }
}
@media (min-width: 48em) {
	.zf-signs__notice .icon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zf-signs__notice .icon-list__item:last-child { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
	.zf-signs__notice .icon-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.zf-signs__notice .icon-list__item { grid-column: span 2; }
	.zf-signs__notice .icon-list__item:nth-child(n + 4) { grid-column: span 3; }
}

/* 7 · So gehen wir vor — paragraphs left, call card + 112 right -------------- */
.zf-flow__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
.zf-flow__main > * { max-width: 62ch; }
.zf-flow__main .lead { font-size: var(--fs-md); }
.zf-flow__side { gap: var(--sp-5); }
.zf-flow__call { flex-direction: column; align-items: stretch; justify-content: flex-start; }
.zf-flow__more { color: var(--c-muted); }
@media (min-width: 64em) {
	.zf-flow__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--sp-9); }
}

/* 8 · FAQ — sticky call card + accordion ------------------------------------ */
.zf-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
.zf-faq__side { display: grid; gap: var(--sp-4); align-content: start; }
.zf-faq__side > * { margin: 0; }
.zf-faq__line { color: var(--c-muted); max-width: 34ch; }
.zf-faq__call { margin-top: var(--sp-2); }
.zf-faq .faq { max-width: none; }
@media (min-width: 64em) {
	.zf-faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-9); }
	.zf-faq__side { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}

/* narrow phones (320): icon above the title so "Sicherheitszylinder" is not split mid-word */
@media (max-width: 30em) {
	.zf-drill__list .icon-list__item { grid-template-columns: minmax(0, 1fr); }
	.zf-drill__list .icon-list__title { hyphens: auto; }
}
