/**
 * Termin CTA card — homepage top.
 * Values from Figma w5IYWDo9QUaUFTasVlCo8k node 3:767.
 */

/* Card lives INSIDE the hero (.section-Headerbereich) and sits on its bottom edge. */
.section-Headerbereich {
	position: relative;
}

/* Specificity bump: theme's `.content-area .content-wrapper section { position: relative }`
   (0,2,1) outranks plain `.termin-cta` (0,1,0) and would force relative.
   `.section-Headerbereich section.termin-cta` matches the same (0,2,1) and loads after. */
.section-Headerbereich section.termin-cta {
	position: absolute;
	left: 50%;
	/* Card sits entirely INSIDE the hero, bottom flush with the hero's bottom edge —
	   no overflow into the next (chevron-pulled-up) section. */
	bottom: 60px;
	transform: translateX(-50%);
	width: 100%;
	max-width: 932px; /* card max-width (900) + side padding (16+16) */
	padding: 0 16px;
	z-index: 200; /* above hero .section-wrap (z:102) + chevron pseudos (z:101) */
	background: transparent;
	pointer-events: none;
	margin: 0;
}

.termin-cta__card {
	pointer-events: auto;
}

@media (max-width: 768px) {
	/* On mobile the card is taller (stacked cols) and the hero is shorter — let the card
	   flow naturally below the hero inside the same <section> instead of straddling. */
	.section-Headerbereich section.termin-cta {
		position: relative;
		left: auto;
		bottom: auto;
		transform: none;
		max-width: none;
		margin: 16px 0 0;
		pointer-events: auto;
	}
}

/* Trim hero vertical padding on mobile so the card sits tight against the image.
   Parent theme uses `padding-top: 7vh !important` on `section.section-intro .section-wrap`
   at this breakpoint, so we need !important to override. */
@media (max-width: 767px) {
	.content-area .content-wrapper section.section-intro .section-wrap {
		padding-top: 0 !important;
	}
	.content-area .content-wrapper section.section-intro .section-wrap .patb_layout_headertext {
		padding-bottom: 0 !important;
	}
	/* Mobile header is 70px tall (desktop is 107px) — match the spacer to the actual header. */
	#primary {
		padding-top: 70px;
	}
	/* Trim global section padding-bottom on mobile (parent theme sets 5vh). */
	.content-area .content-wrapper section .section-wrap {
		padding-bottom: 1vh;
	}
}

.termin-cta__card {
	background: #fff;
	border-top: 10px solid #00a1ce;
	box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.25);
	padding: 32px 16px 16px;
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.termin-cta__cols {
	display: flex;
	gap: 19px;
	width: 100%;
	align-items: center;
}

.termin-cta__col {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.termin-cta__col + .termin-cta__col {
	padding-left: 19px;
}

.termin-cta__col:first-child {
	border-right: 1px solid #000;
	padding-right: 19px;
}

.termin-cta__icon {
	flex: 0 0 85px;
	width: 85px;
	height: 85px;
	display: block;
}

.termin-cta__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.termin-cta__eyebrow {
	color: #00a1ce;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	margin: 0;
}

.termin-cta__headline {
	color: #000;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.termin-cta__lead {
	font-size: 16px;
	color: #000;
	text-align: center;
	margin: 0;
}

.termin-cta__actions {
	display: flex;
	gap: 16px;
	width: 100%;
	max-width: 443px;
}

.termin-cta__btn {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
	transition: opacity .2s, background-color .2s;
}

.termin-cta__btn:hover,
.termin-cta__btn:focus {
	text-decoration: none;
}

.termin-cta__btn--primary {
	background: #00a1ce;
	color: #fff;
	border: 1px solid #00a1ce;
}

.termin-cta__btn--primary:hover,
.termin-cta__btn--primary:focus {
	background: #008cb3;
	color: #fff;
	border-color: #008cb3;
}

.termin-cta__btn--secondary {
	background: #fff;
	color: #242424;
	border: 1px solid #d1d1d1;
}

.termin-cta__btn--secondary:hover,
.termin-cta__btn--secondary:focus {
	background: #f5f5f5;
	color: #242424;
}

.termin-cta__btn-icon {
	display: block;
	flex: 0 0 auto;
}

.termin-cta__btn-icon--phone {
	width: 16px;
	height: 16px;
}

.termin-cta__btn-icon--mail {
	width: 12px;
	height: 10px;
}

@media (max-width: 768px) {
	.termin-cta__cols {
		flex-direction: column;
		gap: 24px;
	}
	.termin-cta__col:first-child {
		border-right: 0;
		border-bottom: 1px solid #000;
		padding-right: 0;
		padding-bottom: 24px;
	}
	.termin-cta__col + .termin-cta__col {
		padding-left: 0;
	}
	.termin-cta__actions {
		flex-direction: column;
	}
}
