/*
 * The reachability check ([qv_check]) — loaded only where the shortcode stands.
 *
 * Ported from the customer's kiosk page. The kiosk set type for a tablet read
 * at arm's length (58px headline, 22px answers); here everything sits on the
 * site's own scale from tokens.css. The band is a quiet --qv-mist ground with
 * one white panel, framed like the booking widget (.qv-b-termin__rahmen).
 */

.qv-b-check {
	background: var(--qv-mist);
	padding-block: clamp(2.2rem, 4.6vw, 4rem);
}

.qv-b-check__app {
	min-width: 0;
	border: 3px solid var(--qv-ink);
	border-radius: var(--qv-radius-panel);
	background: var(--qv-bg);
	padding: clamp(1.2rem, 3vw, 2.6rem);
	/* The site header is sticky; keep the panel top clear of it on scroll. */
	scroll-margin-top: 7rem;
}

.qv-b-check__schirm.is-neu {
	animation: qv-check-ein 0.35s ease;
}

@keyframes qv-check-ein {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.qv-b-check h2:focus { outline: none; }
.qv-b-check h2:focus-visible {
	outline: 3px solid var(--qv-green-cta);
	outline-offset: 4px;
}

/* --- start ------------------------------------------------------------------ */

.qv-b-check__kennung {
	display: block;
	font-family: var(--qv-font-display);
	font-weight: 700;
	font-size: var(--qv-text-sm);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--qv-green-ink);
	margin-bottom: clamp(0.8rem, 1.6vw, 1.2rem);
}

.qv-b-check__titel {
	margin: 0;
	font-size: var(--qv-h2);
	line-height: 1;
	letter-spacing: -0.035em;
}

.qv-b-check__titel em {
	font-style: normal;
	color: var(--qv-green-ink);
}

/* Full panel width: a lede on 72ch beside an empty half is a hole (6a). */
.qv-b-check .qv-b-check__lede {
	margin: clamp(0.8rem, 1.6vw, 1.2rem) 0 0;
	max-width: none;
	font-size: var(--qv-text-lede);
	color: var(--qv-ink-2);
}

.qv-b-check__punkte {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.6rem;
	margin: clamp(1rem, 2vw, 1.4rem) 0 0;
	padding: 0;
	list-style: none;
}

.qv-b-check__punkte li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
}

.qv-b-check__punkte li::before {
	content: "";
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	background: var(--qv-green);
	flex: 0 0 auto;
}

/* Buttons share the site's button look (.qv-b-termin__knopf). */
.qv-b-check__knopf,
.qv-b-check__termin,
.qv-b-check__nochmal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.85rem 1.6rem;
	border: 0;
	border-radius: var(--qv-radius-control);
	font-family: var(--qv-font-display);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.2;
	text-decoration: none;
	color: var(--qv-ink);
	background: var(--qv-green);
	cursor: pointer;
}

.qv-b-check__knopf { margin-top: clamp(1.2rem, 2.4vw, 1.8rem); }

.qv-b-check__knopf:hover,
.qv-b-check__knopf:focus-visible,
.qv-b-check__termin:hover,
.qv-b-check__termin:focus-visible { background: #A8D91F; }

.qv-b-check__knopf[hidden] { display: none; }

.qv-b-check .qv-b-check__ohne-js {
	margin: 1rem 0 0;
	max-width: none;
}

/* --- question ----------------------------------------------------------------- */

.qv-b-check__fortschritt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	margin-bottom: clamp(1rem, 2vw, 1.4rem);
}

.qv-b-check .qv-b-check__schritt {
	margin: 0;
	font-family: var(--qv-font-display);
	font-weight: 700;
	color: var(--qv-blue-ink);
}

.qv-b-check__leiste {
	display: flex;
	gap: 0.4rem;
}

.qv-b-check__leiste i {
	width: clamp(1.8rem, 4vw, 2.9rem);
	height: 0.45rem;
	border-radius: 4px;
	background: var(--qv-hair);
	transition: background 0.3s;
}

.qv-b-check__leiste i.is-fertig { background: var(--qv-green); }
.qv-b-check__leiste i.is-jetzt { background: var(--qv-blue-ink); }

.qv-b-check .qv-b-check__thema {
	margin: 0 0 0.3rem;
	font-weight: 600;
	font-size: var(--qv-text-sm);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--qv-ink-2);
}

.qv-b-check__fragetext {
	margin: 0 0 clamp(1rem, 2.2vw, 1.6rem);
	font-size: clamp(1.4rem, 2.6vw, 2.2rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.qv-b-check__antworten {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.8rem;
}

@media (min-width: 48rem) {
	.qv-b-check__antworten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.qv-b-check__antwort {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-height: 44px;
	padding: 1rem 1.1rem;
	text-align: left;
	font: inherit;
	font-size: var(--qv-text-base);
	line-height: 1.35;
	color: var(--qv-ink);
	background: var(--qv-bg);
	border: 2px solid var(--qv-hair);
	border-radius: var(--qv-radius-panel);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.qv-b-check__antwort:hover { border-color: var(--qv-line); }

/* The answer text is the second flex item. Long compounds carry soft
   hyphens from check.js, so they break at a word joint instead of stranding
   a short word such as "der" on its own line. */
.qv-b-check__antwort > span + span {
	min-width: 0;
	text-wrap: pretty;
}

/* Narrow phones: at 320px the frame, padding, gap and letter disc left the
   answer text 158px of 320. Tighter spacing gives it about a fifth more. */
@media (max-width: 26rem) {
	.qv-b-check__antwort {
		gap: 0.6rem;
		padding: 0.85rem 0.75rem;
	}

	.qv-b-check__buchstabe {
		width: 1.9rem;
		height: 1.9rem;
	}
}

.qv-b-check__antwort[aria-pressed="true"] {
	border-color: var(--qv-green-cta);
	background: rgba(149, 193, 26, 0.12);
}

.qv-b-check__buchstabe {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 50%;
	font-family: var(--qv-font-display);
	font-weight: 700;
	color: var(--qv-blue-ink);
	background: var(--qv-mist);
}

.qv-b-check__antwort[aria-pressed="true"] .qv-b-check__buchstabe {
	color: var(--qv-ink);
	background: var(--qv-green);
}

.qv-b-check__fuss {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(1rem, 2vw, 1.4rem);
}

/* "Abbrechen" stays right even when "Zurück" is hidden on question one. */
.qv-b-check__fuss .qv-b-check__leise:last-child { margin-left: auto; }

.qv-b-check__leise {
	min-height: 44px;
	padding: 0.5rem 0.2rem;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 600;
	color: var(--qv-ink-2);
	text-decoration: underline;
	text-decoration-color: var(--qv-hair);
	text-underline-offset: 0.25em;
	cursor: pointer;
}

.qv-b-check__leise:hover { color: var(--qv-ink); text-decoration-color: currentColor; }
.qv-b-check__leise[hidden] { display: none; }

/* --- result ------------------------------------------------------------------- */

.qv-b-check__raster {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.4rem, 3vw, 2.6rem);
	align-items: start;
}

/* The gauge column is visibly narrower, so it may end shorter (6a). */
@media (min-width: 60rem) {
	.qv-b-check__raster { grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr); }
}

.qv-b-check__messung {
	background: var(--qv-mist);
	border-radius: var(--qv-radius-panel);
	padding: clamp(1rem, 2.2vw, 1.6rem);
	text-align: center;
}

.qv-b-check .qv-b-check__messung-kennung {
	margin: 0;
	max-width: none;
	font-weight: 600;
	font-size: var(--qv-text-sm);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--qv-ink-2);
}

.qv-b-check__tacho {
	display: block;
	width: 100%;
	max-width: 18rem;
	margin: 0.4rem auto 0;
}

.qv-b-check__zahl {
	font-family: var(--qv-font-display);
	font-weight: 800;
	font-size: 44px;
	fill: var(--qv-ink);
}

.qv-b-check__skala {
	display: flex;
	justify-content: space-between;
	max-width: 16rem;
	margin: 0.2rem auto 0;
	font-size: var(--qv-text-xs);
	color: var(--qv-ink-2);
}

.qv-b-check .qv-b-check__stufe {
	display: inline-block;
	margin: 0.9rem 0 0;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	font-family: var(--qv-font-display);
	font-weight: 700;
	font-size: 1.05rem;
}

.qv-b-check__potenzial {
	margin-top: 1rem;
	padding: 0.9rem 1rem;
	text-align: left;
	background: var(--qv-bg);
	border-radius: var(--qv-radius-panel);
}

.qv-b-check .qv-b-check__potenzial-zeile {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0;
	max-width: none;
	color: var(--qv-ink-2);
}

.qv-b-check__potenzial-zeile b {
	font-family: var(--qv-font-display);
	font-size: 1.6rem;
	color: var(--qv-blue-ink);
	white-space: nowrap;
}

.qv-b-check__balken {
	display: flex;
	height: 0.75rem;
	margin-top: 0.6rem;
	border-radius: 6px;
	background: var(--qv-hair);
	overflow: hidden;
}

.qv-b-check__balken span {
	display: block;
	width: 0;
	height: 100%;
	transition: width 1.4s ease;
}

.qv-b-check__balken-heute { background: var(--qv-green); }
.qv-b-check__balken-moeglich {
	background: repeating-linear-gradient(45deg, var(--qv-blue), var(--qv-blue) 6px, #A9C9EA 6px, #A9C9EA 12px);
}

.qv-b-check .qv-b-check__legende {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	margin: 0.5rem 0 0;
	max-width: none;
	font-size: var(--qv-text-xs);
	color: var(--qv-ink-2);
}

.qv-b-check__legende span::before {
	content: "";
	display: inline-block;
	width: 0.65rem;
	height: 0.65rem;
	margin-right: 0.4rem;
	border-radius: 2px;
}

.qv-b-check__legende-heute::before { background: var(--qv-green); }
.qv-b-check__legende-moeglich::before { background: var(--qv-blue); }

.qv-b-check__ergebnis-titel {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 2.8vw, 2.3rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.qv-b-check .qv-b-check__ergebnis-text {
	margin: 0 0 1.1rem;
	max-width: none;
	font-size: var(--qv-text-lede);
	color: var(--qv-ink-2);
}

.qv-b-check__tipps {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qv-b-check__tipp {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	padding: 0.85rem 1rem;
	border: 1px solid var(--qv-hair);
	border-left: 6px solid var(--qv-green);
	border-radius: var(--qv-radius-panel);
}

/* Phones: the panel padding and the number column eat the text width. */
@media (max-width: 30rem) {
	.qv-b-check__app { padding: 1rem 0.9rem; }
	.qv-b-check__tipp { gap: 0.6rem; padding: 0.75rem 0.8rem; }
}

.qv-b-check__tipp-nr {
	flex: 0 0 1.4rem;
	font-family: var(--qv-font-display);
	font-weight: 800;
	font-size: 1.35rem;
	line-height: 1.2;
	color: var(--qv-green-ink);
}

.qv-b-check__tipp h3 {
	margin: 0 0 0.2rem;
	font-size: 1.15rem;
}

.qv-b-check__tipp p {
	margin: 0;
	max-width: none;
	color: var(--qv-ink-2);
}

/* The product tag is a link to the service page; padded to a 44px target. */
.qv-b-check__produkt {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 0.2rem;
	font-family: var(--qv-font-display);
	font-weight: 700;
	font-size: var(--qv-text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--qv-blue-ink);
	text-underline-offset: 0.25em;
}

.qv-b-check__produkt::after { content: "\00a0→"; }

/* The Sofia demo line: dark panel, number in brand green (DESIGN-RULES 5). */
.qv-b-check__anruf {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.8rem 1rem;
	align-items: center;
	margin-top: 1rem;
	padding: 1rem 1.2rem;
	border-radius: var(--qv-radius-panel);
	color: rgba(255, 255, 255, 0.86);
	background: var(--qv-ink);
}

@media (min-width: 75rem) {
	.qv-b-check__anruf { grid-template-columns: auto minmax(0, 1fr) auto; }
}

.qv-b-check__anruf-zeichen {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.2rem;
	height: 3.2rem;
	border-radius: 50%;
	color: var(--qv-ink);
	background: var(--qv-green);
}

.qv-b-check__anruf-zeichen svg { width: 1.5rem; height: 1.5rem; }

.qv-b-check__anruf p {
	margin: 0;
	max-width: none;
}

.qv-b-check .qv-b-check__anruf-titel {
	font-family: var(--qv-font-display);
	font-weight: 700;
	font-size: 1.2rem;
	color: #FFFFFF;
}

.qv-b-check__nummer {
	font-weight: 700;
	white-space: nowrap;
	color: var(--qv-green);
}

.qv-b-check__nummer:hover,
.qv-b-check__nummer:focus-visible { color: #FFFFFF; }

.qv-b-check__anruf :focus-visible { outline-color: var(--qv-green); }

/* Below 75rem the booking button takes its own row under the text. */
.qv-b-check__termin { grid-column: 1 / -1; }

@media (min-width: 75rem) {
	.qv-b-check__termin { grid-column: auto; }
}

.qv-b-check__ergebnis-fuss {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem 1.4rem;
	margin-top: 1rem;
}

.qv-b-check .qv-b-check__beides {
	flex: 1 1 18rem;
	margin: 0;
	max-width: none;
	color: var(--qv-ink-2);
}

.qv-b-check__beides b { color: var(--qv-ink); }

.qv-b-check__nochmal {
	background: var(--qv-bg);
	border: 2px solid var(--qv-ink);
}

.qv-b-check__nochmal:hover,
.qv-b-check__nochmal:focus-visible { background: var(--qv-mist); }

@media (prefers-reduced-motion: reduce) {
	.qv-b-check__schirm.is-neu { animation: none; }
	.qv-b-check__balken span,
	.qv-b-check__leiste i,
	.qv-b-check__antwort { transition: none; }
}
