/* ===================================
   Überführung Page Styles
   Gold colors + flowing path particles
   =================================== */

/* ===================================
   Hero Section with Transfer Particles
   =================================== */

/* Transfer particles container (flowing paths) */
#transferParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ===================================
   Introduction Section
   =================================== */

.intro-section {
    background: var(--color-bg-secondary);
    padding: 4rem 0;
}

.intro-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-12);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.intro-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.intro-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ===================================
   Benefits Grid
   =================================== */

.benefits-section {
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Service icons - GOLD colors */
.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-4);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent-gold);
    stroke-width: 2;
}

/* ===================================
   Process Timeline
   =================================== */

.process-section {
    background: linear-gradient(135deg,
        var(--color-bg-secondary) 0%,
        var(--color-bg-primary) 100%
    );
    padding: var(--spacing-20) 0;
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
}

.process-step {
    display: flex;
    gap: var(--spacing-6);
    align-items: flex-start;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 80px;
    bottom: -32px;
    width: 2px;
    background: linear-gradient(180deg,
        var(--color-accent-gold) 0%,
        rgba(212, 175, 55, 0.3) 100%
    );
}

.process-step:last-child::before {
    display: none;
}

/* Step numbers - GOLD gradient */
.step-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--color-accent-gold),
        var(--color-accent-gold-light)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-bg-primary);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.step-content h3 {
    font-size: var(--font-size-xl);
    font-family: var(--font-serif);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-3);
}

.step-content p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===================================
   Burial Options Grid
   =================================== */

.burial-options-section {
    background: var(--color-bg-secondary);
    padding: 4rem 0;
}

.burial-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Icons - GOLD colors */
.why-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-4);
}

.why-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent-gold);
    stroke-width: 2;
}

.burial-note {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--color-accent-gold);
    border-radius: 8px;
}

.burial-note strong {
    color: var(--color-accent-gold);
}

/* ===================================
   Phoenix Logo Particles - Emanating from Logo
   =================================== */

/* Phoenix particles container */
.phoenix-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Individual phoenix particle - guiding light for transfer theme */
.phoenix-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    animation: guideOutward var(--guide-duration, 2000ms) ease-out forwards;
    will-change: transform, opacity;
}

/* Phoenix particle appearance - soft star light */
.phoenix-particle::before {
    content: '';
    position: absolute;
    width: var(--particle-size, 6px);
    height: var(--particle-size, 6px);
    background: radial-gradient(
        circle at 40% 40%,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 235, 200, 0.7) 40%,
        rgba(212, 175, 55, 0.4) 70%,
        transparent 100%
    );
    border-radius: 50%;
    box-shadow:
        0 0 calc(var(--particle-size, 6px) * 1.5) rgba(255, 245, 220, 0.6),
        0 0 calc(var(--particle-size, 6px) * 3) rgba(212, 175, 55, 0.3);
    filter: blur(0.3px);
}

/* Guiding outward animation - biased upward */
@keyframes guideOutward {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(0.2);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
        transform: translate(-50%, -50%)
                   translate(calc(var(--guide-x, 50px) * 0.2), calc(var(--guide-y, -50px) * 0.2))
                   scale(1);
    }
    50% {
        opacity: 0.7;
    }
    75% {
        opacity: 0.35;
    }
    100% {
        transform: translate(-50%, -50%)
                   translate(var(--guide-x, 50px), var(--guide-y, -50px))
                   scale(0.5);
        opacity: 0;
    }
}

/* ===================================
   Guiding Star Animation - Journey Theme
   =================================== */

/* Hero particles container - must be positioned for overlays */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Celestial shimmer overlay (representing guided passage) */
.hero-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 40%, rgba(212, 175, 55, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(192, 192, 192, 0.04) 0%, transparent 40%);
    animation: celestialShimmer 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Subtle glow overlay at bottom - ascending light */
.hero-particles::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to top,
        rgba(212, 175, 55, 0.12) 0%,
        rgba(255, 223, 186, 0.06) 50%,
        transparent 100%
    );
    animation: ascendingGlow 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ===================================
   Guiding Star Particles
   =================================== */

/* Guiding star particles - soft, celestial */
.guiding-star {
    position: absolute;
    pointer-events: none;
    animation: riseStar var(--rise-duration, 10000ms) ease-out forwards,
               twinkleStar var(--twinkle-speed, 1.5s) ease-in-out infinite var(--twinkle-delay, 0s);
    will-change: transform, opacity;
    z-index: 2;
}

/* Star appearance - radial glow */
.guiding-star::before {
    content: '';
    position: absolute;
    width: var(--star-size, 8px);
    height: var(--star-size, 8px);
    background: radial-gradient(
        circle at 40% 40%,
        var(--color-core, rgba(255, 255, 255, 0.95)) 0%,
        var(--color-mid, rgba(255, 245, 220, 0.6)) 40%,
        var(--color-outer, rgba(255, 215, 0, 0.25)) 70%,
        transparent 100%
    );
    border-radius: 50%;
    box-shadow:
        0 0 calc(var(--star-size, 8px) * 1.2) var(--color-mid, rgba(255, 245, 220, 0.5)),
        0 0 calc(var(--star-size, 8px) * 2.5) var(--color-outer, rgba(255, 215, 0, 0.2));
    filter: blur(0.3px);
}

/* Star rays for larger stars */
.guiding-star.has-rays::after {
    content: '';
    position: absolute;
    width: calc(var(--star-size, 8px) * 2.5);
    height: calc(var(--star-size, 8px) * 2.5);
    top: calc(var(--star-size, 8px) * -0.75);
    left: calc(var(--star-size, 8px) * -0.75);
    background:
        linear-gradient(0deg, transparent 45%, var(--color-core, rgba(255, 255, 255, 0.3)) 49%, var(--color-core, rgba(255, 255, 255, 0.3)) 51%, transparent 55%),
        linear-gradient(90deg, transparent 45%, var(--color-core, rgba(255, 255, 255, 0.3)) 49%, var(--color-core, rgba(255, 255, 255, 0.3)) 51%, transparent 55%);
    opacity: 0.6;
    animation: rotateRays 8s linear infinite;
}

/* Size variants */
.guiding-star.size-small::before {
    box-shadow:
        0 0 6px var(--color-mid, rgba(255, 245, 220, 0.5)),
        0 0 12px var(--color-outer, rgba(255, 215, 0, 0.2));
}

.guiding-star.size-medium::before {
    box-shadow:
        0 0 10px var(--color-mid, rgba(255, 245, 220, 0.5)),
        0 0 20px var(--color-outer, rgba(255, 215, 0, 0.2));
}

.guiding-star.size-large::before {
    box-shadow:
        0 0 15px var(--color-mid, rgba(255, 245, 220, 0.6)),
        0 0 30px var(--color-outer, rgba(255, 215, 0, 0.25));
}

/* Rising star animation - gentle upward drift */
@keyframes riseStar {
    0% {
        transform: translateX(0) translateY(0) scale(0.2);
        opacity: 0;
    }
    8% {
        transform: translateX(var(--drift-1, 15px)) translateY(-40px) scale(0.7);
        opacity: 0.8;
    }
    25% {
        transform: translateX(var(--drift-2, -20px)) translateY(-150px) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateX(var(--drift-1, 15px)) translateY(-300px) scale(1);
        opacity: 0.85;
    }
    75% {
        transform: translateX(var(--drift-3, 25px)) translateY(-450px) scale(0.8);
        opacity: 0.5;
    }
    90% {
        transform: translateX(var(--drift-2, -20px)) translateY(-550px) scale(0.6);
        opacity: 0.25;
    }
    100% {
        transform: translateX(var(--drift-1, 15px)) translateY(-600px) scale(0.4);
        opacity: 0;
    }
}

/* Twinkle animation */
@keyframes twinkleStar {
    0%, 100% {
        filter: blur(0.3px) brightness(1);
    }
    50% {
        filter: blur(0.5px) brightness(1.4);
    }
}

/* Ray rotation for larger stars */
@keyframes rotateRays {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(180deg);
    }
}

/* Celestial shimmer animation */
@keyframes celestialShimmer {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

/* Ascending glow animation */
@keyframes ascendingGlow {
    0%, 100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-15px) scaleY(1.15);
        opacity: 0.55;
    }
}

/* ===================================
   Golden CTA Section
   =================================== */

.golden-cta-section h2,
.golden-cta-section p {
    color: var(--color-bg-primary) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.golden-cta-features .golden-feature {
    color: var(--color-bg-primary);
}

/* ===================================
   WhatsApp Button
   =================================== */

.whatsapp-float {
    position: fixed;
    bottom: var(--spacing-8);
    right: var(--spacing-8);
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all var(--transition-base);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
    .benefits-grid,
    .burial-options-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intro-layout {
        grid-template-columns: 1fr;
    }

    .intro-lead {
        font-size: 1.1rem;
    }

    .burial-note {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .process-section {
        padding: var(--spacing-16) 0;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .process-step::before {
        display: none;
    }

    .step-number {
        margin: 0 auto var(--spacing-4);
    }

    .whatsapp-float {
        bottom: var(--spacing-4);
        right: var(--spacing-4);
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Reduce guiding star particles on tablet */
    .guiding-star:nth-child(3n) {
        display: none;
    }
}

@media (max-width: 640px) {
    .intro-section {
        padding: 3rem 0;
    }

    .benefits-section,
    .burial-options-section {
        padding: 3rem 0;
    }

    .intro-lead {
        font-size: 1rem;
    }

    /* Minimal guiding star particles on mobile */
    .guiding-star:nth-child(2n) {
        display: none;
    }

    .burial-note {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* ===================================
   Light Theme Support
   =================================== */

[data-theme="light"] .intro-section,
[data-theme="light"] .burial-options-section {
    background: #f8f9fa;
}

[data-theme="light"] .burial-note {
    background: rgba(212, 175, 55, 0.08);
    border-left-color: var(--color-accent-gold);
}

[data-theme="light"] .burial-note strong {
    color: var(--color-accent-gold);
}

[data-theme="light"] .golden-cta-section h2,
[data-theme="light"] .golden-cta-section p {
    color: var(--color-bg-primary) !important;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .guiding-star,
    .phoenix-particle {
        display: none;
    }

    .hero-section {
        background: white;
        color: black;
    }
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .guiding-star,
    .phoenix-particle {
        animation: none;
        opacity: 0.2;
    }

    .whatsapp-float {
        animation: none;
    }

    .hero-particles::before,
    .hero-particles::after {
        animation: none;
    }
}
