/* SEO & GEO Check – Oberfläche
   Systemschriften (keine externen Fonts, DSGVO-freundlich). Farben kommen teilweise aus der Konfiguration (--brand). */
:root {
  --brand: #0f4c81;
  --brand-ink: #fff;
  --accent: #18a999;
  --ink: #14202e;
  --ink-2: #4a5868;
  --ink-3: #7b8896;
  --paper: #eef2f5;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --line: #d7dee5;
  --line-2: #e7ecf0;
  --good: #1f8a5b;
  --good-bg: #e3f4ec;
  --mid: #b57a06;
  --mid-bg: #fbf1dc;
  --bad: #c23b3b;
  --bad-bg: #fbe6e6;
  --info-bg: #e5eef7;
  --seg-off: #dfe5ea;
  --radius-s: 4px;
  --radius: 8px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Ubuntu, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6edf3; --ink-2: #b2bfcc; --ink-3: #8593a1;
    --paper: #0f1720; --surface: #16212c; --surface-2: #1b2835;
    --line: #2b3a49; --line-2: #233140; --seg-off: #2b3a49;
    --good: #4cc38a; --good-bg: #163327; --mid: #e3b341; --mid-bg: #3a2f12;
    --bad: #f07272; --bad-bg: #3d1d1f; --info-bg: #17293b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.55 var(--font); font-variant-numeric: tabular-nums;
}
a { color: var(--brand); text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { a { color: #7fb6ea; } }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; max-width: 75ch; }
small, .muted { color: var(--ink-3); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Kopfzeile */
.top {
  background: var(--brand); color: var(--brand-ink);
  border-bottom: 3px solid var(--accent);
}
.top-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 650; font-size: 1.05rem; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a, .nav button {
  color: inherit; text-decoration: none; padding: 7px 12px; border-radius: var(--radius-s);
  background: none; border: 0; font: inherit; cursor: pointer; opacity: .88;
}
.nav a:hover, .nav button:hover, .nav a.on { opacity: 1; background: rgba(255,255,255,.14); }
.nav form { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
.foot { max-width: 1240px; margin: 0 auto; padding: 18px 20px 40px; color: var(--ink-3); font-size: .85rem; }

/* Flächen */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Formulare */
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 5px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1 1 180px; margin-bottom: 0; }
.hint { font-size: .85rem; color: var(--ink-3); margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-s);
  border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--brand); }
@media (prefers-color-scheme: dark) { .btn.ghost { color: #7fb6ea; border-color: #3d6a96; } }
.btn.small { padding: 6px 11px; font-size: .88rem; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.inline { display: inline; margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
td.actions { flex-wrap: nowrap; }

/* Meldungen */
.flash { padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 16px; border-left: 4px solid; }
.flash.success { background: var(--good-bg); border-color: var(--good); }
.flash.error { background: var(--bad-bg); border-color: var(--bad); }
.flash.info { background: var(--info-bg); border-color: var(--brand); }

/* Sichtweiten-Skala: das prägende Element */
.meter { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; }
.meter-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; grid-row: span 3; align-self: center; min-width: 2.4ch; text-align: right; }
.meter-num small { font-size: .9rem; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.meter-label { font-weight: 600; font-size: .95rem; }
.segs { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; height: 14px; }
.segs i { background: var(--seg-off); border-radius: 1px; }
.segs i.on { background: currentColor; }
.meter.good { color: var(--good); } .meter.mid { color: var(--mid); } .meter.bad { color: var(--bad); } .meter.na { color: var(--ink-3); }
.meter .meter-label, .meter .meter-sub { color: var(--ink); }
.meter-sub { grid-column: 2; font-size: .82rem; color: var(--ink-3) !important; margin-top: 2px; }
.meter.compact .meter-num { font-size: 1.6rem; }
.meter.compact .segs { height: 9px; }

.score-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px 36px; }

/* Kennzahlen */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { padding: 14px 16px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin: 0 -1px -1px 0; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact b { display: block; font-size: 1.4rem; font-family: var(--font-display); font-weight: 700; }
.fact span { font-size: .85rem; color: var(--ink-2); }
.delta { font-size: .8rem; font-weight: 600; margin-left: 6px; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); } .delta.same { color: var(--ink-3); }

/* Berichtskopf */
.report-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 22px; }
.report-head h1 { margin: 0 0 4px; word-break: break-all; }
.report-head .meta { color: var(--ink-2); font-size: .92rem; }
.crumbs { font-size: .88rem; margin-bottom: 8px; }
.crumbs a { text-decoration: none; }

/* Reiter */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin: 0 0 22px; overflow-x: auto; position: sticky; top: 0; background: var(--paper); z-index: 5; scrollbar-width: thin; }
.tabs button {
  border: 0; background: none; font: inherit; padding: 11px 15px; cursor: pointer; color: var(--ink-2);
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; font-weight: 550;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected=true] { color: var(--brand); border-bottom-color: var(--brand); }
@media (prefers-color-scheme: dark) { .tabs button[aria-selected=true] { color: #7fb6ea; border-bottom-color: #7fb6ea; } }
.tabs .count { font-size: .78rem; background: var(--line-2); color: var(--ink-2); border-radius: 10px; padding: 1px 7px; margin-left: 5px; }
.tab-panel[hidden] { display: none; }

/* Tabellen */
.table-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.table-tools input { max-width: 320px; padding: 8px 11px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; color: var(--ink-2); position: sticky; top: 0; white-space: nowrap; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: " ↕"; color: var(--ink-3); font-size: .8em; }
th.asc::after { content: " ↑"; color: var(--brand); } th.desc::after { content: " ↓"; color: var(--brand); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; }
td.url { max-width: 420px; word-break: break-all; }
td.clip { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-wrap.tall { max-height: 640px; overflow: auto; }

/* Status-Kennzeichen */
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .78rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.mid { background: var(--mid-bg); color: var(--mid); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.info { background: var(--info-bg); color: var(--brand); }

/* Maßnahmen */
.issues { list-style: none; margin: 0; padding: 0; }
.issue { border: 1px solid var(--line); border-left: 5px solid var(--ink-3); border-radius: var(--radius-s); background: var(--surface); padding: 14px 16px; margin-bottom: 10px; }
.issue.high { border-left-color: var(--bad); }
.issue.medium { border-left-color: var(--mid); }
.issue.low { border-left-color: var(--brand); }
.issue h4 { margin: 0 0 4px; font-size: 1rem; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.issue p { margin: 4px 0 0; color: var(--ink-2); }
.issue details { margin-top: 8px; font-size: .88rem; }
.issue details ul { margin: 6px 0 0; padding-left: 18px; max-height: 260px; overflow: auto; word-break: break-all; }
.issue summary { cursor: pointer; color: var(--brand); }
.issue ol.steps { margin: 6px 0 4px; padding-left: 20px; color: var(--ink-2); }
.issue ol.steps li { margin-bottom: 4px; }
.issue table.fixes { width: 100%; margin-top: 6px; font-size: .84rem; }
.issue table.fixes th { text-align: left; white-space: nowrap; }
.issue table.fixes td { vertical-align: top; }
.issue table.fixes td.url { min-width: 200px; max-width: 320px; word-break: break-word; overflow-wrap: anywhere; }
.issue table.fixes code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; }
.issue .table-wrap { max-height: 420px; overflow: auto; }
.issues-layout { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
@media (max-width: 960px) { .issues-layout { grid-template-columns: minmax(0, 1fr); } }
#issues-list { width: 100%; table-layout: fixed; }
@media (max-width: 640px) { .issue table.fixes td.url { min-width: 140px; } .issue { padding: 12px; } }
ul.psi-items { margin: 6px 0 0; padding-left: 18px; font-size: .82rem; color: var(--ink-2); }
ul.psi-items code { word-break: break-all; white-space: normal; font-size: .78rem; }

/* Prüfliste */
.checks { list-style: none; padding: 0; margin: 0; columns: 2 340px; column-gap: 28px; }
.checks li { break-inside: avoid; display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); align-items: baseline; }
.checks .ico { font-weight: 700; }
.checks .ok { color: var(--good); } .checks .part { color: var(--mid); } .checks .no { color: var(--bad); }
.checks .d { font-size: .82rem; color: var(--ink-3); text-align: right; }
.check-group { font-size: .82rem; color: var(--ink-3); margin: 14px 0 4px; font-weight: 600; break-after: avoid; }

/* Verteilung (Ranking-Positionen) */
.dist { display: grid; gap: 6px; }
.dist-row { display: grid; grid-template-columns: 90px 1fr 60px; gap: 10px; align-items: center; font-size: .88rem; }
.dist-bar { height: 12px; background: var(--seg-off); border-radius: 2px; overflow: hidden; }
.dist-bar span { display: block; height: 100%; background: var(--brand); }
@media (prefers-color-scheme: dark) { .dist-bar span { background: #4f8fc9; } }

/* Fortschritt */
.progress-box { max-width: 640px; margin: 40px auto; text-align: left; }
.bar { height: 10px; background: var(--seg-off); border-radius: 5px; overflow: hidden; margin: 18px 0 10px; }
.bar span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .6s ease; }
@media (prefers-reduced-motion: reduce) { .bar span { transition: none; } }

/* Projektliste */
.projects { display: grid; gap: 14px; }
.proj { display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(4, minmax(130px, 1fr)) auto; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.proj h3 { margin: 0; font-size: 1.1rem; word-break: break-all; }
.proj h3 a { color: var(--ink); text-decoration: none; }
.proj h3 a:hover { color: var(--brand); }
.proj .sub { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 900px) { .proj { grid-template-columns: 1fr 1fr; } .proj > :first-child, .proj > :last-child { grid-column: 1 / -1; } }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty p { margin: 0 auto 14px; }

.add-form { display: grid; grid-template-columns: 2fr 1.2fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 860px) { .add-form { grid-template-columns: 1fr; } }

.chart-box { position: relative; height: 280px; }
.shot { border: 1px solid var(--line); border-radius: var(--radius-s); max-width: 100%; height: auto; display: block; }
pre.raw { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; overflow: auto; max-height: 360px; font-size: .82rem; white-space: pre-wrap; word-break: break-all; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.note { background: var(--info-bg); border-radius: var(--radius-s); padding: 10px 14px; font-size: .9rem; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .92rem; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; word-break: break-word; }

/* Anmeldung */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--paper); }
.login { width: 100%; max-width: 400px; }
.login .brandline { background: var(--brand); color: #fff; padding: 22px 26px; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 3px solid var(--accent); }
.login .brandline img { height: 34px; display: block; margin-bottom: 12px; }
.login .brandline h1 { font-size: 1.3rem; margin: 0; }
.login .panel { border-radius: 0 0 var(--radius) var(--radius); border-top: 0; }

@media (max-width: 640px) {
  .wrap { padding: 20px 16px 50px; }
  .top-in { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .nav { margin-left: 0; }
  .panel { padding: 18px 16px; }
  .meter-num { font-size: 2.1rem; }
  h1 { font-size: 1.45rem; }
}

@media print {
  .top, .tabs, .actions, .foot, .table-tools { display: none !important; }
  .tab-panel[hidden] { display: block !important; }
  body { background: #fff; }
}

/* ---------- Öffentliche Seiten, Registrierung, Guthaben (v3) ---------- */
.wrap.narrow { max-width: 640px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.choice .check { margin-bottom: 6px; }
.consent { align-items: flex-start; margin: 14px 0 18px; font-size: .92rem; }
.consent input { margin-top: 4px; flex: 0 0 auto; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a { color: var(--ink-3); }
.nav-balance { font-size: .82rem; background: rgba(255,255,255,.18); border-radius: 10px; padding: 1px 8px; margin-left: 4px; }

.hero { background: var(--brand); color: #fff; border-bottom: 3px solid var(--accent); }
.hero-in { max-width: 1240px; margin: 0 auto; padding: 56px 20px 60px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 16px; max-width: 22ch; }
.hero .lead { font-size: 1.12rem; opacity: .92; max-width: 54ch; }
.hero-form { display: flex; gap: 10px; max-width: 520px; margin-top: 22px; }
.hero-form input { flex: 1; padding: 13px 14px; font-size: 1.05rem; border: 0; border-radius: var(--radius-s); color: #14202e; background: #fff; }
.hero-form .btn { background: var(--accent); border-color: var(--accent); padding: 12px 22px; font-size: 1.02rem; }
.hero-note { font-size: .9rem; opacity: .85; margin-top: 12px; }
.hero-visual { background: rgba(255,255,255,.96); color: #14202e; border-radius: var(--radius); padding: 24px; display: grid; gap: 22px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.hero-visual .meter .meter-label, .hero-visual .meter .meter-sub { color: #14202e; }
.hero-visual .meter .meter-sub { color: #6b7886 !important; }
.hero-visual .segs i { background: #dfe5ea; }
.hero-visual .segs i.on { background: currentColor; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; padding: 40px 16px; } .hero-form { flex-direction: column; } }

.features, .steps, .pricing { margin: 48px 0; }
.features h2, .steps h2, .pricing h2 { font-size: 1.6rem; margin-bottom: 18px; }
.feature { border-top: 3px solid var(--brand); padding-top: 14px; }
.feature p { color: var(--ink-2); margin: 0; }
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step-list li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.step-list li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--brand); line-height: 1; }
.step-list span { color: var(--ink-2); }
.price-card { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 26px 28px; max-width: 640px; }
.price-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.price-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--brand); }
@media (prefers-color-scheme: dark) { .price-num { color: #7fb6ea; } }
.price-unit { color: var(--ink-2); }
.price-card ul { padding-left: 20px; margin: 0 0 18px; }
.price-card li { margin-bottom: 4px; }

.balance-panel .balance-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1.1; }
.balance-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 10px; }
.amount { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; }
.amount input[type=radio] { position: absolute; opacity: 0; }
.amount > span { display: grid; gap: 2px; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
.amount strong { font-size: 1.1rem; }
.amount small { color: var(--ink-3); }
.amount input[type=radio]:checked + span { border-color: var(--brand); background: var(--info-bg); }
.amount input[type=radio]:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.amount.custom input[type=text] { margin-top: 6px; padding: 6px 8px; }
.prose h2 { margin-top: 1.4em; font-size: 1.2rem; } .prose h3 { margin-top: 1.2em; } .prose ul { padding-left: 20px; }
.prose > :first-child { margin-top: 0; }

/* IndexNow & KI-Assistent */
ol.howto { padding-left: 20px; margin: 10px 0 14px; }
ol.howto li { margin-bottom: 8px; }
ol.howto code, .ai-result code { overflow-wrap: anywhere; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; }
form.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
#indexnow h3, .ai-card h3, .code-box h3 { font-size: 1rem; margin: 0 0 8px; }
.ai-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.ai-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.ai-card p { margin: 0; font-size: .88rem; color: var(--ink-2); flex: 1; }
.ai-card select { width: 100%; }
.ai-card.busy { opacity: .7; }
.ai-card .busy-msg { font-size: .85rem; color: var(--ink-2); }
.ai-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin: 0 0 8px; }
.len { font-size: .75rem; padding: 1px 6px; border-radius: 10px; white-space: nowrap; }
.len.ok { background: var(--good-bg); color: var(--good); }
.len.warn { background: var(--mid-bg, #fff4d6); color: var(--mid, #9a6b00); }
table.ai-meta td { vertical-align: top; }
table.ai-meta td:first-child { width: 22%; }
.ai-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ai-image { display: flex; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 10px; align-items: flex-start; min-width: 0; }
.ai-image img { width: 96px; height: auto; max-height: 96px; object-fit: contain; border-radius: 3px; background: var(--surface-2); flex: none; }
.ai-image > div { min-width: 0; }
.ai-image p { margin: 6px 0 0; }
.code-box { position: relative; min-width: 0; margin-bottom: 12px; }
.code-box > .btn { position: absolute; right: 8px; top: 8px; }
.code-box h3 + .btn { top: 0; }
.code-box pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; padding-top: 40px; overflow: auto; max-height: 420px; font-size: .8rem; white-space: pre-wrap; word-break: break-word; margin: 0; }
.ai-notes { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); }
dl.ai-faq dt { font-weight: 600; margin-top: 10px; }
dl.ai-faq dd { margin: 4px 0 0; color: var(--ink-2); }
dl.ai-faq dd.todo { color: var(--bad); }
.btn.copied { border-color: var(--good); color: var(--good); }
@media (max-width: 640px) {
  table.ai-meta td:first-child { width: auto; }
  .ai-images { grid-template-columns: 1fr; }
}
#indexnow a, #indexnow code { overflow-wrap: anywhere; word-break: break-all; }

/* Recht & Sicherheit */
.cmp-list { list-style: none; margin: 0; padding: 0; }
.cmp { border-left: 4px solid var(--line); padding: 10px 14px; margin-bottom: 10px; background: var(--surface); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.cmp.bad { border-left-color: var(--bad); }
.cmp.warn { border-left-color: #d4a017; }
.cmp.good { border-left-color: var(--good); }
.cmp-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.cmp p { margin: 6px 0 0; color: var(--ink-2); font-size: .92rem; }
.cmp p.cmp-fix { color: var(--ink); }
.cmp details { margin-top: 8px; }
.cmp code.wrap { white-space: pre-line; word-break: break-all; font-size: .78rem; }
.bad-txt { color: var(--bad); }

.cmp-top { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 20px; align-items: center; }
@media (max-width: 720px) { .cmp-top { grid-template-columns: 1fr; } }

/* Webdesigner-Paket & Kunden-Link */
ul.checks-plain { list-style: none; padding: 0; margin: 0; }
ul.checks-plain li { padding: 6px 0 6px 26px; position: relative; }
ul.checks-plain li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.share-wrap { max-width: 1000px; margin: 0 auto; padding: 20px 16px 40px; }
.share-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 3px solid var(--brand); flex-wrap: wrap; }
.share-brand img { max-height: 56px; max-width: 260px; display: block; }
.share-brand strong { font-size: 1.3rem; color: var(--brand); }
.share-who { text-align: right; color: var(--ink-2); font-size: .9rem; }
.share-foot { margin-top: 30px; color: var(--ink-2); font-size: .85rem; text-align: center; }
.ampel { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.ampel.good { background: var(--good); } .ampel.mid { background: #d4a017; } .ampel.bad { background: var(--bad); } .ampel.none { background: var(--line); }
.ampel-sum { color: var(--ink-2); margin: 0 0 12px; font-size: .92rem; }
.report-sub { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.gsc-props { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.gsc-props select { min-width: 260px; max-width: 100%; }
.facts-sm .fact b { font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
