/* jstats.de – Design "Petrol" (hell, statisch, systemnah) */
:root {
  --papier: #F8FAFC;
  --panel: #FFFFFF;
  --text: #0F172A;
  --muted: #5B6779;
  --linie: #E2E8F0;
  --petrol: #0E7490;      /* Akzent, AA auf Weiß */
  --petrol-tief: #155E75;
  --amber: #B45309;
  --mint: #047857;
  --violett: #6D28D9;
  --rot: #B91C1C;
  --blau: #1D4ED8;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font: 400 1.02rem/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.jst-schale { max-width: 880px; margin: 0 auto; padding: 0 20px; }
a { color: var(--petrol-tief); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--petrol); }
code {
  font: 0.86em/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
  background: #EEF2F7; border: 1px solid var(--linie);
  border-radius: 6px; padding: 1px 6px; word-break: break-all;
}

/* ---------- Kopf ---------- */
.jst-kopf { background: var(--panel); border-bottom: 1px solid var(--linie); }
.jst-kopfzeile { display: flex; flex-wrap: wrap; gap: 10px 22px;
  align-items: center; padding: 14px 20px; }
.jst-brand { display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.18rem; color: var(--text);
  text-decoration: none; }
.jst-brand-sub { font-size: .6rem; font-weight: 700; letter-spacing: .14em;
  color: var(--muted); margin-left: 2px; }
.jst-logo { width: 24px; height: 24px; flex: none; }
.jstm-b { fill: var(--text); }
.jstm-bh { fill: var(--petrol); }
.jst-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto;
  align-items: center; }
.jst-nav a { font-size: .95rem; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 4px 2px; }
.jst-nav a:hover, .jst-nav a:focus-visible { color: var(--text);
  text-decoration: underline; }
.jst-nav a.jst-akt { color: var(--petrol-tief);
  text-decoration: underline; text-decoration-thickness: 2px; }
.jst-lang { border: 1px solid var(--linie); border-radius: 999px;
  padding: 3px 12px !important; background: var(--papier);
  color: var(--text) !important; }
.jst-lang:hover, .jst-lang:focus-visible { border-color: var(--petrol); }

/* ---------- Inhalt ---------- */
main.jst-schale { padding: 34px 20px 56px; }
.jst-artikel > h1 { font-size: clamp(1.7rem, 4.4vw, 2.35rem);
  line-height: 1.18; letter-spacing: -.015em; margin: 6px 0 12px; }
.jst-eyebrow { margin: 0; font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--petrol-tief); }
.jst-sub { font-size: 1.08rem; color: var(--muted); margin: 0 0 22px; }
.jst-artikel h2 { font-size: 1.28rem; margin: 34px 0 10px;
  letter-spacing: -.01em; }
.jst-artikel p { margin: 0 0 14px; }
.jst-stand { color: var(--muted); font-size: .92rem; border-top: 1px solid var(--linie);
  padding-top: 14px; margin-top: 28px; }

/* Schritte */
.jst-schritte { margin: 0 0 14px; padding-left: 22px; }
.jst-schritte li { margin: 0 0 9px; padding-left: 4px; }
.jst-schritte li::marker { font-weight: 800; color: var(--petrol); }

/* Download-Box */
.jst-dlbox { background: var(--panel); border: 1px solid var(--linie);
  border-top: 4px solid var(--petrol); border-radius: 12px;
  padding: 18px 20px; margin: 22px 0 26px; }
.jst-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px 18px; margin: 0 0 14px; }
.jst-spec dt { font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.jst-spec dd { margin: 0; font-weight: 700; }
.jst-cta-zeile { margin: 0 0 10px; }
.jst-cta { display: inline-block; background: var(--petrol); color: #fff;
  font-weight: 800; padding: 12px 22px; border-radius: 10px;
  text-decoration: none; }
.jst-cta:hover, .jst-cta:focus-visible { background: var(--petrol-tief);
  color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.jst-sha { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.jst-cta-note { margin: 0; font-size: .88rem; color: var(--muted); }

/* Screenshots */
.jst-shot { margin: 18px 0 22px; }
.jst-shot img { max-width: 100%; height: auto; border: 1px solid var(--linie);
  border-radius: 10px; background: var(--panel); }
.jst-shot figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* Optionen-Referenz */
.jst-optionen { margin: 0 0 14px; display: grid; gap: 12px; }
.jst-option { background: var(--panel); border: 1px solid var(--linie);
  border-radius: 10px; padding: 14px 16px; }
.jst-option dt { font-weight: 800; margin: 0 0 4px; }
.jst-option dt em { font-weight: 600; color: var(--muted); font-style: normal; }
.jst-option dd { margin: 0; color: var(--text); }

/* FAQ */
.jst-faq { background: var(--panel); border: 1px solid var(--linie);
  border-radius: 10px; margin: 0 0 10px; padding: 0; }
.jst-faq summary { cursor: pointer; font-weight: 700; padding: 13px 16px;
  list-style-position: inside; }
.jst-faq summary::marker { color: var(--petrol); }
.jst-faq[open] summary { border-bottom: 1px solid var(--linie); }
.jst-faq p { margin: 0; padding: 12px 16px 14px; }

/* Changelog-Zeitleiste */
.jst-zeitleiste { position: relative; margin: 6px 0 18px; padding-left: 22px; }
.jst-zeitleiste::before { content: ""; position: absolute; left: 6px; top: 8px;
  bottom: 8px; width: 3px; border-radius: 2px; background: var(--linie); }
.jst-version { position: relative; background: var(--panel);
  border: 1px solid var(--linie); border-radius: 12px;
  padding: 14px 18px 8px; margin: 0 0 16px; }
.jst-version::before { content: ""; position: absolute; left: -22px; top: 22px;
  width: 13px; height: 13px; border-radius: 50%; background: var(--petrol);
  border: 3px solid var(--papier); }
.jst-version h2 { margin: 0 0 10px; font-size: 1.12rem; }
.jst-vbadge { display: inline-block; vertical-align: 2px; margin-left: 8px;
  font-size: .66rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: var(--petrol);
  border-radius: 999px; padding: 2px 10px; }
.jst-cl { list-style: none; margin: 0; padding: 0; }
.jst-cl li { display: flex; gap: 10px; align-items: baseline;
  padding: 6px 0 10px; border-top: 1px dashed var(--linie); }
.jst-cl li:first-child { border-top: 0; }
.jst-chip { flex: none; display: inline-block; font-size: .68rem;
  font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 10px; color: #fff; }
.jst-chip-note { background: var(--muted); }
.jst-chip-fix { background: var(--amber); }
.jst-chip-lang { background: var(--violett); }
.jst-chip-add { background: var(--mint); }
.jst-chip-change { background: var(--blau); }
.jst-chip-removed { background: #475569; }
.jst-chip-security { background: var(--rot); }
.jst-legende { font-size: .9rem; color: var(--muted); }
.jst-legende .jst-chip { vertical-align: 1px; }

/* Recht & 404 */
.jst-recht h2 { font-size: 1.1rem; }
.jst-404 h1 { color: var(--petrol-tief); }

/* ---------- Fuss ---------- */
.jst-fuss { background: var(--panel); border-top: 1px solid var(--linie);
  margin-top: 30px; }
.jst-fuss .jst-schale { padding: 22px 20px 26px; }
.jst-fuss p { margin: 0 0 6px; font-size: .95rem; }
.jst-fuss-klein { color: var(--muted); font-size: .88rem !important; }

@media (max-width: 640px) {
  .jst-kopfzeile { padding: 12px 16px; }
  .jst-nav { margin-left: 0; }
  main.jst-schale { padding-top: 24px; }
}

/* Wissensbereich */
.jst-kurz { background: var(--panel); border: 1px solid var(--linie);
  border-left: 4px solid var(--petrol); border-radius: 10px;
  padding: 14px 18px 4px; margin: 0 0 8px; }
.jst-fakten { margin: 0 0 14px; padding-left: 22px; }
.jst-fakten li { margin: 0 0 8px; padding-left: 4px; }
.jst-fakten li::marker { color: var(--petrol); }
.jst-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px; margin: 0 0 10px; }
.jst-fkarte { display: block; background: var(--panel);
  border: 1px solid var(--linie); border-radius: 10px; padding: 12px 14px;
  font-weight: 600; color: var(--text); text-decoration: none; }
.jst-fkarte:hover, .jst-fkarte:focus-visible { border-color: var(--petrol);
  color: var(--petrol-tief); text-decoration: underline; }
