/* ============================================================
   Nobleclean UI/UX Animations-Paket (ncx-*)
   ============================================================ */

/* ---------- 1. Scroll-Reveal (Fade-in + Up) ---------- */
.ncx-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(0.25, 1, 0.5, 1), transform .8s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: var(--ncx-delay, 0ms);
  will-change: opacity, transform;
}
.ncx-reveal.ncx-in {
  opacity: 1;
  transform: none;
}

/* ---------- 2. Header: Shrink on Scroll ---------- */
.ncx-header-target {
  transition: padding .35s ease, box-shadow .35s ease, background-color .35s ease;
}
.ncx-header-target.ncx-shrunk {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-shadow: 0 8px 30px rgba(10, 38, 71, .25);
}
.ncx-header-target.ncx-shrunk img {
  transform: scale(.85);
  transition: transform .35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- 3. Card Hover Zoom & Lift (Bento/Services) ---------- */
.nc-service-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--nc-shadow);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}
.nc-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(18, 50, 74, 0.18);
}
.nc-service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
}
.nc-service-card:hover .nc-service-card-bg {
  transform: scale(1.03);
}

/* ---------- 4. Buttons: Micro-Feedback ---------- */
.wp-block-button__link {
  transition: transform .25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow .25s ease !important;
}
.wp-block-button__link:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 30px rgba(0, 168, 143, .35) !important;
}
.wp-block-button__link:active {
  transform: translateY(0) scale(.98) !important;
}

/* ---------- 5. FAQ-Akkordeon Fluid Motion & Rotation ---------- */
.nc-faq-item {
  background: #ffffff;
  border: 1px solid var(--nc-line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.nc-faq-item:hover {
  border-color: var(--nc-primary);
  box-shadow: 0 10px 25px rgba(30,40,45,0.04);
}
.nc-faq-item summary {
  list-style: none;
  padding: 24px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--nc-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.nc-faq-item summary::-webkit-details-marker {
  display: none;
}
.nc-faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--nc-primary);
  transition: transform 0.3s ease;
}
.nc-faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.nc-faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out;
  padding: 0 24px;
}
.nc-faq-item[open] .nc-faq-content {
  max-height: 300px;
  opacity: 1;
  padding: 0 24px 24px 24px;
  border-top: 1px dashed var(--nc-line);
  padding-top: 16px;
}

/* ---------- 6. Desktop Parallax ---------- */
@media (min-width: 1025px) {
  .nc-hero-parallax-bg {
    background-attachment: fixed !important;
  }
}

/* ---------- 7. Barrierefreiheit ---------- */
@media (prefers-reduced-motion: reduce) {
  .ncx-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .nc-service-card, .nc-service-card-bg, .wp-block-button__link {
    transition: none !important;
    transform: none !important;
  }
}
