/* ==========================================================================
   /leistungen/ — page layout only. Tokens from theme.css (var(--…) only), no new colours or sizes, no forced overrides.
   Idea: "Das Programm" — the five services as a lit programme board (hero) and as numbered cards, then
   akut | planbar, house ledger with door chains, symptom router, honest scope line, FAQ.
   Prefix: lh-
   ========================================================================== */

/* 01 · hero: night street + programme board ------------------------------ */
.lh-hero.hero--compact::after { display: block; }
.lh-hero { padding-block: clamp(3.25rem, 2.2rem + 4vw, 5.75rem); }
.lh-hero .hero__inner { display: grid; gap: var(--sp-7); align-items: center; }
.lh-hero .hero__content { max-width: 40rem; }
@media (min-width: 60em) {
	.lh-hero .hero__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr); gap: var(--sp-8); }
}
.lh-board { position: relative; padding-top: calc(var(--sp-6) + var(--sp-3)); }
.lh-board::before {
	content: ""; position: absolute; top: var(--sp-4); left: var(--sp-5); right: var(--sp-5); height: 0.5rem;
	background: radial-gradient(circle, var(--spark) 0 0.14rem, transparent 0.2rem) 0 50% / 1.1rem 0.5rem repeat-x;
}
.lh-board .hero__panel-title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); }
.lh-board__list { margin-bottom: 0; gap: var(--sp-2); }
.lh-board__list li { align-items: center; }
.lh-board__list a {
	display: flex; align-items: center; gap: 0.6em; min-height: var(--tap); padding-block: var(--sp-1);
	font-weight: 700; color: var(--white); text-decoration: none;
	transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lh-board__list a .i { flex: none; color: var(--violet-300); }
.lh-board__list a:hover { color: var(--violet-200); transform: translateX(4px); }

/* 02 · five photo cards: 2 + 3 --------------------------------------------- */
.lh-cards { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
.lh-cards > * { min-width: 0; }
.lh-card { scroll-margin-top: 6rem; }
.lh-card .svc-card__media { overflow: visible; }
.lh-card .svc-card__text a { position: relative; z-index: 2; font-weight: 600; }
.lh-card__no {
	position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 2; display: grid; place-items: center;
	width: 3.25rem; height: 3.25rem; clip-path: var(--oct);
	background: color-mix(in srgb, var(--ink-950) 72%, transparent); color: var(--white);
	font-family: var(--font-display); font-size: var(--fs-md); line-height: 1;
}
@media (min-width: 40em) {
	.lh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lh-card:last-child { grid-column: 1 / -1; flex-direction: row; }
	.lh-card:last-child .svc-card__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 15rem; }
	.lh-card:last-child .svc-card__body { justify-content: center; padding: var(--sp-6) var(--sp-6); }
	.lh-card:last-child .svc-card__badge { top: var(--sp-4); bottom: auto; }
}
@media (min-width: 64em) {
	.lh-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-6); }
	.lh-card, .lh-card:last-child { grid-column: span 2; }
	.lh-card:nth-child(-n + 2) { grid-column: span 3; }
	.lh-card:last-child { flex-direction: column; }
	.lh-card:last-child .svc-card__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
	.lh-card:last-child .svc-card__body { justify-content: flex-start; padding: var(--sp-6) var(--sp-5) var(--sp-5); }
	.lh-card:last-child .svc-card__badge { top: auto; bottom: calc(var(--sp-4) * -1); }
	.lh-card:nth-child(-n + 2) .svc-card__title { font-size: var(--fs-lg); }
}

/* 03 · akut | planbar contrast pair --------------------------------------- */
.lh-duo { position: relative; display: grid; gap: 0; }
.lh-duo__panel { position: relative; color: var(--c-fg); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); padding: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); }
.lh-duo__panel > * { margin: 0; }
.lh-duo__panel--akut {
	--cut: var(--cut-lg);
	background-color: var(--ink-900); background-image: var(--grad-spot);
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.lh-duo__panel--planbar { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.lh-duo__badge { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; flex: none; background: var(--violet-500); color: var(--white); }
.lh-duo__panel--planbar .lh-duo__badge { background: var(--violet-700); }
.lh-duo__badge .i { width: 1.6rem; height: 1.6rem; }
.lh-duo__tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-link); }
.lh-duo__panel h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.12; color: var(--c-heading); }
.lh-duo__panel p:not(.lh-duo__tag) { max-width: 36rem; }
.lh-duo__action { margin-top: auto; padding-top: var(--sp-3); }
.lh-duo__or {
	position: relative; z-index: 2; justify-self: center; display: grid; place-items: center; width: 4.25rem; height: 4.25rem;
	margin-block: -2.125rem; background: var(--violet-500); color: var(--white);
	font-family: var(--font-display); font-style: italic; font-size: var(--fs-md); line-height: 1;
}
@media (min-width: 52em) {
	.lh-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
	.lh-duo__or { position: absolute; left: 50%; top: 50%; margin: 0; translate: -50% -50%; }
	.lh-duo__panel--akut { padding-right: clamp(2.5rem, 1.5rem + 2.5vw, 3.5rem); }
	.lh-duo__panel--planbar { padding-left: clamp(2.5rem, 1.5rem + 2.5vw, 3.5rem); }
}

/* 04 · house ledger: collage left, houses with door chains right ---------- */
.lh-haus__split { align-items: start; }
.lh-haus__media { position: relative; padding-bottom: var(--sp-7); max-width: 30rem; }
.lh-haus__main { --ratio: 4 / 3; box-shadow: var(--sh-lg); }
.lh-haus__media .frame__tag { top: var(--sp-4); bottom: auto; }
.lh-haus__small {
	--cut: var(--cut-sm);
	position: absolute; right: var(--sp-3); bottom: 0; width: 38%; padding: var(--sp-2); background: var(--c-bg);
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.lh-haus__small .frame { --ratio: 4 / 5; border-radius: var(--r-sm); }
.lh-houses { display: grid; gap: 0; margin-top: var(--sp-6); }
.lh-house { position: relative; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--sp-4); padding-bottom: var(--sp-6); }
.lh-house:last-child { padding-bottom: 0; }
.lh-house:not(:last-child)::before {
	content: ""; position: absolute; left: calc(1.625rem - 1px); top: 3.5rem; bottom: 0.25rem; width: 2px;
	background: color-mix(in srgb, var(--c-accent) 38%, transparent);
}
.lh-house__mark { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; background: var(--violet-500); color: var(--white); }
.lh-house__body { min-width: 0; }
.lh-house__body > * { margin: 0; }
.lh-house__body > * + * { margin-top: var(--sp-3); }
.lh-house__body h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.15; color: var(--c-heading); }
.lh-chain {
	display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); padding: var(--sp-3) var(--sp-4);
	background: var(--c-surface-2); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--c-fg);
}
.lh-chain__label { flex-basis: 100%; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); }
.lh-chain > span:not(.lh-chain__label) { padding: 0.1em 0.7em; font-weight: 600; background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); }
.lh-chain .i { width: 0.9rem; height: 0.9rem; flex: none; color: var(--c-accent); }
@media (min-width: 60em) {
	.lh-haus__split { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
	.lh-haus__media { position: sticky; top: 7rem; max-width: none; }
	.lh-haus__main { --ratio: 3 / 4; }
	.lh-haus__small { right: calc(var(--sp-5) * -1); width: 42%; }
}

/* small screens: tighter ledger, room around the "oder" seam, smaller collage inset */
@media (max-width: 51.99em) {
	.lh-duo__panel--akut { padding-bottom: calc(var(--sp-6) + 2.5rem); }
	.lh-duo__panel--planbar { padding-top: calc(var(--sp-6) + 2.5rem); }
}
@media (max-width: 39.99em) {
	.lh-house { grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--sp-3); }
	.lh-house__mark { width: 2.5rem; height: 2.5rem; }
	.lh-house:not(:last-child)::before { left: calc(1.25rem - 1px); top: 2.75rem; }
	.lh-haus__small { width: 32%; }
}

/* 05 · symptom router on dark -------------------------------------------- */
.lh-router__grid { display: grid; gap: var(--sp-7); align-items: start; }
.lh-router__call { margin-top: var(--sp-6); }
.lh-router__list .icon-list { gap: var(--sp-3); }
.lh-router__list .icon-list__text a { font-weight: 600; text-underline-offset: 0.2em; }
.lh-router__more { margin-top: var(--sp-5); color: var(--c-muted); }
@media (min-width: 64em) {
	.lh-router__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--sp-8); }
	.lh-router__intro { position: sticky; top: 7rem; }
}

/* 06 · scope line --------------------------------------------------------- */
.lh-grenze__grid { display: grid; gap: var(--sp-5); align-items: start; }
.lh-nogo { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.lh-nogo li {
	display: flex; align-items: center; gap: 0.7em; min-height: var(--tap); padding: var(--sp-2) var(--sp-4);
	background: var(--c-surface); border: 1px dashed var(--c-line-strong); border-radius: var(--r-md);
	font-weight: 600; color: var(--c-heading);
}
.lh-nogo .i { flex: none; color: var(--danger); }
@media (min-width: 60em) {
	.lh-grenze__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--sp-6); }
}

/* 07 · FAQ: sticky heading left, accordion right --------------------------- */
.lh-faq__grid { display: grid; gap: var(--sp-6); align-items: start; }
.lh-faq__head { display: grid; gap: var(--sp-5); justify-items: start; }
.lh-faq__mark { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; background: var(--violet-500); color: var(--white); }
.lh-faq__mark .i { width: 2rem; height: 2rem; }
.lh-faq__grid .faq { max-width: none; }
@media (min-width: 60em) {
	.lh-faq__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--sp-8); }
	.lh-faq__head { position: sticky; top: 7rem; }
}
