/* ==========================================================================
   Tyler Tweaks — PC-Score-Test (score-test.html)

   Nur was diese Seite braucht. Farben, Schriften und Radien kommen aus den
   Tokens in style.css; hier steht kein eigener Farbwert außer dem Verlauf
   des Rings, der dem Nachtblau der App folgt (#1D4ED8, siehe Abschnitt 27
   in style.css).
   ========================================================================== */

.score-seite {
  position: relative;
  overflow: hidden;
  padding: 150px 0 110px;
}
.score-wrap { position: relative; z-index: 1; }

.score-kopf {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.score-kopf h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin-bottom: .35em;
}
.score-kopf .sub { color: var(--text-2); }

/* ---------- Die Karte ---------- */
.score-karte {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 40px 34px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(29, 78, 216, .10), transparent 42%),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 0 0 1px rgba(var(--accent-rgb), .10),
    0 30px 80px rgba(0, 0, 0, .55),
    0 0 120px rgba(29, 78, 216, .16);
}
@media (max-width: 560px) {
  .score-seite { padding: 120px 0 80px; }
  .score-karte { padding: 28px 20px 24px; border-radius: 14px; }
}

/* Ohne Skript gibt es nichts zu starten. */
.score-karte:not(.ist-bereit) .score-los { display: none; }
.score-noscript { margin-top: 18px; color: var(--muted); text-align: center; }

/* ---------- Start ---------- */
.score-start { text-align: center; }

.score-start-ring {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 26px;
}
.score-start-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-start-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
}
.score-ring-deko {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 90 237;
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), .7));
  transform-origin: 60px 60px;
}
@media (prefers-reduced-motion: no-preference) {
  .score-ring-deko { animation: score-kreisen 2.8s linear infinite; }
  @keyframes score-kreisen { to { transform: rotate(360deg); } }
}

.score-fakten {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 30px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.score-fakten li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: .95rem;
}
.score-fakten svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }

/* ---------- Frage ---------- */
.score-fortschritt {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.score-balken {
  height: 6px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}
.score-balken span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8, var(--accent-2));
  box-shadow: 0 0 12px rgba(var(--accent-2-rgb), .6);
  transition: width .35s ease;
}

.score-frage h2 {
  font-size: clamp(1.45rem, 3.6vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: .5em;
}
.score-frage h2:focus { outline: none; }
.score-hilfe {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: .9rem;
}

@media (prefers-reduced-motion: no-preference) {
  .score-frage.ist-neu h2,
  .score-frage.ist-neu .score-hilfe,
  .score-frage.ist-neu .score-antworten {
    animation: score-rein .32s ease both;
  }
  .score-frage.ist-neu .score-antworten { animation-delay: .05s; }
  @keyframes score-rein {
    from { opacity: 0; transform: translateY(8px); }
  }
}

.score-antworten { display: grid; gap: 10px; margin-top: 22px; }

.score-antwort {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.score-antwort:hover {
  border-color: rgba(var(--accent-rgb), .6);
  background: rgba(29, 78, 216, .12);
  transform: translateX(3px);
}
.score-antwort.ist-gewaehlt {
  border-color: var(--accent);
  background: rgba(29, 78, 216, .22);
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(var(--accent-rgb), .25);
}

.score-taste {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
}
.score-antwort:hover .score-taste,
.score-antwort.ist-gewaehlt .score-taste {
  border-color: var(--accent);
  color: var(--accent);
}

.score-fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-top: 22px;
}
.score-zurueck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
}
.score-zurueck:hover { color: var(--text); }
.score-zurueck svg { width: 16px; height: 16px; }
.score-tasten-hinweis {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
}
/* Auf dem Handy gibt es keine Tasten 1 bis 4. */
@media (hover: none) { .score-tasten-hinweis { display: none; } }

/* ---------- Ergebnis ---------- */
.score-ergebnis { text-align: center; }

.score-ring {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 4px auto 22px;
}
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.score-ring-spur {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 9;
}
.score-ring-wert {
  fill: none;
  stroke: url(#score-verlauf);
  stroke-width: 9;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(46, 197, 255, .55));
}
.score-ring-mitte {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.score-zahl {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.score-einheit {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.score-stufe {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), .10);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45);
}
/* Drei Stufen, drei Blautöne: hell für „gut“, kräftig für „hoch“. */
.stufe-gut    .score-stufe { color: #7fd8ff; background: rgba(127, 216, 255, .08); box-shadow: inset 0 0 0 1px rgba(127, 216, 255, .4); }
.stufe-mittel .score-stufe { color: var(--accent-2); background: rgba(var(--accent-2-rgb), .10); box-shadow: inset 0 0 0 1px rgba(var(--accent-2-rgb), .45); }
.stufe-hoch   .score-stufe { color: #fff; background: linear-gradient(135deg, #1d4ed8, #2563eb); box-shadow: 0 0 22px rgba(37, 99, 235, .55); }

.score-stufe-text {
  max-width: 520px;
  margin: 0 auto 34px;
  color: var(--text-2);
  font-size: 1.02rem;
}

.score-zwischen {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: left;
}

.score-baustellen {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: baustelle;
  text-align: left;
}
.score-baustellen li {
  position: relative;
  padding: 16px 18px 16px 62px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  counter-increment: baustelle;
}
.score-baustellen li::before {
  content: counter(baustelle, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), .10);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}
.score-baustellen h3 { margin-bottom: .3em; font-size: 1.05rem; }
.score-baustellen p { color: var(--muted); font-size: .93rem; line-height: 1.55; }

.score-empfehlung {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 22px 22px 24px;
  border: 1px solid rgba(var(--accent-rgb), .45);
  border-radius: 14px;
  background:
    radial-gradient(420px 160px at 0 0, rgba(var(--accent-rgb), .14), transparent 70%),
    var(--surface-2);
  text-align: left;
}
.score-empfehlung h3 { margin-bottom: .3em; font-size: 1.3rem; }
.score-empfehlung p { color: var(--text-2); font-size: .93rem; line-height: 1.55; }
.score-empfehlung .btn { flex-shrink: 0; }
.score-empfehlung-marke {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  .score-empfehlung { flex-direction: column; align-items: stretch; }
}

.score-nachher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.score-hinweis {
  max-width: 520px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: .82rem;
}

@media (prefers-reduced-motion: no-preference) {
  .score-ergebnis:not([hidden]) .score-baustellen li,
  .score-ergebnis:not([hidden]) .score-empfehlung {
    animation: score-rein .45s ease both;
  }
  .score-ergebnis:not([hidden]) .score-baustellen li:nth-child(1) { animation-delay: .5s; }
  .score-ergebnis:not([hidden]) .score-baustellen li:nth-child(2) { animation-delay: .62s; }
  .score-ergebnis:not([hidden]) .score-baustellen li:nth-child(3) { animation-delay: .74s; }
  .score-ergebnis:not([hidden]) .score-empfehlung { animation-delay: .9s; }
}
