:root {
      --bg: #020617;
      --bg-panel: #030712;
      --border-subtle: #111827;
      --border-strong: #1f2937;
      --accent: #22c55e;
      --accent-soft: #22c55e33;
      --accent-blue: #38bdf8;
      --text: #e5e7eb;
      --muted: #9ca3af;
      --error: #f97373;
      --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
      --font-mono: "Fira Code", "JetBrains Mono", ui-monospace, SFMono-Regular,
        Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
    }
    
     a {
      color: inherit;
      text-decoration: none;
    }
    body {
      background: radial-gradient(circle at top, #020617 0, #000 70%);
      color: var(--text);
      font-family: var(--font-sans);
      display: flex;
      flex-direction: column;
    }

    .app {
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    /* HEADER */

    .header {
      padding: 0.9rem 1.4rem;
      border-bottom: 1px solid var(--border-subtle);
      background: linear-gradient(135deg, #020617 0%, #030712 60%, #020617 100%);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 0.8rem;
    }

    .header-logo {
      width: 28px;
      height: 28px;
      border-radius: 10px;
      background: radial-gradient(circle at 30% 20%, #bbf7d0, #22c55e 45%, #052e16 70%, #020617 100%);
      box-shadow: 0 0 18px rgba(34, 197, 94, 0.7);
    }

    .header-title {
      display: flex;
      flex-direction: column;
      gap: 0.1rem;
    }

    .header-title-main {
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.04em;
    }

    .header-title-sub {
      font-size: 0.75rem;
      color: var(--muted);
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--muted);
    }

    .header-badge {
      padding: 0.15rem 0.5rem;
      border-radius: 999px;
      border: 1px solid var(--accent-soft);
      background: #022c22;
      color: var(--accent);
      font-size: 0.7rem;
    }

    .header-dot {
      width: 0.4rem;
      height: 0.4rem;
      border-radius: 999px;
      background: var(--accent);
      box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
    }

    /* LAYOUT */

    .layout {
      flex: 1;
      display: flex;
      min-height: 0; /* wichtig für flex+overflow */
    }

    /* SIDEBAR */

    .sidebar {
      width: 260px;
      border-right: 1px solid var(--border-subtle);
      background: radial-gradient(circle at top left, #030712, #020617 60%, #000);
      padding: 1.2rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      font-size: 0.8rem;
    }

    @media (max-width: 800px) {
      .sidebar {
        display: none;
      }
    }

    .sidebar-section-title {
      text-transform: uppercase;
      letter-spacing: 0.15em;
      font-size: 0.7rem;
      color: var(--muted);
      margin-bottom: 0.3rem;
    }

    .sidebar-baseurl {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      padding: 0.5rem 0.6rem;
      border-radius: 0.4rem;
      background: #020617;
      border: 1px solid var(--border-subtle);
      color: var(--accent-blue);
      word-break: break-all;
    }

    .sidebar-list {
      list-style: none;
    }

    .sidebar-link {
      display: flex;
      flex-direction: column;
      padding: 0.35rem 0.4rem;
      border-radius: 0.4rem;
      text-decoration: none;
      color: var(--muted);
      margin-bottom: 0.2rem;
      transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
      border: 1px solid transparent;
    }

    .sidebar-link span.method {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      text-transform: uppercase;
      color: var(--accent);
    }

    .sidebar-link span.path {
      font-family: var(--font-mono);
      font-size: 0.78rem;
    }

    .sidebar-link span.label {
      font-size: 0.7rem;
      color: #6b7280;
      margin-top: 0.1rem;
    }

    .sidebar-link:hover,
    .sidebar-link.active {
      background: rgba(15, 23, 42, 0.9);
      color: var(--text);
      border-color: var(--border-subtle);
    }

    /* MAIN */

    .main {
      flex: 1;
      padding: 1.4rem 1.4rem 2rem;
      overflow-y: auto;
    }

    .main-intro {
      margin-bottom: 1.4rem;
    }

    .main-intro-title {
      font-size: 1.2rem;
      margin-bottom: 0.25rem;
    }

    .main-intro-sub {
      font-size: 0.85rem;
      color: var(--muted);
      max-width: 640px;
    }

    .header-link {
      padding: 0.15rem 0.4rem;
      border-radius: 0.3rem;
      border: 1px solid transparent;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    .main-intro-sub code {
      font-family: var(--font-mono);
      background: #020617;
      padding: 0.05rem 0.25rem;
      border-radius: 0.25rem;
      border: 1px solid var(--border-subtle);
      font-size: 0.78rem;
    }

    .endpoint {
      margin-bottom: 2rem;
      border-radius: 0.8rem;
      border: 1px solid var(--border-subtle);
      background: radial-gradient(circle at top left, #030712, #020617 55%, #020617);
      padding: 1rem 1rem 1.1rem;
    }

    .endpoint-header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 0.5rem;
    }

    .endpoint-method {
      padding: 0.15rem 0.55rem;
      border-radius: 0.4rem;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
    }

    .endpoint-method.get {
      background: rgba(34, 197, 94, 0.15);
      color: var(--accent);
      border: 1px solid var(--accent-soft);
    }

    .endpoint-path {
      font-family: var(--font-mono);
      font-size: 0.9rem;
    }

    .endpoint-badge {
      font-size: 0.7rem;
      padding: 0.15rem 0.55rem;
      border-radius: 999px;
      background: rgba(22, 163, 74, 0.15);
      border: 1px solid var(--accent-soft);
      color: var(--accent);
      font-family: var(--font-mono);
      margin-left: auto;
    }

    @media (max-width: 640px) {
      .endpoint-badge {
        margin-left: 0;
      }
    }

    .endpoint-desc {
      font-size: 0.85rem;
      color: var(--muted);
      margin-bottom: 0.7rem;
      line-height: 1.5;
    }

    .endpoint-section-title {
      font-size: 0.78rem;
      color: var(--text);
      margin-bottom: 0.25rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    .endpoint-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      font-size: 0.75rem;
      color: var(--muted);
      margin-bottom: 0.6rem;
    }

    .endpoint-meta-item {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.15rem 0.45rem;
      border-radius: 999px;
      border: 1px solid var(--border-subtle);
      background: #020617;
      font-family: var(--font-mono);
      font-size: 0.72rem;
    }

    .endpoint-meta-dot {
      width: 0.35rem;
      height: 0.35rem;
      border-radius: 999px;
      background: var(--accent);
    }

    /* JSON / CODE */

    .code-block {
      background: #020617;
      border-radius: 0.6rem;
      border: 1px solid var(--border-subtle);
      padding: 0.9rem;
      font-family: var(--font-mono);
      font-size: 0.8rem;
      overflow-x: auto;
      line-height: 1.6;
    }

    .code-comment {
      color: #6b7280;
    }

    .code-key {
      color: #93c5fd;
    }

    .code-string {
      color: #f97373;
    }

    .code-number {
      color: #facc15;
    }

    .code-boolean {
      color: #4ade80;
    }

    .code-null {
      color: #9ca3af;
      font-style: italic;
    }

    .code-punctuation {
      color: #e5e7eb;
    }

    .code-section {
      margin-bottom: 0.6rem;
    }

    .code-section:last-child {
      margin-bottom: 0;
    }

    /* FOOTER (klein) */

    .footer {
      padding: 0.6rem 1.4rem 0.9rem;
      border-top: 1px solid var(--border-subtle);
      background: #020617;
      font-size: 0.75rem;
      color: #6b7280;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.6rem;
      font-family: var(--font-mono);
    }

    @media (max-width: 640px) {
      .footer {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    .footer span.accent {
      color: var(--accent);
    }

    .footer span.dim {
      color: #4b5563;
    }
