/* ==========================================================================
   /notdienst/schloss-klemmt/ — page layout only (prefix .kl-).
   Tokens from theme.css, no new colours or sizes, no overrides by force.
   Idea: "Die Diagnose" — a calm, info-first problem page. One question runs through it:
   wo hakt es — Schlüssel, Zylinder oder Tür? Hero panel with a key-blade line of three octagon
   nodes, symptom tiles with cause tags, a do-list with stop markers, an escalation ladder on the
   dark band, a decision fork + call strip, FAQ beside a tall octagon door photo.
   ========================================================================== */

/* 01 · hero: alarm skeleton (text + panel + phone strip), diagnosis panel on the right ---------- */
.hero--klemmt .hero__inner { align-items: center; }
.hero--klemmt .hero__content, .hero--klemmt .hero__panel { min-width: 0; }
.hero--klemmt .hero__title { font-size: var(--fs-2xl); max-width: 22ch; }
.hero--klemmt .hero__lead { max-width: 38rem; }
@media (min-width: 60em) {
	.hero--klemmt .hero__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr); gap: var(--sp-8); }
}
.kl-diag { display: grid; gap: var(--sp-5); align-content: start; }
.kl-diag .hero__panel-title { margin-bottom: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; }
.kl-diag__line { display: grid; gap: 0; }
.kl-diag__node { position: relative; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--sp-4); padding-bottom: var(--sp-5); min-width: 0; }
.kl-diag__node:last-child { padding-bottom: 0; }
.kl-diag__node:not(:last-child)::after {
	content: ""; position: absolute; left: calc(1.625rem - 2px); top: 3.4rem; bottom: 0.3rem; width: 4px;
	background: repeating-linear-gradient(180deg, var(--violet-300) 0 12px, transparent 12px 18px); opacity: 0.7;
}
.kl-diag__oct { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
.kl-diag__oct .i { width: 1.5rem; height: 1.5rem; }
.kl-diag__body { display: grid; gap: 0.15rem; min-width: 0; padding-top: 0.2rem; }
.kl-diag__label { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.1; color: var(--white); }
.kl-diag__hint { color: var(--on-dark-muted); line-height: 1.45; }
.kl-diag__more { color: var(--violet-300); }

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

/* 03 · symptome: head split + cause tiles ------------------------------------------------------ */
.kl-sym__top { display: grid; gap: var(--sp-7); align-items: center; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.kl-sym__top > * { min-width: 0; }
.kl-sym__lead .answer { max-width: none; }
.kl-sym__lead > p:not(.eyebrow):not(.answer) { max-width: 62ch; }
.kl-sym__fig { position: relative; margin: 0; max-width: 34rem; width: 100%; justify-self: center; filter: drop-shadow(12px 12px 0 color-mix(in srgb, var(--violet-500) 80%, transparent)); }
.kl-sym__fig .frame { --ratio: 4 / 3; }
@media (min-width: 60em) {
	.kl-sym__top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--sp-8); }
	.kl-sym__fig { justify-self: end; }
	.kl-sym__fig .frame { --ratio: 4 / 5; }
}
.kl-sym__grid { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
.kl-sym__grid > * { min-width: 0; }
@media (min-width: 48em) { .kl-sym__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); } }
.kl-card { position: relative; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6) var(--sp-5) var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-top: 4px solid var(--violet-500); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--sh-sm); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.kl-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.kl-card__head { display: flex; align-items: center; gap: var(--sp-4); }
.kl-card__badge { display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
.kl-card__badge .i { width: 1.5rem; height: 1.5rem; }
.kl-card__title { font-family: var(--font-body); font-size: var(--fs-md); font-weight: 700; line-height: 1.25; color: var(--c-heading); min-width: 0; }
.kl-card__cause { margin-top: auto; padding-top: var(--sp-4); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem var(--sp-4); border-top: 1px solid var(--c-line); font-weight: 700; color: var(--c-heading); }
.kl-card__cause-label { display: inline-flex; align-items: center; gap: 0.6em; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent); }
.kl-card__cause-label::before { content: ""; width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 0.22rem solid var(--c-accent); background: radial-gradient(circle, var(--spark) 0 22%, transparent 26%); }

/* 04 · erste-schritte: sticky lead + do-list with stop markers --------------------------------- */
.kl-todo__grid { display: grid; gap: var(--sp-7); align-items: start; }
.kl-todo__grid > * { min-width: 0; }
.kl-todo__side .answer { max-width: none; }
@media (min-width: 60em) {
	.kl-todo__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--sp-8); }
	.kl-todo__side { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}
.kl-do { gap: var(--sp-4); }
.kl-do .icon-list__item { align-items: start; box-shadow: var(--sh-sm); }
.kl-do .icon-list__text a { font-weight: 700; }
.kl-do__item--go .icon-list__icon { background: var(--violet-500); color: var(--white); box-shadow: none; }
.kl-do .kl-do__item--stop { border-left: 6px solid var(--danger); }
.kl-do__item--stop .icon-list__icon { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }

/* 05 · mittel: calm caution notice + keyhole photo --------------------------------------------- */
.kl-oel__grid { display: grid; gap: var(--sp-7); align-items: center; }
.kl-oel__grid > * { min-width: 0; }
.kl-oel__text { display: grid; gap: var(--sp-5); }
.kl-oel__text > p { max-width: 62ch; }
.kl-oel .notice { max-width: none; }
.kl-oel__fig { margin: 0; }
.kl-oel__fig .frame { --ratio: 4 / 3; box-shadow: var(--sh-lg); }
@media (min-width: 60em) {
	.kl-oel__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--sp-8); }
	.kl-oel__fig .frame { --ratio: 1; }
}

/* 06 · ablauf: escalation ladder on the dark band ---------------------------------------------- */
.kl-steps > * { min-width: 0; }
.kl-rung { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent); }
.kl-steps .step__text a { font-weight: 700; }

/* 07 · kostenlose-beratung: decision fork + call strip ----------------------------------------- */
.kl-ber__grid { display: grid; gap: var(--sp-7); align-items: center; }
.kl-ber__grid > * { min-width: 0; }
.kl-ber__text > p:not(.eyebrow) { max-width: 62ch; }
.kl-ber__text a { font-weight: 700; }
@media (min-width: 60em) { .kl-ber__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sp-8); } }
.kl-fork { position: relative; display: grid; gap: var(--sp-4); }
.kl-fork__card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: center; padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.kl-fork__card--plan { border-left: 6px solid var(--violet-500); }
.kl-fork__card--now { border-left: 6px solid var(--danger-band); }
.kl-fork__oct { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
.kl-fork__card--now .kl-fork__oct { background: var(--danger-band); }
.kl-fork__oct .i { width: 1.5rem; height: 1.5rem; }
.kl-fork__body { display: grid; gap: 0.15rem; min-width: 0; }
.kl-fork__cond { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); }
.kl-fork__res { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.15; color: var(--c-heading); }
.kl-fork__or { z-index: 2; justify-self: center; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-block: calc(var(--sp-4) * -1); clip-path: var(--oct); background: var(--ink-900); color: var(--white); font-family: var(--font-display); font-size: var(--fs-sm); line-height: 1; }
.kl-ber__call .callstrip__text { max-width: 46rem; }
.kl-ber__call .callstrip a:not(.btn) { color: var(--white); font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* 08 · faq: sticky heading + tall octagon door photo, accordion on the right -------------------- */
.kl-faq__grid { display: grid; gap: var(--sp-6); align-items: start; }
.kl-faq__grid > * { min-width: 0; }
.kl-faq__side > * + * { margin-top: var(--sp-5); }
.kl-faq__side .section-head { margin-bottom: 0; }
.kl-faq__fig { --ratio: 16 / 10; max-width: 30rem; }
.kl-faq__grid .faq { max-width: none; }
@media (min-width: 60em) {
	.kl-faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-8); }
	.kl-faq__side { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
	.kl-faq__fig { --ratio: 4 / 3; }
}

/* small phones: the number alone is the label, so the hero button never wraps */
@media (max-width: 30em) { .hero--klemmt .kl-lbl { display: none; } }
