/* ==========================================================================
   CTA-Block (safexcon/cta-block)
   Stil „primaer" = CI-Fläche mit hellem Button, „dezent" = helle Box.
   ========================================================================== */

.sxc-cta {
	/* Ohne border-box addiert sich das seitliche Padding auf die Breite —
	   der Kasten ragte dadurch 58px ueber die Textspalte hinaus und erzeugte
	   auf allen Geraeten horizontales Scrollen. */
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	margin: 1.75rem 0;
	padding: 1.5rem 1.75rem;
	border-radius: 16px;
	font-family: var(--font-sans, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}

.content > .sxc-cta,
.entry-content > .sxc-cta,
.post-content > .sxc-cta {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.sxc-cta__body {
	flex: 1 1 280px;
	min-width: 0;
}

.sxc-cta .sxc-cta__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.sxc-cta .sxc-cta__text {
	margin: 0.35rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.sxc-cta__btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.4rem;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.1;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sxc-cta__btn:hover,
.sxc-cta__btn:focus-visible {
	transform: translateY(-1px);
	text-decoration: none;
}

.sxc-cta__btn-icon {
	display: inline-flex;
}

/* PRIMÄR – CI-Verlauf, heller Button.
   ========================================================================== */

.sxc-cta--primaer {
	background: linear-gradient(135deg, var(--color-ci, #0f437b), var(--color-ci-light, #15477e));
	color: #fff;
}

.sxc-cta--primaer .sxc-cta__title {
	color: #fff;
}

.sxc-cta--primaer .sxc-cta__text {
	color: rgba(255, 255, 255, 0.85);
}

.sxc-cta--primaer .sxc-cta__btn {
	background: #fff;
	color: var(--color-ci, #0f437b);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.sxc-cta--primaer .sxc-cta__btn:hover,
.sxc-cta--primaer .sxc-cta__btn:focus-visible {
	background: #f4f8fc;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.24);
}

/* DEZENT – helle Box, CI-Button.
   ========================================================================== */

.sxc-cta--dezent {
	background: var(--sxc-brand-soft, #e8f0fa);
	border: 1px solid var(--sxc-brand-border, #cfe0f1);
	color: #1f2937;
}

.sxc-cta--dezent .sxc-cta__title {
	color: var(--color-ci, #0f437b);
}

.sxc-cta--dezent .sxc-cta__text {
	color: #475569;
}

.sxc-cta--dezent .sxc-cta__btn {
	background: var(--color-ci, #0f437b);
	color: #fff;
	box-shadow: 0 4px 14px rgba(15, 67, 123, 0.22);
}

.sxc-cta--dezent .sxc-cta__btn:hover,
.sxc-cta--dezent .sxc-cta__btn:focus-visible {
	background: var(--color-ci-dark, #09325f);
	box-shadow: 0 6px 20px rgba(15, 67, 123, 0.3);
}

/* FOCUS + RESPONSIVE
   ========================================================================== */

.sxc-cta__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 560px) {
	.sxc-cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.sxc-cta__btn {
		width: 100%;
		justify-content: center;
	}
}
