/* Styles of the content pages (handelsregister-api, de/handelsregister-api, docs, terms, privacy).
   The base, layout, nav, buttons, type, rows, tiles and footer rules are the
   homepage's (index.html keeps its own inline copy): change both together. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/newsreader-latin.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/hanken-grotesk-latin.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/geist-mono-latin.woff2) format('woff2'); }

:root {
  --bg: #FFFFFF;
  --fg: #111113;
  --muted: #6B6B66;
  --line: #E6E5E3;
  --line-soft: #EFEEEC;
  --code-bg: #F7F7F5;
  --accent: #1A44E0;
  --sans: Newsreader, Georgia, serif;
  --tight: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='183.5 161.5 370 370'%3E%3Cpath d='M208.112 291.901L312.695 186.548C320.457 178.728 329.684 172.513 339.849 168.259C350.013 164.005 360.916 161.795 371.934 161.755C382.953 161.714 393.871 163.844 404.067 168.024C414.262 172.203 423.534 178.349 431.354 186.112L528.075 282.124C543.867 297.802 552.786 319.11 552.868 341.363L553.253 446.331C553.294 457.35 551.164 468.269 546.985 478.464C542.805 488.66 536.659 497.932 528.896 505.752C521.133 513.572 511.906 519.787 501.742 524.041C491.577 528.295 480.674 530.505 469.655 530.545L364.687 530.931C342.435 531.012 321.061 522.251 305.268 506.574L208.548 410.561C192.755 394.884 183.836 373.575 183.755 351.322C183.673 329.069 192.434 307.695 208.112 291.901Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--sans); font-optical-sizing: auto; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
section p a, section li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
pre { margin: 0; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
table { width: 100%; border-collapse: collapse; font: 13px/1.5 var(--tight); }

.tight { font-family: var(--tight); }
.muted { color: var(--muted); }

/* Layout: a 15-column page grid; content sits in columns 4–15 on its own 12-column grid. */
.page { max-width: 1440px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.grid15 { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.frame { position: relative; padding-top: 128px; }
.content { grid-column: 4 / 16; grid-row: 1; position: relative; z-index: 1; }
.row { padding-bottom: 48px; }
.num { display: block; grid-column: 1 / span 1; margin: 0; padding-left: 8px; font-size: 10px; line-height: 1.5; color: var(--muted); }
.s7 { grid-column: 2 / span 7; }
.s10 { grid-column: 2 / span 10; }

.gridlines { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.gridlines > div { grid-row: 1; height: 100%; position: relative; }
.gridlines .ruled { border-left: 1px solid var(--line); }
.tick { position: sticky; top: 0; display: block; width: 2px; height: 8px; margin-left: -1.5px; background: var(--muted); opacity: 0.5; }

/* Sidebar nav and mobile bar. */
.nav { grid-column: 1 / span 3; grid-row: 1; position: sticky; top: 128px; align-self: start; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-left: 18px; padding-bottom: 320px; margin-top: -64px; }
.nav ul { list-style: none; margin: 0 0 0 -18px; padding: 0; display: flex; flex-direction: column; }
.nav li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; padding: 1px 0; }
.nav li a { font: 15px/1.3 var(--tight); }
.nav-marker { width: 8px; display: flex; justify-content: center; }
.nav-marker::before { content: ''; width: 2px; height: 12px; }
.nav a[aria-current] { color: var(--accent); }
.nav li:has(> a[aria-current]) > .nav-marker::before { background: var(--accent); }
.nav-links { display: flex; flex-direction: column; gap: 12px; }
/* Language toggle: the page in each language it has. The current one is filled. */
.langs { display: inline-flex; width: fit-content; border: 1px solid var(--line); }
.langs a { padding: 4px 8px; font: 12px/1.3 var(--mono); color: var(--muted); }
.langs a + a { border-left: 1px solid var(--line); }
.langs a:hover { color: var(--fg); }
.langs a[aria-current] { background: var(--fg); color: var(--bg); }
.mbar-end { display: flex; align-items: center; gap: 8px; }
.mark { display: block; width: 20px; height: 20px; }
.mark::before, .mbar-home::before { content: ''; background: var(--fg); -webkit-mask: var(--mark); mask: var(--mark); }
.mark::before { display: block; width: 100%; height: 100%; }
.mbar { display: none; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mbar-home { display: flex; align-items: center; gap: 8px; font: 15px/1.5 var(--tight); }
.mbar-home::before { width: 14px; height: 14px; }

/* Buttons. */
.btn { height: 32px; padding: 0 10px; display: flex; align-items: center; width: fit-content; box-sizing: border-box; font: 15px/1.5 var(--tight); }
.btn-sm { height: 28px; padding: 0 8px; line-height: 1.3; }
.btn-f { background: var(--fg); color: var(--bg); }
.btn-f:hover { opacity: 0.8; color: var(--bg); }
.btn-o { border: 1px solid var(--fg); }
.btn-o:hover { background: var(--fg); color: var(--bg); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Type. */
h1 { margin: 0; font: 400 36px/1.1 var(--tight); letter-spacing: -0.02em; }
h2 { margin: 0 0 12px; font: 400 20px/1.3 var(--tight); letter-spacing: -0.01em; }
h3 { margin: 24px 0 8px; font: 500 15px/1.5 var(--tight); }
section > p { margin: 0 0 16px; }
section > ul, section > ol { margin: 0 0 16px; padding-left: 18px; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
section th, section td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
section th { font-weight: 500; border-bottom-color: var(--fg); }
section > ul li, section > ol li { margin-bottom: 4px; }
.lead { font-size: 18px; line-height: 1.45; }
code { font: 13px/1.5 var(--mono); }
p code, li code, td code { background: var(--code-bg); padding: 1px 4px; }
pre { background: var(--code-bg); border: 1px solid var(--line-soft); padding: 12px 14px; overflow-x: auto; margin: 0 0 16px; }
pre code { font-size: 12px; }
.note { font: 13px/1.5 var(--tight); color: var(--muted); }

/* Lists, tables, tiles. */
.rows { border-top: 1px solid var(--line); margin-bottom: 16px; }
.rows > div, .rows > details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.term-row { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.term-row > :first-child { flex: 0 0 260px; font-family: var(--tight); }
.term-row > :last-child { flex: 1 1 260px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 16px; }
.tiles > div { background: var(--bg); padding: 16px; }
.tiles strong { display: block; font: 400 24px/1.2 var(--tight); letter-spacing: -0.01em; }
.tiles span { font-size: 13px; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans > div { padding: 10px 16px 10px 0; display: flex; flex-direction: column; gap: 2px; }
.plans > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.plans strong { font: 400 20px/1.3 var(--tight); letter-spacing: -0.01em; }
.plans strong small { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.plans span { font: 13px/1.5 var(--tight); color: var(--muted); }
.hero { display: flex; flex-direction: column; gap: 20px; }
.hero p { margin: 0; }
.faq summary { font-family: var(--tight); }
.faq p { margin: 8px 0 0; color: var(--muted); }

/* Footer */
.footer { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line); padding: 32px 0 96px; row-gap: 24px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.footer li { display: flex; }
.footer li a, .footer .copy { font: 12px/1.3 var(--mono); color: var(--muted); text-decoration: none; }
.footer li a:hover { background: var(--accent); color: var(--bg); }
.f1 { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 12px; padding-left: 18px; }
.f2 { grid-column: 5 / span 3; }
.f3 { grid-column: 9 / span 3; }
.f4 { grid-column: 13 / span 3; }

@media (max-width: 900px) {
  .nav, .md { display: none; }
  .mbar { display: flex; }
  .content, .s7, .s10, .f1, .f2, .f3, .f4 { grid-column: 1 / -1; }
  .num { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .tiles, .plans { grid-template-columns: 1fr; }
  .plans > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

