/* Layout des Selbsttests. Farben, Schrift und Abstände kommen ausschließlich
   aus den Tokens des Conciso Design Systems (css/conciso-core.css). */

body { margin: 0; background: var(--bg-page); color: var(--tx-primary); font: var(--ty-body-md); font-family: var(--font); }
h1, h2, p, fieldset, figure { margin: 0; }

.st-wrap { max-width: 880px; margin: 0 auto; padding-inline: var(--s4); box-sizing: border-box; }
.st-header { border-bottom: var(--bd); background: var(--bg-surface); }
.st-header-row { padding-block: var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.st-logo { font: var(--ty-title-sm); letter-spacing: .03em; color: var(--co-ink); }
.st-main { padding-block: var(--s10) var(--s16); display: flex; flex-direction: column; gap: var(--s8); }

.st-eyebrow { font: var(--ty-label-xs); text-transform: uppercase; letter-spacing: .09em; }
.st-small { font: var(--ty-body-sm); }
.st-xs { font: var(--ty-body-xs); }
.st-muted { color: var(--tx-secondary); }

.st-progress { display: flex; flex-direction: column; gap: var(--s2); }
.st-progress-meta { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.st-progress-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s1); }
.st-progress-bar span { height: 6px; border-radius: var(--r-full); background: var(--n-100); }
.st-progress-bar span.is-done { background: var(--ki-ink); }

.st-section { display: flex; flex-direction: column; gap: var(--s6); }
.st-head { display: flex; flex-direction: column; gap: var(--s3); }
.st-h1 { font: var(--ty-display-md); color: var(--tx-primary); }
.st-h2 { font: var(--ty-headline-md); color: var(--tx-primary); }
.st-lead { font: var(--ty-body-md); color: var(--tx-secondary); max-width: 620px; }
.st-serif { font: var(--ty-serif-md); color: var(--tx-primary); }

.st-panel { background: var(--bg-surface); border: var(--bd-strong); border-radius: var(--r-lg); }
.st-panel-pad { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s5); }
.st-panel .field { margin: 0; }
.st-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.st-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.st-actions-right { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

.st-q { border: none; border-bottom: var(--bd); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.st-q:last-child { border-bottom: none; }
.st-q legend { padding: 0; float: left; width: 100%; font: var(--ty-title-sm); font-size: 1.0625rem; line-height: 1.5rem; color: var(--tx-primary); }
.st-scale { clear: both; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); }
.st-scale .chip { justify-content: center; min-height: 44px; }
.st-ends { display: flex; justify-content: space-between; gap: var(--s4); font: var(--ty-body-xs); color: var(--tx-secondary); }
.st-ends span:last-child { text-align: right; }

.st-muster { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s3); }
.st-muster .chip { min-height: 72px; padding: var(--s4); flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s1); text-align: left; border-radius: var(--r-md); }

.st-result { display: flex; flex-wrap: wrap; gap: var(--s8); align-items: flex-start; }
.st-matrix { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: var(--s2); }
.st-matrix-box { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.st-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1); }
.st-cell { border-radius: var(--r-md); padding: var(--s3); font: var(--ty-label-md); background: var(--n-50); color: var(--tx-secondary); border: var(--bd); }
.st-cell.is-active { background: var(--ki-800); border-color: var(--ki-800); color: var(--n-0); }
.st-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: var(--r-full); background: var(--tx-primary); border: 3px solid var(--n-0); box-shadow: var(--e2); box-sizing: border-box; }
.st-axis-x { text-align: right; }

.st-side { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: var(--s5); }
.st-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.st-score { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s1); }
.st-score-num { font: var(--ty-headline-md); color: var(--tx-primary); }
.st-note { background: var(--c-warning-bg); color: var(--badge-warn-text); border-radius: var(--r-md); padding: var(--s3) var(--s4); font: var(--ty-body-sm); }
.st-bridge { background: var(--co-fill); border-radius: var(--r-lg); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.st-badge { width: fit-content; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
