/* assets/pss.css
   PSS UI – im Stil des Robustheitschecks
   Voraussetzung: <body class="pss">
*/

body.pss .card { margin: 26px 0; }

/* Ergebnis-Layout */
body.pss .pss-result-row{
  display:flex;
  gap:18px;
  align-items:flex-start;
  flex-wrap:wrap;
}
body.pss .pss-score-col{ min-width:140px; }
body.pss .pss-gauge-col{ flex:1; min-width:280px; }

body.pss #score100,
body.pss #scoreValue{
  font-size: 76px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Erklärung & Quickwin */
body.pss #pssExplain .label,
body.pss #pssTip .label{
  font-weight: 900;
  color: #0f172a;
  font-size: 18px;
  margin: 0 0 8px;
}
body.pss #pssExplain p,
body.pss #pssTip p{
  margin: 0;
  color: #6a6f7a;
  font-size: 14.5px;
  line-height: 1.5;
}
body.pss #pssTip{
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ===== CTA Card (groß) ===== */
body.pss .pss-cta-card{
  display:flex;
  align-items:center;
  gap:16px;

  background:#fff;
  border:1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);

  padding: 18px 18px;
  margin: 26px 0;

  text-decoration:none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* Blau-grau Hover (leicht transparent) */
body.pss .pss-cta-card:hover{
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 14px 34px rgba(15,23,42,.12);
}

/* Keyboard focus */
body.pss .pss-cta-card:focus,
body.pss .pss-cta-card:focus-visible{
  outline: none;
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16), 0 14px 34px rgba(15,23,42,.12);
}

body.pss .pss-cta-logo{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
}

body.pss .pss-cta-text{
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.15;
}

/* ===== Footer Mini CTA (Badge-link, dezent) ===== */
body.pss .pss-footer-mini-cta{
  display:flex;
  justify-content:center;
  margin: 0 0 10px;
}

body.pss .pss-mini-cta{
  display:inline-flex;
  align-items:center;
  gap:10px;

  padding: 10px 12px;
  border:1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.75);

  text-decoration:none;
  box-shadow: 0 2px 10px rgba(15,23,42,.05);

  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.pss .pss-mini-cta:hover{
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}

body.pss .pss-mini-cta:focus,
body.pss .pss-mini-cta:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16), 0 10px 22px rgba(15,23,42,.10);
  border-color: rgba(59, 130, 246, 0.35);
}

body.pss .pss-mini-cta-logo{
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
}

body.pss .pss-mini-cta-text{
  font-size: 13px;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.01em;
}

/* Footer links wrapper */
body.pss .pss-footer-links{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:0;
}

/* ===== Fragebogen (Choice Cards) ===== */
body.pss fieldset.q{
  border: 0;
  margin: 0;
  padding: 0;
}
body.pss fieldset.q + fieldset.q{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
body.pss fieldset.q legend{
  margin: 0 0 10px;
  font-weight: 850;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Scale grid: 5 cards */
body.pss .scale{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 980px){
  body.pss .scale{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  body.pss .scale{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px){
  body.pss .scale{ grid-template-columns: 1fr; }
}

body.pss .choice{
  position: relative;
  display: flex;
  align-items: center;

  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 14px 44px;

  background: #fff;
  cursor: pointer;

  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
  min-height: 56px;
}
body.pss .choice:hover{
  border-color: rgba(68,86,122,.30);
  background: rgba(68,86,122,.06);
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}
body.pss .choice input{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
body.pss .choice.selected{
  border-color: rgba(68,86,122,.55);
  background: rgba(68,86,122,.10);
  box-shadow: 0 12px 26px rgba(15,23,42,.12);
}

/* Kompakt: Zahl groß + Text klein */
body.pss .choice > span{
  display:flex;
  flex-direction:column;
  gap:4px;
  line-height:1.15;
}
body.pss .choice .v{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}
body.pss .choice .t{
  font-size: 12.5px;
  font-weight: 750;
  color: var(--muted);
}

/* ===== Gauge tick stability ===== */
body.pss .pss-ticks{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 750;
  font-size: 12.5px;
}
body.pss .pss-ticks span{ min-width: 22px; text-align: center; }

/* Print: optional */
@media print{
  body.pss #questions,
  body.pss .actions,
  body.pss .legal-footer,
  body.pss .pss-cta-card{
    display:none !important;
  }
  body.pss .container{ width:100% !important; max-width:none !important; }
  body.pss .card{ box-shadow:none !important; }
}