/* Backup-Qualitätscheck — Tool-spezifisches CSS auf SverreTEC-Brand. */

/* Intro-Card */
.intro-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 20px;
}
.intro-card h1 {
  font-size: 22px; font-weight: 600; color: var(--anthra); margin-bottom: 8px;
}
.intro-card p {
  color: var(--ink2); font-size: 15px; line-height: 1.6;
}

/* Rule-Pillen (3-2-1-1-0) */
.rule-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.rule-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 9999px;
  font-size: 12px; font-weight: 600; border: 1px solid;
}
.pill-3  { background: #E6F1FB; color: #185fa5; border-color: #B5D4F4; }
.pill-2  { background: #E1F5EE; color: #0F6E56; border-color: #9FE1CB; }
.pill-1a { background: #FAEEDA; color: #854F0B; border-color: #FAC775; }
.pill-1b { background: #FFE4DA; color: #B85C00; border-color: #FCC4A0; }
.pill-0  { background: #EAF3DE; color: #3B6D11; border-color: #C0DD97; }

.intro-meta { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.intro-meta .badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink2);
}
.intro-meta .badge svg {
  width: 16px; height: 16px;
  stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* Progress */
.progress-bar-wrap {
  background: var(--mutedbg); border-radius: 9999px; height: 6px;
  margin-bottom: 8px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: var(--brand); border-radius: 9999px;
  transition: width 0.4s ease;
}
.progress-label {
  font-size: 12px; color: var(--ink3); margin-bottom: 20px;
  display: flex; justify-content: space-between;
}

/* Question Card */
.question-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 16px;
  display: none;
  animation: fadeIn 0.25s ease;
}
.question-card.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question-number {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--brand); margin-bottom: 8px;
}
.question-text {
  font-size: 17px; font-weight: 600; line-height: 1.45; margin-bottom: 6px;
}
.question-hint {
  font-size: 13px; color: var(--ink2); margin-bottom: 18px; line-height: 1.55;
}

.rule-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 9999px;
  margin-left: 6px; vertical-align: middle; position: relative; top: -1px;
}

/* Options */
.options { display: flex; flex-direction: column; gap: 8px; }
.option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.option:hover { border-color: var(--brand); background: var(--brand-tint); }
.option.selected { border-color: var(--brand); background: var(--brand-tint); }
.option input[type="radio"] {
  margin-top: 2px; accent-color: var(--brand); flex-shrink: 0;
}
.option-label {
  font-size: 14px; line-height: 1.45; color: var(--ink);
}
.option-label small {
  display: block; font-size: 12px; color: var(--ink3); margin-top: 2px;
}

/* Nav */
.nav-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }

button.btn {
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: 1.5px solid transparent; transition: background 0.15s, border-color 0.15s, transform 0.1s;
  font-family: inherit;
}
button.btn:active { transform: scale(0.98); }
button.btn-primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
button.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
button.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
button.btn-ghost {
  background: transparent; color: var(--ink2); border-color: var(--line);
}
button.btn-ghost:hover { background: var(--mutedbg); color: var(--ink); }

/* Results */
#results { display: none; }
#results.visible { display: block; }

.score-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: 28px; margin-bottom: 18px; text-align: center;
}
.score-badge {
  display: inline-block; border-radius: 9999px; padding: 6px 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 14px;
}
.score-number { font-size: 50px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.score-subtitle { font-size: 13px; color: var(--ink3); margin-bottom: 18px; }
.score-label { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.score-desc {
  font-size: 14px; color: var(--ink2); line-height: 1.6;
  max-width: 540px; margin: 0 auto;
}

.gauge-wrap { display: flex; justify-content: center; margin: 6px 0 18px; }
.gauge-track {
  width: 240px; height: 10px;
  background: var(--mutedbg); border-radius: 9999px; overflow: hidden;
}
.gauge-fill {
  height: 100%; border-radius: 9999px; transition: width 1s ease;
}

/* Tipps */
.tips-section {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: 24px; margin-bottom: 18px;
}
.tips-section h2 {
  font-size: 16px; font-weight: 600; margin-bottom: 14px; color: var(--anthra);
}

.tip-item {
  display: flex; gap: 14px; padding: 14px;
  border-radius: var(--radius); margin-bottom: 10px;
  align-items: flex-start;
}
.tip-item:last-child { margin-bottom: 0; }
.tip-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tip-icon svg {
  width: 16px; height: 16px;
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tip-body h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tip-body p { font-size: 13px; color: var(--ink2); line-height: 1.55; }

.tip-critical { background: #FCEBEB; }
.tip-critical .tip-icon { background: #F7C1C1; }
.tip-critical .tip-icon svg { stroke: var(--danger); }
.tip-critical .tip-body h3 { color: var(--danger); }

.tip-warning { background: #FAEEDA; }
.tip-warning .tip-icon { background: #FDE9BC; }
.tip-warning .tip-icon svg { stroke: #A0620A; }
.tip-warning .tip-body h3 { color: #A0620A; }

.tip-info { background: var(--brand-tint); }
.tip-info .tip-icon { background: #F5C4B3; }
.tip-info .tip-icon svg { stroke: var(--brand-active); }
.tip-info .tip-body h3 { color: var(--brand-active); }

.tip-ok { background: #EAF3DE; }
.tip-ok .tip-icon { background: #C0DD97; }
.tip-ok .tip-icon svg { stroke: var(--success); }
.tip-ok .tip-body h3 { color: var(--success); }

/* Checkliste */
.checklist-section {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: 24px; margin-bottom: 18px;
}
.checklist-section h2 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }

.check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.check-row:last-child { border-bottom: none; }
.check-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-good { background: var(--success); }
.dot-warn { background: var(--warning); }
.dot-bad  { background: var(--danger); }
.check-score {
  margin-left: auto; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 9999px;
}

/* CTA */
.cta-card {
  background: var(--brand); color: #fff;
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
}
.cta-card h2 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.cta-card p { font-size: 14px; opacity: 0.92; margin-bottom: 18px; line-height: 1.55; }
.cta-card a.btn-cta {
  display: inline-block; background: #fff; color: var(--brand-active);
  padding: 11px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: opacity 0.15s;
}
.cta-card a.btn-cta:hover { opacity: 0.9; }

.restart-row { text-align: center; margin-top: 14px; }
.restart-btn {
  background: none; border: none; color: var(--ink3); cursor: pointer;
  font-size: 13px; text-decoration: underline; padding: 6px;
  font-family: inherit;
}

/* Artikel */
.article-section {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  margin-bottom: 18px; overflow: hidden;
}

.article-variant { padding: 18px 24px; border-left: 4px solid; }
.article-variant.var-a { background: #FCEBEB; border-color: var(--danger); }
.article-variant.var-b { background: #FAEEDA; border-color: #A0620A; }
.article-variant.var-c { background: #EAF3DE; border-color: var(--success); }
.article-variant p { font-size: 14px; line-height: 1.6; }
.article-variant.var-a p { color: #7A1A1A; }
.article-variant.var-b p { color: #6B3D06; }
.article-variant.var-c p { color: #1A4D28; }

.article-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.article-variant.var-a .article-title { color: var(--danger); }
.article-variant.var-b .article-title { color: #A0620A; }
.article-variant.var-c .article-title { color: var(--success); }

.article-divider { height: 1px; background: var(--line); margin: 0; }
.article-header { padding: 22px 24px 4px; }
.article-header h2 {
  font-size: 18px; font-weight: 600; color: var(--anthra); line-height: 1.35;
}

.article-body { padding: 0 24px 24px; }
.article-body h3 {
  font-size: 15px; font-weight: 600; color: var(--anthra);
  margin: 22px 0 8px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.article-body h3:first-child { margin-top: 16px; border-top: none; padding-top: 0; }
.article-body p {
  font-size: 14px; line-height: 1.7; color: var(--ink); margin-bottom: 12px;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 12px; }
.article-body li {
  font-size: 14px; line-height: 1.65; color: var(--ink); margin-bottom: 6px;
}
.article-body li:last-child { margin-bottom: 0; }
.article-body li strong { font-weight: 600; }

.article-body .highlight-box {
  background: var(--brand-tint);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px; margin: 14px 0;
}
.article-body .highlight-box p {
  margin: 0; color: var(--brand-active); font-size: 13px;
}

.article-questions {
  background: var(--surface); border-radius: var(--radius);
  padding: 14px 18px; margin-top: 12px;
}
.article-questions ol { margin: 0; padding-left: 18px; }
.article-questions li {
  font-size: 13px; line-height: 1.6; color: var(--ink); margin-bottom: 6px;
}
.article-questions li:last-child { margin-bottom: 0; }

/* 3-2-1-1-0 Kern-Säulen-Status */
.core-status-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: 20px 24px; margin-bottom: 18px;
}
.cs-head { font-size: 14px; color: var(--ink2); margin-bottom: 12px; }
.cs-head strong { color: var(--anthra); }
.cs-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 9999px;
  font-size: 13px; font-weight: 500; border: 1px solid;
}
.cs-sym { font-weight: 700; }
.cs-st { font-size: 11px; opacity: 0.75; }
.cs-ok   { background: #E1F5EE; color: #0F6E56; border-color: #9FE1CB; }
.cs-part { background: #FAEEDA; color: #854F0B; border-color: #FAC775; }
.cs-open { background: #FCEBEB; color: #A32D2D; border-color: #F2BCBC; }

@media (max-width: 500px) {
  main.site-main { padding: 16px 14px; }
  .intro-card, .question-card, .score-card, .tips-section, .checklist-section, .cta-card { padding: 18px; }
  .core-status-card { padding: 18px; }
  .score-number { font-size: 42px; }
}
</style>
