/* Header CTAs — Action Dock v2 (conversion + utility) */

:root {
	--con-mega-fg: #0f172a;
	--con-mega-brand: #bf0000;
	--con-mega-brand-hover: #990000;
	--con-mega-border: rgba(15, 23, 42, 0.08);
	--con-focus-ring: 0 0 0 2px #fff, 0 0 0 4px var(--con-mega-brand);
	--con-transition: 0.2s ease;
	--con-cta-dock-bg: rgba(248, 250, 252, 0.96);
	--con-cta-dock-radius: 14px;
	--con-cta-dock-pad: 3px;
	--con-cta-btn-h: 44px;
}

/* —— Action Dock: grouped cluster, clear hierarchy —— */
.con-header-ctas--dock {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	max-width: 100%;
	padding: var(--con-cta-dock-pad);
	background: var(--con-cta-dock-bg);
	border: 1px solid var(--con-mega-border);
	border-radius: var(--con-cta-dock-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.con-header-ctas--dock .con-header-cta + .con-header-cta {
	position: relative;
	margin-left: 1px;
}

.con-header-ctas--dock .con-header-cta + .con-header-cta::before {
	content: '';
	position: absolute;
	left: -1px;
	top: 20%;
	bottom: 20%;
	width: 1px;
	background: var(--con-mega-border);
	pointer-events: none;
}

.con-header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	box-sizing: border-box;
	height: var(--con-cta-btn-h);
	min-height: var(--con-cta-btn-h);
	min-width: 44px;
	padding: 0 1.125rem;
	border-radius: 10px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--con-transition),
		color var(--con-transition),
		border-color var(--con-transition),
		box-shadow var(--con-transition);
}

.con-header-cta__icon,
.con-header-cta__external {
	flex-shrink: 0;
	display: block;
	align-self: center;
}

.con-header-cta .con-cta-label {
	line-height: 1;
	vertical-align: middle;
}

.con-header-cta__external {
	opacity: 0.55;
	margin-left: 0.1rem;
}

.con-header-cta:focus-visible {
	outline: none;
	box-shadow: var(--con-focus-ring);
}

/* —— Primary: conversion (brand solid) —— */
.con-header-cta--primary {
	background: var(--con-mega-brand);
	color: #fff;
	border: 1px solid var(--con-mega-brand);
}

.con-header-cta--primary:hover {
	background: var(--con-mega-brand-hover);
	border-color: var(--con-mega-brand-hover);
	color: #fff;
}

.con-header-cta--primary .con-header-cta__icon {
	opacity: 0.95;
}

/* —— Utility: support link (ghost, lower weight) —— */
.con-header-cta--utility,
.con-header-cta--secondary {
	background: transparent;
	color: var(--con-mega-fg);
	border: 1px solid transparent;
	font-weight: 600;
}

.con-header-cta--utility:hover,
.con-header-cta--secondary:hover {
	background: rgba(191, 0, 0, 0.06);
	color: var(--con-mega-brand);
}

.con-header-cta--utility .con-header-cta__icon {
	color: var(--con-mega-brand);
}

.con-header-cta--utility:hover .con-header-cta__external,
.con-header-cta--secondary:hover .con-header-cta__external {
	opacity: 0.85;
}

/* —— Tablet 768–1024 —— */
@media (min-width: 768px) and (max-width: 1024px) {
	:root {
		--con-cta-dock-pad: 2px;
		--con-cta-btn-h: 42px;
	}

	.con-header-ctas--dock {
		border-radius: 12px;
	}

	.con-header-cta {
		padding: 0 0.875rem;
		font-size: 0.75rem;
	}
}

/* —— Mobile ≤767: header CTAs off by default (sheet footer); compact Demo optional ≥400px —— */
@media (max-width: 767px) {
	:root {
		--con-cta-dock-pad: 0;
		--con-cta-btn-h: 40px;
	}

	#header-sticky .elementor-element-29020de,
	#header-sticky .elementor-element-29020de.e-con,
	.con-header-ctas--dock {
		display: none !important;
	}

	.con-header-cta--vis-no-mobile {
		display: none;
	}

	#header-sticky .elementor-element-c57fc2d {
		display: none !important;
	}
}

/* Wider phones: optional compact Demo pill in header (no Remote, no dock surface) */
@media (min-width: 400px) and (max-width: 767px) {
	#header-sticky .elementor-element-29020de {
		display: block !important;
		flex: 0 0 auto !important;
		min-width: 0;
		max-width: max-content;
		grid-column: 3;
	}

	#header-sticky .elementor-element-29020de.e-con {
		display: inline-flex !important;
		align-items: center !important;
		gap: 0 !important;
		padding: 0 !important;
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		max-width: max-content;
	}

	#header-sticky .elementor-element-c57fc2d {
		display: none !important;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 0.35rem !important;
		box-sizing: border-box !important;
		height: var(--con-cta-btn-h) !important;
		min-height: var(--con-cta-btn-h) !important;
		padding-block: 0 !important;
		padding-inline: 0.75rem !important;
		font-size: 0.6875rem !important;
		font-weight: 600 !important;
		line-height: 1 !important;
		letter-spacing: 0.02em !important;
		border-radius: 999px !important;
		background: var(--con-mega-brand) !important;
		color: #fff !important;
		border: 1px solid var(--con-mega-brand) !important;
		transform: none !important;
		white-space: nowrap;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header::before {
		content: '';
		display: block;
		width: 16px;
		height: 16px;
		flex-shrink: 0;
		background-color: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header span {
		font-size: 0 !important;
		line-height: 0 !important;
		overflow: hidden !important;
		color: transparent !important;
		background-image: none !important;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header span::after {
		content: 'Demo';
		display: inline-flex;
		align-items: center;
		font-size: 0.6875rem;
		line-height: 1;
		color: #fff;
	}

	.con-header-ctas--dock {
		display: inline-flex !important;
		padding: 0;
		background: transparent;
		border: none;
		box-shadow: none;
	}

	.con-header-ctas--dock .con-header-cta--utility,
	.con-header-ctas--dock .con-header-cta--secondary,
	.con-header-ctas--dock .con-header-cta--vis-no-mobile {
		display: none !important;
	}

	.con-header-ctas--dock .con-header-cta--primary {
		padding: 0 0.75rem;
		font-size: 0.6875rem;
		border-radius: 999px;
	}
}

/* Legacy alias */
@media (max-width: 1024px) {
	.con-header-cta--vis-desktop-only {
		display: none;
	}
}

/* —— Narrow desktop 1280–1793: icon + short label (no icon-only circles) —— */
@media (min-width: 1280px) and (max-width: 1793px) {
	:root {
		--con-cta-dock-pad: 2px;
		--con-cta-btn-h: 42px;
	}

	.con-header-cta {
		padding: 0 0.75rem;
		font-size: 0.75rem;
		gap: 0.35rem;
	}

	.con-header-cta__icon {
		width: 16px;
		height: 16px;
	}

	.con-header-cta__external {
		width: 12px;
		height: 12px;
	}
}

@media (min-width: 1794px) {
	:root {
		--con-cta-dock-pad: 4px;
		--con-cta-btn-h: 46px;
	}

	.con-header-cta {
		padding: 0 1.25rem;
		font-size: 0.8125rem;
	}
}

/* —— Legacy Elementor: Action Dock on column 29020de (87f57cb + c57fc2d) — tablet+ only —— */
@media (min-width: 768px) {
#header-sticky .elementor-element-29020de,
#header-sticky .elementor-element-29020de .elementor-widget-container {
	overflow: visible !important;
	flex-shrink: 0;
	min-width: 0;
}

#header-sticky .elementor-element-29020de.e-con {
	display: inline-flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 0 !important;
	padding: var(--con-cta-dock-pad) !important;
	background: var(--con-cta-dock-bg) !important;
	border: 1px solid var(--con-mega-border) !important;
	border-radius: var(--con-cta-dock-radius) !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
	max-width: max-content;
}

#header-sticky .elementor-element-87f57cb,
#header-sticky .elementor-element-c57fc2d {
	display: flex !important;
	align-items: center !important;
	align-self: center !important;
	flex: 0 0 auto;
	flex-shrink: 0;
	overflow: visible !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

#header-sticky .elementor-element-c57fc2d {
	position: relative;
}

#header-sticky .elementor-element-c57fc2d::before {
	content: '';
	position: absolute;
	left: 0;
	top: 20%;
	bottom: 20%;
	width: 1px;
	background: var(--con-mega-border);
	pointer-events: none;
	z-index: 1;
}

#header-sticky .elementor-element-87f57cb .elementor-widget-container,
#header-sticky .elementor-element-c57fc2d .elementor-widget-container {
	display: flex !important;
	align-items: center !important;
	overflow: visible !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
}

#header-sticky .elementor-element-87f57cb .btn-con--header,
#header-sticky .elementor-element-c57fc2d .btn-con--header {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.4rem !important;
	box-sizing: border-box !important;
	height: var(--con-cta-btn-h) !important;
	min-height: var(--con-cta-btn-h) !important;
	padding-block: 0 !important;
	padding-inline: 1.125rem !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0.01em !important;
	border-radius: 10px !important;
	text-decoration: none !important;
	white-space: nowrap;
	vertical-align: middle !important;
	transform: none !important;
	cursor: pointer;
	transition:
		background-color var(--con-transition),
		color var(--con-transition),
		border-color var(--con-transition);
}

#header-sticky .elementor-element-87f57cb .btn-con--header span,
#header-sticky .elementor-element-c57fc2d .btn-con--header span {
	display: inline-flex !important;
	align-items: center !important;
	position: static !important;
	background-image: none !important;
	-webkit-background-clip: border-box !important;
	background-clip: border-box !important;
	color: inherit !important;
	font-size: inherit !important;
	line-height: 1 !important;
}

#header-sticky .elementor-element-87f57cb .btn-con--header {
	background: var(--con-mega-brand) !important;
	color: #fff !important;
	border: 1px solid var(--con-mega-brand) !important;
}

#header-sticky .elementor-element-87f57cb .btn-con--header:hover {
	background: var(--con-mega-brand-hover) !important;
	border-color: var(--con-mega-brand-hover) !important;
	color: #fff !important;
}

#header-sticky .elementor-element-87f57cb .btn-con--header::before {
	content: '';
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

#header-sticky .elementor-element-c57fc2d .btn-con--header {
	background: transparent !important;
	color: var(--con-mega-fg) !important;
	border: 1px solid transparent !important;
}

#header-sticky .elementor-element-c57fc2d .btn-con--header:hover {
	background: rgba(191, 0, 0, 0.06) !important;
	color: var(--con-mega-brand) !important;
}

#header-sticky .elementor-element-c57fc2d .btn-con--header::before {
	content: '';
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-color: var(--con-mega-brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E") center / contain no-repeat;
}

#header-sticky .elementor-element-c57fc2d .btn-con--header::after {
	content: '';
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	opacity: 0.55;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 1280px) and (max-width: 1793px) {
	#header-sticky .elementor-element-87f57cb .btn-con--header,
	#header-sticky .elementor-element-c57fc2d .btn-con--header {
		padding-inline: 0.75rem !important;
		font-size: 0.75rem !important;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header i,
	#header-sticky .elementor-element-87f57cb .btn-con--header img,
	#header-sticky .elementor-element-87f57cb .btn-con--header svg,
	#header-sticky .elementor-element-c57fc2d .btn-con--header i,
	#header-sticky .elementor-element-c57fc2d .btn-con--header img,
	#header-sticky .elementor-element-c57fc2d .btn-con--header svg {
		display: none !important;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header span,
	#header-sticky .elementor-element-c57fc2d .btn-con--header span {
		font-size: 0 !important;
		line-height: 0 !important;
		overflow: hidden !important;
		color: transparent !important;
	}

	#header-sticky .elementor-element-87f57cb .btn-con--header span::after {
		content: 'Demo';
		display: inline-flex;
		align-items: center;
		font-size: 0.75rem;
		line-height: 1;
		color: #fff;
	}

	#header-sticky .elementor-element-c57fc2d .btn-con--header span::after {
		content: 'Remote';
		display: inline-flex;
		align-items: center;
		font-size: 0.75rem;
		line-height: 1;
		color: var(--con-mega-fg);
	}
}

@media (min-width: 1794px) {
	#header-sticky .elementor-element-c57fc2d .btn-con--header i,
	#header-sticky .elementor-element-c57fc2d .btn-con--header img,
	#header-sticky .elementor-element-c57fc2d .btn-con--header svg {
		display: none !important;
	}

	#header-sticky .elementor-element-c57fc2d .btn-con--header span {
		font-size: 0 !important;
		line-height: 0 !important;
		overflow: hidden !important;
		color: transparent !important;
	}

	#header-sticky .elementor-element-c57fc2d .btn-con--header span::after {
		content: 'Remote-Hilfe';
		display: inline-flex;
		align-items: center;
		font-size: 0.8125rem;
		line-height: 1;
		color: var(--con-mega-fg);
	}
}
}

/* Narrow desktop 1025–1279: hide CTAs (L1 needs full middle column) */
@media (min-width: 1025px) and (max-width: 1279px) {
	#header-sticky .elementor-element-29020de,
	#header-sticky .elementor-element-29020de.e-con,
	.con-header-ctas--dock {
		display: none !important;
	}
}

/* Tablet / mobile header row: prevent logo–burger–CTA collision */
@media (max-width: 1024px) {
	#header-sticky .elementor-element-169e574f {
		min-width: 44px;
	}

	#header-sticky .elementor-element-29020de {
		flex-shrink: 1;
		min-width: 0;
		max-width: 100%;
	}
}

/* CTA column + L1 nav: never clip header buttons or last nav item */
@media (min-width: 768px) {
	#header-sticky.elementor-element-4027adfb {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr) auto !important;
		align-items: center !important;
	}

	#header-sticky .elementor-element-948fe08 {
		grid-column: 2;
		min-width: 0 !important;
		overflow: visible !important;
	}

	#header-sticky .elementor-element-29020de {
		grid-column: 3;
		flex-shrink: 0 !important;
		overflow: visible !important;
		max-width: max-content;
	}
}

@media (prefers-reduced-motion: reduce) {
	.con-header-cta {
		transition: none;
	}
}
