/* FIRMA GUIDE – App */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
    --ink: #0a0a0a;
    --ink-2: #262626;
    --muted: #6b6b6b;
    --line: #e5e5e5;
    --line-2: #f2f2f2;
    --paper: #f7f7f7;
    --card: #ffffff;
    --accent: #2563eb;
    --accent-2: #1d4ed8;
    --accent-soft: #eff4ff;
    --amber: #60a5fa;
    --amber-soft: #eff4ff;
    --red: #b4372b;
    --red-soft: #fbe9e6;
    --blue-soft: #f5f5f5;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 24px -12px rgba(0, 0, 0, .18);
    --serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-feature-settings: "cv11", "ss01"; font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 .4em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.18em; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.big { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: .2em 0; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6em; }
.inline { display: inline; margin: 0; }
.is-hidden { display: none !important; }
.hide-sm { }

/* Logo */
.logo { font-weight: 800; letter-spacing: .1em; font-size: .95rem; color: var(--ink); text-decoration: none !important; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo--light { color: #fff; }
.logo--light span { color: var(--amber); }

/* Topbar */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar__inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .logo { color: #fff; }
.topbar .logo span { color: var(--amber); }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a, .topnav .linklike { color: #d4d4d4; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; font-size: .92rem; text-decoration: none; }
.topnav a:hover, .topnav .linklike:hover, .topnav a.is-active { color: #fff; background: rgba(255,255,255,.08); }

.banner { background: var(--accent-soft); border-bottom: 1px solid #c7d7fe; font-size: .9rem; }
.banner__inner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }

.main { padding: 28px 0 64px; min-height: calc(100vh - 140px); }
.footer { border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 28px; }
.footer a { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }
.btn--primary[disabled] { opacity: .5; cursor: not-allowed; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #d4d4d4; background: #fafafa; }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #962c22; }
.btn--sm { padding: 7px 12px; font-size: .86rem; border-radius: 8px; }
.btn--lg { padding: 14px 24px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.iconbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--paper); color: var(--ink); border-color: var(--line); }
.chip { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: .85rem; padding: 5px 11px; border-radius: 99px; border: 1px dashed #c4c4c4; background: var(--card); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Alerts */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); margin: 0 0 14px; font-size: .93rem; border: 1px solid transparent; color: var(--ink); text-decoration: none !important; }
.alert .icon { margin-top: .15em; }
.alert--success { background: var(--accent-soft); border-color: #c7d7fe; }
.alert--error { background: var(--red-soft); border-color: #f1c6bf; color: #7a2018; }
.alert--warn { background: #fff8e6; border-color: #f3dc9f; }
a.alert--warn:hover { border-color: #e2c272; }
.alert--info { background: var(--blue-soft); border-color: #e5e5e5; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); vertical-align: middle; }
.tag--ug { background: var(--accent-soft); color: var(--accent-2); }
.tag--gmbh { background: var(--ink); color: #fff; }
.tag--ok { background: var(--accent-soft); color: var(--accent-2); }
.tag--bad { background: var(--red-soft); color: var(--red); }
h1 .tag { font-size: .8rem; margin-left: 8px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card--quiet { box-shadow: none; background: transparent; line-height: 2; }
.card--danger { border-color: #efcdc7; }
.card__title { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card__row .card__title { margin: 0; }

.page-head { margin: 10px 0 26px; }
.page-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { margin-bottom: .2em; }
.backlink { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.backlink:hover { color: var(--ink); }

/* Forms */
.form { margin: 0; }
.grid-form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 18px; }
.grid-form > * { grid-column: span 6; }
.grid-form > .field--half { grid-column: span 3; }
.grid-form > .field--third { grid-column: span 2; }
.grid-form > .field--twothirds { grid-column: span 4; }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.grid-form .field { margin: 0; }
.label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); padding: 0; }
.req { color: var(--accent); }
.help { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: .84rem; color: var(--red); margin: 6px 0 0; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #d4d4d4; border-radius: var(--radius-sm); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; min-height: 44px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.input-affix { position: relative; }
.input-affix input { padding-right: 34px; font-variant-numeric: tabular-nums; }
.input-affix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choices--wrap { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px 12px 40px; border: 1px solid #d4d4d4; border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, background .15s; position: relative; }
.choice__box::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #a3a3a3; background: #fff; }
.choice input:checked + .choice__box { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:checked + .choice__box::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, #fff 5px); }
.choice input:focus-visible + .choice__box { box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.choice__title { font-weight: 600; font-size: .95rem; }
.choice__desc { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.choice--sm .choice__box { padding: 9px 12px 9px 38px; }
.choice--sm .choice__box::before { top: 12px; }

/* Auth */
.layout-auth { background: var(--paper); }
.auth { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; min-height: 100vh; }
.auth__brand { background: var(--ink); color: #d4d4d4; padding: 36px 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth__brand::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(96, 165, 250, .12); }
.auth__pitch h2 { color: #fff; font-size: 1.9rem; margin-bottom: 24px; }
.auth__pitch .eyebrow { color: var(--amber); }
.auth__steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.auth__steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); }
.auth__steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); font-family: var(--mono); font-size: .8rem; color: var(--amber); }
.auth__foot { font-size: .8rem; color: #8a8a8a; margin: 0; }
.auth__main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 16px; }
.auth__main > .alert { width: 100%; max-width: 420px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 2rem; }
.auth-switch { margin-top: 22px; text-align: center; font-size: .93rem; color: var(--muted); }

/* Dashboard */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.company-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.company-card:hover { transform: translateY(-2px); border-color: #c4c4c4; }
.company-card__top { display: flex; gap: 6px; margin-bottom: 12px; }
.company-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.company-card__foot { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.company-card__foot .next { color: var(--accent); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.company-card--new { align-items: center; justify-content: center; gap: 8px; border-style: dashed; background: transparent; box-shadow: none; color: var(--muted); min-height: 180px; font-weight: 600; }
.company-card--new .icon { width: 28px; height: 28px; }
.company-card--new:hover { color: var(--accent); border-color: var(--accent); }
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #3b82f6); border-radius: 99px; min-width: 4px; }
.progress--thin { height: 5px; margin: 6px 0 12px; }

.empty { text-align: center; padding: 48px 24px; }
.empty__icon { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 18px; background: var(--accent-soft); color: var(--accent); }
.empty__icon .icon { width: 30px; height: 30px; }
.empty .muted { max-width: 46ch; margin-left: auto; margin-right: auto; }

/* Company overview */
.company-hero { display: flex; justify-content: space-between; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin: 8px 0 20px; box-shadow: var(--shadow); }
.company-hero__tags { display: flex; gap: 6px; margin-bottom: 10px; }
.company-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__bg { stroke: var(--line-2); }
.ring__fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray .6s; }
.ring__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring__label strong { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.ring__label span { font-size: .75rem; color: var(--muted); margin-top: 4px; }

.warnings { margin-bottom: 18px; }
.overview { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.roadmap__phase { margin-bottom: 22px; }
.roadmap__title { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.roadmap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.roadmap__item a { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; color: var(--ink); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.roadmap__item a:hover { border-color: #c4c4c4; transform: translateX(2px); }
.roadmap__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font-family: var(--mono); font-size: .85rem; flex-shrink: 0; }
.roadmap__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.roadmap__arrow { color: #a3a3a3; }
.roadmap__item.is-done .roadmap__num { background: var(--accent); border-color: var(--accent); color: #fff; }
.roadmap__item.is-done strong { color: var(--muted); }
.roadmap__item.is-progress .roadmap__num { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.roadmap__item.is-next a { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.roadmap__item.is-next .roadmap__arrow { color: var(--accent); }
.facts { position: sticky; top: 80px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.dl--wide { grid-template-columns: 180px 1fr; }
.dl--wide dd { text-align: left; }

/* Step layout */
.stepper-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.stepper { position: sticky; top: 80px; }
.stepper__head { display: flex; justify-content: space-between; }
.stepper__toggle { display: none; }
.stepper__list { list-style: none; margin: 0; padding: 0; }
.stepper__phase { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.stepper__item a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--ink-2); font-size: .9rem; text-decoration: none !important; }
.stepper__item a:hover { background: rgba(0, 0, 0, .05); }
.stepper__num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-family: var(--mono); font-size: .72rem; flex-shrink: 0; }
.stepper__num .icon { width: 13px; height: 13px; }
.stepper__item.is-done .stepper__num { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper__item.is-progress .stepper__num { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.stepper__item.is-current a { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.stepper__item.is-current .stepper__num { border-color: var(--ink); }

.step__head { margin-bottom: 20px; }
.step__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--muted); }
.step__meta span { display: inline-flex; align-items: center; gap: 6px; }
.step__form { margin-top: 4px; }
.step__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.step__actions-main { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.callout { background: var(--card); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; margin-bottom: 18px; font-size: .94rem; }
.subhead { font-family: var(--sans); font-size: .95rem; font-weight: 700; margin: 18px 0 14px; padding-top: 18px; border-top: 1px solid var(--line-2); }

.integration { display: flex; align-items: center; gap: 14px; background: var(--accent-soft); border: 1px solid #c7d7fe; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.integration p { margin: 2px 0 0; }
.integration > div:nth-child(2) { flex: 1; }
.integration__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.integration__icon .icon { width: 22px; height: 22px; }

/* Guide (rechte Spalte) */
.guide { position: sticky; top: 80px; }
.guide__box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.guide__title { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.checklist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 9px; }
.checklist .check { font-size: .9rem; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: #c4c4c4; }
.info { border-top: 1px solid var(--line-2); }
.info:first-of-type { border-top: 0; }
.info summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.info summary::-webkit-details-marker { display: none; }
.info summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.info[open] summary::after { content: "–"; }
.info__body { font-size: .88rem; color: var(--ink-2); padding-bottom: 12px; line-height: 1.6; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.disclaimer { padding: 0 4px; }

/* People */
.people { list-style: none; margin: 0; padding: 0; }
.person { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.person:first-child { border-top: 0; }
.person__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: #1d4ed8; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.person__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person__share { text-align: right; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.person__actions { display: flex; gap: 2px; }
.person__actions form { margin: 0; }
.sumline { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 14px; border-radius: var(--radius-sm); margin-top: 12px; font-size: .92rem; }
.sumline strong { font-variant-numeric: tabular-nums; }
.sumline .muted { flex-basis: 100%; font-size: .82rem; }
.sumline.is-ok { background: var(--accent-soft); }
.sumline.is-off { background: #fff8e6; }
.quickadd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }

/* Documents */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; }
.doc-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.doc-card:hover { transform: translateY(-2px); border-color: #c4c4c4; }
.doc-card__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; margin-bottom: 6px; color: var(--accent); }
.doc-card__icon .icon { width: 22px; height: 22px; }
.doc-card__cta { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }

/* Transmit */
.transmit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none !important; }
.tab:hover { border-color: #c4c4c4; }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .9rem; }
.history li:first-child { border-top: 0; }
.history li > span:nth-child(2) { flex: 1; min-width: 200px; }
.integrations { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 80px; }
.intlist { list-style: none; margin: 0 0 12px; padding: 0; }
.intlist li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.intlist li:first-child { border-top: 0; }
.intlist div { display: flex; flex-direction: column; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d4; margin-top: 7px; flex-shrink: 0; }
.dot--on { background: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }

/* Responsive */
@media (max-width: 1100px) {
    .stepper-layout { grid-template-columns: 200px minmax(0, 1fr); }
    .guide { grid-column: 2; position: static; }
}
@media (max-width: 900px) {
    .overview, .transmit { grid-template-columns: 1fr; }
    .facts, .integrations { position: static; }
    .auth { grid-template-columns: 1fr; }
    .auth__brand { padding: 22px 16px; }
    .auth__pitch, .auth__foot { display: none; }
    .stepper-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .guide { grid-column: auto; }
    .stepper { position: static; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
    .stepper__toggle { display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink); cursor: pointer; padding: 0; }
    .stepper__list { display: none; margin-top: 8px; }
    .stepper__list.is-open { display: block; }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .grid-form > .field--half, .grid-form > .field--third, .grid-form > .field--twothirds { grid-column: span 6; }
    .card { padding: 16px; }
    .company-hero { flex-direction: column-reverse; align-items: flex-start; padding: 20px; }
    .ring { width: 104px; height: 104px; }
    .topnav span { display: none; }
    .topnav a, .topnav .linklike { padding: 8px 10px; }
    .person { flex-wrap: wrap; }
    .person__share { text-align: left; }
    .step__actions { flex-direction: column-reverse; align-items: stretch; }
    .step__actions-main { flex-direction: column-reverse; }
    .step__actions .btn { width: 100%; }
    .hide-sm { display: none; }
    .dl--wide { grid-template-columns: 1fr; }
    .dl--wide dt { margin-top: 6px; }
    .integration { flex-wrap: wrap; }
}

/* Print-Layout Grundgerüst (Details in print.css) */
.layout-print { background: #f0f0f0; }
.print-bar { position: sticky; top: 0; display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--ink); z-index: 5; }
.paper { background: #fff; max-width: 860px; margin: 24px auto 48px; padding: 48px 56px; box-shadow: 0 10px 40px -20px rgba(0,0,0,.4); border-radius: 4px; }
@media (max-width: 640px) { .paper { padding: 24px 16px; margin: 0; border-radius: 0; } }

/* Handelsregister-Namensprüfung */
.hrcheck { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; padding: 14px 16px; border: 1px solid #c7d7fe; background: var(--accent-soft); border-radius: var(--radius-sm); }
.hrcheck__text { flex: 1 1 260px; display: flex; flex-direction: column; font-size: .88rem; }
.hrcheck__text span { color: var(--ink-2); }
.hrcheck__hint { flex-basis: 100%; margin: 0; }

/* Autosave-Status */
.autosave { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-right: 6px; }
.autosave[data-state="saving"], .autosave[data-state="dirty"] { color: var(--muted); }
.autosave[data-state="saved"] { color: var(--accent); }
.autosave[data-state="error"] { color: var(--red); }

/* Gesperrte Schritte (Abhängigkeiten) */
.lockbox { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: .93rem; }
.lockbox > .icon { width: 20px; height: 20px; margin-top: 1px; }
.lockbox div { display: flex; flex-direction: column; gap: 3px; }
.lockbox.is-error { border-left-color: var(--red); background: var(--red-soft); }
.stepper__item.is-locked a { color: var(--muted); }
.stepper__item.is-locked .stepper__num { color: var(--muted); }
.stepper__num .icon { width: 12px; height: 12px; }
.roadmap__item.is-locked strong { color: var(--muted); }
.roadmap__item.is-locked .roadmap__num { color: var(--muted); }
.roadmap__num .icon { width: 15px; height: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Dokumente / Uploads */
.filelist { list-style: none; margin: 0 0 14px; padding: 0; }
.filelist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.filelist li:first-child { border-top: 0; }
.filelist form { margin: 0; }
.filelist__icon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.filelist__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.filelist__body a { font-weight: 600; overflow-wrap: anywhere; }
.upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line-2); }
.upload select { width: auto; flex: 1 1 220px; }
.upload input[type=file] { flex: 1 1 220px; font: inherit; font-size: .88rem; min-width: 0; }
.upload__hint { flex-basis: 100%; margin: 0; }
.attachlist { display: grid; gap: 8px; }
