/*
 * Praxis-Selbsttests – Darstellung
 * Farben und Schrift sind an die Website (Theme Pixomi, Urologie MG) angepasst:
 * Blau #49789f, Text #505050, Schrift wie die Seite (Roboto).
 * Alle Klassen beginnen mit "pst-", damit nichts mit dem Theme kollidiert.
 */

.pst-test,
.pst-uebersicht {
	--pst-blau: #49789f;
	--pst-blau-dunkel: #335b7c;
	--pst-blau-hell: #eef3f8;
	--pst-blau-mittel: #c9d9e7;
	--pst-text: #505050;
	--pst-text-leise: #6b6b6b;
	--pst-linie: #dfe5eb;
	--pst-flaeche: #f5f7f9;
	--pst-rot: #b3261e;
	--pst-radius: 10px;

	font-family: inherit;
	font-size: 16px;
	line-height: 1.55;
	letter-spacing: normal;
	color: var(--pst-text);
}

.pst-test *,
.pst-uebersicht * {
	box-sizing: border-box;
}

.pst-test {
	max-width: 860px;
	margin: 0 auto 2rem;
}

.pst-test p {
	margin: 0 0 0.75em;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
}

/* Nur für Vorlesesoftware (falls das Theme die Klasse nicht kennt) */
.pst-test .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Entwurfs-Hinweis ---------- */
.pst-entwurf {
	display: inline-block;
	background: #fff4d6;
	color: #6a4a00;
	border: 1px solid #f0d58a;
	border-radius: 6px;
	padding: 0.2em 0.7em;
	font-size: 13px !important;
}

/* ---------- Einleitung ---------- */
.pst-einleitung {
	font-size: 17px;
	margin-bottom: 1.75rem;
}

.pst-fakten {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pst-fakten li {
	margin: 0;
	padding: 0.3em 0.85em;
	background: var(--pst-blau-hell);
	color: var(--pst-blau-dunkel);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.4;
}

.pst-fakten li::before {
	content: none;
}

/* ---------- Abschnitte und Fragen ---------- */
.pst-abschnitt {
	border: 0;
	margin: 0 0 1.5rem;
	padding: 0;
	min-width: 0;
}

.pst-abschnitt-titel {
	display: block;
	width: 100%;
	margin: 0 0 0.6rem;
	padding: 0.55rem 1rem;
	background: var(--pst-blau);
	color: #fff;
	border-radius: var(--pst-radius);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.pst-frage {
	background: #fff;
	border: 1px solid var(--pst-linie);
	border-radius: var(--pst-radius);
	padding: 1rem 1rem 1.1rem;
	margin-bottom: 0.6rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.pst-frage.pst-erledigt {
	border-color: var(--pst-blau-mittel);
}

.pst-frage.pst-offen {
	border-color: var(--pst-rot);
	box-shadow: 0 0 0 1px var(--pst-rot);
}

.pst-test .pst-frage-titel {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin: 0 0 0.85rem;
}

.pst-frage-titel strong {
	display: block;
	color: #333;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.4;
}

.pst-frage-hinweis {
	display: block;
	font-size: 15px;
	color: var(--pst-text-leise);
	margin-top: 0.15rem;
}

.pst-nr {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--pst-blau-hell);
	color: var(--pst-blau-dunkel);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
}

.pst-erledigt .pst-nr {
	background: var(--pst-blau);
	color: #fff;
}

/* Antwort-Skala: 5 gleich breite Felder */
.pst-skala {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.4rem;
}

.pst-wahl {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.7rem 0.25rem 0.6rem;
	border: 1px solid var(--pst-linie);
	border-radius: 8px;
	background: var(--pst-flaeche);
	cursor: pointer;
	text-align: center;
	font-weight: 400;
	transition: background 0.15s, border-color 0.15s;
}

.pst-wahl:hover {
	border-color: var(--pst-blau);
	background: #fff;
}

/* Echtes Auswahlfeld unsichtbar, aber für Tastatur und Vorlesesoftware da */
.pst-wahl input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.pst-wahl-punkt {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #9aa9b6;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.pst-wahl-text {
	font-size: 14px;
	line-height: 1.25;
	color: var(--pst-text);
	hyphens: auto;
}

.pst-wahl:has(input:checked) {
	background: var(--pst-blau-hell);
	border-color: var(--pst-blau);
}

.pst-wahl input:checked + .pst-wahl-punkt {
	border-color: var(--pst-blau);
	box-shadow: inset 0 0 0 4px #fff;
	background: var(--pst-blau);
}

.pst-wahl input:checked ~ .pst-wahl-text {
	color: var(--pst-blau-dunkel);
	font-weight: 500;
}

.pst-wahl input:focus-visible + .pst-wahl-punkt {
	outline: 3px solid var(--pst-blau-dunkel);
	outline-offset: 2px;
}

/* ---------- Leiste unten (Fortschritt + Knopf) ---------- */
.pst-leiste {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
	background: rgba(255, 255, 255, 0.97);
	border: 1px solid var(--pst-linie);
	border-radius: var(--pst-radius);
	box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

.pst-fortschritt {
	flex: 1 0 100%;
	height: 6px;
	background: var(--pst-blau-hell);
	border-radius: 999px;
	overflow: hidden;
}

.pst-fortschritt-balken {
	display: block;
	height: 100%;
	width: 0;
	background: var(--pst-blau);
	transition: width 0.25s;
}

.pst-test .pst-zaehler {
	margin: 0;
	flex: 1 1 auto;
	font-size: 15px;
}

.pst-test .pst-fehler {
	margin: 0.75rem 0 0;
	color: var(--pst-rot);
	font-weight: 500;
}

/* ---------- Knöpfe ---------- */
.pst-test .pst-knopf,
.pst-test a.pst-knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.65rem 1.4rem;
	border: 2px solid var(--pst-blau);
	border-radius: 8px;
	background: var(--pst-blau);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.pst-test .pst-knopf:hover,
.pst-test .pst-knopf:focus-visible {
	background: var(--pst-blau-dunkel);
	border-color: var(--pst-blau-dunkel);
	color: #fff;
}

.pst-test a.pst-knopf-zweit {
	background: #fff;
	color: var(--pst-blau-dunkel);
}

.pst-test a.pst-knopf-zweit:hover,
.pst-test a.pst-knopf-zweit:focus-visible {
	background: var(--pst-blau-hell);
	color: var(--pst-blau-dunkel);
}

.pst-test .pst-knopf:focus-visible,
.pst-test .pst-link:focus-visible {
	outline: 3px solid var(--pst-blau-dunkel);
	outline-offset: 2px;
}

.pst-test button.pst-link,
.pst-test button.pst-link:hover {
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0.4rem 0;
	color: var(--pst-blau-dunkel);
	font: inherit;
	font-size: 15px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ---------- Ergebnis ---------- */
.pst-ergebnis {
	margin-top: 2rem;
	padding: 1.5rem;
	border: 2px solid var(--pst-blau);
	border-radius: 14px;
	background: #fff;
	scroll-margin-top: 120px;
}

.pst-ergebnis:focus {
	outline: none;
}

.pst-test h2.pst-ergebnis-titel {
	margin: 0 0 0.75rem;
	padding: 0;
	font-size: 26px;
	line-height: 1.3;
}

.pst-ergebnis-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 1.25rem;
}

.pst-test .pst-punkte {
	margin: 0;
	color: var(--pst-blau-dunkel);
}

.pst-punkte-zahl {
	font-size: 44px;
	font-weight: 500;
	line-height: 1;
	margin-right: 0.3rem;
}

.pst-punkte-von {
	font-size: 16px;
}

.pst-test .pst-stufe {
	margin: 0;
	padding: 0.25em 0.8em;
	border-radius: 999px;
	font-weight: 500;
	font-size: 16px;
}

/* Vier Stufen, von hell (unauffällig) nach dunkel (auffällig) */
.pst-stufe-0 { background: #e8f0f6; color: #2c4f6c; }
.pst-stufe-1 { background: #c9dbe9; color: #24435c; }
.pst-stufe-2 { background: #8eb0cc; color: #15293a; }
.pst-stufe-3 { background: #335b7c; color: #fff; }

.pst-skala-anzeige {
	position: relative;
	margin: 1.4rem 0 1.25rem;
	padding-top: 14px;
}

.pst-skala-felder {
	display: flex;
	gap: 3px;
	border-radius: 8px;
	overflow: hidden;
}

.pst-skala-feld {
	flex-basis: 0;
	padding: 0.35rem 0.2rem;
	font-size: 12px;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

.pst-skala-marke {
	position: absolute;
	top: 0;
	width: 0;
	height: 0;
	margin-left: -8px;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 12px solid #222;
	transition: left 0.4s;
}

.pst-test .pst-ergebnis-text {
	font-size: 17px;
}

.pst-praxis {
	margin: 1.5rem 0 1.25rem;
	padding: 1.25rem;
	background: var(--pst-blau-hell);
	border-radius: var(--pst-radius);
}

.pst-test h3.pst-praxis-titel {
	margin: 0 0 0.5rem;
	padding: 0;
	font-size: 20px;
	line-height: 1.35;
}

.pst-praxis-knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;
}

.pst-test .pst-ergebnis-hinweis {
	margin-top: 1rem;
	font-size: 17px;
}

.pst-test .pst-wichtig {
	font-size: 15px;
	color: var(--pst-text-leise);
}

.pst-aktionen {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
}

/* ---------- Fußzeile des Tests ---------- */
.pst-fuss {
	margin-top: 1.75rem;
	padding-top: 1rem;
	border-top: 1px solid var(--pst-linie);
}

.pst-test .pst-fuss p {
	font-size: 13px;
	line-height: 1.5;
	color: var(--pst-text-leise);
}

/* ---------- Kacheln (Übersicht und Startseite) ---------- */
.pst-uebersicht {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
	gap: 1rem;
	margin: 0 0 1.5rem;
}

.pst-uebersicht-einzeln {
	grid-template-columns: 1fr;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

.pst-kachel {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	padding: 1.4rem;
	background: #fff;
	border: 1px solid var(--pst-linie);
	border-radius: 14px;
	color: var(--pst-text);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

a.pst-kachel:hover,
a.pst-kachel:focus-visible {
	border-color: var(--pst-blau);
	box-shadow: 0 6px 22px rgba(73, 120, 159, 0.16);
	transform: translateY(-2px);
	color: var(--pst-text);
}

a.pst-kachel:focus-visible {
	outline: 3px solid var(--pst-blau-dunkel);
	outline-offset: 2px;
}

.pst-kachel-symbol {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 12px;
	background: var(--pst-blau-hell);
	color: var(--pst-blau);
}

.pst-kachel-inhalt {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.pst-kachel-titel {
	font-size: 21px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--pst-blau-dunkel);
}

.pst-kachel-meta {
	font-size: 14px;
	color: var(--pst-text-leise);
}

.pst-kachel-text {
	font-size: 16px;
	line-height: 1.5;
	/* feste Farbe: das Theme hellt Text in Links beim Überfahren auf */
	color: var(--pst-text);
}

.pst-kachel-los {
	margin-top: 0.35rem;
	font-weight: 500;
	color: var(--pst-blau-dunkel);
}

.pst-kachel-geplant {
	background: var(--pst-flaeche);
}

.pst-kachel-geplant .pst-kachel-symbol {
	background: #e8ecf0;
	color: #8a97a3;
}

.pst-kachel-geplant .pst-kachel-titel {
	color: var(--pst-text-leise);
}

.pst-kachel-gross .pst-kachel-titel {
	font-size: 24px;
}

/* ---------- Handy ---------- */
@media (max-width: 600px) {
	.pst-test {
		font-size: 16px;
	}

	.pst-einleitung {
		font-size: 16px;
	}

	.pst-frage {
		padding: 0.85rem 0.7rem 0.9rem;
	}

	.pst-frage-titel strong {
		font-size: 16px;
	}

	.pst-skala {
		gap: 0.25rem;
	}

	.pst-wahl {
		padding: 0.6rem 0.1rem 0.5rem;
	}

	.pst-wahl-text {
		font-size: 13px;
	}

	.pst-leiste {
		padding: 0.7rem 0.8rem;
	}

	/* Leiste flach halten: Zähler und Knopf in einer Zeile */
	.pst-test .pst-zaehler {
		font-size: 14px;
	}

	.pst-test .pst-leiste .pst-knopf {
		min-height: 42px;
		padding: 0.5rem 1rem;
		font-size: 15px;
	}

	.pst-ergebnis {
		padding: 1.1rem;
	}

	.pst-praxis-knoepfe .pst-knopf {
		flex: 1 1 100%;
	}

	.pst-kachel {
		padding: 1.1rem;
	}
}

/* ---------- Druckblatt (für das ärztliche Gespräch) ----------
   Wird erst beim Klick auf „Ausdrucken“ per JavaScript erzeugt, direkt in <body>
   gehängt und nur im Druck gezeigt. Am Bildschirm unsichtbar. */
.pst-druckblatt {
	display: none;
}

@media print {
	@page {
		size: A4;
		margin: 15mm 15mm 14mm;
	}

	/* Website komplett ausblenden, nur das Druckblatt drucken. */
	html.pst-druckt body > *:not(.pst-druckblatt) {
		display: none !important;
	}

	html.pst-druckt body {
		margin: 0 !important;
		padding: 0 !important;
		background: #fff !important;
	}

	html.pst-druckt .pst-druckblatt {
		display: block;
		font-family: inherit;
		font-size: 10.5pt;
		line-height: 1.35;
		color: #000;
	}
}

.pst-druckblatt .pst-db-praxis {
	margin: 0 0 2mm;
	font-size: 9.5pt;
	color: #335b7c;
}

.pst-druckblatt h1.pst-db-titel {
	margin: 0 0 5mm;
	padding: 0;
	font-size: 13pt;
	line-height: 1.25;
	font-weight: 600;
	color: #335b7c;
}

.pst-druckblatt .pst-db-kopf {
	display: flex;
	gap: 10mm;
	margin-bottom: 5mm;
}

.pst-druckblatt .pst-db-feld {
	margin: 0;
	display: flex;
	align-items: flex-end;
	white-space: nowrap;
}

.pst-druckblatt .pst-db-feld:first-child {
	flex: 1;
}

.pst-druckblatt .pst-db-linie {
	flex: 1;
	margin-left: 2mm;
	border-bottom: 0.6pt solid #000;
	min-height: 1em;
}

.pst-druckblatt .pst-db-tabelle {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 4mm;
}

.pst-druckblatt .pst-db-tabelle th,
.pst-druckblatt .pst-db-tabelle td {
	padding: 1.3mm 2mm;
	border-bottom: 0.4pt solid #bbb;
	text-align: left;
	vertical-align: top;
}

.pst-druckblatt .pst-db-tabelle th {
	border-bottom: 0.8pt solid #000;
	font-weight: 600;
}

.pst-druckblatt .pst-db-abschnitt td {
	padding-top: 2.5mm;
	font-weight: 600;
	color: #335b7c;
	border-bottom-color: #335b7c;
}

.pst-druckblatt .pst-db-nr {
	width: 9mm;
}

.pst-druckblatt .pst-db-punkte {
	width: 22mm;
	text-align: right !important;
	white-space: nowrap;
}

.pst-druckblatt .pst-db-tabelle th:last-child {
	text-align: right;
}

.pst-druckblatt tfoot td {
	border-top: 0.8pt solid #000;
	border-bottom: none;
	font-weight: 600;
	font-size: 11.5pt;
}

.pst-druckblatt tr {
	break-inside: avoid;
}

.pst-druckblatt .pst-db-hinweis {
	margin: 0 0 3mm;
}

.pst-druckblatt .pst-db-quelle {
	margin: 0;
	font-size: 8.5pt;
	color: #444;
}

/* Tabellen-Streifen des Themes im Druckblatt abschalten. */
.pst-druckblatt .pst-db-tabelle tr,
.pst-druckblatt .pst-db-tabelle td,
.pst-druckblatt .pst-db-tabelle th {
	background: transparent !important;
}
