
/* =========================================
   ne5.ch – Liquid Glass Logo Animation
   ========================================= */

/* Logo mittig und grösser */
.home-visual {
    position: relative;
    display: block;

    width: 100%;
    max-width: 680px;

    margin: 35px auto;
    padding: 12px;

    box-sizing: border-box;

    overflow: hidden;
    border-radius: 22px;
    isolation: isolate;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.28);

    box-shadow:
        0 12px 35px rgba(20, 35, 65, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    cursor: pointer;

    /* Animation beim ersten Laden */
    animation: logoEntrance 1.4s ease-out both;
}


/* Logo selbst */
.home-visual img {
    display: block;

    width: 100%;
    height: auto;

    position: relative;
    z-index: 1;

    filter: drop-shadow(
        0 5px 14px rgba(20, 35, 65, 0.12)
    );
}


/* Lichtreflexion */
.home-visual::before {
    content: "";

    position: absolute;
    z-index: 2;

    top: -50%;
    left: -100%;

    width: 65%;
    height: 200%;

    pointer-events: none;

    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255,255,255,0.04) 30%,
        rgba(255,255,255,0.7) 48%,
        rgba(190,225,255,0.3) 55%,
        transparent 75%
    );

    transform: rotate(18deg);
}


/* Glass-Schimmer */
.home-visual::after {
    content: "";

    position: absolute;
    z-index: 0;

    inset: 0;

    border-radius: inherit;
    pointer-events: none;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.2),
        transparent 40%,
        rgba(150,200,255,0.1)
    );

    opacity: 0;
}


/* =========================================
   Animationen
   ========================================= */

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.94);
        filter: blur(5px);
    }

    65% {
        opacity: 1;
        transform: translateY(-3px) scale(1.015);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}


/* Lichtreflexion */
@keyframes glassReflection {
    0% {
        left: -100%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    75% {
        opacity: 0.8;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}


/* Glass leuchtet kurz */
@keyframes glassGlow {
    0% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0.15;
    }
}


/* Klasse für erneuten Animationsstart */
.home-visual.animate {
    animation: logoEntrance 1.4s ease-out both;
}

.home-visual.animate::before {
    animation: glassReflection 1.8s ease-in-out 0.1s 1 both;
}

.home-visual.animate::after {
    animation: glassGlow 1.5s ease-out 0.1s 1 both;
}


/* Mauszeiger */
.home-visual:hover {
    box-shadow:
        0 16px 42px rgba(20, 35, 65, 0.16),
        inset 0 1px 2px rgba(255,255,255,0.6);
}


/* Mobile */
@media (max-width: 600px) {
    .home-visual {
        max-width: 100%;
        padding: 7px;
        border-radius: 16px;
        margin: 25px auto;
    }
}


/* Barrierefreiheit */
@media (prefers-reduced-motion: reduce) {
    .home-visual,
    .home-visual.animate,
    .home-visual.animate::before,
    .home-visual.animate::after {
        animation: none !important;
        opacity: 1;
        transform: none;
        filter: none;
    }
}
