:root {
  --bg:          #0d1117;
  --bg-elev:     #151b24;
  --bg-elev-2:   #1b2330;
  --border:      rgba(255,255,255,0.08);
  --border-str:  rgba(255,255,255,0.15);
  --text:        #e8ecf2;
  --text-muted:  #8b95a5;
  --text-dim:    #5c6675;
  --accent:      #4d7cff;
  --accent-hi:   #6b90ff;
  --accent-soft: rgba(77,124,255,0.12);
  --accent-line: rgba(77,124,255,0.35);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 820px;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; top: -30%; left: 50%;
  width: 900px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(77,124,255,0.08) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 4px; }

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,17,23,0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 60px; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--text); }
.logo:hover { color: var(--text); }
.logo img { width: 30px; height: 32px; flex: none; }
/* Die Wortmarke ist EIN Flex-Element. Stand "mouse" als blosser Textknoten
   neben <b>PDF</b>, machte der Browser daraus zwei anonyme Flex-Elemente — und
   das gap:9px aus .logo landete mitten im Namen ("mouse PDF" statt "mousePDF",
   gemessen am 01.09.2026). Der Editor war nie betroffen: dort steht die Marke
   seit jeher als <b>mouse<i>PDF</i></b> in einem Element. */
.logo b { font-weight: 800; }
.logo b i { color: var(--accent); font-style: normal; }
.logo:hover b i { color: var(--accent); }
.logo span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-dim); margin-left: 8px; text-transform: uppercase; }
.nav-back { margin-left: auto; color: var(--text-muted); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-back:hover { color: var(--text); }

main { position: relative; z-index: 1; padding: 60px 0 80px; }
main h1 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 28px; }
main h2 { font-size: 22px; font-weight: 700; margin-top: 40px; margin-bottom: 14px; }
main p { color: var(--text-muted); margin-bottom: 16px; }
main ul { margin: 0 0 20px 20px; }
main li { color: var(--text-muted); margin-bottom: 8px; }
main strong { color: var(--text); font-weight: 600; }
main a { color: var(--accent); }

.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  padding: 11px 18px; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-str); }
.btn-ghost:hover { background: var(--bg-elev-2); }
.btn svg { width: 16px; height: 16px; }

footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 48px 0 28px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.foot-links a { color: var(--text-muted); font-size: 14px; transition: color .15s; }
.foot-links a:hover { color: var(--text); }
.status-bar {
  max-width: 1160px; margin: 18px auto 0; padding: 18px 24px 0;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--text-dim); text-transform: uppercase;
  display: flex; gap: 22px; flex-wrap: wrap;
}
.status-bar .sep { color: var(--accent); }

/* Sprachumschalter — zugeklappt, weil 40 Sprachen die Fußzeile sonst
   überfrachten. <details> braucht dafür kein Skript. */
.lang-switch { max-width: 1160px; margin: 0 auto 22px; padding: 0 24px; }
.lang-switch summary {
  cursor: pointer; display: inline-block; color: var(--text-muted); font-size: 14px;
  padding: 4px 0; list-style: none;
}
.lang-switch summary::marker, .lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: " ▾"; color: var(--accent); }
.lang-switch[open] summary::after { content: " ▴"; }
.lang-switch summary:hover { color: var(--text); }
.lang-list {
  display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 0 4px;
  font-size: 14px;
}
.lang-list a { color: var(--text-muted); transition: color .15s; }
.lang-list a:hover { color: var(--text); }
.lang-list strong { color: var(--accent); font-weight: 600; }

/* Rechts-nach-links (ar, he, ur): die Seite ist sonst durchgehend in
   physischen Richtungen gesetzt, deshalb hier gezielt spiegeln. */
[dir="rtl"] .foot-links, [dir="rtl"] .status-bar, [dir="rtl"] .lang-list { direction: rtl; }
[dir="rtl"] .crumb, [dir="rtl"] .eyebrow { direction: rtl; text-align: right; }
[dir="rtl"] .lead, [dir="rtl"] p, [dir="rtl"] li, [dir="rtl"] h1,
[dir="rtl"] h2, [dir="rtl"] h3 { text-align: right; }

@media (max-width: 720px) { .logo span { display: none; } }
