/* happybaby Services – Frontend
 * Farben/Schriften kommen als CSS-Variablen aus dem Backend (Tab Design).
 * Responsiv per Container-Query: maßgeblich ist die Breite der Spalte.
 */

.hbsvc {
	container-type: inline-size;
	container-name: hbsvc;
	display: block;
	width: 100%;
	background: var(--hbsvc-bg);
	border-radius: var(--hbsvc-box-radius, 0);
	overflow: hidden;
	--hbsvc-gap: 40px;
}

.hbsvc *,
.hbsvc *::before,
.hbsvc *::after { box-sizing: border-box; }

.hbsvc__in {
	color: var(--hbsvc-text);
	font-family: var(--hbsvc-font-body);
	display: flex;
	flex-direction: column;
	gap: var(--hbsvc-gap);
	padding: var(--hbsvc-pad, 64px);
	-webkit-font-smoothing: antialiased;
}

.hbsvc p,
.hbsvc h2,
.hbsvc h3,
.hbsvc ul { margin: 0; padding: 0; }
/* höhere Spezifität gegen Theme-/Admin-Regeln wie ".wrap h2" oder ".elementor h2" */
.hbsvc .hbsvc__in h2,
.hbsvc .hbsvc__in h3 { margin: 0; padding: 0; text-transform: none; }
.hbsvc .hbsvc__in p { margin: 0; }
.hbsvc .hbsvc__in .hbsvc__kicker,
.hbsvc .hbsvc__in .hbsvc__gname { text-transform: uppercase; }
.hbsvc ul { list-style: none; }
.hbsvc li { margin: 0; padding: 0; }
.hbsvc li::before { content: none; }

.hbsvc a,
.hbsvc a:visited {
	color: var(--hbsvc-text);
	text-decoration: none;
	box-shadow: none;
}
.hbsvc a:focus-visible {
	outline: 2px solid var(--hbsvc-accent);
	outline-offset: 3px;
	border-radius: 2px;
}
.hbsvc__arrow { flex: 0 0 auto; transition: transform .18s ease; }

/* Kicker ------------------------------------------------------------ */
.hbsvc__kicker {
	display: block;
	font-family: var(--hbsvc-font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--hbsvc-accent);
}

/* Kopf -------------------------------------------------------------- */
.hbsvc__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	border-bottom: 1px solid var(--hbsvc-text);
	padding-bottom: 20px;
}
.hbsvc__headtext {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 760px;
}
.hbsvc .hbsvc__title {
	font-family: var(--hbsvc-font-head);
	font-weight: 400;
	font-size: clamp(34px, 3.6cqi, 46px);
	line-height: 1.1;
	letter-spacing: -.01em;
	color: var(--hbsvc-text);
}
/* Fremde Regeln (Theme, Elementor, Admin) dürfen die Titel-Spans nicht verkleinern */
.hbsvc .hbsvc__title > span {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}
.hbsvc__title-short { display: none; }

.hbsvc .hbsvc__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	padding: 12px 0;
	min-height: 44px;
}
.hbsvc .hbsvc__all:hover { color: var(--hbsvc-accent); }
.hbsvc .hbsvc__all:hover .hbsvc__arrow { transform: translateX(3px); }
.hbsvc__all--foot { display: none !important; }

/* Körper ------------------------------------------------------------ */
.hbsvc__body {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}
.hbsvc--no-feature .hbsvc__body { grid-template-columns: minmax(0, 1fr); }

/* Aufmacher --------------------------------------------------------- */
.hbsvc .hbsvc__feature {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.hbsvc__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--hbsvc-media);
	border-radius: var(--hbsvc-radius);
	overflow: hidden;
}
.hbsvc .hbsvc__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .5s ease;
}
.hbsvc .hbsvc__ftitle {
	font-family: var(--hbsvc-font-head);
	font-weight: 400;
	font-size: clamp(26px, 2.6cqi, 34px);
	line-height: 1.15;
	color: var(--hbsvc-text);
	transition: color .18s ease;
}
.hbsvc__ftext {
	display: block;
	font-size: 17px;
	line-height: 1.6;
	color: var(--hbsvc-muted);
	max-width: 560px;
}
.hbsvc__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
}
.hbsvc .hbsvc__feature:hover .hbsvc__ftitle { color: var(--hbsvc-accent); }
.hbsvc .hbsvc__feature:hover .hbsvc__img { transform: scale(1.03); }
.hbsvc .hbsvc__feature:hover .hbsvc__arrow { transform: translateX(3px); }

/* Gruppen ----------------------------------------------------------- */
.hbsvc__groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 40px;
	row-gap: 28px;
	align-content: start;
}
.hbsvc--cols-1 .hbsvc__groups { grid-template-columns: minmax(0, 1fr); }
.hbsvc--no-feature .hbsvc__groups { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.hbsvc .hbsvc__gname {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hbsvc-muted);
	padding-bottom: 8px;
}
.hbsvc .hbsvc__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	border-top: 1px solid var(--hbsvc-line);
	padding: 12px 0;
	min-height: 44px;
}
.hbsvc__itext {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.hbsvc__ititle {
	font-family: var(--hbsvc-font-head);
	font-size: 19px;
	line-height: 1.3;
	transition: color .18s ease;
}
.hbsvc__claim {
	font-size: 14px;
	line-height: 1.4;
	color: var(--hbsvc-muted);
}
.hbsvc__badge {
	display: inline-block;
	vertical-align: 3px;
	margin-left: 6px;
	font-family: var(--hbsvc-font-body);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	background: var(--hbsvc-badge-bg);
	color: var(--hbsvc-badge-text);
	border-radius: 3px;
	padding: 4px 6px;
}
.hbsvc .hbsvc__item:hover .hbsvc__ititle { color: var(--hbsvc-accent); }
.hbsvc .hbsvc__item:hover .hbsvc__arrow { transform: translateX(3px); }

/* Mittlere Breite: Gruppen einspaltig neben dem Aufmacher ------------ */
@container hbsvc (max-width: 1100px) {
	.hbsvc__body { gap: 48px; }
	.hbsvc--has-feature .hbsvc__groups { grid-template-columns: minmax(0, 1fr); }
}

/* ===================================================================
 * MOBIL – greift bei schmaler Spalte (Container ≤ 880 px)
 * und immer bei layout="mobil". Beide Blöcke sind bewusst identisch.
 * =================================================================== */

@container hbsvc (max-width: 880px) {
	.hbsvc__in { gap: 28px; padding: var(--hbsvc-pad-m, 20px); }

	.hbsvc__head { border-bottom: 0; padding-bottom: 0; }
	.hbsvc__headtext { gap: 8px; }
	.hbsvc__head .hbsvc__kicker { font-size: 12px; }
	.hbsvc .hbsvc__title { font-size: 30px; line-height: 1.15; }
	.hbsvc__title-long { display: none; }
	.hbsvc__title-short { display: inline; }
	.hbsvc__head .hbsvc__all { display: none; }
	.hbsvc__all--foot { display: inline-flex !important; align-self: flex-start; }

	.hbsvc__body { grid-template-columns: minmax(0, 1fr); gap: 28px; }

	.hbsvc .hbsvc__feature { gap: 10px; }
	.hbsvc__feature .hbsvc__kicker { font-size: 12px; }
	.hbsvc .hbsvc__ftitle { font-size: 25px; line-height: 1.2; }
	.hbsvc__ftext,
	.hbsvc__more { display: none; }

	.hbsvc__groups,
	.hbsvc--no-feature .hbsvc__groups { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
	.hbsvc .hbsvc__gname { padding-bottom: 6px; }
	.hbsvc .hbsvc__item { min-height: 48px; padding: 10px 0; }
	.hbsvc__ititle { font-size: 18px; }
	.hbsvc__claim { display: none; }
	.hbsvc--claims-mobile .hbsvc__claim { display: block; font-size: 13px; }
}

.hbsvc--mobil .hbsvc__in { gap: 28px; padding: var(--hbsvc-pad-m, 20px); }

.hbsvc--mobil .hbsvc__head { border-bottom: 0; padding-bottom: 0; }
.hbsvc--mobil .hbsvc__headtext { gap: 8px; }
.hbsvc--mobil .hbsvc__head .hbsvc__kicker { font-size: 12px; }
.hbsvc--mobil .hbsvc__title { font-size: 30px; line-height: 1.15; }
.hbsvc--mobil .hbsvc__title-long { display: none; }
.hbsvc--mobil .hbsvc__title-short { display: inline; }
.hbsvc--mobil .hbsvc__head .hbsvc__all { display: none; }
.hbsvc--mobil .hbsvc__all--foot { display: inline-flex !important; align-self: flex-start; }

.hbsvc--mobil .hbsvc__body { grid-template-columns: minmax(0, 1fr); gap: 28px; }

.hbsvc--mobil .hbsvc__feature { gap: 10px; }
.hbsvc--mobil .hbsvc__feature .hbsvc__kicker { font-size: 12px; }
.hbsvc--mobil .hbsvc__ftitle { font-size: 25px; line-height: 1.2; }
.hbsvc--mobil .hbsvc__ftext,
.hbsvc--mobil .hbsvc__more { display: none; }

.hbsvc--mobil .hbsvc__groups { grid-template-columns: minmax(0, 1fr) !important; row-gap: 22px; }
.hbsvc--mobil .hbsvc__gname { padding-bottom: 6px; }
.hbsvc--mobil .hbsvc__item { min-height: 48px; padding: 10px 0; }
.hbsvc--mobil .hbsvc__ititle { font-size: 18px; }
.hbsvc--mobil .hbsvc__claim { display: none; }
.hbsvc--mobil.hbsvc--claims-mobile .hbsvc__claim { display: block; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
	.hbsvc *,
	.hbsvc *::before,
	.hbsvc *::after { transition: none !important; }
}
