/* Ledgrix theme 1.41.0 – motion design (owner brief, 24 Nov 2026: "not more movement – more premium through
   carefully controlled movement"). Rules: one purpose per effect, movement only once (when something appears or on
   interaction), nothing loops, transforms/opacity only (no layout shift), everything off with "reduce motion".
   States are added by assets/js/lx-motion.js; without JavaScript every element is simply visible. */

:root{--lx-ease:cubic-bezier(.2,.7,.2,1);--lx-ease-out:cubic-bezier(.16,1,.3,1);--lx-t:.7s}

/* ---- header: calm until you scroll, then a hairline shadow (elegant navigation transition) ---- */
.lx-header{transition:box-shadow .35s var(--lx-ease),background-color .35s var(--lx-ease)}
.lx-scrolled .lx-header{box-shadow:0 10px 30px rgba(8,18,38,.28)}
.lx-nav__main a{position:relative}
/* (entries with a sub-menu keep their own arrow – 1.42.0: the underline there showed as a dot under "Leistungen") */
.lx-nav__main li:not(.menu-item-has-children)>a::after{content:"";position:absolute;left:12px;right:12px;bottom:6px;height:2px;border-radius:2px;background:currentColor;opacity:.75;
  transform:scaleX(0);transform-origin:left center;transition:transform .35s var(--lx-ease)}
[dir=rtl] .lx-nav__main li:not(.menu-item-has-children)>a::after{transform-origin:right center}
.lx-nav__main li:not(.menu-item-has-children)>a:hover::after,.lx-nav__main li:not(.menu-item-has-children)>a:focus-visible::after,.lx-nav__main li.current-menu-item:not(.menu-item-has-children)>a::after,.lx-nav__main li:not(.menu-item-has-children)>a[aria-current=page]::after{transform:scaleX(1)}
.lx-nav__main .sub-menu{transition:opacity .22s var(--lx-ease),transform .22s var(--lx-ease)}

/* ---- page heads: heading rises out of a mask, eyebrow and lead follow (once, on load) ---- */
.lx-js .lx-pagehero .lx-eyebrow,.lx-js .lx-pagehero .lx-lead,.lx-js .lx-pagehero .lx-chips,.lx-js .lx-pagehero .wp-block-buttons{opacity:0;transform:translateY(10px)}
.lx-js .lx-pagehero h1{clip-path:inset(0 -20% 100% -20%);transform:translateY(.35em)}
/* safety net: if the script did not start (html gets .lx-mo when it runs), show everything after 2.5 s */
@keyframes lx-show{to{opacity:1;transform:none;clip-path:none}}
.lx-js:not(.lx-mo) .lx-pagehero h1,.lx-js:not(.lx-mo) .lx-pagehero .lx-eyebrow,.lx-js:not(.lx-mo) .lx-pagehero .lx-lead,.lx-js:not(.lx-mo) .lx-pagehero .lx-chips,
.lx-js:not(.lx-mo) .lx-pagehero .wp-block-buttons,.lx-js:not(.lx-mo) .lx-content h2,.lx-js:not(.lx-mo) .lx-content .lx-figure img{animation:lx-show 0s 2.5s forwards}
.lx-pagehero.is-in .lx-eyebrow,.lx-pagehero.is-in .lx-lead,.lx-pagehero.is-in .lx-chips,.lx-pagehero.is-in .wp-block-buttons{opacity:1;transform:none;transition:opacity .8s var(--lx-ease),transform .8s var(--lx-ease)}
.lx-pagehero.is-in h1{clip-path:inset(-20% -20% -20% -20%);transform:none;transition:clip-path .9s var(--lx-ease-out) .08s,transform .9s var(--lx-ease-out) .08s}
.lx-pagehero.is-in .lx-lead{transition-delay:.32s}.lx-pagehero.is-in .lx-chips,.lx-pagehero.is-in .wp-block-buttons{transition-delay:.44s}

/* page-head photo: a slow, small parallax (set by script, max. 36 px) – only this one element moves on scroll */
.lx-pagehero .wp-block-cover__image-background{will-change:transform;transform:translate3d(0,var(--lx-par,0px),0) scale(1.06)}

/* ---- the network drawing in page heads: lines draw themselves once, then stand still ---- */
.lx-net{position:absolute;right:max(24px,4vw);top:50%;width:min(420px,32vw);height:auto;transform:translateY(-50%);z-index:1;pointer-events:none;opacity:.9}
.lx-net line{stroke:rgba(169,196,226,.55);stroke-width:1.2;stroke-dasharray:var(--len);stroke-dashoffset:var(--len);transition:stroke-dashoffset 1.6s var(--lx-ease-out)}
.lx-net circle{fill:#a9c4e2;opacity:0;transform-box:fill-box;transform-origin:center;transform:scale(.4);transition:opacity .6s var(--lx-ease),transform .6s var(--lx-ease)}
.lx-net circle.hub{fill:#fff}
.lx-net.on-photo{opacity:.55}
.lx-net.is-in line{stroke-dashoffset:0}.lx-net.is-in circle{opacity:1;transform:none}
@media (max-width:1100px){.lx-net{display:none}}

/* ---- section headings: a short accent line grows under the heading when the section arrives ---- */
.lx-js .lx-content h2{opacity:0;transform:translateY(12px)}
.lx-content h2.is-in{opacity:1;transform:none;transition:opacity .7s var(--lx-ease),transform .7s var(--lx-ease)}
.lx-content h2::after{content:"";display:block;width:44px;height:3px;margin-top:.45em;border-radius:3px;background:var(--brand,#2f5d8c);transform:scaleX(0);transform-origin:left;transition:transform .8s var(--lx-ease-out) .25s}
.has-text-align-center.lx-content h2::after,.lx-content h2[style*="center"]::after{margin-left:auto;margin-right:auto;transform-origin:center}
[dir=rtl] .lx-content h2::after{transform-origin:right}
.lx-content h2.is-in::after{transform:scaleX(1)}

/* ---- cards: calmer reveal (existing .lx-reveal), refined hover: lift, deeper shadow, accent line, icon nudge ---- */
.lx-reveal{transform:translateY(14px);transition:opacity var(--lx-t) var(--lx-ease),transform var(--lx-t) var(--lx-ease)}
.lx-card{transition:transform .35s var(--lx-ease),box-shadow .35s var(--lx-ease),border-color .35s var(--lx-ease)}
.lx-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(20,33,61,.13);border-top-color:#5d8fc2}
.lx-card.lx-ico::before,.lx-card .lx-ico::before{transition:transform .35s var(--lx-ease)}
.lx-card:hover.lx-ico::before,.lx-card:hover .lx-ico::before{transform:translateY(-2px)}

/* ---- buttons: colour and shadow ease, arrow nudges, a gentle press ---- */
.lx-btn,.wp-block-button__link{transition:background-color .25s var(--lx-ease),border-color .25s var(--lx-ease),color .25s var(--lx-ease),transform .25s var(--lx-ease),box-shadow .25s var(--lx-ease)}
.lx-btn:active,.wp-block-button__link:active{transform:translateY(0) scale(.985);box-shadow:none}
.lx-arrow{display:inline-block;transition:transform .3s var(--lx-ease)}
a:hover>.lx-arrow,button:hover>.lx-arrow{transform:translateX(4px)}
[dir=rtl] a:hover>.lx-arrow,[dir=rtl] button:hover>.lx-arrow{transform:translateX(-4px)}

/* ---- pictures in the text: a curtain opens once ---- */
.lx-js .lx-content .lx-figure img{clip-path:inset(0 0 0 100%)}
[dir=rtl].lx-js .lx-content .lx-figure img{clip-path:inset(0 100% 0 0)}
.lx-content .lx-figure.is-in img,[dir=rtl].lx-js .lx-content .lx-figure.is-in img{clip-path:inset(0 0 0 0);transition:clip-path 1.1s var(--lx-ease-out)}

/* ---- "how we work": the connecting line runs through the steps once, the numbers follow ---- */
.lx-steps{position:relative}
.lx-steps::before{content:"";position:absolute;left:20px;right:20px;top:20px;height:2px;background:linear-gradient(90deg,var(--brand,#2f5d8c),#a9c4e2);transform:scaleX(0);transform-origin:left;transition:transform 1.6s var(--lx-ease-out);z-index:0}
[dir=rtl] .lx-steps::before{transform-origin:right}
.lx-steps.is-in::before{transform:scaleX(1)}
.lx-steps .lx-step::before{position:relative;z-index:1;transition:transform .5s var(--lx-ease),background-color .5s var(--lx-ease)}
.lx-js .lx-steps .lx-step::before{transform:scale(.6)}
.lx-steps.is-in .lx-step::before{transform:none}
@media (max-width:781px){.lx-steps::before{display:none}}

/* ---- FAQ: answers open smoothly instead of jumping ---- */
.wp-block-details>summary{transition:color .2s var(--lx-ease)}
.wp-block-details>:not(summary){transition:opacity .35s var(--lx-ease),transform .35s var(--lx-ease)}
.wp-block-details:not([open])>:not(summary){opacity:0;transform:translateY(-4px)}

/* ---- form fields: focus is clearly shown, softly ---- */
.lx-formbox input,.lx-formbox textarea,.lx-formbox select{transition:border-color .2s var(--lx-ease),box-shadow .2s var(--lx-ease)}
.lx-formbox input:focus,.lx-formbox textarea:focus,.lx-formbox select:focus{box-shadow:0 0 0 4px rgba(47,93,140,.15)}

/* ---- legal pages (imprint, privacy): reading only – no motion at all ---- */
.lx-page--legal .lx-reveal,.lx-page--privacy .lx-reveal{opacity:1!important;transform:none!important}

/* ---- reduce motion: everything visible and still ---- */
@media (prefers-reduced-motion:reduce){
  .lx-js .lx-pagehero *,.lx-js .lx-content h2,.lx-js .lx-content .lx-figure img,.lx-net line,.lx-net circle,.lx-steps .lx-step::before{opacity:1!important;transform:none!important;clip-path:none!important;stroke-dashoffset:0!important;transition:none!important}
  .lx-content h2::after,.lx-steps::before{transform:none!important;transition:none!important}
  .lx-pagehero .wp-block-cover__image-background{transform:none!important}
  .lx-nav__main li>a::after,.lx-card,.lx-btn,.wp-block-button__link,.wp-block-details>*{transition:none!important}
}
@media print{.lx-js .lx-pagehero *,.lx-js .lx-content h2,.lx-js .lx-content .lx-figure img{opacity:1!important;transform:none!important;clip-path:none!important}.lx-net{display:none}}
.lx-pagehero h1{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}

/* ===== 1.43.0 start page hero (all four languages): the bright office background moves slowly (camera drift) and a
   soft light passes across it. CSS only, no video. The layer inherits the section background, so a picture chosen in
   the Customizer moves the same way. Off with "reduce motion". ===== */
html body .lx-c3d{overflow:clip}
.lx-c3d__sky{position:absolute;inset:-4%;z-index:0;pointer-events:none;background:inherit;transform-origin:50% 45%}
.lx-c3d__sky::after{content:"";position:absolute;inset:0;
  background:linear-gradient(105deg,rgba(255,255,255,0) 35%,rgba(255,255,255,.55) 48%,rgba(214,238,255,.35) 52%,rgba(255,255,255,0) 65%);
  background-size:260% 100%;background-position:130% 0;mix-blend-mode:soft-light}
html body .lx-c3d>*:not(.lx-c3d__sky){position:relative;z-index:1}
html body .lx-c3d>h1.lx-sr{position:absolute !important}
@media (prefers-reduced-motion:no-preference){
  .lx-c3d__sky{animation:lx-sky 26s ease-in-out infinite alternate}
  .lx-c3d__sky::after{animation:lx-sheen 9s ease-in-out 1.5s infinite}
  .lx-c3d__brand{animation:lx-rise .9s cubic-bezier(.16,1,.3,1) both}
  .lx-c3d__cta{animation:lx-rise .9s cubic-bezier(.16,1,.3,1) .3s both}
}
@keyframes lx-sky{0%{transform:scale(1) translate3d(0,0,0)}50%{transform:scale(1.06) translate3d(-1.2%,-.8%,0)}100%{transform:scale(1.09) translate3d(1%,.6%,0)}}
@keyframes lx-sheen{0%,20%{background-position:130% 0}70%,100%{background-position:-30% 0}}
@keyframes lx-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
