/* Qawi Zwemkalender — volgt Qawi Design Baseline v1.0 (DESIGN_SYSTEM.md) */

@font-face {
	font-family: "Funnel Display";
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	src: url("fonts/funnel-display-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Funnel Display";
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	src: url("fonts/funnel-display-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Funnel Sans";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("fonts/funnel-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Funnel Sans";
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	src: url("fonts/funnel-sans-latin-600-normal.woff2") format("woff2");
}

/* --- Pagina waar de kalender op staat ---------------------------------- */

body.qk-pagina {
	overflow-x: clip;
}
body.qk-pagina .entry-header,
body.qk-pagina .ast-single-entry-banner {
	display: none;
}
body.qk-pagina #primary,
body.qk-pagina .site-content .ast-container > .content-area {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
}
body.qk-pagina .entry-content > .qk:first-child {
	margin-top: 0;
}

/* --- Basis --------------------------------------------------------------- */

.qk {
	--qk-ink: #1b2654;
	--qk-deep: #0f2a4a;
	--qk-vrouwen: #0e7f8c;
	--qk-turquoise: #39c1d3;
	--qk-muted: #6a7290;
	--qk-border: #dadde6;
	--qk-divider: #eceef3;
	--qk-sand: #f4f1ec;
	--qk-danger: #b3261e;
	--qk-display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
	--qk-sans: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	width: 100vw;
	max-width: none !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: 0 !important;
	background: #fff;
	color: var(--qk-ink);
	font-family: var(--qk-sans);
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.qk *,
.qk *::before,
.qk *::after {
	box-sizing: border-box;
}
.qk [hidden] {
	display: none !important;
}
.qk ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.qk .qk-binnen {
	width: min(100% - 40px, 860px);
	margin-inline: auto;
}

/* --- Kop ----------------------------------------------------------------- */

.qk > .qk-kop {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.qk > .qk-inhoud {
	max-width: 860px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.qk .qk-kop {
	/* Zelfde verloop als de kop van de pagina Zwemlessen */
	background:
		radial-gradient(at 100% 0%, rgba(99, 205, 242, 0.14) 0%, rgba(99, 205, 242, 0) 60%),
		linear-gradient(170deg, #1b6fa7 0%, #08223a 100%);
	color: #fff;
	padding: 36px 0 0;
}
.qk .qk-titel {
	margin: 0;
	color: #fff;
	font-family: var(--qk-display);
	font-size: clamp(40px, 9vw, 72px);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-transform: none;
}
.qk .qk-intro {
	max-width: 44ch;
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 17px;
}

/* Zwemlijn: het herkenningsteken van Qawi */
.qk .qk-zwemlijn {
	position: relative;
	height: 3px;
	margin-top: 26px;
	background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 16px, transparent 16px 22px);
}
.qk .qk-zwemlijn span {
	position: absolute;
	top: -4px;
	left: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--qk-turquoise);
	animation: qk-zwem 6s ease-in-out infinite alternate;
}
@keyframes qk-zwem {
	to {
		left: calc(100% - 11px);
	}
}
.qk .qk-kop .qk-binnen {
	padding-bottom: 28px;
}

/* --- Inhoud -------------------------------------------------------------- */

.qk .qk-inhoud {
	padding: 28px 0 72px;
}

/* Gesloten dagen: gewone lijst, zelfde opbouw als een week */
.qk .qk-dicht-blok {
	margin-bottom: 30px;
}
.qk .qk-dicht-titel {
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--qk-ink);
	color: var(--qk-ink);
	font-family: var(--qk-display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: none;
}
.qk .qk-dicht-lijst li {
	display: flex;
	flex-wrap: wrap;
	gap: 0 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--qk-divider);
}
.qk .qk-dicht-wanneer {
	color: var(--qk-danger);
	font-weight: 600;
}
.qk .qk-dicht-reden {
	flex-basis: 100%;
	color: #565d78;
	font-size: 15px;
}

/* Filters */
.qk .qk-filters {
	display: grid;
	gap: 14px;
	margin-bottom: 8px;
}
.qk .qk-filter-naam {
	display: block;
	margin-bottom: 6px;
	color: var(--qk-muted);
	font-size: 13px;
	font-weight: 600;
}
.qk .qk-keuzes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.qk a.qk-keuze {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--qk-border);
	border-radius: 22px;
	background: #fff;
	color: var(--qk-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.qk a.qk-keuze:hover,
.qk a.qk-keuze:focus {
	border-color: var(--qk-ink);
	background: #fff;
	color: var(--qk-ink);
}
.qk a.qk-keuze:focus-visible {
	outline: 2px solid var(--qk-ink);
	outline-offset: 2px;
}
.qk a.qk-keuze.is-actief,
.qk a.qk-keuze.is-actief:hover,
.qk a.qk-keuze.is-actief:focus {
	border-color: var(--qk-ink);
	background: var(--qk-ink);
	color: #fff;
}

/* Weken */
.qk .qk-week {
	margin-top: 36px;
}
.qk .qk-week-titel {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--qk-ink);
	color: var(--qk-ink);
	font-family: var(--qk-display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: none;
}
.qk .qk-nu {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--qk-muted);
	font-family: var(--qk-sans);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
}
.qk .qk-nu::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--qk-turquoise);
}

/* Avondregel — telefoon eerst */
.qk .qk-rij {
	display: grid;
	grid-template-columns: 82px 1fr auto;
	grid-template-areas:
		"dag plek groep"
		"dag tijd tijd"
		"dag melding melding";
	align-items: center;
	gap: 2px 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--qk-divider);
}
.qk .qk-dag {
	grid-area: dag;
	align-self: start;
	display: flex;
	flex-direction: column;
}
.qk .qk-wd {
	color: var(--qk-muted);
	font-size: 13px;
}
.qk .qk-dat {
	font-family: var(--qk-display);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.qk .is-vandaag .qk-wd {
	color: var(--qk-ink);
	font-weight: 600;
}
.qk .qk-plek {
	grid-area: plek;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
}
.qk .qk-tijd {
	grid-area: tijd;
	color: #3d4668;
	font-family: var(--qk-display);
	font-size: 18px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}
.qk .qk-groep {
	grid-area: groep;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 124px;
	padding: 7px 10px;
	border: 1px solid transparent;
	border-radius: 4px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}
.qk .qk-icoon {
	flex: none;
	width: 30px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--qk-icoon) center / contain no-repeat;
	mask: var(--qk-icoon) center / contain no-repeat;
}
.qk .qk-mannen .qk-icoon {
	width: 22px;
}
.qk .qk-mannen .qk-groep {
	background: var(--qk-ink);
}
.qk .qk-vrouwen .qk-groep {
	background: var(--qk-vrouwen);
}
.qk .qk-melding {
	grid-area: melding;
	margin-top: 4px;
	color: var(--qk-danger);
	font-size: 15px;
}

/* Avond gaat niet door */
.qk .is-dicht .qk-plek,
.qk .is-dicht .qk-dat {
	color: var(--qk-muted);
}
.qk .is-dicht .qk-tijd {
	color: var(--qk-muted);
	text-decoration: line-through;
}
.qk .is-dicht .qk-groep {
	border-color: var(--qk-border);
	background: transparent;
	color: var(--qk-muted);
}

.qk .qk-leeg {
	margin: 36px 0 0;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--qk-sand);
}

/* --- Breder scherm ------------------------------------------------------- */

@media (min-width: 720px) {
	.qk .qk-kop {
		padding-top: 88px;
	}
	.qk .qk-kop .qk-binnen {
		padding-bottom: 44px;
	}
	.qk .qk-inhoud {
		padding-top: 40px;
	}
	.qk .qk-dicht-lijst li {
		display: grid;
		grid-template-columns: 210px 220px 1fr;
		gap: 0 16px;
		align-items: baseline;
		padding: 12px 0;
	}
	.qk .qk-dicht-titel {
		font-size: 28px;
	}
	.qk a.qk-keuze {
		padding: 0 18px;
	}
	.qk .qk-zwemlijn {
		margin-top: 36px;
	}
	.qk .qk-filters {
		grid-template-columns: auto 1fr;
		gap: 40px;
	}
	.qk .qk-rij {
		grid-template-columns: 170px 1fr 200px 124px;
		grid-template-areas:
			"dag plek tijd groep"
			". melding melding melding";
		padding: 16px 0;
	}
	.qk .qk-dag {
		flex-direction: row;
		align-items: baseline;
		align-self: center;
		gap: 10px;
	}
	.qk .qk-wd {
		order: 2;
		font-size: 14px;
	}
	.qk .qk-dat {
		min-width: 68px;
		font-size: 20px;
	}
	.qk .qk-plek {
		font-size: 19px;
	}
	.qk .qk-tijd {
		font-size: 22px;
	}
	.qk .qk-week-titel {
		font-size: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qk .qk-zwemlijn span {
		animation: none;
	}
	.qk a.qk-keuze {
		transition: none;
	}
}

/* --- Transparante site-header: de blauwe kop loopt eronder door ---------- */

body.ast-theme-transparent-header .qk .qk-kop {
	padding-top: 160px;
}
@media (min-width: 720px) {
	body.ast-theme-transparent-header .qk .qk-kop {
		padding-top: 190px;
	}
}
