/* =====================================================================
   HSMBCT 2.0 – Layout mit Sidebar, Inhaltsverzeichnis
   Kopf (volle Breite) · Inhalt + Sidebar · Abschluss (volle Breite)
   ===================================================================== */

.hsmbct-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--hsmbct-sidebar-w, 320px);
	gap: var(--hsmbct-sidebar-gap, 48px);
	width: min(100% - 40px, var(--hsmbct-layout-maxw, 1240px));
	margin: 0 auto;
	padding: 40px 0 56px;
	align-items: start;
}
.hsmbct-layout-main { min-width: 0; }
/* Die Spalte muss so hoch wie der Inhalt sein, sonst hat position:sticky
   keinen Raum zum Mitlaufen. */
.hsmbct-layout-side { min-width: 0; align-self: stretch; }

/* Kopf- und Abschlusszonen auf Sidebar-Seiten: gleiche Breite wie
   Inhalt + Sidebar, damit Header und Hauptinhalt buendig abschliessen. */
.hsmbct-page--with-sidebar > .hsmbct-section > * {
	width: min(100% - 40px, var(--hsmbct-layout-maxw, 1240px));
	max-width: none;
}
.hsmbct-page--with-sidebar > .hsmbct-header--bg {
	justify-content: flex-start;
	text-align: left;
}
.hsmbct-page--with-sidebar > .hsmbct-header--bg .hsmbct-header-inner {
	width: min(100% - 40px, var(--hsmbct-layout-maxw, 1240px));
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}
.hsmbct-page--with-sidebar > .hsmbct-header--bg .hsmbct-header-inner > * {
	max-width: var(--hsmbct-hdr-text-maxw, 760px);
}

/* Sektionen in der Inhaltsspalte: Breite der Spalte statt Container-Breite. */
.hsmbct-layout-main > .hsmbct-section > * {
	max-width: 100%;
}
.hsmbct-layout-main > .hsmbct-section {
	padding: 32px 0;
}
.hsmbct-layout-main > .hsmbct-section[style*="background"] {
	padding-left: 28px;
	padding-right: 28px;
	border-radius: var(--hsmbct-radius, 12px);
	margin-bottom: 20px;
}

/* Sidebar: standardmaessig nicht mitlaufend; das Script setzt .is-sticky nur,
   wenn das Fenster breit genug ist und die Sidebar vollstaendig hineinpasst. */
.hsmbct-stick { position: static; }
.hsmbct-stick.is-sticky {
	position: sticky;
	top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
}
.hsmbct-sbb {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.hsmbct-sbs { display: none; }
.hsmbct-sb-el {
	background: #fff;
	border: 1px solid var(--hsmbct-border, #e0e0e0);
	border-radius: var(--hsmbct-radius, 12px);
	padding: 18px 20px;
	font-size: 14px;
	line-height: 1.5;
}
.hsmbct-sb-el--toc { padding: 16px 12px; }
.hsmbct-sb-title,
.hsmbct-toc-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hsmbct-text, #636363);
	margin: 0 0 10px;
}
.hsmbct-toc-title { padding: 0 8px; }
.hsmbct-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: hsmbct-toc; }
.hsmbct-toc li { counter-increment: hsmbct-toc; margin: 0; }
.hsmbct-toc a {
	display: flex;
	gap: 10px;
	padding: 7px 8px;
	border-radius: 8px;
	font-weight: 600;
	color: var(--hsmbct-primary, #008a69);
	text-decoration: none;
	line-height: 1.35;
}
.hsmbct-toc a::before {
	content: counter(hsmbct-toc);
	flex: none;
	width: 18px;
	color: var(--hsmbct-text, #636363);
	font-weight: 700;
}
.hsmbct-toc a:hover,
.hsmbct-toc a:focus-visible { background: var(--hsmbct-primary-ghost, #f0faf6); }

/* Mobil / schmale Fenster: Sidebar rutscht vor den Inhalt, als aufklappbare Leiste. */
@media (max-width: 1000px) {
	.hsmbct-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding-top: 20px;
	}
	.hsmbct-layout-side { order: -1; }
	.hsmbct-stick.is-sticky { position: static; }
	.hsmbct-sbx {
		border: 1px solid var(--hsmbct-border, #e0e0e0);
		border-radius: var(--hsmbct-radius, 12px);
		background: #fff;
	}
	.hsmbct-sbs {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		min-height: 52px;
		padding: 0 18px;
		cursor: pointer;
		list-style: none;
		font-weight: 700;
		font-size: 15px;
		color: var(--hsmbct-primary, #008a69);
	}
	.hsmbct-sbs::-webkit-details-marker { display: none; }
	.hsmbct-sbs svg { flex: none; transition: transform .2s; }
	.hsmbct-sbx[open] .hsmbct-sbs svg { transform: rotate(180deg); }
	.hsmbct-sbx[open] .hsmbct-sbs { border-bottom: 1px solid var(--hsmbct-border, #e0e0e0); }
	.hsmbct-sbb { padding: 14px; }
	.hsmbct-sb-el { border: 0; padding: 4px 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.hsmbct-sbs svg { transition: none; }
}

/* =====================================================================
   Sektionen 2.0: Galerie / Karten, Prozess, Kontakt
   ===================================================================== */
.hsmbct-gal-grid {
	display: grid;
	grid-template-columns: repeat(var(--hsmbct-gal-cols, 3), minmax(0, 1fr));
	gap: 20px;
}
.hsmbct-gal-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--hsmbct-border, #e0e0e0);
	border-radius: var(--hsmbct-radius, 12px);
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}
a.hsmbct-gal-card:hover,
a.hsmbct-gal-card:focus-visible { border-color: var(--hsmbct-primary, #008a69); }
.hsmbct-gal-img, .hsmbct-gal-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hsmbct-gal-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; }
.hsmbct-gal-body { padding: 16px 18px 18px; }
.hsmbct-gal-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--hsmbct-primary, #008a69); background: var(--hsmbct-primary-ghost, #f0faf6); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.hsmbct-gal-title { font-size: 17px; line-height: 1.35; margin: 0 0 6px; color: var(--hsmbct-sec-heading, var(--hsmbct-heading, #1a1a1a)); }
.hsmbct-gal-desc { font-size: 14px; }
.hsmbct-gal-desc p { margin: 0; }

.hsmbct-wf-intro { margin-bottom: 18px; }
.hsmbct-wf-steps { list-style: none; margin: 0; padding: 0; }
.hsmbct-workflow--tiles .hsmbct-wf-steps {
	display: grid;
	grid-template-columns: repeat(var(--hsmbct-wf-cols, 3), minmax(0, 1fr));
	gap: 16px;
}
.hsmbct-workflow--tiles .hsmbct-wf-step {
	background: var(--hsmbct-primary-ghost, #f0faf6);
	border-radius: var(--hsmbct-radius, 12px);
	border-top: 4px solid var(--hsmbct-primary, #008a69);
	padding: 18px 20px;
}
.hsmbct-workflow--stacked .hsmbct-wf-step {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 4px 16px;
	padding: 16px 0;
	border-top: 1px solid var(--hsmbct-border, #e0e0e0);
}
.hsmbct-workflow--stacked .hsmbct-wf-step:first-child { border-top: 0; }
.hsmbct-workflow--stacked .hsmbct-wf-mark { grid-row: span 2; }
.hsmbct-wf-mark { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hsmbct-wf-num {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 32px; height: 32px; padding: 0 10px; border-radius: 999px;
	background: var(--hsmbct-primary, #008a69); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.hsmbct-wf-title { font-size: 17px; margin: 0 0 6px; color: var(--hsmbct-sec-heading, var(--hsmbct-heading, #1a1a1a)); }
.hsmbct-wf-text p { margin: 0 0 8px; }

.hsmbct-contact-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; margin: 12px 0 18px; }
.hsmbct-contact-person { display: flex; align-items: center; gap: 14px; }
.hsmbct-contact-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.hsmbct-contact-name { display: block; color: var(--hsmbct-sec-heading, var(--hsmbct-heading, #1a1a1a)); }
.hsmbct-contact-role { display: block; font-size: 14px; }
.hsmbct-contact-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hsmbct-contact-details li { display: flex; align-items: center; gap: 8px; }
.hsmbct-contact-label { font-weight: 600; }
.hsmbct-contact-value { color: var(--hsmbct-sec-link, var(--hsmbct-primary, #008a69)); }

@media (max-width: 782px) {
	.hsmbct-gal-grid,
	.hsmbct-workflow--tiles .hsmbct-wf-steps { grid-template-columns: minmax(0, 1fr); }
}


/* =====================================================================
   HSMBCT 2.0.2 – Key-Facts im Header (Bubbles)
   ===================================================================== */
.hsmbct-page .hsmbct-header-facts {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none !important;
	margin: 22px 0 0 !important;
	padding: 0 !important;
}
.hsmbct-header--bg .hsmbct-header-facts { justify-content: inherit; }
.hsmbct-page .hsmbct-header-facts li {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 7px 16px !important;
	border: 1.5px solid currentColor;
	border-color: color-mix(in srgb, currentColor 55%, transparent);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	list-style: none !important;
	background: none;
}
.hsmbct-page .hsmbct-header-facts li::before,
.hsmbct-page .hsmbct-header-facts li::marker { content: none !important; display: none !important; }
.hsmbct-page .hsmbct-header-facts a { color: inherit !important; text-decoration: none !important; }
.hsmbct-page .hsmbct-header-facts a:hover { text-decoration: underline !important; }

/* =====================================================================
   Tabellen in Sektionen: Kopfzeile in Primaerfarbe, Zeilen abgestuft.
   Gegen Theme-Regeln abgesichert.
   ===================================================================== */
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	margin: 18px 0 22px !important;
	border: 1px solid var(--hsmbct-border, #e0e6ef) !important;
	border-radius: var(--hsmbct-radius-sm, 8px);
	overflow: hidden;
	font-size: 14.5px;
	line-height: 1.5;
	background: #fff !important;
	color: var(--hsmbct-text, #2b3440) !important;
}
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) th,
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) td {
	padding: 12px 16px !important;
	border: 0 !important;
	border-top: 1px solid var(--hsmbct-border, #e0e6ef) !important;
	text-align: left !important;
	vertical-align: top !important;
	background: transparent;
	color: inherit;
}
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) thead th,
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) thead td,
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw):not(:has(thead)) tr:first-child > th {
	background: var(--hsmbct-primary, #008a69) !important;
	color: #fff !important;
	font-weight: 700 !important;
	border-top: 0 !important;
}
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) tbody tr:first-child > * { border-top: 0 !important; }
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) tbody tr:nth-child(odd) > td,
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) tbody tr:nth-child(odd) > th {
	background: #fff !important;
}
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) tbody tr:nth-child(even) > td,
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) tbody tr:nth-child(even) > th {
	background: var(--hsmbct-table-zebra, #f7f9fd) !important;
	background: var(--hsmbct-table-zebra, color-mix(in srgb, var(--hsmbct-primary, #1a3879) 5%, #fff)) !important;
}
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) tbody th { font-weight: 600 !important; }
.hsmbct-page .hsmbct-section table:not(.hsmbct-raw) a { color: var(--hsmbct-primary, #008a69); }
.hsmbct-page .hsmbct-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* =====================================================================
   Listen in Fliesstexten: Disc-Punkte bzw. Nummerierung bleiben erhalten,
   auch wenn das Theme list-style entfernt oder eigene ::before-Marker setzt.
   ===================================================================== */
.hsmbct-page .hsmbct-section ul:not([class]),
.hsmbct-page .hsmbct-section ol:not([class]) {
	margin: 0 0 16px !important;
	padding-left: 1.4em !important;
	list-style-position: outside !important;
}
.hsmbct-page .hsmbct-section ul:not([class]) { list-style: disc outside !important; }
.hsmbct-page .hsmbct-section ul:not([class]) ul:not([class]) { list-style-type: circle !important; margin-bottom: 0 !important; }
.hsmbct-page .hsmbct-section ol:not([class]) { list-style: decimal outside !important; }
.hsmbct-page .hsmbct-section ol:not([class]) ol:not([class]) { list-style-type: lower-alpha !important; margin-bottom: 0 !important; }
.hsmbct-page .hsmbct-section ul:not([class]) > li,
.hsmbct-page .hsmbct-section ol:not([class]) > li {
	display: list-item !important;
	list-style: inherit !important;
	margin: 0 0 6px !important;
	padding-left: 4px !important;
	background-image: none !important;
	position: static;
}
.hsmbct-page .hsmbct-section ul:not([class]) > li::before,
.hsmbct-page .hsmbct-section ol:not([class]) > li::before {
	content: none !important;
	display: none !important;
}
.hsmbct-page .hsmbct-section ul:not([class]) > li::marker { color: var(--hsmbct-primary, #008a69); }
.hsmbct-page .hsmbct-section ol:not([class]) > li::marker { color: var(--hsmbct-primary, #008a69); font-weight: 700; }

/* =====================================================================
   Ablauf „Untereinander, fortlaufend": Nummer links, Verbindungslinie,
   Titel + Text rechts. Theme-Typografie fuer h3/p neutralisiert.
   ===================================================================== */
.hsmbct-page .hsmbct-workflow--stacked .hsmbct-wf-steps {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}
.hsmbct-page .hsmbct-workflow--stacked .hsmbct-wf-step {
	position: relative;
	display: grid !important;
	grid-template-columns: var(--hsmbct-wf-numw, 40px) minmax(0, 1fr);
	column-gap: 18px;
	margin: 0 !important;
	padding: 0 0 24px !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	width: auto !important;
	float: none !important;
}
/* Verbindungslinie mittig unter der Markierung, unabhängig von deren Breite. */
.hsmbct-page .hsmbct-workflow--stacked .hsmbct-wf-step::before {
	content: "";
	position: absolute;
	left: calc(var(--hsmbct-wf-numw, 40px) / 2 - 1px);
	top: 40px;
	bottom: 0;
	width: 2px;
	background: var(--hsmbct-border, #dfe5ee);
}
.hsmbct-page .hsmbct-workflow--stacked .hsmbct-wf-step:last-child { padding-bottom: 0 !important; }
.hsmbct-page .hsmbct-workflow--stacked .hsmbct-wf-step:last-child::before { display: none; }
.hsmbct-page .hsmbct-workflow--stacked .hsmbct-wf-step::marker { content: none; }
.hsmbct-page .hsmbct-workflow--stacked .hsmbct-wf-mark {
	grid-row: 1 / span 2;
	grid-column: 1;
	margin: 0 !important;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}
.hsmbct-page .hsmbct-workflow--stacked .hsmbct-wf-icon { display: none; }
.hsmbct-page .hsmbct-workflow--stacked .hsmbct-wf-num {
	position: relative;
	z-index: 1;
	width: 40px;
	height: 40px;
	min-width: 40px;
	padding: 0;
	font-size: 15px;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 0 0 4px var(--hsmbct-sec-bg, #fff);
}
/* Text-Markierungen („Woche 1“, „Tag 3“): Pille in Textbreite statt Kreis. */
.hsmbct-page .hsmbct-workflow--label .hsmbct-wf-num {
	width: auto;
	height: 32px;
	min-width: 40px;
	padding: 0 12px;
	margin-top: 4px;
	border-radius: 999px;
	font-size: 13px;
	letter-spacing: 0;
}
.hsmbct-workflow--label .hsmbct-wf-num { white-space: nowrap; }
.hsmbct-page .hsmbct-workflow--stacked .hsmbct-wf-title,
.hsmbct-page .hsmbct-workflow--stacked .hsmbct-wf-text { grid-column: 2; }
.hsmbct-page .hsmbct-wf-title {
	font-family: inherit !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	margin: 8px 0 6px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	text-align: left !important;
	color: var(--hsmbct-sec-heading, var(--hsmbct-heading, #1a1a1a)) !important;
}
.hsmbct-page .hsmbct-wf-title::before,
.hsmbct-page .hsmbct-wf-title::after { content: none !important; display: none !important; }
.hsmbct-page .hsmbct-wf-text,
.hsmbct-page .hsmbct-wf-text p {
	font-family: inherit !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
	text-align: left !important;
	color: var(--hsmbct-sec-text, var(--hsmbct-text, #3a4350)) !important;
}
.hsmbct-page .hsmbct-wf-text p { margin: 0 0 8px !important; padding: 0 !important; }
.hsmbct-page .hsmbct-wf-text p:last-child { margin-bottom: 0 !important; }

/* FAQ-Akkordeon in der Inhaltsspalte: volle Spaltenbreite. */
.hsmbct-layout-main .hsmbct-faq-list { max-width: none; margin-left: 0; margin-right: 0; }

/* Aufzählungs-Sektion ohne Icon: Disc-Punkt statt gar keiner Markierung. */
.hsmbct-page .hsmbct-bullets__list:has(> .hsmbct-bullet--dot) { gap: 12px; }
.hsmbct-page .hsmbct-bullet--dot { gap: 12px; }
.hsmbct-page .hsmbct-bullet--dot::before {
	content: "";
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	margin-top: .62em;
	border-radius: 50%;
	background: var(--hsmbct-sec-link, var(--hsmbct-primary, #008a69));
}

/* =====================================================================
   Breadcrumb (2.1)
   ===================================================================== */
.hsmbct-page .hsmbct-crumbs { margin: 0 0 18px; font-size: 14px; line-height: 1.4; }
.hsmbct-page .hsmbct-crumbs ol, .hsmbct-page .hsmbct-section .hsmbct-crumbs .hsmbct-crumbs-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.hsmbct-page .hsmbct-crumbs li { display: inline-flex; align-items: center; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.hsmbct-page .hsmbct-crumbs li::before, .hsmbct-page .hsmbct-crumbs li::marker { content: none !important; }
.hsmbct-page .hsmbct-crumbs a { color: inherit !important; font-weight: 600; text-decoration: none !important; opacity: .85; }
.hsmbct-page .hsmbct-crumbs a:hover, .hsmbct-page .hsmbct-crumbs a:focus-visible { opacity: 1; text-decoration: underline !important; }
.hsmbct-page .hsmbct-crumbs [aria-current] { opacity: .75; }
.hsmbct-page .hsmbct-crumbs-sep { margin: 0 8px; opacity: .6; }
