/* Clash-Panel-Dokumentation — heller GitBook-Stil als Standard, Dunkelmodus
   per Schalter. Eigene Token: die Panel-Token sind dunkel, die Docs sind weiß. */

:root {
  --bg: #ffffff; --flaeche: #f6f7f8; --flaeche-2: #eef0f2;
  --linie: #e4e6e9; --linie-stark: #d2d5da;
  --tinte: #14161a; --tinte-matt: #52575f; --tinte-blass: #8a8f98;
  --akzent: #14161a; --akzent-tinte: #ffffff;
  --schatten: 0 8px 30px rgba(20, 22, 26, .07);
  color-scheme: light;
}
[data-thema="dunkel"] {
  --bg: #0d0e10; --flaeche: #141518; --flaeche-2: #1b1d21;
  --linie: #24262b; --linie-stark: #33363d;
  --tinte: #eceef1; --tinte-matt: #9ba0a9; --tinte-blass: #6a6f78;
  --akzent: #eceef1; --akzent-tinte: #0d0e10;
  --schatten: 0 8px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

body { background: var(--bg); color: var(--tinte);
  font: 15.5px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
::selection { background: rgba(120, 140, 255, .25); }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; border-radius: 4px; }

/* ---------- Kopfleiste ---------- */
.dx-kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  gap: 12px; padding: 10px 18px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie); min-width: 0; }
.dx-marke { display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.dx-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: var(--flaeche-2); color: var(--tinte-matt); letter-spacing: .06em; }
.dx-such-wrap { flex: 1 1 160px; max-width: 340px; margin-left: auto; min-width: 0; }
#dx-suche { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px;
  color: var(--tinte); background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 9px; padding: 7px 12px; }
#dx-suche:focus { outline: none; border-color: var(--linie-stark); background: var(--bg); }
#dx-suche::-webkit-search-cancel-button { -webkit-appearance: none; }
.dx-online { display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
  text-decoration: none; color: var(--tinte-matt); white-space: nowrap;
  padding: 6px 10px; border: 1px solid var(--linie); border-radius: 9px; }
.dx-online b { color: var(--tinte); }
.dx-punkt { width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; flex-shrink: 0; }
.dx-thema { width: 34px; height: 34px; border: 1px solid var(--linie); border-radius: 9px;
  background: var(--flaeche); cursor: pointer; display: grid; place-items: center;
  color: var(--tinte-matt); font-size: 15px; }
.dx-thema:hover { color: var(--tinte); border-color: var(--linie-stark); }
.dx-thema svg { width: 16px; height: 16px; }
.dx-knopf { display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 650;
  text-decoration: none; padding: 7px 13px; border-radius: 9px;
  background: var(--akzent); color: var(--akzent-tinte); white-space: nowrap; }

.dx-burger { display: none; width: 36px; height: 36px; border: 1px solid var(--linie);
  border-radius: 9px; background: var(--flaeche); cursor: pointer; padding: 9px 8px;
  flex-direction: column; justify-content: space-between; flex-shrink: 0; }
.dx-burger span { display: block; height: 2px; border-radius: 2px; background: var(--tinte-matt); }

/* ---------- Layout ---------- */
.dx-layout { display: flex; max-width: 1180px; margin: 0 auto; min-width: 0; }
.dx-seite { width: 252px; flex-shrink: 0; position: sticky; top: 57px;
  height: calc(100dvh - 57px); overflow-y: auto; padding: 20px 14px 30px;
  border-right: 1px solid var(--linie); scrollbar-width: thin; }
.dx-gruppe { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--tinte-blass); margin: 18px 8px 6px; }
.dx-gruppe:first-child { margin-top: 0; }
.dx-seite a { display: block; padding: 7px 10px; margin-bottom: 1px; border-radius: 8px;
  font-size: 14px; color: var(--tinte-matt); text-decoration: none; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-seite a:hover { color: var(--tinte); background: var(--flaeche); }
.dx-seite a.is-an { color: var(--tinte); background: var(--flaeche-2); font-weight: 650; }
.dx-leer-nav { padding: 8px 10px; font-size: 13px; color: var(--tinte-blass); }
.dx-scrim { display: none; }

/* ---------- Inhalt ---------- */
.dx-inhalt { flex: 1; min-width: 0; padding: 34px 40px 70px; max-width: 780px; }
.dx-inhalt h1 { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em;
  line-height: 1.25; }
.dx-inhalt h2 { margin: 30px 0 10px; font-size: 20px; letter-spacing: -.01em; }
.dx-inhalt h3 { margin: 22px 0 8px; font-size: 16px; }
.dx-inhalt p, .dx-inhalt li { color: var(--tinte-matt); }
.dx-inhalt li { margin: 4px 0; }
.dx-inhalt strong { color: var(--tinte); }
.dx-inhalt a { color: var(--tinte); text-underline-offset: 3px; }
.dx-inhalt code { font: 13px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace;
  background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 6px;
  padding: 1px 6px; color: var(--tinte); overflow-wrap: anywhere; }
.dx-inhalt pre { background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dx-inhalt pre code { background: none; border: 0; padding: 0; }

.dx-hinweis { display: flex; gap: 10px; padding: 12px 14px; margin: 14px 0;
  border: 1px solid var(--linie); border-left: 3px solid var(--tinte-blass);
  border-radius: 10px; background: var(--flaeche); font-size: 14px; }
.dx-hinweis.dx-warn { border-left-color: #d9822b; }
.dx-hinweis p { margin: 0; }

.dx-schritte { counter-reset: s; list-style: none; padding: 0; margin: 12px 0; }
.dx-schritte > li { position: relative; padding: 0 0 14px 40px; margin: 0; }
.dx-schritte > li::before { counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--flaeche-2); border: 1px solid var(--linie); color: var(--tinte); }
.dx-schritte > li:not(:last-child)::after { content: ''; position: absolute; left: 13px;
  top: 30px; bottom: 2px; width: 1px; background: var(--linie); }

/* Vor/Zurück am Seitenende */
.dx-blaettern { display: flex; gap: 12px; margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--linie); flex-wrap: wrap; }
.dx-blaettern a { flex: 1 1 200px; min-width: 0; text-decoration: none; padding: 12px 14px;
  border: 1px solid var(--linie); border-radius: 12px; display: grid; gap: 2px; }
.dx-blaettern a:hover { border-color: var(--linie-stark); background: var(--flaeche); }
.dx-blaettern .dx-bl-r { text-align: right; }
.dx-blaettern span { font-size: 12px; color: var(--tinte-blass); }
.dx-blaettern b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }

/* Discord-Widget auf der Support-Seite */
.dx-widget { margin: 16px 0; border: 1px solid var(--linie); border-radius: 14px;
  overflow: hidden; box-shadow: var(--schatten); max-width: 380px; background: var(--flaeche); }
.dx-widget iframe { display: block; width: 100%; height: 500px; border: 0; }

.dx-treffer-info { margin: 0 0 18px; font-size: 13.5px; color: var(--tinte-blass); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .dx-burger { display: flex; }
  .dx-seite { position: fixed; left: 0; top: 0; z-index: 40; height: 100dvh;
    background: var(--bg); translate: -100% 0; transition: translate .18s ease;
    box-shadow: var(--schatten); padding-top: 18px; }
  .dx-layout.is-offen .dx-seite { translate: 0 0; }
  .dx-layout.is-offen .dx-scrim { display: block; position: fixed; inset: 0; z-index: 30;
    background: rgba(0, 0, 0, .45); }
  .dx-inhalt { padding: 24px 18px 60px; }
  .dx-online { display: none; }
  .dx-such-wrap { flex-basis: 130px; min-width: 110px; }
}
