/* ============================================================
   ANIMATIONS & INTERACTIONS
   ============================================================ */

/* ── PAGE LOAD ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes badgePop {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(0.5); }
  70%  { transform: translate(-50%,-50%) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translate(-50%,-50%) translateY(0px); }
  50%       { transform: translate(-50%,-50%) translateY(-8px); }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(200,146,42,0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(200,146,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,146,42,0); }
}
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 48px; }
}

/* ── SCROLL REVEAL ── */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* ── NAV LOGO ── */
.nav-logo, .footer-logo-wrap a, .index-footer-logo {
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-logo:hover, .footer-logo-wrap a:hover, .index-footer-logo:hover {
  transform: scale(1.04);
  opacity: 0.85;
}

/* ── BUTTONS ── */
.btn {
  position: relative;
  overflow: hidden;
  transition: background 0.22s ease, color 0.22s ease, transform 0.18s ease, border-color 0.22s ease !important;
}
.btn:active { transform: scale(0.97) !important; }

/* Filled teal — darken on hover */
.btn-teal:hover  { background: #1f6179; border-color: #1f6179; transform: scale(1.03); }

/* Filled gold — darken on hover */
.btn-gold:hover  { background: #8f6830; border-color: #8f6830; transform: scale(1.03); }

/* Ghost variants — fill in on hover */
.btn-ghost-teal:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  transform: scale(1.03);
}
.btn-ghost-gold:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  transform: scale(1.03);
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: rippleAnim 0.55s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ── CARDS ── */
.card {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.card:hover {
  transform: translateY(-6px) !important;
}
.objekte-card {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
.objekte-card:hover {
  transform: translateY(-5px);
}
.objekte-card-img img {
  transition: transform 0.5s ease;
}
.objekte-card:hover .objekte-card-img img {
  transform: scale(1.06);
}

/* ── HERO ENTRANCE ── */
.hero-content { animation: fadeUp 0.9s ease both; }
.hero-content .pill { animation: fadeUp 0.7s 0.1s ease both; }
.hero-content h1   { animation: fadeUp 0.8s 0.2s ease both; }
.hero-content p    { animation: fadeUp 0.8s 0.35s ease both; }
.hero-content .hero-buttons { animation: fadeUp 0.8s 0.5s ease both; }

.hero-dark-content { animation: fadeUp 0.9s 0.1s ease both; }

/* ── SPLIT HERO ── */
.split-half:first-child .split-content { animation: slideLeft 0.9s 0.3s ease both; }
.split-half:last-child  .split-content { animation: slideRight 0.9s 0.3s ease both; }
.center-badge { animation: badgePop 0.8s 0.6s ease both; }

/* ── FLOATING HAMBURGERS ── */
.float-ham {
  transition: transform 0.2s ease;
}
.float-ham:hover { transform: scale(1.15); }

/* ── NAV LINKS ── */
.nav-links a {
  transition: color 0.2s, background 0.2s !important;
  border-radius: 6px;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); }

/* ── PROCESS NUMBERS ── */
.process-num {
  transition: color 0.3s ease;
}
.process-item:hover .process-num {
  color: var(--teal);
}
.objekte-site .process-item:hover .process-num {
  color: var(--gold);
}

/* ── FEATURE ROWS ── */
.feature-row {
  transition: background 0.2s ease, padding-left 0.2s ease;
  border-radius: 8px;
  padding-left: 0.5rem;
}
.feature-row:hover {
  background: rgba(42,157,181,0.04);
  padding-left: 1rem;
}
.objekte-site .feature-row:hover {
  background: rgba(200,146,42,0.04);
}

/* ── FOOTER LINKS ── */
.footer-nav a {
  transition: color 0.2s, padding-left 0.2s;
}
.footer-nav a:hover {
  padding-left: 6px;
  color: #fff !important;
}

/* ── PROJECT UNDERLINE ── */
.project-underline.revealed {
  animation: lineGrow 0.6s ease both;
}

/* ── CURSOR GLOW (desktop only) ── */
@media (hover: hover) {
  .glow-cursor {
    width: 20px; height: 20px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.15s ease, opacity 0.3s ease;
    opacity: 0;
  }
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 9998;
  transition: width 0.1s linear;
}
.montage-site .scroll-progress { background: var(--teal); }
.objekte-site  .scroll-progress { background: var(--gold); }
.index-page    .scroll-progress { background: linear-gradient(90deg, #2a819e, #b98a48); }

/* ── NAV SCROLL SHRINK ── */
.nav.scrolled {
  height: 58px;
  transition: height 0.3s ease;
}
.nav.scrolled .nav-logo img { height: 36px; transition: height 0.3s; }

/* ── MOBILE MENU ANIMATION ── */
.mobile-menu {
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
  display: flex !important;
}
.mobile-menu a {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s;
}
.mobile-menu.open a {
  opacity: 1;
  transform: none;
}
.mobile-menu.open a:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.14s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.26s; }
