@font-face {
  font-family: "Outfit";
  src: url("outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("outfit-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #050505;
  --surface: #0e0f0c;
  --surface-2: #151610;
  --line: #30312b;
  --line-strong: #47483f;
  --text: #eaeaea;
  --muted: #96968d;
  --dim: #717660;
  --accent: #ccff00;
  --accent-ink: #0b0c07;
  --ok: #ccff00;
  --bad: #ff6b4a;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
::selection { background: var(--accent); color: var(--accent-ink); }

/* Subtle grid backdrop */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--surface-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
  opacity: .7;
}

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 40px);
  background: linear-gradient(var(--bg) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.035em; font-size: 20px; }
.brand svg { width: 34px; height: 34px; color: var(--accent); margin: -4px -4px -4px -6px; }
.meta { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; line-height: 1.4; }

.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: transparent; z-index: 20; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); box-shadow: 0 0 12px rgba(204,255,0,.5); }

main {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(16px, 6vh, 64px) clamp(16px, 4vw, 40px) 120px;
}

.screen { animation: enter .55s var(--ease) both; }
.screen.leaving { animation: leave .25s ease-in both; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-10px); } }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; display: flex; gap: 12px; align-items: center; }
.eyebrow b { color: var(--accent); font-weight: 600; }
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1; letter-spacing: -.045em; font-weight: 600; margin: 0 0 20px; }
h1 em { font-style: normal; color: var(--muted); }
h2 { font-size: clamp(24px, 4.2vw, 34px); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; margin: 0 0 10px; }
.hint { color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.lead { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 0 32px; }
.lead strong { color: var(--text); font-weight: 500; }

/* Options */
.opts { display: grid; gap: 10px; }
.opt {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: left;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit; font-size: 16px; line-height: 1.4;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
  animation: enter .5s var(--ease) both;
}
.opt:hover { border-color: var(--line-strong); background: var(--surface-2); }
.opt:active { transform: scale(.995); }
.opt:focus-visible, .seg button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt .box {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.opt.radio .box { border-radius: 50%; }
.opt .key { flex: none; font-size: 12px; color: var(--dim); font-weight: 600; margin-left: auto; padding-left: 8px; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(204,255,0,.06); }
.opt[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.opt[aria-pressed="true"] .box::after { content: ""; width: 8px; height: 8px; background: var(--accent-ink); }
.opt.radio[aria-pressed="true"] .box::after { border-radius: 50%; }
.opt.dunno { background: transparent; border-style: dashed; color: var(--muted); }
.opt.dunno[aria-pressed="true"] { color: var(--text); }
.opt[disabled] { opacity: .35; cursor: not-allowed; }

.other { margin-top: 8px; }

/* Card stepper (statements, self-assessment) */
.stack { position: relative; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 36px);
  animation: cardIn .45s var(--ease) both;
}
.card.out-left { animation: cardOut .28s ease-in both; }
@keyframes cardIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes cardOut { to { opacity: 0; transform: translateX(-28px); } }
.card .count { font-size: 12px; color: var(--dim); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; display: flex; justify-content: space-between; }
.card .stmt { font-size: clamp(20px, 3.4vw, 26px); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; margin: 0 0 8px; }
.card .sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.seg { display: grid; gap: 8px; grid-template-columns: repeat(var(--n, 3), 1fr); }
.seg button {
  font: inherit; font-size: 15px; color: var(--text);
  padding: 14px 10px; background: var(--surface-2); border: 1px solid var(--line);
  cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.seg button:hover { border-color: var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg button.dunno { border-style: dashed; color: var(--muted); background: transparent; }
.dots { display: flex; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.dots i { width: 18px; height: 3px; background: var(--line); transition: background .3s; }
.dots i.done { background: var(--dim); }
.dots i.now { background: var(--accent); }
.cardnav { display: flex; justify-content: space-between; margin-top: 14px; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 0; }
.linkbtn:hover { color: var(--text); }
.linkbtn[disabled] { opacity: .3; cursor: default; }

/* Inputs */
label.field { display: block; margin-bottom: 18px; }
label.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; letter-spacing: .02em; }
input[type=text], input[type=number], textarea, select {
  width: 100%;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
  font: inherit; font-size: 17px;
  padding: 14px 16px;
  border-radius: 0;
  transition: border-color .2s;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
::placeholder { color: var(--dim); }

/* Buttons */
.actions { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  padding: 15px 26px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .3s, opacity .2s;
}
.btn:hover { box-shadow: 0 0 0 4px rgba(204,255,0,.14); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .3; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.kbd { font-size: 13px; color: var(--dim); }

/* Intro */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin: 0 0 34px; }
.facts div { padding: 16px 18px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.03em; color: var(--accent); }
.facts span { font-size: 13px; color: var(--muted); }

/* Results */
.profile { display: grid; gap: 10px; margin: 8px 0 40px; }
.mod { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); animation: enter .5s var(--ease) both; }
.mod .name { font-weight: 500; }
.mod .lvl { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mod .bar { grid-column: 1 / -1; height: 3px; background: var(--line); position: relative; overflow: hidden; }
.mod .bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: 0; transition: width 1.1s var(--ease); }
.lvl.sitzt { color: var(--accent); }
.lvl.halb { color: #e8d27a; }
.lvl.neu { color: var(--muted); }

.review { display: grid; gap: 10px; }
.rv { padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--line-strong); background: var(--surface); }
.rv.ok { border-left-color: var(--ok); }
.rv.bad { border-left-color: var(--bad); }
.rv .q { font-weight: 500; margin-bottom: 6px; }
.rv .a { font-size: 14px; color: var(--muted); }
.rv .a b { color: var(--text); font-weight: 500; }
.rv .x { font-size: 15px; margin-top: 8px; color: var(--text); }
details.more { margin-top: 18px; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 15px; padding: 8px 0; }

.status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); margin: 0 0 30px; font-size: 15px; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); flex: none; }
.status.sending .dot { animation: pulse 1s infinite; background: var(--accent); }
.status.ok .dot { background: var(--accent); }
.status.err .dot { background: var(--bad); }
@keyframes pulse { 50% { opacity: .3; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer.foot { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 40px; font-size: 12px; color: var(--dim); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 0; }
  .seg { grid-template-columns: 1fr; }
  .opt .key { display: none; }
  .meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Sichtbare Fortschrittsanzeige */
.qprog { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.qprog .track { flex: 1; height: 4px; background: var(--line); position: relative; overflow: hidden; }
.qprog .track i { position: absolute; inset: 0 auto 0 0; background: var(--accent); transition: width .6s var(--ease); }
.qprog .pc { color: var(--accent); min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
