/* ==========================================================================
   Billing Data – Landingpage
   Farben: Indigo #4D43E2 (primary), Navy #1A1F2E / #222838
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1A1F2E;
  --ink-2: #222838;
  --ink-3: #141824;
  --text: #374151;
  --muted: #5B6472;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --bg: #FFFFFF;
  --bg-alt: #F6F7F9;

  --primary: #4D43E2;
  --primary-600: #2A1FCF;
  --primary-50: #EEEDFC;
  --primary-100: #DFDDFA;

  --green: #15803D;
  --green-500: #22C55E;
  --green-50: #DCFCE7;
  --amber: #B45309;
  --amber-50: #FEF3C7;
  --red: #B91C1C;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / .06);
  --shadow: 0 1px 3px rgb(16 24 40 / .06), 0 8px 24px -6px rgb(16 24 40 / .10);
  --shadow-lg: 0 24px 48px -12px rgb(26 31 46 / .22);

  --container: 1160px;
  --gutter: 20px;
  --header-h: 64px;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--bar-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-600); }
strong { color: var(--ink); font-weight: 650; }
img { max-width: 100%; display: block; }
code { font-size: .85em; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em;
  background: #FFF7D6; color: #7A4B00;
  padding: 1px 6px; border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; border-radius: 999px;
  padding: .8em 1.4em; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgb(77 67 226 / .55); }
.btn-primary:hover { background: var(--primary-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .icon { width: 1.1em; height: 1.1em; }

.text-link {
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 600; color: var(--ink); text-decoration: none;
}
.text-link:hover { color: var(--primary); }
.text-link .icon { width: 1.05em; height: 1.05em; transition: transform .15s; }
.text-link:hover .icon { transform: translateY(2px); }
.text-link-strong { color: var(--primary); white-space: nowrap; }
.text-link-strong:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 30px; width: 30px; flex: none; }
.brand-product { font-weight: 750; font-size: 1.12rem; letter-spacing: -0.025em; white-space: nowrap; }
.header-cta { white-space: nowrap; }
.header-cta .label-short { display: none; }
@media (max-width: 560px) {
  .header-cta .label-long { display: none; }
  .header-cta .label-short { display: inline; }
}
@media (max-width: 420px) {
  .brand-logo { height: 26px; width: 26px; }
  .brand { gap: 8px; }
  .brand-product { font-size: 1rem; }
  .site-header .btn-sm { font-size: .82rem; padding: .55em .95em; }
}
@media (max-width: 339px) {
  .brand-product { display: none; }
}

/* Countdown-Banner unter dem Header */
.deadline-bar {
  display: grid; grid-template-rows: 0fr;
  background: var(--ink); color: #E5E7EB;
  transition: grid-template-rows .3s ease;
}
.deadline-bar.is-visible { grid-template-rows: 1fr; }
.deadline-bar-clip { overflow: hidden; min-height: 0; }
.deadline-bar-inner {
  display: flex; align-items: center; justify-content: center; gap: 8px 20px;
  padding-top: 9px; padding-bottom: 9px;
  font-size: .92rem;
}
.deadline-bar-text { margin: 0; display: inline-flex; align-items: center; gap: 9px; }
.deadline-bar-text .icon { color: #A5A0F5; flex: none; }
.deadline-bar-text strong { color: #fff; }
.deadline-bar .days {
  font-variant-numeric: tabular-nums;
  background: var(--primary); color: #fff; font-weight: 700;
  padding: 1px 8px; border-radius: 6px; margin: 0 2px;
}
.deadline-bar-link {
  color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid rgb(255 255 255 / .35);
}
.deadline-bar-link:hover { border-bottom-color: #fff; }
@media (max-width: 560px) {
  .deadline-bar-inner { font-size: .86rem; }
  .deadline-bar-text .icon { display: none; }
  .deadline-bar .date-suffix { display: none; }
  .deadline-bar-link { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgb(77 67 226 / .10), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgb(77 67 226 / .06), transparent 60%),
    #fff;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}
.hero h1 { max-width: 14ch; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text); margin-top: 22px; max-width: 58ch; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.trust-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: .92rem; color: var(--ink); font-weight: 500;
}
.trust-list li { display: inline-flex; align-items: center; gap: 7px; }
.icon-check { color: var(--green); stroke-width: 2.6; width: 1.05em; height: 1.05em; }

.countdown {
  display: inline-block; line-height: 2;
  margin-top: 28px; padding: 10px 18px;
  background: var(--ink); color: #E5E7EB;
  border-radius: 12px; font-size: 1rem;
}
.countdown strong { color: #fff; }
.countdown .days {
  font-variant-numeric: tabular-nums;
  background: var(--primary); color: #fff; font-weight: 700;
  padding: 2px 9px; border-radius: 7px; margin: 0 4px;
}

/* Hero-Visual */
.hero-visual { position: relative; max-width: 460px; width: 100%; margin: 0 auto; }
.hero-visual-bg {
  position: absolute; inset: 8% -6% -8% 8%; z-index: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #7B73F0 100%);
  border-radius: 28px; transform: rotate(3deg); opacity: .14;
}
.invoice-card {
  position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 22px 22px 18px;
  font-size: .9rem;
}
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-strong); }
.invoice-kicker { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.invoice-no { display: block; font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pill { font-size: .72rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ready { background: var(--primary-50); color: var(--primary-600); }
.pill-paid { background: var(--green-50); color: var(--green); }
.invoice-meta { margin: 14px 0 0; display: grid; gap: 8px; }
.invoice-meta div { display: flex; justify-content: space-between; gap: 12px; }
.invoice-meta dt { color: var(--muted); }
.invoice-meta dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }

.recipient {
  margin-top: 16px; padding: 14px; border-radius: 14px;
  background: var(--bg-alt); border: 1px solid var(--line);
}
.recipient-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.recipient-states { position: relative; min-height: 46px; }
.rs { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); line-height: 1.35; opacity: 0; }
.rs-missing { color: var(--amber); font-weight: 600; animation: rs-a 9s infinite; }
.rs-search { color: var(--muted); animation: rs-b 9s infinite; }
.rs-found { animation: rs-c 9s infinite; }
.rs-mail { color: var(--primary-600); font-weight: 600; word-break: break-all; }
.rs-badge { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.rs-badge-warn { background: var(--amber-50); color: var(--amber); }
.rs-badge-ok { background: var(--green); color: #fff; }
.rs-badge-ok .icon { width: 16px; height: 16px; stroke-width: 3; }
.rs-spinner { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--primary-100); border-top-color: var(--primary); animation: spin .9s linear infinite; }

.invoice-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; }
.validated { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--green); font-weight: 600; }
.validated .icon { width: 16px; height: 16px; }
.invoice-foot, .invoice-foot .pill-paid { animation: foot 9s infinite; }

@keyframes rs-a { 0%, 26% { opacity: 1; } 31%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes rs-b { 0%, 28% { opacity: 0; } 33%, 54% { opacity: 1; } 59%, 100% { opacity: 0; } }
@keyframes rs-c { 0%, 56% { opacity: 0; transform: translateY(4px); } 61%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes foot { 0%, 58% { opacity: .25; } 64%, 93% { opacity: 1; } 98%, 100% { opacity: .25; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .rs-missing, .rs-search { display: none; }
  .rs-found { opacity: 1 !important; animation: none !important; transform: none !important; }
  .invoice-foot, .invoice-foot .pill-paid { opacity: 1 !important; animation: none !important; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 960px) {
  .section { padding: 104px 0; }
  .section-tight { padding: 64px 0; }
}
.section-kicker { font-size: .85rem; font-weight: 650; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.section h2 { max-width: 22ch; }
.section-intro { font-size: 1.08rem; margin-top: 18px; max-width: 68ch; }
.fineprint { font-size: .82rem; color: var(--muted); margin-top: 24px; }

/* Cards */
.card-grid { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 760px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 18px; }
.card p { margin-top: 10px; font-size: .97rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary);
}
.card-icon .icon { width: 22px; height: 22px; }

/* Gründe */
.reason-grid {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; gap: 0; counter-reset: reason;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .reason-grid { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.reason {
  counter-increment: reason;
  display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.reason::before {
  content: counter(reason, decimal-leading-zero);
  font-weight: 700; font-size: .9rem; color: var(--primary);
  font-variant-numeric: tabular-nums; padding-top: 2px;
}
.reason strong { display: block; font-size: 1.1rem; margin-bottom: 6px; letter-spacing: -0.01em; }

/* Schritte */
.steps {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; gap: 16px; counter-reset: step;
}
.step {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.step-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; box-shadow: 0 0 0 6px var(--primary-50);
}
.step-icon .icon { width: 20px; height: 20px; }
.step-no { display: block; margin-top: 18px; font-size: .78rem; font-weight: 650; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; }
.step h4 { margin-top: 4px; font-size: 1.12rem; }
.step p { margin-top: 8px; font-size: .95rem; }
@media (max-width: 959px) {
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
  .step-icon { grid-row: span 3; }
  .step-no { margin-top: 0; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 45px; top: 74px; bottom: -17px; width: 2px;
    background: var(--primary-100);
  }
}
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; left: 80px; right: -21px; height: 2px;
    background: linear-gradient(90deg, var(--primary-100), var(--primary-100) 60%, transparent);
  }
}

/* Zahlen */
.stats { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.stat {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); border-top: 4px solid var(--primary);
}
.stat-value { display: block; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 800; color: var(--primary); letter-spacing: -0.04em; line-height: 1.05; }
.stat-value sup { font-size: .45em; top: -1.1em; margin-left: 2px; color: var(--muted); font-weight: 600; }
.stat-label { display: block; margin-top: 10px; color: var(--ink); font-weight: 500; }

/* Vergleichstabelle */
.table-wrap { margin-top: 40px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .97rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px; }
.compare thead th {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650;
  border-bottom: 1px solid var(--line-strong); padding-top: 0;
}
.compare tbody th { color: var(--ink); font-weight: 650; }
.compare tbody tr:not(.is-us) > * { border-bottom: 1px solid var(--line); }
.compare tr.is-us > * { background: var(--primary-50); color: var(--ink); }
.compare tr.is-us th { color: var(--primary-600); font-weight: 750; }
.compare tr.is-us > *:first-child { border-radius: 12px 0 0 12px; box-shadow: inset 4px 0 0 var(--primary); }
.compare tr.is-us > *:last-child { border-radius: 0 12px 12px 0; }
.compare .by { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.compare tr.is-us strong { color: var(--primary-600); }

@media (max-width: 759px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody { display: grid; gap: 12px; }
  .compare tr { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 6px 0; }
  .compare tbody tr:not(.is-us) > * { border-bottom: 0; }
  .compare th, .compare td { padding: 8px 18px; }
  .compare tbody th { font-size: 1.05rem; padding-top: 12px; }
  .compare td { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
  .compare td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; font-weight: 600; }
  .compare tr.is-us { background: var(--primary-50); border-color: var(--primary); border-width: 2px; }
  .compare tr.is-us > * { background: transparent; }
  .compare tr.is-us > *:first-child, .compare tr.is-us > *:last-child { border-radius: 0; box-shadow: none; }
}

/* Segmente */
.segments { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .segments { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .segments { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.segment {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.segment-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.segment-icon .icon { width: 21px; height: 21px; }
.segment h3 { font-size: 1.05rem; }
.segment p { margin-top: 6px; font-size: .95rem; }

/* Checkliste */
.fit-check {
  margin-top: 40px; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 22px;
}
@media (min-width: 960px) { .fit-check { grid-template-columns: 300px 1fr; gap: 40px; padding: 36px 40px; } }
.fit-check-head h3 { font-size: 1.35rem; }
.fit-check-head p { margin-top: 8px; color: var(--muted); }
.fit-list { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.fit-list label {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--ink); font-weight: 500;
  transition: background-color .15s;
}
.fit-list label:hover { background: var(--bg-alt); }
.fit-list input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; left: 12px; }
.fake-box {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--line-strong); background: #fff; display: grid; place-items: center;
  transition: background-color .15s, border-color .15s;
}
.fake-box .icon { width: 14px; height: 14px; stroke-width: 3.2; color: #fff; opacity: 0; }
.fit-list input:checked + .fake-box { background: var(--green); border-color: var(--green); }
.fit-list input:checked + .fake-box .icon { opacity: 1; }
.fit-list input:focus-visible + .fake-box { outline: 3px solid var(--primary); outline-offset: 2px; }
.fit-result {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 14px 18px; border-radius: 12px; background: var(--green-50); color: var(--green); font-weight: 650;
}

/* Partner */
.partner-box {
  display: grid; gap: 18px; align-items: center;
  padding: 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.partner-box h3 { font-size: 1.2rem; }
.partner-box p { margin-top: 8px; max-width: 70ch; }
@media (min-width: 760px) { .partner-box { grid-template-columns: auto 1fr auto; gap: 26px; padding: 30px 34px; } }

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: var(--primary-100); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 600; color: var(--ink); font-size: 1.02rem;
  border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--primary); }
.faq summary:hover { color: var(--primary-600); }
.faq details p { padding: 0 22px 20px; max-width: 70ch; }

/* ---------- Kontakt (dunkel) ---------- */
.section-dark {
  background:
    radial-gradient(900px 500px at 100% 0%, rgb(77 67 226 / .28), transparent 60%),
    var(--ink);
  color: #C9CDD6;
}
.section-dark h2 { color: #fff; }
.section-dark .section-intro { color: #C9CDD6; }
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; } }

.panel {
  margin-top: 32px; background: #fff; color: var(--text);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted);
  background: transparent; border: 0; padding: 16px 12px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab .icon { width: 18px; height: 18px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--primary-600); background: #fff; border-bottom-color: var(--primary); }
.tab:focus-visible { outline-offset: -3px; }
.tabpanel { padding: 26px 22px 28px; }
.tabpanel:focus-visible { outline-offset: -3px; }
@media (min-width: 640px) { .tabpanel { padding: 32px 34px 34px; } }

/* Formular */
.lead-form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.req { color: var(--primary); }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px;
  padding: 11px 13px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(77 67 226 / .15);
}
.field [aria-invalid="true"] { border-color: var(--red) !important; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(185 28 28 / .12) !important; }
.field-error { font-size: .84rem; color: var(--red); font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.field-check { grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); }
.field-check label { font-weight: 400; color: var(--text); font-size: .88rem; line-height: 1.5; }
.field-check .field-error { grid-column: 2; }
.form-hint { font-size: .8rem; color: var(--muted); text-align: center; }
.dev-note {
  font-size: .8rem; color: #7A4B00; background: #FFF7D6; border: 1px dashed #E8C26A;
  padding: 8px 12px; border-radius: 8px;
}

.thanks { text-align: center; padding: 40px 10px; }
.thanks:focus { outline: none; }
.thanks-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff; display: inline-grid; place-items: center; box-shadow: 0 0 0 8px var(--green-50); }
.thanks-icon .icon { width: 28px; height: 28px; stroke-width: 3; }
.thanks p { margin-top: 22px; font-size: 1.2rem; font-weight: 600; color: var(--ink); }

/* HubSpot-Embed (Raw-HTML-Modus) an das Seiten-Design angleichen */
.hs-target:empty { display: none; }
.hs-target .hs-form fieldset { max-width: none !important; }
.hs-target .hs-form .hs-form-field { margin-bottom: 16px; }
.hs-target .hs-form label { font-size: .88rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.hs-target .hs-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
  width: 100% !important; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; min-height: 46px;
}
.hs-target .hs-form .hs-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(77 67 226 / .15); }
.hs-target .hs-form .hs-error-msgs { list-style: none; padding: 0; margin: 6px 0 0; color: var(--red); font-size: .84rem; }
.hs-target .hs-form .hs-button {
  width: 100%; font: inherit; font-weight: 600; font-size: 1.05rem; color: #fff; background: var(--primary);
  border: 0; border-radius: 999px; padding: .95em 1.6em; cursor: pointer;
}
.hs-target .hs-form .hs-button:hover { background: var(--primary-600); }
.hs-target .submitted-message { text-align: center; padding: 32px 10px; font-size: 1.15rem; font-weight: 600; color: var(--ink); }

/* Kalender */
.cal-gate { text-align: center; padding: 18px 4px; display: grid; justify-items: center; gap: 12px; }
.cal-gate h3 { font-size: 1.25rem; margin-top: 6px; }
.cal-gate p { max-width: 52ch; font-size: .95rem; }
.cal-gate .btn { margin-top: 6px; }
.cal-target { min-height: 640px; }
.cal-target .meetings-iframe-container iframe { width: 100%; }
.cal-placeholder { text-align: center; padding: 40px 10px; display: grid; gap: 10px; justify-items: center; }

/* Kontaktkarte */
.contact-card {
  background: var(--ink-2); border: 1px solid rgb(255 255 255 / .08);
  border-radius: 18px; padding: 26px; color: #C9CDD6;
}
@media (min-width: 1000px) { .contact-card { margin-top: 150px; position: sticky; top: calc(var(--header-h) + var(--bar-h) + 24px); transition: top .3s ease; } }
.contact-person { display: flex; align-items: center; gap: 16px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-initials {
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), #7B73F0);
  box-shadow: 0 0 0 4px rgb(77 67 226 / .25);
}
.contact-name { color: #fff; font-weight: 700; font-size: 1.1rem; }
.contact-role { font-size: .88rem; color: #A8AEBB; }
.contact-lines { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; font-size: .95rem; }
.contact-lines li { display: flex; align-items: center; gap: 12px; }
.contact-lines .icon { width: 18px; height: 18px; color: #8F88F5; }
.contact-lines a { color: #fff; text-decoration: none; }
.contact-lines a:hover { color: #B7B2FA; text-decoration: underline; }
.contact-card .btn-ghost { color: #fff; border-color: rgb(255 255 255 / .25); text-align: center; flex-wrap: wrap; gap: 0 .35em; }
.contact-card .btn-ghost:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / .06); }
.section-dark :focus-visible { outline-color: #B7B2FA; }
.section-dark .panel :focus-visible { outline-color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: #A8AEBB; padding: 36px 0 32px; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.footer-brand img { height: 24px; width: 24px; }
.footer-brand strong { color: #fff; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: #D7DAE2; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-top: 20px; font-size: .8rem; color: #8A91A0; }
.site-footer :focus-visible { outline-color: #B7B2FA; }
.footer-navs { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.footer-nav-label { color: #8A91A0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-right: 4px; }
.footer-nav { flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }

/* =====================================================================
   Wissensseiten (/e-rechnung/…)
   ===================================================================== */
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav-link { color: var(--ink); font-weight: 550; font-size: .95rem; text-decoration: none; }
.header-nav-link:hover, .header-nav-link[aria-current="page"] { color: var(--primary); }
@media (max-width: 640px) { .header-nav-link { display: none; } }

.article-hero {
  padding: 40px 0 44px;
  background:
    radial-gradient(900px 420px at 90% -20%, rgb(77 67 226 / .09), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 960px) { .article-hero { padding: 56px 0 60px; } }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.article-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); max-width: 22ch; }
.article-hero .lead { max-width: 62ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.article-meta li { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .icon { width: 1em; height: 1em; color: var(--primary); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 0 72px; }
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 64px 0 96px; }
}
.toc { font-size: .9rem; }
.toc-inner { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
@media (min-width: 1000px) {
  .toc-inner { position: sticky; top: calc(var(--header-h) + var(--bar-h) + 24px); border: 0; padding: 0; background: none; transition: top .3s ease; }
}
.toc-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--text); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--primary); border-left-color: var(--primary); }

.prose { max-width: 72ch; font-size: 1.04rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); margin-top: 2.4em; scroll-margin-top: calc(var(--header-h) + var(--bar-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--primary-600); text-underline-offset: 2px; }
.prose a:hover { color: var(--primary); }
.prose strong { color: var(--ink); }
.prose .fineprint { margin-top: .6em; }

.summary-box { background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius); padding: 22px 24px; }
.summary-box h2 { font-size: 1.05rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.summary-box ul { margin: 0; padding-left: 1.2em; }

.law-quote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); color: var(--ink); font-style: normal; }
.law-quote p { margin: 0; }
.law-quote cite { display: block; margin-top: 6px; font-size: .88rem; color: var(--muted); font-style: normal; }

.callout { border-radius: var(--radius-sm); padding: 16px 18px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .97rem; }
.callout strong:first-child { display: block; margin-bottom: 4px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.5; min-width: 520px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { color: var(--ink); font-weight: 650; }

.timeline { list-style: none; padding: 0 !important; margin-top: 1.4em; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--primary-100); }
.timeline > li { position: relative; padding-left: 36px; }
.timeline > li + li { margin-top: 1.4em; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline-date { display: block; font-weight: 700; color: var(--primary-600); font-size: .92rem; letter-spacing: .01em; }
.timeline h3 { margin: 2px 0 4px; }
.timeline p { margin: 0; }

.glossary { display: grid; gap: 0; margin: 1.2em 0 0; }
.glossary dt { font-weight: 700; color: var(--ink); padding-top: 14px; border-top: 1px solid var(--line); }
.glossary dt:first-child { border-top: 0; padding-top: 0; }
.glossary dd { margin: 4px 0 14px; }

.faq-inline { margin-top: 1em; }

.sources { font-size: .92rem; }
.sources ul { padding-left: 1.2em; }
.disclaimer { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2.4em !important; }

.cta-box {
  margin-top: 2.6em !important; padding: 28px; border-radius: var(--radius);
  background: var(--ink); color: #D7DAE2;
  display: grid; gap: 16px; align-items: center;
}
@media (min-width: 700px) { .cta-box { grid-template-columns: 1fr auto; padding: 32px 36px; } }
.cta-box h2 { color: #fff; font-size: 1.35rem; margin: 0 0 6px !important; }
.cta-box p { margin: 0; line-height: 1.55; }
.cta-box .btn { white-space: nowrap; }

.related { padding: 0 0 88px; }
.related h2 { font-size: 1.4rem; margin-bottom: 20px; }
.related-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .related-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.related-card { display: block; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.related-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.related-card h3 { margin-bottom: 6px; }
.related-card p { margin: 0; font-size: .95rem; }
.related-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--primary); font-weight: 600; font-size: .92rem; }

/* Startseite: Wissens-Teaser */
.knowledge-grid { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 860px) { .knowledge-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.faq details p a { color: var(--primary-600); text-underline-offset: 2px; white-space: nowrap; }
.related-card h3 { margin-top: 0; }

/* Rechtliche Hinweise / Rechtsseiten */
.callout-legal { background: #FFF8EB; border-color: #F5DDB0; }
.article-hero-slim { padding: 32px 0 30px; }
@media (min-width: 960px) { .article-hero-slim { padding: 44px 0 40px; } }
.legal-layout { padding: 44px var(--gutter) 88px; }
.legal-layout .prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.footer-nav a[aria-current="page"] { color: #fff; }
.knowledge-note { margin-top: 14px; }
