/* ============================================================
   NEO RDP Manager — Website
   Stylesheet (Dark + Light) im Neo-Design der App
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Brand */
  --accent: #34d058;
  --accent-2: #00b61d;
  --accent-soft: rgba(52, 208, 88, 0.12);
  --accent-border: rgba(52, 208, 88, 0.35);
  --ok: #00d464;
  --warn: #f59e0b;
  --err: #ef4444;
  --on-accent: #03190a;   /* Text auf Akzentflächen */

  /* Mono font stack */
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, "Cascadia Mono",
          "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Dark (default) — Werte aus dem Neo-Design der App */
:root,
[data-theme="dark"] {
  --bg-0: #0a0a0f;        /* deepest */
  --bg-1: #0d0d12;        /* main bg */
  --bg-2: #0f0f1a;        /* tabs / pane */
  --bg-3: #14141f;        /* card */
  --bg-4: #1a1a2e;        /* hover / sidebar */
  --bg-code: #08080c;
  --border: #1e1e30;
  --border-strong: #2a2a4a;
  --text: #e4eaf0;
  --text-2: #c8d6e5;
  --text-3: #8b949e;
  --text-4: #556070;
  --text-faint: #3f4e5e;
  --link: #5cd877;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02) inset,
                 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] {
  --bg-0: #e4e8ef;
  --bg-1: #f0f2f5;
  --bg-2: #f8fafc;
  --bg-3: #ffffff;
  --bg-4: #eef2f7;
  --bg-code: #0f1218;     /* keep code blocks dark in light mode */
  --border: #d0d8e4;
  --border-strong: #a8c0d8;
  --text: #1a2332;
  --text-2: #2a3a4a;
  --text-3: #4a5a6a;
  --text-4: #6a7a8a;
  --text-faint: #9aacbe;
  --link: #00791a;
  --accent: #00841a;
  --accent-2: #00a31c;
  --accent-soft: rgba(0, 132, 26, 0.10);
  --accent-border: rgba(0, 132, 26, 0.35);
  --on-accent: #ffffff;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04),
                 0 12px 40px -20px rgba(15, 23, 42, 0.18);
}

/* ----------------------------------------------------------- */
/* Reset                                                        */
/* ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-1);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
code, pre, kbd { font-family: var(--mono); }
::selection { background: var(--accent); color: #0a0a0f; }

/* ----------------------------------------------------------- */
/* Layout                                                       */
/* ----------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------------------------------------- */
/* Top Bar                                                      */
/* ----------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg-1) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(52, 208, 88, 0.45));
}
.brand-name { font-family: var(--sans); line-height: 16px;}
.brand-name b { color: var(--text); }
.brand-name span { color: var(--text-3); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
    color: var(--text-3);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    align-self: center;
    white-space: nowrap;
}
.nav a {
  color: var(--text-3);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-group > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.75;
}
.nav-submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 200px;
  padding: 9px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-3);
  box-shadow: var(--shadow-card);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}
.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
  display: flex;
}
.nav-submenu a {
  width: 100%;
}
.nav-group.active > a,
.nav-group > a.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav a:hover { color: var(--text); background: var(--bg-3); }
.nav a.active { color: var(--accent); background: var(--accent-soft); }

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-3);
  display: grid; place-items: center;
  transition: all 0.15s;
}
.icon-btn:hover {
  background: var(--bg-4);
  border-color: var(--border-strong);
  color: var(--text);
}
.icon-btn svg { width: 16px; height: 16px; }

.menu-btn { display: none; }

/* ----------------------------------------------------------- */
/* Language switch                                              */
/* ----------------------------------------------------------- */
.lang-switch {
  display: inline-flex;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  height: 36px;
  box-sizing: border-box;
}
.lang-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 30px;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
  background: var(--bg-4);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-border) inset;
}

/* ----------------------------------------------------------- */
/* Buttons                                                      */
/* ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-4);
  color: var(--text);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset,
              0 8px 24px -8px rgba(52, 208, 88, 0.6);
}
.btn-primary:hover {
  color: var(--on-accent);
  filter: brightness(1.08);
}
.btn-ghost {
  background: transparent;
}
.btn-sm { padding: 7px 11px; font-size: 13px; }
.btn-lg { padding: 13px 20px; font-size: 15px; }

/* ----------------------------------------------------------- */
/* Hero                                                         */
/* ----------------------------------------------------------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  width: 600px; height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(52, 208, 88, 0.25), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 5px 10px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(0, 212, 100, 0.18);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 18px 0 14px;
}
.hero h1 .accent {
  background: linear-gradient(180deg, var(--accent) 30%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-3);
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--text-4);
  font-size: 13px;
}
.hero-meta .meta-item {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-meta svg { width: 14px; height: 14px; color: var(--accent); }

/* ----------------------------------------------------------- */
/* Sections                                                     */
/* ----------------------------------------------------------- */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.section-sub {
  color: var(--text-3);
  margin: 0 0 36px;
  max-width: 640px;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.15s, transform 0.15s;
  width: 100%;
}
.card:hover {
  border-color: var(--border-strong);
}
.card .card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.card .card-icon svg { width: 18px; height: 18px; }

.card.feature-highlight {
  border-color: var(--accent-border);
  background:
    linear-gradient(180deg, rgba(52, 208, 88, 0.06), transparent 40%),
    var(--bg-3);
  position: relative;
}
.card.feature-highlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--accent-border), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.card.feature-highlight .card-icon {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
  box-shadow: 0 6px 18px -8px rgba(52, 208, 88, 0.6);
}
.card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.card p {
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}

/* ----------------------------------------------------------- */
/* Code blocks                                                  */
/* ----------------------------------------------------------- */
pre {
  background: var(--bg-code);
  color: #c8d6e5;
  border: 1px solid #1a1a2e;
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  margin: 16px 0;
}
:not(pre) > code {
  background: var(--bg-4);
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.88em;
}
.visually-hidden {
  display: none !important;
}
pre code { color: inherit; background: none; border: none; padding: 0; }

/* ----------------------------------------------------------- */
/* Docs layout                                                  */
/* ----------------------------------------------------------- */
.docs {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 36px 0 72px;
}
.docs-side {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
  font-size: 14px;
}
.docs-side .group {
  margin-bottom: 22px;
}
.docs-side .group-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
  margin: 0 0 8px;
  padding-left: 10px;
}
.docs-side a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-3);
  font-weight: 500;
}
.docs-side a:hover { background: var(--bg-3); color: var(--text); }
.docs-side a.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 8px;
}

.docs-main {
  min-width: 0;
}
.docs-main h1 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.docs-main > .lead {
  color: var(--text-3);
  font-size: 16px;
  margin: 0 0 32px;
}
.docs-main h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 8px;
  letter-spacing: -0.005em;
}
.docs-main h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 6px;
}
.docs-main p { color: var(--text-2); margin: 10px 0; }
.docs-main ul, .docs-main ol {
  color: var(--text-2);
  padding-left: 22px;
}
.docs-main li { margin: 5px 0; }
.docs-main hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-3);
  border-radius: 8px;
  margin: 18px 0;
  font-size: 14px;
  color: var(--text-2);
}
.callout.warn { border-left-color: var(--warn); }
.callout.warn .callout-icon { color: var(--warn); }
.callout.danger { border-left-color: var(--err); }
.callout.danger .callout-icon { color: var(--err); }
.callout-icon { color: var(--accent); flex: none; }
.callout-icon svg { width: 18px; height: 18px; margin-top: 2px; }
.callout strong { color: var(--text); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 12px 0px 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--bg-4);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
tr:last-child td { border-bottom: none; }
td code { white-space: nowrap; }

/* ----------------------------------------------------------- */
/* Logos / footer                                               */
/* ----------------------------------------------------------- */
.footer {
  padding: 44px 0;
  color: var(--text-4);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer h4 {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  font-family: var(--mono);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 6px 0; }
.footer a { color: var(--text-3); }
.footer a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    flex-direction: column;
    align-items: center;
}
/* ----------------------------------------------------------- */
/* Tag / badge                                                  */
/* ----------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: var(--mono);
  background: var(--bg-4);
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.badge.accent { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }
.badge.ok { color: var(--ok); border-color: rgba(0,212,100,0.4); background: rgba(0,212,100,0.10); }

.footer-bottom > span {
    text-align: center;
}



/* ----------------------------------------------------------- */
/* Responsive                                                   */
/* ----------------------------------------------------------- */
@media (max-width: 1150px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .docs-side {
    position: static;
    max-height: none;
    border: 1px solid var(--border);
    background: var(--bg-3);
    border-radius: 10px;
    padding: 16px;
  }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .nav.open {
    display: flex;
    position: absolute; left: 0; right: 0; top: 60px;
    flex-direction: column;
    background: var(--bg-1);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    gap: 2px;
  }
  .nav.open > a,
  .nav.open .nav-group > a { padding: 12px 14px; width: 100%; }
  .nav.open .nav-group {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open .nav-submenu {
    position: static;
    display: flex;
    min-width: 0;
    margin: 0 0 6px;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav.open .nav-submenu a {
    padding: 10px 14px;
  }
  .footer-grid { gap: 24px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
}

@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; margin-right: 8px;}
  .grid.grid-2 {
      display: flex;
      flex-direction: column;
      align-items: center;
      align-content: center !important;
      align-self: center;
      text-align: -webkit-center;
      place-self: center;
  }
}

@media (max-width: 625px) {
    .hero-actions a.btn.btn-primary.btn-lg {
    display: flex;
    flex-direction: row-reverse;
  }
  .hero-actions a {
      min-width: 100%;
      display: flex;
      justify-content: space-between;
  }
  /* a button with a label only: centred (the rules above are for icon + label) */
  .hero-actions a:not(:has(svg)) { justify-content: center; }
}

@media (max-width: 550px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container .footer-grid > div:nth-child(2),
  .container .footer-grid > div:nth-child(4) {
      align-items: flex-end;
      display: flex;
      flex-direction: column;
      text-align: right;
  }
}

@media (max-width: 530px) {
  .lang-switch .active {
    display: none;
  }
}

@media (max-width: 475px) {
  .brand-name {
      font-size: 12px;
      line-height: 1;
  }
  .topbar-inner {
    padding: 6px;
  }
}

@media (max-width: 375px) {
  .container table {
    margin-left: -10px;
  }
}

@media (max-width:275px) {
  .hero h1 {
    font-size: 28px;
  }

}

/* ---- Docs: screenshots, contents, anchors (2026-10) ---- */
.docs-main [id] { scroll-margin-top: 88px; }
.docs-main h2:target, .docs-main h3:target { animation: docs-target 2.6s ease-out; border-radius: 6px; }
@keyframes docs-target { 0%, 35% { background: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
.docs-main figure.shot { margin: 18px 0 28px; }
.docs-main figure.shot a { display: block; }
.docs-main figure.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); }
.docs-main figure.shot.composite img { border: none; background: none; border-radius: 0; }
.docs-main figure.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--text-3); }
/* the screenshot in the website's theme: Black on dark, Light on light */
html[data-theme="light"] .docs-main figure.shot .shot-dark,
html:not([data-theme="light"]) .docs-main figure.shot .shot-light { display: none; }
.docs-toc { margin: 0 0 28px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.docs-main .docs-toc-title { margin: 0 0 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-4); }
.docs-toc ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 32px; }
.docs-toc li { margin: 3px 0; break-inside: avoid; }
.docs-main .setting-default { margin: -4px 0 10px; font-size: 13px; color: var(--text-3); }
.docs-main kbd { display: inline-block; padding: 0 6px; font-size: 12px; line-height: 1.6; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--bg-3); color: var(--text); }
.docs-main .table-wrap { overflow-x: auto; }
@media (max-width: 720px) { .docs-toc ul { columns: 1; } }

/* ---- Hero: node network (every page hero) and product video (2026-10) ---- */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero > .container { position: relative; z-index: 1; }
.hero.hero-v2 .hero-inner { z-index: 1; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 48px; }
.hero-video { position: relative; margin: 0; }
.hero-video-frame {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--border); background: #05070b;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(52, 208, 88, 0.08), 0 60px 110px -50px rgba(52, 208, 88, 0.38);
}
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.hero-video-controls {
  position: absolute; top: 12px; right: 12px; display: flex; gap: 8px;
  opacity: 0; transition: opacity 0.2s ease;
}
.hero-video:hover .hero-video-controls, .hero-video:focus-within .hero-video-controls,
.hero-video.is-paused .hero-video-controls { opacity: 1; }
.hero-video-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: 17px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(8, 10, 14, 0.72);
  color: #ffffff; font: 600 13px/1 var(--sans); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-video-btn:hover { background: rgba(8, 10, 14, 0.9); border-color: rgba(255, 255, 255, 0.32); }
.hero-video-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.hero-video-btn.is-icon { width: 34px; padding: 0; justify-content: center; }
.hero-video .ico-play { display: none; }
.hero-video.is-paused .ico-play { display: block; }
.hero-video.is-paused .ico-pause { display: none; }
.hero-video-note { margin: 10px 4px 0; font-size: 12.5px; color: var(--text-4); }
@media (hover: none) { .hero-video-controls { opacity: 1; } }
@media (max-width: 1150px) { .hero.hero-v2 .hero-inner { grid-template-columns: 1fr; gap: 40px; } }
html.video-large-open, html.video-large-open body { overflow: hidden; }
html.video-large-open .hero.hero-v2 .hero-inner { z-index: auto; }
.hero-video.is-large {
  position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 3vw;
  background: rgba(3, 5, 8, 0.9);
}
.hero-video.is-large .hero-video-frame { width: min(94vw, calc(90vh * 1.6), 1600px); overflow: visible; }
.hero-video.is-large video { cursor: default; object-fit: contain; border-radius: 12px; }
.hero-video.is-large .hero-video-controls, .hero-video.is-large .hero-video-note { display: none; }
.hero-video-close {
  display: none; position: absolute; top: -16px; right: -16px; z-index: 2; width: 40px; height: 40px;
  place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: #111418; color: #fff; cursor: pointer;
}
.hero-video-close svg { width: 18px; height: 18px; }
.hero-video.is-large .hero-video-close { display: grid; }
@media (max-width: 640px) { .hero-video-close { top: -48px; right: 0; } }

/* ---- Legal page (Impressum & Datenschutz) ---- */
.legal-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--border); }
.legal-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); margin: 18px 0 10px;
}
.legal-hero .lead { font-size: 16px; color: var(--text-3); max-width: 720px; margin: 0; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-side .toc-num {
  display: inline-block; min-width: 20px; font-family: var(--mono); font-size: 12px; color: var(--text-4);
}
.legal-main > section:first-child > h2 { margin-top: 0; }
.legal-main h2 .num { margin-right: 0.45em; font-family: var(--mono); font-size: 0.82em; font-weight: 600; color: var(--accent); }
.legal-main .id-card {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px;
  margin: 16px 0; padding: 18px 22px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2);
}
.legal-main .id-card p.legal-block-title {
  margin: 0 0 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-4);
}
.legal-main address { font-style: normal; color: var(--text); line-height: 1.6; }
.legal-main address .placeholder { display: block; }
.legal-main .legal-divider { height: 1px; margin: 44px 0 36px; background: var(--border); }
.legal-main ul.rights-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px;
  margin: 14px 0 0; padding: 0; list-style: none;
}
.legal-main .rights-list li {
  display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2);
}
.legal-main .rights-list .art { flex: none; min-width: 52px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.legal-main .rights-list .label { color: var(--text); }
.legal-main .stand-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px;
  margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
}
.legal-main .stand-strip strong { color: var(--text-2); }
@media (max-width: 640px) { .legal-main .id-card { grid-template-columns: 1fr; } }

/* ---- Sprachumschalter: echte Links, damit er ohne JavaScript funktioniert ---- */
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; padding: 0 10px; border-radius: 6px;
  color: var(--text-3); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  transition: all 0.15s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch .active { background: var(--bg-4); color: var(--accent); box-shadow: 0 0 0 1px var(--accent-border) inset; }

/* ---- Bilder je Farbschema (Screenshots der App gibt es dunkel und hell) ---- */
html[data-theme="light"] .only-dark,
html:not([data-theme="light"]) .only-light { display: none !important; }

/* ---- Hero: Diashow mit Screenshots der echten App ---- */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; cursor: zoom-in; }
.hero-dots { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.hero-dots button {
  width: 22px; height: 6px; padding: 0; border: 0; border-radius: 3px;
  background: rgba(255, 255, 255, 0.28); cursor: pointer; transition: background 0.2s, width 0.2s;
}
.hero-dots button[aria-current="true"] { width: 34px; background: var(--accent); }
.hero-video-note .slide-caption { color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ---- Screenshot-Galerie ---- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot-card { margin: 0; background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.shot-card a { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.shot-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.25s ease; }
.shot-card a:hover img { transform: scale(1.02); }
.shot-card figcaption { padding: 12px 16px 14px; font-size: 13.5px; color: var(--text-3); }
.shot-card figcaption strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 14px; }
@media (max-width: 1150px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }

/* ---- Lightbox (Screenshots groß ansehen) ---- */
html.lightbox-open, html.lightbox-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; align-content: center;
  padding: 3vw; background: rgba(3, 5, 8, 0.92);
}
.lightbox img {
  display: block; max-width: min(94vw, 1800px); max-height: 86vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.lightbox p { margin: 14px 0 0; color: #c8d6e5; font-size: 14px; text-align: center; }
.lightbox .hero-video-close { display: grid; position: fixed; top: 18px; right: 18px; }

/* ---- Protokoll-Chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.chip {
  padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-3);
  color: var(--text-2); font-family: var(--mono); font-size: 12px;
}
.chip b { color: var(--accent); font-weight: 600; }

/* ---- Nummerierte Schritte ---- */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-left: 64px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 20px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 600 14px/1 var(--mono);
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border);
}

/* ---- Vergleichstabellen: eigene Spalte hervorheben ---- */
table.compare td:nth-child(2), table.compare th:nth-child(2) { background: var(--accent-soft); }
table.compare td:nth-child(2) { color: var(--text); }

/* ---- Artikel (Ratgeber, Vergleichsseiten) ---- */
.prose { max-width: 820px; }
.prose > h2:first-child, .prose > .callout:first-child { margin-top: 0; }
.prose h2 { margin: 44px 0 12px; color: var(--text); font-size: clamp(21px, 2.4vw, 26px); letter-spacing: -0.01em; }
.prose h3 { margin: 28px 0 8px; color: var(--text); font-size: 17px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose .callout { margin: 22px 0; }
.prose table { margin: 12px 0 8px; }

/* ---- Doku: Weiterblättern am Seitenende ---- */
.docs-pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
}
.docs-pager a {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-3); transition: border-color 0.15s;
}
.docs-pager a:hover { border-color: var(--accent-border); }
.docs-pager span { color: var(--text-4); font-family: var(--mono); font-size: 12px; }
.docs-pager b { color: var(--text); font-weight: 600; }
.docs-pager-next { grid-column: 2; text-align: right; }
@media (max-width: 640px) { .docs-pager { grid-template-columns: 1fr; } .docs-pager-next { grid-column: auto; } }

/* ---- Kopfleiste: Download-Knopf auf schmalen Bildschirmen nur als Symbol ---- */
@media (max-width: 760px) { .topbar-cta span { display: none; } .topbar-cta { padding: 7px 9px; } }
@media (max-width: 430px) { .topbar-cta { display: none; } }

/* ---- Changelog: Einleitung einer Version ---- */
.release > p { margin: 0 0 8px; color: var(--text-2); }
