/* Rewired Kurztest — die Testkarte. Seite, Kopf, Fuß, Schriften und Farben kommen aus /site.css
   (web/rewired/site); hier steht nur, was in .kt (Karte) und .kt-seite (rechte Spalte) passiert.
   Das Assessment lädt dieselbe Datei (/test/kurztest.css) und baut darauf auf.
   Farbregel (Joel 15.10.): Türkis = positiv, Gelb = negativ, Weiß/Grau = neutral. */

:root {
  --f-head: var(--font-display); --f-body: var(--font-body);
  --f-mono: "Martian Mono", ui-monospace, monospace;
  --linie: oklch(1 0 0 / 10%); --linie-stark: oklch(1 0 0 / 22%);
}

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: var(--f-mono); }
.nw { white-space: nowrap; }

/* Karte */
.kt {
  position: relative; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--panel);
  padding: 28px 22px 26px; scroll-margin-top: 76px;
}
@media (min-width: 640px) { .kt { padding: 52px 52px 44px; } }
.kt button, .kt input { font: inherit; color: inherit; }
.kt a { color: inherit; }
.js-an .kt-ohne-skript { display: none; }
.kt-ohne-skript { color: var(--muted-fg); }

.kt-fortschritt { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.zaehler { font-size: 13px; color: var(--muted-fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.balken { flex: 1; height: 3px; background: var(--frost); border-radius: 2px; overflow: hidden; }
.fuellung { height: 100%; width: 0; background: var(--signal); transition: width .3s ease; }

.screen { animation: rein .28s ease both; }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } .fuellung { transition: none; } }

.kicker { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin: 0 0 16px; }
.kt em { font-style: italic; color: var(--gold); }
.lead { font-size: 18px; line-height: 1.5; margin: 0 0 8px; }
.dim { color: var(--muted-fg); }
.hinweis { margin-top: 18px; font-size: 14px; font-style: italic; color: var(--muted-fg); }

.frage {
  font-family: var(--f-head); font-weight: 500; font-size: clamp(25px, 6vw, 32px); line-height: 1.2;
  letter-spacing: -.01em; font-variation-settings: "opsz" 72; margin: 0 0 28px; min-height: 3.6em; text-wrap: pretty;
}
.frage.kurz { min-height: 0; }
.wette-text { min-height: 0; margin-bottom: 14px; }
.gewinn { color: var(--signal); }
.verlust { color: var(--gold); }

/* Knöpfe — Form wie die Website (Pille). Hell = weiter im Test, Gold = kaufen (wie „Get the book"). */
.knopf {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--linie-stark);
  background: transparent; font-size: 16px; font-weight: 500; text-decoration: none; text-align: center;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.knopf:active { transform: scale(.985); }
.knopf.haupt { margin-top: 12px; background: var(--light); color: var(--ink); border-color: var(--light); font-weight: 600; }
.knopf.kaufen { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.knopf.leise { border-color: var(--linie); }
.kt .knopf:focus-visible, .stufe:focus-visible, .kt input:focus-visible, .kt a:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (hover: hover) {
  .knopf:hover { border-color: var(--muted-fg); }
  .knopf.haupt:hover { background: #fff; }
  .knopf.kaufen:hover { background: color-mix(in oklab, var(--gold) 90%, white); }
}

/* Ablauf auf der Startkarte (wie Myras Market Scan) */
.ablauf { list-style: none; margin: 44px 0 0; padding: 30px 0 0; border-top: 1px solid var(--linie); display: grid; gap: 16px; }
@media (min-width: 640px) { .ablauf { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.ablauf li { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; row-gap: 3px; align-items: start; }
.ablauf b {
  grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--linie-stark);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.ablauf strong { font-size: 15px; font-weight: 600; }
.ablauf span { font-size: 13px; line-height: 1.4; color: var(--muted-fg); }

.skala { display: grid; gap: 10px; }
.stufe {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 12px 16px;
  border-radius: var(--radius); border: 1px solid var(--linie); background: var(--ink);
  text-align: left; font-size: 16px; cursor: pointer; transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.stufe .marke {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted-fg);
  display: grid; place-items: center;
}
.stufe[aria-checked="true"] { border-color: var(--light); background: var(--frost); }
.stufe[aria-checked="true"] .marke { border-color: var(--light); }
.stufe[aria-checked="true"] .marke::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--light); }
@media (hover: hover) { .stufe:hover { border-color: var(--muted-fg); } }

.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }

.zurueck {
  margin-top: 24px; background: none; border: 0; padding: 8px 0; font-size: 14px;
  color: var(--muted-fg); cursor: pointer;
}
.zurueck:hover { color: var(--light); }
.zurueck[disabled] { visibility: hidden; }

/* Ergebnis */
.typ {
  font-family: var(--f-head); font-weight: 500; font-style: italic; font-size: clamp(44px, 11vw, 68px);
  line-height: 1; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; margin: 0;
}
.mix { margin-top: 12px; font-size: 18px; color: var(--muted-fg); }
.mix:empty { display: none; }
.lambda { margin-top: 32px; padding: 22px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.lambda-satz { font-family: var(--f-head); font-weight: 500; font-size: 23px; line-height: 1.3; margin: 0; text-wrap: pretty; }
.lambda-zahl { color: var(--gold); font-weight: 600; }
.quelle { margin-top: 12px; font-size: 12px; color: var(--muted-fg); }

.gate .frage { margin-bottom: 12px; }
.feld { display: block; margin-top: 20px; }
.feld input {
  width: 100%; min-height: 52px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--input); background: var(--ink); font-size: 16px;
}
.feld input::placeholder { color: var(--muted-fg); }
.gate .knopf.haupt { margin-top: 12px; }
.kt .knopf[disabled] { opacity: .6; cursor: wait; }
.fehler { margin-top: 12px; color: var(--gold); font-size: 15px; }
.klein { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted-fg); }
.klein a { text-decoration: underline; text-underline-offset: 3px; }
.klein a:hover { color: var(--light); }

.profil { margin-top: 28px; display: grid; gap: 12px; }
.karte { padding: 20px; border-radius: var(--radius); background: var(--ink); border: 1px solid var(--linie); }
.karte .label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-fg); margin: 0 0 8px; }
.karte.positiv .label { color: var(--signal); }
.karte.negativ .label { color: var(--gold); }
.karte .text { font-size: 17px; line-height: 1.5; margin: 0; }
.weiter { margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--linie); }
.weiter .lead { margin-bottom: 18px; }
.weiter .klein { margin-top: 12px; text-align: center; }
.zweit { display: block; margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted-fg); text-decoration: none; }
.zweit:hover { color: var(--light); }

/* Rechte Spalte: was man bekommt */
.kt-seite { border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px 22px; display: flex; flex-direction: column; }
@media (min-width: 640px) { .kt-seite { padding: 44px 40px; } }
@media (min-width: 1024px) { .kt-seite { position: sticky; top: 92px; } }
.seite-liste { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.seite-liste b { display: block; font-family: var(--f-head); font-size: 24px; font-weight: 500; line-height: 1.2; }
.seite-liste span { display: block; margin-top: 6px; line-height: 1.55; color: var(--muted-fg); }
.seite-fuss { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--linie); font-size: 14px; color: var(--muted-fg); }

/* Warum dieser Typ — eigene Antworten statt Sätzen, die auf jeden passen (gilt auch im Assessment) */
.beleg { margin-top: 12px; padding: 20px; border-radius: var(--radius); border: 1px dashed var(--linie-stark); }
.beleg .label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-fg); margin: 0 0 10px; }
.beleg-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.beleg-liste li { display: grid; gap: 4px; }
.beleg-achse { font-size: 11px; letter-spacing: .06em; color: var(--muted-fg); }
.beleg-text { font-size: 15px; line-height: 1.5; }
.beleg .klein { margin-top: 12px; }
