@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 300; src: url("../fonts/geist-mono-light.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: italic; font-display: swap; font-weight: 300; src: url("../fonts/geist-mono-light-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/geist-mono-bold.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: italic; font-display: swap; font-weight: 700; src: url("../fonts/geist-mono-bold-italic.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
b, strong { font-weight: 700; }
a { color: inherit; text-decoration: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; border-radius: 0; }
button, summary { -webkit-tap-highlight-color: transparent; }
svg { vertical-align: middle; }

:root {
  --font-body: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-title: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #fff;
  --fg: #000;
  --line-width: 1px;
  --header: 4.5rem;
  --sidebar: 21rem;
  --sidebar-edge: 20px;
  --page-edge: clamp(1.25rem, 4vw, 3.5rem);
  --page-width: 88rem;
  --logo-width: 33px;
  --logo-height: 28.58px;
  --trunk-x: 16px;
  --branch-x: 4px;
  --nav-indent: 32px;
  --nav-row-height: 24px;
  --nav-label-gap: 8px;
  --nav-label-padding: 4px;
  --chapter-gap: 16px;
}
:root[data-theme="dark"] { --bg: #000; --fg: #fff; }
body {
  min-width: 20rem;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 300 0.9375rem/1.75 var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}
::selection { background: var(--fg); color: var(--bg); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.site-frame {
  width: 100%;
  max-width: var(--page-width);
  min-height: 100svh;
  margin-inline: auto;
  padding-bottom: 4rem;
}
.site-sidebar { min-width: 0; }
.site-header { padding-inline: var(--page-edge); }
.site-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
}
.brand-mark {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  width: var(--logo-width);
  align-self: stretch;
  min-height: var(--header);
}
.brand-mark svg { display: block; width: var(--logo-width); height: var(--logo-height); }
.site-title {
  white-space: nowrap;
  font: 300 clamp(0.9375rem, 4.5vw, 1rem)/24px var(--font-title);
  letter-spacing: 0.04em;
}
.site-navigation { padding-inline: var(--page-edge); }
.desktop-navigation { display: none; }
.mobile-navigation { padding-block: 0.25rem 0.75rem; }
.mobile-navigation summary {
  display: flex;
  align-items: center;
  gap: 1ch;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: var(--nav-row-height);
  list-style: none;
}
.mobile-navigation summary::-webkit-details-marker { display: none; }
.mobile-navigation summary > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: lowercase; }
.mobile-navigation summary::after { flex: none; margin-left: auto; content: "[+]"; }
.mobile-navigation[open] summary::after { content: "[−]"; }
.mobile-navigation > .nav-tree { margin-top: 0.75rem; }
.nav-tree {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: var(--nav-row-height);
  list-style: none;
}
.nav-row { display: flex; align-items: stretch; min-width: 0; min-height: var(--nav-row-height); }
[data-nav-tree] { overflow-x: auto; }
[data-nav-tree] .nav-row { min-width: calc((var(--nav-depth, 0) + 1) * var(--nav-indent) + 6ch); }
.nav-seg { position: relative; flex: none; width: var(--nav-indent); }
.nav-seg--pipe::before, .nav-seg--tee::before, .nav-seg--elbow::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--branch-x);
  width: var(--line-width);
  background: var(--fg);
  content: "";
}
.nav-seg--elbow::before { bottom: 50%; }
.nav-seg--tee::after, .nav-seg--elbow::after {
  position: absolute;
  top: calc(var(--nav-row-height) / 2);
  right: var(--nav-label-gap);
  left: var(--branch-x);
  height: var(--line-width);
  background: var(--fg);
  content: "";
}
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: lowercase; }
.nav-label--folder { font-weight: 700; }
.nav-entry:hover .nav-label { text-decoration: underline; text-underline-offset: 0.2em; }
.nav-entry--active .nav-label { padding-inline: var(--nav-label-padding); background: var(--fg); color: var(--bg); }
[data-nav-tree] > .nav-folder:not(:first-child) > .nav-row .nav-label { padding-top: var(--chapter-gap); }
[data-nav-tree] > .nav-folder:not(:first-child) > .nav-row .nav-seg::after { top: calc(var(--chapter-gap) + var(--nav-row-height) / 2); }
[data-nav-tree] > .nav-folder:not(:first-child) > .nav-row .nav-seg--elbow::before { bottom: auto; height: calc(var(--chapter-gap) + var(--nav-row-height) / 2); }
[data-nav-fallback] > .nav-folder:last-child > .nav-row .nav-seg::before { bottom: 50%; }
[data-nav-fallback] > .nav-folder:last-child:not(:first-child) > .nav-row .nav-seg::before { bottom: auto; height: calc(var(--chapter-gap) + var(--nav-row-height) / 2); }
[data-nav-fallback] > .nav-folder:last-child > .nav-tree > li > .nav-row > .nav-seg--pipe::before { display: none; }
.navigation-footer {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 4rem;
  padding: 0.5rem var(--page-edge);
  background: var(--bg);
  color: var(--fg);
}
.imprint-link, .bmp-language-switch { font-size: 0.75rem; }
.imprint-link { margin-right: auto; }
.theme-toggle { margin-left: auto; }
.icon-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1; }
.icon-button svg * { vector-effect: non-scaling-stroke; }
.icon-button:hover { background: var(--fg); color: var(--bg); }
.site-content { min-width: 0; padding: 2rem var(--page-edge) 4rem; }
.entry-view, .empty-view { max-width: 72ch; }
.page-title { overflow-wrap: anywhere; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.entry-body { margin-top: 2rem; }
.entry-meta { position: relative; width: max-content; margin: 2rem 0 0 auto; font-size: 0.75rem; line-height: 1.5; }
.entry-meta summary { width: max-content; list-style: none; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.entry-meta summary::-webkit-details-marker { display: none; }
.meta-popover {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 100%;
  width: max-content;
  min-width: min(18rem, calc(100vw - 2 * var(--page-edge)));
  max-width: min(24rem, calc(100vw - 2 * var(--page-edge)));
  margin: 0 0 0.5rem;
  padding: 1rem;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
}
.meta-popover::before { position: absolute; right: 0; bottom: -0.5rem; left: 0; height: 0.5rem; content: ""; }
.meta-popover > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 1.25rem; }
.meta-popover > div + div { margin-top: 0.5rem; }
.meta-popover dt { font-weight: 700; }
.meta-popover dd { margin: 0; overflow-wrap: anywhere; }
.meta-popover time { white-space: nowrap; }
.text-link, .entry-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.empty-copy code, .entry-body code { font-family: inherit; font-weight: 700; }
.empty-view .page-title { margin-bottom: 2rem; }
.error-code { margin-bottom: 0.5rem; font-size: 0.8125rem; }
.entry-body p, .entry-body ul, .entry-body ol, .entry-body blockquote, .entry-body pre, .entry-body table { margin: 0 0 1.25rem; }
.entry-body :is(h1, h2, h3, h4, h5, h6) { font-weight: 700; }
.entry-body h2, .entry-body h3, .entry-body h4 { margin: 3.25rem 0 1rem; line-height: 1.3; }
.entry-body h2 { font-size: 1.125rem; }
.entry-body h3, .entry-body h4 { margin-top: 2.25rem; font-size: 1rem; }
.entry-body ul, .entry-body ol { padding-left: 3ch; }
.entry-body blockquote { margin-left: 0; padding-left: 3ch; border-left: 1px solid var(--fg); font-style: italic; }
.entry-body pre { overflow-x: auto; padding: 0.75rem 0 0.75rem 3ch; border-left: 1px solid var(--fg); line-height: 1.6; }
.entry-body pre code { font-weight: 300; }
.entry-body hr { height: 0; margin: 2.5rem 0; border: 0; }
.entry-body img { display: block; max-width: 100%; height: auto; }
.entry-body table { display: block; overflow-x: auto; border-collapse: collapse; }
.entry-body th, .entry-body td { padding: 0.4rem 0.75rem; border: 1px solid var(--fg); text-align: left; }
.kg-width-wide, .kg-width-full { width: 100%; }
.kg-image-card, .kg-gallery-card { margin: 2.5rem 0; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 1rem; }
.kg-gallery-row { display: flex; gap: 1rem; }
.kg-gallery-image { flex: 1; min-width: 0; }
.kg-gallery-image img { width: 100%; height: auto; }
.entry-body figcaption { margin-top: 0.5rem; font-size: 0.8125rem; text-align: center; }

@media (pointer: coarse) { .icon-button { width: 44px; height: 44px; } }
@media (min-width: 64rem) {
  .site-frame { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); align-items: start; padding-bottom: 0; }
  .site-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100svh; }
  .site-header { flex: none; padding-inline: var(--sidebar-edge); }
  .site-navigation { flex: 1; min-height: 0; overflow-y: auto; padding-inline: var(--sidebar-edge); }
  .desktop-navigation { display: block; padding-bottom: 1.5rem; }
  .desktop-navigation > .nav-tree { margin-left: calc(var(--trunk-x) - var(--branch-x)); }
  .brand-mark::after {
    position: absolute;
    top: calc(50% + var(--logo-height) / 2 + var(--nav-label-gap));
    bottom: 0;
    left: var(--trunk-x);
    width: var(--line-width);
    background: var(--fg);
    content: "";
  }
  .mobile-navigation { display: none; }
  .navigation-footer { position: static; flex: none; padding: 0.75rem var(--sidebar-edge) 1.25rem; }
  .site-content { padding-top: 4rem; padding-bottom: 6rem; }
}
