/* Belegtool Landingpage. Keine externen Schriften, keine Tracker. */

:root {
  --ink: #0b0b12;
  --ink-2: #2a2a35;
  --muted: #5d5d6b;
  --subtle: #9a9aa6;
  --paper: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f2f2ee;
  --line: rgba(11, 11, 18, .09);
  --line-2: rgba(11, 11, 18, .16);

  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --primary-fill: #4f46e5;
  --primary-soft: rgba(79, 70, 229, .09);
  --lime: #d4f53c;
  --lime-ink: #1d2400;
  --ok: #15803d;
  --ok-soft: #e8f8ee;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;

  --dark: #0b0b12;
  --dark-2: #15151f;
  --dark-line: rgba(255, 255, 255, .1);
  --on-dark: #f4f4f6;
  --on-dark-muted: #a3a3b2;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(11, 11, 18, .06);
  --shadow-md: 0 8px 24px -8px rgba(11, 11, 18, .14), 0 2px 6px -2px rgba(11, 11, 18, .06);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, .28), 0 10px 20px -10px rgba(11, 11, 18, .12);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4f4f6;
    --ink-2: #d6d6de;
    --muted: #a3a3b2;
    --subtle: #6f6f7d;
    --paper: #0b0b10;
    --surface: #15151c;
    --surface-2: #1c1c25;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .18);
    --primary: #8b84ff;
    --primary-2: #b18cff;
    --primary-fill: #5b52f0;
    --primary-soft: rgba(139, 132, 255, .14);
    --ok-soft: #12301d;
    --ok: #4ade80;
    --warn: #fbbf24;
    --warn-soft: #3a2a0a;
    --danger: #f87171;
    --danger-soft: #3c1414;
    --dark: #050508;
    --dark-2: #101018;
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typo ---------- */

h1, h2, h3, h4 {
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7.4vw, 5.9rem); letter-spacing: -0.05em; line-height: .98; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.2; }
p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}

.grad {
  background: linear-gradient(100deg, var(--primary) 0%, var(--primary-2) 60%, #db2777 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.mark {
  position: relative; white-space: nowrap; z-index: 0;
}
.mark::after {
  content: ""; position: absolute; z-index: -1;
  left: -.06em; right: -.06em; bottom: .06em; height: .32em;
  background: var(--lime); border-radius: .1em;
  transform: skewX(-8deg) rotate(-1deg);
}

.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin: 12px 0 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { --bg: var(--primary-fill); --fg: #fff; box-shadow: 0 10px 30px -10px rgba(79, 70, 229, .65); }
.btn-lime { --bg: var(--lime); --fg: var(--lime-ink); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .94rem; }
.btn-block { width: 100%; }

.on-dark .btn-ghost { --fg: var(--on-dark); border-color: var(--dark-line); }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, .06); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.04em;
  text-decoration: none;
}
.logo img { width: 34px; height: 34px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .login { font-weight: 600; text-decoration: none; padding: 8px 12px; color: var(--muted); font-size: .96rem; }
.header-cta .login:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface);
  cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .2s ease, background .2s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav, .header-cta .login, .header-cta .btn { display: none; }
  .menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: fixed; inset: var(--header-h) 0 auto 0;
    padding: 16px var(--gutter) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .menu-open .nav a { padding: 14px 16px; font-size: 1.1rem; }
  .nav .nav-mobile-only { display: flex; }
}
.nav .nav-mobile-only { display: none; }
@media (max-width: 920px) {
  .menu-open .nav .nav-mobile-only { display: flex; margin-top: 8px; }
  .menu-open .nav .nav-mobile-only.btn { color: #fff; background: var(--primary-fill); justify-content: center; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -15%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(212, 245, 60, .22), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin: 20px 0 24px; }
.hero .lead { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  list-style: none; color: var(--muted); font-size: .92rem; font-weight: 500;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--ok); flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; box-shadow: var(--shadow-sm);
}
.pill b {
  background: var(--lime); color: var(--lime-ink);
  padding: 3px 10px; border-radius: 999px; font-size: .76rem; letter-spacing: .02em;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Hero-Demo: Beleg -> Werte ---------- */

.demo {
  position: relative;
  min-height: 520px;
  perspective: 1400px;
}
.demo-phone {
  position: relative; z-index: 2;
  width: min(330px, 82%); margin-left: 4%;
  background: var(--dark); border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  transform: rotate(-4deg);
}
.demo-screen {
  background: var(--surface); border-radius: 33px; overflow: hidden;
  padding: 18px 16px 20px; min-height: 480px;
  position: relative;
}
.demo-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; padding: 0 4px;
}
.demo-bar i { width: 84px; height: 22px; background: var(--dark); border-radius: 999px; display: block; }
.demo-title { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; margin-bottom: 12px; padding: 0 4px; }

.receipt {
  position: relative;
  background: #fffef8; color: #222;
  border-radius: 12px 12px 0 0;
  padding: 14px 16px 22px;
  font-family: var(--mono); font-size: .72rem; line-height: 1.55;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 6px 18px -8px rgba(0, 0, 0, .25);
  overflow: hidden;
  --zigzag: linear-gradient(135deg, transparent 6px, #fffef8 0) 0 0/12px 12px repeat-x, linear-gradient(225deg, transparent 6px, #fffef8 0) 0 0/12px 12px repeat-x;
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 12px;
  background: linear-gradient(135deg, #fffef8 6px, transparent 0) 0 0/12px 12px repeat-x,
              linear-gradient(225deg, #fffef8 6px, transparent 0) 0 0/12px 12px repeat-x;
}
.receipt .r-head { text-align: center; font-weight: 700; font-size: .8rem; margin-bottom: 6px; }
.receipt .r-sub { text-align: center; color: #888; margin-bottom: 8px; }
.receipt .r-row { display: flex; justify-content: space-between; }
.receipt .r-sep { border-top: 1px dashed #bbb; margin: 6px 0; }
.receipt .r-sum { font-weight: 700; font-size: .82rem; }
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 46px;
  background: linear-gradient(180deg, transparent, rgba(79, 70, 229, .28), transparent);
  border-bottom: 2px solid var(--primary);
  animation: scan 2.4s ease-in-out infinite;
  opacity: 0;
}

.fields { display: grid; gap: 8px; margin-top: 16px; }
.field {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 12px;
  background: var(--surface-2); font-size: .82rem;
  opacity: 0; transform: translateY(8px);
}
.field span { color: var(--muted); }
.field b { font-weight: 700; font-variant-numeric: tabular-nums; }
.field.ai b::after {
  content: "KI"; margin-left: 6px; font-size: .62rem; font-weight: 800;
  padding: 2px 5px; border-radius: 5px; background: var(--primary-soft); color: var(--primary);
}
.confirm {
  margin-top: 12px; width: 100%; min-height: 44px; border-radius: 12px; border: 0;
  background: var(--primary-fill); color: #fff; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(8px);
}

.float-card {
  position: absolute; z-index: 3;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 14px 16px; font-size: .86rem;
}
.float-elster { right: 0; top: 18%; width: min(270px, 62%); transform: rotate(3deg); }
.float-elster .fe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.float-elster .fe-head b { font-size: .92rem; letter-spacing: -0.01em; }
.float-elster .fe-tag { font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.fe-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.fe-row span { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.fe-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fe-copy {
  font-size: .7rem; font-weight: 700; padding: 4px 8px; border-radius: 8px;
  background: var(--primary-soft); color: var(--primary); white-space: nowrap;
}

.float-due { right: 6%; bottom: 4%; display: flex; align-items: center; gap: 12px; transform: rotate(-2deg); }
.float-due .due-num {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--lime); color: var(--lime-ink);
  display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; line-height: 1;
}
.float-due small { display: block; color: var(--muted); font-size: .76rem; }

.toast {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 12px);
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 9px 16px; font-size: .8rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  opacity: 0;
}
.toast svg { width: 16px; height: 16px; color: var(--lime); }

/* Ablauf in Schleife: 8 s */
.demo.play .scan { animation: scan 8s ease-in-out infinite; }
.demo.play .field { animation: field-in 8s ease infinite; }
.demo.play .field:nth-child(1) { animation-delay: .0s; }
.demo.play .field:nth-child(2) { animation-delay: .15s; }
.demo.play .field:nth-child(3) { animation-delay: .3s; }
.demo.play .field:nth-child(4) { animation-delay: .45s; }
.demo.play .confirm { animation: confirm-in 8s ease infinite; }
.demo.play .toast { animation: toast-in 8s ease infinite; }
.demo.play .float-elster { animation: float 7s ease-in-out infinite; }
.demo.play .float-due { animation: float 6s ease-in-out -2s infinite; }

@keyframes scan {
  0% { top: -46px; opacity: 0; }
  4% { opacity: 1; }
  22% { top: calc(100% - 10px); opacity: 1; }
  26%, 100% { top: calc(100% - 10px); opacity: 0; }
}
@keyframes field-in {
  0%, 24% { opacity: 0; transform: translateY(8px); }
  30%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}
@keyframes confirm-in {
  0%, 38% { opacity: 0; transform: translateY(8px); }
  44%, 92% { opacity: 1; transform: translateY(0); }
  52% { background: var(--primary-fill); }
  56%, 92% { background: var(--ok); }
  100% { opacity: 0; }
}
@keyframes toast-in {
  0%, 56% { opacity: 0; transform: translate(-50%, 12px); }
  60%, 86% { opacity: 1; transform: translate(-50%, 0); }
  92%, 100% { opacity: 0; transform: translate(-50%, 0); }
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* Ohne JS oder bei reduzierter Bewegung: Endzustand zeigen */
.demo:not(.play) .field, .demo:not(.play) .confirm { opacity: 1; transform: none; }
.demo:not(.play) .confirm { background: var(--ok); }

@media (max-width: 960px) {
  .demo { min-height: 0; padding-bottom: 40px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .demo-phone { width: 86%; margin-left: 0; transform: rotate(-2deg); }
  .float-elster { width: 58%; top: 8%; right: -2%; padding: 10px 12px; }
  .float-elster .fe-row:nth-of-type(3) { display: none; }
  .float-due { right: -2%; bottom: 0; }
}

/* ---------- Laufband ---------- */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden; padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 40px; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 40px;
  font-weight: 700; font-size: 1.05rem; color: var(--muted); white-space: nowrap; letter-spacing: -0.01em;
}
.marquee-track span::after { content: "✦"; color: var(--primary); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problem ---------- */

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain {
  padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.pain .emoji { font-size: 2rem; line-height: 1; margin-bottom: 16px; display: block; }
.pain h3 { margin-bottom: 8px; }
.pain p { color: var(--muted); }
.pain s { color: var(--subtle); }
.pain-answer {
  margin-top: 24px; padding: 28px 32px; border-radius: var(--r-lg);
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.pain-answer p { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.pain-answer p em { font-style: normal; color: var(--lime); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pain-answer { background: var(--surface-2); color: var(--ink); }
}
@media (max-width: 860px) { .pain-grid { grid-template-columns: 1fr; } }

/* ---------- Schritte ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 32px 28px 28px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; right: 18px; top: -18px;
  font-size: 9rem; font-weight: 900; line-height: 1; letter-spacing: -0.06em;
  color: var(--surface-2);
  z-index: 0;
}
.step > * { position: relative; z-index: 1; }
.step .icon { margin-bottom: 20px; }
.step h3 { margin-bottom: 8px; font-size: 1.5rem; }
.step p { color: var(--muted); }
.step .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip {
  font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.icon svg { width: 26px; height: 26px; }
.icon.lime { background: var(--lime); color: var(--lime-ink); }
.icon.dark { background: var(--ink); color: var(--paper); }

/* ---------- Bento ---------- */

.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(0, auto);
}
.tile {
  position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.tile h3 { font-size: 1.45rem; }
.tile p { color: var(--muted); }
.tile .tile-visual { margin-top: auto; padding-top: 20px; }
.t-4 { grid-column: span 4; }
.t-3 { grid-column: span 3; }
.t-2 { grid-column: span 2; }
.tile.dark { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.tile.dark p { color: var(--on-dark-muted); }
.tile.accent { background: linear-gradient(140deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; }
.tile.accent p { color: rgba(255, 255, 255, .82); }
.tile.limey { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.tile.limey p { color: rgba(29, 36, 0, .75); }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-4, .t-3 { grid-column: span 2; }
  .t-2 { grid-column: span 1; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .t-4, .t-3, .t-2 { grid-column: span 1; }
}

/* Mini-Visuals in den Kacheln */
.mini-invoice {
  background: #fff; color: #1a1a22; border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); font-size: .78rem;
  max-width: 360px;
}
.mini-invoice .mi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mini-invoice .mi-logo { font-weight: 900; letter-spacing: -0.04em; font-size: .95rem; }
.mini-invoice .mi-badge { font-size: .64rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #eef2ff; color: #4f46e5; }
.mini-invoice .mi-row { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid #eee; }
.mini-invoice .mi-row b { font-variant-numeric: tabular-nums; }
.mini-invoice .mi-total { font-weight: 800; font-size: .9rem; border-top: 2px solid #1a1a22; margin-top: 4px; padding-top: 8px; }

.mini-values { display: grid; gap: 8px; }
.mini-values div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 14px;
  font-size: .86rem;
}
.mini-values b { font-variant-numeric: tabular-nums; }
.mini-values em {
  font-style: normal; font-size: .7rem; font-weight: 800;
  padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .2);
}

.mini-due { display: flex; gap: 8px; }
.mini-due div {
  flex: 1; background: rgba(29, 36, 0, .08); border-radius: 14px; padding: 10px 8px; text-align: center;
}
.mini-due b { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; }
.mini-due small { font-size: .72rem; font-weight: 600; }

.mini-bank { display: grid; gap: 8px; font-size: .82rem; }
.mini-bank div {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--surface-2);
}
.mini-bank .match { background: var(--ok-soft); }
.mini-bank .match b { color: var(--ok); }
.tile.dark .mini-bank div { background: rgba(255, 255, 255, .07); }
.tile.dark .mini-bank .match { background: rgba(74, 222, 128, .14); }
.tile.dark .mini-bank .match b { color: #4ade80; }

.mini-lock { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.mini-lock code { background: var(--surface-2); padding: 6px 10px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tile-link {
  margin-top: 6px; font-weight: 700; text-decoration: none; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.tile-link:hover { text-decoration: underline; }

/* ---------- Manifest (dunkel) ---------- */

.manifest {
  background: var(--dark); color: var(--on-dark);
  position: relative; overflow: hidden;
}
.manifest::before {
  content: ""; position: absolute; inset: auto -10% -40% auto;
  width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .35), transparent 70%);
}
.manifest .wrap { position: relative; }
.manifest .big {
  font-size: clamp(3.2rem, 11vw, 9.5rem); line-height: .9; letter-spacing: -0.06em; font-weight: 900;
  margin: 16px 0 32px;
}
.manifest .big span { color: var(--lime); }
.manifest .eyebrow { color: var(--lime); }
.manifest-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.manifest p.lead { color: var(--on-dark-muted); }
.nope-list { list-style: none; display: grid; gap: 10px; }
.nope-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.1rem; font-weight: 600;
  padding: 14px 18px; border-radius: 14px; border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, .03);
}
.nope-list li s { color: var(--on-dark-muted); text-decoration-thickness: 2px; text-decoration-color: #f43f5e; }
.nope-list li.yes { border-color: rgba(212, 245, 60, .35); background: rgba(212, 245, 60, .07); }
.nope-list .x { color: #f43f5e; font-weight: 900; width: 20px; text-align: center; }
.nope-list .v { color: var(--lime); font-weight: 900; width: 20px; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--dark-line); padding-top: 40px; }
.stat b { display: block; font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.stat span { color: var(--on-dark-muted); font-weight: 500; }
@media (max-width: 860px) {
  .manifest-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Zielgruppe ---------- */

.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.who {
  padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.who .emoji { font-size: 2.2rem; line-height: 1; margin-bottom: 18px; display: block; }
.who h3 { margin-bottom: 6px; }
.who p { color: var(--muted); font-size: .96rem; }
@media (max-width: 980px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .who-grid { grid-template-columns: 1fr; } }

/* ---------- Vertrauen ---------- */

.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trust {
  display: flex; gap: 18px; padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.trust .icon { flex: none; }
.trust h3 { margin-bottom: 6px; }
.trust p { color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Preise ---------- */

.billing-toggle {
  display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  margin: 0 auto 36px;
}
.billing-toggle button {
  border: 0; background: transparent; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.billing-toggle .save { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); }
.toggle-row { text-align: center; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; justify-content: center; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px 30px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
}
.plan.featured {
  background: var(--dark); color: var(--on-dark); border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.plan.featured .plan-desc, .plan.featured .plan-note, .plan.featured .per { color: var(--on-dark-muted); }
.plan-badge {
  position: absolute; top: -13px; left: 30px;
  background: var(--lime); color: var(--lime-ink);
  font-size: .78rem; font-weight: 800; padding: 5px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.35rem; }
.plan-desc { color: var(--muted); margin: 6px 0 22px; font-size: .98rem; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.price .amount { font-size: clamp(3rem, 6vw, 4rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.price .per { color: var(--muted); font-weight: 600; }
.plan-note { color: var(--muted); font-size: .88rem; min-height: 1.5em; margin-bottom: 24px; }
.plan ul { list-style: none; display: grid; gap: 11px; margin: 0 0 28px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ok); }
.plan.featured li svg { color: var(--lime); }
.plan .btn { margin-top: auto; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

.compare {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch;
}
.compare > div { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.compare .them { background: var(--surface-2); }
.compare .them .big-num { color: var(--subtle); text-decoration: line-through; text-decoration-thickness: 3px; }
.compare .us { border: 2px solid var(--primary); }
.compare .big-num { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; margin: 8px 0; }
.compare p { color: var(--muted); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

.beta-box {
  margin-top: 16px; padding: 24px 28px; border-radius: var(--r-lg);
  background: var(--lime); color: var(--lime-ink);
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.beta-box h3 { margin-bottom: 4px; }
.beta-box .btn { --bg: var(--lime-ink); --fg: var(--lime); }

/* ---------- Tabelle ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
table.features { width: 100%; border-collapse: collapse; min-width: 520px; }
table.features th, table.features td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
table.features thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
table.features td:not(:first-child), table.features th:not(:first-child) { text-align: center; width: 22%; }
table.features tr:last-child td { border-bottom: 0; }
table.features .yes { color: var(--ok); font-weight: 800; }
table.features .no { color: var(--subtle); }
table.features .group td { background: var(--surface-2); font-weight: 800; font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details {
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5d6b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: var(--primary); }
.faq-group { margin-bottom: 48px; }
.faq-group > h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 18px; max-width: 860px; margin-left: auto; margin-right: auto; }

/* ---------- Abschluss-CTA ---------- */

.cta-final { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 120px); }
.cta-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 55%, #7c3aed 100%);
  color: #fff; text-align: center;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
}
.cta-card::before {
  content: ""; position: absolute; inset: -40% auto auto -10%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(212, 245, 60, .35), transparent 70%);
}
.cta-card > * { position: relative; }
.cta-card h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); margin-bottom: 18px; }
.cta-card p { color: rgba(255, 255, 255, .82); font-size: 1.15rem; max-width: 34em; margin: 0 auto 32px; }
.cta-card .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-card .btn-ghost { --fg: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-card .btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Unterseiten-Kopf ---------- */

.page-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -10%; top: -40%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .14), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin: 14px 0 20px; }

/* ---------- Funktionen-Seite ---------- */

.subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  text-decoration: none; color: var(--muted); border: 1px solid transparent;
}
.subnav a:hover { color: var(--ink); background: var(--surface); border-color: var(--line); }
.subnav a.active { color: var(--ink); background: var(--surface); border-color: var(--line-2); }

.fgroup { padding: clamp(56px, 8vw, 96px) 0 0; }
.fgroup:last-of-type { padding-bottom: clamp(56px, 8vw, 96px); }
.fgroup-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 28px; }
.fgroup-head .icon { width: 64px; height: 64px; border-radius: 20px; }
.fgroup-head .icon svg { width: 30px; height: 30px; }
.fgroup-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.fgroup-head p { color: var(--muted); margin-top: 4px; }

.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat {
  padding: 22px 22px 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feat h3 { font-size: 1.08rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feat p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.feat.soon { background: transparent; border-style: dashed; }
@media (max-width: 980px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fgrid { grid-template-columns: 1fr; } }

.badge {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 999px; vertical-align: middle;
  background: var(--primary-soft); color: var(--primary);
}
.badge.beta { background: var(--warn-soft); color: var(--warn); }
.badge.soon { background: var(--surface-2); color: var(--muted); }
.badge.new { background: var(--lime); color: var(--lime-ink); }

/* ---------- Rechtstexte ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p, .prose ul { color: var(--ink-2); margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--primary); }
.todo {
  background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 1px 6px; font-weight: 600;
}
.note {
  padding: 16px 20px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  margin: 20px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px; background: var(--surface);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.footer-grid a:hover { color: var(--primary); }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 30em; font-size: .95rem; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .88rem;
}
.footer-bottom .disclaimer { max-width: 62em; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Einblenden beim Scrollen ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font-size: clamp(6rem, 20vw, 12rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; }

.center { text-align: center; }
.mt-l { margin-top: 40px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icon-Größen in Fließtext und Knöpfen */
.tile-link svg, .confirm svg { width: 18px; height: 18px; flex: none; }
.mini-lock svg { width: 28px; height: 28px; flex: none; color: var(--ok); }

.mini-profit { display: grid; gap: 8px; font-size: .9rem; }
.mini-profit div { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.mini-profit b { font-variant-numeric: tabular-nums; }
.mini-profit .gewinn { background: var(--ink); color: var(--paper); font-weight: 800; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark::after { opacity: .4; }
}

.who .tile-link { margin-top: 14px; font-size: .92rem; }
.note a { color: var(--primary); }

/* Handy: Demo-Knopf bleibt nach dem ersten Bildschirm unten sichtbar */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-cta.sichtbar { transform: none; }
  .site-footer { padding-bottom: 110px; }
}

table.features.timeline td:first-child { width: 26%; white-space: nowrap; }
table.features.timeline td:not(:first-child), table.features.timeline th:not(:first-child) { text-align: left; width: auto; }
@media (max-width: 560px) { table.features.timeline { min-width: 0; } table.features.timeline td:first-child { white-space: normal; } }

/* Gründer */
.founder {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
}
.founder-avatar {
  width: clamp(72px, 10vw, 120px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--primary), var(--primary-2)); color: #fff;
  font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -0.04em;
}
.founder blockquote { margin: 12px 0 18px; }
.founder blockquote p { color: var(--muted); font-size: 1.05rem; max-width: 46em; }
.founder blockquote p + p { margin-top: 10px; }
.founder .founder-quote { color: var(--ink); font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px; }
.founder figcaption { color: var(--muted); font-size: .95rem; }
.founder figcaption b { color: var(--ink); }
.founder figcaption a { color: var(--primary); }
@media (max-width: 620px) { .founder { grid-template-columns: 1fr; } }

/* Warteliste */
.wl-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .wl-grid { grid-template-columns: 1fr; } }
.wl-form {
  display: grid; gap: 16px; padding: clamp(24px, 4vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.wl-feld { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.wl-feld small { color: var(--muted); font-weight: 500; }
.wl-feld input {
  font: inherit; font-weight: 500; min-height: 52px; padding: 0 16px;
  border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink);
}
.wl-feld input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.wl-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.wl-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.wl-check a { color: var(--primary); }
.wl-honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-fehler { padding: 12px 16px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: .92rem; }
.wl-ok { padding: 18px 20px; border-radius: 16px; background: var(--ok-soft); }
.wl-ok b { font-size: 1.15rem; }
.wl-ok p { color: var(--ink-2); margin-top: 4px; }
.wl-ok a { color: var(--primary); }
.wl-form.fertig > :not(.wl-ok) { display: none; }

/* Rechnungen */
.re-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 960px) { .re-hero { grid-template-columns: 1fr; } }
.re-doc {
  position: relative; background: #fff; color: #1a1a22; border-radius: 20px;
  padding: clamp(20px, 3vw, 32px); font-size: .82rem; box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg); max-width: 520px; justify-self: center; width: 100%;
}
.re-doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.re-logo { font-weight: 900; font-size: 1.2rem; letter-spacing: -0.04em; }
.re-doc small { color: #777; display: block; font-size: .72rem; }
.re-meta { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-bottom: 16px; }
.re-meta b { display: block; font-size: .9rem; }
.re-meta span { color: #555; font-size: .74rem; }
.re-meta-r { text-align: right; }
.re-rows { border-top: 2px solid #1a1a22; }
.re-row { display: grid; grid-template-columns: 1fr 60px 90px; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eee; }
.re-row b, .re-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.re-row span:nth-child(2) { color: #777; text-align: right; }
.re-head { color: #777; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.re-sum { font-weight: 900; font-size: .95rem; border-bottom: 0; }
.re-pay { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 12px; border-radius: 12px; background: #f4f4f0; }
.re-pay b { display: block; font-size: .86rem; }
.re-pay span { color: #555; font-size: .74rem; line-height: 1.4; display: block; }
.deko-qr { width: 76px; height: 76px; flex: none; border-radius: 6px; }
.re-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: .8rem;
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-md); white-space: nowrap;
}
.re-chip svg { width: 16px; height: 16px; color: var(--lime); }
.re-chip-1 { top: -16px; right: 18px; transform: rotate(-2deg); }
.re-chip-2 { bottom: -16px; left: 18px; transform: rotate(-1deg); background: var(--lime); color: var(--lime-ink); }
.re-chip-2 svg { color: var(--lime-ink); }
.js .re-chip { animation: float 6s ease-in-out infinite; }
.re-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: x; }
.re-step { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); position: relative; }
.re-step span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: var(--primary-fill); color: #fff; font-weight: 900;
}
.re-step:nth-child(4) span { background: var(--lime); color: var(--lime-ink); }
.re-step h3 { margin-bottom: 6px; }
.re-step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .re-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .re-steps { grid-template-columns: 1fr; } .re-doc { transform: none; } .re-row { grid-template-columns: 1fr 44px 80px; } }
.re-group { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin: 36px 0 14px; }
.re-group:first-of-type { margin-top: 0; }

/* Startseite: Rechnungs-Spotlight */
.spot { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 960px) { .spot { grid-template-columns: 1fr; } }
.spot-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 24px 0 28px; }
.spot-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .98rem; }
.spot-list svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 2px; }
@media (max-width: 520px) { .spot-list { grid-template-columns: 1fr; } }
.re-doc .mi-badge { font-size: .64rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #eef2ff; color: #4f46e5; white-space: nowrap; }
.re-row b { white-space: nowrap; }
@media (max-width: 520px) { .re-doc { font-size: .76rem; padding: 18px; } .re-row { grid-template-columns: 1fr 38px 84px; } .re-meta { grid-template-columns: 1fr; } .re-meta-r { text-align: left; } }

/* Styleguide-Seite */
.sg-h { font-size: clamp(1.4rem, 3vw, 2rem); margin: 56px 0 18px; }
.sg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .sg-grid { grid-template-columns: repeat(2, 1fr); } }
.sg-sw { padding: 10px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; font-size: .82rem; }
.sg-chip { height: 72px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; }
.sg-sw span { font-family: var(--mono); color: var(--muted); font-size: .74rem; }
.sg-sw small { color: var(--muted); }
.sg-gradient { margin-top: 12px; height: 72px; border-radius: var(--r-md); display: flex; align-items: flex-end; padding: 12px 14px; color: #fff; font-weight: 700; font-size: .85rem; background: linear-gradient(100deg, #4f46e5, #7c3aed 60%, #db2777); }
.sg-rule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sg-rule div { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sg-rule div:nth-child(2) { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.sg-rule div:nth-child(3) { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.sg-rule b { display: block; font-size: 2.4rem; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.sg-rule span { font-size: .9rem; }
@media (max-width: 700px) { .sg-rule { grid-template-columns: 1fr; } }
.sg-pairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 900px) { .sg-pairs { grid-template-columns: repeat(2, 1fr); } }
.sg-pairs div { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); font-size: 1.8rem; font-weight: 800; display: grid; gap: 4px; }
.sg-pairs small { font-size: .74rem; font-weight: 600; opacity: .9; }
.sg-no { position: relative; }
.sg-no::after { content: "✕"; position: absolute; top: 10px; right: 12px; font-size: .9rem; color: var(--danger); }
.sg-type { display: grid; gap: 18px; }
.sg-type > div { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.sg-type small { color: var(--muted); font-family: var(--mono); font-size: .74rem; display: block; margin-bottom: 6px; }
.sg-blocks { display: grid; gap: 16px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sg-dark { background: var(--dark); padding: 12px; border-radius: var(--r-md); }
.sg-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
@media (max-width: 700px) { .sg-cards { grid-template-columns: 1fr; } }
.sg-radii, .sg-shadows { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.sg-radii div { width: 96px; height: 72px; background: var(--primary-soft); border: 1.5px solid var(--primary); display: grid; place-items: center; font-weight: 800; color: var(--primary); }
.sg-shadows div { padding: 24px; border-radius: var(--r-lg); background: var(--surface); font-weight: 700; min-width: 140px; }
