/* /leistungen — page-specific overrides on top of marketing.css
 * Generic patterns (typography, buttons, cards, focus rings, hero,
 * header, footer) live in marketing.css. This file keeps only
 * /leistungen-specific layout: sticky TOC, category sections,
 * lead form iframe wrapper, and price/legacy class aliases.
 *
 * WCAG AAA target: text contrast ≥7:1 (large text ≥4.5:1).
 * Accent #0044aa = 8.59:1 on white.
 */

/* ------- Hero overrides (left-aligned on /leistungen, vs centered default) ------- */

.leistungen-page .hero {
	text-align: left;
	padding: 2rem 0 1.5rem;
	max-width: 70ch;
}

.leistungen-page .hero h1 {
	max-width: none;
	margin-inline: 0;
	margin: 0 0 0.5rem;
}

.leistungen-page .hero .value-prop {
	font-size: 1.125rem;
	color: var(--mbit-muted);
	margin: 0 0 1.5rem;
	max-width: none;
}

.leistungen-page .hero-ctas {
	justify-content: flex-start;
}

/* Legacy .cta classes alongside the new .btn classes — kept so existing
   markup keeps working without behavior change. */

.cta-primary {
	background: var(--mbit-accent);
	color: white !important;
}

.cta-primary:hover,
.cta-primary:focus-visible {
	background: var(--mbit-accent-hover);
	border-color: var(--mbit-accent-hover);
	text-decoration: underline;
}

.cta-secondary {
	background: var(--mbit-bg);
	color: var(--mbit-accent) !important;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
	background: var(--mbit-card-bg);
}

/* ------- Sticky TOC ------- */

.toc {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--mbit-bg);
	padding: 0.75rem 0;
	margin: 1rem 0;
	border-top: 1px solid var(--mbit-border);
	border-bottom: 1px solid var(--mbit-border);
}

.toc-heading {
	font-size: 1rem;
	margin: 0 0 0.5rem;
	color: var(--mbit-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.toc-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.toc-list a {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	border-radius: 3px;
}

.toc-list a:hover,
.toc-list a:focus-visible {
	background: var(--mbit-card-bg);
}

.toc-count {
	color: var(--mbit-muted);
	font-weight: normal;
}

/* ------- Category sections (page-specific spacing + dividers) ------- */

.leistungen-page .category {
	margin: 2.5rem 0;
	padding: 0;
}

.leistungen-page .category h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--mbit-border);
	position: relative;
}

.anchor {
	position: absolute;
	top: -1rem;
	visibility: hidden;
}

/* ------- Cards (page-specific: full-height flex with price line) ------- */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}

.leistungen-page .card {
	display: flex;
	flex-direction: column;
	padding: 1rem 1.25rem;
}

.card-title {
	font-size: 1.125rem;
	margin: 0 0 0.5rem;
	color: var(--mbit-fg);
}

.card-desc {
	color: var(--mbit-muted);
	margin: 0 0 0.75rem;
	flex-grow: 1;
}

.price {
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.card-cta {
	display: inline-block;
	align-self: flex-start;
	padding: 0.5rem 1rem;
	background: var(--mbit-accent);
	color: white !important;
	text-decoration: none !important;
	border-radius: 4px;
	font-weight: 600;
}

.card-cta:hover,
.card-cta:focus-visible {
	background: var(--mbit-accent-hover);
	text-decoration: underline !important;
}

.empty {
	color: var(--mbit-muted);
	font-style: italic;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Lead-form iframe styles removed 2026-05-12 — /leistungen #anfrage is now
   a CTA strip linking out to /anfrage instead of embedding the Web Form. */

/* ------- Mobile tweaks ------- */

@media (max-width: 600px) {
	.leistungen-page {
		padding: 0.5rem;
	}

	.cta {
		display: block;
		text-align: center;
	}
}
