@import url('/fonts/fonts.css');

/* ────────────────────────────────────────────────────────────────────────────
   FeedWache — Nachtwache am Signalbrett.

   Ein Raum, der nachts jemanden braucht. Die Sprache kommt von der
   Signaltafel: gesperrte Schriften auf Tafeln, Messwerte in Monospace,
   Lampen, die Zustände zeigen, und der Impulsstrich als Lebenszeichen.

   Drei Stimmen: Archivo (variabel, 62–125 %) spricht die Tafeln,
   IBM Plex Mono spricht die Maschine, Familjen Grotesk bleibt der Mensch.
   Farbe trägt Bedeutung: Amber ist Signal, Rot/Grün/Blau sind Zustände.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  --bg:      #0b0c0e;
  --panel:   #101114;
  --panel-2: #15161a;
  --line:    #212329;
  --line-2:  #33363e;

  --text:    #eceae3;
  --muted:   #a3a098;
  --dim:     #6d6b65;

  --signal:  #e8b04b;   /* Aktion, Lebenszeichen */
  --alert:   #e05d4b;   /* Fehler */
  --warn:    #d9a03c;   /* Warnung */
  --calm:    #7fb28a;   /* in Ordnung */
  --cool:    #7ea8c9;   /* Hinweis */

  --display: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans:    'Familjen Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* Der Riss im Dunkel: feines Millimeterpapier und ein Warmhalten von oben.
   Rein dekorativ, daher ohne Inhalt und nicht vorlesbar. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 420px at 50% -140px, rgba(232, 176, 75, .07), transparent 70%),
    repeating-linear-gradient(to right, rgba(236, 234, 227, .022) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(to bottom, rgba(236, 234, 227, .022) 0 1px, transparent 1px 52px);
}

a { color: var(--text); }

::selection { background: var(--signal); color: #17130b; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.shell.narrow { max-width: 720px; }

/* ── Kopf und Fuß ─────────────────────────────────────────────────────────── */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 14, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer.site { border-bottom: 0; border-top: 1px solid var(--line); margin-top: 110px; }

header.site .inner, footer.site .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 64px; flex-wrap: wrap;
}
footer.site .inner { min-height: 76px; color: var(--dim); font-size: .9rem; }

.brand {
  font-family: var(--display);
  font-stretch: 116%;
  font-weight: 640;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.02rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
/* Der Punkt hinter dem Namen ist die Lampe der Wache. */
.brand::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px rgba(232, 176, 75, .8);
  animation: lamp-breathe 3.2s ease-in-out infinite;
}

@keyframes lamp-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

header.site nav, footer.site nav { display: flex; gap: 24px; }
header.site nav a, footer.site nav a {
  color: var(--muted); text-decoration: none;
  font-family: var(--mono); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em;
}
header.site nav a:hover, footer.site nav a:hover { color: var(--signal); }

/* Auf schmalen Screens gibt die Kopfzeile die Lampen auf — der Platz gehört
   der Eingabe, und der Zustand leuchtet oben am Pult ohnehin auf. */
@media (max-width: 720px) {
  .lamps { display: none; }
}

/* Die drei Zustände, wie sie auf jedem Prüfband hängen. */
.lamps { display: flex; gap: 16px; align-items: center; }
.lamp {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .66rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--dim);
}
.lamp i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dim);
  opacity: .5;
}
.lamp.err i { background: var(--alert); opacity: 1; box-shadow: 0 0 8px rgba(224, 93, 75, .7); }
.lamp.warn i { background: var(--warn); opacity: 1; box-shadow: 0 0 8px rgba(217, 160, 60, .7); }
.lamp.ok i { background: var(--calm); opacity: 1; box-shadow: 0 0 8px rgba(127, 178, 138, .7); }
.lamp i { animation: lamp-on .9s ease-out backwards; }
.lamp.warn i { animation-delay: .25s; }
.lamp.ok i { animation-delay: .5s; }

@keyframes lamp-on {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Der Impulsstrich ─────────────────────────────────────────────────────── */

.trace { display: block; width: 100%; height: 64px; color: var(--signal); }
.trace .base  { stroke: var(--line-2); stroke-width: 1; fill: none; }
.trace .live  {
  stroke: currentColor; stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 140 1760;
  filter: drop-shadow(0 0 6px rgba(232, 176, 75, .55));
  animation: trace-run 7s linear infinite;
}

@keyframes trace-run {
  from { stroke-dashoffset: 1900; }
  to   { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .trace .live, .brand::after, .lamp i { animation: none; }
  .lamp i { opacity: 1; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero { padding: 84px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: start;
}

h1 {
  margin: 0 0 26px;
  font-family: var(--display);
  font-stretch: 116%;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.005em;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 19ch;
  text-wrap: balance;
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards;
}
h1 .em { color: var(--signal); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.deck {
  margin: 0 0 44px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise .7s .12s cubic-bezier(.2, .7, .2, 1) backwards;
}

/* Der Faktenpfahl rechts: Daten, wie sie an einer Tafel hängen. */
.hero-meta {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 6px 0 6px 26px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 18px;
  animation: rise .7s .2s cubic-bezier(.2, .7, .2, 1) backwards;
}
.hero-meta div b {
  display: block;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .06em;
  margin-top: 2px;
}
.hero-meta div b em { font-style: normal; color: var(--signal); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { display: none; }
}

/* ── Sofort-Check: das Pult ───────────────────────────────────────────────── */

.probe {
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: 0 24px 70px -40px rgba(0, 0, 0, .9);
  animation: rise .7s .2s cubic-bezier(.2, .7, .2, 1) backwards;
}

.probe-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}

/* Die Lampe am Pult zeigt den Zustand der Prüfung. */
.probe-head .state { color: var(--dim); display: inline-flex; align-items: center; gap: 8px; }
.probe-head .state::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dim);
  opacity: .55;
}
.probe[data-state="running"] .probe-head .state { color: var(--signal); }
.probe[data-state="running"] .probe-head .state::before {
  background: var(--signal); opacity: 1;
  box-shadow: 0 0 9px rgba(232, 176, 75, .8);
  animation: lamp-breathe 1.1s ease-in-out infinite;
}
.probe[data-state="done"] .probe-head .state { color: var(--calm); }
.probe[data-state="done"] .probe-head .state::before {
  background: var(--calm); opacity: 1;
  box-shadow: 0 0 9px rgba(127, 178, 138, .7);
}
.probe[data-state="error"] .probe-head .state { color: var(--alert); }
.probe[data-state="error"] .probe-head .state::before {
  background: var(--alert); opacity: 1;
  box-shadow: 0 0 9px rgba(224, 93, 75, .8);
}

.probe-form { display: flex; flex-wrap: wrap; }

.probe-form input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 19px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: .95rem;
}
.probe-form input::placeholder { color: var(--dim); }
.probe-form input:focus { outline: 2px solid var(--signal); outline-offset: -2px; }

.probe-form button {
  flex: 0 0 auto;
  padding: 19px 30px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--signal);
  color: #17130b;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .15s ease;
}
.probe-form button:hover { background: #f2c167; }
.probe-form button:disabled { background: var(--panel-2); color: var(--dim); cursor: default; }

/* Umbricht der Knopf, gehoert er ueber die volle Breite — sonst steht er
   als angeschnittener Block neben leerem Raum. */
@media (max-width: 520px) {
  .probe-form input { flex: 1 1 100%; }
  .probe-form button { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--line); }
}

.probe-note {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .86rem;
  line-height: 1.55;
}

/* Der Weg fuer alle, die erst sehen wollen, was herauskommt, bevor sie ihre
   eigene Domain eintippen. Eigene Zeile, sonst geht er im Hinweis unter. */
.probe-demo {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
}
.probe-demo a {
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono); font-size: .8rem;
  letter-spacing: .04em;
}
.probe-demo a:hover { color: var(--signal); border-bottom-color: var(--signal); }

/* Fortschritt */
.progress { display: none; padding: 16px 18px; border-top: 1px solid var(--line); }
.probe[data-state="running"] .progress { display: block; }
.progress-bar { height: 2px; background: var(--line); }
.progress-bar i {
  display: block; height: 100%; width: 0;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(232, 176, 75, .55);
  transition: width .3s linear;
}
.progress-label {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 10px;
  font-family: var(--mono); font-size: .74rem;
  color: var(--dim);
}
.progress-label .tick {
  color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Ergebnis ─────────────────────────────────────────────────────────────── */

.result:empty { display: none; }

/* Statt einer Zahl in einem Kreis: ein Stempel. Schief wie echt. */
.verdict {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 18px;
  border-top: 1px solid var(--line);
}
.verdict .mark {
  flex: 0 0 auto;
  min-width: 34px; height: 34px;
  padding: 0 6px;
  display: grid; place-items: center;
  border: 1.5px solid currentColor;
  outline: 1px solid currentColor;
  outline-offset: 2.5px;
  transform: rotate(-5deg);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  margin-top: 3px;
}
.verdict.bad  .mark { color: var(--alert); }
.verdict.warn .mark { color: var(--warn); }
.verdict.ok   .mark { color: var(--calm); }
.verdict h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-stretch: 110%;
  font-size: 1.12rem;
  font-weight: 640;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.verdict p { margin: 0; color: var(--muted); font-size: .93rem; }

.tally { display: flex; border-top: 1px solid var(--line); }
.tally > div {
  flex: 1 1 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.tally > div:last-child { border-right: 0; }
.tally .n {
  display: block;
  font-family: var(--mono); font-weight: 500;
  font-size: 1.55rem; line-height: 1.2;
}
.tally .k {
  font-family: var(--mono);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--dim);
}
.tally .e .n { color: var(--alert); }
.tally .w .n { color: var(--warn); }
.tally .i .n { color: var(--cool); }

.finding { border-top: 1px solid var(--line); }
.finding > summary {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  border-left: 2px solid transparent;
}
.finding > summary::-webkit-details-marker { display: none; }
.finding[data-sev="error"]   > summary { border-left-color: var(--alert); }
.finding[data-sev="warning"] > summary { border-left-color: var(--warn); }
.finding[data-sev="info"]    > summary { border-left-color: var(--cool); }
.finding .ftitle { flex: 1 1 auto; font-weight: 600; font-size: .98rem; }
.finding .fcount {
  font-family: var(--mono); font-size: .8rem; color: var(--dim);
}
.finding .chev { color: var(--dim); font-size: .75rem; }
.finding[open] .chev { transform: rotate(90deg); }

.fbody { padding: 0 18px 20px 20px; }
.fbody > p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.fbody .fix { color: var(--text); font-size: .93rem; margin-top: 14px; margin-bottom: 0; }
.fbody .fix strong { color: var(--signal); font-weight: 600; }

.tablewrap { overflow-x: auto; }
.rows { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rows th {
  text-align: left; padding: 0 12px 8px 0;
  font-family: var(--mono);
  font-size: .66rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.rows td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rows td:last-child, .rows th:last-child { padding-right: 0; }
.rows a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); }
.rows a:hover { text-decoration-color: var(--signal); }
.rows .v-feed { color: var(--muted); font-family: var(--mono); font-size: .82rem; }
.rows .v-page { color: var(--signal); font-family: var(--mono); font-size: .82rem; }
.more { color: var(--dim); font-size: .85rem; margin-top: 10px; }

/* Auf dem Telefon wird aus der Tabelle eine Liste: drei Spalten auf 375 px
   quetschen jedes Wort in eine eigene Zeile und machen den Befund unlesbar. */
@media (max-width: 640px) {
  .rows thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rows, .rows tbody, .rows tr, .rows td { display: block; width: 100%; }
  .rows tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .rows tr:last-child { border-bottom: 0; }
  .rows td { border-bottom: 0; padding: 2px 0; }
  .rows td[data-l] { display: flex; gap: 10px; align-items: baseline; }
  .rows td[data-l]::before {
    content: attr(data-l) ':';
    flex: 0 0 auto; min-width: 104px;
    color: var(--dim); font-size: .78rem;
    font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em;
  }
  /* Die Berichtsseite erbt generische Tabellenregeln mit hoeherer
     Spezifitaet — hier muss die Listendarstellung sie ueberstimmen. */
  body.plain .rows td { border-bottom: 0; padding: 2px 0; }
  body.plain .rows tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  body.plain .rows tr:last-child { border-bottom: 0; }
}

/* Umwandlung zur Überwachung */
.watch { padding: 24px 18px; border-top: 1px solid var(--line); background: var(--panel-2); }
.watch h3, .watch h4 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-stretch: 110%;
  font-size: 1.06rem;
  font-weight: 640;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.watch > p { margin: 0 0 18px; color: var(--muted); font-size: .93rem; max-width: 60ch; }
.watch form { display: flex; flex-wrap: wrap; gap: 10px; }
.watch input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono); font-size: .88rem;
}
.watch input::placeholder { color: var(--dim); }
.watch button {
  padding: 13px 24px;
  border: 1px solid var(--signal);
  background: transparent;
  color: var(--signal);
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.watch button:hover { background: var(--signal); color: #17130b; }
.watch button:disabled { border-color: var(--line-2); color: var(--dim); background: transparent; cursor: default; }
.watch .hp, .notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.watch .note, .watch .legal { margin: 14px 0 0; color: var(--dim); font-size: .82rem; line-height: 1.5; }
.watch .legal a { color: var(--muted); }
.watch .msg { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.watch .msg.bad { color: var(--alert); }
.watch .msg.ok  { color: var(--calm); }

.err, .err-box {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--alert);
  font-size: .95rem;
}

/* ── Textabschnitte ───────────────────────────────────────────────────────── */

section.band { padding: 82px 0; border-top: 1px solid var(--line); }

/* Die Zählung oben auf jeder Tafel: 01 · WARUM */
.kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--dim);
}
.kicker b { color: var(--signal); font-weight: 500; margin-right: 10px; }

h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-stretch: 112%;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 660;
  text-transform: uppercase;
  max-width: 24ch;
  text-wrap: balance;
}

.lead { margin: 0; max-width: 62ch; color: var(--muted); }

/* Zitate sind hier Protokollauszuege: dunkler Grund, Aktenzeichen, Quelle. */
.fact {
  margin: 36px 0 0;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--signal);
}
.fact q {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}
.fact q::before, .fact q::after { content: none; }
.fact .src {
  display: block; margin-top: 12px;
  font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--dim);
}
.fact .src a { color: var(--muted); }
.fact .src a:hover { color: var(--signal); }

/* Regelkarten — nummeriert wie ein Formular. */
.rules {
  counter-reset: r;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}
.rule { background: var(--bg); padding: 22px 20px; }
/* Bleibt in der letzten Zeile Platz uebrig, fuellt die letzte Karte ihn aus —
   sonst steht dort eine leere, andersfarbige Flaeche. Beide Faelle, damit die
   Regel jede Kartenzahl vertraegt und nicht bei der naechsten Regel bricht. */
.rule:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.rule:last-child:nth-child(3n + 2) { grid-column: 2 / -1; }
.rule::before {
  counter-increment: r;
  content: counter(r, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--signal);
  margin-bottom: 12px;
}
.rule h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-stretch: 108%;
  font-size: .98rem;
  font-weight: 640;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.rule p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* Tarife */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}
.plan {
  background: var(--bg);
  padding: 28px 22px;
  display: flex; flex-direction: column;
}
/* Pro trägt das Signalband: hier ist der Verkauf. */
.plan--pro { background: var(--panel); box-shadow: inset 0 3px 0 var(--signal); }
.plan h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-stretch: 110%;
  font-size: 1.02rem;
  font-weight: 660;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.plan .price {
  font-family: var(--mono);
  font-size: 1.9rem; font-weight: 500;
  letter-spacing: -.02em; line-height: 1.1;
}
.plan .price small {
  font-size: .8rem; font-weight: 400;
  color: var(--dim); letter-spacing: 0;
}
.plan ul { list-style: none; margin: 20px 0 24px; padding: 0; }
.plan li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: .92rem;
}
.plan li:last-child { border-bottom: 0; }
.plan .cta { margin-top: auto; }
.plan .cta a {
  display: inline-block; padding: 12px 22px;
  border: 1px solid var(--signal); color: var(--signal);
  text-decoration: none;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  transition: background .15s ease, color .15s ease;
}
.plan .cta a:hover { background: var(--signal); color: #17130b; }
.plan .cta span { color: var(--dim); font-size: .9rem; }

/* ── Der Streifen: die Regeln ziehen vorbei wie Logzeilen ─────────────────── */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 11px 0;
  margin-top: 64px;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-move 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--dim);
  padding-right: 3.2rem;
}
.ticker-track span::after {
  content: '·';
  color: var(--signal);
  position: absolute; margin-left: 1.4rem;
}

@keyframes ticker-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; }
}

/* ── Rechtstexte und Berichte ─────────────────────────────────────────────── */

body.plain { font-size: 16px; }
/* Nur oben und unten setzen — das seitliche Polster kommt von .shell und
   darf hier nicht ueberschrieben werden, sonst klebt der Text am Rand. */
body.plain main { padding-top: 56px; padding-bottom: 96px; }
body.plain .back {
  display: block; margin-bottom: 28px;
  color: var(--muted); font-size: .93rem;
  font-family: var(--mono); font-size: .8rem;
  letter-spacing: .06em;
  text-decoration: none;
}
body.plain .back:hover { color: var(--signal); }
body.plain h1 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  max-width: none; margin-bottom: 30px;
  text-transform: none;
  font-stretch: 112%;
}
body.plain h2 { font-size: 1.1rem; margin: 42px 0 12px; max-width: none; }
body.plain h3 { font-size: 1rem; margin: 24px 0 8px; font-weight: 600; }
body.plain p, body.plain li { color: var(--muted); }
body.plain strong { color: var(--text); font-weight: 600; }
body.plain a { color: var(--text); }
body.plain a:hover { color: var(--signal); }
body.plain code {
  font-family: var(--mono);
  font-size: .84em; color: var(--text); word-break: break-all;
}
body.plain table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .93rem; }
body.plain th, body.plain td {
  text-align: left; padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted);
}
body.plain th {
  color: var(--dim); font-weight: 500;
  font-family: var(--mono);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
}
body.plain dt { color: var(--dim); font-size: .88rem; margin-top: 16px; }
body.plain dd { margin: 2px 0 0; color: var(--text); }
body.plain .muted { color: var(--dim); }

body.plain .verdictline {
  font-family: var(--display);
  font-stretch: 110%;
  font-size: 1.18rem;
  font-weight: 660;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text);
  margin: 6px 0 32px;
}
body.plain .rep {
  border-top: 1px solid var(--line);
  padding-top: 22px; margin-top: 30px;
}
body.plain .rep h2 { margin-top: 0; text-transform: none; }
body.plain .rep .muted { font-weight: 400; }
/* Die Schwere springt an die Überschrift des Befundblocks. */
body.plain .rep[data-sev="error"] h2   { border-left: 3px solid var(--alert); padding-left: 12px; }
body.plain .rep[data-sev="warning"] h2 { border-left: 3px solid var(--warn); padding-left: 12px; }
body.plain .rep[data-sev="info"] h2    { border-left: 3px solid var(--cool); padding-left: 12px; }

/* ── Vormerkung in den Tarifkarten ────────────────────────────────────────── */

.notify { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.notify input[type="email"] {
  width: 100%; padding: 11px 12px;
  border: 1px solid var(--line-2); background: var(--bg);
  color: var(--text);
  font-family: var(--mono); font-size: .84rem;
  border-radius: 0;
}
.notify input[type="email"]:focus { outline: 0; border-color: var(--signal); }
.notify input[type="email"]:disabled { color: var(--dim); }
.notify button {
  padding: 11px 14px; border: 1px solid var(--line-2); background: transparent;
  color: var(--text);
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  cursor: pointer;
}
.notify button:hover:not(:disabled) { border-color: var(--signal); color: var(--signal); }
.notify button:disabled { color: var(--dim); cursor: default; }
.notify .msg:empty { display: none; }
.notify .msg { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.notify .msg.ok { color: var(--calm); }
.notify .msg.bad { color: var(--alert); }

/* Bestätigung einer endgültigen Aktion */
button.danger {
  padding: 12px 18px; border: 1px solid var(--alert); background: transparent;
  color: var(--alert);
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  cursor: pointer;
}
button.danger:hover { background: var(--alert); color: var(--bg); }

/* Kleine Abstands- und Textklassen. Bewusst als Klassen statt als
   style-Attribut: die Content-Security-Policy erlaubt keine Inline-Stile. */
.spaced { margin-top: 40px; }
.lead.spaced { margin-top: 34px; }
.stand { font-size: .85rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Druck ────────────────────────────────────────────────────────────────── */

@media print {
  :root {
    --bg: #fff; --panel: #fff; --panel-2: #fff;
    --text: #000; --muted: #333; --dim: #666;
    --line: #ccc; --line-2: #999; --signal: #8a6420;
  }
  body::before { display: none; }
  body { background: #fff; color: #000; }
  header.site, footer.site nav, .ticker { display: none; }
  .probe-form, .watch { display: none; }
  .finding { break-inside: avoid; }
}
