/* IBM Plex Sans/Mono Variable, official Latin-1 subsets by IBM (SIL OFL 1.1, see /fonts/OFL.txt). */
@font-face {
    font-family: "IBM Plex Sans Var";
    font-style: normal;
    font-weight: 100 700;
    font-stretch: 85% 100%;
    font-display: swap;
    src: url("/fonts/plex-sans-var-latin1.woff2") format("woff2");
    unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
    font-family: "IBM Plex Mono Var";
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url("/fonts/plex-mono-var-latin1.woff2") format("woff2");
    unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

/* Ledger paper, ink and the accountant's red margin rule. Dark navy is the
   agent's colour; the paper sheet is the system that keeps the books. */
:root {
    color-scheme: light;
    --paper: #f4f7f3;
    --sheet: #ffffff;
    --ink: #15213b;
    --ink-soft: #4a5569;
    --ink-faint: #6f7a8e;
    --rule: #dbe4dd;
    --rule-strong: #bccabf;
    --ledger: #e8f1ea;
    --margin: #c8463a;
    --seal: #1d6a45;
    --seal-soft: #dcefe3;
    --agent: #15213b;
    --agent-raised: #22304f;
    --agent-line: rgba(233, 238, 246, .12);
    --agent-ink: #edf1f7;
    --agent-soft: #a7b2c6;
    --shadow: 0 1px 0 rgba(21, 33, 59, .04), 0 32px 64px -40px rgba(21, 33, 59, .5);
    --sans: "IBM Plex Sans Var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "IBM Plex Mono Var", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --paper: #0d1321;
        --sheet: #141c2d;
        --ink: #e6ebf3;
        --ink-soft: #a6b0c2;
        --ink-faint: #7f8aa2;
        --rule: #232e44;
        --rule-strong: #34405a;
        --ledger: #152620;
        --margin: #e07a6e;
        --seal: #72c99b;
        --seal-soft: #173827;
        --agent: #1a2541;
        --agent-raised: #26345a;
        --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 32px 64px -40px rgba(0, 0, 0, .9);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
code { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: min(100% - 2rem, 72.5rem); margin-inline: auto; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 3rem; padding: 0 1.3rem; border-radius: 10px;
    border: 1px solid transparent; font: inherit; font-size: 1rem; font-weight: 500;
    line-height: 1; text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--paper)); }
.btn-quiet { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--ink-soft); }
.btn-small { min-height: 2.5rem; padding: 0 1rem; font-size: .9375rem; }

/* Header */
.site-head .wrap { display: flex; align-items: center; gap: 2rem; padding-block: 1.25rem; }
.brand {
    display: inline-flex; align-items: center; gap: .65rem; margin-right: auto;
    font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark rect { fill: var(--ink); }
.brand-mark path { stroke: var(--paper); }
.head-nav { display: flex; gap: 1.75rem; font-size: .9375rem; }
.head-nav a { color: var(--ink-soft); text-decoration: none; }
.head-nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(2.25rem, 1rem + 4.5vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 7rem); }
.hero h1 {
    font-size: clamp(2.75rem, 1.2rem + 6.4vw, 6rem);
    font-stretch: 85%;
    line-height: .96;
    letter-spacing: -.025em;
    hyphens: manual;
}
.hero-row { display: grid; gap: 1.75rem 4rem; margin-top: clamp(1.5rem, 1rem + 1.6vw, 2.75rem); align-items: end; }
.lede { max-width: 34em; font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.55; color: var(--ink-soft); }
.lede a { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.fine { margin-top: 1rem; font-size: .9375rem; color: var(--ink-soft); }

/* Demo: the agent on the left, the journal it writes on the right */
.demo-figure { margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.75rem); }
.demo {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    overflow: hidden;
    border: 1px solid var(--rule-strong);
    border-radius: 18px;
    background: var(--sheet);
    box-shadow: var(--shadow);
}
.pane { display: flex; flex-direction: column; min-width: 0; height: 38.5rem; }
.pane-head { display: flex; align-items: center; gap: .75rem; min-height: 3.75rem; padding: .75rem 1.25rem; font-size: .875rem; line-height: 1.35; }
.pane-head strong { display: block; font-weight: 600; font-size: .9375rem; }
.pane-head .sub { display: block; }

.pane-agent { background: var(--agent); color: var(--agent-ink); }
.pane-agent .pane-head { border-bottom: 1px solid var(--agent-line); }
.pane-agent .pane-head .sub { color: var(--agent-soft); }
.agent-badge {
    display: grid; place-items: center; width: 2rem; height: 2rem; flex: none;
    border-radius: 50%; background: var(--agent-raised);
}
.agent-badge svg { width: 1rem; height: 1rem; }
.chat-log {
    flex: 1; display: flex; flex-direction: column; gap: .8rem;
    padding: 1.25rem; overflow-y: auto; scrollbar-width: thin;
    scrollbar-color: var(--agent-raised) transparent;
    font-size: .9375rem; line-height: 1.5;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.75rem);
    mask-image: linear-gradient(to bottom, transparent 0, #000 1.75rem);
}
.chat-log > :first-child { margin-top: auto; }
.msg-user {
    align-self: flex-end; max-width: 88%; padding: .6rem .9rem;
    border-radius: 14px 14px 4px 14px; background: var(--agent-raised);
}
.msg-agent { max-width: 96%; }
.tool {
    display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .55rem;
    align-self: flex-start; padding: .4rem .7rem;
    border: 1px solid var(--agent-line); border-radius: 8px;
    font-size: .8125rem; color: var(--agent-soft);
}
.tool code { color: var(--agent-ink); font-size: .8125rem; }
.tool-state { display: grid; place-items: center; width: .875rem; height: .875rem; color: #7fd3a6; }
.tool-state svg { width: .875rem; height: .875rem; }
.approve {
    display: inline-flex; align-items: center; gap: .5rem; margin-top: .85rem;
    min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 9px;
    background: var(--agent-ink); color: #15213b; font: inherit; font-size: .9375rem; font-weight: 600;
    cursor: pointer;
}
.approve:hover { background: #ffffff; }
.approve:focus-visible { outline-color: var(--agent-ink); }
.approve:disabled { cursor: default; background: var(--agent-raised); color: var(--agent-soft); }
.approve svg { width: 1rem; height: 1rem; }
.approve-note { margin-top: .6rem; font-size: .8125rem; color: var(--agent-soft); }
.js .approve-note { display: none; }
.no-js .approve { display: none; }

.pane-journal { background: var(--sheet); }
.pane-journal .pane-head { justify-content: space-between; border-bottom: 1px solid var(--rule-strong); }
.pane-journal .pane-head .sub { color: var(--ink-faint); }
.state {
    display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem;
    border: 1px solid var(--rule-strong); border-radius: 999px;
    font-size: .8125rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.state svg { display: none; width: .8rem; height: .8rem; }
.demo.is-approved .state { background: var(--seal-soft); border-color: transparent; color: var(--seal); }
.demo.is-approved .state svg { display: block; }

.journal { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; }
.journal th {
    padding: .65rem .75rem; border-bottom: 1px solid var(--rule-strong);
    font-size: .8125rem; font-weight: 500; color: var(--ink-faint); text-align: left;
}
.journal td { padding: .6rem .75rem; border-bottom: 1px solid var(--rule); white-space: nowrap; transition: background-color 1.2s ease; }
.journal th:nth-child(2), .journal td:nth-child(2) { border-left: 3px double var(--margin); }
.journal .col-nr { width: 4.25rem; }
.journal .col-date { width: 4.75rem; }
.journal .col-set { width: 8rem; }
.journal .col-amt { width: 6.5rem; }
.journal .col-lock { width: 2.25rem; }
.journal .num { text-align: right; }
.j-nr, .j-date, .j-set, .j-amt { font-family: var(--mono); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.j-nr, .j-date { color: var(--ink-faint); }
.j-text { overflow: hidden; text-overflow: ellipsis; }
.j-set i { font-style: normal; color: var(--ink-faint); }
.j-more td { color: var(--ink-faint); font-style: italic; }
.journal tr.is-fresh td { background: var(--ledger); transition: none; }
.j-lock { text-align: center; }
.j-lock svg {
    width: .9rem; height: .9rem; vertical-align: -.1rem; color: var(--seal);
    opacity: 0; transform: scale(.5);
    transition: opacity .3s ease, transform .3s ease;
    transition-delay: calc(var(--i, 0) * 70ms);
}
.demo.is-approved .j-lock svg { opacity: 1; transform: none; }

.ustva {
    margin: auto 1rem 1rem; padding: .9rem 1rem 1rem;
    border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--ledger);
}
.ustva-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .55rem; }
.ustva-head strong { font-size: .9375rem; font-weight: 600; }
.ustva dl > div { display: flex; align-items: baseline; gap: .65rem; padding: .3rem 0; font-size: .875rem; }
.ustva dt { display: flex; align-items: baseline; gap: .6rem; color: var(--ink-soft); }
.ustva dd { margin-left: auto; font-family: var(--mono); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.kz {
    min-width: 2rem; padding: .05rem .3rem; border: 1px solid var(--rule-strong); border-radius: 4px;
    background: var(--sheet); font-family: var(--mono); font-size: .75rem; color: var(--ink); text-align: center;
}
.ustva .total dt { color: var(--ink); font-weight: 600; }
.ustva .total dd { font-weight: 600; padding-bottom: .1rem; border-bottom: 3px double var(--ink); }

.demo-caption { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1rem; font-size: .875rem; color: var(--ink-faint); }
.replay {
    padding: 0; border: 0; background: none; color: var(--ink-soft); font: inherit;
    text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}
.replay:hover { color: var(--ink); }

/* Playback. Without JavaScript or with reduced motion the final state is shown. */
.tool-state .spin { display: none; }
[data-after]:not(.is-in) { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
    .js .chat-log [data-at]:not(.is-in) { display: none; }
    .js .pane-journal [data-at]:not(.is-in) { visibility: hidden; opacity: 0; }
    .js .pane-journal [data-at] { transition: opacity .35s ease, visibility .35s; }
    .js .tool:not(.is-done) .tool-result,
    .js .tool:not(.is-done) .tool-state .done { display: none; }
    .js .tool:not(.is-done) .tool-state .spin { display: block; animation: spin .8s linear infinite; }
    .js .chat-log .is-in { animation: rise .3s ease both; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* Sections */
.section { padding-block: clamp(4rem, 2.25rem + 5vw, 7.25rem); }
.section h2 {
    max-width: 17em;
    font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem);
    font-stretch: 85%;
    line-height: 1;
    letter-spacing: -.02em;
}
.section-lede { max-width: 38em; margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-soft); }
.section-band { background: var(--sheet); border-block: 1px solid var(--rule); }

/* Ablauf */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding: 0; list-style: none; }
.flow-step { position: relative; display: flex; flex-direction: column; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: 3.25rem; right: -1.75rem; height: 1px; background: var(--rule-strong); }
.flow-num {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1.25rem;
    border: 1px solid var(--rule-strong); border-radius: 50%; background: var(--paper);
    font-family: var(--mono); font-size: .875rem;
}
.flow-step:last-child .flow-num { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.flow-step h3 { font-size: 1.375rem; font-stretch: 85%; letter-spacing: -.01em; }
.flow-step p { margin-top: .5rem; color: var(--ink-soft); }
.flow-step .tag { margin-top: auto; padding-top: 1rem; font-size: .875rem; font-weight: 500; color: var(--ink); }
.tag::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%; background: var(--rule-strong); vertical-align: .05rem; }
.tag.is-live::before { background: var(--seal); }
.tag.is-soon::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Werkzeuge */
.split { display: grid; gap: 3rem 5rem; }
.split-text p + p { margin-top: 1rem; }
.split-text > p { color: var(--ink-soft); max-width: 34em; }
.split-text h2 + p { margin-top: 1.5rem; }
.split-text .fine { margin-top: 1.5rem; }
.manifest { align-self: start; border: 1px solid var(--rule-strong); border-radius: 16px; background: var(--sheet); overflow: hidden; }
.manifest-head { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--rule-strong); font-size: .875rem; color: var(--ink-faint); }
.manifest-head strong { color: var(--ink); font-weight: 600; }
.manifest-group { padding: .55rem 1.25rem; border-bottom: 1px solid var(--rule); background: var(--ledger); font-size: .8125rem; font-weight: 500; color: var(--ink-soft); }
.manifest dl > div { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: .25rem 1.25rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--rule); }
.manifest dl:last-child > div:last-child { border-bottom: 0; }
.manifest dt code { font-size: .875rem; color: var(--ink); }
.manifest dd { font-size: .9375rem; color: var(--ink-soft); }

/* GoBD */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 4rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.rule { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.rule h3 { font-size: 1.25rem; font-stretch: 85%; letter-spacing: -.005em; }
.rule p { margin-top: .5rem; color: var(--ink-soft); max-width: 32em; }
.section .note { margin-top: 3rem; font-size: .9375rem; color: var(--ink-soft); max-width: 40em; }

/* Selbstbucher */
.points { display: grid; gap: 1.75rem; padding: 0; list-style: none; }
.points li { padding-left: 1.25rem; border-left: 3px double var(--margin); }
.points h3 { font-size: 1.125rem; }
.points p { margin-top: .25rem; color: var(--ink-soft); }
.split-text > p.lead-dark { color: var(--ink); font-size: 1.1875rem; }

/* FAQ */
.faq { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); border-top: 1px solid var(--rule-strong); max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
    padding: 1.2rem 0; list-style: none; cursor: pointer; font-size: 1.125rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: .75rem; height: .75rem;
    background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
                linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
    transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-soft); max-width: 42em; }

/* Closing */
.closing { background: var(--agent); color: var(--agent-ink); }
.closing .wrap { padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem); }
.closing h2 { max-width: 14em; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); font-stretch: 85%; line-height: 1; letter-spacing: -.02em; }
.closing p { max-width: 34em; margin-top: 1.25rem; font-size: 1.1875rem; color: var(--agent-soft); }
.closing .cta-row { margin-top: 2rem; align-items: center; gap: 1rem 1.5rem; }
.closing .btn-primary { background: var(--agent-ink); color: #15213b; }
.closing .btn-primary:hover { background: #ffffff; }
.closing .btn-primary:focus-visible, .closing a:focus-visible { outline-color: var(--agent-ink); }
.closing .text-link { color: var(--agent-ink); }

/* Footer */
.site-foot { padding-block: 2rem 2.5rem; font-size: .875rem; color: var(--ink-faint); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

@media (min-width: 900px) {
    .hero-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
    #werkzeuge .split-text { position: sticky; top: 2rem; align-self: start; }
    .split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 960px) {
    .demo { grid-template-columns: minmax(0, 1fr); }
    .pane-agent { height: 31rem; }
    .pane-journal { height: auto; }
    .ustva { margin-top: 1rem; }
}
@media (max-width: 760px) {
    .head-nav { display: none; }
    .flow { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .flow-step:not(:last-child)::after { top: 3.25rem; bottom: -1.5rem; left: 1.25rem; right: auto; width: 1px; height: auto; }
    .flow-step { padding-left: 3.75rem; }
    .flow-num { position: absolute; left: 0; top: 0; margin: 0; }
    .rules { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .manifest dl > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .pane-head { padding-inline: 1rem; }
    .chat-log { padding: 1rem; }
    .journal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .journal, .journal tbody { display: block; }
    .journal tr {
        display: grid;
        grid-template-columns: 3.1rem minmax(0, 1fr) auto;
        grid-template-areas: "nr text amt" "date set set";
        column-gap: .6rem;
        padding: .6rem 1rem;
        border-bottom: 1px solid var(--rule);
        transition: background-color 1.2s ease;
    }
    .journal tr.is-fresh { background: var(--ledger); transition: none; }
    .journal tr.is-fresh td { background: none; }
    .journal td { padding: 0; border: 0; }
    .journal td:nth-child(2) { border-left: 0; }
    .journal .j-nr { grid-area: nr; }
    .journal .j-date { grid-area: date; }
    .journal .j-text { grid-area: text; padding-left: .6rem; border-left: 3px double var(--margin); }
    .journal .j-set { grid-area: set; padding-left: .6rem; border-left: 3px double var(--margin); color: var(--ink-faint); }
    .journal .j-amt { grid-area: amt; }
    .journal .j-lock { grid-area: lock; align-self: center; }
    .j-more { display: block !important; }
    .j-more td:not(.j-text) { display: none; }
    .ustva { margin-inline: .75rem; }
    .ustva-head { flex-wrap: wrap; gap: .4rem .75rem; }
    .j-extra { display: none; }
    .hero .cta-row .btn { flex: 1 1 100%; }
    .ustva dl > div { font-size: .8125rem; }
}

/* ------------------------------------------------------------------ */
/* Shared parts of every page (header state, footer, copy buttons)     */
/* ------------------------------------------------------------------ */
.head-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.site-foot { margin-top: clamp(3rem, 2rem + 4vw, 5rem); border-top: 1px solid var(--rule); padding-block: 2.75rem 3rem; }
.site-foot .foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; justify-content: initial; }
.site-foot .foot-about p { margin-top: .85rem; max-width: 30em; color: var(--ink-soft); }
.site-foot .foot-about .fine { font-size: .8125rem; color: var(--ink-faint); }
.site-foot nav { display: flex; flex-direction: column; gap: .55rem; }
.site-foot .foot-title { margin-bottom: .2rem; font-weight: 600; color: var(--ink); }
.site-foot .brand { margin-right: 0; color: var(--ink); }
@media (max-width: 820px) {
    .site-foot .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-foot .foot-about { grid-column: 1 / -1; }
}

.copy {
    flex: none; min-height: 2.25rem; padding: 0 .85rem; border: 1px solid var(--rule-strong); border-radius: 8px;
    background: var(--sheet); color: var(--ink); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer;
}
.copy:hover { border-color: var(--ink-soft); }
.no-js .copy, html:not(.js) .copy { display: none; }
.mcp-url {
    display: flex; align-items: center; gap: .75rem; max-width: 34rem; margin-top: 1.1rem;
    padding: .45rem .45rem .45rem 1rem; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--sheet);
}
.mcp-url code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .9375rem; color: var(--ink); }

/* Call to action box, inside articles and on hub pages */
.cta-box {
    margin-block: 2.5rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    border: 1px solid var(--rule-strong); border-left: 3px double var(--margin); border-radius: 16px;
    background: var(--sheet); box-shadow: var(--shadow);
}
.cta-box > p { color: var(--ink-soft); max-width: 40em; }
.cta-box .cta-kicker { font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; color: var(--seal); }
.cta-box .cta-title { margin-top: .35rem; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 600; font-stretch: 85%; line-height: 1.15; color: var(--ink); }
.cta-box .cta-title + p { margin-top: .6rem; }
.cta-box .cta-row { margin-top: 1.25rem; }
.cta-box .fine { font-size: .875rem; }
.prose .cta-box a { text-decoration: none; }

/* ------------------------------------------------------------------ */
/* Articles                                                            */
/* ------------------------------------------------------------------ */
.article-page { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 1080px) {
    .article-grid { grid-template-columns: minmax(0, 46rem) minmax(0, 17rem); justify-content: space-between; }
    .article-aside { position: sticky; top: 1.5rem; align-self: start; }
}
@media (max-width: 1079px) { .article-aside { display: none; } }
.crumbs { font-size: .875rem; color: var(--ink-faint); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.kicker { margin-top: 1.5rem; font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; color: var(--seal); }
.article h1, .hub h1 {
    margin-top: .5rem; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); font-stretch: 85%; line-height: 1.02; letter-spacing: -.02em;
}
.article-meta { margin-top: 1rem; font-size: .875rem; color: var(--ink-faint); }
/* German compounds such as "Umsatzsteuervoranmeldung" are wider than a phone. */
.article h1, .hub h1, .prose h2, .prose h3, .faq-block h2, .faq-item h3, .card-title, .toc a {
    hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}
.answer {
    margin-top: 1.75rem; padding: 1.1rem 1.25rem; border-radius: 12px; background: var(--ledger);
    border: 1px solid var(--rule); font-size: 1.0625rem;
}
.answer-label { margin-bottom: .35rem; font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--seal); }
.answer p + p { margin-top: .6rem; }

.prose { margin-top: 2rem; font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 {
    margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-strong);
    font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); font-stretch: 85%; line-height: 1.12; letter-spacing: -.012em;
    scroll-margin-top: 1.5rem;
}
.prose h3 { margin-top: 2rem; font-size: 1.25rem; line-height: 1.3; scroll-margin-top: 1.5rem; }
.prose h2 + *, .prose h3 + * { margin-top: .75rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .4rem; }
.prose li > ul, .prose li > ol { margin-top: .4rem; }
.prose strong { font-weight: 600; }
.prose a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose blockquote {
    margin-inline: 0; padding: .9rem 1.1rem; border-left: 3px double var(--margin); border-radius: 0 10px 10px 0;
    background: var(--sheet); color: var(--ink-soft);
}
.prose blockquote p + p { margin-top: .5rem; }
.prose :not(pre) > code {
    padding: .1rem .35rem; border: 1px solid var(--rule); border-radius: 5px; background: var(--sheet);
    font-size: .875em; overflow-wrap: anywhere;
}
.prose pre, .setup pre {
    position: relative; overflow-x: auto; padding: 1rem 1.1rem; border-radius: 12px;
    background: var(--agent); color: var(--agent-ink); font-size: .875rem; line-height: 1.6;
}
.prose pre code, .setup pre code { font-size: inherit; white-space: pre; }
.copy-code {
    position: absolute; top: .5rem; right: .5rem; min-height: 1.9rem; padding: 0 .65rem;
    border-color: var(--agent-line); background: var(--agent-raised); color: var(--agent-ink); font-size: .8125rem;
}
.copy-code:hover { border-color: var(--agent-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--sheet); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.prose th, .prose td { padding: .65rem .85rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); background: var(--ledger); }
.prose tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule-strong); margin-block: 2.5rem; }

/* Setup cards and tool list (placeholders in articles and on the home page) */
.setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-block: 1.5rem; }
.setup-single { grid-template-columns: minmax(0, 1fr); }
.setup-card { padding: 1.1rem 1.2rem 1.25rem; border: 1px solid var(--rule-strong); border-radius: 14px; background: var(--sheet); }
.setup-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; margin: 0; font-size: 1.125rem; }
.setup-where { font-size: .8125rem; font-weight: 400; color: var(--ink-faint); }
.setup-card ol { margin-top: .75rem; padding-left: 1.25rem; font-size: .9375rem; line-height: 1.55; }
.setup-card li + li { margin-top: .45rem; }
.setup-card li.setup-command { list-style: none; margin-left: -1.25rem; }
.setup-card code { font-size: .8125rem; overflow-wrap: anywhere; }
.setup-card pre { font-size: .8125rem; padding-right: 5.5rem; }
.tools { margin-block: 1.5rem; border: 1px solid var(--rule-strong); border-radius: 14px; background: var(--sheet); overflow: hidden; }
.tools-group { padding: .55rem 1.2rem; border-bottom: 1px solid var(--rule); background: var(--ledger); font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.tools dl { margin: 0; }
.tools dl > div { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: .25rem 1.25rem; padding: .7rem 1.2rem; border-bottom: 1px solid var(--rule); }
.tools dl:last-child > div:last-child { border-bottom: 0; }
.tools dt { display: flex; align-items: center; gap: .5rem; }
.tools dt code { font-size: .875rem; color: var(--ink); overflow-wrap: anywhere; }
.tools dd { margin: 0; font-size: .9375rem; color: var(--ink-soft); }
.access { padding: .05rem .45rem; border-radius: 999px; background: var(--ledger); font-size: .6875rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-faint); }
.access-write { background: var(--seal-soft); color: var(--seal); }
@media (max-width: 700px) { .tools dl > div { grid-template-columns: minmax(0, 1fr); } }

/* FAQ in articles: visible questions and answers */
.faq-block { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-strong); }
.faq-block h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); font-stretch: 85%; letter-spacing: -.012em; scroll-margin-top: 1.5rem; }
.faq-block .faq { border-top: 0; max-width: none; margin-top: 1rem; }
.faq-item { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.faq-item h3 { font-size: 1.125rem; line-height: 1.35; }
.faq-answer { margin-top: .45rem; color: var(--ink-soft); }
.faq-answer p + p { margin-top: .5rem; }
.faq-answer a { color: var(--ink); }

/* Aside: contents and connect box */
.toc { padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--sheet); font-size: .9rem; }
.toc-title { margin-bottom: .5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li + li { margin-top: .4rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.aside-cta { margin-top: 1rem; padding: 1rem 1.1rem 1.15rem; border-radius: 14px; background: var(--agent); color: var(--agent-ink); }
.aside-cta-title { font-weight: 600; }
.aside-cta .mcp-url { flex-wrap: wrap; gap: .5rem; margin-top: .75rem; padding: .6rem .6rem .6rem .75rem; border-color: var(--agent-line); background: var(--agent-raised); }
.aside-cta .mcp-url code { flex-basis: 100%; color: var(--agent-ink); font-size: .8125rem; overflow-wrap: normal; }
.aside-cta .copy { min-height: 2rem; padding: 0 .6rem; border-color: var(--agent-line); background: var(--agent); color: var(--agent-ink); font-size: .8125rem; }
.aside-cta .btn { margin-top: .85rem; width: 100%; background: var(--agent-ink); color: #15213b; }

/* Cards: hub, home, related articles */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin-top: 1.25rem; }
.card {
    display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem 1.25rem;
    border: 1px solid var(--rule-strong); border-radius: 14px; background: var(--sheet); text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--ink-soft); transform: translateY(-1px); }
.card-kicker { font-family: var(--mono); font-size: .75rem; color: var(--seal); }
.card-title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.card-text { font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); }
.related { margin-top: 3.5rem; }
.related h2 { font-size: 1.5rem; font-stretch: 85%; }
.groups { display: grid; gap: 3rem; margin-top: 2.5rem; }
.group-title { font-size: 1.5rem; font-stretch: 85%; letter-spacing: -.01em; }
.group-intro { margin-top: .4rem; max-width: 42em; color: var(--ink-soft); }

/* Hub and 404 */
.hub { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) 0; }
.hub .kicker { margin-top: 0; }
.hub-lede { max-width: 40em; margin-top: 1rem; font-size: 1.1875rem; color: var(--ink-soft); }
.hub-lede a { color: var(--ink); }
.hub .cta-box { margin-top: 3.5rem; }

/* Home page additions */
.home .connect { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .home .connect { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; } }
.home .connect .setup { margin-top: 0; }
.home .section .groups { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.home .tools { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.home .hero .mcp-url { margin-top: 1.5rem; }
.home .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 2.5rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.home .fact { padding-top: 1rem; border-top: 1px solid var(--ink); }
.home .fact h3 { font-size: 1.125rem; }
.home .fact p { margin-top: .4rem; color: var(--ink-soft); }
.text-link { color: var(--ink); }
