/**
 * PARTIX-SEO — Copyright (c) 2026 doppeltplus GmbH
 *
 * Design-Tokens aus PARTIX-PIM übernommen (Akzentrot, Glass-Layer, Textskala,
 * 4px-Radius), damit beide Produkte als eine Familie erkennbar sind.
 * Bewusst ohne den Aurora-Hintergrund und die Sidebar des PIM: dieses Werkzeug
 * hat eine Handvoll Seiten, da wäre eine Modul-Navigation nur Ballast.
 */

:root {
  --accent:       #E52721;
  --accent-light: #F26764;
  --accent-dark:  #A01D18;

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #3b82f6;
  --purple:  #a855f7;

  --bg-base:      #0a0e1a;
  --surface:      #131a2b;
  --glass-bg:     rgba(255, 255, 255, 0.10);
  --glass-hover:  rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.22);

  /* Textskala wie im PIM — auf Glass-Flächen WCAG-AA-konform */
  --text:       #f1f5f9;
  --text-muted: #cbd5e1;
  --text-dim:   #94a3b8;

  --radius: 4px;
  --t-fast: 0.15s ease;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-base);
  /* Angedeutete Aurora wie im PIM, nur ruhiger */
  background-image:
    radial-gradient(ellipse 80% 60% at 15% -10%, rgba(229, 39, 33, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(168, 85, 247, 0.13), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══ Kopfzeile ═══ */
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 20px;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 15px; color: var(--text); letter-spacing: .2px; }
.brand span { color: var(--accent); }
.top nav { display: flex; gap: 16px; font-size: 12.5px; }
.top nav a { color: var(--text-muted); }

main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 60px; }

/* ═══ Karten ═══ */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
h1 { font-size: 18px; font-weight: 700; margin: 0 0 3px; }
h2 { font-size: 13.5px; font-weight: 600; margin: 0 0 10px; color: var(--text); }
p  { margin: 0 0 8px; }
.muted { color: var(--text-muted); }
.small { font-size: 11.5px; }
.hidden { display: none; }

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.gap { gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }

/* ═══ Formulare ═══ */
label { display: block; font-size: 11.5px; color: var(--text-dim); }
input {
  display: block; width: 100%; margin-top: 4px; padding: 7px 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text); font-size: 12.5px; font-family: inherit;
  transition: border-color var(--t-fast);
}
input:focus { outline: none; border-color: var(--accent); }

/* ═══ Buttons ═══ */
.btn {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 7px 14px;
  color: var(--text);
  font-size: 12.5px; font-weight: 500; line-height: 1.4;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--t-fast);
}
.btn:hover { background: var(--glass-hover); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn.sm { padding: 4px 9px; font-size: 11px; }
.btn:disabled { opacity: .55; cursor: default; }

.good { color: var(--success); } .mid { color: var(--warning); }
.bad  { color: var(--danger); }  .info { color: var(--info); }

.alert { background: rgba(239, 68, 68, .14); border-left: 3px solid var(--danger); padding: 10px 12px; margin-bottom: 14px; border-radius: var(--radius); }
.msg { font-size: 12px; margin-top: 8px; }

/* ═══ Websites ═══ */
.site-row { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--glass-border); flex-wrap: wrap; }
.site-row:last-child { border-bottom: 0; }
.site-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.score { text-align: center; min-width: 54px; font-size: 23px; font-weight: 700; line-height: 1.1; }
.score span { display: block; font-size: 9.5px; font-weight: 400; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
.score.big { font-size: 40px; }
.score.good { color: var(--success); } .score.mid { color: var(--warning); }
.score.bad { color: var(--danger); }   .score.none { color: var(--text-dim); }

/* ═══ Fortschritt ═══ */
.bar { background: rgba(0, 0, 0, .3); border-radius: var(--radius); height: 5px; overflow: hidden; margin: 10px 0; }
.bar > div { background: var(--accent); height: 100%; width: 0; transition: width .2s; }

/* ═══ Befunde ═══ */
.issue-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--glass-border); }
.issue-row:last-child { border-bottom: 0; }
.count { font-weight: 700; white-space: nowrap; }
.tag {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .4px;
  padding: 2px 7px; border-radius: var(--radius); margin-right: 7px; font-weight: 600;
}
.tag.critical { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.tag.warning  { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.tag.info     { background: rgba(59, 130, 246, .18); color: #93c5fd; }

/* ═══ Befund mit Umsetzung ═══ */
.issue-block { border-bottom: 1px solid var(--glass-border); padding: 10px 0; }
.issue-block:last-child { border-bottom: 0; }
.issue-line { font-size: 12.5px; }
.fix {
  margin: 8px 0 2px 8px;
  border-left: 2px solid var(--accent);
  padding: 8px 0 4px 12px;
}
.fix-head { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.fix-steps { margin: 0; padding-left: 17px; font-size: 12px; color: var(--text-muted); }
.fix-steps li { margin-bottom: 3px; }
.snippet { position: relative; margin-top: 8px; }
.snippet pre {
  margin: 0; padding: 10px 12px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; color: #cbd5e1;
  white-space: pre-wrap; word-break: break-word;
  overflow-x: auto;
}
.snippet .copy { position: absolute; top: 6px; right: 6px; }

/* ═══ Seitenliste ═══ */
.page-list { max-height: 480px; overflow: auto; }
.page-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--glass-border); cursor: pointer; border-radius: var(--radius); transition: background var(--t-fast); }
.page-row:hover { background: var(--glass-hover); }
.page-main { min-width: 0; }
.path { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sev { display: flex; gap: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }

/* ═══ Seitendetail ═══ */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 8px; margin: 12px 0 16px; }
.fact { background: rgba(0, 0, 0, .22); padding: 7px 10px; border-radius: var(--radius); border: 1px solid var(--glass-border); }
.fact .k { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .3px; }
.fact .v { font-size: 12.5px; margin-top: 2px; word-break: break-word; }

.sugg { border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 10px 12px; margin-top: 8px; background: rgba(0, 0, 0, .22); }
.sugg .field { font-size: 10px; text-transform: uppercase; letter-spacing: .3px; color: var(--text-dim); }
.sugg .old { font-size: 11.5px; color: var(--text-dim); text-decoration: line-through; margin-top: 4px; }
.sugg .new { font-size: 13px; font-weight: 600; margin-top: 3px; color: var(--text); }

.login { max-width: 340px; margin: 60px auto; }
.login .btn { margin-top: 14px; width: 100%; justify-content: center; }
