/*
 * Seiten-CSS «Test» (/test/), wird auch von «Installation» (/install/)
 * und «vb-Update» (/vb-update/) verwendet. Präfix .stx-test-
 * Werte nach Entwurf Version 13 (Testversion_v13.html).
 */

/* ---------- Kopf-Panel (karierte Fläche) ---------- */
.stx-test-kopf {
	box-sizing: border-box;
	max-width: 1232px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.stx-raster.stx-test-kopf {
	padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 48px);
}

.stx-test-kopf > * {
	margin: 0;
}

.stx-test-kopf .stx-h1 {
	text-wrap: wrap; /* Entwurf Testversion ohne balance */
	line-height: 1.12;
	letter-spacing: -0.015em;
}

/* Entwurf: Einleitung im Panel erbt Zeilenhöhe 1.6 (nicht 1.55) */
.stx-test-kopf .stx-lead {
	color: var(--wp--preset--color--muted, #555C66);
	max-width: 60ch;
	line-height: 1.6;
}

/* Knopf im Kopf-Panel (vb-Update): etwas mehr Luft über dem Knopf */
.stx-test-kopf > .wp-block-buttons {
	margin-top: 10px;
}

/* Einzelnes Kopf-Panel ohne weiteren Abschnitt (vb-Update): Abstand zur Fusszeile */
.stx-abschnitt.stx-test-abschluss {
	padding-bottom: clamp(56px, 12vw, 96px);
}

/* ---------- Formular und Ablauf ---------- */
.stx-abschnitt.stx-test-haupt {
	padding: 64px 24px 96px;
}

.stx-test-zeile {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}

.stx-test-zeile > * {
	margin: 0;
	min-width: 0;
}

/*
 * Im Entwurf ist die Basis 420px ohne Innenabstand und Rand (content-box);
 * die Karte rechnet mit border-box, daher 420 + 2×32 + 2×1 = 486px.
 */
.stx-test-formularkarte {
	flex: 1 1 486px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.stx-karte.stx-test-formularkarte {
	padding: 32px;
	gap: 16px;
}

.stx-test-formularkarte > * {
	margin: 0;
}

.stx-test-formularkarte > .stx-test-pflicht {
	margin-top: -8px;
}

/* Hinweise im Entwurf mit Zeilenhöhe 1.6 */
.stx-test-formularkarte > .stx-hinweis {
	line-height: 1.6;
}

/* Im Entwurf geht der Senden-Knopf über die ganze Kartenbreite */
.stx-test-formularkarte .wpforms-submit-container .wpforms-submit {
	width: 100%;
}

.stx-test-seite {
	flex: 1 1 440px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.stx-test-seite > * {
	margin: 0;
}

.stx-test-ablauf {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.stx-test-ablauf > * {
	margin: 0;
}

/*
 * Die Schritte enthalten fetten Anfang + Text im selben Listeneintrag.
 * Damit beides als ein Textfluss läuft (auch wenn basis.css li als Flex/Grid
 * baut), steht der Kreis absolut links und der Text als Block daneben.
 */
.wp-block-list.stx-test-schritte {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Entwurf: Kreis 26px, Text 14px daneben (26 + 14 = 40) */
.wp-block-list.stx-test-schritte > li {
	display: block;
	position: relative;
	margin: 0;
	padding-left: 40px;
	min-height: 26px;
}

.wp-block-list.stx-test-schritte > li::before {
	position: absolute;
	left: 0;
	top: 0;
	width: 26px;
	height: 26px;
	margin: 0;
}

.stx-test-schritte strong {
	font-weight: 600;
	color: var(--wp--preset--color--ink, #12161C);
}

.stx-test-itkarte {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.stx-karte.stx-test-itkarte {
	padding: 24px;
	gap: 10px;
}

.stx-test-itkarte > * {
	margin: 0;
}

/* ---------- Karten unten ---------- */
.stx-abschnitt.stx-test-weiteres {
	border-bottom: 0;
}

.stx-raster-gitter.stx-test-gitter {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 24px;
}

.stx-test-karte {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--wp--preset--color--weiss, #FFFFFF);
}

.stx-karte.stx-test-karte {
	padding: 24px;
	gap: 10px;
}

.stx-test-karte > * {
	margin: 0;
}

/* ---------- Gemeinsame Kleinteile ---------- */
.wp-block-list.stx-test-punkte {
	margin: 0;
	padding-left: 20px;
	list-style: disc;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 16px;
}

.wp-block-list.stx-test-punkte > li {
	margin: 0;
	padding: 0;
}

.wp-block-list.stx-test-punkte > li::before {
	content: none;
}

.stx-test-pfeil a {
	font-weight: 600;
	text-decoration: none;
}

.stx-test-pfeil a:hover,
.stx-test-pfeil a:focus-visible {
	text-decoration: underline;
}
