/* CallAP – motion & gradient layer. Everything sits inside a no-preference media query,
   so visitors who ask their system for reduced motion get the calm, static site. */

@property --mx-num { syntax: "<integer>"; inherits: false; initial-value: 0; }
@property --mx-float { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --mx-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* scroll progress bar (static part is harmless without motion) */
.mx-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; transform-origin: 0 50%;
  transform: scaleX(var(--mx-progress, 0)); background: linear-gradient(90deg, #C4B5FD, #8B5CF6 45%, #E8DCC4); box-shadow: 0 0 14px rgba(139, 92, 246, .7); }
.mx-aurora, .mx-spot { display: none; }
.mx-line, .mx-line-in { display: inline; }

@media (prefers-reduced-motion: no-preference) {

  /* ================================================================ nav */
  .fw-nav { transition: background .4s ease, box-shadow .4s ease, padding .4s ease; }
  .callap-page.mx-scrolled .fw-nav { background: rgba(30, 54, 47, .72); box-shadow: 0 12px 40px rgba(8, 18, 14, .35); }
  .callap-page.mx-scrolled .fw-nav-inner { padding-top: 9px; padding-bottom: 9px; }
  .fw-nav-inner { transition: padding .4s ease; }
  .fw-pills a { position: relative; transition: background .35s cubic-bezier(.2,.8,.2,1), color .25s, transform .25s; }
  .fw-pills a:hover { transform: translateY(-1px); }
  .fw-pills a.on { background: linear-gradient(135deg, rgba(232,220,196,.22), rgba(139,92,246,.28)); }
  .mx-js:not(.mx-ready) .fw-nav { opacity: 0; transform: translateY(-14px); }
  .mx-ready .fw-nav { animation: mx-drop .9s cubic-bezier(.2,.8,.2,1) both; }

  /* ================================================================ hero */
  .fw-hero { --mx: 50%; --my: 40%; isolation: isolate; }
  .fw-hero > *:not(.mx-aurora):not(.mx-spot) { position: relative; z-index: 1; }
  .mx-aurora { display: block; position: absolute; inset: -20% -10% 0; z-index: 0; pointer-events: none; filter: blur(70px) saturate(1.15); opacity: .85; }
  .mx-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
  .mx-aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -6%; top: 8%; background: radial-gradient(circle, rgba(139, 92, 246, .42), transparent 65%); animation: mx-drift-a 18s ease-in-out infinite alternate; }
  .mx-aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -8%; top: 0; background: radial-gradient(circle, rgba(96, 196, 160, .28), transparent 65%); animation: mx-drift-b 22s ease-in-out infinite alternate; }
  .mx-aurora i:nth-child(3) { width: 60vw; height: 36vw; left: 20%; bottom: -12%; background: radial-gradient(ellipse, rgba(196, 181, 253, .35), transparent 65%); animation: mx-drift-c 16s ease-in-out infinite alternate; }
  .mx-spot { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(520px circle at var(--mx) var(--my), rgba(232, 220, 196, .10), transparent 60%); transition: background .2s; }
  .fw-hero { animation: mx-dots 60s linear infinite; }

  .mx-line { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .1em; margin: -.04em 0 -.1em; }
  .mx-line-in { display: inline-block; }
  .mx-js:not(.mx-ready) .mx-line-in { transform: translateY(110%); }
  .mx-ready .mx-line-in { animation: mx-rise 1.1s cubic-bezier(.16, 1, .3, 1) both; }
  .mx-ready .mx-line:nth-of-type(2) .mx-line-in { animation-delay: .12s; }
  .mx-shine { background: linear-gradient(100deg, #E8DCC4 0%, #E8DCC4 38%, #C4B5FD 47%, #fff 50%, #C4B5FD 53%, #E8DCC4 62%, #E8DCC4 100%);
    background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mx-shine 7s ease-in-out 1.6s infinite; }
  .fw-spark { animation: mx-spin-pulse 5s ease-in-out infinite; }

  .mx-js:not(.mx-ready) :is(.fw-sublinks, .fw-sub, .fw-actions, .fw-sticker, .fw-card) { opacity: 0; }
  .mx-ready .fw-sublinks { animation: mx-fade-up .9s .05s cubic-bezier(.2,.8,.2,1) both; }
  .mx-ready .fw-sub { animation: mx-fade-up 1s .35s cubic-bezier(.2,.8,.2,1) both; }
  .mx-ready .fw-actions { animation: mx-fade-up 1s .5s cubic-bezier(.2,.8,.2,1) both; }
  .mx-ready .fw-sticker { animation: mx-pop 1s .8s cubic-bezier(.34,1.56,.64,1) both, fw-wobble 6s 1.8s ease-in-out infinite; }

  /* floating, parallax cards */
  .fw-card { --mx-float: 0px; translate: calc(var(--px, 0) * var(--depth, 18px)) calc(var(--py, 0) * var(--depth, 18px) + var(--mx-float) - var(--sy, 0) * var(--lift, .06px));
    transition: translate .5s cubic-bezier(.2,.8,.2,1), box-shadow .4s; will-change: translate; }
  .fw-card-left { --depth: 26px; --lift: .10px; }
  .fw-card-mid { --depth: -14px; --lift: .02px; }
  .fw-card-right { --depth: 30px; --lift: .12px; }
  .mx-ready .fw-card-left { animation: mx-card-in 1.3s .65s cubic-bezier(.16,1,.3,1) both, mx-float 6s 2s ease-in-out infinite alternate; }
  .mx-ready .fw-card-mid { animation: mx-card-in 1.3s .5s cubic-bezier(.16,1,.3,1) both, mx-float 7s 2.2s ease-in-out infinite alternate-reverse; }
  .mx-ready .fw-card-right { animation: mx-card-in 1.3s .8s cubic-bezier(.16,1,.3,1) both, mx-float 6.5s 2.4s ease-in-out infinite alternate; }
  .fw-card-mid { background: linear-gradient(160deg, #A47BFF, #8B5CF6 45%, #5B2FD0); background-size: 140% 140%; }
  .mx-ready .fw-card-mid { animation: mx-card-in 1.3s .5s cubic-bezier(.16,1,.3,1) both, mx-float 7s 2.2s ease-in-out infinite alternate-reverse, mx-grad 8s ease-in-out infinite alternate; }
  .fw-card-mid::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 62%); background-size: 250% 100%; animation: mx-sweep 5s 2.5s ease-in-out infinite; }
  .fw-card-mid { position: relative; overflow: hidden; }
  .mx-ready .fw-bar b { transform-origin: 0 50%; animation: mx-grow 1.3s cubic-bezier(.2,.8,.2,1) both; }
  .mx-ready .fw-bar:nth-child(2) b { animation-delay: 1.0s; } .mx-ready .fw-bar:nth-child(3) b { animation-delay: 1.08s; }
  .mx-ready .fw-bar:nth-child(4) b { animation-delay: 1.16s; } .mx-ready .fw-bar:nth-child(5) b { animation-delay: 1.24s; } .mx-ready .fw-bar:nth-child(6) b { animation-delay: 1.32s; }
  .mx-ready .fw-gauge path:last-child { animation: mx-gauge 1.8s 1s cubic-bezier(.2,.8,.2,1) both; }
  .mx-ready .fw-line polyline { stroke-dasharray: 420; animation: mx-draw 2.2s 1.2s cubic-bezier(.4,0,.2,1) both; }
  .fw-gauge-n { font-size: 0 !important; counter-reset: mxn var(--mx-num); --mx-num: 98; }
  .fw-gauge-n::after { content: counter(mxn); font: 700 46px/1 var(--fw-font); letter-spacing: -.04em; }
  .mx-ready .fw-gauge-n { animation: mx-count 1.8s 1s cubic-bezier(.2,.8,.2,1) both; }

  /* buttons: magnetic + shine + gradient */
  .fw-btn, .fw-join, .callap-btn, .callap-live-start { translate: var(--tx, 0) var(--ty, 0); transition: translate .35s cubic-bezier(.2,.8,.2,1), transform .2s, background .3s, box-shadow .3s; position: relative; overflow: hidden; isolation: isolate; }
  .fw-btn:not(.fw-btn-soft) { background: linear-gradient(120deg, #9D74FF, #8B5CF6 40%, #6D3FE0); background-size: 200% 100%; animation: mx-grad 6s ease-in-out infinite alternate; }
  .fw-btn::after, .fw-join::after, .callap-btn::after, .callap-live-start::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.38) 50%, transparent 75%); transform: translateX(-120%); }
  .fw-btn:hover::after, .fw-join:hover::after, .callap-btn:hover::after, .callap-live-start:hover::after { transform: translateX(120%); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
  .fw-btn:hover { box-shadow: 0 14px 40px rgba(139, 92, 246, .55); }
  .fw-btn:active, .callap-btn:active { transform: scale(.97); }

  /* ================================================================ sections */
  .mx-sec .mx-item { opacity: 0; transform: translateY(34px); filter: blur(6px); }
  .mx-sec.mx-in .mx-item { animation: mx-item .95s calc(var(--i, 0) * 85ms) cubic-bezier(.16,1,.3,1) both; }
  .mx-sec .callap-h2.mx-item { transform: translateY(40px) scale(.98); }
  .mx-sec { transition: opacity 1s; }

  /* gradient section transitions ("Verläufe") */
  :root .callap-page.fw .fw-sand { background:
      radial-gradient(ellipse 50% 40% at 100% 0%, rgba(196, 181, 253, .35), transparent 70%),
      radial-gradient(ellipse 45% 40% at 0% 100%, rgba(43, 74, 64, .14), transparent 70%),
      linear-gradient(180deg, #EFE6D3, #E8DCC4 30%, #E4D6BB); }
  :root .callap-page.fw .fw-sand .callap-container { position: relative; }
  .fw-try { background: radial-gradient(ellipse 50% 60% at 85% 30%, rgba(139, 92, 246, .22), transparent 70%), radial-gradient(ellipse 40% 50% at 0% 100%, rgba(96, 196, 160, .10), transparent 70%), var(--fw-green-deep) !important; }
  :root .callap-page.fw .callap-dark-section { background: radial-gradient(ellipse 55% 60% at 10% 50%, rgba(139, 92, 246, .20), transparent 70%), linear-gradient(180deg, #23403A, #1A322C) !important; }
  :root .callap-page .callap-live { background: radial-gradient(ellipse 40% 70% at 90% 50%, rgba(139, 92, 246, .22), transparent 70%), linear-gradient(180deg, #2B4A40, #23403A) !important; }

  /* step / industry / price cards: 3D tilt + glow that follows the pointer */
  .callap-step, .callap-industry, .callap-price-card, .callap-live-card, .callap-feature-art {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .4s, background .3s; transform-style: preserve-3d; }
  .mx-sec.mx-in :is(.callap-step, .callap-industry, .callap-price-card, .callap-live-card, .callap-feature-art).mx-item { animation-name: mx-item-3d; }
  .mx-tilting { transition: transform .12s linear, box-shadow .4s !important; }
  .callap-industry, .callap-step { position: relative; overflow: hidden; }
  .callap-industry::after, .callap-step::after, .callap-price-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .35s;
    background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(139, 92, 246, .16), transparent 65%); }
  .mx-tilting::after { opacity: 1; }
  .callap-industry:hover, .callap-step:hover { box-shadow: 0 24px 50px rgba(43, 74, 64, .18); }
  .callap-industry-icon { transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
  .callap-industry:hover .callap-industry-icon { transform: rotate(-10deg) scale(1.18); }

  /* featured price card: rotating gradient border + moving gradient */
  :root .callap-page.fw .callap-price-card.featured { background: linear-gradient(165deg, #A47BFF, #8B5CF6 45%, #5B2FD0); background-size: 160% 160%; animation: mx-grad 9s ease-in-out infinite alternate; position: relative; }
  :root .callap-page.fw .callap-price-card.featured.mx-item { animation: mx-item-3d .95s calc(var(--i, 0) * 85ms) cubic-bezier(.16,1,.3,1) both, mx-grad 9s ease-in-out infinite alternate; }
  .callap-price-card.featured::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px;
    background: conic-gradient(from var(--mx-angle), #E8DCC4, #8B5CF6, #60C4A0, #C4B5FD, #E8DCC4); animation: mx-rotate 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; filter: blur(.5px); }
  .callap-price-badge { animation: mx-badge 2.4s ease-in-out infinite; }

  /* live call card: animated gradient border + pulsing mic button */
  :root .callap-page .callap-live .callap-live-card { position: relative; }
  :root .callap-page .callap-live .callap-live-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--mx-angle), transparent 0 60%, #8B5CF6 75%, #C4B5FD 82%, transparent 92%); animation: mx-rotate 5s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
  .callap-live-start:not(:disabled) { animation: mx-ring 2.2s ease-out infinite; }

  /* proof logos marquee */
  .mx-marquee { overflow: hidden; display: block !important; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .mx-marquee-track { display: flex; width: max-content; animation: mx-marquee 26s linear infinite; }
  .mx-marquee:hover .mx-marquee-track { animation-play-state: paused; }
  .mx-marquee-set { display: flex; gap: 64px; padding-right: 64px; align-items: center; }
  .mx-marquee-set span { white-space: nowrap; transition: color .3s; }
  .mx-marquee-set span:hover { color: #C4B5FD; }

  /* CTA: flowing gradient */
  :root .callap-page.fw .callap-cta { background: radial-gradient(ellipse 60% 90% at 85% 0%, rgba(255,255,255,.2), transparent 70%), linear-gradient(120deg, #A47BFF, #8B5CF6, #5B2FD0, #7C4DFF, #8B5CF6) !important; background-size: 100% 100%, 300% 300% !important; animation: mx-grad-big 14s ease-in-out infinite alternate; }

  /* footer logo */
  .callap-footer .callap-logo-mark { animation: mx-spin-pulse 6s ease-in-out infinite; }

  /* demo chat bubbles */
  .callap-ai-icon { animation: mx-glow 2.6s ease-in-out infinite; }
  .callap-wave i { animation-duration: .9s !important; }

  /* modal */
  .callap-modal-backdrop { animation: mx-fade .3s ease both; }
  .callap-modal { animation: mx-modal .55s cubic-bezier(.16,1,.3,1) both; }

  /* ================================================================ auth */
  .auth-page { position: relative; overflow: hidden; background-size: auto, 22px 22px, auto; animation: mx-dots-auth 60s linear infinite; }
  .auth-page::before, .auth-page::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
  .auth-page::before { width: 520px; height: 520px; left: -140px; top: -120px; background: rgba(139, 92, 246, .35); animation: mx-drift-a 16s ease-in-out infinite alternate; }
  .auth-page::after { width: 460px; height: 460px; right: -140px; bottom: -140px; background: rgba(96, 196, 160, .22); animation: mx-drift-b 19s ease-in-out infinite alternate; }
  .auth-card { position: relative; z-index: 1; animation: mx-modal .8s cubic-bezier(.16,1,.3,1) both; }
  .auth-card > * { animation: mx-fade-up .7s cubic-bezier(.2,.8,.2,1) both; }
  .auth-card > *:nth-child(2) { animation-delay: .08s; } .auth-card > *:nth-child(3) { animation-delay: .14s; } .auth-card > *:nth-child(4) { animation-delay: .2s; }
  .auth-card > *:nth-child(5) { animation-delay: .26s; } .auth-card > *:nth-child(6) { animation-delay: .32s; } .auth-card > *:nth-child(7) { animation-delay: .38s; }
  .auth-logo { animation: mx-pop .8s .2s cubic-bezier(.34,1.56,.64,1) both, mx-glow 3s 1s ease-in-out infinite !important; }
  .auth-btn { background: linear-gradient(120deg, #9D74FF, #8B5CF6 40%, #6D3FE0); background-size: 200% 100%; animation: mx-grad 6s ease-in-out infinite alternate; transition: transform .2s, box-shadow .3s; }
  .auth-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(139, 92, 246, .45); }
  .auth-page > div:not(.auth-card) { position: relative; z-index: 1; }

  /* ================================================================ dashboard + booking page */
  .ap-main > *, .ap-pubwrap > * { animation: mx-fade-up .6s cubic-bezier(.2,.8,.2,1) both; }
  .ap-main .ap-card, .ap-main .ap-hero, .ap-pubwrap .ap-card { animation: mx-card-pop .7s cubic-bezier(.16,1,.3,1) both; }
  .ap-main .ap-grid > :nth-child(1) { animation-delay: .04s; } .ap-main .ap-grid > :nth-child(2) { animation-delay: .1s; }
  .ap-main .ap-grid > :nth-child(3) { animation-delay: .16s; } .ap-main .ap-grid > :nth-child(4) { animation-delay: .22s; }
  .ap-main .ap-grid > :nth-child(5) { animation-delay: .28s; } .ap-main .ap-grid > :nth-child(6) { animation-delay: .34s; }
  .ap-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
  .ap-main .ap-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(10, 20, 14, .18); }
  .ap-nav { transition: background .25s, color .25s, transform .25s, padding .25s; }
  .ap-nav:hover { transform: translateX(3px); }
  .ap-day, .ap-slot, .ap-chip { transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s, box-shadow .2s, border-color .2s; }
  .ap-day:not(.off):not([disabled]):hover, .ap-slot:hover { transform: translateY(-2px) scale(1.04); }
  .ap-slot.sel, .ap-day.sel { animation: mx-pop .45s cubic-bezier(.34,1.56,.64,1); }
  .sheet-panel { animation: sheet-in .45s cubic-bezier(.16,1,.3,1) !important; }
}

/* ================================================================ keyframes */
@keyframes mx-rise { from { transform: translateY(110%) rotate(2deg); filter: blur(8px); } to { transform: none; filter: none; } }
@keyframes mx-fade-up { from { opacity: 0; transform: translateY(22px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mx-drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes mx-pop { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@keyframes mx-item { to { opacity: 1; transform: none; filter: none; } }
@keyframes mx-item-3d { from { opacity: 0; transform: perspective(900px) translateY(50px) rotateX(14deg); filter: blur(6px); } to { opacity: 1; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); filter: none; } }
@keyframes mx-card-in { from { opacity: 0; scale: .85; filter: blur(10px); margin-top: 120px; } to { opacity: 1; scale: 1; filter: none; margin-top: 0; } }
@keyframes mx-card-pop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mx-float { from { --mx-float: 0px; } to { --mx-float: -12px; } }
@keyframes mx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mx-gauge { from { stroke-dashoffset: 151; } }
@keyframes mx-draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes mx-count { from { --mx-num: 0; } to { --mx-num: 98; } }
@keyframes mx-shine { 0%, 15% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
@keyframes mx-sweep { 0%, 40% { background-position: 150% 0; } 80%, 100% { background-position: -50% 0; } }
@keyframes mx-grad { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes mx-grad-big { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 100% 50%; } }
@keyframes mx-rotate { to { --mx-angle: 360deg; } }
@keyframes mx-ring { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(139, 92, 246, 0); } }
@keyframes mx-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); } 50% { box-shadow: 0 0 18px 2px rgba(139, 92, 246, .45); } }
@keyframes mx-badge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes mx-spin-pulse { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(1.12); } }
@keyframes mx-marquee { to { transform: translateX(-33.3333%); } }
@keyframes mx-modal { from { opacity: 0; transform: translateY(26px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mx-dots-auth { to { background-position: 0 0, 440px 440px, 0 0; } }
@keyframes mx-dots { to { background-position: 0 0, 0 0, 0 0, 440px 440px, 0 0; } }
@keyframes mx-drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(18vw, 10vh) scale(1.25); } }
@keyframes mx-drift-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-16vw, 14vh) scale(.9); } }
@keyframes mx-drift-c { from { transform: translate(-10vw, 0) scale(1); } to { transform: translate(12vw, -8vh) scale(1.2); } }

/* phones: lighter effects */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .mx-aurora { filter: blur(50px); }
  .fw-card { translate: 0 calc(var(--mx-float) * .6); }
  .mx-marquee-set { gap: 36px; padding-right: 36px; }
}
