/**
 * Gabarits Leistungen : fiche détail (single) + archive.
 * S'appuie sur les primitives .mq-* de main.css (container, section, cartes, CTA).
 */

/* ── Bandeau titre ───────────────────────────────────────────────────── */
.mq-leistung__hero {
	background: var(--mq-color-bg-soft);
	border-bottom: 1px solid var(--mq-color-line);
	padding-block: var(--mq-space-8);
}

.mq-leistung__hero-inner {
	max-width: 820px;
}

.mq-leistung__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: var(--mq-space-2);
	background: var(--mq-color-primary);
	color: #fff;
	clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.mq-leistung__icon svg { width: 32px; height: 32px; }

.mq-leistung__title {
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	line-height: 1.12;
	color: var(--mq-color-ink);
	margin: 0 0 var(--mq-space-2);
}

.mq-leistung__lead {
	font-size: 1.15rem;
	line-height: 1.6;
	color: var(--mq-color-muted);
	margin: 0;
	max-width: 62ch;
}

/* ── Corps : contenu + encart points ─────────────────────────────────── */
.mq-leistung__body {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: var(--mq-space-6);
	align-items: start;
}

.mq-leistung__content {
	color: var(--mq-color-body);
	line-height: 1.7;
	font-size: 1.02rem;
}

.mq-leistung__content > * + * { margin-top: var(--mq-space-3); }

.mq-leistung__content h2,
.mq-leistung__content h3 {
	color: var(--mq-color-ink);
	margin-top: var(--mq-space-4);
}

/* Encart « Im Überblick » (points clés + CTA). */
.mq-leistung__aside {
	position: sticky;
	top: var(--mq-space-4);
	background: #fff;
	border: 1px solid var(--mq-color-line);
	border-top: 3px solid var(--mq-color-primary);
	padding: var(--mq-space-5);
}

.mq-leistung__aside-title {
	font-size: 1.15rem;
	margin: 0 0 var(--mq-space-3);
	color: var(--mq-color-ink);
}

.mq-leistung__points {
	list-style: none;
	margin: 0 0 var(--mq-space-4);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--mq-space-2);
}

.mq-leistung__points li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	color: var(--mq-color-body);
	line-height: 1.5;
}

.mq-leistung__points svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--mq-color-primary);
}

.mq-leistung__aside-cta { width: 100%; justify-content: center; }

/* Le pager (navigation prev/suivant) est partagé : voir .mq-pager dans main.css. */

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.mq-leistung__body { grid-template-columns: 1fr; }
	.mq-leistung__aside { position: static; }
}

@media (max-width: 782px) {
	.mq-leistung__hero { padding-block: var(--mq-space-6); }
}
