/* ==========================================================================
   Türöffnung (/leistungen/tueroeffnung/) — page layout only.
   Tokens from theme.css only (no new colours, no new font sizes). Prefix: tue-
   Plan: plans/tueroeffnung.plan.md
   ========================================================================== */

/* 1 · hero — photo-led, the three promises become a strip at the foot ------- */
.tue-hero .hero__content { max-width: none; }
.tue-hero .hero__title { font-size: var(--fs-2xl); max-width: 24ch; }
.tue-hero .hero__lead { max-width: 46rem; }
.tue-hero__checks { width: 100%; margin-top: var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid color-mix(in srgb, var(--violet-300) 38%, transparent); }
@media (min-width: 60em) {
	.tue-hero__checks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
}

/* 2 · safety gate — red solid band right under the hero --------------------- */
.tue-gate .notice { box-shadow: var(--sh-lg); padding: var(--sp-6) var(--sp-5); }
.tue-gate .notice__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.15; }
.tue-gate .notice__body { gap: var(--sp-3); }
.tue-gate .notice p { max-width: 64ch; }
@media (min-width: 48em) {
	.tue-gate .notice { grid-template-columns: auto 1fr; gap: var(--sp-5); padding: var(--sp-6); }
	.tue-gate .notice__icon { width: 3.5rem; height: 3.5rem; }
}

/* 3 · how — split + escalation ladder ---------------------------------------- */
.tue-how .split__media { position: relative; }
.tue-how__frame { box-shadow: var(--sh-lg); }
.tue-ladder { display: grid; gap: var(--sp-5); padding: 0; list-style: none; }
.tue-rung {
	position: relative; min-width: 0;
	display: grid; grid-template-columns: auto 1fr; align-content: start; gap: var(--sp-3) var(--sp-4);
	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);
}
.tue-rung > :nth-child(n + 3) { grid-column: 1 / -1; }
.tue-rung--2 { border-top-color: var(--violet-500); }
.tue-rung--3 { background: var(--ink-800); border-color: var(--ink-700); border-top-color: var(--violet-500); box-shadow: var(--sh-md); }
.tue-rung__meter { justify-self: end; align-self: center; display: inline-flex; align-items: flex-end; gap: 5px; }
.tue-rung__meter i { display: block; width: 0.95rem; border-radius: 2px; background: var(--c-line-strong); opacity: 0.55; }
.tue-rung__meter i:nth-child(1) { height: 0.7rem; }
.tue-rung__meter i:nth-child(2) { height: 1.15rem; }
.tue-rung__meter i:nth-child(3) { height: 1.6rem; }
.tue-rung--1 .tue-rung__meter i:nth-child(1),
.tue-rung--2 .tue-rung__meter i:nth-child(-n + 2),
.tue-rung--3 .tue-rung__meter i { background: var(--c-accent); opacity: 1; }
.tue-rung__level { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent); }
.tue-rung__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; }
.tue-rung p:not(.tue-rung__level) { max-width: none; }
@media (min-width: 64em) {
	.tue-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); align-items: stretch; }
	.tue-rung:not(:last-child)::after {
		content: ""; position: absolute; z-index: 1; left: 100%; top: calc(var(--sp-5) + 1.5rem); width: var(--sp-6); height: 4px;
		background: repeating-linear-gradient(90deg, var(--violet-500) 0 7px, transparent 7px 11px); opacity: 0.8;
	}
}

/* 4 · Berechtigung — sticky intro + proof cards ------------------------------ */
.tue-proof__grid { display: grid; gap: var(--sp-7); }
.tue-proof__media .frame { max-width: 18rem; }
.tue-proof__main h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; }
.tue-proof__rule { --n-c: var(--violet-600); --n-bg: var(--tint); --n-text: var(--text); max-width: none; margin-top: var(--sp-7); }
.tue-proof__rule p { max-width: 80ch; }
@media (min-width: 64em) {
	.tue-proof__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sp-8); align-items: start; }
	.tue-proof__intro { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
	.tue-proof__media .frame { max-width: 20rem; }
}

/* 5 · Ablauf — dark vertical timeline beside a sticky photo ------------------ */
.tue-flow__grid { display: grid; gap: var(--sp-7); }
.tue-flow__side { display: grid; gap: var(--sp-6); align-content: start; }
.tue-flow__frame { display: none; }
.tue-flow__note { display: flex; gap: 0.55em; align-items: center; margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--c-muted); }
.tue-flow__note .i { color: var(--c-accent); }
.tue-steps { max-width: none; }
.tue-steps .step__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; color: var(--c-heading); }
.tue-steps .step__text { max-width: 60ch; }
@media (min-width: 64em) {
	.tue-flow__grid { grid-template-columns: 21rem minmax(0, 1fr); gap: var(--sp-9); align-items: start; }
	.tue-flow__side { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
	.tue-flow__frame { display: block; }
}

/* 6 · Signature — chain, plan + building parts, authority pair --------------- */
.tue-sig__head { max-width: 64rem; margin-bottom: var(--sp-6); }
.tue-sig__head > p:not(.eyebrow) { max-width: 70ch; }
.tue-chain { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-8); }
.tue-chain__list { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.tue-chain__stop {
	position: relative; display: flex; align-items: center; gap: 0.7em; min-height: var(--tap);
	padding: var(--sp-3) var(--sp-4); background: var(--c-surface); color: var(--c-heading);
	border: 2px dashed var(--c-line-strong); border-radius: var(--r-md); font-weight: 700;
}
.tue-chain__stop .i { color: var(--c-accent); }
.tue-chain__stop--shared { background: var(--ink-800); color: var(--white); border: 2px solid var(--ink-600); }
.tue-chain__stop--shared .i { color: var(--violet-300); }
.tue-chain__stop--you { background: var(--violet-500); color: var(--white); border: 2px solid var(--violet-500); box-shadow: var(--rim); }
.tue-chain__stop--you .i { color: var(--white); }
.tue-chain__legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); max-width: none; font-size: var(--fs-sm); color: var(--c-muted); }
.tue-chain__key { display: inline-block; width: 1rem; height: 1rem; flex: none; clip-path: var(--oct); }
.tue-chain__key--shared { background: var(--ink-800); }
.tue-chain__key--you { background: var(--violet-500); }
.tue-chain__legend-item { display: inline-flex; align-items: center; gap: var(--sp-2); }
@media (min-width: 40em) {
	.tue-chain__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
}
@media (min-width: 64em) {
	.tue-chain__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
	.tue-chain__stop:not(:last-child)::after {
		content: ""; position: absolute; top: 50%; left: calc(100% + var(--sp-5) / 2 - 6px); width: 10px; height: 10px;
		border-right: 3px solid var(--c-accent); border-top: 3px solid var(--c-accent); transform: translateY(-50%) rotate(45deg);
	}
}
.tue-sig .door-frame__body { padding: var(--sp-4) var(--sp-5); }
.tue-sig .door-frame__title { font-size: var(--fs-md); }

.tue-pair { position: relative; display: grid; gap: var(--sp-5); margin-top: var(--sp-8); }
.tue-pair__card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--c-surface); color: var(--c-fg); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.tue-pair__card--you { border-top: 6px solid var(--violet-500); }
.tue-pair__card--shared { background: var(--ink-800); border-color: var(--ink-700); border-top: 6px solid var(--ink-600); }
.tue-pair__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tue-pair__media > img, .tue-pair__media > .img-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); color: transparent; }
.tue-pair__body { display: grid; align-content: start; gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.tue-pair__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; }
.tue-pair__body p { max-width: none; }
.tue-pair__or {
	justify-self: center; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-block: calc(var(--sp-3) * -1);
	clip-path: var(--oct); background: var(--violet-500); color: var(--white); font-family: var(--font-display); font-size: var(--fs-md); z-index: 2;
}
@media (min-width: 64em) {
	.tue-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
	.tue-pair__or { position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; margin: 0; transform: translate(-50%, -50%); font-size: var(--fs-lg); }
}

.tue-note {
	display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; margin-top: var(--sp-7); padding: var(--sp-5);
	background: color-mix(in srgb, var(--c-surface) 65%, transparent); border: 2px dashed var(--c-line-strong); border-radius: var(--r-lg);
}
.tue-note__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
.tue-note p { max-width: 74ch; }

/* 7 · call strip — what THIS call settles ------------------------------------ */
.tue-call__strip { gap: var(--sp-6) var(--sp-7); }
.tue-call .callstrip__text { flex: 1 1 26rem; max-width: 50rem; }
.tue-call .callstrip__sub { max-width: none; }
.tue-call .callstrip__sub a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.tue-call__action { display: grid; gap: var(--sp-2); justify-items: start; }
.tue-call__label { font-family: var(--font-display); font-size: var(--fs-md); color: var(--violet-100); }

/* 8 · comparison — swipe illustration + two outcomes ------------------------- */
.tue-compare__grid { display: grid; gap: var(--sp-6); }
.tue-compare__ba { width: 100%; max-width: none; margin: 0; }
.tue-compare__cases { display: grid; gap: var(--sp-5); }
.tue-outcome {
	display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; padding: var(--sp-5); min-width: 0;
	background: var(--c-surface); border: 1px solid var(--c-line); border-left: 6px solid var(--violet-500); border-radius: var(--r-md); box-shadow: var(--sh-sm);
}
.tue-outcome--drill { border-left-color: var(--warn); }
.tue-outcome__icon { display: grid; place-items: center; width: 3rem; height: 3rem; clip-path: var(--oct); background: var(--violet-500); color: var(--white); }
.tue-outcome--drill .tue-outcome__icon { background: var(--ink-800); color: var(--violet-300); }
.tue-outcome__body { display: grid; gap: var(--sp-2); min-width: 0; }
.tue-outcome__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; }
.tue-outcome__body p { max-width: none; }
@media (min-width: 64em) {
	.tue-compare__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
}

/* 9 · FAQ — sticky heading + call card beside the accordion ------------------ */
.tue-faq__grid { display: grid; gap: var(--sp-7); }
.tue-faq__side { display: grid; gap: var(--sp-6); align-content: start; }
.tue-faq .faq { max-width: none; }
@media (min-width: 64em) {
	.tue-faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-8); align-items: start; }
	.tue-faq__side { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}
