/* ==========================================================================
   Firmenkunden – seitenspezifisch: animierte Muster-Sammelrechnung + Formular
   Ohne JS und bei reduzierter Bewegung ist alles statisch sichtbar.
   ========================================================================== */

/* ---------- Hero-Ergaenzung ---------- */
.page-firmenkunden .page-hero .hero__badges { margin-top: 4px; }

/* ---------- Muster-Sammelrechnung ---------- */
.invoice-wrap { position: relative; }
.invoice-wrap::before {
  content: ''; position: absolute; inset: 8% 0 -6% 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,106,.16), transparent 65%); pointer-events: none;
}
.invoice {
  position: relative; overflow: hidden; isolation: isolate; margin: 0;
  padding: clamp(20px, 3vw, 36px); border-radius: var(--radius);
  background: var(--paper); color: var(--text-on-paper);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
  font-size: 14px; line-height: 1.45;
}
.invoice__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--paper-line); }
.invoice__brand { display: grid; gap: 4px; }
.invoice__brand b { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.invoice__title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.invoice__meta { display: grid; gap: 2px; font-size: 12.5px; color: var(--muted-on-paper); text-align: right; }
.invoice__meta b { color: var(--text-on-paper); font-weight: 700; }
.invoice__stamp {
  position: absolute; right: clamp(14px, 3vw, 28px); top: 50%; z-index: 2;
  padding: 6px 14px; border: 2px solid var(--gold-ink); border-radius: 8px;
  font-weight: 800; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink);
  transform: rotate(-10deg); opacity: .55; pointer-events: none;
}

.invoice__cols, .invoice__row { display: grid; grid-template-columns: 44px 1fr 96px; gap: 12px; align-items: center; }
.invoice__cols { padding: 14px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-paper); }
.invoice__cols span:last-child { text-align: right; }
.invoice__rows { display: grid; }
.invoice__row { padding: 12px 0; border-bottom: 1px dashed var(--paper-line); }
.invoice__date { font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--gold-ink); }
.invoice__route { display: grid; gap: 2px; min-width: 0; }
.invoice__route b { font-weight: 700; overflow-wrap: anywhere; }
.invoice__route small { color: var(--muted-on-paper); font-size: 12.5px; }
.invoice__ref { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(201,168,106,.2); color: var(--gold-ink); font-weight: 700; font-size: 11.5px; letter-spacing: .02em; }
.invoice__amount { justify-self: end; display: grid; justify-items: end; gap: 4px; font-size: 11px; color: var(--muted-on-paper); }
.invoice__amount i { display: block; width: 64px; height: 9px; border-radius: 4px; background: linear-gradient(90deg, rgba(13,16,20,.16), rgba(13,16,20,.08)); transform-origin: right; }

.invoice__sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--ink); color: var(--text-on-ink); }
.invoice__sum div { display: grid; gap: 4px; align-content: start; }
.invoice__sum div > span { font-size: 11.5px; letter-spacing: .06em; color: var(--muted-on-ink); }
.invoice__sum b { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1; color: var(--gold); }
.invoice__sum b small { font-size: .5em; color: var(--text-on-ink); margin-left: 4px; }
.invoice__note { margin: 14px 0 0; font-size: 12px; color: var(--muted-on-paper); }

@media (max-width: 480px) {
  .invoice__cols, .invoice__row { grid-template-columns: 34px 1fr 64px; gap: 10px; }
  .invoice__amount i { width: 46px; }
  .invoice__meta { text-align: left; }
  .invoice__sum { grid-template-columns: 1fr 1fr; }
  .invoice__sum div:last-child { grid-column: 1 / -1; }
  .invoice__stamp { top: 88px; }
}

/* Motion: nur mit JS. Zeilen kommen nacheinander, Betrags-Balken wachsen,
   ein Scan-Strich laeuft einmal ueber den Beleg. */
.js .invoice__rows > .invoice__row.is-revealed {
  transition-delay: calc(var(--n, 0) * 260ms + 250ms) !important;
  transition-duration: .8s !important;
}
.js .invoice__row .invoice__amount i { transform: scaleX(0); transition: transform .9s var(--ease); }
.js .invoice__row.is-revealed .invoice__amount i { transform: scaleX(1); transition-delay: calc(var(--n, 0) * 260ms + 650ms); }
.js .invoice__row .invoice__date { transition: color .6s; }
.js .invoice__stamp { opacity: 0; transform: rotate(-10deg) scale(1.6); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: 2.2s; }
.js .invoice.is-revealed .invoice__stamp { opacity: .55; transform: rotate(-10deg) scale(1); }
.invoice::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; pointer-events: none;
}
.js .invoice.is-revealed::after { animation: invoice-scan 2.4s var(--ease) .3s 1 both; }
@keyframes invoice-scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .9; }
  100% { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .invoice__row .invoice__amount i { transform: none; }
  .js .invoice__stamp { opacity: .55; transform: rotate(-10deg); }
  .invoice::after { display: none; }
}

/* ---------- Registrierung (CTA auf dunkler Sektion) ---------- */
.fk-cta { align-items: center; }
.fk-contact { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--ink-line); }
.fk-contact a { text-decoration: none; font-weight: 700; color: var(--text-on-ink); }
.fk-contact a:hover { color: var(--gold-2); }
.fk-contact span { font-size: 13px; color: var(--muted-on-ink); }

/* ---------- Hinweis Privatkunden (Sektion "Für wen") ---------- */
.fk-private { display: grid; gap: 16px; margin-top: clamp(28px, 4vw, 44px); padding: clamp(18px, 2.5vw, 26px); border: 1px solid var(--paper-line); border-left: 3px solid var(--gold-ink); border-radius: var(--radius); max-width: 820px; }
.fk-private p { margin: 0; color: var(--muted-on-paper); }
.fk-private p b { color: var(--text-on-paper); }
.fk-private .btn-row { align-items: center; gap: 18px; }
