/* Selbsttests – nutzt die Design-Variablen der jeweiligen Website (body[data-theme]).
   Die Werte in :root gelten nur, wenn die Seite ohne Website-Vorlage geöffnet wird. 2026-11-22 */
:root {
  --primary: #AD1010; --primaryHover: #8B0D0D; --primarySoft: rgba(173,16,16,.08);
  --text: #050505; --muted: #6B6B6B; --bg: #FFFFFF; --bg2: #F5F5F5; --bd: #E0E0E0;
  --grad: linear-gradient(135deg,#AD1010 0%,#7A1E5A 52%,#4A1A6B 100%);
  --shadow: 0 4px 6px rgba(0,0,0,.08); --shadowLg: 0 8px 16px rgba(0,0,0,.12);
}

/* Website-Vorlage: main hat dort Innenabstand; der Kopfbereich soll direkt anschließen */
#main { padding: 0; outline: none; }
#main .hero h1 { outline: none; }
.qt { padding-block: 2rem 2.5rem; }
.qt h1, .qt h2, .qt h3 { line-height: 1.2; }
.qt [data-heading]:focus { outline: none; }

/* Brotkrumen: „Selbsttests“ als Link zurück zur Übersicht */
.crumb-link {
  border: 0; background: none; padding: 0; font: inherit; color: var(--primary);
  cursor: pointer; text-decoration: underline; text-underline-offset: .18em;
}

/* Sprachumschalter auf liftyourselfup.life (ZdL/LoL nutzen .zl-pill der Vorlage) */
.qt-head-controls { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* Übersicht */
.test-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1rem; }
.test-header h2 { font-size: 1.4rem; }
.test-header p, .muted { color: var(--muted); }
.deck { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; }
@media (min-width: 700px) { .deck { grid-template-columns: repeat(3, minmax(0,1fr)); } .deck .card.featured { grid-column: 1 / -1; } }
.qt .card {
  min-width: 0; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--bg); color: var(--text); border: 1px solid var(--bd); border-radius: 12px; padding: 1.1rem;
}
.qt .card.featured { border-top: 3px solid var(--primary); background: var(--soft, var(--primarySoft, var(--bg2))); }
.qt .card .eyebrow { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); margin-bottom: .35rem; }
.qt .card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.qt .card.featured h3 { font-size: 1.35rem; }
.qt .card p:not(.eyebrow) { color: var(--muted); font-size: .95rem; line-height: 1.55; margin-bottom: .8rem; }
.qt .card .card-count { margin-top: auto; font-size: .8rem; }

/* Knöpfe */
.qt .action, .qt .secondary, .qt .quiet {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 2.75rem; padding: .6rem 1.1rem; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.3; cursor: pointer; text-decoration: none;
}
.qt .action { background: var(--primary); color: #fff; }
.qt .action:enabled:hover, .qt a.action:hover { background: var(--primaryHover, var(--primary)); }
.qt .action:disabled { background: var(--bg2); color: var(--muted); border-color: var(--bd); cursor: default; }
.qt .secondary { background: var(--bg); color: var(--text); border-color: var(--bd); }
.qt .secondary:hover { border-color: var(--primary); }
.qt .quiet { background: transparent; color: var(--text); text-decoration: underline; text-underline-offset: .2em; padding-inline: .5rem; }
[data-theme="lemon-2"] .qt .action { color: #111B6E; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.25rem; }

/* Fragen- und Ergebnisfläche */
.screen { max-width: 46rem; margin-inline: auto; }
.panel { background: var(--bg); color: var(--text); border: 1px solid var(--bd); border-radius: 16px; padding: clamp(1.1rem, 3.5vw, 2rem); box-shadow: var(--shadow); }
.panel > .eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); margin-bottom: .5rem; }
.panel h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: .8rem; }
.lede { font-size: 1.05rem; line-height: 1.6; }
.note { line-height: 1.55; border-left: 3px solid var(--primary); background: var(--bg2); color: var(--text); padding: .8rem .95rem; margin-top: 1.1rem; border-radius: 0 8px 8px 0; }
.note.crisis { font-weight: 600; }
.privacy-line { margin-top: 1.5rem; font-size: .85rem; color: var(--muted); text-align: center; }

.progress-info { display: flex; justify-content: space-between; gap: .6rem; font-size: .88rem; color: var(--muted); margin-bottom: .35rem; }
progress { width: 100%; height: .5rem; accent-color: var(--primary); margin-bottom: 1.2rem; }
.question-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.question-form legend { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin-bottom: .35rem; padding: 0; }
.question-form .context { color: var(--muted); margin-bottom: .75rem; }
.options { display: grid; gap: .5rem; }
.option { display: flex; gap: .65rem; align-items: center; padding: .7rem .85rem; border: 1px solid var(--bd); border-radius: 10px; cursor: pointer; background: var(--bg); line-height: 1.45; }
.option input { accent-color: var(--primary); width: 1.1rem; height: 1.1rem; flex: none; }
.option:hover { border-color: var(--primary); }
.option:has(input:checked) { border-color: var(--primary); background: var(--soft, var(--primarySoft, var(--bg2))); }
.option:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

.question-map { margin-top: 1.2rem; }
.question-map summary { cursor: pointer; font-weight: 700; padding-block: .5rem; }
.jump-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.jump-list button { min-width: 2.5rem; min-height: 2.5rem; border: 1px solid var(--bd); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; cursor: pointer; }
.jump-list button[data-state="answered"] { background: var(--soft, var(--primarySoft, var(--bg2))); }
.jump-list button[data-state="skipped"] { border-style: dashed; }
.jump-list button[aria-current="true"] { border: 2px solid var(--primary); }

/* Auswertung */
.result-list { display: grid; gap: .8rem; margin-top: 1rem; }
.result-block { border: 1px solid var(--bd); border-radius: 12px; padding: 1rem 1.05rem; background: var(--bg); line-height: 1.55; }
.result-block h2 { font-size: 1.2rem; }
.axis-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem; }
.axis-answer { color: var(--primary); font-weight: 700; }
.meter { display: block; width: 100%; height: .6rem; margin: .5rem 0 .6rem; accent-color: var(--primary); }
.result-block .idea { margin-top: .4rem; color: var(--muted); }
.score-totals { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .8rem 0; padding: 0; }
.score-totals li { list-style: none; }
.solutions { margin-top: 1.1rem; }
.solutions summary { cursor: pointer; font-weight: 700; padding-block: .5rem; }
.solutions ol { padding-left: 1.4rem; }
.solutions li { margin-block: .8rem; }
.solutions li > strong { display: block; margin-bottom: .35rem; }
.solution-status { font-weight: 700; color: var(--primary); }
.solution-status.ok { color: var(--text); }

/* Challenge-Finder */
.pick { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .2rem 1rem; border-top: 3px solid var(--primary); background: var(--soft, var(--primarySoft, var(--bg2))); }
.pick-rank { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--primary); min-width: 1.3ch; }
.pick-body { min-width: 0; }
.pick-body .muted { font-size: .9rem; margin-top: .1rem; }
.pick-lang { margin-top: .3rem; font-size: .88rem; font-weight: 700; color: var(--primary); }
.pick-why { margin-top: .55rem; }
.pick-why p { font-size: .88rem; color: var(--muted); }
.pick-why ul { margin: .2rem 0 0; padding-left: 1.1rem; }
.pick-more { margin-top: .55rem; font-weight: 700; }
.app-box { margin-top: 1.1rem; border-radius: 16px; background: var(--grad); color: #fff; padding: 1.3rem 1.25rem; text-align: center; line-height: 1.55; }
.app-box h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.app-box p { opacity: .92; max-width: 36rem; margin-inline: auto; }
.app-box .actions { justify-content: center; margin-top: .9rem; }
.qt .app-box .action { background: #fff; color: var(--primary); }
.qt .app-box .action:hover { background: #fff; transform: translateY(-2px); }
[data-theme="lemon-2"] .qt .app-box .action { color: #111B6E; }
.pick-rest { margin-top: 1.1rem; }
.pick-rest h2 { font-size: 1.05rem; margin-bottom: .3rem; }
.pick-rest ul { padding-left: 1.2rem; line-height: 1.6; }

@media (max-width: 400px) {
  .qt { padding-block: 1.25rem 2rem; }
  .question-form legend { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
