/* elumcraft Website-Check – Styles (Präfix ec-wsc-, passt sich an das Dark-Theme der Website an) */
.ec-wsc {
    --ec-wsc-good: #34d399;
    --ec-wsc-warn: #fbbf24;
    --ec-wsc-bad: #f87171;
    --ec-wsc-info: #93c5fd;
    --ec-wsc-surface: var(--surface, rgba(255, 255, 255, 0.03));
    --ec-wsc-border: var(--border, rgba(255, 255, 255, 0.08));
    --ec-wsc-accent: var(--accent-blue, #2563eb);
}

.ec-wsc [hidden] { display: none !important; }

/* Icons, die im (per PurgeCSS gekürzten) Haupt-Bundle fehlen. Die Schrift enthält alle Glyphen. */
.ec-wsc .bi-eye-slash::before { content: "\f340"; }
.ec-wsc .bi-check-circle-fill::before { content: "\f26a"; }
.ec-wsc .bi-exclamation-circle-fill::before { content: "\f332"; }
.ec-wsc .bi-x-circle-fill::before { content: "\f622"; }
.ec-wsc .bi-info-circle-fill::before { content: "\f430"; }
.ec-wsc .bi-lightbulb::before { content: "\f46b"; }
.ec-wsc-lead { max-width: 720px; }

/* Eingabe */
.ec-wsc-form { max-width: 680px; }
.ec-wsc-input-row {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid #334155;
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.18);
}
.ec-wsc-input-row:focus-within { border-color: var(--ec-wsc-accent); }
.ec-wsc-input-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 1.1rem; }
.ec-wsc .ec-wsc-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    padding-left: 44px;
    font-size: 1.05rem;
    box-shadow: none !important;
}
.ec-wsc-submit { flex: 0 0 auto; border-radius: 12px !important; padding: 12px 22px !important; white-space: nowrap; }
.ec-wsc-error { color: var(--ec-wsc-bad); font-weight: 600; }

.ec-wsc-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--ec-wsc-border);
    border-radius: 999px;
    background: var(--ec-wsc-surface);
    color: var(--text-muted, #cbd5e1);
    font-size: 0.875rem;
}

@media (max-width: 575.98px) {
    .ec-wsc-input-row { flex-direction: column; padding: 10px; }
    .ec-wsc-input-icon { top: 32px; }
    .ec-wsc-submit { width: 100%; }
}

/* Fortschritt */
.ec-wsc-progress-wrap { padding: 8px 0 56px; }
.ec-wsc-progress {
    max-width: 520px;
    padding: 32px;
    border: 1px solid var(--ec-wsc-border);
    border-radius: 20px;
    background: var(--ec-wsc-surface);
    text-align: center;
}
.ec-wsc-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--ec-wsc-accent);
    border-radius: 50%;
    animation: ec-wsc-spin 0.9s linear infinite;
}
@keyframes ec-wsc-spin { to { transform: rotate(360deg); } }
.ec-wsc-steps { text-align: left; display: inline-block; }
.ec-wsc-steps li { position: relative; padding: 4px 0 4px 28px; color: #64748b; transition: color 0.3s; }
.ec-wsc-steps li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #334155; }
.ec-wsc-steps li.is-active { color: #fff; }
.ec-wsc-steps li.is-active::before { background: var(--ec-wsc-accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25); }
.ec-wsc-steps li.is-done { color: var(--text-muted, #cbd5e1); }
.ec-wsc-steps li.is-done::before { background: var(--ec-wsc-good); }

@media (prefers-reduced-motion: reduce) {
    .ec-wsc-spinner { animation-duration: 3s; }
}

/* Zusammenfassung */
.ec-wsc-summary {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 32px;
    border: 1px solid var(--ec-wsc-border);
    border-radius: 24px;
    background: var(--ec-wsc-surface);
}
.ec-wsc-score {
    --ec-wsc-score: 0;
    --ec-wsc-color: var(--ec-wsc-info);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    align-content: center;
    width: 156px;
    height: 156px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, #0f172a 80%, transparent 81%),
        conic-gradient(var(--ec-wsc-color) calc(var(--ec-wsc-score) * 1%), rgba(255, 255, 255, 0.08) 0);
}
.ec-wsc-score.is-good { --ec-wsc-color: var(--ec-wsc-good); }
.ec-wsc-score.is-warn { --ec-wsc-color: var(--ec-wsc-warn); }
.ec-wsc-score.is-bad { --ec-wsc-color: var(--ec-wsc-bad); }
.ec-wsc-score-value { font-size: 3rem; font-weight: 800; line-height: 1; color: #fff; }
.ec-wsc-score-max { color: #94a3b8; font-size: 0.9rem; }
.ec-wsc-summary-text { min-width: 0; }
.ec-wsc-summary-text h2:focus { outline: none; }
.ec-wsc-url-line { overflow-wrap: anywhere; }
.ec-wsc-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-wsc-count { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); font-size: 0.9rem; }
.ec-wsc-count.is-good i { color: var(--ec-wsc-good); }
.ec-wsc-count.is-warn i { color: var(--ec-wsc-warn); }
.ec-wsc-count.is-bad i { color: var(--ec-wsc-bad); }

@media (max-width: 767.98px) {
    .ec-wsc-summary { flex-direction: column; text-align: center; padding: 24px; }
    .ec-wsc-counts { justify-content: center; }
}

/* Kategorien */
.ec-wsc-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.ec-wsc-cat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--ec-wsc-border);
    border-radius: 16px;
    background: var(--ec-wsc-surface);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.ec-wsc-cat:hover, .ec-wsc-cat:focus-visible { border-color: var(--ec-wsc-accent); transform: translateY(-2px); color: #fff; }
.ec-wsc-cat-head { display: flex; align-items: center; gap: 8px; color: var(--text-muted, #cbd5e1); font-size: 0.9rem; }
.ec-wsc-cat-score { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.ec-wsc-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ec-wsc-bar-fill { --ec-wsc-w: 0%; display: block; height: 100%; width: var(--ec-wsc-w); border-radius: 3px; background: var(--ec-wsc-info); transition: width 0.8s ease; }
.ec-wsc-cat.is-good .ec-wsc-bar-fill { background: var(--ec-wsc-good); }
.ec-wsc-cat.is-warn .ec-wsc-bar-fill { background: var(--ec-wsc-warn); }
.ec-wsc-cat.is-bad .ec-wsc-bar-fill { background: var(--ec-wsc-bad); }

@media (max-width: 991.98px) { .ec-wsc-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ec-wsc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Wichtigste Baustellen */
.ec-wsc-top { margin-top: 40px; }
.ec-wsc-top-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ec-wsc-top-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--ec-wsc-border);
    border-left: 4px solid var(--ec-wsc-warn);
    border-radius: 12px;
    background: var(--ec-wsc-surface);
}
.ec-wsc-top-item.is-bad { border-left-color: var(--ec-wsc-bad); }
.ec-wsc-top-item > i { grid-row: span 2; margin-top: 2px; }
.ec-wsc-top-item.is-bad > i { color: var(--ec-wsc-bad); }
.ec-wsc-top-item.is-warn > i { color: var(--ec-wsc-warn); }
.ec-wsc-top-tip { color: var(--text-muted, #cbd5e1); }

/* Details */
.ec-wsc-detail { margin-bottom: 12px; border: 1px solid var(--ec-wsc-border); border-radius: 16px; background: var(--ec-wsc-surface); overflow: hidden; }
.ec-wsc-detail > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}
.ec-wsc-detail > summary::-webkit-details-marker { display: none; }
.ec-wsc-detail > summary::after { content: "\F282"; font-family: "bootstrap-icons"; margin-left: 8px; transition: transform 0.2s; color: #94a3b8; }
.ec-wsc-detail[open] > summary::after { transform: rotate(180deg); }
.ec-wsc-detail-title { flex: 1 1 auto; }
.ec-wsc-detail-score { font-size: 0.9rem; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.ec-wsc-detail-score.is-good { color: var(--ec-wsc-good); }
.ec-wsc-detail-score.is-warn { color: var(--ec-wsc-warn); }
.ec-wsc-detail-score.is-bad { color: var(--ec-wsc-bad); }
.ec-wsc-checks { border-top: 1px solid var(--ec-wsc-border); }
.ec-wsc-check { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--ec-wsc-border); }
.ec-wsc-check:last-child { border-bottom: 0; }
.ec-wsc-check-status { flex: 0 0 auto; font-size: 1.15rem; line-height: 1.4; }
.ec-wsc-check.is-good .ec-wsc-check-status { color: var(--ec-wsc-good); }
.ec-wsc-check.is-warn .ec-wsc-check-status { color: var(--ec-wsc-warn); }
.ec-wsc-check.is-bad .ec-wsc-check-status { color: var(--ec-wsc-bad); }
.ec-wsc-check.is-info .ec-wsc-check-status { color: var(--ec-wsc-info); }
.ec-wsc-check-body { min-width: 0; }
.ec-wsc-check-title { display: block; color: #fff; }
.ec-wsc-check-detail { margin: 2px 0 0; color: var(--text-muted, #cbd5e1); overflow-wrap: anywhere; }
.ec-wsc-check-tip { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(37, 99, 235, 0.1); color: #dbeafe; font-size: 0.95rem; }
.ec-wsc-check-tip i { color: var(--ec-wsc-warn); }

/* Anfrage */
.ec-wsc-cta {
    padding: 32px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.08));
}
.ec-wsc-lead-msg { font-weight: 600; }
.ec-wsc-lead-msg.is-ok { color: var(--ec-wsc-good); }
.ec-wsc-lead-msg.is-error { color: var(--ec-wsc-bad); }
@media (max-width: 575.98px) { .ec-wsc-cta { padding: 20px; } }

/* FAQ */
.ec-wsc-faq { max-width: 820px; }
.ec-wsc-faq-item { border-bottom: 1px solid var(--ec-wsc-border); padding: 4px 0; }
.ec-wsc-faq-item > summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ec-wsc-faq-item > summary::-webkit-details-marker { display: none; }
.ec-wsc-faq-item > summary::after { content: "\F64D"; font-family: "bootstrap-icons"; color: var(--ec-wsc-accent); transition: transform 0.2s; }
.ec-wsc-faq-item[open] > summary::after { transform: rotate(45deg); }
.ec-wsc-faq-item > p { padding-bottom: 14px; }

/* Freischaltung der Maßnahmen */
.ec-wsc .bi-lock-fill::before { content: "\f47a"; }
.ec-wsc .bi-unlock::before { content: "\f600"; }
.ec-wsc-gate {
    position: relative;
    padding: 32px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.08));
}
.ec-wsc-gate h3:focus, .ec-wsc-top h3:focus { outline: none; }
.ec-wsc-gate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.12);
    color: var(--ec-wsc-warn);
    font-size: 0.85rem;
    font-weight: 600;
}
.ec-wsc-gate-preview { display: grid; gap: 10px; margin-bottom: 28px; filter: blur(3px); opacity: 0.55; user-select: none; }
.ec-wsc-gate-line {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
    border: 1px solid var(--ec-wsc-border);
    border-left: 4px solid var(--ec-wsc-warn);
    border-radius: 12px;
    background: var(--ec-wsc-surface);
}
.ec-wsc-gate-line.is-bad { border-left-color: var(--ec-wsc-bad); }
.ec-wsc-gate-line span { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.22); }
.ec-wsc-gate-line span:first-child { width: 45%; height: 12px; background: rgba(255, 255, 255, 0.4); }
.ec-wsc-gate-line span:last-child { width: 85%; }
@media (max-width: 575.98px) { .ec-wsc-gate { padding: 20px; } }

/* Teaser auf der Startseite */
.ec-wsc-teaser-box {
    max-width: 860px;
    padding: 48px 32px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 28px;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18), transparent 65%), var(--ec-wsc-surface);
}
@media (max-width: 575.98px) { .ec-wsc-teaser-box { padding: 32px 18px; } }

/* Hinweis-Block in Guides (im Stil des CTA-Banners) */
.ec-wsc-article .ec-wsc-form { max-width: none; }
.ec-wsc-article .ec-wsc-input { font-size: 1rem; }
.ec-wsc-article .ec-wsc-article-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
