/* Brightlabel Akquise-Konsole
   Kuehles Papier, ein einziger Farbverlauf fuer Lead-Temperatur, sonst nichts Buntes. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper: #f1f2f4;
  --sheet: #fafbfc;
  --ink: #161a22;
  --muted: #6b7480;
  --rule: #cdd2da;
  --cold: #7e8ba0;
  --warm: #b8447a;
  --hot: #d6104e;
  --sans: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --measure: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 var(--sans); font-variant-numeric: tabular-nums;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 37px; line-height: 1.1; }
h2 { font-size: 21px; line-height: 1.25; }
h3 { font-size: 16px; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Navigation: duenn, ohne Kasten, aktiv per Unterstrich */
header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
header .wrap { display: flex; align-items: baseline; gap: 30px; height: 58px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.03em; text-decoration: none; }
nav { display: flex; gap: 22px; flex: 1; }
nav a { text-decoration: none; color: var(--muted); font-size: 14px; padding-bottom: 3px; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--ink); }
nav a[aria-current] { color: var(--ink); border-color: var(--ink); }

main { padding: 40px 0 96px; }
section + section { margin-top: 52px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }

/* Das Signalband: ein Balken pro Tag, Hoehe = Besuche, Farbe = heissester Lead */
.signal { display: flex; align-items: flex-end; gap: 3px; height: 104px; border-bottom: 1px solid var(--rule); }
.signal div { flex: 1; min-height: 2px; background: var(--cold); border-radius: 1px 1px 0 0; transition: opacity .15s; }
.signal div:hover { opacity: .6; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-top: 7px; }

/* Kennzahlen als Satz, nicht als Kachelraster */
.stats { display: flex; flex-wrap: wrap; gap: 44px; margin: 30px 0 0; }
.stat b { display: block; font-family: var(--display); font-size: 37px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: 13px; color: var(--muted); }

/* Leads: dichte Zeilen mit Haarlinien */
.lead { display: grid; grid-template-columns: 58px minmax(150px, 1.1fr) 2fr auto; gap: 18px;
  align-items: center; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.lead:first-of-type { border-top: 1px solid var(--rule); }
.temp { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.who { font-weight: 500; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; color: var(--muted); border: 1px solid var(--rule); border-radius: 2px; padding: 2px 7px; white-space: nowrap; }
.when { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 0 12px 9px 0; border-bottom: 1px solid var(--rule); }
td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.num, th.num { text-align: right; padding-right: 0; }
tbody tr:hover { background: var(--sheet); }
.bar { height: 6px; background: var(--cold); border-radius: 1px; display: block; }

/* SEO-Befunde */
.issue { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 46px 1fr; gap: 18px; }
.issue:first-of-type { border-top: 1px solid var(--rule); }
.issue .cost { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--hot); line-height: 1.3; }
.issue p { margin: 4px 0 8px; color: var(--muted); max-width: 68ch; }
.paths { display: flex; flex-wrap: wrap; gap: 6px; }

/* Formulare, Knoepfe */
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 2px; background: #fff; color: var(--ink); width: 100%; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1; min-width: 160px; }
button, .btn { font: 500 14px var(--sans); background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  border-radius: 2px; padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-block; width: auto; }
button:hover { background: #000; }
button.ghost { background: transparent; color: var(--ink); }
button.ghost:hover { background: var(--sheet); }
button.link { background: none; border: 0; color: var(--muted); padding: 0; text-decoration: underline; font-size: 13px; }

/* Einbaucode */
pre { background: var(--ink); color: #e8eaee; padding: 16px; border-radius: 3px; overflow-x: auto; font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; margin: 0; }
.snippet { position: relative; }
.snippet button { position: absolute; top: 10px; right: 10px; background: #2b313d; border-color: #2b313d; color: #e8eaee; padding: 6px 11px; font-size: 12px; }

/* Login */
.login { max-width: 340px; margin: 14vh auto; }
.login h1 { font-size: 28px; margin-bottom: 6px; }
.error { color: var(--hot); font-size: 13px; margin-bottom: 12px; }
.empty { color: var(--muted); padding: 34px 0; max-width: 60ch; }

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  h1 { font-size: 28px; }
  header .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 14px 20px; }
  nav { gap: 16px; flex-wrap: wrap; }
  .stats { gap: 26px; }
  .stat b { font-size: 28px; }
  .lead { grid-template-columns: 46px 1fr; gap: 6px 14px; }
  .lead .when { grid-column: 2; text-align: left; }
  .lead .chips { grid-column: 2; }
  .signal { height: 76px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
