/**
 * WHC v2.1
 */

/* ════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (Score Colors)
   ════════════════════════════════════════════ */

:root {
    /* Score-Farben */
    --whc-excellent: #03742d;
    --whc-good: #03742d;
    --whc-average: #eb981a;
    --whc-poor: #ff5722;
    --whc-critical: #d63638;

    /* Basis-UI */
    --whc-bg: #fff;
    --whc-border: #000;
    --whc-text: #000;
    --whc-muted: #000;
    --whc-radius: 0;
    --whc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Aktiv/Erfolg-Zustaende */
    --whc-active: #4CAF50;
    --whc-active-dark: #2E7D32;
    --whc-active-bg: #E8F5E9;
    --whc-active-bg-hover: #C8E6C9;

    /* Deaktiviert/Neutral */
    --whc-disabled: #e0e0e0;
    --whc-disabled-text: #999;
}

/* ════════════════════════════════════════════
   SCORE COLOR UTILITY CLASSES
   ════════════════════════════════════════════ */

.whc-bg-excellent  { background-color: var(--whc-excellent) !important; color: #fff !important; }
.whc-bg-good       { background-color: var(--whc-good) !important; color: #fff !important; }
.whc-bg-average    { background-color: var(--whc-average) !important; color: #fff !important; }
.whc-bg-poor       { background-color: var(--whc-poor) !important; color: #fff !important; }
.whc-bg-critical   { background-color: var(--whc-critical) !important; color: #fff !important; }

.whc-text-excellent { color: var(--whc-excellent) !important; }
.whc-text-good      { color: var(--whc-good) !important; }
.whc-text-average   { color: var(--whc-average) !important; }
.whc-text-poor      { color: var(--whc-poor) !important; }
.whc-text-critical  { color: var(--whc-critical) !important; }

/* ════════════════════════════════════════════
   BASE LAYOUT — keine äußeren Abstände (CMS regelt Rand)
   ════════════════════════════════════════════ */

.whc-container {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.whc-checker-widget {
    width: 100%;
    max-width: 100%;
    font-family: var(--whc-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--whc-text);
}

.whc-checker-widget * {
    box-sizing: border-box;
}

/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */

.whc-header {
    margin: 0 0 16px 0;
}

.whc-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--whc-text);
}

.whc-header p {
    font-size: 15px;
    color: var(--whc-muted);
    margin: 0;
}

/* ════════════════════════════════════════════
   INPUT & BUTTONS
   ════════════════════════════════════════════ */

.whc-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
}

.whc-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--whc-border);
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    height: 48px;
    max-width: 100%;
}

.whc-input:focus {
    outline: none;
    border-color: var(--whc-excellent);
    box-shadow: 0 0 0 2px rgba(0,163,42,0.2);
}

.whc-input::placeholder { color: #999; }

.whc-btn {
    padding: 12px 24px;
    background: var(--whc-border);
    color: #fff;
    border: 2px solid var(--whc-border);
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.whc-btn:hover:not(:disabled) {
    background: #fff;
    color: var(--whc-border);
}

.whc-btn:disabled { opacity: .6; cursor: not-allowed; }

.whc-btn-primary { background: var(--whc-border); color: #fff; }
.whc-btn-secondary { background: #fff; color: var(--whc-border); }
.whc-btn-secondary:hover:not(:disabled) { background: var(--whc-border); color: #fff; }

/* ════════════════════════════════════════════
   INFO ROW & LIMIT NOTICE
   ════════════════════════════════════════════ */

.whc-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    padding-bottom: 1vw;
    background: #fff;
    border-radius: 0;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.whc-limit-notice {
    font-size: 14px;
    color: #000;
    flex: 1;
    min-width: 200px;
}

.whc-premium-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--whc-excellent);
    color: #fff;
    border: 2px solid var(--whc-border);
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: background .15s, color .15s;
    min-width: 180px;
    text-align: center;
}
button.whc-premium-link {
    height: 48px;
    box-sizing: border-box;
    padding: 0 20px;
    line-height: 1;
}

.whc-premium-link:hover {
    background: #fff;
    color: var(--whc-excellent);
}

/* ════════════════════════════════════════════
   PREMIUM SECTION
   ════════════════════════════════════════════ */

.whc-premium-section {
    margin: 15px 0;
    padding: 1vw;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
}

.whc-premium-section h3 { margin: 0 0 1vw; color: #000; }
.whc-premium-section p { margin: 0 0 1vw; color: #000; font-size: 14px; }
.whc-premium-section .whc-input-group { margin-bottom: 1vw; }
.whc-premium-section .whc-input { padding: 1vw; color: #000; border: 2px solid #000; background: #fff; }
.whc-premium-section .whc-btn { padding: 1vw 2vw; font-size: 20px; background: #000; color: #fff; border: 2px solid #000; border-radius: 0; }

#whc-premium-message {
    padding: 0;
    margin: 0.5vw 0 0 0;
    border: none;
    background: none;
    font-size: 14px;
    color: #000;
}
#whc-premium-message .whc-success { color: #03742d; font-weight: 600; }
#whc-premium-message .whc-error { color: #d63638; font-weight: 600; }

/* ════════════════════════════════════════════
   PROGRESS — Step-based Design
   ════════════════════════════════════════════ */

.whc-progress {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
}

.whc-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.whc-progress-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--whc-text, #000);
}

.whc-progress-timer {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #555;
    background: #f5f5f5;
    border: 2px solid #000;
    padding: 4px 12px;
    letter-spacing: 0.5px;
    min-width: 56px;
    text-align: center;
}
.whc-timer-done {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #2e7d32;
}

/* Wait hint below progress bar */
.whc-progress-wait-hint {
    text-align: center;
    font-size: 13px;
    color: #757575;
    margin: 6px 0 12px 0;
    font-style: italic;
}

/* Thin overall progress bar */
.whc-progress-bar-track {
    width: 100%;
    height: 6px;
    background: #eee;
    border: 1px solid #ccc;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.whc-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #03742d;
    transition: width 0.6s ease;
    position: relative;
}

.whc-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0));
    animation: whcBarPulse 1.8s ease-in-out infinite;
}

.whc-bar-complete { background: #2e7d32; }
.whc-bar-complete::after { display: none; }

/* Fehler im Progress-Bereich */
.whc-progress-error {
    text-align: center;
    padding: 24px 16px;
}
.whc-progress-error-icon {
    font-size: 36px;
    margin-bottom: 10px;
}
.whc-progress-error-msg {
    font-size: 14px;
    font-weight: 600;
    color: #c62828;
    margin-bottom: 14px;
    line-height: 1.5;
    word-break: break-word;
}
.whc-progress-error-btn {
    background: #333;
    color: #fff;
    border: 2px solid #000;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.whc-progress-error-btn:hover {
    background: #000;
}

/* ── Kritischer Fehler (Scan-Abbruch) ── */
.whc-fatal-error {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border: 2px solid #c62828;
    margin: 12px 0 0;
}
.whc-fatal-error-icon {
    font-size: 42px;
    margin-bottom: 8px;
}
.whc-fatal-error-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}
.whc-fatal-error-msg {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 16px;
    word-break: break-word;
}
.whc-fatal-error-contact {
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
}
.whc-fatal-error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.whc-fatal-btn-retry {
    background: #333;
    color: #fff;
    border: 2px solid #000;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.whc-fatal-btn-retry:hover { background: #000; }
.whc-fatal-btn-contact {
    display: inline-block;
    background: #03742d;
    color: #fff;
    border: 2px solid #000;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.whc-fatal-btn-contact:hover { background: #025a23; color: #fff; }
.whc-fatal-error-report {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #ddd;
    text-align: center;
}
.whc-fatal-btn-report {
    display: inline-block;
    background: #fff;
    color: #666;
    border: 1px solid #ccc;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border-radius: 4px;
}
.whc-fatal-btn-report:hover { background: #f5f5f5; border-color: #999; color: #333; }
.whc-fatal-report-hint {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 11px;
}
.whc-fatal-error-detail {
    margin-top: 8px;
    color: #999;
    font-size: 11px;
}

@keyframes whcBarPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Step list */
.whc-progress-steps {
    display: flex;
    flex-direction: column;
}

.whc-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.3s ease;
}
.whc-step:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.whc-step-indicator {
    flex-shrink: 0;
    padding-top: 1px;
}

.whc-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #ccc;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    background: #fafafa;
    transition: all 0.3s ease;
}

.whc-step-body {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.whc-step-title {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: color 0.3s;
    line-height: 1.3;
}

.whc-step-detail {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    min-height: 16px;
    line-height: 1.4;
}

/* Step states */
.whc-step-pending { opacity: 0.45; }

.whc-step-active { opacity: 1; }
.whc-step-active .whc-step-icon {
    color: #fff;
    background: #03742d;
    border-color: #03742d;
    animation: whcPulseIcon 2s ease-in-out infinite;
}
.whc-step-active .whc-step-title {
    color: #1b5e20;
    font-weight: 700;
}
.whc-step-active .whc-step-detail {
    color: #388e3c;
    font-weight: 500;
}

/* Parallel laufende Phase (z.B. Speed während Analyse) */
.whc-step-parallel {
    opacity: 0.85;
}
.whc-step-parallel .whc-step-icon {
    color: #fff;
    background: #81c784;
    border-color: #81c784;
}
.whc-step-parallel .whc-step-title {
    color: #66bb6a;
    font-weight: 600;
}
.whc-step-parallel .whc-step-detail {
    color: #81c784;
    font-weight: 500;
    font-style: italic;
}
.whc-spinner-muted {
    border-color: rgba(255,255,255,0.3);
    border-top-color: #fff;
    opacity: 0.7;
}

.whc-step-done { opacity: 1; }
.whc-step-done .whc-step-icon {
    color: #fff;
    background: #2e7d32;
    border-color: #2e7d32;
    font-size: 15px;
}
.whc-step-done .whc-step-title { color: #2e7d32; }
.whc-step-done .whc-step-detail {
    color: #66bb6a;
    font-size: 11px;
}

/* Substeps (Mini-Checkliste pro Phase) */
.whc-substeps {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
.whc-step-active .whc-substeps,
.whc-step-done .whc-substeps {
    max-height: 200px;
    opacity: 1;
}
.whc-substep {
    color: #bbb;
    padding-left: 18px;
    position: relative;
    transition: color 0.3s ease;
}
.whc-substep::before {
    position: absolute;
    left: 0;
    width: 14px;
    text-align: center;
    font-size: 11px;
}
.whc-substep-pending::before {
    content: '\00B7';
    color: #ccc;
    font-size: 16px;
    line-height: 1.1;
}
.whc-substep-active {
    color: #1b5e20;
    font-weight: 500;
}
.whc-substep-active::before {
    content: '\203A';
    color: #03742d;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
}
.whc-substep-done {
    color: #66bb6a;
}
.whc-substep-done::before {
    content: '\2713';
    color: #2e7d32;
    font-size: 10px;
    line-height: 1.7;
}
/* Im done-State: Substeps etwas kompakter */
.whc-step-done .whc-substep {
    color: #a5d6a7;
}
.whc-step-done .whc-substep::before {
    color: #66bb6a;
}

/* Spinner for active step icon */
.whc-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: whcSpin 0.7s linear infinite;
}

@keyframes whcSpin {
    to { transform: rotate(360deg); }
}

@keyframes whcPulseIcon {
    0%, 100% { box-shadow: 0 0 0 0 rgba(3, 116, 45, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(3, 116, 45, 0); }
}

@keyframes whcFadeInDetail {
    from { opacity: 0; transform: translateY(-2px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   RESULTS CONTAINER
   ════════════════════════════════════════════ */

.whc-results {
    margin: 20px 0 0 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.whc-error {
    color: red;
    border: 2px solid #000;
    padding: 1vw;
    background: #fff;
    border-radius: 0;
}

/* ════════════════════════════════════════════
   SCORE RING (SVG)
   ════════════════════════════════════════════ */

.whc-score-ring { display: block; }

.whc-ring-fill {
    transition: stroke-dashoffset .6s ease;
}

.whc-ring-excellent { stroke: var(--whc-excellent); }
.whc-ring-good      { stroke: var(--whc-good); }
.whc-ring-average   { stroke: var(--whc-average); }
.whc-ring-poor      { stroke: var(--whc-poor); }
.whc-ring-critical  { stroke: var(--whc-critical); }
.whc-ring-disabled  { stroke: #ccc; }

.whc-ring-text {
    font-size: 16px;
    font-weight: 700;
    fill: var(--whc-text);
    font-family: var(--whc-font);
}

/* ════════════════════════════════════════════
   PAGE CARD
   ════════════════════════════════════════════ */

.whc-page-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 15px;
    max-width: 100%;
    overflow-x: hidden;
    border-left: 5px solid #ccc;
    width: 100%;
    overflow: hidden;
}

.whc-card-excellent { border-left-color: var(--whc-excellent); }
.whc-card-good      { border-left-color: var(--whc-good); }
.whc-card-average   { border-left-color: var(--whc-average); }
.whc-card-poor      { border-left-color: var(--whc-poor); }
.whc-card-critical  { border-left-color: var(--whc-critical); }
.whc-card-error     { border-left-color: var(--whc-critical); background: #fff8f8; }

/* Card header: Ring + Info */
.whc-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.whc-card-ring {
    flex-shrink: 0;
}

.whc-card-info {
    flex: 1;
    min-width: 0;
}

.whc-card-url {
    font-size: 14px;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    word-break: break-all;
    display: block;
    margin-bottom: 6px;
}

.whc-card-url:hover { text-decoration: underline; }

.whc-card-meta-line {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.whc-status-pill {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid var(--whc-border);
    border-radius: 0;
}

/* Status-Farben definiert im Status Code Colors Block */

.whc-idx-pill {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0;
}

.whc-idx-ok  { background: #e8f5e9; color: var(--whc-excellent); }
.whc-idx-bad { background: #ffebee; color: var(--whc-critical); }

/* Card meta (title/desc) */
.whc-card-meta {
    margin-top: 4px;
}
.whc-meta-fallback {
    font-size: 12px;
    color: #ccc;
    margin-top: 6px;
    padding: 10px 14px;
    background: #111;
    border: 1px solid #333;
    border-radius: 0;
    line-height: 1.5;
}
.whc-meta-fallback-heading {
    font-weight: 700;
    color: #fff;
    font-size: 13px;
    margin-bottom: 4px;
}
.whc-meta-fallback-text {
    font-style: italic;
    color: #aaa;
}

.whc-meta-line {
    font-size: 13px;
    color: var(--whc-muted);
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whc-meta-line strong {
    color: var(--whc-text);
    font-weight: 600;
    margin-right: 4px;
}

.whc-meta-line small { color: #999; }

.whc-error-msg {
    padding: 10px;
    background: #ffebee;
    border: 1px solid var(--whc-critical);
    font-size: 14px;
    margin-top: 8px;
}

/* ════════════════════════════════════════════
   SCORE BADGES ROW (6 categories)
   ════════════════════════════════════════════ */

.whc-badges-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    align-items: stretch;
}

.whc-card-hints {
    font-size: 12px;
    color: var(--whc-muted, #666);
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.whc-card-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 11px;
    line-height: 1.3;
}
.whc-card-hint-info { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.whc-card-hint-warn { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.whc-card-hint-good { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.whc-card-hint-neutral { background: #f5f5f5; color: #616161; border: 1px solid #e0e0e0; }
.whc-card-hints:not(.whc-card-hints-multi) {
    line-height: 1.4;
}

.whc-score-badge {
    text-align: center;
    padding: 10px 6px;
    border: 2px solid #000;
    border-radius: 0;
    background: #fff;
    transition: border-color .2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.whc-score-badge:hover {
    border-color: #999;
}

.whc-score-excellent { border-color: var(--whc-excellent); }
.whc-score-good      { border-color: var(--whc-good); }
.whc-score-average   { border-color: var(--whc-average); }
.whc-score-poor      { border-color: var(--whc-poor); }
.whc-score-critical  { border-color: var(--whc-critical); }

.whc-badge-icon {
    font-size: 20px;
    margin-bottom: 4px;
    line-height: 1;
}

.whc-badge-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--whc-text);
    line-height: 1.2;
}

.whc-score-excellent .whc-badge-score { color: var(--whc-excellent); }
.whc-score-good .whc-badge-score      { color: var(--whc-good); }
.whc-score-average .whc-badge-score   { color: var(--whc-average); }
.whc-score-poor .whc-badge-score      { color: var(--whc-poor); }
.whc-score-critical .whc-badge-score  { color: var(--whc-critical); }

.whc-badge-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--whc-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin-top: 2px;
}

/* Critical Override Badge Marker */
.whc-badge-is-critical {
    border-color: var(--whc-critical, #d63638) !important;
    box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.15);
    position: relative;
}
.whc-badge-critical {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 12px;
    line-height: 1;
    background: #fff;
    border-radius: 50%;
    padding: 1px;
}

/* ════════════════════════════════════════════
   CARD ACTIONS (Speed + Details buttons)
   ════════════════════════════════════════════ */

.whc-card-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.whc-card-actions-details {
    text-align: center;
    margin-bottom: 10px;
}

.whc-btn-speed,
.whc-btn-details {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    transition: none;
    background: #000;
    color: #fff;
    display: inline-block;
    min-width: 160px;
}

.whc-btn-speed {
    background: #03742d;
    color: #fff;
    border: 2px solid #000;
}

.whc-btn-speed:hover:not(:disabled) { background: #000; color: #fff; }
.whc-btn-speed:disabled { opacity: .6; cursor: not-allowed; }
.whc-btn-speed.whc-speed-running {
    background: #bbb;
    border-color: #bbb;
    color: #fff;
    opacity: 1;
    cursor: wait;
}
/* "Erneut testen" — dezenter Style nach abgeschlossenem Test */
.whc-btn-speed.whc-btn-done {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}
.whc-btn-speed.whc-btn-done:hover:not(:disabled) {
    background: #f0f0f0;
    color: #000;
}

.whc-btn-details:hover { background: #fff; color: #000; }

/* ════════════════════════════════════════════
   SPEED TEST RESULTS
   ════════════════════════════════════════════ */

.whc-speed-area {
    margin-bottom: 15px;
}

/* ── Broken Internal Links ── */
.whc-linkcheck-area {
    margin: 8px 0 15px;
}
.whc-broken-links {
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 12px 16px;
}
.whc-broken-links-title {
    font-size: 14px;
    font-weight: 600;
    color: #c62828;
    margin: 0 0 8px;
}
.whc-broken-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}
.whc-broken-links-list li {
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid #ffebee;
    word-break: break-all;
}
.whc-broken-links-list li:last-child {
    border-bottom: none;
}
.whc-broken-link-status {
    display: inline-block;
    background: #c62828;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}
.whc-broken-link-url {
    color: #333;
    text-decoration: underline;
    text-decoration-color: #ddd;
}
.whc-broken-link-url:hover {
    color: #c62828;
}
.whc-broken-link-note {
    color: #888;
}
.whc-broken-links-help {
    color: #666;
    line-height: 1.4;
}

/* Mehrsprachen-Hinweis */
.whc-multilang-notice {
    border-color: #bbdefb;
    background: #e3f2fd;
}

/* ── Geprüfte Links Übersicht ── */
.whc-summary-linkcheck {
    margin-top: 24px;
    padding: 20px;
    border: 2px solid #eee;
    background: #fff;
}
.whc-summary-linkcheck h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}
.whc-linkcheck-subtitle {
    font-size: 12px;
    color: #888;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}
.whc-linkcheck-broken {
    margin-bottom: 16px;
    border: 2px solid var(--whc-critical);
    background: #fff;
}
.whc-linkcheck-broken h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--whc-critical);
    margin: 0;
    padding: 10px 14px;
}
.whc-linkcheck-broken .whc-linkcheck-table {
    border: none;
}
.whc-linkcheck-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border: 1px solid #eee;
}
.whc-linkcheck-table th {
    text-align: left;
    font-weight: 600;
    padding: 8px 10px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.4;
}
.whc-linkcheck-table td {
    padding: 6px 10px;
    border: 1px solid #eee;
    word-break: break-all;
    line-height: 1.4;
    vertical-align: middle;
    font-size: 13px;
}
.whc-linkcheck-table td small {
    font-size: 13px;
}
.whc-linkcheck-table tbody tr:hover { background: #fafafa; }
.whc-linkcheck-table a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}
.whc-linkcheck-table a:hover {
    text-decoration: underline;
    color: #005177;
}
.whc-lc-broken td {
    background: #fff8f8;
}
.whc-lc-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 0;
    min-width: 32px;
    text-align: center;
    line-height: 1.3;
    vertical-align: middle;
    border: 2px solid currentColor;
}
.whc-lc-status-err {
    background: #ffebee;
    color: #c62828;
    border-color: #c62828;
}
.whc-lc-status-ok {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #2e7d32;
}
.whc-lc-pages {
    max-width: 250px;
    color: #888;
    font-size: 13px;
}
.whc-lc-pages small {
    font-size: inherit;
}
.whc-linkcheck-ok-details {
    margin-top: 12px;
    border: 2px solid #eee;
}
.whc-linkcheck-ok-details summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    padding: 10px 14px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    transition: background .15s;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.whc-linkcheck-ok-details summary::-webkit-details-marker { display: none; }
.whc-linkcheck-ok-details summary::before {
    content: '\25B6';
    font-size: 10px;
    transition: transform .2s;
    display: inline-block;
    color: #666;
}
.whc-linkcheck-ok-details[open] summary::before {
    transform: rotate(90deg);
}
.whc-linkcheck-ok-details summary:hover {
    background: #f0f0f0;
}
.whc-linkcheck-ok-details .whc-linkcheck-table {
    border: none;
    border-top: 1px solid #eee;
}

/* Redirect-Pfeil in Link-Tabelle */
.whc-lc-redirect-arrow {
    display: inline-block;
    color: #e65100;
    font-weight: 700;
    margin: 0 4px;
    font-size: 13px;
}
.whc-lc-redirect-arrow + small {
    color: #666;
    font-size: 13px;
}

/* dofollow/nofollow section (summary) */
.whc-summary-follow {
    margin-top: 24px;
    padding: 20px;
    border: 2px solid #eee;
    background: #fff;
}
.whc-summary-follow h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* dofollow/nofollow Labels */
.whc-follow-do {
    color: #2e7d32;
    font-weight: 600;
}
.whc-follow-no {
    color: #c62828;
    font-weight: 600;
}

/* https-redirect Hinweis im Link-Check */
.whc-lc-scheme-hint {
    color: #999;
    font-size: 13px;
}

/* Status-Badge für Redirects */
.whc-lc-status-redirect {
    background: #fff3e0;
    color: #e65100;
    border-color: #e65100;
}

/* noindex-Zeilen ausgegraut */
.whc-lc-noindex td {
    opacity: 0.55;
}
.whc-lc-status-noindex {
    background: #f5f5f5;
    color: #999;
    border-color: #ccc;
}

.whc-speed-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
}

.whc-speed-retest-area {
    margin-top: 10px;
}

.whc-speed-attribution {
    margin-top: 8px;
    font-size: 11px;
    color: var(--whc-muted);
    opacity: 0.7;
}

.whc-speed-done-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--whc-muted, #666);
    font-weight: 600;
}

.whc-speed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.whc-speed-card {
    padding: 10px 12px;
    border: 2px solid var(--whc-border);
    border-radius: 0;
    text-align: center;
    background: #fff;
}

.whc-speed-good    { border-color: var(--whc-excellent); background: #f0faf0; }
.whc-speed-average { border-color: var(--whc-average); background: #fff8f0; }
.whc-speed-bad     { border-color: var(--whc-critical); background: #fff0f0; }

.whc-speed-strat {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.whc-speed-time {
    font-size: 20px;
    font-weight: 700;
    color: var(--whc-text);
    line-height: 1.1;
}

.whc-speed-psi {
    font-size: 12px;
    color: #000;
    margin-top: 4px;
}

.whc-speed-metrics {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.whc-speed-metrics span {
    font-size: 11px;
    background: var(--whc-bg);
    padding: 2px 8px;
    border: 1px solid #ddd;
}

/* ════════════════════════════════════════════
   DETAIL ACCORDION (Category Sections)
   ════════════════════════════════════════════ */

.whc-details-area {
    border-top: 2px solid #eee;
    padding-top: 14px;
    margin-top: 4px;
}

.whc-details-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.whc-details-hints .whc-card-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 0;
    color: #1565c0;
}

.whc-summary-heading-hierarchy {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.whc-summary-heading-hierarchy h3 {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--whc-text);
}
.whc-hierarchy-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.whc-hierarchy-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 0;
    font-size: 13px;
}
.whc-hierarchy-url {
    min-width: 0;
    flex: 0 1 auto;
    color: var(--whc-muted);
    text-decoration: none;
}
.whc-hierarchy-url:hover { text-decoration: underline; }
.whc-hierarchy-structure {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.whc-cat-section {
    border: 2px solid #000;
    border-radius: 0;
    margin-bottom: 10px;
    overflow: hidden;
}

.whc-cat-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: background .15s;
}

.whc-cat-toggle:hover { background: #222; color: #fff; }

.whc-cat-toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whc-cat-icon { font-size: 18px; }

.whc-cat-name {
    font-weight: 600;
    color: inherit;
}

.whc-cat-toggle-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whc-cat-score-pill {
    display: inline-block;
    padding: 2px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 0;
    min-width: 40px;
    text-align: center;
}

.whc-cat-arrow {
    font-size: 12px;
    color: #fff;
    transition: transform .2s;
    display: inline-block;
}
/* Desktop: Kategorie-Body immer offen */
.whc-cat-body-desktop-open { display: block; }

/* Category body */
.whc-cat-body {
    padding: 14px 16px;
    background: #fff;
    border-top: 1px solid #eee;
}

/* ════════════════════════════════════════════
   CHECK ROWS (inside category details)
   ════════════════════════════════════════════ */

.whc-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    line-height: 1.4;
}

.whc-check-row:last-of-type { border-bottom: none; }

.whc-check-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    border-radius: 50%;
    line-height: 1;
}

.whc-check-excellent .whc-check-icon { color: var(--whc-excellent); background: #e8f5e9; }
.whc-check-good .whc-check-icon      { color: var(--whc-good); background: #e8f5e9; }
.whc-check-average .whc-check-icon   { color: var(--whc-average); background: #fff3e0; }
.whc-check-poor .whc-check-icon      { color: var(--whc-poor); background: #fbe9e7; }
.whc-check-critical .whc-check-icon  { color: var(--whc-critical); background: #ffebee; }

.whc-check-name {
    flex: 1;
    color: var(--whc-text);
    text-transform: capitalize;
}

.whc-check-score {
    font-weight: 700;
    min-width: 30px;
    text-align: right;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.whc-check-excellent .whc-check-score { color: var(--whc-excellent); }
.whc-check-good .whc-check-score      { color: var(--whc-good); }
.whc-check-average .whc-check-score   { color: var(--whc-average); }
.whc-check-poor .whc-check-score      { color: var(--whc-poor); }
.whc-check-critical .whc-check-score  { color: var(--whc-critical); }

/* ════════════════════════════════════════════
   DETAIL NOTES (special badges in accordion)
   ════════════════════════════════════════════ */

.whc-detail-note {
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 13px;
    border-left: 3px solid #ccc;
    background: var(--whc-bg);
}

.whc-note-good { border-left-color: var(--whc-excellent); background: #f0faf0; }
.whc-note-warn { border-left-color: var(--whc-average); background: #fffde7; }
.whc-note-bad  { border-left-color: var(--whc-critical); background: #fff0f0; }

.whc-detail-follow-section {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.whc-detail-section-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--whc-text, #111) !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}



.whc-issue-list {
    margin: 6px 0 0 0;
    padding-left: 18px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
}
.whc-issue-list li { margin-bottom: 2px; }
.whc-issue-list code {
    font-size: 11px;
    background: rgba(0,0,0,0.06);
    padding: 1px 5px;
    border-radius: 0;
    word-break: break-all;
}
.whc-muted { color: #888; font-size: 11px; }

/* ── Highlight-Links (Zur Seite / Zum Formular / Zum Bild) ── */
.whc-highlight-link {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #03742d;
    text-decoration: underline;
    margin-left: 6px;
    white-space: nowrap;
}
.whc-highlight-link:hover {
    color: #000;
}

.whc-psi-metrics {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--whc-border, #e0e0e0);
}
.whc-psi-metrics .whc-psi-block {
    margin-bottom: 10px;
}
.whc-psi-metrics .whc-psi-block:last-child { margin-bottom: 0; }
.whc-psi-metrics .whc-psi-label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: #000;
    margin-bottom: 4px;
}

/* ════════════════════════════════════════════
   SCORE BAR (used in summary)
   ════════════════════════════════════════════ */

.whc-score-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.whc-bar-label {
    font-size: 13px;
    font-weight: 600;
    min-width: 130px;
    white-space: nowrap;
}

.whc-bar-track {
    flex: 1;
    height: 14px;
    background: #e0e0e0;
    border-radius: 7px;
    overflow: hidden;
}

.whc-bar-fill {
    height: 100%;
    border-radius: 7px;
    transition: width .5s ease;
}

.whc-bar-value {
    font-size: 14px;
    font-weight: 700;
    min-width: 30px;
    text-align: right;
}

/* Phase 5.1: Kompakter Kasten oben */
.whc-summary-compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #fff;
    border: 2px solid var(--whc-border);
    border-radius: 0;
}
.whc-summary-compact-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--whc-border);
}
.whc-summary-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.whc-summary-compact-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.whc-summary-compact-ring .whc-ring-text { font-size: 28px; }
.whc-summary-compact-body { flex: 1; min-width: 0; }
.whc-summary-compact-intro {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 6px 0;
    color: var(--whc-text);
    font-weight: 500;
}
.whc-summary-compact-label { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.whc-summary-compact-flow {
    font-size: 14px;
    line-height: 1.5;
    color: var(--whc-muted, #555);
    margin: 0 0 10px;
}
.whc-summary-compact-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    color: var(--whc-muted);
    margin-bottom: 10px;
}
.whc-summary-compact-cat { white-space: nowrap; }

/* ── Alert-Boxen in Summary Compact ── */
.whc-summary-alert {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.5;
    background: #fff;
}
.whc-summary-alert.whc-alert-red {
    border: 2px solid #d32f2f;
}
.whc-summary-alert.whc-alert-yellow {
    border: 2px solid #f9a825;
}
.whc-alert-text {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #222;
}
.whc-alert-red .whc-alert-text {
    color: #b71c1c;
}
.whc-alert-yellow .whc-alert-text {
    color: #7b6e00;
}
.whc-alert-details {
    margin-top: 6px;
    font-size: 12px;
}
.whc-alert-details summary {
    cursor: pointer;
    font-weight: 500;
    color: #555;
    user-select: none;
}
.whc-alert-details ul {
    margin: 4px 0 0 16px;
    padding: 0;
    list-style: disc;
    color: #555;
}
.whc-alert-details li {
    padding: 1px 0;
}
.whc-alert-cta {
    margin-top: 12px;
}
.whc-alert-cta-btn {
    display: inline-block;
    background: #03742d;
    color: #fff;
    border: 2px solid #000;
    border-radius: 0;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.whc-alert-cta-btn:hover {
    background: #025a23;
}
.whc-link-to-details {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--whc-excellent, #4caf50);
    margin-top: 4px;
}
.whc-link-to-details:hover { text-decoration: underline; }
.whc-details-heading {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
}

/* SUMMARY DASHBOARD (Details) */
.whc-summary-dashboard {
    background: #fafafa;
    border: 2px solid var(--whc-border);
    border-radius: 0;
    padding: 24px;
    margin-top: 24px;
}

/* Top row: Ring + headline */
.whc-summary-top {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.whc-summary-ring {
    flex-shrink: 0;
}

.whc-summary-ring .whc-ring-text {
    font-size: 28px;
}

.whc-summary-headline h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}

.whc-summary-score-label {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.whc-summary-meta {
    font-size: 14px;
    color: var(--whc-muted);
}

/* Category bars (Skeleton-Platzhalter bis Ergebnisse geladen) */
.whc-summary-bars {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

/* Category checklist boxes (detail view) */
/* Dashboard Tabs */
.whc-dashboard-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border: 2px solid #000;
}
.whc-tab-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #333;
    border: none;
    border-right: 2px solid #000;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}
.whc-tab-btn:last-child { border-right: none; }
.whc-tab-btn:hover { background: #f5f5f5; }
.whc-tab-btn.whc-tab-active {
    background: #000;
    color: #fff;
}

.whc-tab-panel { display: none; }
.whc-tab-panel-active { display: block; }

/* By URL Panel */
.whc-byurl-hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
}
.whc-byurl-card {
    border: 2px solid #000;
    margin-bottom: 10px;
    background: #fff;
}
.whc-byurl-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #000;
    color: #fff;
    border-bottom: 1px solid #000;
}
.whc-byurl-score {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    min-width: 28px;
    text-align: center;
}
.whc-byurl-url {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    word-break: break-all;
}
.whc-byurl-url:hover,
.whc-byurl-url:focus,
.whc-byurl-url:active,
.whc-byurl-url:visited {
    color: #fff;
    text-decoration: underline;
}
.whc-byurl-header a,
.whc-byurl-header a:hover,
.whc-byurl-header a:focus,
.whc-byurl-header a:active,
.whc-byurl-header a:visited {
    color: #fff;
}
.whc-byurl-count {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}
.whc-byurl-issues {
    padding: 10px 14px;
}
.whc-byurl-cat-group {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 8px;
    border-left: 3px solid #ddd;
    padding-left: 10px;
}
.whc-byurl-cat-icon { font-size: 14px; }
.whc-byurl-cat-name {
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 3px;
}
.whc-byurl-detail-list {
    margin: 2px 0 0 0;
    padding: 0 0 0 6px;
    list-style: none;
}
.whc-byurl-detail-list li {
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    padding: 2px 0;
    border-bottom: 1px solid #f0f0f0;
}
.whc-byurl-detail-list li:last-child { border-bottom: none; }
.whc-byurl-detail-list li strong { color: #c62828; }
.whc-byurl-detail-list li em { color: #666; font-style: normal; }
.whc-byurl-htree {
    margin: 4px 0 0 0;
    padding: 0;
    list-style: none;
    font-size: 11px;
    line-height: 1.5;
}
.whc-byurl-htree li { padding: 1px 0; }
.whc-byurl-htree li small { font-size: 10px; }

/* Toggle-Buttons & -Listen im URL-Panel */
.whc-byurl-toggle-btn {
    background: none;
    border: 1px solid #ccc;
    padding: 1px 8px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 4px;
    color: #555;
    border-radius: 0;
}
.whc-byurl-toggle-btn:hover { background: #f5f5f5; color: #000; border-color: #999; }
.whc-byurl-toggle-list {
    margin: 4px 0 0 0;
    padding: 0 0 0 8px;
    list-style: none;
    font-size: 11px;
    border-left: 2px solid #e0e0e0;
}
.whc-byurl-toggle-list li {
    padding: 2px 0;
    line-height: 1.4;
    word-break: break-all;
}
.whc-byurl-toggle-list code {
    font-size: 11px;
    background: #f9f9f9;
    padding: 1px 4px;
    border: 1px solid #e0e0e0;
}
.whc-byurl-more {
    color: #888;
    font-style: italic;
}
.whc-byurl-empty {
    text-align: center;
    padding: 40px 20px;
    color: #2e7d32;
}
.whc-byurl-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.whc-byurl-empty-text {
    font-size: 15px;
    font-weight: 600;
}

.whc-summary-category-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.whc-summary-cat-box {
    border: 2px solid #000;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 12px;
}

.whc-summary-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}
.whc-summary-cat-header:hover { background: #222; }
.whc-summary-cat-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.whc-summary-cat-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.whc-summary-cat-score {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 28px;
    text-align: center;
}
.whc-cat-toggle-arrow {
    font-size: 14px;
    opacity: 1;
    min-width: 1em;
    color: #fff;
}
.whc-summary-cat-header .whc-summary-cat-icon,
.whc-summary-cat-header .whc-summary-cat-title { color: inherit; }

/* Tooltip-Icon nur auf Mobil anzeigen (Desktop: Hover) */
.whc-summary-cat-tooltip,
.whc-detail-check-info {
    display: none;
}
@media (max-width: 768px) {
    .whc-summary-cat-tooltip,
    .whc-detail-check-info {
        display: inline-flex;
    }
}

.whc-summary-cat-icon {
    font-size: 1.5em;
    line-height: 1;
}

.whc-summary-cat-title { flex: 1; }

.whc-summary-cat-tooltip {
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-style: italic;
    cursor: help;
}

.whc-summary-cat-body {
    padding: 14px 16px;
    border-top: 1px solid #eee;
}

.whc-detail-check-toggle.whc-cat-toggle-arrow {
    font-size: 12px;
    padding: 4px 8px;
    min-width: 32px;
    cursor: pointer;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    color: #000;
    transition: background .15s, color .15s, border-color .15s;
}
.whc-detail-check-toggle.whc-cat-toggle-arrow:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}
.whc-detail-check-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.whc-detail-check-row:last-child { border-bottom: none; }
.whc-detail-check-row:first-child { padding-top: 0; }

.whc-detail-check-name { flex: 1; min-width: 0; }

.whc-check-skipped { opacity: 0.5; }
.whc-skip-label { font-size: 0.85em; color: #999; font-style: italic; margin-left: 4px; }
.whc-not-eu-hint { margin-bottom: 8px; }

.whc-detail-check-info {
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 0;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-style: italic;
    cursor: help;
}

.whc-detail-check-fraction {
    font-weight: 700;
    min-width: 2.5em;
    text-align: right;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.whc-frac-ok        { color: var(--whc-excellent, #4caf50); }
.whc-frac-mostly-ok { color: #558b2f; }
.whc-frac-avg       { color: var(--whc-average, #ff9800); }
.whc-frac-bad       { color: var(--whc-critical, #f44336); }

.whc-detail-check-toggle {
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #000;
    border-radius: 0;
    background: #fff;
    color: #000;
}

.whc-detail-check-urls {
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.6;
}

.whc-detail-check-urls a {
    word-break: break-all;
    color: #0073aa;
    text-decoration: none;
}
.whc-detail-check-urls a:hover { text-decoration: underline; }

.whc-detail-subhead {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin: 16px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.whc-detail-subhead:first-child { margin-top: 0; }

/* ── Aufklappbare Check-Gruppen ── */
.whc-check-group { margin-bottom: 2px; }
.whc-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
    transition: background 0.15s;
}
.whc-group-header:hover { background: #eef1f5; }
.whc-group-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    color: #999;
    flex-shrink: 0;
}
.whc-group-collapsed .whc-group-arrow { transform: rotate(-90deg); }
.whc-group-collapsed .whc-group-body { display: none; }
.whc-group-body {
    padding: 0 0 0 18px;
    border-left: 2px solid #e8e8e8;
    margin-left: 14px;
}
.whc-group-header .whc-check-icon { font-size: 13px; flex-shrink: 0; }
.whc-group-header .whc-check-name { flex: 1; }
.whc-group-header .whc-check-score {
    min-width: 30px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

/* ── Summary-Kategorie-Karten: Aufklappbare Gruppen ── */
.whc-summary-group { margin-bottom: 2px; }
.whc-summary-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
    transition: background 0.15s;
}
.whc-summary-group-header:hover { background: #eef1f5; }
.whc-summary-group-header .whc-group-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    color: #999;
    flex-shrink: 0;
}
.whc-summary-group-header .whc-detail-check-name { flex: 1; }
.whc-summary-group-header .whc-detail-check-fraction {
    min-width: 40px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}
.whc-summary-group-collapsed .whc-group-arrow { transform: rotate(-90deg); }
.whc-summary-group-collapsed .whc-summary-group-body { display: none; }
.whc-summary-group-body {
    padding: 0 0 0 18px;
    border-left: 2px solid #e8e8e8;
    margin-left: 14px;
}

.whc-detail-urls-ok   { margin-bottom: 8px; color: #2e7d32; }
.whc-detail-urls-ok strong { font-weight: 700; }
.whc-detail-urls-fail { color: #c62828; }
.whc-detail-urls-fail strong { font-weight: 700; }

/* Phase 7.2: Probleme nach Kategorie */
.whc-summary-problems {
    margin-bottom: 24px;
}
.whc-summary-problems h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.whc-problems-cat {
    margin-bottom: 8px;
    border: 2px solid #eee;
    overflow: hidden;
}
.whc-problems-cat-toggle {
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 0;
    background: #fafafa;
    cursor: pointer;
    transition: background .15s;
}
.whc-problems-cat-toggle:hover { background: #f0f0f0; }
.whc-problems-cat-body { padding: 12px 14px; font-size: 13px; border-top: 1px solid #eee; }
.whc-problems-item { margin-bottom: 8px; }
.whc-problems-item a { word-break: break-all; color: #0073aa; text-decoration: none; }
.whc-problems-item a:hover { text-decoration: underline; }

/* Status overview */
.whc-summary-status {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.whc-summary-status h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
}

.whc-status-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.whc-status-box {
    text-align: center;
    padding: 12px 20px;
    border: 2px solid var(--whc-border);
    border-radius: 0;
    min-width: 80px;
}

.whc-st-ok       { background: #e8f5e9; }
.whc-st-redirect { background: #fff3e0; }
.whc-st-error    { background: #ffebee; }

.whc-st-code {
    font-size: 18px;
    font-weight: 700;
}

.whc-st-count {
    font-size: 13px;
    color: var(--whc-muted);
    margin-top: 2px;
}

/* ════════════════════════════════════════════
   URL TABLE (in summary)
   ════════════════════════════════════════════ */

.whc-summary-table-wrap {
    margin-bottom: 24px;
    overflow-x: auto;
    border: 2px solid #eee;
    background: #fff;
}

.whc-summary-table-wrap h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    padding: 12px 14px;
    background: #fafafa;
    border-bottom: 2px solid #eee;
}

.whc-summary-table-wrap .whc-url-table {
    margin: 0;
}

.whc-url-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.whc-url-table th {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 8px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}
.whc-url-table th:first-child,
.whc-url-table th:nth-child(4) {
    text-align: left;
}
.whc-url-table th:nth-child(2) {
    text-align: center;
}
.whc-url-table th:nth-child(n+4) {
    text-align: center;
}

.whc-url-table td {
    border: 1px solid #eee;
    padding: 6px 10px;
    vertical-align: middle;
    text-align: center;
}
.whc-url-table td.whc-tbl-url,
.whc-url-table td.whc-tbl-title {
    text-align: left;
}
/* Noindex-Zeilen ausgegraut */
.whc-url-table tr.whc-tbl-noindex {
    opacity: 0.5;
}
.whc-url-table td.whc-status-noindex {
    color: #999;
    font-style: italic;
    font-size: 11px;
}

.whc-url-table tbody tr:hover { background: #fafafa; }

.whc-tbl-url {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whc-tbl-url a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.whc-tbl-url a:hover { text-decoration: underline; }
.whc-tbl-size {
    display: inline-block;
    margin-left: 4px;
    color: #888;
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
}

.whc-tbl-status {
    text-align: center;
    font-weight: 700;
}

.whc-tbl-title {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: var(--whc-muted);
}

.whc-tbl-score {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

.whc-tbl-overall {
    font-size: 14px;
}

/* ════════════════════════════════════════════
   404 SECTION (in summary)
   ════════════════════════════════════════════ */

.whc-summary-404 {
    background: #fff;
    border: 2px solid var(--whc-critical);
    border-radius: 0;
    margin-top: 20px;
    overflow: hidden;
}

.whc-summary-404 h3 {
    margin: 0;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--whc-critical);
}

.whc-summary-404-list {
    padding: 12px 14px;
}

.whc-404-item {
    padding: 8px 10px;
    background: #fff8f8;
    border: 1px solid #eee;
    margin-bottom: 5px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whc-404-item a {
    color: #0073aa;
    text-decoration: none;
    word-break: break-all;
}

.whc-404-item a:hover { text-decoration: underline; }

.whc-404-icon { color: var(--whc-critical); font-weight: 700; }

.whc-404-more {
    font-size: 12px;
    color: #888;
    font-style: italic;
    padding-top: 5px;
}

/* ── Ergebnis-Überschriften ── */
.whc-results-heading {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 0 20px;
    padding: 0 0 12px;
    line-height: 1.3;
    border-bottom: 2px solid #000;
}
.whc-results-heading-pages {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 16px;
    padding: 0 0 10px;
    border-bottom: 2px solid #eee;
}

/* "Zur Detailübersicht"-Button */
.whc-summary-detail-btn-wrap {
    margin-top: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 100%;
    width: 100%;
}
.whc-btn-to-details {
    display: inline-block;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.whc-btn-to-details:hover,
.whc-btn-to-details:focus {
    background: #fff;
    color: #000;
    text-decoration: none;
}

.whc-results-disclaimer {
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 12px 16px;
    margin: 16px 0 0;
    background: #fafafa;
    border: 2px solid #eee;
    line-height: 1.5;
}

/* ── Bug-Report ── */
.whc-bug-report {
    text-align: center;
    padding: 20px;
    margin-top: 24px;
    border: 2px solid #eee;
    background: #fafafa;
}
.whc-bug-report-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.whc-bug-report-title {
    font-weight: 700;
    color: #333;
}
.whc-bug-report-link {
    display: inline-block;
    background: #03742d;
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #000;
    margin-left: 6px;
}
.whc-bug-report-link:hover {
    background: #000;
    color: #fff;
}
.whc-bug-report-attach {
    margin-top: 10px;
}
.whc-bug-report-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    user-select: none;
}
.whc-bug-checkbox-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.whc-bug-checkbox-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}
.whc-bug-checkbox-box.whc-bug-checkbox-checked {
    border-color: #03742d;
    background: #03742d;
}
.whc-bug-checkbox-box.whc-bug-checkbox-checked::after {
    content: '\2713';
    position: absolute;
    top: -1px;
    left: 2px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
}
.whc-bug-report-hint {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    padding: 10px 14px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    text-align: left;
}
.whc-bug-report-hint p {
    margin: 0 0 8px 0;
    font-size: 12px;
}
.whc-btn-save-report {
    display: inline-block;
    background: #03742d;
    color: #fff;
    border: 2px solid #000;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.whc-btn-save-report:hover {
    background: #000;
    color: #fff;
}

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET (≤768px)
   ════════════════════════════════════════════ */

@media (max-width: 768px) {
    .whc-input-group { flex-direction: column; gap: 10px; }

    .whc-btn, .whc-input { width: 100%; }

    .whc-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .whc-premium-link {
        display: inline;
        background: none;
        border: none;
        color: var(--whc-excellent);
        font-size: 12px;
        font-weight: 600;
        padding: 0;
        min-width: auto;
        text-decoration: underline;
        cursor: pointer;
    }
    .whc-premium-link:hover { color: #000; }

    /* Mobil: Kategorie-Details eingeklappt */
    .whc-cat-body-desktop-open { display: none; }
    .whc-cat-arrow { display: inline-block; }
    .whc-cat-toggle { cursor: pointer; }

    .whc-badges-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .whc-badge-icon { font-size: 16px; }
    .whc-badge-score { font-size: 16px; }
    .whc-badge-label { font-size: 9px; }

    .whc-card-header { flex-direction: column; align-items: center; text-align: center; }

    .whc-card-meta-line { justify-content: center; }

    .whc-card-actions { flex-direction: column; }
    .whc-btn-speed, .whc-btn-details { max-width: 100%; }

    .whc-speed-grid { grid-template-columns: 1fr 1fr; }
    .whc-speed-title { text-align: center; }
    .whc-speed-done-label { text-align: center; }
    .whc-speed-retest-area { text-align: center; }
    .whc-btn-speed { display: block; margin: 0 auto; }

    .whc-summary-top { flex-direction: column; text-align: left; }
    .whc-summary-compact {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }
    .whc-summary-compact-body { text-align: center; }
    .whc-summary-compact-intro { text-align: center; }
    .whc-summary-compact-top-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
    }
    .whc-summary-compact-thumb { order: 2; flex-shrink: 0; }
    .whc-summary-compact-ring { order: 1; }
    .whc-summary-compact-cats { justify-content: center; }

    .whc-bar-label { min-width: 100px; font-size: 12px; }

    .whc-url-table { font-size: 11px; }
    .whc-tbl-url { max-width: 120px; }
    .whc-tbl-title { max-width: 100px; }

    .whc-status-grid { justify-content: center; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤480px)
   ════════════════════════════════════════════ */

@media (max-width: 480px) {
    .whc-header h2 { font-size: 20px; }

    .whc-badges-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .whc-score-badge { padding: 8px 4px; }
    .whc-badge-icon { font-size: 14px; }
    .whc-badge-score { font-size: 14px; }
    .whc-badge-label { font-size: 8px; }

    .whc-page-card { padding: 15px; }

    .whc-cat-toggle { padding: 8px 10px; font-size: 13px; }
    .whc-cat-icon { font-size: 15px; }

    .whc-check-row { font-size: 12px; gap: 6px; }

    .whc-summary-dashboard { padding: 15px; }
    .whc-dashboard-tabs { flex-direction: column; }
    .whc-tab-btn { border-right: none; border-bottom: 2px solid #000; }
    .whc-tab-btn:last-child { border-bottom: none; }
    .whc-byurl-header { flex-wrap: wrap; gap: 6px; }
    .whc-byurl-url { min-width: calc(100% - 80px); }
    .whc-summary-headline h2 { font-size: 18px; }
    .whc-summary-ring .whc-ring-text { font-size: 22px; }

    .whc-score-bar-row { flex-wrap: wrap; }
    .whc-bar-label { min-width: 100%; font-size: 12px; }

    .whc-status-box { min-width: 60px; padding: 8px 12px; }
    .whc-st-code { font-size: 14px; }

    .whc-progress { padding: 12px; }
    .whc-progress-title { font-size: 16px; }

    .whc-summary-compact { flex-wrap: wrap; gap: 10px; padding: 12px; }
    .whc-summary-compact-flow { font-size: 13px; }
    .whc-summary-compact-cats { gap: 8px; font-size: 12px; }
    .whc-summary-cat-box .whc-summary-cat-header { padding: 10px 12px; font-size: 14px; }
    .whc-card-hints { font-size: 11px; }
}

/* ════════════════════════════════════════════
   TEXT TRUNCATE / EXPAND
   ════════════════════════════════════════════ */

.whc-trunc {
    display: inline;
}

.whc-full {
    display: inline;
    word-break: break-word;
}

.whc-expand-btn {
    display: inline;
    margin-left: 2px;
    padding: 0;
    background: none;
    color: #000;
    border: none;
    font-size: 13px;
    cursor: pointer;
    vertical-align: baseline;
    font-weight: 700;
    letter-spacing: 1px;
}

.whc-expand-btn:hover {
    color: var(--whc-excellent);
}

/* Speed loading indicator */
.whc-speed-loading {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--whc-muted);
    background: var(--whc-bg);
}

/* ════════════════════════════════════════════
   PRINT STYLES
   ════════════════════════════════════════════ */

@media print {
    .whc-btn,
    .whc-btn-speed,
    .whc-btn-details,
    .whc-premium-link,
    .whc-premium-section,
    .whc-progress,
    .whc-card-actions { display: none !important; }

    .whc-page-card,
    .whc-summary-dashboard { page-break-inside: avoid; }

    .whc-details-area { display: block !important; }
    .whc-cat-body { display: block !important; }
}

/* ════════════════════════════════════════════
 * TEST TYPE TOGGLE BUTTONS
 * ════════════════════════════════════════════ */

.whc-test-types {
    margin: 16px 0 12px;
}

.whc-test-type-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whc-test-type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.whc-test-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #ccc;
    border-radius: 0;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.whc-test-type-btn .whc-tt-icon {
    font-size: 16px;
    line-height: 1;
}

.whc-test-type-btn .whc-tt-check {
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    background: var(--whc-active);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Active state */
.whc-test-type-btn.active {
    border-color: var(--whc-active);
    background: var(--whc-active-bg);
    color: var(--whc-active-dark);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.whc-test-type-btn.active .whc-tt-check {
    opacity: 1;
    background: var(--whc-active-dark);
}

/* Locked (Basis) */
.whc-test-type-btn.locked {
    border-color: var(--whc-active);
    background: var(--whc-active-bg);
    color: var(--whc-active-dark);
    cursor: default;
}

.whc-test-type-btn.locked .whc-tt-check {
    opacity: 1;
    background: var(--whc-active-dark);
}

/* Hover */
.whc-test-type-btn:not(.locked):not(.whc-tt-locked-scanning):hover {
    border-color: var(--whc-disabled-text);
    background: #eee;
}

.whc-test-type-btn.active:not(.locked):not(.whc-tt-locked-scanning):hover {
    border-color: var(--whc-active-dark);
    background: var(--whc-active-bg-hover);
}

/* Disabled during scan */
.whc-test-type-btn.whc-tt-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.whc-test-type-btn.whc-tt-locked-scanning {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── PSI-Option Checkbox ── */

.whc-psi-option {
    margin-top: 10px;
}
.whc-psi-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}
.whc-psi-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.whc-psi-label .whc-custom-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 2px solid #999;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.whc-psi-label .whc-custom-check::after {
    content: '';
    display: block;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
    opacity: 0;
    transition: opacity 0.15s;
}
.whc-psi-label input[type="checkbox"]:checked + .whc-custom-check {
    background: #FF9800;
    border-color: #FF9800;
}
.whc-psi-label input[type="checkbox"]:checked + .whc-custom-check::after {
    opacity: 1;
}
.whc-psi-label input[type="checkbox"]:focus-visible + .whc-custom-check {
    outline: 2px solid #FF9800;
    outline-offset: 2px;
}

/* ── enter:speed Timing-Anzeige ── */

.whc-enter-speed-area {
    margin: 10px 0;
}
.whc-timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin: 8px 0;
}
.whc-timing-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}
.whc-timing-card .whc-timing-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.whc-timing-card .whc-timing-value {
    font-size: 18px;
    font-weight: 700;
}
.whc-timing-card.timing-good .whc-timing-value { color: var(--whc-excellent, #0cce6b); }
.whc-timing-card.timing-avg .whc-timing-value { color: var(--whc-average, #ffa400); }
.whc-timing-card.timing-bad .whc-timing-value { color: var(--whc-poor, #ff4e42); }
.whc-timing-source {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
}
.whc-timing-source strong {
    color: #555;
}
.whc-crux-badge {
    font-size: 12px;
    margin-top: 4px;
    color: #555;
}
.whc-crux-badge small {
    color: #888;
}
/* ── Einzelseiten-Checkbox (custom, theme-unabhaengig) ── */

.whc-single-page-option {
    margin-top: 10px;
}
.whc-single-page-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}
/* Native Checkbox verstecken */
.whc-single-page-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
/* Custom Checkbox-Box */
.whc-single-page-label .whc-custom-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #999;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.whc-single-page-label .whc-custom-check::after {
    content: '';
    display: block;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
    opacity: 0;
    transition: opacity 0.15s;
}
/* Checked State */
.whc-single-page-label input[type="checkbox"]:checked + .whc-custom-check {
    background: #4CAF50;
    border-color: #4CAF50;
}
.whc-single-page-label input[type="checkbox"]:checked + .whc-custom-check::after {
    opacity: 1;
}
/* Focus State */
.whc-single-page-label input[type="checkbox"]:focus-visible + .whc-custom-check {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* ── Test Type Notices ── */

.whc-test-notice {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.5;
    animation: whc-fadeIn 0.3s ease;
}

.whc-test-notice a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.whc-test-notice a:hover {
    text-decoration: none;
}

.whc-notice-speed {
    background: #FFF8E1;
    border: 1px solid #FFD54F;
    color: #795548;
}

.whc-notice-a11y {
    background: #E8EAF6;
    border: 1px solid #9FA8DA;
    color: #3F51B5;
}

@keyframes whc-fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Disabled score styles ── */

.whc-score-badge.whc-score-disabled {
    opacity: 0.45;
    background: #f0f0f0;
    border-color: #ccc;
}

.whc-score-badge.whc-score-disabled .whc-badge-score {
    color: #999;
}

.whc-score-bar-row.whc-bar-disabled {
    opacity: 0.45;
}

.whc-bar-fill.whc-bg-disabled {
    background: #ccc;
}

.whc-text-disabled {
    color: #bbb !important;
}

/* ── Responsive for test type buttons ── */

@media (max-width: 600px) {
    .whc-test-type-buttons {
        gap: 6px;
    }
    
    .whc-test-type-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .whc-test-type-btn .whc-tt-icon {
        font-size: 14px;
    }
    
    .whc-test-type-btn .whc-tt-check {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .whc-test-type-btn .whc-tt-name {
        display: none;
    }
}

/* ============================================
 *   PHASE 1: HTML SIZE BADGE
 *   ============================================ */

.whc-size-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}

.whc-size-ok {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.whc-size-bad {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ============================================
 *   PHASE 1: PRIVACY DISCLAIMER
 *   ============================================ */

.whc-privacy-disclaimer {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f5f5f5;
    border-left: 3px solid #9e9e9e;
    font-size: 12px;
    color: #616161;
    line-height: 1.5;
    border-radius: 0;
}


/* ============================================
 *   PHASE 2+3: PROGRESS PHASE BOXES
 *   ============================================ */

.whc-phase-overview {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.whc-phase-box {
    flex: 1 1 120px;
    min-width: 100px;
    padding: 8px 10px;
    border: 2px solid #000;
    border-radius: 0;
    background: #fff;
    transition: all 0.3s ease;
}

.whc-phase-title {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 4px;
}

.whc-phase-detail {
    font-size: 11px;
    color: #999;
    min-height: 16px;
    line-height: 1.4;
}

/* Phase states */
.whc-phase-pending {
    opacity: 0.45;
    border-color: #000;
}

.whc-phase-active {
    opacity: 1;
    border-color: #81c784;
    background: #e8f5e9;
    box-shadow: 0 0 0 1px #a5d6a7;
}
.whc-phase-active .whc-phase-title {
    color: #388e3c;
}
.whc-phase-active .whc-phase-detail {
    color: #43a047;
    font-weight: 500;
    animation: whcPulseText 1.5s infinite;
}

.whc-phase-done {
    opacity: 1;
    border-color: #2e7d32;
    background: #c8e6c9;
}
.whc-phase-done .whc-phase-title {
    color: #1b5e20;
}
.whc-phase-done .whc-phase-detail {
    color: #2e7d32;
}

@keyframes whcPulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
 *   PHASE 2+3: SUMMARY SKELETON
 *   ============================================ */

.whc-summary-loading {
    opacity: 0.5;
    pointer-events: none;
}

.whc-skeleton-pulse {
    animation: whcSkeletonPulse 1.5s ease-in-out infinite;
}

@keyframes whcSkeletonPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.whc-skeleton-bar .whc-bar-fill {
    background: #e0e0e0 !important;
    animation: whcSkeletonPulse 1.5s ease-in-out infinite;
}

.whc-skeleton-text {
    color: #999;
    font-style: italic;
}

.whc-skeleton-hint {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #999;
    font-style: italic;
}

.whc-bar-disabled {
    opacity: 0.35;
}

/* ============================================
 *   PHASE 3: LIMIT ERROR (above URL input)
 *   ============================================ */

.whc-limit-error {
    background: #fff8e1;
    color: #000;
    border: 2px solid #ff9800;
    border-radius: 0;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* ============================================
 *   PHASE 2+3: RESPONSIVE
 *   ============================================ */

@media (max-width: 768px) {
    .whc-progress { padding: 14px; margin: 16px 0; }
    .whc-progress-title { font-size: 16px; }
    .whc-progress-timer { font-size: 13px; padding: 3px 8px; }
    .whc-step { gap: 10px; padding: 8px 0; }
    .whc-step-icon { width: 24px; height: 24px; font-size: 11px; }
    .whc-step-title { font-size: 13px; }
    .whc-step-detail { font-size: 11px; }
    .whc-substeps { font-size: 11px; }
    .whc-spinner { width: 12px; height: 12px; }
}
@media (max-width: 480px) {
    .whc-progress-header { gap: 8px; }
    .whc-progress-title { font-size: 15px; }
    .whc-step-icon { width: 22px; height: 22px; font-size: 10px; }
    .whc-step-title { font-size: 12px; }
    .whc-step-detail { font-size: 10px; }
    .whc-substeps { font-size: 10px; }
    .whc-header h2 { font-size: 18px; }
    .whc-input-group { flex-direction: column; }
    .whc-input-group .whc-btn { width: 100%; }
    .whc-checker-widget { font-size: 15px; }
    .whc-progress-error { padding: 16px 12px; }
    .whc-progress-error-icon { font-size: 28px; }
    .whc-progress-error-msg { font-size: 13px; }
    .whc-progress-error-btn { width: 100%; padding: 10px; font-size: 14px; }
    .whc-fatal-error { padding: 20px 14px; }
    .whc-fatal-error-icon { font-size: 32px; }
    .whc-fatal-error-title { font-size: 16px; }
    .whc-fatal-error-msg { font-size: 13px; }
    .whc-fatal-error-actions { flex-direction: column; }
    .whc-fatal-btn-retry, .whc-fatal-btn-contact { width: 100%; text-align: center; }
    .whc-bug-report-link { display: block; margin: 8px auto 0; text-align: center; max-width: 200px; margin-left: 0; }
    .whc-bug-report-checkbox-label { font-size: 11px; }
    .whc-btn-save-report { width: 100%; }
}

/* Phase 2.4: Premium active green notice */
.whc-premium-active-notice {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border: 2px solid #66bb6a !important;
    border-radius: 0;
    padding: 8px 12px;
    font-weight: 600;
}

/* Phase 4.4: "Aktiv:" nur auf mobil anzeigen */
.whc-active-tests-display {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    display: none;
    flex-wrap: wrap;
    gap: 4px;
}
@media (max-width: 768px) {
    .whc-active-tests-display { display: flex; }
    .whc-active-test-tag {
        background: none !important;
        border: none !important;
        padding: 2px 4px !important;
        font-size: 12px;
    }
    .whc-active-legend { display: none !important; }
}
.whc-active-label { font-weight: 600; margin-right: 4px; }
.whc-active-test-tag {
    display: inline-block;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 0;
    padding: 2px 10px;
    font-size: 12px;
    white-space: nowrap;
}
.whc-active-legend {
    display: none;
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .whc-active-legend { display: block; }
}

/* Phase 3: Legal Disclaimers */
.whc-legal-disclaimer {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 0;
    font-size: 12px;
    color: #5d4037;
    font-style: italic;
}

/* Phase 3: Info notes for skipped checks */
.whc-detail-note.whc-note-info {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
}

/* ════════════════════════════════════════════
   Status Code Colors
   ════════════════════════════════════════════ */

.whc-status-ok { background: #e8f5e9; color: #2e7d32; }
.whc-status-redirect { background: #fff3e0; color: #e65100; }
.whc-status-notfound { background: #ffebee; color: #c62828; }
.whc-status-clienterr { background: #fce4ec; color: #ad1457; }
.whc-status-error { background: #ffcdd2; color: #b71c1c; }
.whc-status-warn { background: #fff8e1; color: #f57f17; }

/* Status pill in table */
.whc-tbl-status.whc-status-redirect { color: #e65100; font-weight: 600; }
.whc-tbl-status.whc-status-notfound { color: #c62828; font-weight: 700; }
.whc-tbl-status.whc-status-error { color: #b71c1c; font-weight: 700; }
.whc-tbl-status.whc-status-clienterr { color: #ad1457; font-weight: 600; }

/* ════════════════════════════════════════════
   Anchor Links in Summary
   ════════════════════════════════════════════ */

.whc-summary-detail-link {
    display: inline-block;
    font-size: 12px;
    color: #1976d2;
    text-decoration: none;
    margin: -4px 0 8px 0;
    padding: 2px 8px;
    border: 1px solid #90caf9;
    border-radius: 0;
    background: #e3f2fd;
    cursor: pointer;
    transition: all 0.2s;
}
.whc-summary-detail-link:hover {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

/* ════════════════════════════════════════════
   Highlight Flash Animation
   ════════════════════════════════════════════ */

@keyframes whcFlash {
    0% { box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(25, 118, 210, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(25, 118, 210, 0); }
}

.whc-highlight-flash {
    animation: whcFlash 1s ease-out 2;
    border-color: #1976d2 !important;
}

/* ════════════════════════════════════════════
   Speed Not Tested Hint
   ════════════════════════════════════════════ */

.whc-speed-not-tested {
    font-size: 12px;
    color: #5d4037;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 0;
    padding: 6px 10px;
    margin: -4px 0 8px 0;
    font-style: italic;
}

/* ════════════════════════════════════════════
   Redirect & Error Styles
   ════════════════════════════════════════════ */

/* Blocking Error (über URL-Input) */
.whc-blocking-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 0;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: whcSlideDown 0.3s ease-out;
}

.whc-blocking-error-icon {
    font-size: 16px;
    flex-shrink: 0;
}

@keyframes whcSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Crawl-Alert-Box (fehlende robots.txt / Sitemap) ── */
.whc-crawl-alert-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #f9a825;
    color: #5d4037;
    padding: 12px 16px;
    border-radius: 0;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}
.whc-crawl-alert-box strong {
    color: #e65100;
}
.whc-crawl-alert-box.whc-info-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-left: 4px solid #1976d2;
    color: #1a237e;
}
.whc-crawl-alert-box.whc-info-box strong {
    color: #0d47a1;
}

/* Redirect-Notice (unter Skeleton, über Cards) */
.whc-redirect-notice {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
    padding: 10px 14px;
    border-radius: 0;
    margin-bottom: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.whc-redirect-notice.whc-redirect-minor {
    background: #fefce8;
    border-color: #fde68a;
    border-left-color: #f59e0b;
    color: #92400e;
}

.whc-redirect-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.whc-redirect-arrow {
    color: #6b7280;
    font-size: 12px;
}

.whc-redirect-notice small {
    color: #6b7280;
    font-size: 11px;
}

/* Status-Pill für Redirects in Page Cards */
.whc-redirect-pill {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 0;
    margin-left: 2px;
}

.whc-redirect-chain-pill {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 0;
    margin-left: 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(67,56,202,0.2);
    user-select: none;
}
.whc-redirect-chain-pill:hover,
.whc-redirect-chain-pill:focus {
    background: #c7d2fe;
    outline: 2px solid #4338ca;
    outline-offset: 1px;
}
.whc-redirect-chain-detail {
    background: #f0f0f5;
    color: #333;
    font-size: 11px;
    padding: 6px 10px;
    margin-top: 4px;
    border-left: 3px solid #4338ca;
    word-break: break-all;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .whc-redirect-notice {
        font-size: 12px;
        padding: 8px 10px;
    }
    .whc-redirect-notice strong {
        word-break: break-all;
    }
    .whc-blocking-error {
        font-size: 13px;
    }
}

/* ════════════════════════════════════════════
   STATS COMPACT, META, CARDS, SUMMARY (Weiß/Schwarz, kein Radius)
   ════════════════════════════════════════════ */

.whc-stats-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1vw;
    margin-bottom: 1vw;
    align-items: stretch;
}

.whc-stat-compact {
    padding: 1vw;
    text-align: center;
    border: 2px solid #000;
    border-radius: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.whc-stat-icon {
    font-size: 20px;
    color: #000;
    font-weight: 400;
    line-height: 1;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    order: 3; /* Icon unter der Zahl */
}

.whc-stat-label {
    font-size: 12px;
    font-weight: 400;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    height: 28px;
    margin-bottom: 0.3vw;
    order: 1; /* Label oben */
}

.whc-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 20px;
    order: 2; /* Zahl in der Mitte */
    margin-bottom: 0.3vw;
}

.whc-stat-speed {
    padding: 1vw;
    text-align: center;
    border: 2px solid #000;
    border-radius: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.whc-stat-speed .whc-stat-icon { height: 24px; display: flex; align-items: center; justify-content: center; }
.whc-stat-speed .whc-stat-label { height: 28px; display: flex; align-items: center; justify-content: center; }
.whc-stat-speed .whc-stat-value { height: 20px; display: flex; align-items: center; justify-content: center; }

.whc-meta-row {
    font-size: 13px;
    color: #000;
    margin-bottom: 0.5vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
    max-width: 100%;
}

.whc-meta-row span { display: inline-block; max-width: 100%; word-wrap: break-word; overflow-wrap: break-word; word-break: break-word; }
.whc-meta-row:last-child { margin-bottom: 0; }
.whc-meta-row strong { color: #000; font-weight: 600; }
.whc-meta-row span { color: #000; }
.whc-meta-row small { color: #000; }
.whc-meta-label { font-weight: 600; color: #000; }
.whc-meta-warning { color: #000; }

.whc-meta-compact {
    padding: 1vw;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    margin-bottom: 1vw;
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
}

.whc-result-card {
    padding: 1vw;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    margin-bottom: 1vw;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
}

.whc-text-truncated,
.whc-text-full {
    display: inline;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.whc-summary {
    padding: 1vw;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    margin-top: 1vw;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.whc-summary h2 { font-size: 22px; font-weight: 700; color: #000; margin-bottom: 1vw; }

.whc-stats-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1vw;
    margin-bottom: 1vw;
    width: 100%;
    max-width: 100%;
}

.whc-stat-column {
    padding: 1vw;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    text-align: center;
    min-height: 200px;
}

.whc-stat-column h3 { font-size: 24px; font-weight: 600; color: #000; margin: 1vw 0; text-transform: uppercase; }
.whc-stat-number { font-size: 80px; font-weight: 700; color: #000; margin: 1vw 0; }

.whc-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1vw;
    width: 100%;
    max-width: 100%;
    margin-top: 1vw;
}

.whc-errors-section,
.whc-urls-section {
    padding: 2vw;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    max-height: 500px;
    overflow-y: auto;
    min-width: 0;
    word-wrap: break-word;
}

.whc-errors-section h3,
.whc-urls-section h3 { font-size: 24px; font-weight: 600; color: #000; margin-bottom: 1vw; }

.whc-error-group {
    margin-bottom: 1vw;
    padding-bottom: 1vw;
    border-bottom: 2px solid #000;
}

.whc-error-group:last-child { border-bottom: none; }
.whc-error-group .whc-url-link { margin-left: 0 !important; padding-left: 0 !important; }
.whc-error-group > div { margin-left: 0 !important; padding-left: 0 !important; }

.whc-error-type { font-size: 14px; font-weight: 600; color: #000; margin-bottom: 0.5vw; }

.whc-url-item {
    margin-bottom: 1vw;
    padding-bottom: 1vw;
    border-bottom: 2px solid #000;
    word-wrap: break-word;
    overflow: hidden;
    max-width: 100%;
}

.whc-url-item:last-child { border-bottom: none; }
.whc-url-item .whc-meta-row { overflow: hidden; text-overflow: ellipsis; }

.whc-url-link {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
    display: block;
    margin-bottom: 0.5vw;
}

.whc-url-link:hover { text-decoration: underline; }

.whc-speed-header { font-size: 20px; font-weight: 600; color: #000; margin-bottom: 1vw; }


.whc-warning-icon,
.whc-warning-icon-small { color: #000; }

.whc-warning-text,
.whc-error-text {
    padding: 1vw;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    color: #000;
    margin-top: 1vw;
}

.whc-checker-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Responsive: Stats compact & mobile overflow */
@media (max-width: 1200px) {
    .whc-summary h2 { font-size: 20px; }
    .whc-stat-column h3 { font-size: 12px; }
    .whc-stat-number { font-size: 36px; }
    .whc-errors-section h3,
    .whc-urls-section h3 { font-size: 16px; }
}

@media (max-width: 768px) {
    .whc-stats-compact { grid-template-columns: repeat(2, 1fr); }
    .whc-stat-compact { min-height: 70px; padding: 0.8vw; }
    .whc-stat-icon { height: 18px; font-size: 16px; margin-bottom: 0.4vw; }
    .whc-stat-label { font-size: 9px; height: 22px; line-height: 1.1; }
    .whc-stat-value { font-size: 13px; height: 16px; font-weight: 700; }
    .whc-stat-speed { min-height: 70px; padding: 0.8vw; }
    .whc-stat-speed .whc-stat-icon { height: 18px; font-size: 16px; }
    .whc-stat-speed .whc-stat-label { font-size: 9px; height: 22px; }
    .whc-stat-speed .whc-stat-value { font-size: 13px; height: 16px; }
    .whc-summary h2 { font-size: 18px; }
    .whc-stat-column h3 { font-size: 11px; }
    .whc-stat-number { font-size: 28px; }
    .whc-errors-section h3,
    .whc-urls-section h3 { font-size: 14px; }
    .whc-error-type { font-size: 12px; }
    .whc-url-link { font-size: 12px; }
    .whc-meta-row { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
    .whc-text-truncated,
    .whc-text-full { max-width: 100%; word-break: break-all; }
    .whc-content-grid { grid-template-columns: 1fr; }
    .whc-stats-box { grid-template-columns: 1fr; }
    /* Speed-Kästen in Karten mobil verkleinern (wie andere Karten-Inhalte) */
    .whc-speed-grid { gap: 6px; }
    .whc-speed-card { padding: 6px 8px; font-size: 12px; }
    .whc-speed-strat { font-size: 10px; margin-bottom: 2px; }
    .whc-speed-time { font-size: 14px; }
    .whc-speed-psi { font-size: 10px; margin-top: 2px; }
    .whc-speed-metrics { margin-top: 4px; gap: 4px; }
    .whc-speed-metrics span { font-size: 10px; padding: 2px 6px; }
    .whc-psi-metrics { margin-top: 8px; padding-top: 6px; }
    .whc-psi-metrics .whc-psi-block { margin-bottom: 6px; }
    .whc-psi-metrics .whc-psi-label { font-size: 11px; margin-bottom: 2px; }
}

@media (max-width: 480px) {
    .whc-stats-compact { grid-template-columns: 1fr; }
    .whc-stat-compact { min-height: 60px; padding: 1vw; }
    .whc-stat-icon { height: 16px; font-size: 14px; }
    .whc-stat-label { font-size: 8px; height: 20px; }
    .whc-stat-value { font-size: 12px; height: 15px; }
    .whc-stat-speed { min-height: 60px; }
    .whc-stat-speed .whc-stat-icon { height: 16px; font-size: 14px; }
    .whc-stat-speed .whc-stat-label { font-size: 8px; height: 20px; }
    .whc-stat-speed .whc-stat-value { font-size: 12px; height: 15px; }
    .whc-summary h2 { font-size: 16px; }
    .whc-stat-column { min-height: 120px; }
    .whc-stat-number { font-size: 32px; }
    .whc-stat-column h3 { font-size: 10px; }
    .whc-errors-section h3,
    .whc-urls-section h3 { font-size: 13px; }
    .whc-meta-row { font-size: 10px; }
    .whc-stat-label { font-size: 10px; }
    .whc-stat-value { font-size: 14px; }
    .whc-expand-btn { font-size: 10px; padding: 1px 6px; }
    /* Speed-Kästen noch kompakter */
    .whc-speed-card { padding: 5px 6px; }
    .whc-speed-strat { font-size: 9px; }
    .whc-speed-time { font-size: 12px; }
    .whc-speed-psi { font-size: 9px; }
    .whc-speed-metrics span { font-size: 9px; padding: 1px 4px; }
    .whc-psi-metrics .whc-psi-label { font-size: 10px; }
}

/* ════════════════════════════════════════════
   CTA unter Score
   ════════════════════════════════════════════ */
.whc-summary-cta {
    margin-top: 16px;
    padding: 14px 18px;
    background: #f8f8f8;
    border: 2px solid #000;
    text-align: center;
}
.whc-summary-cta-text {
    margin: 0 0 10px;
    font-size: 14px;
    color: #000;
    line-height: 1.5;
}
.whc-summary-cta-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--whc-excellent);
    color: #fff;
    border: 2px solid #000;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.whc-summary-cta-btn:hover {
    background: #000;
    color: #fff;
}

/* ════════════════════════════════════════════
   Notes in Kategorie-Details (Backend-editierbar)
   ════════════════════════════════════════════ */
.whc-category-note {
    padding: 10px 14px;
    margin: 8px 0;
    border-left: 4px solid #000;
    background: #f9f9f9;
    font-size: 13px;
    line-height: 1.5;
}
.whc-category-note .whc-note-symbol {
    margin-right: 6px;
    font-size: 14px;
}
/* Farb-Presets für Kategorie-Notes (aus Backend-Settings) */
.whc-category-note.whc-catnote-info {
    border-left-color: #2196f3;
    background: #e3f2fd;
    color: #1565c0;
}
.whc-category-note.whc-catnote-warn {
    border-left-color: #ff9800;
    background: #fff8e1;
    color: #e65100;
}
.whc-category-note.whc-catnote-good {
    border-left-color: #4caf50;
    background: #e8f5e9;
    color: #2e7d32;
}
.whc-category-note.whc-catnote-neutral {
    border-left-color: #9e9e9e;
    background: #f5f5f5;
    color: #616161;
}

/* ════════════════════════════════════════════
   Überschriften-Hierarchie ausklappbar
   ════════════════════════════════════════════ */
.whc-heading-tree { margin: 8px 0; font-size: 13px; }
.whc-heading-tree-toggle {
    cursor: pointer;
    background: #03742d;
    color: #fff;
    border: 2px solid #000;
    padding: 4px 10px;
    font-size: 12px;
    margin-top: 4px;
    transition: background .15s, color .15s;
}
.whc-heading-tree-toggle:hover { background: #000; color: #fff; }
.whc-heading-tree-list { margin: 6px 0 0 0; padding: 0; list-style: none; }
.whc-heading-tree-item { padding: 2px 0; font-size: 12px; }
.whc-heading-tree-item.whc-h-error { color: #d63638; font-weight: 600; }
.whc-heading-tree-item.whc-h-ok { color: #333; }

/* Premium-Status über dem URL-Eingabefeld (nur "Premium aktiviert"-Text) */
.whc-premium-inline {
    display: block;
    margin-bottom: 8px;
    text-align: left;
}
.whc-premium-active-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--whc-excellent);
}
/* Premium-Button innerhalb der Test-Type-Buttons-Zeile */
.whc-premium-btn-row {
    display: flex;
    align-items: center;
    margin-left: auto; /* nach rechts schieben */
}
@media (max-width: 768px) {
    .whc-premium-inline { text-align: center; }
    .whc-premium-active-label { text-align: center; }
    .whc-premium-btn-row {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start; /* linksbuendig unter Testumfang */
    }
}

/* ── Nutzungsbedingungen / Terms of Use Footer ── */
.whc-tos-footer {
    padding: 18px 0 6px;
    margin-top: 12px;
    border-top: 1px solid #eee;
}
.whc-tos-footer-row {
    display: flex;
    align-items: center;
}
.whc-tos-footer-row .whc-version-label {
    flex: 1;
    text-align: left;
    font-size: 11px;
    color: #bbb;
    white-space: nowrap;
}
.whc-tos-footer-row .whc-tos-link {
    flex: 0 0 auto;
}
.whc-tos-footer-row .whc-version-spacer {
    flex: 1;
}
.whc-tos-link {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s;
}
.whc-tos-link:hover {
    color: #666;
    text-decoration: underline;
}
@media (max-width: 480px) {
    .whc-tos-footer-row {
        flex-wrap: wrap;
    }
    .whc-tos-footer-row .whc-version-label {
        order: 2;
        flex: 1 1 100%;
        text-align: center;
        margin-top: 4px;
    }
    .whc-tos-footer-row .whc-tos-link {
        order: 1;
        flex: 1 1 100%;
        text-align: center;
    }
    .whc-tos-footer-row .whc-version-spacer {
        display: none;
    }
}
.whc-tos-date {
    font-size: 11px;
    color: #999;
    margin: 8px 0 0;
    text-align: right;
}
.whc-tos-content {
    text-align: left;
    margin-top: 14px;
    padding: 16px 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #666;
}
.whc-tos-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin: 16px 0 8px;
}
.whc-tos-content h4:first-child {
    margin-top: 0;
}
.whc-tos-content ol {
    margin: 0 0 12px 0;
    padding-left: 22px;
}
.whc-tos-content ol li {
    margin-bottom: 6px;
}
.whc-tos-content ol li strong {
    color: #555;
}

/* HTTP-Error-Badge (404 etc.) in Karten */
.whc-http-error-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d63638;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.whc-card-http-error {
    border-left: 4px solid #d63638;
}
.whc-http-error-sources table {
    width: 100%;
    border-collapse: collapse;
}
.whc-http-error-sources th,
.whc-http-error-sources td {
    text-align: left;
    padding: 3px 8px;
    border-bottom: 1px solid #eee;
}

/* Einzelseiten-Widget */
.whc-wgt-single-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.whc-wgt-single-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
}
.whc-wgt-score-num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.whc-wgt-score-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}
.whc-wgt-score-good { background: #e8f5e9; color: #2e7d32; }
.whc-wgt-score-ok   { background: #fff3e0; color: #ef6c00; }
.whc-wgt-score-bad  { background: #fce4ec; color: #c62828; }
.whc-wgt-single-info { flex: 1; min-width: 0; }
.whc-wgt-single-url {
    word-break: break-all;
    font-size: 14px;
    font-weight: 600;
}
.whc-wgt-single-meta {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}
.whc-wgt-single-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.whc-wgt-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 80px;
    text-align: center;
}
.whc-wgt-cat-score { font-size: 20px; font-weight: 700; line-height: 1; }
.whc-wgt-cat-label { font-size: 10px; margin-top: 2px; }
.whc-wgt-cat-good { background: #e8f5e9; color: #2e7d32; }
.whc-wgt-cat-ok   { background: #fff3e0; color: #ef6c00; }
.whc-wgt-cat-bad  { background: #fce4ec; color: #c62828; }
.whc-wgt-single-warnings {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 13px;
}
.whc-wgt-single-warnings h4 { margin: 0 0 8px; font-size: 14px; }
.whc-wgt-single-warnings ul { margin: 0; padding-left: 20px; }
.whc-wgt-single-warnings li { margin-bottom: 4px; }
.whc-wgt-detail-section {
    margin-bottom: 8px;
}
.whc-wgt-detail-section summary {
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0;
}
.whc-wgt-single-noindex {
    background: #fce4ec;
    color: #c62828;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 13px;
    margin-top: 12px;
}
.whc-wgt-single-error {
    padding: 12px;
}
.whc-wgt-single-http-error {
    margin-top: 8px;
}
.whc-wgt-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}
.whc-wgt-badge-err { background: #fce4ec; color: #c62828; }
.whc-wgt-badge-warn { background: #fff3e0; color: #ef6c00; }
.whc-wgt-badge-ok { background: #e8f5e9; color: #2e7d32; }

/* Info-Badge: "gefunden vs getestet" */
.whc-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    cursor: help;
    vertical-align: middle;
    margin-left: 6px;
    /* Touch-Target mindestens 32x32 */
    min-width: 32px;
    min-height: 32px;
    -webkit-tap-highlight-color: transparent;
}
.whc-info-badge:hover {
    background: #bdbdbd;
}
.whc-info-badge-text {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
    vertical-align: middle;
}
