/* Site motion – reveal + hover (JLoPilotics) */

/* Header wie MN – sticky bleibt beim Scroll sichtbar */
.top {
  position: sticky !important;
  top: 0 !important;
  z-index: 10050 !important;
  height: auto !important;
  min-height: 0 !important;
  background: rgba(255, 255, 255, .96) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid transparent !important;
  transition: box-shadow .28s var(--ease), border-color .28s var(--ease) !important;
  overflow: visible !important;
}
.top.is-solid {
  border-bottom-color: var(--blue-line) !important;
  box-shadow: 0 10px 28px rgba(27, 88, 148, .12) !important;
}
.top__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 1rem !important;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
  min-height: 4.5rem !important;
  margin-inline: auto !important;
  transition: min-height .28s var(--ease), padding .28s var(--ease) !important;
}
.top.is-solid .top__inner {
  min-height: 3.25rem !important;
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}
.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 1.1rem !important;
  justify-self: start !important;
  grid-column: 1 !important;
  min-width: 0 !important;
  font-weight: 600 !important;
  font-size: .88rem !important;
  color: var(--blue-muted) !important;
}
.nav-links a {
  color: inherit !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  padding-bottom: 1px !important;
  transition: color .2s, border-color .2s !important;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue) !important;
  border-bottom-color: var(--orange) !important;
}
.brand {
  grid-column: 2 !important;
  justify-self: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.18rem !important;
  text-align: center !important;
  text-decoration: none !important;
}
.brand__logo {
  width: auto !important;
  height: 38px !important;
  object-fit: contain !important;
  transition: height .28s var(--ease) !important;
  animation: brandFlyIn 1.15s cubic-bezier(.22, .82, .28, 1) .15s both !important;
}
@keyframes brandFlyIn {
  0% {
    opacity: 0;
    transform: translate3d(-56px, -10px, 0) rotate(-12deg) scale(.82);
  }
  62% {
    opacity: 1;
    transform: translate3d(3px, 1px, 0) rotate(1.5deg) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand__logo { animation: none !important; }
}
.brand__copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.05rem !important;
  overflow: hidden !important;
  max-height: 4.2rem !important;
  opacity: 1 !important;
  transition: opacity .28s var(--ease), max-height .32s var(--ease) !important;
}
.brand__name {
  font-family: var(--display) !important;
  font-weight: 800 !important;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-transform: none !important;
}
.brand__name .jlo {
  color: var(--orange) !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  -webkit-text-stroke: .7px var(--orange);
  paint-order: stroke fill;
}
.brand__name .pilotics { color: var(--blue) !important; }
.brand__service {
  font-family: var(--display) !important;
  font-weight: 700 !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--blue) !important;
  white-space: nowrap !important;
}
.brand__areas {
  font-size: 0.66rem !important;
  font-weight: 600 !important;
  color: var(--blue-muted) !important;
  white-space: nowrap !important;
}
.brand__areas .c-blue { color: var(--blue) !important; }
.brand__areas .c-orange { color: var(--orange) !important; }
.nav-actions {
  grid-column: 3 !important;
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
}
.nav-toggle { display: none !important; }
.top.is-solid .brand__copy {
  opacity: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}
.top.is-solid .brand__logo { height: 36px !important; }
.top.is-solid .brand { gap: 0 !important; }
/* ≤1280: Desktop-Nav AUS – Drawer in focus.css; hier display:none nachladen (motion lädt zuletzt). */
@media (max-width: 1280px) {
  .top { position: sticky !important; top: 0 !important; z-index: 10040 !important; }
  .top__inner {
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.55rem !important;
    min-height: 3.75rem !important;
  }
  .top.is-solid .top__inner { min-height: 3.1rem !important; }
  .nav-links {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .brand {
    grid-column: auto !important;
    justify-self: auto !important;
    align-items: flex-start !important;
    text-align: left !important;
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .brand__copy { align-items: flex-start !important; }
  .brand__areas { display: none !important; }
  .nav-actions {
    grid-column: auto !important;
    justify-self: auto !important;
    margin-left: auto !important;
    order: 2 !important;
    flex: 0 0 auto !important;
  }
  .nav-toggle { display: inline-flex !important; }
  .nav-actions .nav__cta {
    display: none !important; /* Platz: nur Hamburger; CTA steckt im Drawer */
  }
}
.foot__logo {
  width: auto !important;
  height: 32px !important;
  max-width: 9.5rem !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
  filter: brightness(0) invert(1) !important;
}
/* Scroll-Marker: „Was Sie bekommen“ – orangener Hintergrund wächst mit */
.mark-title {
  max-width: none !important;
}
.mark-title__text {
  --mark: 0;
  display: inline;
  padding: 0.1em 0.16em;
  margin: 0 -0.08em;
  border-radius: 0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(
    100deg,
    #ff6a00 0%,
    #ff7d1f 100%
  );
  background-repeat: no-repeat;
  background-size: calc(var(--mark) * 100%) 82%;
  background-position: left 78%;
  color: var(--blue-deep);
  transition: color .18s linear;
}
.mark-title.is-marked .mark-title__text {
  color: #fff;
}

/* —— Reveal —— */
[data-reveal],
.reveal {
  opacity: 0;
  transform: translate3d(0, 1.4rem, 0);
  transition:
    opacity .75s var(--ease),
    transform .75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in,
.reveal.is-in {
  opacity: 1;
  transform: none;
}
[data-reveal="left"] { transform: translate3d(-1.25rem, 0, 0); }
[data-reveal="right"] { transform: translate3d(1.25rem, 0, 0); }
[data-reveal="scale"] { transform: translate3d(0, .6rem, 0) scale(.97); }
[data-reveal="left"].is-in,
[data-reveal="right"].is-in,
[data-reveal="scale"].is-in {
  transform: none;
}

/* —— Hero entrance —— */
.hero__copy > * {
  opacity: 0;
  transform: translate3d(0, 1.1rem, 0);
  animation: jloHeroIn .85s var(--ease) forwards;
}
.hero__copy > *:nth-child(1) { animation-delay: .08s; }
.hero__copy > *:nth-child(2) { animation-delay: .16s; }
.hero__copy > *:nth-child(3) { animation-delay: .24s; }
.hero__copy > *:nth-child(4) { animation-delay: .34s; }
.hero__copy > *:nth-child(5) { animation-delay: .44s; }
.hero__copy > *:nth-child(6) { animation-delay: .54s; }
@keyframes jloHeroIn {
  to { opacity: 1; transform: none; }
}
.hero .focus__corner {
  animation: jloCornerIn .9s .2s var(--ease) both !important;
}
.hero .focus__reticle {
  animation: jloReticleIn 1s .45s var(--ease) both !important;
}
@keyframes jloCornerIn {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: none; }
}
@keyframes jloReticleIn {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: none; }
}

/* —— Buttons —— */
.btn {
  transition:
    transform .22s var(--ease),
    background .22s,
    color .22s,
    border-color .22s,
    box-shadow .22s var(--ease) !important;
}
.btn:hover {
  transform: translateY(-2px) !important;
}
.btn--orange:hover {
  box-shadow: 0 12px 28px rgba(255, 106, 0, .32);
}
.btn--ghost:hover {
  box-shadow: 0 10px 22px rgba(27, 88, 148, .12);
}
.btn:active { transform: translateY(0) !important; }

/* —— Case mosaic —— */
.case-tile {
  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease) !important;
}
.case-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 36, 64, .28);
  z-index: 2;
}
.case-tile img {
  transition: transform .8s var(--ease) !important;
}
.case-tile:hover img { transform: scale(1.08) !important; }
.case-tile__body {
  transition: transform .35s var(--ease);
}
.case-tile:hover .case-tile__body {
  transform: translateY(-3px);
}
.case-tile--cta {
  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease),
    filter .35s var(--ease) !important;
}
.case-tile--cta:hover {
  filter: brightness(1.06);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(27, 88, 148, .28);
}

/* —— Process / Zielmarken —— */
.process__item {
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.process__item:hover {
  transform: none !important;
  box-shadow: none !important;
}
.process__n {
  position: relative;
  z-index: 2;
  transition: background .35s cubic-bezier(.22, .82, .28, 1), border-color .35s cubic-bezier(.22, .82, .28, 1) !important;
}
.process__item:hover .process__n {
  background: rgba(255, 106, 0, .16) !important;
  border-color: var(--orange) !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .process__item::before { transition: opacity .2s ease !important; }
  .process__item:hover::before {
    background-size:
      16px 2px, 2px 16px,
      16px 2px, 2px 16px,
      16px 2px, 2px 16px,
      16px 2px, 2px 16px !important;
  }
}

/* —— Proof / gallery / outcome —— */
.proof__item,
.gallery-item,
.outcome__visual {
  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease),
    border-color .3s !important;
  overflow: hidden;
}
.proof__item img,
.gallery-item img,
.outcome__visual img {
  transition: transform .75s var(--ease) !important;
}
.proof__item:hover,
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(27, 88, 148, .14);
  border-color: rgba(255, 106, 0, .28);
}
.proof__item:hover img,
.gallery-item:hover img,
.outcome__visual:hover img {
  transform: scale(1.06);
}
.proof__item figcaption,
.gallery-item figcaption {
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.proof__item:hover figcaption {
  transform: translateY(-2px);
}
.gallery-item:hover figcaption {
  color: var(--blue-deep);
}
.outcome__chip {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.outcome__visual:hover .outcome__chip {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

/* —— Cards —— */
.ref__card,
.trust__card,
.convert__inner,
.aside-item,
.form-card,
.seo-card {
  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease),
    border-color .3s !important;
}
.ref__card:hover,
.trust__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(27, 88, 148, .14);
}
.ref__visual img,
.trust__photo img {
  transition: transform .8s var(--ease);
}
.ref__card:hover .ref__visual img,
.trust__card:hover .trust__photo img {
  transform: scale(1.04);
}
.convert__inner:hover {
  box-shadow: 0 18px 44px rgba(10, 36, 64, .28);
}
.aside-item {
  transition:
    transform .3s var(--ease),
    box-shadow .3s var(--ease),
    border-color .3s !important;
}
.aside-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(27, 88, 148, .12);
  border-color: var(--orange);
}
.aside-item a {
  transition: border-color .25s, transform .25s var(--ease);
}
.aside-item:hover a {
  transform: translateX(3px);
  border-bottom-color: var(--orange);
}
.trust__badges span {
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.trust__badges span:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(255, 106, 0, .4);
}
.hero__proof span {
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.hero__proof span:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .55);
}
.hero__play {
  transition: transform .3s var(--ease), background .3s, box-shadow .3s !important;
}
.hero__play:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(255, 106, 0, .75);
  box-shadow: 0 14px 36px rgba(255, 106, 0, .35);
}

/* —— Gallery sections —— */
.gallery-section__head h2 {
  transition: color .3s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal],
  .reveal,
  .hero__copy > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .brand__copy {
    transition: none !important;
  }
}

/* FABs – zuletzt laden, damit sie fixed bleiben */
.wa-fab {
  position: fixed !important;
  right: max(1rem, env(safe-area-inset-right, 0px)) !important;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
  left: auto !important;
  z-index: 10020 !important;
  display: flex !important;
}
#openCookieFab.cb-fab {
  position: fixed !important;
  left: max(1rem, env(safe-area-inset-left, 0px)) !important;
  right: auto !important;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
  z-index: 10021 !important;
  display: inline-flex !important;
}
.scroll-top {
  position: fixed !important;
  right: max(1.2rem, calc(env(safe-area-inset-right, 0px) + 0.2rem)) !important;
  bottom: calc(1rem + 3.9rem + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 10022 !important;
}
.scroll-top.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
@media (max-width: 1280px) {
  .nav-drawer {
    display: flex !important;
  }
  .nav-drawer:not(.is-open) {
    transform: translate3d(105%, 0, 0) !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .nav-drawer.is-open {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .nav-backdrop {
    display: block !important;
  }
}
