/* SmartHome Kompass – Styles für die interaktiven Troubleshooter-Wizards.
   Mobile-first, nutzt die globalen Marken-Variablen aus style.css. */

.ts-app { --ts-gap: 12px; }

.ts-step { animation: ts-fade .25s ease; }
@keyframes ts-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ts-head { margin-bottom: 10px; }
.ts-progress {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.ts-title { font-size: clamp(1.25rem, 4vw, 1.6rem); line-height: 1.25; }
.ts-body { color: var(--text-muted); margin: 10px 0 4px; }
.ts-body p { margin: 0 0 10px; }
.ts-body strong { color: var(--text); }

/* Auswahl-Buttons */
.ts-options { display: flex; flex-direction: column; gap: var(--ts-gap); margin-top: 18px; }
.ts-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-height: 58px;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ts-opt:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ts-opt:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ts-opt-label { flex: 1; font-weight: 600; font-size: 1.02rem; }
.ts-opt-hint { display: block; font-weight: 400; font-size: .86rem; color: var(--text-muted); margin-top: 3px; }
.ts-opt-arrow { color: var(--brand); font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.ts-opt-yes { border-color: var(--brand); background: var(--brand-soft); }
.ts-opt-yes:hover { background: var(--brand-soft); }
.ts-opt-yes .ts-opt-arrow { display: none; }

/* Checkliste */
.ts-checklist { list-style: none; counter-reset: ts; margin: 18px 0 6px; padding: 0; }
.ts-checklist li { position: relative; margin: 0 0 10px; }
.ts-checklist label {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  cursor: pointer;
  transition: background .15s ease;
}
.ts-checklist label:hover { background: var(--brand-soft); }
.ts-checklist input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.ts-checklist li > label > span { flex: 1; line-height: 1.5; }
.ts-checklist input:checked + span { color: var(--text-muted); text-decoration: line-through; }
.ts-checklist li > label > span strong { color: var(--text); }
.ts-checklist code {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px; font-size: .9em;
}

/* Ergebnis */
.ts-step.ts-ok .ts-title { color: var(--brand-strong); }
.ts-links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.ts-links a.btn { justify-content: center; }
.ts-link-note { display: block; font-size: .82rem; color: var(--text-faint); margin: 2px 2px 4px; text-align: center; }

/* Navigation */
.ts-nav { margin-top: 18px; }
.ts-back, .ts-restart {
  background: none; border: none; color: var(--text-muted);
  font-family: var(--font-body); font-size: .95rem; cursor: pointer; padding: 6px 2px;
}
.ts-back:hover, .ts-restart:hover { color: var(--brand); text-decoration: underline; }
.ts-restart-row { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }

@media (min-width: 620px) {
  .ts-links { flex-direction: row; flex-wrap: wrap; }
  .ts-links a.btn { flex: 1 1 200px; }
}
