/**
 * Tab-Bereich: Umgebung (form-card) und Tabs/Panels unabhängig färbbar.
 * Tabs: 337×78, Radius 20px 20px 0 0 (Figma Button 19).
 */

.ezh-tab-section {
	background: var(--ezh-tab-surround-bg, var(--pastell-baer));
	color: var(--ezh-tab-surround-text, var(--blau-baer));
	border-radius: 20px;
	padding: 0 0 1.75rem;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.ezh-tab-section {
		padding-bottom: 2.5rem;
	}
}

/*
 * .form-card übernimmt "Hintergrund um die Tabs" (surroundColor).
 * Der Tab-Block selbst bleibt darin transparent, damit sich die Karte nicht doppelt.
 */
.form-card .ezh-tab-section,
.form-card .wp-block-ezh-baer-tab-section {
	background: transparent !important;
	color: inherit;
	padding: 0;
	border-radius: 0;
}

.form-card .ezh-tab-section__tabs {
	padding-top: 0;
	padding-inline: 0;
}

.form-card .ezh-tab-section__panels {
	padding-inline: 0;
}

.ezh-tab-section__tabs {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 1.25rem var(--gutter) 0;
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.ezh-tab-section__tabs {
		padding-top: 1.75rem;
		padding-inline: 3rem;
	}
}

.ezh-tab-section__tab {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	padding: 8px;
	gap: 10px;
	flex: 0 1 336.71px;
	width: 336.71px;
	max-width: 100%;
	height: 78px;
	margin: 0;
	border: 0;
	border-radius: 20px 20px 0 0;
	background: var(--beige-baer);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
	color: var(--blau-baer);
	cursor: pointer;
}

.ezh-tab-section__tab.is-active,
.ezh-tab-section__tab[aria-selected="true"] {
	font-weight: 600;
}

.ezh-tab-section__tab:focus-visible {
	outline: 2px solid var(--tuerkis-baer);
	outline-offset: 2px;
	z-index: 1;
}

.ezh-tab-section__panels {
	min-width: 0;
	padding: 0 var(--gutter);
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.ezh-tab-section__panels {
		padding-inline: 3rem;
	}
}

.ezh-tab-section__panel {
	background: var(--beige-baer);
	color: var(--blau-baer);
	border-radius: 20px;
	padding: 1.75rem var(--gutter) 2.5rem;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.ezh-tab-section__panel {
		padding: 2.5rem 3rem 3rem;
	}
}

.ezh-tab-section.is-ready .ezh-tab-section__panel:not(.is-active) {
	display: none;
}

.ezh-tab-section:not(.is-ready) .ezh-tab-section__panel:not(:first-child) {
	display: none;
}

.ezh-tab-section__panel > :first-child {
	margin-top: 0;
}

.ezh-tab-section__panel > :last-child {
	margin-bottom: 0;
}

.ezh-tab-section .ezh-workshops-booking--gta {
	background: transparent;
	border-radius: 0;
	padding: 0;
}

.ezh-tab-section .ezh-workshops-booking-wrap {
	margin-top: 0;
}
