/* ==========================================================================
   Floating CTA (desktop) + Sticky CTA-bar (mobil)
   Selvstændig styling. Bruger CSS-variabler så den adopterer temaets palette.
   Forventede variabler (med fallback): --color-primary, --color-primary-dark,
   --color-text, --radius-pill, --shadow-float.
   ========================================================================== */

:root {
	--fcta-primary: var(--color-primary, #1f3a5f);
	--fcta-primary-dark: var(--color-primary-dark, #16294399);
	--fcta-on-primary: var(--color-on-primary, #ffffff);
	--fcta-radius: var(--radius-pill, 999px);
	--fcta-shadow: var(--shadow-float, 0 8px 24px rgba(0, 0, 0, 0.18));
}

/* ---- Floating CTA (desktop, nederste højre hjørne) ---------------------- */
.floating-cta {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 900;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.floating-cta__mail,
.floating-cta__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	border-radius: var(--fcta-radius);
	box-shadow: var(--fcta-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.floating-cta__mail:hover,
.floating-cta__phone:hover {
	transform: translateY(-2px);
}

/* Mindre "Skriv til os"-knap ovenover */
.floating-cta__mail {
	padding: 10px 18px;
	background: var(--fcta-on-primary);
	color: var(--fcta-primary);
	font-weight: 600;
	font-size: 0.9rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Stor ring-knap med nummer */
.floating-cta__phone {
	padding: 14px 22px;
	min-height: 48px;
	background: var(--fcta-primary);
	color: var(--fcta-on-primary);
}

.floating-cta__phone svg {
	flex: none;
}

.floating-cta__phone-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.floating-cta__phone-text em {
	font-style: normal;
	font-size: 0.72rem;
	opacity: 0.85;
}

.floating-cta__phone-text strong {
	font-size: 1.05rem;
	font-weight: 700;
}

/* Skjul floating på mobil, der bruger vi sticky-baren i stedet */
@media (max-width: 980px) {
	.floating-cta {
		display: none;
	}
}

/* ---- Sticky CTA-bar (mobil, fast i bunden) ------------------------------ */
.sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 950;
	display: none; /* skjult som udgangspunkt, vises kun på mobil nedenfor */
	background: var(--fcta-primary);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.16);
	padding: 6px;
	gap: 4px;
}

.sticky-cta__btn {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 52px;
	padding: 6px 4px;
	color: var(--fcta-on-primary);
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 600;
	border-radius: 12px;
}

.sticky-cta__btn--ring {
	background: rgba(255, 255, 255, 0.12);
}

.sticky-cta__btn svg {
	display: block;
}

/* Vis kun sticky-baren på mobil/tablet under 981px */
@media (max-width: 980px) {
	.sticky-cta {
		display: flex;
	}

	/* Giv plads så baren ikke dækker footer-indhold */
	body {
		padding-bottom: 64px;
	}
}

/* Mail- og tilbuds-knappen: bevidst uden fyld, kun Ring fremhæves. */
.sticky-cta__btn--mail,
.sticky-cta__btn--tilbud {
	background: transparent;
}
