/* ============================================
   Jonas Kaatz — Minimal CSS
   Only: animations, pseudo-elements, JS states
   Everything else lives in head.php @layer components
   ============================================ */

/* ---- Service card top border on hover ---- */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: #111;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover::before { transform: scaleX(1); }

/* ---- Button arrow ---- */
.btn-arrow::after {
  content: '\2192';
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---- Nav link underline ---- */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #111;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ---- Hamburger spans ---- */
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Mobile menu (JS-toggled) ---- */
.mobile-menu { display: none; opacity: 0; transition: opacity 0.3s; }
.mobile-menu.open { display: flex; opacity: 1; }

/* ---- Nav scrolled (JS-toggled) ---- */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

/* ---- Scroll reveal (JS-toggled) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Testimonial JS states ---- */
.testimonial-text    { transition: opacity 0.3s ease; }
.testimonial-author  { transition: opacity 0.3s ease; }
.testimonial-logo-wrap { transition: opacity 0.3s ease; }
.testimonial-text.fading,
.testimonial-author.fading,
.testimonial-logo-wrap.fading { opacity: 0; }

.testimonial-dot {
  width: 8px; height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.15);
  border: none; padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.testimonial-dot.active { width: 20px; background: #111; }

/* ---- Stage cards (Angebot in 3 Stufen) ---- */
.stage-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7075;
  margin-bottom: 0.75rem;
}
.stage-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.01em;
}
.stage-link::after {
  content: '\2192';
  margin-left: 0.35rem;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stage-link:hover::after { transform: translateX(4px); }

/* ---- Facts heading accent ---- */
.facts-heading span { color: #111; }

/* ---- Arrow divider ---- */
.arrow-divider { display: flex; justify-content: center; margin: 2rem 0; opacity: 0.5; }

/* ---- Responsive fallbacks ---- */
@media (max-width: 640px) {
  .step { grid-template-columns: 48px 1fr; gap: 1rem; }
  .step-card { flex-direction: column; gap: 1rem; padding: 1.5rem; }
  .testimonial-logo-wrap { min-width: unset; }
  .testimonial-logo-wrap img { width: 140px; }
}
