/* From Butler+ Version */
.tabgroup-headline h2 {
	font-weight: 600;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

@media (max-width: 768px) {
	.tabgroup-headline h2 {
		font-size: var(--font-size-mobile-larger);
		line-height: 0.9;
		text-align: center;
	}
}

.tabgroup-wrapper--inline .tabgroup.horizontal > [role='tablist'] {
	position: sticky;
	top: 0;
	display: grid !important;
	border-bottom: none;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	z-index: 100;
}

.tabgroup-wrapper--inline.tabgroup-wrapper--no-margins .tabgroup.horizontal > [role='tablist'] {
	box-shadow: 0 1px 0 var(--color-theme-blue-bright);
}

.tabgroup-wrapper--inline .tabgroup.horizontal > [role='tablist'] .tabitem:nth-last-child(2) > .tab::after {
	content: none;
	display: none;
}

.tabgroup-wrapper--inline .tabgroup.horizontal .tabitem > .tab {
	position: relative;
	display: flex;
	padding: 14px 20px;
	width: 100%;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: clamp(26px, calc(26px + 20 * ((100vw - 390px) / 1050)), 46px);
	line-height: 0.87;
	letter-spacing: 0.23px;
	background: #e9f3f6;
	color: #808ca3;
}

.tabgroup-wrapper--inline .tabgroup.horizontal .tabitem > .tab::before {
	display: inline-block;
	margin-right: 15px;
	content: '';
	width: 24px;
	height: 28px;
	background: url('data:image/svg+xml;utf8,<svg width="26" height="30" viewBox="0 0 26 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.00081 17.3674L12.6967 28L24.3926 17.3674" stroke="%2300A3E0" stroke-width="2"/><path d="M12.6973 27.2904L12.6973 0" stroke="%2300A3E0" stroke-width="2"/></svg>') no-repeat center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tabgroup-wrapper--inline .tabgroup.horizontal .tabitem > .tab::after {
	display: inline-flex;
	position: absolute;
	content: 'OR';
	top: 50%;
	right: 0;
	width: 32.5px;
	height: 32.5px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--color-theme-primary);
	background: #fff;
	border-radius: 50%;
	color: var(--color-theme-primary);
	font: 500 9px/1.5 var(--global-font-family);
	transform: translate(50%, -50%);
	z-index: 1;
}

.tabgroup-wrapper--inline .tabgroup.horizontal .tabitem > .tab[aria-selected='true'] {
	background: var(--color-theme-forest);
	color: #fff;
}

.tabgroup-wrapper--inline .tabgroup.horizontal .tabitem > .tab[aria-selected='true']::before {
	opacity: 1;
}

.tabgroup-wrapper--inline .tabgroup.horizontal .tabitem-content {
	padding: 0;
}

@media only screen and (max-width: 767px) {
	.tabgroup-wrapper--inline .tabgroup.horizontal > [role='tablist'] {
		overflow: hidden;
	}

	.tabgroup-wrapper--inline .tabgroup.horizontal > [role='tablist'] .tabitem > .tab {
		padding: 14px 48px;
		white-space: normal;
	}

	.tabgroup-wrapper--inline .tabgroup.horizontal .tabitem > .tab::before {
		position: absolute;
		left: 20px;
	}
}

@media only screen and (min-width: 1024px) {
	.tabgroup-wrapper--inline .tabgroup.horizontal .tabitem > .tab {
		padding: 35px 20px;
	}

	.tabgroup-wrapper--inline .tabgroup.horizontal .tabitem > .tab::before {
		margin-right: 30px;
		width: 38px;
		height: 45px;
	}

	.tabgroup-wrapper--inline .tabgroup.horizontal .tabitem > .tab::after {
		width: 41.5px;
		height: 41.5px;
		font-size: 14px;
	}
}

.tabgroup-wrapper--margins {
	margin: 120px 0 90px !important;
}

.tabgroup-headline {
	margin-bottom: 45px;
	text-align: left;
}

@media only screen and (min-width: 769px) {
	.tabgroup-wrapper--margins {
		margin: 120px 0 120px !important;
	}

	.tabgroup-headline {
		text-align: center;
	}
}

.tabgroup-general .tabitem-content {
	padding-top: 20px !important;
}

.tabgroup-wrapper--inline.tabgroup-general .tabgroup.horizontal .tabitem > .tab {
	font-size: clamp(37px, calc(37px + (5 * (100vw - 390px) / 1050)), 42px);
}

@media only screen and (max-width: 1023px) {
	.tabgroup-wrapper--inline.tabgroup-general .tabgroup.horizontal > [role='tablist'] {
		display: flex !important;
		scroll-behavior: smooth;
		scroll-snap-type: x;
		overflow: auto;
	}
}

@media only screen and (max-width: 768px) {
	.tabgroup-wrapper--inline.tabgroup-general .tabgroup.horizontal .tabitem > .tab {
		white-space: nowrap;
	}

	.tabgroup-wrapper--inline.tabgroup-general .tabgroup.horizontal .tabitem > .tab::after {
		content: none;
	}
}

@media only screen and (min-width: 769px) {
	.tabgroup-general .tabitem-content {
		padding-top: 60px !important;
	}

	.tabgroup-wrapper--inline.tabgroup-general .tabgroup.horizontal .tabitem > .tab {
		padding: 15px 20px;
	}

	.tabgroup-wrapper--inline.tabgroup-general .tabgroup.horizontal .tabitem > .tab::after {
		content: none;
	}
}

@media only screen and (min-width: 1024px) {
	.tabgroup-wrapper--inline.tabgroup-general .tabgroup.horizontal .tabitem > .tab {
		padding: 10px 60px;
	}

	.tabgroup-wrapper--inline.tabgroup-general .tabgroup.horizontal .tabitem > .tab::before {
		position: absolute;
		left: 20px;
	}
}

/* vertical tabs */
.tabgroup-wrapper--vertical .tabgroup.vertical > .acf-innerblocks-container {
	padding: 40px 0;
}

.tabgroup-wrapper--vertical .tabgroup.vertical > .acf-innerblocks-container:before {
	background: var(--color-theme-forest) !important;
}

.tabgroup-wrapper--vertical .tabgroup.vertical > .acf-innerblocks-container .tab {
	margin-bottom: 21px;
	padding-left: 0;
	font-size: calc(56px + (3 * (100vw - 390px) / 1050));
	text-transform: uppercase;
	color: var(--color-theme-grey);
	position: relative;
}

.tabgroup-wrapper--vertical .tabgroup.vertical > .tabs-content,
.tabgroup-wrapper--vertical .tabgroup.vertical > .tabs-content:before {
	background: var(--color-theme-grey);
}

.tabgroup-wrapper--vertical .tabgroup.vertical > .acf-innerblocks-container .tabitem:nth-last-child(2) .tab {
	margin-bottom: 0;
}

.tabgroup-wrapper--vertical .tabgroup.vertical:not(.has-photo) > .acf-innerblocks-container [aria-selected='true'] {
	background: transparent;
	color: var(--color-theme-white);
}

@media only screen and (max-width: 768px) {
	.tabgroup-wrapper--vertical .container {
		padding-left: 0;
		padding-right: 0;
	}

	.tabgroup-wrapper--vertical .tabgroup-intro {
		padding-left: var(--gutter);
		padding-right: var(--gutter);
		margin-bottom: 30px;
	}

	.tabgroup.vertical > .acf-innerblocks-container > .tabitem > a {
		display: none;
		padding: 0 !important;
		text-wrap: inherit;
		line-height: 0.9;
		margin-bottom: 40px !important;
	}

	.tabgroup.vertical > .acf-innerblocks-container > .tabitem > a[aria-selected="true"] {
		display: block;
	}

	.tabgroup.vertical > .acf-innerblocks-container > .tabitem > a:focus {
		outline: 0
	}

	.tabgroup.vertical > .acf-innerblocks-container > .tabitem > a:focus-visible {
		outline: 1px solid currentColor;
	}

	.tabgroup.vertical > .acf-innerblocks-container > .tabitem:last-of-type > a {
		margin-bottom: 0 !important;
	}

	.tabgroup-wrapper--vertical .tabgroup {
		background: url('../../assets/images/scrolling-tab-left.svg') no-repeat top left / 60px auto,
		var(--color-theme-primary);
	}

	.tabgroup-wrapper--vertical .tabgroup.vertical > .acf-innerblocks-container {
		display: block;
		padding: 20px;
	}

	.tabgroup-wrapper--vertical .tabgroup.vertical.open > .acf-innerblocks-container .tab {
		display: block;
	}

	.tabgroup-wrapper--vertical .tabgroup.vertical.open > .mobile-switcher:after {
		top: 5px;
		border-bottom-color: var(--color-theme-blue-bright);
		border-top-color: transparent;
	}

	.tabgroup-wrapper--vertical .tabgroup.vertical > .tabs-content {
		padding: 60px 40px 40px;
	}

	.mobile-switcher {
		display: block;
		position: absolute;
		right: 20px;
		top: 20px;
		background: transparent;
		border: none;
		height: 40px;
		width: 40px;
		z-index: 1;
	}

	.mobile-switcher:after {
		content: "";
		width: 10px;
		height: 10px;
		border: 10px solid transparent;
		border-top-color: var(--color-theme-blue-bright);
		position: absolute;
		inset: 10px;
		top: 15px;
	}
}

@media only screen and (min-width: 769px) {
	.mobile-switcher {
		display: none;
	}

	.tabgroup-wrapper--vertical {
		overflow: hidden;
	}

	.tabgroup-wrapper--vertical .tabgroup-intro {
		display: grid;
		margin-bottom: 55px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tabgroup-wrapper--vertical .tabgroup-headline {
		margin-bottom: 0;
		padding-right: 20px;
		text-align: left;
	}

	.tabgroup-wrapper--vertical .tabgroup.vertical:not(.has-photo) > .acf-innerblocks-container a::after {
		position: absolute;
		display: block;
		content: '';
		top: auto;
		bottom: 0;
		left: 0;
		right: auto;
		width: 100%;
		background: #fff;
		height: 10px;
		transform: scaleX(0);
		transition: transform 0.3s ease-in-out;
		will-change: transform;
		transform-origin: top left;
	}

.tabgroup-wrapper--vertical .tabgroup.vertical:not(.has-photo) > .acf-innerblocks-container [aria-selected='true']::after {
		transform: scaleX(1);
	}

	.tabgroup-wrapper--vertical .tabgroup.vertical > .acf-innerblocks-container .tab {
		margin-bottom: 30px;
		line-height: 1.1;
	}

	.tabgroup-wrapper--vertical .tabgroup.vertical > .acf-innerblocks-container .tab:focus {
		outline: 0
	}

	.tabgroup-wrapper--vertical .tabgroup.vertical > .acf-innerblocks-container .tab:focus-visible {
		outline: 1px solid currentColor;
	}

	.tabgroup-wrapper--vertical .tabgroup.vertical > .acf-innerblocks-container:before {
		left: auto;
		right: 0;
		width: 50vw;
		background: url('../../assets/images/scrolling-tab-left.svg') no-repeat bottom left / 75px auto,
		var(--color-theme-primary);
	}

	.tabgroup-wrapper--vertical .tabgroup.vertical > .tabs-content {
		padding: 115px 0 115px 115px;
	}
}

.tabgroup.vertical.has-photo .tabitem > .tab {
	padding-left: 20px;
	position: relative;
	overflow: hidden;
	z-index: 0;
}

.tabgroup.vertical.has-photo .tabitem > .tab::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-theme-forest);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease-in-out;
	z-index: -1;
}

.tabgroup.vertical.has-photo .tabitem > .tab[aria-selected="true"]::before {
	transform: scaleX(1);
}

.tabgroup.vertical.has-photo .tabitem > .tab[aria-selected="true"] {
	color: var(--color-theme-white);
}
.tabgroup.vertical.has-photo .tabitem > .tab {
	background: transparent;
}