/* seo-base.css — Shared styles for /buchhaltung-*, /belege-*, /rechnung-*, /themen, /blog/* */

:root {
    --brand: #2563eb;
    --brand-d: #1d4ed8;
    --ink: #0f172a;
    --ink-l: #475569;
    --ink-ll: #64748b;
    --bg-soft: #f8fafc;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--ink);
    margin: 0;
    line-height: 1.65;
    overflow-x: clip;
    max-width: 100vw;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }

/* Nav */
.nav { position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid #f1f5f9; z-index: 50; }
.nav-inner { max-width: 72rem; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-weight: 800; font-size: 18px; color: var(--ink); }
.nav-brand span { color: var(--brand); }
.nav-cta { background: var(--brand); color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.nav-cta:hover { background: var(--brand-d); color: #fff; }

/* Hero */
.hero { background: linear-gradient(180deg, #fdfdff 0%, #eff6ff 100%); padding: 56px 20px 40px; }
.hero-inner { max-width: 56rem; margin: 0 auto; text-align: center; }
.crumb { font-size: 13px; color: var(--ink-l); margin-bottom: 16px; }
.crumb a { color: var(--ink-l); text-decoration: underline; }
.crumb .sep { margin: 0 6px; opacity: .5; }
h1 { font-size: clamp(26px, 5vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.15; }
.hero p.lede { font-size: clamp(15px, 2.2vw, 19px); color: var(--ink-l); max-width: 42rem; margin: 0 auto 28px; }

/* Form */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; max-width: 30rem; margin: 0 auto; box-shadow: 0 10px 40px -20px rgba(37,99,235,0.25); }
.form-card label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; text-align: left; }
.form-card input[type="email"] { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; font-family: inherit; }
.form-card input[type="email"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.form-card button { width: 100%; margin-top: 12px; background: var(--brand); color: #fff; padding: 13px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: inherit; }
.form-card button:hover { background: var(--brand-d); transform: translateY(-1px); }
.form-card button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-card .small { font-size: 12px; color: var(--ink-l); margin-top: 10px; text-align: center; }
.form-err { font-size: 13px; color: #b91c1c; margin-top: 8px; }
.form-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 14px; border-radius: 10px; font-size: 14px; }

/* Sections */
section { padding: 48px 20px; }
section.alt { background: var(--bg-soft); }
.container { max-width: 56rem; margin: 0 auto; }
.container.narrow { max-width: 44rem; }
.container.wide { max-width: 64rem; }
h2 { font-size: clamp(22px, 3.6vw, 30px); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; line-height: 1.25; }
h3 { font-size: clamp(18px, 2.4vw, 21px); font-weight: 700; margin: 26px 0 10px; line-height: 1.35; }
h4 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
p { margin: 0 0 14px; color: var(--ink); }
section .lead { font-size: 17px; color: var(--ink-l); max-width: 42rem; }

article p, article ul, article ol { font-size: 16px; line-height: 1.7; }
article ul, article ol { padding-left: 22px; margin: 0 0 18px; }
article li { margin-bottom: 6px; }
article strong { color: var(--ink); }

.meta-line { font-size: 12px; color: var(--ink-ll); margin-bottom: 12px; }

/* TOC */
.toc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin: 24px 0; }
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-ll); margin: 0 0 10px; font-weight: 700; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
@media (max-width: 640px) { .toc ul { columns: 1; } }
.toc li { margin: 4px 0; font-size: 14px; break-inside: avoid; }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--brand); color: #fff; border-radius: 999px; font-weight: 800; margin-bottom: 12px; }

/* Benefits */
.benefits { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit svg { flex-shrink: 0; color: var(--brand); margin-top: 2px; }
.benefit p { margin: 4px 0 0; color: var(--ink-l); font-size: 14.5px; }

/* Compare table */
.compare-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--border); border-radius: 12px; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.compare th, table.compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare th { background: var(--bg-soft); font-weight: 700; font-size: 13px; color: var(--ink); }
table.compare th.brand-col { background: linear-gradient(180deg, #eff6ff, #dbeafe); color: var(--brand-d); border-bottom-color: var(--brand); }
table.compare td.brand-col { background: rgba(239,246,255,.55); font-weight: 600; }
table.compare .y { color: #16a34a; font-weight: 700; }
table.compare .n { color: var(--ink-ll); }
table.compare .partial { color: #d97706; font-weight: 600; }
table.compare tbody tr:last-child td { border-bottom: 0; }

/* ROI */
.roi-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 20px 0; }
@media (min-width: 720px) { .roi-grid { grid-template-columns: repeat(3, 1fr); } }
.roi-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.roi-num { font-size: 32px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.roi-lab { font-size: 13px; color: var(--ink-l); margin-top: 6px; }

/* Use cases / scenarios */
.use-cases, .scenarios { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 760px) { .use-cases, .scenarios { grid-template-columns: repeat(2, 1fr); } }
.use-case, .scenario { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.use-case .who, .scenario .who { font-size: 11px; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.use-case h4 { margin-top: 4px; }
.use-case .tip { font-size: 13px; color: var(--ink-l); background: var(--bg-soft); padding: 10px 12px; border-radius: 8px; margin-top: 10px; border-left: 3px solid var(--brand); }
.scenario .voice { font-style: italic; color: var(--ink-l); margin: 8px 0 10px; padding: 10px 12px; background: #eff6ff; border-radius: 8px; border-left: 3px solid var(--brand); font-size: 14px; }
.scenario .result { font-size: 13px; color: var(--ink-l); }
.scenario .result code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* Quote */
.quote-strip { background: #fff; border-left: 4px solid var(--brand); padding: 18px 22px; margin: 24px 0; border-radius: 0 10px 10px 0; }
.quote-strip .q { font-size: 16px; font-style: italic; color: var(--ink); }
.quote-strip .who { font-size: 13px; color: var(--ink-l); margin-top: 8px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-l); margin: 12px 0 0; }

/* Related */
.related { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 720px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: block; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); transition: all .2s; }
.related a:hover { border-color: var(--brand); transform: translateY(-2px); }
.related a strong { display: block; color: var(--brand); margin-bottom: 4px; }

/* CTA bottom */
.cta-bottom { background: linear-gradient(180deg, #eff6ff, #dbeafe); padding: 48px 20px; text-align: center; }
.cta-bottom h2 { margin-bottom: 12px; }
.cta-bottom p { color: var(--ink-l); max-width: 36rem; margin: 0 auto 22px; }
.cta-bottom .nav-cta { display: inline-block; padding: 14px 24px; font-size: 14px; }

/* Footer */
.seo-footer { background: #0f172a; color: #cbd5e1; padding: 40px 20px; font-size: 14px; text-align: center; }
.seo-footer a { color: #cbd5e1; }

/* Themen-Hub specific */
.cluster-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 760px) { .cluster-grid { grid-template-columns: repeat(2, 1fr); } }
.cluster { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.cluster h3 { margin: 0 0 8px; font-size: 18px; }
.cluster p { color: var(--ink-l); font-size: 14px; }
.cluster ul { margin: 12px 0 0; padding-left: 18px; }
.cluster li { font-size: 14px; margin-bottom: 4px; }
.cluster a { color: var(--brand); }

/* Blog */
.post-list { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; transition: all .2s; }
.post-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.post-card h3 { margin: 0 0 8px; font-size: 19px; }
.post-card h3 a { color: var(--ink); }
.post-card .date { font-size: 12px; color: var(--ink-ll); }
.post-card p { color: var(--ink-l); margin: 8px 0 0; font-size: 14.5px; }
.post-card .read-more { display: inline-block; margin-top: 12px; color: var(--brand); font-size: 13px; font-weight: 600; }

/* ════════════════════════════════════════════════════════════════
   CANONICAL NAV/FOOTER SHELL — aligned with index.html (landing)
   Scoped to shell selectors only; uses Linear-violet explicitly so
   page content colors (--brand blue) stay untouched.
   ════════════════════════════════════════════════════════════════ */
.nav, .drawer, footer.bottom {
    --c-ink: #282a30;
    --c-ink-2: #3c4149;
    --c-ink-l: #62666d;
    --c-ink-ll: #6f6e77;
    --c-ink-lll: #8a8f98;
    --c-border: #e9e8ea;
    --c-border-soft: #f0eef0;
    --c-border-strong: #dcdbdd;
    --c-brand: #5e6ad2;
    --c-brand-d: #4e58b8;
    --c-brand-soft: #f1f1ff;
    --c-brand-faint: #f7f7ff;
    --c-bg-soft: #f9f8f9;
    --c-bg-tint: #f4f4f5;
    --c-shadow-md: 0 4px 16px -4px rgba(40,42,48,.08);
}

/* override seo-base .nav */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(229,229,229,.6);
}
.nav-inner {
    max-width: 1024px; margin: 0 auto; padding: 14px 20px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.nav-brand { font-size: 17px; font-weight: 800; letter-spacing: -0.025em; color: var(--c-ink); }
.nav-brand span { color: var(--c-brand); }
.nav-links { display: none; gap: 28px; font-size: 14px; color: var(--c-ink-l); }
.nav-links > a { color: var(--c-ink-l); }
.nav-links a:hover { color: var(--c-ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-login {
    display: inline-flex; align-items: center; color: var(--c-brand-d);
    font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 8px;
    background: var(--c-brand-faint); border: 1px solid var(--c-brand-soft);
    white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.nav-login:hover { color: var(--c-brand-d); background: var(--c-brand-soft); border-color: var(--c-brand); }
.nav .nav-cta {
    background: var(--c-ink); color: #fff; padding: 9px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease;
}
.nav .nav-cta:hover { background: var(--c-ink); transform: translateY(-1px); box-shadow: var(--c-shadow-md); }
@media (max-width: 767px) {
    .nav-login { padding: 7px 10px; font-size: 12.5px; }
    .nav .nav-cta { padding: 7px 12px; font-size: 12.5px; }
    .nav-right { gap: 6px; }
}
@media (max-width: 380px) {
    .nav-login { padding: 6px 9px; font-size: 12px; }
    .nav .nav-cta { padding: 6px 10px; font-size: 12px; }
}
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-inner { padding: 16px 28px; }
    .nav-burger { display: none; }
}
.nav-dropdown { position: relative; }
.nav-dropdown > .dd-trigger {
    display: inline-flex; align-items: center; gap: 4px; color: var(--c-ink-l);
    font: inherit; transition: color .15s ease; cursor: pointer; padding: 0; border: 0; background: transparent;
}
.nav-dropdown > .dd-trigger:hover, .nav-dropdown:focus-within > .dd-trigger { color: var(--c-ink); }
.nav-dropdown > .dd-trigger .chev { transition: transform .2s ease, color .15s ease; color: var(--c-ink-lll); }
.nav-dropdown:hover > .dd-trigger .chev, .nav-dropdown:focus-within > .dd-trigger .chev { transform: rotate(180deg); color: var(--c-brand); }
.dd-panel {
    position: absolute; top: calc(100% + 8px); left: -16px; min-width: 280px;
    background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 6px;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 60;
    box-shadow: 0 16px 40px -12px rgba(40,42,48,.18), 0 4px 12px -4px rgba(40,42,48,.08);
}
.nav-dropdown:hover > .dd-panel, .nav-dropdown:focus-within > .dd-panel, .nav-dropdown.is-open > .dd-panel {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown.is-open > .dd-trigger .chev { transform: rotate(180deg); color: var(--c-brand); }
.dd-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
    font-size: 14px; color: var(--c-ink-2); font-weight: 500; transition: background .15s ease, color .15s ease;
}
.dd-item:hover { background: var(--c-brand-faint); color: var(--c-brand); }
.dd-item .ico { width: 18px; height: 18px; color: var(--c-brand); flex-shrink: 0; }
.nav-burger {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; color: var(--c-ink); background: transparent; cursor: pointer; border: 0; transition: background .15s ease;
}
.nav-burger:hover { background: var(--c-bg-tint); }
.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; z-index: 90;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 320px); background: #fff;
    transform: translateX(-100%); transition: transform .28s cubic-bezier(.16, 1, .3, 1);
    z-index: 100; display: flex; flex-direction: column; box-shadow: 24px 0 80px -24px rgba(15, 23, 42, 0.2);
}
.drawer.is-open { transform: translateX(0); }
body.drawer-open { overflow: hidden; }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--c-border-soft);
}
.drawer-head .nav-brand { font-size: 16px; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 6px 0; }
.drawer-link {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 20px;
    font-size: 15px; color: var(--c-ink); font-weight: 600; border-bottom: 1px solid var(--c-border-soft);
    background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
    transition: background .15s ease, color .15s ease;
}
.drawer-link:hover, .drawer-link:focus-visible { background: var(--c-brand-faint); color: var(--c-brand); }
.drawer-link .chev { transition: transform .2s ease, color .15s ease; color: var(--c-ink-lll); }
.drawer-section.is-open > .drawer-link .chev { transform: rotate(180deg); color: var(--c-brand); }
.drawer-sub { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--c-bg-soft); }
.drawer-section.is-open .drawer-sub { max-height: 600px; }
.drawer-sub a {
    display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 38px;
    font-size: 13.5px; color: var(--c-ink-l); font-weight: 500; border-bottom: 1px solid var(--c-border-soft);
    transition: color .15s ease, background .15s ease;
}
.drawer-sub a:last-child { border-bottom: none; }
.drawer-sub a:hover { background: var(--c-brand-faint); color: var(--c-brand); }
.drawer-sub a .ico { width: 16px; height: 16px; color: var(--c-brand); flex-shrink: 0; }
.drawer-foot {
    padding: 16px 20px; border-top: 1px solid var(--c-border-soft); background: var(--c-bg-soft);
    display: flex; flex-direction: column; gap: 10px;
}
.drawer-foot a { text-align: center; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.drawer-foot .login { color: var(--c-ink); background: #fff; border: 1px solid var(--c-border); }
.drawer-foot .login:hover { border-color: var(--c-border-strong); }
.drawer-foot .cta { color: #fff; background: var(--c-ink); }
.drawer-foot .cta:hover { background: #000; }

/* canonical light footer (replaces dark .seo-footer) */
footer.bottom {
    padding: 40px 20px 60px; background: var(--c-bg-soft);
    border-top: 1px solid var(--c-border-soft); font-size: 13px; color: var(--c-ink-l);
}
footer.bottom .footer-inner { max-width: 1024px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; text-align: left; }
footer.bottom .footer-brand { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--c-ink); }
footer.bottom .footer-brand span { color: var(--c-brand); }
footer.bottom .footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
footer.bottom .footer-links a { color: var(--c-ink-l); }
footer.bottom .footer-links a:hover { color: var(--c-ink); }
footer.bottom .footer-meta { font-size: 12px; color: var(--c-ink-ll); }
@media (min-width: 640px) {
    footer.bottom .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* HEARTBEAT-NAVFIX */@media (min-width:768px){.nav-burger{display:none !important}}
