/* ==========================================================================
   Coreflow · Website-Schnellcheck (/website-check/, Marcel 25.10)
   Eine Frage, ein Feld, das Ergebnis direkt darunter. Präfix .wc-. Nur Tokens aus base.css, keine neuen Farben.
   Wertung ohne Ampel: Balken in Textfarbe, nur „Schwach“ bekommt Rot als Akzent (kein Grün außer „Erreichbar“).
   ========================================================================== */

/* Verborgene Zustände bleiben verborgen, auch wenn eine Klasse display setzt (Karten, Raster) */
.sp-page--website-check [hidden] { display: none !important; }

/* ---------------- Kopf + Eingabe ---------------- */
.wc-hero { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(3rem, 2rem + 3vw, 5rem); }
.wc-hero__c { display: grid; justify-items: center; gap: 1.25rem; text-align: center; }
.wc-hero__c .eyebrow { justify-content: center; }
.wc-hero__h { max-width: 14em; font-size: clamp(2.3rem, 1.6rem + 3vw, 4.25rem); line-height: 1.04; letter-spacing: -.036em; }
.wc-hero__c .lead { max-width: 34em; }

.wc-go { display: grid; justify-items: center; gap: .9rem; width: 100%; max-width: 40rem; margin-top: 1rem; }
.wc-go__box { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .45rem .45rem .45rem 1.15rem; border-radius: calc(var(--r-md) + 6px); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); transition: box-shadow var(--t-fast); }
.wc-go__box:hover { box-shadow: inset 0 0 0 1px var(--line-3), var(--shadow-1); }
.wc-go__box:focus-within { box-shadow: inset 0 0 0 1.5px var(--text), var(--shadow-1); }
.wc-go[data-bad] .wc-go__box { box-shadow: inset 0 0 0 1.5px var(--red), var(--shadow-1); }
.wc-go__pre { flex: none; font-weight: 500; color: var(--text-3); }
.wc-go input { flex: 1 1 auto; min-width: 0; height: 3.25rem; padding: 0; border: 0; background: transparent; color: var(--text); font: 600 1.125rem/1.2 var(--font); letter-spacing: -.01em; }
.wc-go input::placeholder { color: var(--text-3); font-weight: 500; }
.wc-go input:focus { outline: none; }
.wc-go .btn { flex: none; }
.wc-go .btn[disabled] { opacity: .6; cursor: progress; }
.wc-go__what { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; font-size: var(--fs-small); color: var(--text-3); }
.wc-go__what li { display: inline-flex; align-items: center; gap: .45rem; }
.wc-go__what svg { width: 1rem; height: 1rem; color: var(--text-2); }

/* Fehler: Symbol + Text, wie im Kontaktformular */
.sp-page--website-check .err { display: none; align-items: flex-start; gap: .45rem; font-size: var(--fs-small); line-height: 1.4; color: var(--text); text-align: left; }
.sp-page--website-check .err svg { width: 1rem; height: 1rem; flex: none; margin-top: .1rem; color: var(--red); }
.wc-go[data-bad] .err, .sp-page--website-check .field[data-bad] .err { display: flex; }

/* ---------------- Prüfung läuft ---------------- */
.wc-out { padding-bottom: var(--sec-y); scroll-margin-top: 6.5rem; }
.wc-run { display: grid; gap: 1rem; max-width: 30rem; margin-inline: auto; padding: 1.5rem 1.75rem; }
.wc-run li { display: flex; align-items: center; gap: .85rem; color: var(--text-3); transition: color var(--t-mid); }
.wc-run__i { position: relative; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-3); }
.wc-run li.is-on { color: var(--text); }
.wc-run li.is-on .wc-run__i { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.wc-run li.is-on .wc-run__i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--text); animation: wc-spin .8s linear infinite; }
.wc-run li.is-done { color: var(--text-2); }
.wc-run li.is-done .wc-run__i { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.wc-run li.is-done .wc-run__i::after { content: ""; position: absolute; left: .42rem; top: .28rem; width: .3rem; height: .55rem; border: solid var(--text); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
@keyframes wc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wc-run li.is-on .wc-run__i::after { animation: none; border-color: var(--text-3); } }

.wc-fail { display: grid; gap: .6rem; max-width: 34rem; margin-inline: auto; padding: 1.5rem 1.75rem; color: var(--text-2); }
.wc-fail .h3 { color: var(--text); }

/* ---------------- Ergebnis ---------------- */
.wc-res { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.wc-res__head { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.wc-res__head .eyebrow { justify-content: center; }
.wc-res__h { overflow-wrap: anywhere; }
.wc-res__h:focus { outline: none; }
.wc-res__head .lead { max-width: 38em; }
.wc-demo { font-size: var(--fs-small); color: var(--text-3); }

.wc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.wc-card { display: grid; align-content: start; gap: .9rem; padding: 1.4rem 1.5rem 1.5rem; }
.wc-card__top { display: flex; align-items: center; gap: .7rem; }
.wc-card__ic { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm); background: var(--surface-3); box-shadow: var(--ring); color: var(--text-2); }
.wc-card__ic svg { width: 1.05rem; height: 1.05rem; }
.wc-card__t { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.wc-card__v { margin-left: auto; padding: .2rem .6rem; border-radius: var(--r-xs); font-size: var(--fs-meta); font-weight: 600; color: var(--text-2); background: var(--surface-3); box-shadow: var(--ring); }
.wc-card[data-level="schwach"] .wc-card__v { color: var(--red-text); }
.wc-card__n { display: flex; align-items: baseline; gap: .55rem; }
.wc-card__n b { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.wc-card__n small { font-size: var(--fs-small); color: var(--text-3); }
.wc-bar { display: block; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.wc-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--text-2); transition: width var(--t-slow) var(--ease); }
.wc-card[data-level="schwach"] .wc-bar i { background: var(--red); }
.wc-card__x { font-size: var(--fs-small); line-height: 1.55; color: var(--text-2); }

.wc-next { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem; align-items: stretch; }
.wc-mail { padding: clamp(1.4rem, 1rem + 1.2vw, 2rem); }
.wc-mail > div { display: grid; gap: 1rem; align-content: start; }
.wc-mail__done:focus { outline: none; }
.wc-mail__done p:not(.eyebrow):not(.ph-tag) { color: var(--text-2); }
.wc-mail__done b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.wc-mail__done .ph-tag { justify-self: start; }
.wc-mail__list { display: grid; gap: .45rem; color: var(--text-2); }
.wc-mail__list li { position: relative; padding-left: 1.4rem; }
.wc-mail__list li::before { content: ""; position: absolute; left: .1rem; top: .5rem; width: .55rem; height: .3rem; border: solid var(--red-text); border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }
.sp-page--website-check .field { display: grid; gap: .45rem; min-width: 0; }
.sp-page--website-check .field label { font-size: var(--fs-small); font-weight: 600; color: var(--text-2); }
.wc-mail__row { display: flex; gap: .6rem; }
.wc-mail__row input { -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; min-height: 3.25rem; padding: .8rem 1rem; border: 0; border-radius: var(--r-md); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font: 500 1rem/1.4 var(--font); transition: box-shadow var(--t-fast); }
.wc-mail__row input:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.wc-mail__row input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--text); }
.sp-page--website-check .field[data-bad] input { box-shadow: inset 0 0 0 1.5px var(--red); }
.wc-mail__row .btn { flex: none; }

/* Freiwilliges Häkchen: dieselbe Box wie die Auswahl im Kontaktformular */
.wc-ok { position: relative; display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); }
.wc-ok input { position: absolute; opacity: 0; width: 1.4rem; height: 1.4rem; margin: 0; cursor: pointer; }
.wc-ok__box { display: grid; place-items: center; flex: none; width: 1.4rem; height: 1.4rem; border-radius: 6px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-3); color: transparent; transition: background var(--t-fast), color var(--t-fast); }
.wc-ok__box svg { width: .8rem; height: .8rem; }
.wc-ok input:checked + .wc-ok__box { background: var(--red); color: var(--on-red); box-shadow: none; }
.wc-ok input:focus-visible + .wc-ok__box { outline: 2px solid var(--text); outline-offset: 3px; }
.wc-ok em { font-style: normal; color: var(--text-3); margin-left: .2rem; }
.wc-mail__privacy { font-size: var(--fs-meta); line-height: 1.55; color: var(--text-3); }
.wc-mail__privacy .tlink { padding-block: .1rem; font-size: inherit; color: var(--text-2); }

.wc-talk { display: grid; align-content: start; justify-items: start; gap: .9rem; padding: clamp(1.4rem, 1rem + 1.2vw, 2rem); }
.wc-talk img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; box-shadow: var(--ring-2); }
.wc-talk p:not(.eyebrow) { color: var(--text-2); }
.wc-talk .btn { margin-top: .4rem; }

.wc-again { display: flex; justify-content: center; }

@media (max-width: 1023px) {
  .wc-cards { grid-template-columns: 1fr; }
  .wc-next { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .wc-go__box { flex-wrap: wrap; padding: .45rem; }
  .wc-go__pre { display: none; }
  .wc-go input { flex-basis: 100%; height: 3.25rem; padding-inline: .75rem; }
  .wc-go .btn { flex: 1 1 100%; justify-content: space-between; }
  .wc-mail__row { flex-direction: column; }
  .wc-mail__row .btn { justify-content: space-between; }
  .wc-card { padding: 1.2rem 1.25rem 1.3rem; }
}
