/* Denkkrachtscan – huisstijl overgenomen van de Team Thermometer, fonts lokaal. */

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/open-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/open-sans-latin-400-italic.woff2') format('woff2');
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/open-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/open-sans-latin-700-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'BebasNeueRegular';
	font-style: normal;
	font-weight: normal;
	font-display: swap;
	src: url('fonts/BebasNeue-webfont.woff') format('woff');
}

/* Het hidden-attribuut moet altijd winnen van display-regels (bijv. button). */
[hidden] {
	display: none !important;
}

html, body {
	margin: 0;
	max-width: 100%;
	overflow-x: hidden;
	background: #fff;
	color: #222;
}

body {
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: break-word;
}

.container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 16px 120px;
	text-align: center;
}

.page-head {
	height: 40px;
	margin: 12px 0 8px;
}

.logo {
	float: right;
	max-width: min(250px, 55vw);
	height: auto;
}

h1 {
	font-family: 'BebasNeueRegular', sans-serif;
	font-size: 2em;
	font-weight: 400;
	color: #00aeef;
	margin: 0.6em 0 0.3em;
}

h1.header {
	font-size: 2.5em;
	line-height: 1.1;
	clear: both;
}

h1:focus {
	outline: none;
}

h2 {
	font-size: 1.25em;
	margin: 0.8em 0 0.4em;
}

h3 {
	font-size: 1.1em;
	margin: 0.6em 0 0.3em;
}

.subtitle {
	font-size: 1.1em;
}

.small {
	font-size: 0.9em;
	color: #555;
}

.meta {
	color: #555;
	margin-top: 0;
}

.intro {
	border: 1px solid #00aeef;
	border-radius: 5px;
	padding: 5px 20px;
	margin-bottom: 20px;
	background-color: #00aeef;
	color: #fff;
}

.intro h2 {
	color: #fff;
}

/* ---- Invullen */

.scale-legend {
	text-align: left;
	margin: 0 0 24px;
	padding: 8px 16px;
	border: 1px solid rgba(0, 174, 239, 0.35);
	border-radius: 5px;
	background: #f2f2f2;
}

.scale-legend ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	list-style: none;
	padding: 0;
	margin: 6px 0;
	font-weight: 700;
}

.baseline-banner {
	text-align: left;
	border: 2px solid #00aeef;
	border-radius: 5px;
	padding: 4px 20px 12px;
	margin-bottom: 20px;
}

.mode-pill {
	display: inline-block;
	background: #00aeef;
	color: #fff;
	font-weight: 700;
	border-radius: 999px;
	padding: 2px 14px;
}

.item {
	padding: 6px 0 0;
	scroll-margin-top: 80px;
}

.statement {
	font-size: 1.15em;
	text-align: left;
}

.item-nr {
	color: #00aeef;
}

.slider-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
}

.image-container {
	flex: 1;
	padding: 10px;
}

.image-container.side-left {
	text-align: left;
}

.image-container.side-right {
	text-align: right;
}

.end-tag {
	display: block;
	font-size: 0.8em;
	font-weight: 700;
	color: #00aeef;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.slider {
	flex: 1;
	margin: 0 20px;
	position: relative;
	padding: 18px 0 10px;
	min-width: 0;
}

.slider-range {
	width: 100%;
	height: 32px;
	margin: 0;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	/* Verticaal vegen scrollt de pagina; alleen horizontaal slepen bedient het schuifje. */
	touch-action: pan-y;
}

.slider-range:focus-visible {
	outline: 3px solid #005dff;
	outline-offset: 4px;
}

.slider-range::-webkit-slider-runnable-track {
	height: 8px;
	background: #00aeef;
	border: none;
	border-radius: 4px;
}

.slider-range::-moz-range-track {
	height: 8px;
	background: #00aeef;
	border: none;
	border-radius: 4px;
}

.slider-range::-moz-range-progress {
	background-color: transparent;
}

.slider-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #00aeef;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #00aeef;
	margin-top: -12px;
}

.slider-range::-moz-range-thumb {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #00aeef;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #00aeef;
}

/* Onaangeraakt: lege, gestippelde knop; telt nog niet als antwoord. */
.slider-range.unanswered::-webkit-slider-thumb {
	background: #fff;
	border: 2px dashed #00aeef;
	box-shadow: none;
}

.slider-range.unanswered::-moz-range-thumb {
	background: #fff;
	border: 2px dashed #00aeef;
	box-shadow: none;
}

.ticks {
	display: flex;
	justify-content: space-between;
	padding: 0 15px;
	margin-top: 2px;
}

.ticks span {
	width: 2px;
	height: 8px;
	background: #9adff8;
}

.item-status {
	text-align: center;
	font-size: 0.9em;
	color: #a05a00;
	margin: 0 0 8px;
}

.item.answered .item-status {
	color: #2e7d32;
}

hr {
	border: 0;
	border-top: 1px solid #e3e3e3;
}

.progress {
	font-weight: 700;
}

.missing:not(:empty) {
	text-align: left;
	border: 2px solid #d9822b;
	background: #fff6ec;
	border-radius: 5px;
	padding: 4px 16px;
	margin: 0 0 16px;
}

.missing a {
	color: #005dff;
}

/* ---- Knoppen en links */

button,
.button-link {
	display: inline-block;
	background-color: #00aeef;
	color: #fff;
	padding: 16px 32px;
	border-radius: 5px;
	border: 2px solid #00aeef;
	cursor: pointer;
	box-shadow: 0 2px 2px #888;
	font: inherit;
	font-size: 1.2em;
	text-decoration: none;
	line-height: 1.3;
}

#submit-btn {
	font-size: x-large;
	padding: 20px 40px;
}

#submit-btn.is-disabled {
	background-color: #9adff8;
	border-color: #9adff8;
	box-shadow: none;
}

button.secondary,
.button-link.secondary {
	background: #fff;
	color: #007cab;
	font-size: 1em;
	padding: 10px 18px;
}

button:focus-visible,
.button-link:focus-visible,
a:focus-visible {
	outline: 3px solid #005dff;
	outline-offset: 2px;
}

.link-button {
	background: none;
	border: none;
	box-shadow: none;
	color: #007cab;
	padding: 0;
	font-size: 1em;
	text-decoration: underline;
}

.button-link.inline {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
	font-size: 1em;
	color: #007cab;
	text-decoration: underline;
}

/* Nog niet ingevulde links: duidelijk zichtbaar als plaatshouder. */
.todo-link,
.todo-link.secondary,
.todo-link.inline {
	background: #fff59d;
	border: 2px dashed #c9a400;
	color: #4a3d00;
	cursor: not-allowed;
	box-shadow: none;
	text-decoration: none;
	padding: 6px 12px;
}

.todo-link mark {
	background: #ffeb3b;
	color: #4a3d00;
	font-weight: 700;
	font-size: 0.85em;
	padding: 0 4px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 24px 0 12px;
}

.baseline-banner .actions {
	justify-content: flex-start;
}

/* ---- Resultaten */

#results {
	text-align: left;
}

#results h1.header {
	text-align: center;
}

#results .meta {
	text-align: center;
}

.chart-wrap {
	position: relative;
	height: 320px;
	margin-bottom: 20px;
}

.theme-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.results-container {
	border: 1px solid #00aeef;
	border-radius: 5px;
	padding: 5px 20px 10px;
}

.theme-card h2 {
	font-family: 'BebasNeueRegular', sans-serif;
	font-weight: 400;
	font-size: 1.7em;
	color: #00aeef;
	margin-bottom: 0.1em;
}

.theme-score {
	margin: 0;
}

.theme-score .score {
	font-size: 1.8em;
	font-weight: 700;
}

.band {
	display: inline-block;
	font-weight: 600;
	color: #007cab;
	background: #e6f7fd;
	border-radius: 4px;
	padding: 0 8px;
}

.summary {
	margin: 20px 0;
	font-size: 1.1em;
}

.overall {
	color: #555;
	font-size: 0.9em;
}

.tip-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.tip {
	border: 1px solid #00aeef;
	border-left-width: 6px;
	border-radius: 5px;
	padding: 4px 16px 12px;
	margin-bottom: 12px;
}

.tip-basis {
	color: #555;
	font-size: 0.9em;
}

.tip-ref {
	color: #333;
}

.plan {
	margin-top: 8px;
}

.all-tips {
	margin: 16px 0;
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 8px 16px;
}

.all-tips summary {
	cursor: pointer;
	font-weight: 700;
	color: #007cab;
	padding: 4px 0;
}

.later-info,
.storage-note {
	background: #f2f2f2;
	border-radius: 5px;
	padding: 4px 16px;
	margin: 12px 0;
}

.status-msg:empty {
	display: none;
}

.status-msg {
	font-weight: 700;
	color: #2e7d32;
}

.compare-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0 24px;
}

.compare-table caption {
	text-align: left;
	font-weight: 700;
	font-size: 1.1em;
	padding-bottom: 6px;
}

.compare-table th,
.compare-table td {
	border-bottom: 1px solid #ddd;
	padding: 8px;
	text-align: left;
	vertical-align: top;
}

.compare-table td.diff {
	font-weight: 700;
	white-space: nowrap;
}

.diff.up,
.change.up {
	color: #2e7d32;
}

.diff.down,
.change.down {
	color: #b23c17;
}

.change {
	font-weight: 700;
	white-space: nowrap;
}

.identical {
	font-weight: 700;
}

.form-container {
	border-radius: 5px;
	background-color: #f2f2f2;
	padding: 4px 20px 12px;
	margin: 20px 0;
}

.form-container label {
	display: block;
	font-weight: 600;
	margin-top: 10px;
}

textarea,
select {
	width: 100%;
	padding: 10px;
	border: 1px solid #aaa;
	border-radius: 4px;
	box-sizing: border-box;
	margin-top: 6px;
	font: inherit;
	resize: vertical;
}

.print-only {
	display: none;
}

/* ---- Mobiel */

@media (max-width: 720px) {
	h1.header {
		font-size: 1.9em;
	}

	.slider-container {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.image-container {
		padding: 2px 0;
	}

	.slider {
		margin: 0;
		padding: 14px 4px 8px;
	}

	.slider-range {
		height: 44px;
	}

	.slider-range::-webkit-slider-thumb {
		width: 40px;
		height: 40px;
		margin-top: -16px;
	}

	.slider-range::-moz-range-thumb {
		width: 34px;
		height: 34px;
	}

	.ticks {
		padding: 0 19px;
	}

	.scale-legend ul {
		flex-direction: column;
	}

	button,
	.button-link,
	#submit-btn {
		width: 100%;
		box-sizing: border-box;
		font-size: large;
		padding: 14px 18px;
		text-align: center;
	}

	.button-link.inline,
	.link-button {
		width: auto;
		padding: 0;
		font-size: 1em;
		text-align: left;
	}

	.todo-link.inline {
		padding: 4px 8px;
	}

	.theme-cards,
	.tip-grid {
		grid-template-columns: 1fr;
	}

	.chart-wrap {
		height: 300px;
	}

	.compare-table th,
	.compare-table td {
		padding: 6px 4px;
		font-size: 0.95em;
	}
}

/* ---- Afdrukken */

@media print {
	.no-print,
	#scan,
	.all-tips,
	textarea,
	select,
	.reflection label,
	.reflection .small {
		display: none !important;
	}

	.print-only {
		display: block;
	}

	.container {
		padding-bottom: 0;
	}

	.intro {
		background: #fff;
		color: #000;
		border: 2px solid #00aeef;
	}

	.intro h2 {
		color: #000;
	}

	.chart-wrap {
		height: auto;
	}

	.chart-wrap canvas {
		max-width: 100% !important;
		height: auto !important;
	}

	.theme-card,
	.tip,
	.compare-table,
	.change-group {
		break-inside: avoid;
	}

	.todo-link {
		border: none;
		background: none;
	}

	.todo-link mark {
		display: none;
	}

	.print-footer {
		margin-top: 24px;
		font-size: 0.9em;
		color: #555;
	}
}
