/* Agent Dropoff — Design-System
   Nüchtern, viel Weißraum, eine Akzentfarbe.
   Typo: Space Grotesk (Display) + Space Mono (Daten), Fließtext System.
   Motiv: die Linie, die abbricht. */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/space-mono-regular.woff2') format('woff2');
}

:root {
  --paper: #F6F7F9;
  --ink: #0C0F16;
  --ink-soft: #4B5262;
  --rule: #DCE0E8;
  --accent: #2743EE;
  --accent-dark: #1B31C4;
  --accent-light: #8A97FF; /* Akzent auf dunklem Grund (audit-card) */
  /* Genau zwei Schriften auf der ganzen Site: Space Grotesk + Space Mono.
     Alles Weitere im Stack ist reiner Lade-Fallback. */
  --display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --measure: 44rem;
  --site: 76rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[id] { scroll-margin-top: 1.5rem; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 106.25%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Kopf ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
}
.site-head-inner {
  max-width: var(--site);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.75rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
h1 em, h2 em { font-style: normal; color: var(--accent); }

/* Wortmarke: das letzte f von „Dropoff" fällt.
   Die Bildmarke (fallendes Quadrat über der Lücke) läuft nur im Favicon. */
.f-drop {
  display: inline-block;
  color: var(--accent);
  transform: translateY(0.13em) rotate(10deg);
  transition: transform 0.25s ease;
}
.wordmark:hover { color: var(--ink); }
.wordmark:hover .f-drop { transform: translateY(0.26em) rotate(16deg); }
@media (prefers-reduced-motion: reduce) {
  .f-drop, .site-nav a { transition: none; }
}
.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.3rem;
  align-items: baseline;
}
.site-nav a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: transform 0.2s ease;
}
.site-nav a:hover { color: var(--accent-dark); }
/* Menüpunkte droppen: bei Hover kurz, im aktiven Zustand dauerhaft
   (der aktive Punkt liegt gelandet auf seiner Linie). */
.site-nav a:hover,
.site-nav a[aria-current="page"] { transform: translateY(0.2em); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--accent); }
.site-nav a.nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 0.42rem 0.9rem;
}
.site-nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 54rem) {
  .site-nav { margin-left: 0; width: 100%; }
}

/* ---------- Grundraster ---------- */

main { flex: 1; }

.section {
  max-width: var(--site);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 0;
}
.section:last-child { padding-bottom: 4.5rem; }

/* Redaktionelles Raster: Markierspalte links, Inhalt rechts */
.led {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem 3rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}
.led-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.led-label b { color: var(--accent); font-weight: 400; }
.led-body { max-width: var(--measure); }

@media (max-width: 54rem) {
  .led { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
}

/* ---------- Typografie ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.8vw, 3.9rem); max-width: 22ch; }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.15rem); margin-bottom: 1.1rem; max-width: 30ch; }
h3 { font-size: 1.25rem; margin: 1.8rem 0 0.5rem; }

p, ul, ol, table, pre, dl { margin-bottom: 1.05rem; max-width: var(--measure); }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }
li::marker { color: var(--accent); }
strong { font-weight: 600; }

.lede { font-size: 1.2rem; line-height: 1.55; }

small, .fine { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Motiv: die abbrechende Linie ---------- */

.dropline {
  border: 0;
  height: 2px;
  margin: 0;
  background: linear-gradient(to right, var(--ink) 0, var(--ink) 61.8%, transparent 61.8%);
  position: relative;
  max-width: none;
}
.dropline::after {
  content: '';
  position: absolute;
  left: 61.8%;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* ---------- Bausteine ---------- */

.defbox {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 1.3rem 1.5rem;
  margin: 1.6rem 0;
  max-width: 40ch;
}

.formula {
  font-family: var(--mono);
  font-size: 0.92rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

pre {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.5;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.2rem;
  overflow-x: auto;
}
code { font-family: var(--mono); font-size: 0.9em; background: #E8EBF1; padding: 0.1em 0.35em; }
pre code { background: none; padding: 0; }

/* Zahlenreihe */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: none;
}
.stats > div { border-top: 1px solid var(--rule); padding-top: 1rem; }
.stat-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.stats p { font-size: 0.98rem; margin-bottom: 0.5rem; }
.source {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  display: block;
}
.source a { color: inherit; }
@media (max-width: 54rem) {
  .stats { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* Abbruchstellen-Liste */
.blockers { list-style: none; padding: 0; counter-reset: blocker; max-width: var(--measure); }
.blockers li {
  counter-increment: blocker;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.blockers li::before {
  content: counter(blocker, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  padding-top: 0.15rem;
}
.blockers b { display: block; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost {
  background: none;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin: 1.4rem 0; }

/* Formulare */
form { max-width: 30rem; }
.field { margin-bottom: 1.1rem; }
label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 0.3rem; }
input[type="text"], input[type="email"], input[type="url"] {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--ink-soft);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}
input:focus { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; top: -9999px; }

/* Tabellen */
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; padding: 0.55rem 0.9rem 0.55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }
td code { white-space: nowrap; }
.table-scroll { overflow-x: auto; max-width: var(--measure); }

/* Schrittliste (Audit-Ablauf) */
.steps { list-style: none; padding: 0; max-width: var(--measure); }
.steps li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.steps .step-no {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--accent);
}
.steps b { display: block; font-weight: 600; margin-bottom: 0.2rem; }

/* Heuristiken */
.heuristic { border-top: 1px solid var(--rule); padding: 1.3rem 0; max-width: var(--measure); }
.heuristic h3 { margin: 0 0 0.4rem; display: flex; gap: 0.8rem; align-items: baseline; }
.heuristic h3 .no { font-family: var(--mono); font-size: 0.82rem; font-weight: 400; color: var(--accent); }
.heuristic .check {
  font-size: 0.94rem;
  border-left: 3px solid var(--rule);
  padding-left: 0.9rem;
  color: var(--ink-soft);
}
.heuristic .check b { color: var(--ink); font-weight: 600; }

/* Preisblock */
.price {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price small { font-family: var(--sans); font-weight: 400; font-size: 1rem; color: var(--ink-soft); display: block; margin-top: 0.3rem; }

/* ---------- Agent-Check ---------- */

.check-form { display: flex; flex-wrap: wrap; gap: 0.9rem; max-width: 34rem; align-items: stretch; }
.check-form input[name="url"] { flex: 1 1 16rem; }
.score-line {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.check-row {
  border-top: 1px solid var(--rule);
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.6rem 1.5rem;
  max-width: var(--measure);
}
.check-row h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.check-row p { margin-bottom: 0.4rem; }
.check-row .why { font-size: 0.88rem; color: var(--ink-soft); }
.badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  display: inline-block;
  align-self: start;
  justify-self: start;
  white-space: nowrap;
}
.b-pass { background: var(--accent); color: #fff; }
.b-warn { border: 1px solid var(--ink); color: var(--ink); }
.b-fail { background: var(--ink); color: #fff; }
.b-open { border: 1px dashed var(--ink-soft); color: var(--ink-soft); }

/* Audit-Karte (Ergebnisseite): dunkles Panel im Stil der Formel-Blöcke */
.audit-card {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  margin-top: 2.4rem;
  max-width: none;
}
.audit-card h2 { color: #fff; max-width: 34ch; }
.audit-card em { font-style: normal; color: var(--accent-light); }
.audit-card a { text-decoration-color: var(--accent-light); }
.audit-card a:hover { color: var(--accent-light); }
.audit-card .fine, .audit-card small { color: #A9AFBC; }
.mini-steps {
  list-style: none;
  padding: 0;
  counter-reset: ms;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 1.8rem 0;
  max-width: none;
}
.mini-steps li {
  counter-increment: ms;
  margin: 0;
  border-top: 1px solid #2A2F3B;
  padding-top: 0.7rem;
  font-size: 0.92rem;
  color: #C9CDD7;
}
.mini-steps li::before {
  content: counter(ms, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-light);
  display: block;
  margin-bottom: 0.35rem;
}
.mini-steps b { display: block; color: var(--paper); font-weight: 600; margin-bottom: 0.15rem; }
@media (max-width: 54rem) {
  .mini-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card-price {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0.4rem 0 1.2rem;
}
.card-price small { font-size: 1rem; font-weight: 400; margin-left: 0.6rem; }
.btn.btn-ghost-inv { background: none; border: 1px solid var(--paper); color: var(--paper); }
.btn.btn-ghost-inv:hover { background: var(--paper); color: var(--ink); }
.audit-card form { margin-top: 1.6rem; }
.copy-btn {
  font: inherit;
  font-size: 0.8rem;
  background: none;
  border: 1px solid var(--ink-soft);
  color: var(--ink-soft);
  padding: 0.12rem 0.55rem;
  margin-left: 0.4rem;
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.audit-card input:focus-visible, .audit-card button:focus-visible, .audit-card a:focus-visible { outline-color: var(--accent-light); }
.audit-card input { border-color: transparent; }
@media (max-width: 54rem) {
  .check-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Fuß ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: 4.5rem;
}
.site-foot-inner {
  max-width: var(--site);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: baseline;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-foot .foot-brand { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink); }
