/* SEORCH Kontrast – Hreflang Check, Quelltext-Vergleich. Benötigt tools-kit.css */

/* ---------- Hreflang ---------- */
.hl .hl-box h4 { margin-bottom: 8px; }
.hl .grid_2 .box { line-height: 1.9; color: var(--text-2); }
.hl .grid_2 .box .red { font-weight: 700; }
.hl .box.tone { color: inherit; }
.hl .box.tone--info { border-left: 4px solid var(--c3); }
.hl .box.tone--wait { border-left: 4px solid var(--c3); }
.hl .box ul { margin: 6px 0 10px; padding-left: 20px; }
.hl .box .badge { margin: 0 0 0 6px; padding: 2px 8px; font-size: 12px; box-shadow: none; }
#summary-errors-box { scroll-margin-top: 110px; }
.hl-note { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); font-size: 15px; }
.hl-note--wait { background: color-mix(in srgb, var(--c3) 8%, var(--glass-2)); border: 1px solid color-mix(in srgb, var(--c3) 30%, transparent); color: var(--text-2); }
.hl-note--ok { background: color-mix(in srgb, var(--c4) 9%, var(--glass-2)); border: 1px solid color-mix(in srgb, var(--c4) 40%, transparent); color: var(--text); }
.hl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.hl-card { --tc: var(--c1); padding: 14px 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--stroke); border-left: 4px solid var(--tc); min-width: 0; }
.hl-card--info { --tc: var(--c3); }
.hl-card--muted { --tc: var(--gray); }
.hl-card header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--stroke); }
.kit-result .hl-card h4 { margin: 0; font: 700 14px var(--font); letter-spacing: 0; text-transform: none; color: var(--text); }
.hl-card .badge-s { --c: var(--tc); }
.hl-card ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.hl-card li { margin-bottom: 6px; overflow-wrap: anywhere; }
.hl-card li::marker { color: var(--tc); }
.hl-running { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; }
.hl .hl-th { white-space: nowrap; }
.hl tr.hl-row > td { vertical-align: top; }
.hl tr.hl-row > td:first-child { width: 1%; font-family: var(--mono); color: var(--muted); }
.hl tr.hl-row > td:nth-child(2) { min-width: 220px; max-width: 360px; font-size: 14px; }
.hl tr.hl-row > td:nth-child(2) small { display: block; color: var(--muted); font-size: 12px; }
.hl tr.hl-row > td:nth-child(2) small > span { display: block; color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.hl tr.hl-row > td:nth-child(2) br { display: none; }
.hl tr.hl-row > td:nth-child(2) > a { display: block; margin-bottom: 10px; font-weight: 700; }
.hl tr.hl-row > td:nth-child(2) small + small, .hl tr.hl-row > td:nth-child(2) small { margin-top: 8px; }
.hl td[data-type="reverse-col"] { min-width: 420px; }
.hl-mwrap { overflow-x: auto; max-width: 100%; }
.hl .hl-matrix { font-size: 13px; border: 1px solid var(--stroke); border-radius: var(--r); }
.kit-result .hl-matrix td { padding: 6px 8px; }
.hl .hl-matrix td:nth-child(-n+2) { width: 1%; white-space: nowrap; font-family: var(--mono); }
.hl-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.hl-st--ok { color: var(--c4); } .hl-st--err { color: var(--c1); } .hl-st--wait { color: var(--c3); font-weight: 500; }
.hl-src, .hl [data-type="source"] .badge-s { margin: 2px 4px 2px 0; text-transform: none; }

/* ---------- Quelltext-Vergleich ---------- */
.cs h1 { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.2; }
.cs h1 a { font-weight: 800; }
.cs h4 .red { display: inline-block; margin-top: 4px; font: 700 15px var(--font); letter-spacing: 0; text-transform: none; }
.cs .grid_1 .box { display: grid; gap: 8px; }
.cs-verdict { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 !important; padding: 12px 16px; border-radius: var(--r); font-size: 18px; text-align: left; }
.cs-verdict.is-diff { background: color-mix(in srgb, var(--c1) 8%, transparent); color: var(--text); }
.cs-verdict.is-same { background: color-mix(in srgb, var(--c4) 8%, transparent); color: var(--text); }
.cs .table td:first-child { width: 1%; min-width: 9.5em; overflow-wrap: normal; hyphens: auto; }
.cs .table td.red { font-weight: 600; }
.cs .table td.red::after { content: " ≠"; color: var(--c1); font-weight: 800; }
code.cs-headers { display: block; padding: 0; background: none; font-size: 12.5px; }
.cs-headers table { font-family: var(--mono); }
.kit-result .cs-headers td { padding: 6px 10px; font-size: 12.5px; }
.cs-headers td:first-child { white-space: nowrap; color: var(--muted); }
.cs-err { padding: 10px 14px; border-radius: var(--r); background: var(--c1); color: #fff; font-weight: 600; }
.cs-diffwrap { max-height: 70vh; overflow: auto; background: var(--bg) !important; }
table.cs-diff { font: 12px/1.5 var(--mono); }
.kit-result table.cs-diff th, .kit-result table.cs-diff td { padding: 3px 8px; border-bottom: 1px solid var(--stroke); font-size: 12px; }
.kit-result table.cs-diff thead th { position: sticky; top: 0; background: var(--glass-2); }
.kit-result table.cs-diff tbody th { width: 1%; text-align: right; color: var(--muted); font: 500 11px var(--mono); letter-spacing: 0; border-right: 1px solid var(--stroke); }
.cs-diff td { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 200px; }
.cs-diff .ChangeEqual td { color: var(--muted); }
.cs-diff .ChangeInsert td { background: color-mix(in srgb, var(--c4) 10%, transparent); }
.cs-diff .ChangeDelete td { background: color-mix(in srgb, var(--c1) 9%, transparent); }
.cs-diff .ChangeReplace td.Left, .DifferencesInline.cs-diff .ChangeReplace .Left { background: color-mix(in srgb, var(--c1) 7%, transparent); }
.cs-diff .ChangeReplace td.Right, .DifferencesInline.cs-diff .ChangeReplace .Right { background: color-mix(in srgb, var(--c4) 8%, transparent); }
.cs-diff ins { text-decoration: none; background: color-mix(in srgb, var(--c4) 30%, transparent); }
.cs-diff del { background: color-mix(in srgb, var(--c1) 25%, transparent); }
.cs-diff .Skipped { display: none; }

@media (max-width: 680px) {
  .hl tr.hl-row, .hl tr.hl-row > td { display: block; width: auto !important; min-width: 0 !important; max-width: none !important; }
  .hl tr.hl-row > td:first-child { padding-bottom: 0; font-weight: 700; }
  .hl tr.hl-row > td[data-type="reverse-col"] { padding-top: 0; }
  .hl .kit-scroll > table.crawlresult > thead { display: none; }
  .hl .kit-scroll > table.crawlresult, .hl .kit-scroll > table.crawlresult > tbody { display: block; }
  .hl .hl-matrix td:nth-child(3) { min-width: 180px; }
  .cs-verdict { font-size: 16px; }
}
