/* -------------------------------------------------------------------------
 * P.A.M.S. Charisma-Test – Frontend
 *
 * Schriftart, Textfarbe und Grundabstände werden bewusst vom Theme geerbt.
 * Eigene Werte gibt es nur dort, wo sie für die Funktion nötig sind.
 * ---------------------------------------------------------------------- */

.pams-ct {
	--pams-accent: #b08d57;
	--pams-line: rgba(0, 0, 0, .12);
	--pams-soft: rgba(0, 0, 0, .04);

	font-family: inherit;
	color: inherit;
	max-width: 780px;
	margin: 0 auto;
}

.pams-ct * {
	box-sizing: border-box;
}

/* ---------- Bildschirme ---------- */

.pams-ct__screen,
.pams-ct__form {
	display: none;
}

.pams-ct__screen.is-active,
.pams-ct__form.is-active {
	display: block;
}

.pams-ct__logo {
	margin: 0 0 1.6em;
}

.pams-ct__logo img {
	display: block;
	width: auto;
	max-width: 260px;
	height: auto;
}

.pams-ct__title {
	font-family: inherit;
	margin: 0 0 .6em;
}

.pams-ct__lead {
	margin-bottom: 1.8em;
}

/* ---------- Buttons ---------- */

.pams-ct__button {
	display: inline-block;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	padding: .85em 1.8em;
	border: 2px solid var(--pams-accent);
	border-radius: 4px;
	background: var(--pams-accent);
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .15s ease;
}

.pams-ct__button:hover,
.pams-ct__button:focus {
	opacity: .85;
	color: #fff;
	text-decoration: none;
}

.pams-ct__button--ghost {
	background: transparent;
	color: inherit;
}

.pams-ct__button--ghost:hover,
.pams-ct__button--ghost:focus {
	color: inherit;
}

.pams-ct__button[hidden] {
	display: none;
}

/* ---------- Fortschritt ---------- */

.pams-ct__progress {
	height: 6px;
	border-radius: 3px;
	background: var(--pams-soft);
	overflow: hidden;
}

.pams-ct__progress-bar {
	display: block;
	height: 100%;
	background: var(--pams-accent);
	transition: width .3s ease;
}

.pams-ct__progress-text {
	margin: .6em 0 2em;
	font-size: .85em;
	opacity: .7;
}

/* ---------- Schritte ---------- */

.pams-ct__step {
	display: none;
	border: 0;
	padding: 0;
	margin: 0;
}

.pams-ct__step.is-active {
	display: block;
}

.pams-ct__step-title {
	font-size: 1.6em;
	font-weight: 700;
	padding: 0;
	margin-bottom: .4em;
}

.pams-ct__scale-intro {
	font-weight: 600;
	margin: 0 0 .2em;
}

.pams-ct__scale-hint {
	font-size: .9em;
	opacity: .75;
	margin: 0 0 2em;
}

/* ---------- Frage ---------- */

.pams-ct__question {
	padding: 1.4em 0;
	border-top: 1px solid var(--pams-line);
}

.pams-ct__question:last-of-type {
	border-bottom: 1px solid var(--pams-line);
}

.pams-ct__question-text {
	margin: 0 0 1em;
	line-height: 1.5;
}

.pams-ct__question-number {
	font-weight: 700;
	color: var(--pams-accent);
	margin-right: .35em;
}

.pams-ct__question.is-missing {
	background: rgba(200, 60, 60, .06);
	box-shadow: -12px 0 0 rgba(200, 60, 60, .06), 12px 0 0 rgba(200, 60, 60, .06);
}

/* ---------- Skala ---------- */

.pams-ct__scale {
	display: flex;
	align-items: center;
	gap: 1em;
}

.pams-ct__scale-label {
	flex: 0 0 auto;
	max-width: 100px;
	font-size: .78em;
	line-height: 1.3;
	opacity: .65;
}

.pams-ct__scale-label--max {
	text-align: right;
}

.pams-ct__options {
	display: flex;
	flex: 1 1 auto;
	gap: .35em;
	justify-content: space-between;
}

.pams-ct__option {
	flex: 1 1 0;
	margin: 0;
	cursor: pointer;
}

.pams-ct__option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.pams-ct__option-face {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.6em;
	border: 1px solid var(--pams-line);
	border-radius: 4px;
	font-size: .95em;
	line-height: 1;
	transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.pams-ct__option:hover .pams-ct__option-face {
	border-color: var(--pams-accent);
}

.pams-ct__option input:focus-visible + .pams-ct__option-face {
	outline: 2px solid var(--pams-accent);
	outline-offset: 2px;
}

.pams-ct__option input:checked + .pams-ct__option-face {
	background: var(--pams-accent);
	border-color: var(--pams-accent);
	color: #fff;
	font-weight: 700;
}

/* ---------- Navigation ---------- */

.pams-ct__nav {
	display: flex;
	gap: .8em;
	flex-wrap: wrap;
	margin-top: 2.2em;
}

.pams-ct__notice {
	margin-top: 1.4em;
	padding: .9em 1.1em;
	border-left: 3px solid #c83c3c;
	background: rgba(200, 60, 60, .08);
	font-size: .92em;
}

.pams-ct__notice--ok {
	border-left-color: #3c8f5a;
	background: rgba(60, 143, 90, .1);
}

/* ---------- Ergebnis ---------- */

.pams-ct__summary {
	display: flex;
	flex-wrap: wrap;
	gap: .8em;
	margin: 0 0 2.5em;
}

.pams-ct__summary-item {
	flex: 1 1 120px;
	text-align: center;
	padding: 1.1em .6em;
	border: 1px solid var(--pams-line);
	border-radius: 6px;
}

.pams-ct__summary-value {
	display: block;
	font-size: 2em;
	font-weight: 700;
	line-height: 1;
	color: var(--pams-accent);
}

.pams-ct__summary-name {
	display: block;
	margin-top: .4em;
	font-size: .85em;
	opacity: .75;
}

.pams-ct__result-block {
	padding: 2em 0;
	border-top: 1px solid var(--pams-line);
}

.pams-ct__result-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: .7em;
}

.pams-ct__result-name {
	margin: 0;
	font-size: 1.45em;
}

.pams-ct__result-score {
	font-size: 1.5em;
	font-weight: 700;
	color: var(--pams-accent);
	white-space: nowrap;
}

.pams-ct__result-score small {
	font-size: .5em;
	font-weight: 400;
	opacity: .7;
	margin-left: .25em;
}

.pams-ct__meter {
	height: 8px;
	border-radius: 4px;
	background: var(--pams-soft);
	overflow: hidden;
	margin-bottom: 1.4em;
}

.pams-ct__meter-fill {
	display: block;
	height: 100%;
	background: var(--pams-accent);
}

.pams-ct__result-band {
	margin: 0 0 .6em;
	font-size: 1.1em;
}

.pams-ct__result-outro {
	margin-top: 1.4em;
	padding: 1.1em 1.3em;
	background: var(--pams-soft);
	border-radius: 6px;
	font-size: .95em;
}

/* ---------- Aktionen, CTA, Formular ---------- */

.pams-ct__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .8em;
	margin: 2.4em 0;
}

.pams-ct__cta,
.pams-ct__lead-form {
	margin-top: 2.4em;
	padding: 2em;
	border: 2px solid var(--pams-accent);
	border-radius: 8px;
}

.pams-ct__lead-form {
	border-width: 1px;
	border-color: var(--pams-line);
}

.pams-ct__cta-title {
	margin: 0 0 .5em;
}

.pams-ct__cta-text {
	margin-bottom: 1.4em;
}

.pams-ct__field {
	margin-bottom: 1.1em;
}

.pams-ct__field label {
	display: block;
	margin-bottom: .35em;
	font-size: .9em;
	font-weight: 600;
}

.pams-ct__field input[type="text"],
.pams-ct__field input[type="email"],
.pams-ct__field input[type="tel"],
.pams-ct__field textarea {
	width: 100%;
	font: inherit;
	padding: .7em .9em;
	border: 1px solid var(--pams-line);
	border-radius: 4px;
	background: #fff;
	color: #333;
}

.pams-ct__field--check label {
	display: flex;
	align-items: flex-start;
	gap: .6em;
	font-weight: 400;
	font-size: .88em;
	line-height: 1.5;
}

.pams-ct__field--check input {
	margin-top: .25em;
	flex: 0 0 auto;
}

.pams-ct__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pams-ct.is-busy {
	opacity: .6;
	pointer-events: none;
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 640px) {

	.pams-ct__scale {
		display: block;
	}

	.pams-ct__scale-label {
		display: inline-block;
		max-width: 45%;
		margin-bottom: .5em;
	}

	.pams-ct__scale-label--max {
		float: right;
	}

	.pams-ct__options {
		clear: both;
		gap: .25em;
	}

	.pams-ct__option-face {
		min-height: 2.9em;
		font-size: .85em;
	}

	.pams-ct__result-head {
		display: block;
	}

	.pams-ct__result-score {
		display: block;
		margin-top: .2em;
	}

	.pams-ct__cta,
	.pams-ct__lead-form {
		padding: 1.4em;
	}
}
