/* SEORCH Kontrast – Content Briefing: Schritte, Keyword-Wolke, Wettbewerberauswahl, Briefing, Editor.
   Benötigt tools-kit.css */

/* Schrittanzeige */
.cb-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cb-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 8px; background: var(--glass); border: 1px solid var(--stroke); font-size: 14px; font-weight: 600; color: var(--muted); }
.cb-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); color: var(--text-2); font-size: 12px; }
.cb-steps li[aria-current] { color: var(--text); border-color: var(--text); }
.cb-steps li[aria-current] b { background: var(--grad); color: #fff; }
.cb-steps li.is-done b { background: var(--c4); color: #fff; }

/* Schritt 1 */
.cloudbox { padding: clamp(18px, 3vw, 32px); border-radius: var(--r-lg); background: var(--glass-2); border: 1px solid var(--stroke); box-shadow: var(--shadow); color: var(--text-2); }
#result .cloudbox h2 { margin: 2px 0 18px; font-size: clamp(28px, 4vw, 44px); color: var(--text); }
.cloudbox .field__hint { margin: 4px 0 12px; }
ul.cloud { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cb-chip { min-height: 40px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--stroke-2); background: var(--bg); font-weight: 600; font-size: 15px; transition: transform .3s var(--spring), border-color .2s, color .2s; }
.cb-chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.cloudbox .cb-none { color: var(--c1) !important; font-weight: 600; font-size: 18px; }
.cloudbox form { margin-top: 18px; }
.cloudbox .cta { height: auto; min-height: 56px; padding: 12px 26px; white-space: normal; text-align: left; letter-spacing: .02em; }

/* Schritt 2 */
#result .cloudbox h1 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; color: var(--text); }
#comparesites { display: grid; gap: 14px; }
#comparesites table { font-size: 14.5px; }
#comparesites tr.cb-head th { position: sticky; top: 0; background: var(--glass-2); }
#comparesites td:first-child { width: 1%; font-family: var(--mono); color: var(--muted); }
#comparesites tr { background: transparent !important; }
#comparesites tr.is-on { background: color-mix(in srgb, var(--c4) 8%, transparent) !important; }
#comparesites td label.normal { font-weight: 500; }
#comparesites .cb-goto-link { font-size: .85em; }
#comparesites .cb-goto { display: block; margin-top: 2px; font-size: .8em; color: var(--muted); }
#comparesites td.cb-host { color: var(--muted); white-space: nowrap; }
#comparesites td.cb-check { width: 1%; text-align: center; }
#comparesites td.cb-check .check { justify-content: center; }
#comparesites .cta { justify-self: start; }
.cb-count { margin: 0 !important; font-weight: 600; color: var(--text-2); }
.cb-toomuch { color: var(--c1); }

/* Schritt 3 */
.cb-final .cb-dyn { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.cb-final .perma a { font-weight: 600; }
.cb-final .grid_1 .box p { margin: 0 0 8px; line-height: 1.8; }
.cb-final .grid_1 h4 { margin-top: 0; }
.cb-final .grid_1 .box ul, .cb-final .grid_1 .box ol { color: var(--text-2); }
.cb-promo { display: block; text-align: center; }
.cb-promo img { display: inline-block; max-width: min(980px, 100%); border-radius: 14px; box-shadow: var(--shadow-lg); }
.cb-final table.crawlresult { font-size: 14px; }
.cb-final table.crawlresult td:first-child { color: var(--text-2); }
.cb-final table.crawlresult td b { color: var(--text); }
.cb-final table.crawlresult td small { float: none !important; display: block; color: var(--muted); }
.cb-final .comparisontable-inner { font-size: 13px; }

/* Keyword-Marker */
div.cmarkbox { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
span.cmark, span.cphrase { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--stroke-2); background: var(--bg); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
span.cphrase { border-style: dashed; }
span.cmark:hover, span.cphrase:hover { border-color: var(--red); color: var(--red); }
span.cmarkhl, span.cphrasehl { background: color-mix(in srgb, var(--c4) 12%, var(--bg)); border-color: color-mix(in srgb, var(--c4) 55%, transparent); color: var(--text); }
span.cmarkhl::before, span.cphrasehl::before { content: "✓"; margin-right: 6px; color: var(--c4); font-weight: 800; }

/* Fortschrittsbalken */
.ct_progressbar { position: relative; min-width: 120px; height: 26px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.ct_progressbar > div { height: 100%; width: 0; min-width: fit-content; padding: 0 8px; display: flex; align-items: center; gap: 3px; white-space: nowrap; font: 600 12px var(--mono); color: var(--text); background: color-mix(in srgb, var(--c3) 22%, transparent); transition: width .3s var(--ease), background .3s; }
.ct_progressbar > div.is-ok { background: color-mix(in srgb, var(--c4) 30%, transparent); }
.ct_progressbar > div.is-over { background: color-mix(in srgb, var(--c1) 28%, transparent); }
.ct_progressbar > div > span:nth-child(2) { color: var(--muted); font-weight: 500; }
td.o_keyword { font-weight: 600; color: var(--text); }

/* Editor */
.cb-editor { border: 1px solid var(--stroke-2); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.cb-editor:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c2) 12%, transparent); }
.cb-tb { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--stroke); background: var(--glass-2); }
.cb-tb button, .cb-tb select { min-width: 36px; height: 34px; padding: 0 9px; border-radius: 6px; border: 1px solid transparent; background: transparent; font: 600 13px var(--font); color: var(--text); }
.cb-tb select { padding-right: 6px; border-color: var(--stroke); background: var(--bg); cursor: pointer; }
.cb-tb button:hover:not(:disabled) { background: var(--bg-2); }
.cb-tb button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.cb-tb :disabled { opacity: .35; cursor: default; }
.cb-tb__sep { width: 1px; height: 22px; margin: 0 2px; background: var(--stroke-2); }
.cb-area { min-height: 420px; max-height: 75vh; overflow: auto; padding: 18px 22px; outline: none; font-size: 16px; max-width: none; }
.cb-area h1 { font-size: 30px; margin: .4em 0 .3em; letter-spacing: -.03em; }
.cb-area h2 { font-size: 24px; margin: 1em 0 .3em; }
.cb-area h3 { font-size: 20px; margin: 1em 0 .3em; }
.cb-area img { max-width: 100%; }
.cb-area:empty::before { content: "Schreibe hier deinen Text …"; color: var(--muted); }
.cb-source { display: block; width: 100%; min-height: 420px; padding: 16px 18px; border: 0; outline: none; resize: vertical; background: #0d0d0d; color: #ececec; font: 13px/1.6 var(--mono); }
.cb-source[hidden] { display: none; }
#copyclipboard { margin: 8px 0 4px; width: 100%; }

@media (max-width: 680px) {
  .cb-steps li { font-size: 13px; }
  .cb-area { min-height: 300px; padding: 14px; }
  .ct_progressbar { min-width: 96px; }
  #comparesites .cta { width: 100%; }
  .cloudbox .cta { width: 100%; }
}
.cb-final .grid_3_67 > .box:first-child table.crawlresult td:nth-child(2) { min-width: 230px; }
.cb-final .grid_3_67 > .box:first-child table.crawlresult th { white-space: normal; min-width: 64px; vertical-align: bottom; }
.cb-final .grid_3_67 > .box:first-child table.crawlresult td { white-space: nowrap; }
.cb-final .grid_3_67 > .box:first-child table.crawlresult td:nth-child(2) { white-space: normal; }
.cb-final .grid_3_67 > .box:last-child table.crawlresult td:last-child { white-space: nowrap; }
.cb-final .grid_3_67 > .box:last-child table.crawlresult td:last-child small { white-space: normal; }

/* Wettbewerber-Sidebar: kompakt, ermittelte Werte fett */
#result .cb-final .grid_3_67 > .box:last-child { padding: 18px; }
#result .cb-final .grid_3_67 > .box:last-child > br { display: none; }
#result .cb-final .grid_3_67 > .box:last-child h4 { margin: 24px 0 8px; }
#result .cb-final .grid_3_67 > .box:last-child h4:first-child { margin-top: 0; }
#result .cb-final .grid_3_67 > .box:last-child table.crawlresult { font-size: 13.5px; line-height: 1.4; }
#result .cb-final .grid_3_67 > .box:last-child table.crawlresult td { padding: 7px 10px; }
#result .cb-final .grid_3_67 > .box:last-child table.crawlresult td:last-child { width: 1%; white-space: nowrap; text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
#result .cb-final .grid_3_67 > .box:last-child table.crawlresult td:last-child small { font-weight: 500; white-space: nowrap; }

/* Permalink-Seite (result-briefing/*.html) */
.cb-perma { padding-block: clamp(24px, 5vw, 56px) 64px; }
