/* Internal Link Analyzer – Startseite. Gleiches Designsystem wie der Website Check
   (DBM Webdesign & Online-Marketing): Navy #002549, Lime #96a722, nur Systemschriften, keine externen Ressourcen. */

/* Dunkel ist Standard; Hell nur, wenn der Besucher umschaltet (data-theme="light"). */
:root {
  --bg: #001a35;
  --surface: #002549;
  --surface-2: #0a345e;
  --border: #1b4775;
  --text: #eef3fb;
  --desc: #b7c6da;
  --muted: #9fb2cb;
  --brand: #96a722;
  --brand-hover: #b6c83a;
  --brand-ink: #002549;
  --brand-soft: rgba(150, 167, 34, .16);
  --focus: #b6c83a;
  --accent: #96a722;
  --accent-text: #96a722;
  --link: #8ec5f2;
  --link-hover: #b5dafa;
  --pass: #4ade80;
  --warn: #fbbf24;
  --fail: #f87171;
  --gold: #e3a92c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .18);
  --radius: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --content: 1400px;
  --scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --border: #cbd4e1;
  --text: #172133;
  --desc: #3d4859;
  --muted: #536072;
  --brand: #002549;
  --brand-hover: #0b3d6e;
  --brand-ink: #ffffff;
  --brand-soft: #d8e1ec;
  --focus: #002549;
  --accent: #96a722;
  --accent-text: #5d6b0c;
  --link: #0b4a8a;
  --link-hover: #002549;
  --pass: #126b37;
  --warn: #8f4d00;
  --fail: #b1232a;
  --gold: #8a5a00;
  --shadow: 0 1px 2px rgba(16, 32, 56, .05);
  --scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0; color-scheme: var(--scheme);
  background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Kopf, Inhalt & Fuß: boxed, mittig ───────── */
.topbar, main, .footer { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px var(--gutter); }
.logo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.logo-name { color: var(--text); text-decoration: none; font-size: clamp(20px, 2.4vw, 27px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; }
.logo-accent { color: var(--accent-text); }
.logo-by { color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-name:hover { color: var(--text); }
.logo-by:hover { color: var(--brand); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.pill-btn {
  height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); display: inline-flex; align-items: center;
  background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.icon-btn svg { width: 18px; height: 18px; }
.pill-btn:hover, .icon-btn:hover { border-color: var(--brand); color: var(--text); }
.lang-short { display: none; }

main { padding: 0 var(--gutter); }
.footer {
  margin-top: auto; padding: 28px var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  color: var(--muted); font-size: 13px; text-align: center;
}
.footer a { color: var(--muted); }

.to-top {
  position: fixed; z-index: 50; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-hover); }
.to-top svg { width: 24px; height: 24px; }

/* ───────── Bausteine ───────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
  transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
input[type="text"], input[type="password"], input[type="number"], select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px;
}
select { cursor: pointer; }
input::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; text-align: left; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.check-strong { color: var(--desc); }

/* ───────── Startseite: Kopfbereich mit Formular ───────── */
.hero { text-align: center; max-width: 760px; margin: clamp(16px, 5vw, 48px) auto 0; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; }
.h1-sub { display: block; margin-top: 10px; color: var(--desc); font-size: clamp(18px, 2.6vw, 24px); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.lead { font-size: clamp(15px, 2.2vw, 17px); color: var(--desc); margin: 0 auto 28px; max-width: 640px; }
.scan-form { padding: 16px; display: grid; gap: 14px; text-align: left; }
.scan-row { display: flex; gap: 10px; }
.scan-row input { font-size: 17px; padding: 14px 16px; min-width: 0; }
.scan-row .btn { flex: none; padding: 14px 24px; font-size: 16px; }
.trust { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* Erweiterte Einstellungen (aufklappbar, Standardwerte passen für fast alle) */
.options { border-top: 1px solid var(--border); padding-top: 4px; }
.options > summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; cursor: pointer; list-style: none;
  color: var(--link); font-size: 14px; font-weight: 650;
}
.options > summary::-webkit-details-marker { display: none; }
.options > summary::after { content: '+'; font-size: 18px; line-height: 1; color: var(--accent-text); }
.options[open] > summary::after { content: '–'; }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 6px 0 4px; }
.opt-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; font-size: 12.5px; line-height: 1.45; }
.limit-note { margin: 0; color: var(--muted); font-size: 13px; }

/* Pro-Freischaltung: dezent unter dem Formular */
.pro { margin: 14px auto 0; max-width: 520px; font-size: 14px; color: var(--muted); }
.pro > summary { display: inline-flex; gap: 6px; cursor: pointer; list-style: none; color: var(--gold); font-weight: 650; }
.pro > summary::-webkit-details-marker { display: none; }
.pro > summary:hover { text-decoration: underline; }
.pro-form { display: flex; gap: 8px; margin-top: 10px; }
.pro-form input { min-width: 0; }
.pro-form .btn { flex: none; min-height: 44px; }
.pro-msg { margin: 10px 0 0; text-align: center; }
.pro-msg.err { color: var(--fail); font-weight: 600; }
.pro-active { margin: 14px 0 0; color: var(--pass); font-size: 14px; font-weight: 600; }
.pro-active form { display: inline; }
.pro-active button { background: none; border: 0; padding: 0 2px; color: var(--link); font: inherit; font-weight: 500; cursor: pointer; text-decoration: underline; }

/* Kacheln: die sechs Ansichten des Dashboards */
.tiles { list-style: none; padding: 0; margin: clamp(28px, 5vw, 48px) 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; align-content: start; transition: border-color .15s; }
.tile:hover { border-color: var(--muted); }
.tile-icon { display: block; width: 26px; height: 26px; margin-bottom: 8px; color: var(--accent-text); }
.tile-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-desc { color: var(--desc); font-size: 14px; }

/* ───────── Informationsteil (SEO) ───────── */
.seo { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(56px, 8vw, 104px); margin: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 48px); }
.seo h2 { margin: 0 0 14px; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
.seo p { margin: 0 0 14px; color: var(--desc); line-height: 1.7; }
.seo .small-note { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.seo .eyebrow { margin-bottom: 8px; color: var(--accent-text); line-height: 1.4; }

.seo-intro { max-width: 880px; margin: 0 auto; text-align: center; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.facts li { display: grid; gap: 4px; padding: 6px 12px; border-left: 1px solid var(--border); }
.facts li:first-child { border-left: 0; }
.facts strong { color: var(--accent-text); font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.facts span { color: var(--muted); font-size: 14px; }

/* Zitat aus der Google-Dokumentation */
.quote { margin: 22px auto 0; max-width: 760px; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); text-align: left; }
.quote p { margin: 0 0 6px; color: var(--text); font-size: clamp(16px, 2vw, 18px); line-height: 1.55; }
.quote cite { color: var(--muted); font-size: 13.5px; font-style: normal; }

/* Zick-Zack: Text und Illustration abwechselnd links/rechts */
.zz { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.zz:nth-of-type(odd) .zz-media { order: -1; }
.zz-media { display: flex; justify-content: center; }
.ill { display: block; width: 100%; max-width: 420px; height: auto; }
.checklist { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 9px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); line-height: 1.5; }
.checklist li::before { content: '✓'; position: absolute; left: 2px; top: 0; color: var(--accent-text); font-size: 14px; font-weight: 800; }
.zz-cta { font-weight: 700; text-decoration: none; }

/* Illustrationen: Farben aus den Variablen → passen sich Hell/Dunkel an */
.il-bg { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; }
.il-soft { fill: var(--surface); }
.il-line { fill: var(--border); }
.il-acc { fill: var(--accent); }
.il-warn { fill: var(--warn); }
.il-fail { fill: var(--fail); }
.il-pass { fill: var(--pass); }
.il-node { fill: var(--surface); stroke: var(--muted); stroke-width: 2.5; }
.il-node-acc { fill: var(--surface); stroke: var(--accent); stroke-width: 3.5; }
.il-edge, .il-edge-acc, .il-edge-dash, .il-ring-dash, .il-strike { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.il-edge { stroke: var(--muted); stroke-width: 2.5; opacity: .7; }
.il-edge-acc { stroke: var(--accent); stroke-width: 3.5; }
.il-edge-dash { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 6 7; }
.il-ring-dash { stroke: var(--fail); stroke-width: 2.5; stroke-dasharray: 5 6; }
.il-strike { stroke: var(--fail); stroke-width: 4; }
.il-opp { fill: none; stroke: var(--warn); stroke-width: 2.5; }
.il-text { fill: var(--text); font: 700 15px/1 -apple-system, "Segoe UI", system-ui, sans-serif; }
.il-text-muted { fill: var(--muted); font: 600 13px/1 -apple-system, "Segoe UI", system-ui, sans-serif; }

/* So funktioniert's */
.steps-block { text-align: center; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; text-align: left; }
.steps li { counter-increment: step; display: grid; gap: 6px; align-content: start; padding: 20px 0 0; border-top: 1px solid var(--border); }
.steps li::before { content: counter(step); width: 30px; height: 30px; margin-bottom: 6px; border: 1.5px solid var(--border); border-radius: 50%; display: grid; place-items: center; color: var(--accent-text); font-size: 14px; font-weight: 800; }
.steps strong { font-size: 17px; }
.steps span { color: var(--desc); line-height: 1.6; }

/* Vergleichstabelle */
.compare > h2, .compare > p { max-width: 880px; margin-left: auto; margin-right: auto; text-align: center; }
.compare > .small-note { text-align: left; max-width: none; }
.table-wrap { max-width: 100%; margin: 22px 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.compare table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.compare thead th { background: var(--surface-2); font-size: 14px; line-height: 1.35; }
.compare thead small, .compare td small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.compare tbody th { text-align: left; font-weight: 600; color: var(--text); background: var(--surface); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare th:first-child { position: sticky; left: 0; z-index: 1; }
.compare .ours { background: var(--brand-soft); }
.compare .yes { color: var(--pass); font-size: 17px; font-weight: 800; }
.compare .no { color: var(--muted); }
.compare .txt { font-size: 13.5px; color: var(--text); }

/* Vorteile */
.why h2 { text-align: center; }
.why-grid { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.why-grid li { display: grid; gap: 6px; align-content: start; padding: 18px 0 0; border-top: 1px solid var(--border); }
.why-grid strong { font-size: 16.5px; }
.why-grid span { color: var(--desc); font-size: 15px; line-height: 1.6; }

/* FAQ */
.faq { width: 100%; max-width: 900px; margin: 0 auto; }
.faq h2 { margin-bottom: 22px; text-align: center; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { position: relative; padding: 18px 44px 18px 0; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent-text); font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 0 18px; }

/* Abschluss */
.final-cta { padding: clamp(24px, 4vw, 40px); text-align: center; }
.final-cta .btn { margin: 6px 0 16px; }
.seo .more-tools { margin: 0; font-size: 14px; }
.seo .share-row { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.share-row a { display: inline-block; margin: 2px 8px; font-weight: 600; text-decoration: none; }
.share-row a:hover { text-decoration: underline; }

/* ───────── Responsiv ───────── */
@media (max-width: 1024px) {
  .tiles, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .zz { grid-template-columns: minmax(0, 1fr); }
  .zz .zz-media { order: -1; }
  .ill { max-width: 300px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .facts li:nth-child(odd) { border-left: 0; }
  .compare table { min-width: 620px; font-size: 13.5px; }
  .compare th, .compare td { padding: 10px; }
  .seo p, .checklist li { hyphens: auto; }
  .steps, .why-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .topbar { gap: 12px; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .pill-btn { padding: 0 12px; }
  .scan-row { flex-direction: column; }
  .scan-row .btn { width: 100%; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .opt-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .logo-name { font-size: 18px; }
  .logo-by { font-size: 11px; }
  .top-actions { gap: 6px; }
  .pro-form { flex-direction: column; }
  .pro-form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
