/* ===== ERWEITERTE MODERNE EFFEKTE ===== */

/* Particle Background für Banner */
#banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0,212,170,0.1) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Glowing Text-Effekt für den Header */
#banner header h3 {
    position: relative;
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(255,255,255,0.5), 0 0 20px rgba(79,172,254,0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 30px rgba(79,172,254,0.5);
    }
}

/* 3D Card Transform Effekt */
.box.highlight {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.box.highlight:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.02);
}

/* Erweiterte Button-Effekte mit Morphing */
.button {
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Typing Animation für bestimmte Texte */
.typing-animation {
    overflow: hidden;
    border-right: 2px solid #4facfe;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #4facfe }
}

/* Morphing Hover-Effekt für Bilder */
.box.post .image.left img {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(20%) brightness(90%);
}

.box.post:hover .image.left img {
    filter: grayscale(0%) brightness(110%);
    transform: scale(1.05) rotate(2deg);
}

/* Gradient Animation für Wrapper */
.wrapper.style3 {
    background: linear-gradient(-45deg, #667eea, #764ba2, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Floating Elements */
.float-animation {
    animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Staggered Fade-in für Listen */
.stagger-fade > * {
    opacity: 0;
    animation: staggerFadeIn 0.6s ease forwards;
}

.stagger-fade > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-fade > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Magnetic Hover-Effekt für Links */
.magnetic {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Pulsing Effect für wichtige Elemente */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Scrollbar-Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

/* Loading Spinner für Formulare */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4facfe;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glassmorphism-Effekt für Cards */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Text-Highlight-Effekt */
.text-highlight {
    background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
}

.text-highlight:hover {
    background-size: 100% 88%;
}