/* =========================================================
   Web500 — gratis websitecheck
   Bouwt verder op styles.css (kleuren, knoppen, formulier).
   ========================================================= */

:root {
  --goed: #15803d;
  --goed-soft: #e8f6ed;
  --matig: #b45309;
  --matig-soft: #fdf3e2;
  --slecht: #b91c1c;
  --slecht-soft: #fdecec;
  --info-soft: #eeeef0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --goed: #4ade80;
    --goed-soft: #11251a;
    --matig: #fbbf24;
    --matig-soft: #2a2111;
    --slecht: #f87171;
    --slecht-soft: #2c1616;
    --info-soft: #22242b;
  }
}

:root[data-theme="dark"] {
  --goed: #4ade80;
  --goed-soft: #11251a;
  --matig: #fbbf24;
  --matig-soft: #2a2111;
  --slecht: #f87171;
  --slecht-soft: #2c1616;
  --info-soft: #22242b;
}

/* ---------- Invoer ---------- */

.check-hero .container { text-align: left; }
.check-hero .lead { max-width: 62ch; }

.check-form {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.check-input {
  display: flex;
  gap: 10px;
}
.check-input input { flex: 1; min-width: 0; font-size: 1.06rem; }
.check-input .btn { flex: none; }
.check-hint {
  margin: 12px 0 0;
  font-size: .86rem;
  color: var(--ink-faint);
}
.check-hint.is-error { color: var(--slecht); font-weight: 600; }

@media (max-width: 620px) {
  .check-input { flex-direction: column; }
  .check-input .btn { width: 100%; }
  .check-form { padding: 18px; }
}

/* ---------- Rapport ---------- */

.check-resultaat { padding-top: 0; }

.check-laden {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.check-spinner {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: check-draai .8s linear infinite;
}
@keyframes check-draai { to { transform: rotate(360deg); } }

.check-fout {
  padding: 22px 24px;
  background: var(--slecht-soft);
  border: 1px solid color-mix(in srgb, var(--slecht) 35%, transparent);
  border-radius: var(--radius);
  color: var(--ink);
}
.check-fout p { margin: 0; }

.check-kop {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.check-score {
  --kleur: var(--goed);
  --p: 0;
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: conic-gradient(var(--kleur) calc(var(--p) * 1%), var(--line) 0);
  display: grid;
  place-items: center;
}
.check-score::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--surface);
}
.check-score span {
  position: relative;
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
}
.check-score small {
  display: block;
  font-family: var(--font-sans);
  font-size: .78rem;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 2px;
}
.check-score.is-matig { --kleur: var(--matig); }
.check-score.is-slecht { --kleur: var(--slecht); }
.check-score.is-onbekend { --kleur: var(--ink-faint); }

.check-kop h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 .35em;
}
.check-kop h2:focus { outline: none; }
.check-kop p { margin: 0; color: var(--ink-soft); }
.check-adres {
  margin-top: 8px !important;
  font-size: .9rem;
  word-break: break-all;
}
.check-teller {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px !important;
}

.check-lijst {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-faint);
  border-radius: var(--radius-sm);
}
.check-item.is-goed { border-left-color: var(--goed); }
.check-item.is-matig { border-left-color: var(--matig); }
.check-item.is-slecht { border-left-color: var(--slecht); }

.check-item-kop {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.check-item-kop strong { font-size: 1.02rem; }
.check-waarde {
  font-size: .88rem;
  color: var(--ink-faint);
  overflow-wrap: anywhere;
}
.check-item p {
  grid-column: 2;
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.check-icoon {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  background: var(--info-soft);
  color: var(--ink-soft);
}
.is-goed .check-icoon { background: var(--goed-soft); color: var(--goed); }
.is-matig .check-icoon { background: var(--matig-soft); color: var(--matig); }
.is-slecht .check-icoon { background: var(--slecht-soft); color: var(--slecht); }

.check-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--info-soft);
  color: var(--ink-soft);
}
.check-label.is-goed { background: var(--goed-soft); color: var(--goed); }
.check-label.is-matig { background: var(--matig-soft); color: var(--matig); }
.check-label.is-slecht { background: var(--slecht-soft); color: var(--slecht); }

.check-noot {
  margin: 16px 0 0;
  font-size: .86rem;
  color: var(--ink-faint);
}

@media (max-width: 620px) {
  .check-kop { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 18px; }
  .check-teller { justify-content: center; }
  .check-item { padding: 14px; gap: 4px 12px; }
}

/* ---------- Aanvraag ---------- */

.check-lead { margin-top: 44px; }
.check-lead h2 { margin-bottom: .3em; }
.check-lead .section-sub { margin-bottom: 22px; }
.optioneel { font-weight: 400; color: var(--ink-faint); }

/* ---------- Wat we nakijken ---------- */

.check-uitleg {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.check-uitleg li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.check-uitleg strong { display: block; margin-bottom: 4px; }
.check-uitleg span { font-size: .93rem; color: var(--ink-soft); }
.check-eerlijk {
  margin: 28px 0 0;
  max-width: 68ch;
  color: var(--ink-soft);
}
