/* seoscreen · gemeinsame Tool-Bausteine (Text-Cleaner, Bild-Metadaten, FAQ-Schema, SERP-Snippet, Bewertungslink).
   Nutzt nur die Variablen aus style.css. Keine externen Anfragen. */

.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 18px; min-width: 0; }
@media (min-width: 48em) { .tool { padding: 26px; } }
.tool *, .tool *::before, .tool *::after { min-width: 0; }
.tool-note { display: block; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; margin: 0; }
.tool-note strong { margin-right: .35em; }
.tool-note p { margin: 0; display: inline; }
.tool-note.warn { border-left-color: var(--marker); }
.tool-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 12px; align-content: start; }
.tool-panel > h2, .tool-panel > h3, .tool-step { font: 650 1.12rem/1.3 var(--font-head); margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool-step .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--marker); color: var(--on-marker); font: 700 .9rem var(--font-mono); flex: none; }
.tool-panel p { margin: 0; max-width: 70ch; }
.tool-help { font-size: .92rem; color: var(--muted); }
.tool-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tool-row .btn { flex: 0 1 auto; }
@media (max-width: 30em) { .tool-row .btn { flex: 1 1 100%; } }
.btn-ghost { border-width: 1px; border-color: var(--line-strong); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }
.tool-grid-2 { display: grid; gap: 14px; }
@media (min-width: 60em) { .tool-grid-2 { grid-template-columns: 1fr 1fr; } }
.tool-status { font-size: .95rem; font-weight: 600; min-height: 1.4em; margin: 0; }
.tool-status.ok { color: var(--ok); }
.tool-status.err { color: var(--warn); }
.tool .field input, .tool .field select, .tool .field textarea { background: #141312; }
.tool .field input[type="color"] { padding: 4px; width: 64px; min-height: 44px; }
.tool .field input[type="range"] { padding: 0; min-height: 32px; border: 0; background: transparent; accent-color: #EF5B34; }
:root[data-theme="dark"] .tool .field input[type="range"] { accent-color: var(--marker); }
.tool .check { align-items: center; }
.tool pre, .tool .code-out { font: .86rem/1.55 var(--font-mono); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; overflow: auto; max-height: 420px; white-space: pre-wrap; word-break: break-word; color: var(--ink); }

/* ---------- Text-Cleaner ---------- */
.tc-editor, .tc-view { min-height: 180px; max-height: 480px; overflow: auto; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; font: 400 1rem/1.6 var(--font-body); color: var(--ink); }
.tc-editor:focus { outline: 3px solid var(--link); outline-offset: 2px; }
.tc-editor:empty::before { content: attr(data-placeholder); color: var(--muted); }
.tc-view { min-height: 110px; }
.tc-view.plain { white-space: pre-wrap; }
.tc-view:empty::before { content: attr(data-placeholder); color: var(--muted); font-size: .95rem; }
.tc-editor p, .tc-view p { margin: 0 0 .7em; }
.tc-editor ul, .tc-editor ol, .tc-view ul, .tc-view ol { margin: 0 0 .7em; }
.tc-code { display: inline-block; font: 600 .72rem/1.4 var(--font-mono); background: var(--warn); color: #fff; border-radius: 4px; padding: 0 5px; margin: 0 4px 0 0; vertical-align: middle; }
.tc-invis { font: 700 .72rem/1.4 var(--font-mono); background: var(--marker); color: var(--on-marker); border-radius: 4px; padding: 0 4px; margin: 0 1px; }
.tc-ai { background: color-mix(in srgb, var(--warn) 22%, transparent); outline: 1px dashed var(--warn); border-radius: 3px; }
.tc-explain { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; display: grid; gap: 6px; }
.tc-explain p { margin: 0; }
.tc-clean-ok { border: 2px solid var(--ok); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--white); }
.tc-clean-ok h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--ok); }
.tc-clean-ok p { margin: 0; }
.tc-summary { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tc-summary li { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
.tc-summary b { font-variant-numeric: tabular-nums; }

/* ---------- FAQ-Generator ---------- */
.faqgen-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: fq; }
.faqgen-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 10px; }
.faqgen-item legend { font: 650 1rem var(--font-head); padding: 0; }
.faqgen-item fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.faqgen-item .field textarea { min-height: 96px; }
.faqgen-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.faqgen-tools .btn { min-height: 40px; padding: 6px 12px; font-size: .9rem; }

/* ---------- SERP-Snippet ---------- */
.serp-meter { height: 8px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line-strong); overflow: hidden; }
.serp-meter span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .15s; }
.serp-meter.over span { background: var(--warn); }
.serp-meter.near span { background: #C98A00; }
.serp-count { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: 6px; }
.serp-count .over { color: var(--warn); font-weight: 650; }
.seg-tabs { justify-self: start; align-self: start; display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--white); }
.seg-tabs button { border: 0; background: transparent; color: var(--ink); font: 600 .92rem var(--font-body); padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.seg-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* Die Vorschau ahmt das helle Google-Layout nach, deshalb feste Farben. */
.serp-stack { display: grid; gap: 18px; }
.serp-preview { background: #fff; color: #202124; border: 1px solid #dadce0; border-radius: var(--radius-sm); padding: 18px; overflow-x: auto; }
.serp-res { min-width: 0; }
.serp-preview:not(.mobile) .serp-res { width: 652px; }
.serp-res { font-family: Arial, 'Liberation Sans', Arimo, sans-serif; max-width: 652px; }
.serp-preview.mobile .serp-res { max-width: 360px; }
.serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; min-width: 0; }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; border: 1px solid #dadce0; display: grid; place-items: center; font: 700 12px Arial, sans-serif; color: #5f6368; flex: none; }
.serp-site-text { min-width: 0; line-height: 1.3; }
.serp-name { font-size: 14px; color: #202124; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp-url { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: 0 0 4px; font-weight: 400; white-space: nowrap; overflow: hidden; }
.serp-preview.mobile .serp-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 20px; }
.serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; margin: 0; overflow-wrap: anywhere; }
.serp-limits { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Bewertungslink / QR ---------- */
.qr-out { display: grid; gap: 16px; align-items: start; }
@media (min-width: 48em) { .qr-out { grid-template-columns: 260px minmax(0, 1fr); } }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; width: 100%; max-width: 260px; aspect-ratio: 1; display: grid; place-items: center; }
.qr-box svg { width: 100%; height: auto; }
.qr-empty { color: #4A4F57; font-size: .9rem; text-align: center; padding: 10px; }
.qr-link { font: .9rem/1.5 var(--font-mono); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; word-break: break-all; margin: 0; }
.tool-opts { display: grid; gap: 12px; }
@media (min-width: 40em) { .tool-opts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }

/* ---------- Bildlabor (Metadaten entfernen) ---------- */
.blt [hidden] { display: none !important; }
.blt-top-grid, .blt-preview-grid { display: grid; gap: 14px; }
@media (min-width: 60em) { .blt-top-grid, .blt-preview-grid { grid-template-columns: 1fr 1fr; } }
.blt-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 12px; align-content: start; }
.blt-section-heading, .blt-preview-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.blt-section-title { font: 650 1.1rem/1.3 var(--font-head); margin: 0; }
.blt-kicker, .blt-tag, .blt-pill { font: 600 .74rem/1.3 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.blt-tag.blt-target, .blt-pill.blt-ready { color: var(--ok); }
.blt-pill.blt-failed { color: var(--warn); }
.blt-drop { border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 8px; background: var(--paper); }
.blt-drop.blt-drag { border-color: var(--ink); background: color-mix(in srgb, var(--marker) 18%, var(--paper)); }
.blt-drop label, .blt label { font-weight: 600; font-size: .95rem; }
.blt-drop p { margin: 0; font-size: .92rem; color: var(--muted); }
.blt input[type="file"] { font: inherit; font-size: .95rem; max-width: 100%; color: var(--ink); }
.blt input[type="file"]::file-selector-button { font: 650 .95rem var(--font-body); padding: 10px 14px; margin-right: 10px; border-radius: 10px; border: 0; background: var(--marker); color: var(--on-marker); cursor: pointer; }
.blt-filebox { font-size: .92rem; display: grid; gap: 2px; }
.blt-filebox span { color: var(--muted); }
.blt details { font-size: .95rem; }
.blt details summary { cursor: pointer; font-weight: 600; }
.blt details > *:not(summary) { margin-top: 10px; }
.blt-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.blt button, .blt-button { display: inline-flex; align-items: center; justify-content: center; font: 650 .95rem/1.1 var(--font-body); padding: 10px 16px; min-height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.blt .blt-primary { background: var(--marker); color: var(--on-marker); border-color: #14161A; }
.blt button[disabled], .blt-button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.blt select, .blt input[type="color"] { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font: inherit; color: var(--ink); background: var(--paper); }
.blt input[type="color"] { width: 64px; padding: 4px; }
.blt input[type="range"] { width: 100%; accent-color: #EF5B34; }
:root[data-theme="dark"] .blt input[type="range"] { accent-color: var(--marker); }
.blt-control-grid { display: grid; gap: 14px; }
@media (min-width: 48em) { .blt-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .blt-control-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.blt-control-grid > div { display: grid; gap: 6px; align-content: start; }
.blt-small { font-size: .88rem; margin: 0; }
.blt-muted { color: var(--muted); }
.blt-phase-heading { display: flex; gap: 12px; align-items: center; }
.blt-phase-icon { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font: 700 1rem var(--font-mono); flex: none; }
.blt-phase-icon.blt-spin { border-color: var(--line-strong); border-top-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .blt-phase-icon.blt-spin { animation: blt-spin .9s linear infinite; } }
@keyframes blt-spin { to { transform: rotate(360deg); } }
.blt-phase-title { font-weight: 650; }
.blt-phase-sub { font-size: .88rem; color: var(--muted); }
.blt-track { height: 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line-strong); overflow: hidden; }
.blt-bar { height: 100%; width: 0; background: var(--ok); }
.blt-track.blt-busy .blt-bar { background: repeating-linear-gradient(90deg, var(--marker) 0 14px, color-mix(in srgb, var(--marker) 45%, transparent) 14px 28px); }
.blt-track.blt-failed .blt-bar { background: var(--warn); width: 100% !important; }
.blt-progress-numbers { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.blt-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; }
.blt-steps li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.blt-steps li strong { font-family: var(--font-mono); margin-right: 4px; }
.blt-steps li.blt-done { border-color: var(--ok); color: var(--ok); }
.blt-steps li.blt-current { border-color: var(--ink); color: var(--ink); background: color-mix(in srgb, var(--marker) 30%, transparent); }
.blt-steps li.blt-failed { border-color: var(--warn); color: var(--warn); }
.blt-status { font-size: .92rem; border-left: 4px solid var(--line-strong); padding: 6px 10px; background: var(--paper); border-radius: 0 8px 8px 0; }
.blt-status.blt-ok { border-left-color: var(--ok); }
.blt-status.blt-error { border-left-color: var(--warn); color: var(--warn); font-weight: 600; }
.blt-warning { border: 2px solid var(--warn); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--white); font-size: .95rem; }
.blt-warning p { margin: 4px 0 0; }
.blt-actions-note { font-size: .88rem; color: var(--muted); margin: 0; }
.blt-preview-stage { background: repeating-conic-gradient(var(--card) 0 25%, var(--white) 0 50%) 0 0 / 20px 20px; border: 1px solid var(--line); border-radius: 10px; min-height: 180px; display: grid; place-items: center; padding: 8px; overflow: hidden; }
.blt-preview-stage img { max-height: 340px; width: auto; max-width: 100%; object-fit: contain; }
.blt-placeholder { text-align: center; color: var(--muted); font-size: .92rem; display: grid; gap: 4px; }
.blt-placeholder b { font-size: 1.6rem; }
.blt-preview-footer { font-size: .88rem; color: var(--ink-2); display: grid; gap: 2px; word-break: break-word; }
.blt-metrics { display: grid; gap: 10px; }
@media (min-width: 40em) { .blt-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.blt-metric { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.blt-metric span { font-size: .82rem; color: var(--muted); }
.blt-metric strong.blt-good { color: var(--ok); }
.blt-metric strong.blt-attention { color: var(--warn); }
.blt-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.blt-table-scroll table { border-collapse: collapse; width: 100%; min-width: 34em; font-size: .9rem; }
.blt-table-scroll th, .blt-table-scroll td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.blt-table-scroll thead th { background: var(--card); }
.blt-table-scroll tbody th { font-weight: 600; width: 30%; }
.blt-swipe-labels { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--muted); }
.blt-swipe { position: relative; width: 100%; max-width: 640px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.blt-swipe img { display: block; width: 100%; height: 100%; object-fit: contain; }
.blt-swipe .blt-overlay { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.blt-swipe-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--marker); box-shadow: 0 0 0 1px #14161A; }
.blt pre { font: .8rem/1.5 var(--font-mono); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.blt-foot { font-size: .85rem; color: var(--muted); }
