/* API-Wiki (/api/) und Software-Wiki (/wiki/) – erzeugt von tools/wiki/build.mjs. Seitenleiste links, Artikel rechts;
   am Handy klappt die Seitenleiste als Menü über dem Artikel auf. Farben und Schrift kommen aus site.css. */
.docs { padding: clamp(108px, 12vw, 140px) 0 clamp(60px, 8vw, 110px); }
.docs-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.docs-side { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; padding-right: 6px; }
.docs-menu summary { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; list-style: none; cursor: default; }
.docs-menu summary::-webkit-details-marker { display: none; }
.docs-menu nav a { display: block; padding: 7px 12px; margin: 0 0 2px -12px; border-radius: 9px; color: var(--ink-2); font-size: 14.5px; line-height: 1.35; }
.docs-menu nav a:hover { color: var(--ink); background: rgba(18, 24, 38, 0.04); }
.docs-menu nav a.active { color: var(--ink); background: rgba(154, 90, 34, 0.1); font-weight: 500; }
.docs-other { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 14px; }
.docs-other a { color: var(--wood); }
.docs-body { min-width: 0; max-width: 900px; }
.docs-body .label a { color: inherit; }
.docs-body h1 { margin: 14px 0 0; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
.docs-body .lead { margin-top: 18px; max-width: 68ch; }
.docs-body h2 { margin: 54px 0 14px; font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -0.01em; scroll-margin-top: 100px; }
.docs-body p, .docs-body li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.docs-body p { margin: 12px 0; max-width: 72ch; }
.docs-body ul, .docs-body ol { margin: 12px 0; padding-left: 22px; max-width: 72ch; }
.docs-body li { margin: 6px 0; }
.docs-body a { color: var(--ink); border-bottom: 1px solid var(--line); }
.docs-body a:hover { border-color: var(--wood); }
.docs-body code, .docs-body kbd { font-family: var(--mono); font-size: 0.86em; background: rgba(18, 24, 38, 0.05); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.docs-body kbd { border: 1px solid var(--line); background: #fff; white-space: nowrap; }
.docs-toc { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 26px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.6); font-size: 14px; }
.docs-toc span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; }
.docs-toc a { border: 0; color: var(--ink-2); padding: 2px 0; }
.docs-toc a:not(:last-child)::after { content: '·'; margin-left: 10px; color: var(--ink-3); }
.docs-code { margin: 16px 0; padding: 16px 18px; border-radius: 12px; background: #161b22; overflow-x: auto; }
.docs-code code { background: none; padding: 0; color: #e6edf3; font-size: 13px; line-height: 1.6; white-space: pre; overflow-wrap: normal; }
.docs-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.docs-table th { text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.docs-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); line-height: 1.5; }
.docs-table td:first-child { color: var(--ink); }
.docs-routes td:nth-child(2) { white-space: nowrap; }
.docs-routes td:nth-child(2) code { background: none; padding: 0; font-size: 13px; color: var(--ink); overflow-wrap: normal; }
.docs-m { display: inline-block; min-width: 58px; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; padding: 3px 6px; border-radius: 6px; color: #fff; }
.docs-m-get { background: #1f6f4d; }
.docs-m-post { background: #1d5fa8; }
.docs-m-put, .docs-m-patch { background: #8a5a14; }
.docs-m-delete { background: #a23a2a; }
.docs-body a.docs-p, .docs-p { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.docs-shot { margin: 30px 0 6px; }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.docs-body .docs-cards a { display: block; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, 0.7); transition: border-color 0.2s, transform 0.2s; }
.docs-body .docs-cards a:hover { border-color: var(--wood); transform: translateY(-2px); }
.docs-cards b { display: block; font-weight: 500; color: var(--ink); }
.docs-cards span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.docs-more { margin-top: 34px; }
.docs-foot { margin-top: 54px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 900px) {
  .docs-grid { grid-template-columns: 1fr; gap: 22px; }
  .docs-side { position: static; max-height: none; padding: 0; }
  .docs-menu { border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.7); padding: 0 16px; }
  .docs-menu summary { margin: 0; padding: 14px 0; cursor: pointer; display: flex; justify-content: space-between; }
  .docs-menu summary::after { content: '+'; font-size: 16px; letter-spacing: 0; }
  .docs-menu[open] summary::after { content: '–'; }
  .docs-menu nav { padding-bottom: 6px; columns: 2; column-gap: 12px; }
  .docs-menu nav a { margin-left: 0; padding: 10px 8px; break-inside: avoid; }
  .docs-other { margin: 6px 0 14px; }
  .docs-routes td:nth-child(2) { white-space: normal; }
  .docs-routes td:nth-child(2) code { overflow-wrap: anywhere; }
  .docs-table { font-size: 14px; }
}
/* Handy: Routentabellen als Karten – Methode und Pfad in einer Zeile, darunter Recht und Zweck */
@media (max-width: 700px) {
  .docs-routes thead { display: none; }
  .docs-routes tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .docs-routes td { display: block; padding: 0; border: 0; overflow-wrap: anywhere; }
  .docs-routes td:nth-child(2) { align-self: center; }
  .docs-routes td:nth-child(3), .docs-routes td:nth-child(4) { grid-column: 1 / -1; }
  .docs-table:not(.docs-routes) td { overflow-wrap: anywhere; }
}
@media print { .docs-side, .docs-toc { display: none; } .docs-grid { display: block; } .docs-code { background: #f3f3f3; } .docs-code code { color: #000; } }
