/**
 * Bartels Sloten Splashpage — fullscreen
 * Kleuren: #2A2C65 (donkerblauw), #E61F2B (rood), #FFFFFF (wit)
 * Fonts: Poppins (headings/buttons), Mulish (body)
 */

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

.bartels-splash[hidden] {
	display: none !important;
}

/* ============================================================
   Fullscreen splashpage
   ============================================================ */
.bartels-splash {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 247, 247, 0.96) 100%),
		url('https://www.bartels-sloten.nl/wp-content/uploads/2022/08/bartels-slot-white-line.svg') no-repeat right center;
	background-size: cover, contain;
	color: #2A2C65;
	font-family: 'Mulish', Helvetica, Arial, Lucida, sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	animation: bartelsSplashFade 350ms ease-out;
}

.bartels-splash__inner {
	position: relative;
	width: 100%;
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 24px;
}

.bartels-splash__close {
	position: absolute;
	top: 22px;
	right: 26px;
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	color: #2A2C65;
	cursor: pointer;
	border-radius: 50%;
	transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
	padding: 0;
	z-index: 2;
}

.bartels-splash__close:hover,
.bartels-splash__close:focus {
	background-color: #E61F2B;
	color: #ffffff;
	outline: none;
	transform: rotate(90deg);
}

.bartels-splash__content {
	max-width: 720px;
	width: 100%;
	text-align: center;
	animation: bartelsSplashSlide 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bartels-splash__logo {
	display: block;
	max-width: 280px;
	width: 100%;
	height: auto;
	margin: 0 auto 40px;
}

.bartels-splash__title {
	font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	color: #2A2C65;
	margin: 0 0 18px;
}

.bartels-splash__intro {
	font-family: 'Mulish', Helvetica, Arial, Lucida, sans-serif;
	font-size: 18px;
	line-height: 1.5;
	color: #2c3d49;
	margin: 0 0 45px;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}

.bartels-splash__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: center;
	margin: 0 0 32px;
}

/* Knoppen — DIVI dipi_button_grid stijl van Bartels:
   donkerblauwe achtergrond, witte tekst, border-radius 10px, uppercase,
   hover: rood (#E61F2B) schuift via box-shadow van links naar rechts */
.bartels-splash__btn {
	font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #ffffff;
	background-color: #2A2C65;
	border: 1px solid #2A2C65;
	border-radius: 10px;
	padding: 18px 42px;
	min-width: 200px;
	cursor: pointer;
	transition: color 300ms ease 0ms;
	box-shadow: inset 0px 0px 0px 0px #E61F2B;
	position: relative;
	overflow: hidden;
}

.bartels-splash__btn:hover,
.bartels-splash__btn:focus {
	color: #ffffff;
	background-color: #2A2C65;
	box-shadow: inset 320px 0px 0px 0px #E61F2B;
	outline: none;
}

.bartels-splash__btn--private {
	background-color: #ffffff;
	color: #2A2C65;
	border-color: #2A2C65;
}

.bartels-splash__btn--private:hover,
.bartels-splash__btn--private:focus {
	color: #ffffff;
}

.bartels-splash__remember {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #2c3d49;
	cursor: pointer;
	user-select: none;
}

.bartels-splash__remember input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #E61F2B;
	cursor: pointer;
	margin: 0;
}

@keyframes bartelsSplashFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes bartelsSplashSlide {
	from { opacity: 0; transform: translateY(24px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   Mobiele aanpassingen
   ============================================================ */
@media (max-width: 600px) {
	.bartels-splash__inner {
		padding: 70px 22px 40px;
	}
	.bartels-splash__close {
		top: 14px;
		right: 14px;
		width: 40px;
		height: 40px;
		font-size: 28px;
	}
	.bartels-splash__logo {
		max-width: 200px;
		margin-bottom: 28px;
	}
	.bartels-splash__title {
		font-size: 28px;
	}
	.bartels-splash__intro {
		font-size: 15px;
		margin-bottom: 32px;
	}
	.bartels-splash__actions {
		flex-direction: column;
		gap: 12px;
		margin-bottom: 26px;
	}
	.bartels-splash__btn {
		width: 100%;
		min-width: 0;
		padding: 16px 24px;
	}
}

@media (min-width: 601px) and (max-width: 980px) {
	.bartels-splash__title { font-size: 34px; }
}

/* Voorkom scrollen op de pagina zolang splash open is */
body.bartels-splash-open {
	overflow: hidden;
}

/* ============================================================
   Doelgroep-switcher — 3 buttons (shortcode) in DIVI Bartels-stijl
   Matched: padding 15px, border-radius 10px, Poppins 600,
   hover = rood (#E61F2B) schuift via box-shadow van links naar rechts
   ============================================================ */

.bartels-doelgroep-switch {
	display: inline-flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	line-height: 1;
	vertical-align: middle;
}

.bartels-doelgroep-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;

	font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.3px;
	line-height: 1 !important;
	text-decoration: none !important;
	text-align: center;

	color: #ffffff !important;
	background-color: #2A2C65 !important;
	border: 1px solid #2A2C65 !important;
	border-radius: 10px !important;

	padding: 15px 28px !important;
	margin: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	cursor: pointer;
	box-sizing: border-box;
	overflow: hidden;
	position: relative;

	box-shadow: inset 0px 0px 0px 0px #E61F2B;
	transition: color 300ms ease, box-shadow 300ms ease 0ms;
	-webkit-appearance: none;
	appearance: none;
}

.bartels-doelgroep-btn:hover,
.bartels-doelgroep-btn:focus {
	color: #ffffff !important;
	background-color: #2A2C65 !important;
	box-shadow: inset 320px 0px 0px 0px #E61F2B !important;
	text-decoration: none !important;
	outline: none !important;
}

@media (max-width: 980px) {
	/* Op tablet/mobiel verbergen we de header-knoppen,
	   de floating bottom-button neemt het over */
	.bartels-doelgroep-switch {
		display: none !important;
	}
}

/* ============================================================
   Mobile floating button — verschijnt onderaan op mobiel
   Klik = heropent de splash zodat bezoeker kan wisselen
   ============================================================ */

.bartels-doelgroep-floater {
	display: none; /* default verborgen op desktop */
}

@media (max-width: 980px) {
	.bartels-doelgroep-floater {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		gap: 8px;

		position: fixed !important;
		left: 50% !important;
		bottom: 16px !important;
		transform: translateX(-50%);
		z-index: 99998;

		font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif !important;
		font-size: 14px !important;
		font-weight: 600 !important;
		line-height: 1 !important;
		letter-spacing: 0.3px;
		text-decoration: none !important;

		color: #ffffff !important;
		background-color: #2A2C65 !important;
		border: 1px solid #2A2C65 !important;
		border-radius: 50px !important;

		padding: 14px 22px !important;
		margin: 0 !important;
		min-height: 0 !important;
		height: auto !important;

		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
		cursor: pointer;
		box-sizing: border-box;

		transition: background-color 200ms ease, transform 200ms ease;
		-webkit-appearance: none;
		appearance: none;

		max-width: calc(100vw - 24px);
	}

	.bartels-doelgroep-floater:hover,
	.bartels-doelgroep-floater:focus,
	.bartels-doelgroep-floater:active {
		background-color: #E61F2B !important;
		border-color: #E61F2B !important;
		color: #ffffff !important;
		outline: none !important;
		transform: translateX(-50%) translateY(-2px);
	}

	.bartels-doelgroep-floater__icon {
		flex-shrink: 0;
		display: inline-block;
		vertical-align: middle;
	}

	.bartels-doelgroep-floater__label {
		display: inline-block;
		white-space: nowrap;
	}
}

@media (max-width: 360px) {
	.bartels-doelgroep-floater {
		font-size: 13px !important;
		padding: 12px 18px !important;
	}
}
