/* ==========================================================================
   Website-Check: alle Farben/Maße als Variablen. Zum Anpassen nur :root ändern
   (oder in der einbettenden Seite überschreiben). Keine externen Ressourcen.
   ========================================================================== */
:root {
    --wc-navy:    #0F2438;
    --wc-navy-2:  #1A3A5A;
    --wc-accent:  #1FB58F;
    --wc-accent-ink: #062A20;     /* Text auf Akzentfarbe */
    --wc-good:    #1E9E68;
    --wc-warn:    #D99A06;
    --wc-bad:     #D64035;
    --wc-info:    #3478C6;

    --wc-bg:      #F5F7FA;
    --wc-surface: #FFFFFF;
    --wc-text:    #172233;
    --wc-muted:   #5A6677;
    --wc-line:    #E2E7EE;

    --wc-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --wc-display: var(--wc-font);
    --wc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --wc-radius: 14px;
    --wc-radius-lg: 22px;
    --wc-shadow: 0 6px 24px rgba(15, 36, 56, .08), 0 2px 6px rgba(15, 36, 56, .05);
    --wc-max: 1080px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --wc-bg: #0A111D; --wc-surface: #111B2C; --wc-text: #DCE3EE; --wc-muted: #9AA7BA;
        --wc-line: rgba(255, 255, 255, .1); --wc-shadow: 0 8px 28px rgba(0, 0, 0, .4);
    }
}

.wc-page { background: var(--wc-bg); color: var(--wc-text); font-family: var(--wc-font); }
.wc-page *, .wc-page *::before, .wc-page *::after { box-sizing: border-box; }
.wc-wrap { width: 100%; max-width: var(--wc-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wc-wrap { padding: 0 24px; } }
.wc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wc-page :focus-visible { outline: 3px solid var(--wc-accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Hero ---------- */
.wc-hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, .08), transparent 60%),
                linear-gradient(160deg, var(--wc-navy) 0%, var(--wc-navy-2) 100%);
    padding: 132px 0 72px;
}
.wc-hero::after {
    content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--wc-accent) 35%, transparent), transparent 70%);
    pointer-events: none;
}
.wc-hero-inner { position: relative; z-index: 1; max-width: 780px; }
.wc-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
    font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.wc-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wc-accent); }
.wc-hero h1 {
    margin: 0 0 16px; font-family: var(--wc-display); font-weight: 600; color: #fff;
    font-size: clamp(34px, 6vw, 60px); line-height: 1.06; letter-spacing: -.02em;
}
.wc-hero h1 em { font-style: italic; color: var(--wc-accent); }
.wc-lead { margin: 0 0 28px; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, .82); max-width: 640px; }

.wc-form { display: flex; gap: 10px; flex-wrap: wrap; background: #fff; padding: 8px; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.wc-form input {
    flex: 1 1 220px; min-width: 0; border: 0; background: transparent; color: #172233;
    font: inherit; font-size: 18px; padding: 14px 14px; border-radius: 12px;
}
.wc-form input::placeholder { color: #7B8696; }
.wc-form input:focus { outline: none; }
.wc-form:focus-within { box-shadow: 0 0 0 3px var(--wc-accent), 0 20px 60px rgba(0, 0, 0, .25); }
.wc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    border: 1px solid transparent; border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 600; font-size: 15px;
    text-decoration: none; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.wc-btn:hover { transform: translateY(-1px); }
.wc-btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.wc-btn-primary { background: var(--wc-accent); color: var(--wc-accent-ink); }
.wc-btn-primary:hover { background: color-mix(in srgb, var(--wc-accent) 88%, #fff); }
.wc-form .wc-btn-primary { flex: 0 0 auto; padding: 14px 26px; font-size: 17px; }
.wc-btn-ghost { background: var(--wc-surface); color: var(--wc-text); border-color: var(--wc-line); }
.wc-btn-ghost:hover { border-color: var(--wc-muted); }
.wc-btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.wc-btn-light:hover { border-color: #fff; }
.wc-btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 480px) { .wc-form .wc-btn-primary { flex: 1 1 100%; } }

.wc-error {
    margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 1.5;
    background: color-mix(in srgb, var(--wc-bad) 22%, var(--wc-navy)); border: 1px solid color-mix(in srgb, var(--wc-bad) 60%, transparent); color: #fff;
}
.wc-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .78); }
.wc-trust li { display: inline-flex; align-items: center; gap: 8px; }
.wc-trust svg { width: 16px; height: 16px; color: var(--wc-accent); flex: none; }

/* ---------- Abschnitte ---------- */
.wc-section { padding: 64px 0; }
.wc-section h2 { margin: 0 0 8px; font-family: var(--wc-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.015em; line-height: 1.15; color: var(--wc-text); }
.wc-sub { margin: 0 0 28px; color: var(--wc-muted); font-size: 17px; line-height: 1.55; max-width: 660px; }

.wc-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; padding: 0; list-style: none; }
.wc-card { background: var(--wc-surface); border: 1px solid var(--wc-line); border-radius: var(--wc-radius); padding: 22px; box-shadow: var(--wc-shadow); }
.wc-card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
    background: color-mix(in srgb, var(--wc-accent) 16%, transparent); color: var(--wc-accent); }
.wc-card-icon svg { width: 22px; height: 22px; }
.wc-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--wc-text); }
.wc-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--wc-muted); }

/* ---------- Ladezustand ---------- */
.wc-loading { padding: 56px 0 72px; }
.wc-loading-box { max-width: 520px; margin: 0 auto; text-align: center; background: var(--wc-surface); border: 1px solid var(--wc-line); border-radius: var(--wc-radius-lg); padding: 36px 24px; box-shadow: var(--wc-shadow); }
.wc-spinner { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; border: 5px solid var(--wc-line); border-top-color: var(--wc-accent); animation: wc-spin .9s linear infinite; }
@keyframes wc-spin { to { transform: rotate(360deg); } }
.wc-loading-title { margin: 0 0 18px; font-size: 19px; font-weight: 650; color: var(--wc-text); overflow-wrap: anywhere; }
.wc-steps { list-style: none; margin: 0 auto; padding: 0; display: inline-grid; gap: 10px; text-align: left; }
.wc-steps li { display: flex; align-items: center; gap: 10px; color: var(--wc-muted); font-size: 15px; transition: color .2s; }
.wc-steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--wc-line); flex: none; box-sizing: border-box; }
.wc-steps li.is-active { color: var(--wc-text); font-weight: 600; }
.wc-steps li.is-active::before { border-color: var(--wc-accent); border-top-color: transparent; animation: wc-spin .8s linear infinite; }
.wc-steps li.is-done::before { background: var(--wc-good); border-color: var(--wc-good); }

/* ---------- Ergebnis ---------- */
.wc-result { padding: 40px 0 24px; scroll-margin-top: 72px; }
.wc-result:focus { outline: none; }
.wc-summary {
    display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
    background: var(--wc-surface); border: 1px solid var(--wc-line); border-radius: var(--wc-radius-lg); padding: 28px; box-shadow: var(--wc-shadow);
}
@media (max-width: 640px) { .wc-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 18px; } }
.wc-ring { position: relative; width: 150px; height: 150px; }
.wc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wc-ring-track { fill: none; stroke: var(--wc-line); }
.wc-ring-bar { fill: none; stroke: currentColor; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.22, .61, .36, 1); }
.wc-ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.wc-ring-num strong { font-size: 44px; font-weight: 750; color: var(--wc-text); }
.wc-ring-num span { font-size: 13px; color: var(--wc-muted); margin-top: 4px; }
.is-good { color: var(--wc-good); }
.is-warn { color: var(--wc-warn); }
.is-bad  { color: var(--wc-bad); }
.is-info { color: var(--wc-info); }

.wc-sum-host { margin: 0 0 4px; font-size: 14px; color: var(--wc-muted); overflow-wrap: anywhere; }
.wc-sum-host a { color: inherit; }
.wc-sum-grade { margin: 0 0 6px; font-family: var(--wc-display); font-size: clamp(26px, 4vw, 34px); font-weight: 650; line-height: 1.15; color: var(--wc-text); }
.wc-sum-date { margin: 0 0 16px; font-size: 13.5px; color: var(--wc-muted); }
.wc-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
@media (max-width: 640px) { .wc-counts, .wc-actions { justify-content: center; } }
.wc-counts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
    background: color-mix(in srgb, currentColor 12%, transparent); }
.wc-counts li b { font-size: 16px; }
.wc-counts li span { color: var(--wc-text); font-weight: 500; }
.wc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-actions .wc-btn { padding: 10px 14px; font-size: 14px; }

.wc-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0 8px; padding: 0; list-style: none; }
@media (max-width: 900px) { .wc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wc-tile { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px; border-radius: var(--wc-radius); text-decoration: none;
    background: var(--wc-surface); border: 1px solid var(--wc-line); color: var(--wc-text); transition: border-color .15s, transform .15s; }
.wc-tile:hover { border-color: var(--wc-muted); transform: translateY(-1px); }
.wc-mini { position: relative; width: 46px; height: 46px; flex: none; }
.wc-mini svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wc-mini b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--wc-text); }
.wc-tile-name { font-size: 14px; font-weight: 600; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 520px) { .wc-tile { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 14px 8px; } }

.wc-cat { margin-top: 36px; scroll-margin-top: 96px; }
.wc-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.wc-cat-head h2 { margin: 0; font-family: var(--wc-display); font-size: clamp(22px, 3vw, 28px); font-weight: 650; color: var(--wc-text); }
.wc-cat-score { font-size: 15px; font-weight: 700; }
.wc-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wc-item { background: var(--wc-surface); border: 1px solid var(--wc-line); border-radius: var(--wc-radius); overflow: hidden; }
.wc-item summary { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; cursor: pointer; list-style: none; }
.wc-item summary::-webkit-details-marker { display: none; }
.wc-item summary:hover { background: color-mix(in srgb, var(--wc-line) 40%, transparent); }
.wc-item-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
    background: color-mix(in srgb, currentColor 15%, transparent); }
.wc-item-icon svg { width: 16px; height: 16px; }
.wc-item-title { display: block; font-weight: 650; font-size: 15.5px; color: var(--wc-text); }
.wc-item-msg { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--wc-muted); overflow-wrap: anywhere; }
.wc-chev { width: 20px; height: 20px; margin-top: 3px; color: var(--wc-muted); transition: transform .2s; }
.wc-item[open] .wc-chev { transform: rotate(180deg); }
.wc-item-body { padding: 0 16px 16px 54px; font-size: 14.5px; line-height: 1.6; color: var(--wc-text); }
@media (max-width: 480px) { .wc-item-body { padding-left: 16px; } }
.wc-item-body p { margin: 0 0 10px; }
.wc-details { margin: 0; padding: 10px 12px; list-style: none; border-radius: 10px; background: var(--wc-bg); border: 1px solid var(--wc-line);
    font-family: var(--wc-mono); font-size: 12.5px; line-height: 1.6; color: var(--wc-muted); }
.wc-details li { overflow-wrap: anywhere; word-break: break-word; }

/* PageSpeed */
.wc-psi { margin-top: 36px; background: var(--wc-surface); border: 1px solid var(--wc-line); border-radius: var(--wc-radius-lg); padding: 24px; box-shadow: var(--wc-shadow); }
.wc-psi h2 { margin: 0 0 4px; font-family: var(--wc-display); font-size: 22px; font-weight: 650; color: var(--wc-text); }
.wc-psi-note { margin: 0 0 16px; font-size: 14px; color: var(--wc-muted); line-height: 1.5; }
.wc-psi-wait { display: flex; align-items: center; gap: 12px; color: var(--wc-muted); font-size: 15px; }
.wc-psi-wait .wc-spinner { width: 28px; height: 28px; border-width: 3px; margin: 0; }
.wc-psi-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; padding: 0; list-style: none; }
.wc-psi-grid li { padding: 12px 14px; border-radius: 12px; background: var(--wc-bg); border: 1px solid var(--wc-line); }
.wc-psi-grid small { display: block; font-size: 12.5px; color: var(--wc-muted); }
.wc-psi-grid b { font-size: 20px; }
.wc-psi-field { margin: 14px 0 0; font-size: 14.5px; color: var(--wc-text); }

/* CTA + Hinweis */
.wc-cta { margin-top: 44px; border-radius: var(--wc-radius-lg); padding: 32px 28px; color: #fff;
    background: linear-gradient(140deg, var(--wc-navy), var(--wc-navy-2)); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
@media (max-width: 760px) { .wc-cta { grid-template-columns: 1fr; padding: 26px 20px; } }
.wc-cta h2 { margin: 0 0 6px; color: #fff; font-family: var(--wc-display); font-size: clamp(22px, 3vw, 28px); font-weight: 650; line-height: 1.2; }
.wc-cta p { margin: 0; color: rgba(255, 255, 255, .8); line-height: 1.55; }
.wc-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.wc-note { margin: 28px 0 0; padding: 18px 20px; border-radius: var(--wc-radius); border: 1px dashed var(--wc-line); background: var(--wc-surface); font-size: 14px; line-height: 1.6; color: var(--wc-muted); }
.wc-note strong { color: var(--wc-text); }
.wc-note a { color: inherit; }
.wc-note p { margin: 0 0 8px; }
.wc-note p:last-child { margin: 0; }

.wc-faq { display: grid; gap: 8px; max-width: 820px; }
.wc-faq details { background: var(--wc-surface); border: 1px solid var(--wc-line); border-radius: var(--wc-radius); padding: 0 18px; }
.wc-faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; color: var(--wc-text); }
.wc-faq details p { margin: 0 0 16px; color: var(--wc-muted); line-height: 1.6; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .wc-page *, .wc-page *::before, .wc-page *::after { animation-duration: 1.5s !important; transition: none !important; }
    .wc-btn:hover, .wc-tile:hover { transform: none; }
}

/* ---------- Druck / PDF ---------- */
@media print {
    @page { margin: 14mm; }
    .wc-page { background: #fff; color: #000; }
    .wc-hero, .wc-intro, .wc-loading, .wc-actions, .wc-cta-actions, .wc-chev, .wc-faq-section, .no-print { display: none !important; }
    .wc-result { padding: 0; }
    .wc-summary, .wc-item, .wc-tile, .wc-psi, .wc-card, .wc-note { box-shadow: none !important; border-color: #ccc !important; background: #fff !important; }
    .wc-cat, .wc-item, .wc-summary { break-inside: avoid; }
    .wc-cat-head { break-after: avoid; }
    .wc-cta { background: #fff !important; color: #000; border: 1px solid #ccc; }
    .wc-cta h2, .wc-cta p { color: #000 !important; }
    .wc-ring-bar { transition: none; }
    .wc-details { background: #f6f6f6 !important; }
    .wc-tiles { grid-template-columns: repeat(5, 1fr); }
}
