/* ============================================
   Geteilte Extras fuer alle Konzept-Seiten:
   - Sticky-Bottom-CTA (Zurueck zu Website-Leasing.io)
   - Reveal-Animationen
   - Concept-Banner Enhancement
   ============================================ */

/* ===== Sticky Bottom CTA (gross, prominent, mit Pulse-Glow) ===== */
.concept-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(160%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 22px 18px 32px;
  background: rgba(10, 9, 8, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(217, 247, 90, 0.5);
  border-radius: 999px;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.6),
    0 0 0 0 rgba(217, 247, 90, 0);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 1.04rem;
  color: rgba(244, 241, 234, 0.92);
  transition:
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 500ms ease,
    box-shadow 600ms ease;
  opacity: 0;
  pointer-events: none;
  max-width: calc(100% - 32px);
}
.concept-sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
  animation: concept-cta-pulse 2.6s ease-in-out 0.5s 2 both;
}
@keyframes concept-cta-pulse {
  0%, 100% {
    box-shadow:
      0 36px 90px rgba(0, 0, 0, 0.6),
      0 0 0 0 rgba(217, 247, 90, 0);
  }
  50% {
    box-shadow:
      0 36px 90px rgba(0, 0, 0, 0.6),
      0 0 0 14px rgba(217, 247, 90, 0.16);
  }
}

.concept-sticky-cta-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.concept-sticky-cta-text > svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.concept-sticky-cta-text strong {
  color: #f4f1ea;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.concept-sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: #D9F75A;
  color: #0A0908;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.concept-sticky-cta-btn:hover {
  background: #e8ff6f;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(217, 247, 90, 0.32);
}
@media (max-width: 720px) {
  .concept-sticky-cta {
    gap: 14px;
    padding: 14px 18px 14px 22px;
    font-size: 0.96rem;
    bottom: 16px;
  }
  .concept-sticky-cta-text strong { font-size: 1rem; }
  .concept-sticky-cta-btn { padding: 11px 18px; font-size: 0.92rem; }
}

@media (max-width: 560px) {
  /* Mobile-Bottom-Bar: streckt sich auf volle Breite, kompakt */
  .concept-sticky-cta {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: translateY(160%);
    border-radius: 16px;
    padding: 12px 12px 12px 18px;
    gap: 10px;
    bottom: 12px;
    font-size: 0.9rem;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .concept-sticky-cta.is-visible {
    transform: translateY(0);
  }
  .concept-sticky-cta-text {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    font-size: 0.92rem;
    overflow: hidden;
  }
  .concept-sticky-cta-text > svg { width: 18px; height: 18px; flex-shrink: 0; }
  .concept-sticky-cta-text strong {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .concept-sticky-cta-sub { display: none; } /* "Hol dir deine eigene." raus auf Mobile */
  .concept-sticky-cta-btn {
    padding: 10px 16px;
    font-size: 0.88rem;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .concept-sticky-cta { padding: 11px 10px 11px 14px; }
  .concept-sticky-cta-text strong { font-size: 0.88rem; }
  .concept-sticky-cta-btn { padding: 9px 13px; font-size: 0.84rem; }
}

/* ===== Concept-Banner Enhancement (mit prominentem Zurueck-Pfeil) ===== */
.concept-banner-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #D9F75A;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, gap 200ms ease;
}
.concept-banner-back:hover {
  border-color: #D9F75A;
  gap: 9px;
}
.concept-banner-back svg {
  transition: transform 200ms ease;
}
.concept-banner-back:hover svg {
  transform: translateX(-2px);
}

/* ===== Reveal-Animationen ===== */
.concept-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}
.concept-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger-Children: erste 6 Kinder werden zeitversetzt animiert */
.concept-reveal.is-visible > * {
  animation: concept-reveal-child 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.concept-reveal.is-visible > *:nth-child(1) { animation-delay: 0ms; }
.concept-reveal.is-visible > *:nth-child(2) { animation-delay: 80ms; }
.concept-reveal.is-visible > *:nth-child(3) { animation-delay: 160ms; }
.concept-reveal.is-visible > *:nth-child(4) { animation-delay: 240ms; }
.concept-reveal.is-visible > *:nth-child(5) { animation-delay: 320ms; }
.concept-reveal.is-visible > *:nth-child(6) { animation-delay: 400ms; }
@keyframes concept-reveal-child {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Custom Cursor (Premium-Touch, nur Desktop) =====
   Pro Konzept-Seite via --cursor-color in :root anpassbar.
   Fallback: Website-Leasing-Lemongruen.
*/
.concept-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cursor-color, #D9F75A);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: difference;
  transition:
    width 320ms cubic-bezier(0.16, 1, 0.3, 1),
    height 320ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 200ms ease;
  will-change: transform;
}
.concept-cursor.is-hovering {
  width: 44px;
  height: 44px;
  mix-blend-mode: difference;
}
.concept-cursor.is-hidden { opacity: 0; }

body.has-concept-cursor,
body.has-concept-cursor a,
body.has-concept-cursor button {
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  .concept-cursor { display: none; }
  body.has-concept-cursor,
  body.has-concept-cursor a,
  body.has-concept-cursor button { cursor: auto; }
}

/* ===== Bild-Container: cover-Background sichern ===== */
.about-img,
.story-img,
.timeline-img {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Galerie-Tile-Hover: leichter Scale-Effekt */
.gallery-item {
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-grid:hover .gallery-item:hover {
  transform: scale(1.025);
}

/* ===== Card-Hover-Verstaerkung (universal) ===== */
.menu-card,
.service-block,
.service-card,
.gen-card,
.value-card,
.cred-card,
.program-block,
.team-card,
.gewerk,
.service-item,
.price-card {
  transition:
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 500ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 400ms ease;
}
.menu-card:hover,
.service-block:hover,
.service-card:hover,
.gen-card:hover,
.value-card:hover,
.cred-card:hover,
.program-block:hover,
.team-card:hover,
.gewerk:hover,
.price-card:hover {
  transform: translateY(-6px);
}

/* ===== Bigger Reveal-Hero - subtle Mesh-Background via ::before ===== */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
}

@media (prefers-reduced-motion: reduce) {
  .concept-reveal,
  .concept-reveal.is-visible > *,
  .concept-sticky-cta { transition: none !important; animation: none !important; }
  .concept-reveal { opacity: 1; transform: none; }
  .concept-cursor { display: none; }
}
