/* HB Coaching – Startseiten */

.hb-landing {
	--hb-ink: #1f2a27;
	--hb-muted: #56615d;
	--hb-sand: #f3efe8;
	--hb-card: #ffffff;
	--hb-dark: #1f2a27;
	--hb-on-dark: #f1ede5;
	--hb-accent: #2f4a3f;        /* Waldgrün */
	--hb-accent-hover: #243a31;
	color: var(--hb-ink);
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hb-page-business {
	--hb-accent: #26384a;        /* Schiefer/Nachtblau */
	--hb-accent-hover: #1b2835;
	--hb-dark: #1b2330;
}

/* Abschnitte lückenlos untereinander */
.hb-landing > * { margin-block: 0 !important; }

/* ---------- Hero ---------- */
.hb-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: max(560px, calc(100svh - 90px));
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 6rem 1.5rem !important;
	text-align: center;
}
.hb-hero > canvas {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	z-index: 0 !important;
	max-width: none !important;
	margin: 0 !important;
}
.hb-hero > :not(canvas) {
	position: relative;
	z-index: 1;
	max-width: 860px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.hb-schwarm { background: #f4e9dc; }
.hb-nebel {
	background: #e6e1d8;
	justify-content: flex-start;
	padding-top: clamp(4rem, 14vh, 9rem) !important;
}
.hb-hero .hb-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.8rem;
	color: var(--hb-muted);
	margin: 0 auto 1rem;
}
.hb-hero h1 {
	font-size: clamp(2.2rem, 5.6vw, 4.1rem);
	line-height: 1.08;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--hb-ink);
	margin: 0 auto 1.25rem;
}
.hb-hero .hb-lead {
	font-size: clamp(1.05rem, 1.7vw, 1.25rem);
	line-height: 1.6;
	max-width: 640px !important;
	color: var(--hb-ink);
	opacity: 0.85;
	margin: 0 auto 2rem;
}
.hb-hero .wp-block-buttons { justify-content: center; gap: 0.75rem; }
.hb-hero .is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

/* ---------- Buttons ---------- */
.hb-landing .wp-block-button__link {
	background: var(--hb-accent);
	color: #fff;
	border: 1px solid var(--hb-accent);
	border-radius: 3px;
	padding: 0.9em 1.7em;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.hb-landing .wp-block-button__link:hover,
.hb-landing .wp-block-button__link:focus-visible {
	background: var(--hb-accent-hover);
	border-color: var(--hb-accent-hover);
	color: #fff;
}
.hb-landing .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--hb-accent);
}
.hb-landing .is-style-outline .wp-block-button__link:hover {
	background: var(--hb-accent);
	color: #fff;
}

/* ---------- Abschnitte ---------- */
.hb-section { padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem !important; }
.hb-section > :not(.alignfull) {
	max-width: 1100px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}
/* Fließtext linksbündig im Raster, aber mit angenehmer Zeilenlänge */
.hb-section > .hb-intro,
.hb-section > .hb-checklist {
	padding-right: max(0px, calc(100% - 720px)) !important;
}
.hb-section h2 {
	font-size: clamp(1.7rem, 3.2vw, 2.4rem);
	font-weight: 400;
	line-height: 1.2;
	margin-top: 0;
	margin-bottom: 1rem;
	color: inherit;
}
.hb-section .hb-intro {
	font-size: 1.12rem;
	line-height: 1.7;
	color: var(--hb-muted);
	margin-bottom: 2.5rem;
}
.hb-section--sand { background: var(--hb-sand); }
.hb-section--dark { background: var(--hb-dark); color: var(--hb-on-dark); }
.hb-section--dark p { color: var(--hb-on-dark); opacity: 0.9; }
.hb-section--cta { text-align: center; }
.hb-section--cta > .hb-intro { padding-right: 0 !important; max-width: 640px !important; }
.hb-section--cta .wp-block-buttons { justify-content: center; }

.hb-section .wp-block-columns { gap: 1.5rem; margin-bottom: 1.5rem; }

/* ---------- Karten ---------- */
.hb-card {
	background: var(--hb-card);
	border: 1px solid rgba(31, 42, 39, 0.08);
	border-radius: 6px;
	padding: 1.75rem !important;
	height: 100%;
}
.hb-section--sand .hb-card { border-color: transparent; }
.hb-card h3 {
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0 0 0.6rem;
	color: var(--hb-ink);
}
.hb-card p { margin: 0; line-height: 1.65; color: var(--hb-muted); }
.hb-card .hb-step-num {
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	color: var(--hb-accent);
	font-weight: 600;
	margin-bottom: 0.75rem;
}

/* ---------- Liste „Kennst du das?“ ---------- */
.hb-checklist {
	list-style: none;
	padding-left: 0 !important;
	margin-bottom: 2rem;
}
.hb-checklist li {
	position: relative;
	padding: 0.9rem 0 0.9rem 2rem;
	border-bottom: 1px solid rgba(31, 42, 39, 0.1);
	font-size: 1.1rem;
	line-height: 1.5;
}
.hb-checklist li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 1.45rem;
	width: 0.9rem;
	height: 1px;
	background: var(--hb-accent);
}

/* ---------- Zitat & Hinweis ---------- */
.hb-quote {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	line-height: 1.4;
	font-style: italic;
	margin: 0;
	padding-left: 1.5rem;
	border-left: 2px solid currentColor;
	opacity: 0.95;
}
.hb-section--dark .wp-block-columns { align-items: center; }
.hb-section > .hb-note {
	font-size: 0.9rem;
	color: var(--hb-muted);
	max-width: 640px !important;
	margin-top: 3rem !important;
	line-height: 1.6;
}

@media (max-width: 781px) {
	.hb-hero { text-align: left; }
	.hb-hero .wp-block-buttons { justify-content: flex-start; }
	.hb-hero .hb-lead, .hb-hero h1, .hb-hero .hb-eyebrow { margin-left: 0; }
	.hb-quote { margin-top: 1.5rem; }
}

/* ---------- Rondell (Karussell) ---------- */
.hb-slide { margin-bottom: 3rem; }
.hb-slide .hb-slide-kicker {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.8rem;
	color: var(--hb-accent);
	font-weight: 600;
	margin: 0 0 0.5rem;
}
.hb-slide .hb-slide-title {
	font-size: clamp(1.45rem, 2.6vw, 1.9rem);
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 0.9rem;
}
.hb-slide .hb-slide-text {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--hb-muted);
	max-width: 720px !important;
	margin: 0 0 2rem !important;
}
.hb-slide > * { margin-left: 0 !important; }
@media (max-width: 781px) {
	.hb-slide .hb-card { padding: 1.25rem !important; }
	.hb-slide .wp-block-columns { gap: 0.75rem; }
}
.hb-rondell.is-ready .hb-rondell__track { display: grid; overflow: hidden; }
.hb-rondell.is-ready .hb-slide {
	grid-area: 1 / 1;
	margin: 0 !important;
	max-width: none !important;
	opacity: 0;
	visibility: hidden;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out, visibility 0s linear 0.6s;
	z-index: 1;
}
.hb-rondell.is-ready .hb-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out, visibility 0s;
	z-index: 2;
}
/* Start-/Zielposition beim Rein-/Rausschieben - ohne Übergang gesetzt, damit der
   Sprung an den Bildschirmrand unsichtbar bleibt, bevor die Animation startet. */
.hb-rondell.is-ready .hb-slide.hb-slide--enter-right,
.hb-rondell.is-ready .hb-slide.hb-slide--enter-left {
	opacity: 1;
	visibility: visible;
	transition: none;
	z-index: 2;
}
.hb-rondell.is-ready .hb-slide.hb-slide--enter-right { transform: translateX(100%); }
.hb-rondell.is-ready .hb-slide.hb-slide--enter-left { transform: translateX(-100%); }
.hb-rondell.is-ready .hb-slide.hb-slide--exit-left,
.hb-rondell.is-ready .hb-slide.hb-slide--exit-right {
	opacity: 1;
	visibility: visible;
	transition: transform 0.6s ease-in-out;
	z-index: 1;
}
.hb-rondell.is-ready .hb-slide.hb-slide--exit-left { transform: translateX(-100%); }
.hb-rondell.is-ready .hb-slide.hb-slide--exit-right { transform: translateX(100%); }
.hb-rondell__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2rem !important;
}
.hb-rondell__dots { display: flex; gap: 0.5rem; align-items: center; }
.hb-rondell__dot {
	position: relative;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(31, 42, 39, 0.2);
	overflow: hidden;
	cursor: pointer;
	transition: width 0.4s ease;
}
.hb-rondell__dot.is-active { width: 44px; }
.hb-rondell__fill {
	position: absolute;
	inset: 0;
	width: 0;
	background: var(--hb-accent);
	border-radius: inherit;
}
.hb-rondell__dot.is-active .hb-rondell__fill { animation: hb-fill var(--hb-interval, 9000ms) linear forwards; }
.hb-rondell.is-paused .hb-rondell__dot.is-active .hb-rondell__fill { animation-play-state: paused; }
@keyframes hb-fill { to { width: 100%; } }
.hb-rondell__arrow,
.hb-rondell__pause {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(31, 42, 39, 0.25);
	border-radius: 999px;
	background: transparent;
	color: var(--hb-ink);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
.hb-rondell__arrow:hover,
.hb-rondell__pause:hover { background: #fff; border-color: var(--hb-accent); }
.hb-rondell__arrow:focus-visible,
.hb-rondell__pause:focus-visible,
.hb-rondell__dot:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 3px; }
.hb-rondell__arrow svg,
.hb-rondell__pause svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.hb-rondell__pause { margin-left: 0; }
.hb-rondell__pause svg path[d^="M8"] { fill: currentColor; stroke: none; }
@media (prefers-reduced-motion: reduce) {
	.hb-rondell.is-ready .hb-slide { transition: none; transform: none; }
}
